@nocobase/plugin-workflow 0.9.1-alpha.1 → 0.9.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.
- package/lib/client/AddButton.js +50 -86
- package/lib/client/Branch.js +0 -13
- package/lib/client/ExecutionCanvas.js +16 -63
- package/lib/client/ExecutionLink.js +3 -21
- package/lib/client/ExecutionPage.js +1 -19
- package/lib/client/ExecutionResourceProvider.js +6 -23
- package/lib/client/FlowContext.js +0 -8
- package/lib/client/WorkflowCanvas.js +57 -129
- package/lib/client/WorkflowLink.js +3 -21
- package/lib/client/WorkflowPage.js +1 -19
- package/lib/client/WorkflowProvider.js +24 -47
- package/lib/client/WorkflowShortcut.js +0 -16
- package/lib/client/components/CollectionBlockInitializer.js +12 -22
- package/lib/client/components/CollectionFieldInitializers.js +5 -24
- package/lib/client/components/CollectionFieldset.js +33 -85
- package/lib/client/components/Duration.js +0 -14
- package/lib/client/components/DynamicExpression.d.ts +4 -0
- package/lib/client/components/DynamicExpression.js +102 -0
- package/lib/client/components/FieldsSelect.d.ts +2 -0
- package/lib/client/components/FieldsSelect.js +66 -0
- package/lib/client/components/FilterDynamicComponent.js +1 -10
- package/lib/client/components/NullRender.js +0 -1
- package/lib/client/components/OpenDrawer.js +10 -35
- package/lib/client/components/RadioWithTooltip.js +5 -27
- package/lib/client/components/renderEngineReference.d.ts +1 -0
- package/lib/client/components/renderEngineReference.js +55 -0
- package/lib/client/constants.js +0 -9
- package/lib/client/index.js +0 -6
- package/lib/client/interfaces/expression.d.ts +3 -0
- package/lib/client/interfaces/expression.js +37 -0
- package/lib/client/locale/index.js +5 -15
- package/lib/client/locale/pt-BR.d.ts +130 -0
- package/lib/client/locale/pt-BR.js +136 -0
- package/lib/client/locale/zh-CN.d.ts +16 -1
- package/lib/client/locale/zh-CN.js +17 -2
- package/lib/client/nodes/calculation.d.ts +56 -7
- package/lib/client/nodes/calculation.js +141 -74
- package/lib/client/nodes/condition.d.ts +5 -9
- package/lib/client/nodes/condition.js +30 -93
- package/lib/client/nodes/create.d.ts +36 -12
- package/lib/client/nodes/create.js +14 -28
- package/lib/client/nodes/delay.d.ts +3 -7
- package/lib/client/nodes/delay.js +5 -14
- package/lib/client/nodes/destroy.d.ts +3 -11
- package/lib/client/nodes/destroy.js +14 -12
- package/lib/client/nodes/index.d.ts +2 -2
- package/lib/client/nodes/index.js +181 -222
- package/lib/client/nodes/manual/AssigneesSelect.js +8 -18
- package/lib/client/nodes/manual/ModeConfig.js +0 -27
- package/lib/client/nodes/manual/SchemaConfig.js +87 -449
- package/lib/client/nodes/manual/WorkflowTodo.js +99 -163
- package/lib/client/nodes/manual/WorkflowTodoBlockInitializer.js +4 -20
- package/lib/client/nodes/manual/forms/customForm.d.ts +40 -0
- package/lib/client/nodes/manual/forms/customForm.js +411 -0
- package/lib/client/nodes/manual/index.d.ts +15 -6
- package/lib/client/nodes/manual/index.js +58 -54
- package/lib/client/nodes/parallel.d.ts +1 -2
- package/lib/client/nodes/parallel.js +16 -45
- package/lib/client/nodes/query.d.ts +30 -12
- package/lib/client/nodes/query.js +17 -25
- package/lib/client/nodes/request.d.ts +9 -17
- package/lib/client/nodes/request.js +13 -37
- package/lib/client/nodes/update.d.ts +27 -28
- package/lib/client/nodes/update.js +17 -18
- package/lib/client/schemas/collection.d.ts +20 -7
- package/lib/client/schemas/collection.js +27 -28
- package/lib/client/schemas/executions.js +3 -18
- package/lib/client/schemas/workflows.js +10 -33
- package/lib/client/style.js +75 -26
- package/lib/client/triggers/collection.d.ts +47 -18
- package/lib/client/triggers/collection.js +65 -123
- package/lib/client/triggers/index.d.ts +3 -6
- package/lib/client/triggers/index.js +146 -146
- package/lib/client/triggers/schedule/DateFieldsSelect.js +7 -32
- package/lib/client/triggers/schedule/EndsByField.js +1 -18
- package/lib/client/triggers/schedule/OnField.js +10 -38
- package/lib/client/triggers/schedule/RepeatField.js +4 -32
- package/lib/client/triggers/schedule/ScheduleConfig.js +25 -68
- package/lib/client/triggers/schedule/index.d.ts +21 -1
- package/lib/client/triggers/schedule/index.js +22 -24
- package/lib/client/triggers/schedule/locale/Cron.zh-CN.js +8 -4
- package/lib/client/utils.d.ts +1 -0
- package/lib/client/utils.js +31 -10
- package/lib/client/variable.d.ts +7 -6
- package/lib/client/variable.js +132 -71
- package/lib/index.js +0 -2
- package/lib/server/Plugin.d.ts +7 -7
- package/lib/server/Plugin.js +76 -111
- package/lib/server/Processor.d.ts +2 -0
- package/lib/server/Processor.js +62 -125
- package/lib/server/actions/index.js +3 -10
- package/lib/server/actions/nodes.js +34 -87
- package/lib/server/actions/workflows.js +46 -96
- package/lib/server/collections/executions.js +1 -1
- package/lib/server/collections/flow_nodes.js +7 -4
- package/lib/server/collections/jobs.js +1 -1
- package/lib/server/collections/workflows.js +3 -4
- package/lib/server/fields/expression-field.d.ts +8 -0
- package/lib/server/fields/expression-field.js +26 -0
- package/lib/server/fields/index.d.ts +1 -0
- package/lib/server/fields/index.js +12 -0
- package/lib/server/functions/index.js +3 -14
- package/lib/server/index.js +0 -6
- package/lib/server/instructions/calculation.js +22 -17
- package/lib/server/instructions/condition.js +8 -52
- package/lib/server/instructions/create.js +31 -15
- package/lib/server/instructions/delay.js +4 -32
- package/lib/server/instructions/destroy.js +6 -12
- package/lib/server/instructions/index.js +6 -23
- package/lib/server/instructions/manual/actions.js +22 -31
- package/lib/server/instructions/manual/collecions/users_jobs.js +1 -1
- package/lib/server/instructions/manual/index.d.ts +13 -12
- package/lib/server/instructions/manual/index.js +9 -47
- package/lib/server/instructions/parallel.js +9 -36
- package/lib/server/instructions/query.js +17 -15
- package/lib/server/instructions/request.js +7 -30
- package/lib/server/instructions/update.js +8 -14
- package/lib/server/migrations/20221129153547-calculation-variables.js +3 -27
- package/lib/server/migrations/20230221032941-change-request-body-type.js +3 -26
- package/lib/server/migrations/20230221071831-calculation-expression.js +1 -33
- package/lib/server/migrations/20230221121203-condition-calculation.js +5 -28
- package/lib/server/migrations/20230221162902-jsonb-to-json.js +3 -18
- package/lib/server/migrations/20230411034722-manual-multi-form.d.ts +4 -0
- package/lib/server/migrations/20230411034722-manual-multi-form.js +303 -0
- package/lib/server/models/Execution.js +0 -5
- package/lib/server/models/FlowNode.js +0 -5
- package/lib/server/models/Job.js +0 -5
- package/lib/server/models/Workflow.js +0 -5
- package/lib/server/triggers/collection.js +39 -61
- package/lib/server/triggers/index.js +3 -22
- package/lib/server/triggers/schedule.js +72 -194
- package/package.json +14 -11
|
@@ -4,88 +4,61 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.OnField = OnField;
|
|
7
|
-
|
|
8
7
|
function _react() {
|
|
9
8
|
const data = _interopRequireWildcard(require("react"));
|
|
10
|
-
|
|
11
9
|
_react = function _react() {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _css() {
|
|
19
15
|
const data = require("@emotion/css");
|
|
20
|
-
|
|
21
16
|
_css = function _css() {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function _antd() {
|
|
29
22
|
const data = require("antd");
|
|
30
|
-
|
|
31
23
|
_antd = function _antd() {
|
|
32
24
|
return data;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
return data;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
function _reactI18next() {
|
|
39
29
|
const data = require("react-i18next");
|
|
40
|
-
|
|
41
30
|
_reactI18next = function _reactI18next() {
|
|
42
31
|
return data;
|
|
43
32
|
};
|
|
44
|
-
|
|
45
33
|
return data;
|
|
46
34
|
}
|
|
47
|
-
|
|
48
35
|
var _DateFieldsSelect = require("./DateFieldsSelect");
|
|
49
|
-
|
|
50
36
|
var _locale = require("../../locale");
|
|
51
|
-
|
|
52
37
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
53
|
-
|
|
54
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
55
|
-
|
|
56
39
|
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; }
|
|
57
|
-
|
|
58
40
|
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; }
|
|
59
|
-
|
|
60
|
-
function
|
|
61
|
-
|
|
41
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
42
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
43
|
+
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); }
|
|
62
44
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
63
|
-
|
|
64
45
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
65
|
-
|
|
66
46
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
67
|
-
|
|
68
47
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
69
|
-
|
|
70
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
71
|
-
|
|
48
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
72
49
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
73
|
-
|
|
74
50
|
function OnField({
|
|
75
51
|
value,
|
|
76
52
|
onChange: _onChange
|
|
77
53
|
}) {
|
|
78
54
|
const _useTranslation = (0, _reactI18next().useTranslation)(),
|
|
79
|
-
|
|
80
|
-
|
|
55
|
+
t = _useTranslation.t;
|
|
81
56
|
const _useWorkflowTranslati = (0, _locale.useWorkflowTranslation)(),
|
|
82
|
-
|
|
83
|
-
|
|
57
|
+
localT = _useWorkflowTranslati.t;
|
|
84
58
|
const _useState = (0, _react().useState)(value.offset ? value.offset / Math.abs(value.offset) : 0),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
59
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
+
dir = _useState2[0],
|
|
61
|
+
setDir = _useState2[1];
|
|
89
62
|
return _react().default.createElement("fieldset", {
|
|
90
63
|
className: (0, _css().css)`
|
|
91
64
|
display: flex;
|
|
@@ -100,7 +73,6 @@ function OnField({
|
|
|
100
73
|
value: dir,
|
|
101
74
|
onChange: v => {
|
|
102
75
|
setDir(v);
|
|
103
|
-
|
|
104
76
|
_onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
105
77
|
offset: Math.abs(value.offset) * v
|
|
106
78
|
}));
|
|
@@ -114,7 +86,7 @@ function OnField({
|
|
|
114
86
|
}, t('After'))) : null, dir ? _react().default.createElement(_react().default.Fragment, null, _react().default.createElement(_antd().InputNumber, {
|
|
115
87
|
value: Math.abs(value.offset),
|
|
116
88
|
onChange: v => _onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
117
|
-
offset: v * dir
|
|
89
|
+
offset: (v !== null && v !== void 0 ? v : 0) * dir
|
|
118
90
|
}))
|
|
119
91
|
}), _react().default.createElement(_antd().Select, {
|
|
120
92
|
value: value.unit || 86400000,
|
|
@@ -4,53 +4,37 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.RepeatField = RepeatField;
|
|
7
|
-
|
|
8
7
|
function _css() {
|
|
9
8
|
const data = require("@emotion/css");
|
|
10
|
-
|
|
11
9
|
_css = function _css() {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _antd() {
|
|
19
15
|
const data = require("antd");
|
|
20
|
-
|
|
21
16
|
_antd = function _antd() {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function _react() {
|
|
29
22
|
const data = _interopRequireDefault(require("react"));
|
|
30
|
-
|
|
31
23
|
_react = function _react() {
|
|
32
24
|
return data;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
return data;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
function _reactJsCron() {
|
|
39
29
|
const data = require("react-js-cron");
|
|
40
|
-
|
|
41
30
|
_reactJsCron = function _reactJsCron() {
|
|
42
31
|
return data;
|
|
43
32
|
};
|
|
44
|
-
|
|
45
33
|
return data;
|
|
46
34
|
}
|
|
47
|
-
|
|
48
35
|
var _locale = require("../../locale");
|
|
49
|
-
|
|
50
36
|
var _Cron = _interopRequireDefault(require("./locale/Cron.zh-CN"));
|
|
51
|
-
|
|
52
37
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
53
|
-
|
|
54
38
|
const languages = {
|
|
55
39
|
'zh-CN': _Cron.default
|
|
56
40
|
};
|
|
@@ -73,40 +57,34 @@ const RepeatOptions = [{
|
|
|
73
57
|
value: 604800000,
|
|
74
58
|
text: 'By week',
|
|
75
59
|
unitText: 'Weeks'
|
|
76
|
-
},
|
|
60
|
+
},
|
|
61
|
+
// { value: 18144_000_000, text: 'By 30 days' },
|
|
77
62
|
{
|
|
78
63
|
value: 'cron',
|
|
79
64
|
text: 'Advanced'
|
|
80
65
|
}];
|
|
81
|
-
|
|
82
66
|
function getNumberOption(v) {
|
|
83
67
|
const opts = RepeatOptions.filter(option => typeof option.value === 'number').reverse();
|
|
84
68
|
return opts.find(item => !(v % item.value));
|
|
85
69
|
}
|
|
86
|
-
|
|
87
70
|
function getRepeatTypeValue(v) {
|
|
88
71
|
switch (typeof v) {
|
|
89
72
|
case 'number':
|
|
90
73
|
const option = getNumberOption(v);
|
|
91
74
|
return option ? option.value : 'none';
|
|
92
|
-
|
|
93
75
|
case 'string':
|
|
94
76
|
return 'cron';
|
|
95
|
-
|
|
96
77
|
default:
|
|
97
78
|
break;
|
|
98
79
|
}
|
|
99
|
-
|
|
100
80
|
return 'none';
|
|
101
81
|
}
|
|
102
|
-
|
|
103
82
|
function CommonRepeatField({
|
|
104
83
|
value,
|
|
105
84
|
onChange: _onChange
|
|
106
85
|
}) {
|
|
107
86
|
const _useWorkflowTranslati = (0, _locale.useWorkflowTranslation)(),
|
|
108
|
-
|
|
109
|
-
|
|
87
|
+
t = _useWorkflowTranslati.t;
|
|
110
88
|
const option = getNumberOption(value);
|
|
111
89
|
return _react().default.createElement(_antd().InputNumber, {
|
|
112
90
|
value: value / option.value,
|
|
@@ -116,30 +94,24 @@ function CommonRepeatField({
|
|
|
116
94
|
addonAfter: t(option.unitText)
|
|
117
95
|
});
|
|
118
96
|
}
|
|
119
|
-
|
|
120
97
|
function RepeatField({
|
|
121
98
|
value = null,
|
|
122
99
|
onChange
|
|
123
100
|
}) {
|
|
124
101
|
const _useWorkflowTranslati2 = (0, _locale.useWorkflowTranslation)(),
|
|
125
|
-
|
|
126
|
-
|
|
102
|
+
t = _useWorkflowTranslati2.t;
|
|
127
103
|
const typeValue = getRepeatTypeValue(value);
|
|
128
|
-
|
|
129
104
|
function onTypeChange(v) {
|
|
130
105
|
if (v === 'none') {
|
|
131
106
|
onChange(null);
|
|
132
107
|
return;
|
|
133
108
|
}
|
|
134
|
-
|
|
135
109
|
if (v === 'cron') {
|
|
136
110
|
onChange('0 * * * * *');
|
|
137
111
|
return;
|
|
138
112
|
}
|
|
139
|
-
|
|
140
113
|
onChange(v);
|
|
141
114
|
}
|
|
142
|
-
|
|
143
115
|
const locale = languages[localStorage.getItem('NOCOBASE_LOCALE') || 'en-US'];
|
|
144
116
|
return _react().default.createElement("fieldset", {
|
|
145
117
|
className: (0, _css().css)`
|
|
@@ -4,96 +4,64 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ScheduleConfig = void 0;
|
|
7
|
-
|
|
8
7
|
function _react() {
|
|
9
8
|
const data = _interopRequireWildcard(require("react"));
|
|
10
|
-
|
|
11
9
|
_react = function _react() {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _core() {
|
|
19
15
|
const data = require("@formily/core");
|
|
20
|
-
|
|
21
16
|
_core = function _core() {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function _react2() {
|
|
29
22
|
const data = require("@formily/react");
|
|
30
|
-
|
|
31
23
|
_react2 = function _react2() {
|
|
32
24
|
return data;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
return data;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
function _css() {
|
|
39
29
|
const data = require("@emotion/css");
|
|
40
|
-
|
|
41
30
|
_css = function _css() {
|
|
42
31
|
return data;
|
|
43
32
|
};
|
|
44
|
-
|
|
45
33
|
return data;
|
|
46
34
|
}
|
|
47
|
-
|
|
48
35
|
function _client() {
|
|
49
36
|
const data = require("@nocobase/client");
|
|
50
|
-
|
|
51
37
|
_client = function _client() {
|
|
52
38
|
return data;
|
|
53
39
|
};
|
|
54
|
-
|
|
55
40
|
return data;
|
|
56
41
|
}
|
|
57
|
-
|
|
58
42
|
var _collection = require("../../schemas/collection");
|
|
59
|
-
|
|
60
43
|
var _OnField = require("./OnField");
|
|
61
|
-
|
|
62
44
|
var _EndsByField = require("./EndsByField");
|
|
63
|
-
|
|
64
45
|
var _RepeatField = require("./RepeatField");
|
|
65
|
-
|
|
66
46
|
var _constants = require("./constants");
|
|
67
|
-
|
|
68
47
|
var _locale = require("../../locale");
|
|
69
|
-
|
|
70
48
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
71
|
-
|
|
72
49
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
73
|
-
|
|
74
50
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
75
|
-
|
|
76
51
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
77
|
-
|
|
78
52
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
79
|
-
|
|
80
53
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
81
|
-
|
|
82
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
83
|
-
|
|
54
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
84
55
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
85
|
-
|
|
86
56
|
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; }
|
|
87
|
-
|
|
88
57
|
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; }
|
|
89
|
-
|
|
90
|
-
function
|
|
91
|
-
|
|
58
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
59
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
60
|
+
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); }
|
|
92
61
|
const ModeFieldsets = {
|
|
93
62
|
[_constants.SCHEDULE_MODE.STATIC]: {
|
|
94
63
|
startsOn: {
|
|
95
64
|
type: 'datetime',
|
|
96
|
-
name: 'startsOn',
|
|
97
65
|
title: `{{t("Starts on", { ns: "${_locale.NAMESPACE}" })}}`,
|
|
98
66
|
'x-decorator': 'FormItem',
|
|
99
67
|
'x-component': 'DatePicker',
|
|
@@ -104,19 +72,18 @@ const ModeFieldsets = {
|
|
|
104
72
|
},
|
|
105
73
|
repeat: {
|
|
106
74
|
type: 'string',
|
|
107
|
-
name: 'repeat',
|
|
108
75
|
title: `{{t("Repeat mode", { ns: "${_locale.NAMESPACE}" })}}`,
|
|
109
76
|
'x-decorator': 'FormItem',
|
|
110
77
|
'x-component': 'RepeatField',
|
|
111
78
|
'x-reactions': [{
|
|
112
|
-
target: '
|
|
79
|
+
target: 'endsOn',
|
|
113
80
|
fulfill: {
|
|
114
81
|
state: {
|
|
115
82
|
visible: '{{!!$self.value}}'
|
|
116
83
|
}
|
|
117
84
|
}
|
|
118
85
|
}, {
|
|
119
|
-
target: '
|
|
86
|
+
target: 'limit',
|
|
120
87
|
fulfill: {
|
|
121
88
|
state: {
|
|
122
89
|
visible: '{{!!$self.value}}'
|
|
@@ -126,7 +93,6 @@ const ModeFieldsets = {
|
|
|
126
93
|
},
|
|
127
94
|
endsOn: {
|
|
128
95
|
type: 'datetime',
|
|
129
|
-
name: 'endsOn',
|
|
130
96
|
title: `{{t("Ends on", { ns: "${_locale.NAMESPACE}" })}}`,
|
|
131
97
|
'x-decorator': 'FormItem',
|
|
132
98
|
'x-component': 'DatePicker',
|
|
@@ -136,7 +102,6 @@ const ModeFieldsets = {
|
|
|
136
102
|
},
|
|
137
103
|
limit: {
|
|
138
104
|
type: 'number',
|
|
139
|
-
name: 'limit',
|
|
140
105
|
title: `{{t("Repeat limit", { ns: "${_locale.NAMESPACE}" })}}`,
|
|
141
106
|
'x-decorator': 'FormItem',
|
|
142
107
|
'x-component': 'InputNumber',
|
|
@@ -150,7 +115,7 @@ const ModeFieldsets = {
|
|
|
150
115
|
collection: _objectSpread(_objectSpread({}, _collection.collection), {}, {
|
|
151
116
|
'x-reactions': [..._collection.collection['x-reactions'], {
|
|
152
117
|
// only full path works
|
|
153
|
-
target: '
|
|
118
|
+
target: 'startsOn',
|
|
154
119
|
fulfill: {
|
|
155
120
|
state: {
|
|
156
121
|
visible: '{{!!$self.value}}'
|
|
@@ -164,7 +129,7 @@ const ModeFieldsets = {
|
|
|
164
129
|
'x-decorator': 'FormItem',
|
|
165
130
|
'x-component': 'OnField',
|
|
166
131
|
'x-reactions': [{
|
|
167
|
-
target: '
|
|
132
|
+
target: 'repeat',
|
|
168
133
|
fulfill: {
|
|
169
134
|
state: {
|
|
170
135
|
visible: '{{!!$self.value}}'
|
|
@@ -175,19 +140,18 @@ const ModeFieldsets = {
|
|
|
175
140
|
},
|
|
176
141
|
repeat: {
|
|
177
142
|
type: 'string',
|
|
178
|
-
name: 'repeat',
|
|
179
143
|
title: `{{t("Repeat mode", { ns: "${_locale.NAMESPACE}" })}}`,
|
|
180
144
|
'x-decorator': 'FormItem',
|
|
181
145
|
'x-component': 'RepeatField',
|
|
182
146
|
'x-reactions': [{
|
|
183
|
-
target: '
|
|
147
|
+
target: 'endsOn',
|
|
184
148
|
fulfill: {
|
|
185
149
|
state: {
|
|
186
150
|
visible: '{{!!$self.value}}'
|
|
187
151
|
}
|
|
188
152
|
}
|
|
189
153
|
}, {
|
|
190
|
-
target: '
|
|
154
|
+
target: 'limit',
|
|
191
155
|
fulfill: {
|
|
192
156
|
state: {
|
|
193
157
|
visible: '{{!!$self.value}}'
|
|
@@ -203,7 +167,6 @@ const ModeFieldsets = {
|
|
|
203
167
|
},
|
|
204
168
|
limit: {
|
|
205
169
|
type: 'number',
|
|
206
|
-
name: 'limit',
|
|
207
170
|
title: `{{t("Repeat limit", { ns: "${_locale.NAMESPACE}" })}}`,
|
|
208
171
|
'x-decorator': 'FormItem',
|
|
209
172
|
'x-component': 'InputNumber',
|
|
@@ -221,29 +184,23 @@ const scheduleModeOptions = [{
|
|
|
221
184
|
value: _constants.SCHEDULE_MODE.COLLECTION_FIELD,
|
|
222
185
|
label: `{{t("Based on date field of collection", { ns: "${_locale.NAMESPACE}" })}}`
|
|
223
186
|
}];
|
|
224
|
-
|
|
225
187
|
const ScheduleConfig = () => {
|
|
226
188
|
const _useForm = (0, _react2().useForm)(),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
const _useState = (0, _react().useState)(config.mode),
|
|
235
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
236
|
-
mode = _useState2[0],
|
|
237
|
-
setMode = _useState2[1];
|
|
238
|
-
|
|
189
|
+
_useForm$values = _useForm.values,
|
|
190
|
+
values = _useForm$values === void 0 ? {} : _useForm$values,
|
|
191
|
+
clearFormGraph = _useForm.clearFormGraph;
|
|
192
|
+
const _useState = (0, _react().useState)(values.mode),
|
|
193
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
194
|
+
mode = _useState2[0],
|
|
195
|
+
setMode = _useState2[1];
|
|
239
196
|
(0, _react2().useFormEffects)(() => {
|
|
240
|
-
(0, _core().onFieldValueChange)('
|
|
197
|
+
(0, _core().onFieldValueChange)('mode', field => {
|
|
241
198
|
setMode(field.value);
|
|
242
|
-
clearFormGraph('
|
|
243
|
-
clearFormGraph('
|
|
244
|
-
clearFormGraph('
|
|
245
|
-
clearFormGraph('
|
|
246
|
-
clearFormGraph('
|
|
199
|
+
clearFormGraph('collection');
|
|
200
|
+
clearFormGraph('startsOn');
|
|
201
|
+
clearFormGraph('repeat');
|
|
202
|
+
clearFormGraph('endsOn');
|
|
203
|
+
clearFormGraph('limit');
|
|
247
204
|
});
|
|
248
205
|
});
|
|
249
206
|
return _react().default.createElement(_react().default.Fragment, null, _react().default.createElement(_client().SchemaComponent, {
|
|
@@ -256,7 +213,8 @@ const ScheduleConfig = () => {
|
|
|
256
213
|
'x-component-props': {
|
|
257
214
|
options: scheduleModeOptions
|
|
258
215
|
},
|
|
259
|
-
required: true
|
|
216
|
+
required: true,
|
|
217
|
+
default: _constants.SCHEDULE_MODE.STATIC
|
|
260
218
|
}
|
|
261
219
|
}), _react().default.createElement(_client().SchemaComponent, {
|
|
262
220
|
schema: {
|
|
@@ -287,5 +245,4 @@ const ScheduleConfig = () => {
|
|
|
287
245
|
}
|
|
288
246
|
}));
|
|
289
247
|
};
|
|
290
|
-
|
|
291
248
|
exports.ScheduleConfig = ScheduleConfig;
|
|
@@ -6,16 +6,36 @@ declare const _default: {
|
|
|
6
6
|
fieldset: {
|
|
7
7
|
config: {
|
|
8
8
|
type: string;
|
|
9
|
-
name: string;
|
|
10
9
|
'x-component': string;
|
|
11
10
|
'x-component-props': {};
|
|
12
11
|
};
|
|
12
|
+
appends: {
|
|
13
|
+
'x-reactions': {
|
|
14
|
+
dependencies: string[];
|
|
15
|
+
fulfill: {
|
|
16
|
+
state: {
|
|
17
|
+
visible: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
type: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
'x-decorator': string;
|
|
25
|
+
'x-component': string;
|
|
26
|
+
'x-component-props': {
|
|
27
|
+
mode: string;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
filter(field: any): boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
13
32
|
};
|
|
14
33
|
scope: {
|
|
15
34
|
useCollectionDataSource: typeof useCollectionDataSource;
|
|
16
35
|
};
|
|
17
36
|
components: {
|
|
18
37
|
ScheduleConfig: () => JSX.Element;
|
|
38
|
+
FieldsSelect: import("react").MemoExoticComponent<import("react").FunctionComponent<Pick<any, string | number | symbol>>>;
|
|
19
39
|
};
|
|
20
40
|
getOptions(config: any, types: any): any[];
|
|
21
41
|
useInitializers(config: any): SchemaInitializerItemOptions | null;
|
|
@@ -4,53 +4,57 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
function _client() {
|
|
9
8
|
const data = require("@nocobase/client");
|
|
10
|
-
|
|
11
9
|
_client = function _client() {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
var _ScheduleConfig = require("./ScheduleConfig");
|
|
19
|
-
|
|
20
15
|
var _constants = require("./constants");
|
|
21
|
-
|
|
22
16
|
var _locale = require("../../locale");
|
|
23
|
-
|
|
24
17
|
var _CollectionFieldInitializers = require("../../components/CollectionFieldInitializers");
|
|
25
|
-
|
|
26
18
|
var _CollectionBlockInitializer = require("../../components/CollectionBlockInitializer");
|
|
27
|
-
|
|
28
19
|
var _variable = require("../../variable");
|
|
29
|
-
|
|
20
|
+
var _collection = require("../../schemas/collection");
|
|
21
|
+
var _FieldsSelect = require("../../components/FieldsSelect");
|
|
22
|
+
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; }
|
|
23
|
+
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; }
|
|
24
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
26
|
+
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); }
|
|
30
27
|
var _default = {
|
|
31
28
|
title: `{{t("Schedule event", { ns: "${_locale.NAMESPACE}" })}}`,
|
|
32
29
|
type: 'schedule',
|
|
33
30
|
fieldset: {
|
|
34
31
|
config: {
|
|
35
|
-
type: '
|
|
36
|
-
name: 'config',
|
|
32
|
+
type: 'void',
|
|
37
33
|
'x-component': 'ScheduleConfig',
|
|
38
34
|
'x-component-props': {}
|
|
39
|
-
}
|
|
35
|
+
},
|
|
36
|
+
appends: _objectSpread(_objectSpread({}, _collection.appends), {}, {
|
|
37
|
+
'x-reactions': [{
|
|
38
|
+
dependencies: ['mode', 'collection'],
|
|
39
|
+
fulfill: {
|
|
40
|
+
state: {
|
|
41
|
+
visible: `{{$deps[0] === ${_constants.SCHEDULE_MODE.COLLECTION_FIELD} && $deps[1]}}`
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}]
|
|
45
|
+
})
|
|
40
46
|
},
|
|
41
47
|
scope: {
|
|
42
48
|
useCollectionDataSource: _client().useCollectionDataSource
|
|
43
49
|
},
|
|
44
50
|
components: {
|
|
45
|
-
ScheduleConfig: _ScheduleConfig.ScheduleConfig
|
|
51
|
+
ScheduleConfig: _ScheduleConfig.ScheduleConfig,
|
|
52
|
+
FieldsSelect: _FieldsSelect.FieldsSelect
|
|
46
53
|
},
|
|
47
|
-
|
|
48
54
|
getOptions(config, types) {
|
|
49
55
|
const _useWorkflowTranslati = (0, _locale.useWorkflowTranslation)(),
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
t = _useWorkflowTranslati.t;
|
|
52
57
|
const options = [];
|
|
53
|
-
|
|
54
58
|
if (!types || types.includes('date')) {
|
|
55
59
|
options.push({
|
|
56
60
|
key: 'date',
|
|
@@ -58,12 +62,10 @@ var _default = {
|
|
|
58
62
|
label: t('Trigger time')
|
|
59
63
|
});
|
|
60
64
|
}
|
|
61
|
-
|
|
62
65
|
if (config.mode === _constants.SCHEDULE_MODE.COLLECTION_FIELD) {
|
|
63
66
|
const fieldOptions = (0, _variable.useCollectionFieldOptions)({
|
|
64
67
|
collection: config.collection
|
|
65
68
|
});
|
|
66
|
-
|
|
67
69
|
if (fieldOptions.length) {
|
|
68
70
|
options.push({
|
|
69
71
|
key: 'data',
|
|
@@ -73,15 +75,12 @@ var _default = {
|
|
|
73
75
|
});
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
|
-
|
|
77
78
|
return options;
|
|
78
79
|
},
|
|
79
|
-
|
|
80
80
|
useInitializers(config) {
|
|
81
81
|
if (!config.collection) {
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
84
|
return {
|
|
86
85
|
type: 'item',
|
|
87
86
|
title: `{{t("Trigger data", { ns: "${_locale.NAMESPACE}" })}}`,
|
|
@@ -90,7 +89,6 @@ var _default = {
|
|
|
90
89
|
dataSource: '{{$context.data}}'
|
|
91
90
|
};
|
|
92
91
|
},
|
|
93
|
-
|
|
94
92
|
initializers: {
|
|
95
93
|
CollectionFieldInitializers: _CollectionFieldInitializers.CollectionFieldInitializers
|
|
96
94
|
}
|
|
@@ -32,13 +32,17 @@ var _default = {
|
|
|
32
32
|
suffixMinutesForHourPeriod: '分钟',
|
|
33
33
|
errorInvalidCron: '不符合 cron 规则的表达式',
|
|
34
34
|
clearButtonText: '清空',
|
|
35
|
-
weekDays: [
|
|
35
|
+
weekDays: [
|
|
36
|
+
// Order is important, the index will be used as value
|
|
36
37
|
'周日', '周一', '周二', '周三', '周四', '周五', '周六'],
|
|
37
|
-
months: [
|
|
38
|
+
months: [
|
|
39
|
+
// Order is important, the index will be used as value
|
|
38
40
|
'一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
39
|
-
altWeekDays: [
|
|
41
|
+
altWeekDays: [
|
|
42
|
+
// Order is important, the index will be used as value
|
|
40
43
|
'周日', '周一', '周二', '周三', '周四', '周五', '周六'],
|
|
41
|
-
altMonths: [
|
|
44
|
+
altMonths: [
|
|
45
|
+
// Order is important, the index will be used as value
|
|
42
46
|
'一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
|
|
43
47
|
};
|
|
44
48
|
exports.default = _default;
|
package/lib/client/utils.d.ts
CHANGED