@nocobase/plugin-workflow-date-calculation 2.0.3

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 (47) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +99 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/DateCalculationInstruction.d.ts +162 -0
  6. package/dist/client/constants.d.ts +5 -0
  7. package/dist/client/dateFunctions.d.ts +386 -0
  8. package/dist/client/e189cd1809d7de1b.js +10 -0
  9. package/dist/client/f46a3514e6461e53.js +10 -0
  10. package/dist/client/index.d.ts +7 -0
  11. package/dist/client/index.js +10 -0
  12. package/dist/externalVersion.js +24 -0
  13. package/dist/index.d.ts +11 -0
  14. package/dist/index.js +50 -0
  15. package/dist/locale/de-DE.json +52 -0
  16. package/dist/locale/en-US.json +52 -0
  17. package/dist/locale/es-ES.json +52 -0
  18. package/dist/locale/fr-FR.json +52 -0
  19. package/dist/locale/hu-HU.json +52 -0
  20. package/dist/locale/id-ID.json +52 -0
  21. package/dist/locale/index.d.ts +12 -0
  22. package/dist/locale/index.js +54 -0
  23. package/dist/locale/it-IT.json +52 -0
  24. package/dist/locale/ja-JP.json +52 -0
  25. package/dist/locale/ko-KR.json +52 -0
  26. package/dist/locale/ko_KR.json +47 -0
  27. package/dist/locale/nl-NL.json +52 -0
  28. package/dist/locale/pt-BR.json +52 -0
  29. package/dist/locale/ru-RU.json +52 -0
  30. package/dist/locale/tr-TR.json +52 -0
  31. package/dist/locale/uk-UA.json +52 -0
  32. package/dist/locale/vi-VN.json +52 -0
  33. package/dist/locale/zh-CN.json +52 -0
  34. package/dist/locale/zh-TW.json +52 -0
  35. package/dist/server/DateCalculationInstruction.d.ts +43 -0
  36. package/dist/server/DateCalculationInstruction.js +93 -0
  37. package/dist/server/dateFunction.d.ts +15 -0
  38. package/dist/server/dateFunction.js +205 -0
  39. package/dist/server/index.d.ts +9 -0
  40. package/dist/server/index.js +42 -0
  41. package/dist/server/plugin.d.ts +11 -0
  42. package/dist/server/plugin.js +68 -0
  43. package/dist/utils/index.d.ts +1 -0
  44. package/dist/utils/index.js +39 -0
  45. package/package.json +30 -0
  46. package/server.d.ts +2 -0
  47. package/server.js +1 -0
@@ -0,0 +1,386 @@
1
+ import React from 'react';
2
+ import { MenuItemGroupType } from 'antd/es/menu/interface';
3
+ export declare function useFunctionOptions(inputType?: string): MenuItemGroupType<import("antd/es/menu/interface").MenuItemType>[];
4
+ export declare const functions: {
5
+ add: {
6
+ key: string;
7
+ title: string;
8
+ groupKey: string;
9
+ inputType: string;
10
+ outputType: string;
11
+ fieldset: {
12
+ compact: {
13
+ type: string;
14
+ 'x-component': string;
15
+ properties: {
16
+ number: {
17
+ 'x-component-props': {
18
+ changeOnSelect: boolean;
19
+ useTypedConstant: (string | {
20
+ precision: number;
21
+ })[][];
22
+ };
23
+ 'x-component': string;
24
+ default: number;
25
+ };
26
+ unit: {
27
+ type: string;
28
+ 'x-component': string;
29
+ 'x-component-props': {
30
+ className: string;
31
+ };
32
+ enum: {
33
+ label: string;
34
+ value: string;
35
+ }[];
36
+ default: string;
37
+ };
38
+ };
39
+ };
40
+ };
41
+ defaultParams: () => {
42
+ number: number;
43
+ unit: string;
44
+ };
45
+ };
46
+ subtract: {
47
+ key: string;
48
+ title: string;
49
+ groupKey: string;
50
+ inputType: string;
51
+ outputType: string;
52
+ fieldset: {
53
+ compact: {
54
+ type: string;
55
+ 'x-component': string;
56
+ properties: {
57
+ number: {
58
+ 'x-component-props': {
59
+ changeOnSelect: boolean;
60
+ useTypedConstant: (string | {
61
+ precision: number;
62
+ })[][];
63
+ };
64
+ 'x-component': string;
65
+ default: number;
66
+ };
67
+ unit: {
68
+ type: string;
69
+ 'x-component': string;
70
+ 'x-component-props': {
71
+ className: string;
72
+ };
73
+ enum: {
74
+ label: string;
75
+ value: string;
76
+ }[];
77
+ };
78
+ };
79
+ };
80
+ };
81
+ defaultParams: () => {
82
+ number: number;
83
+ unit: string;
84
+ };
85
+ };
86
+ diff: {
87
+ key: string;
88
+ title: string;
89
+ groupKey: string;
90
+ inputType: string;
91
+ outputType: string;
92
+ fieldset: {
93
+ date: {
94
+ type: string;
95
+ 'x-component': string;
96
+ 'x-component-props': {
97
+ useTypedConstant: string[];
98
+ variableOptions: {
99
+ types: string[];
100
+ };
101
+ };
102
+ };
103
+ unit: {
104
+ type: string;
105
+ 'x-component': string;
106
+ 'x-component-props': {
107
+ placeholder: string;
108
+ className: string;
109
+ };
110
+ enum: {
111
+ label: string;
112
+ value: string;
113
+ }[];
114
+ };
115
+ isAbs: {
116
+ type: string;
117
+ 'x-component': string;
118
+ 'x-component-props': {
119
+ className: string;
120
+ };
121
+ 'x-content': string;
122
+ };
123
+ round: {
124
+ type: string;
125
+ 'x-component': string;
126
+ 'x-component-props': {
127
+ allowClear: boolean;
128
+ placeholder: string;
129
+ className: string;
130
+ };
131
+ enum: ({
132
+ value: boolean;
133
+ label: string;
134
+ } | {
135
+ value: number;
136
+ label: string;
137
+ })[];
138
+ };
139
+ };
140
+ defaultParams: () => {
141
+ date: Date;
142
+ unit: string;
143
+ isAbs: boolean;
144
+ round: boolean;
145
+ };
146
+ };
147
+ get: {
148
+ key: string;
149
+ title: string;
150
+ groupKey: string;
151
+ inputType: string;
152
+ outputType: string;
153
+ fieldset: {
154
+ unit: {
155
+ type: string;
156
+ 'x-component': string;
157
+ 'x-component-props': {
158
+ placeholder: string;
159
+ className: string;
160
+ };
161
+ enum: {
162
+ label: string;
163
+ value: string;
164
+ }[];
165
+ default: string;
166
+ };
167
+ };
168
+ defaultParams: () => {
169
+ unit: string;
170
+ };
171
+ };
172
+ toTimestamp: {
173
+ key: string;
174
+ title: string;
175
+ groupKey: string;
176
+ inputType: string;
177
+ outputType: string;
178
+ fieldset: {
179
+ unitBeforeText: {
180
+ type: string;
181
+ 'x-component': string;
182
+ 'x-content': string;
183
+ };
184
+ unit: {
185
+ type: string;
186
+ 'x-component': string;
187
+ 'x-component-props': {
188
+ placeholder: string;
189
+ className: string;
190
+ };
191
+ enum: {
192
+ label: string;
193
+ value: string;
194
+ }[];
195
+ default: string;
196
+ };
197
+ };
198
+ };
199
+ tsToDate: {
200
+ key: string;
201
+ title: string;
202
+ groupKey: string;
203
+ inputType: string;
204
+ outputType: string;
205
+ fieldset: {
206
+ unitBeforeText: {
207
+ type: string;
208
+ 'x-component': string;
209
+ 'x-content': string;
210
+ };
211
+ unit: {
212
+ type: string;
213
+ 'x-component': string;
214
+ 'x-component-props': {
215
+ placeholder: string;
216
+ className: string;
217
+ };
218
+ enum: {
219
+ label: string;
220
+ value: string;
221
+ }[];
222
+ default: string;
223
+ };
224
+ };
225
+ };
226
+ startOfTime: {
227
+ key: string;
228
+ title: string;
229
+ groupKey: string;
230
+ inputType: string;
231
+ outputType: string;
232
+ fieldset: {
233
+ unit: {
234
+ type: string;
235
+ 'x-component': string;
236
+ 'x-component-props': {
237
+ placeholder: string;
238
+ className: string;
239
+ };
240
+ enum: {
241
+ label: string;
242
+ value: string;
243
+ }[];
244
+ default: string;
245
+ };
246
+ };
247
+ defaultParams: () => {
248
+ unit: string;
249
+ };
250
+ };
251
+ endOfTime: {
252
+ key: string;
253
+ title: string;
254
+ groupKey: string;
255
+ inputType: string;
256
+ outputType: string;
257
+ fieldset: {
258
+ unit: {
259
+ type: string;
260
+ 'x-component': string;
261
+ 'x-component-props': {
262
+ placeholder: string;
263
+ className: string;
264
+ };
265
+ enum: {
266
+ label: string;
267
+ value: string;
268
+ }[];
269
+ default: string;
270
+ };
271
+ };
272
+ defaultParams: () => {
273
+ unit: string;
274
+ };
275
+ };
276
+ isLeapYear: {
277
+ key: string;
278
+ title: string;
279
+ groupKey: string;
280
+ inputType: string;
281
+ outputType: string;
282
+ fieldset: {};
283
+ };
284
+ format: {
285
+ key: string;
286
+ title: string;
287
+ groupKey: string;
288
+ inputType: string;
289
+ outputType: string;
290
+ fieldset: {
291
+ format: {
292
+ type: string;
293
+ 'x-component': string;
294
+ 'x-component-props': {
295
+ placeholder: string;
296
+ };
297
+ default: string;
298
+ };
299
+ };
300
+ defaultParams: () => {
301
+ format: string;
302
+ };
303
+ };
304
+ transDuration: {
305
+ key: string;
306
+ title: string;
307
+ groupKey: string;
308
+ inputType: string;
309
+ outputType: string;
310
+ fieldset: {
311
+ unitBeforeText: {
312
+ type: string;
313
+ 'x-component': string;
314
+ 'x-content': string;
315
+ };
316
+ unitBefore: {
317
+ type: string;
318
+ 'x-component': string;
319
+ 'x-component-props': {
320
+ placeholder: string;
321
+ className: string;
322
+ };
323
+ enum: {
324
+ label: string;
325
+ value: string;
326
+ }[];
327
+ default: string;
328
+ };
329
+ unitAfterText: {
330
+ type: string;
331
+ 'x-component': string;
332
+ 'x-content': string;
333
+ };
334
+ unitAfter: {
335
+ type: string;
336
+ 'x-component': string;
337
+ 'x-component-props': {
338
+ placeholder: string;
339
+ className: string;
340
+ };
341
+ enum: {
342
+ label: string;
343
+ value: string;
344
+ }[];
345
+ default: string;
346
+ };
347
+ round: {
348
+ type: string;
349
+ 'x-component': string;
350
+ 'x-component-props': {
351
+ allowClear: boolean;
352
+ className: string;
353
+ };
354
+ enum: ({
355
+ value: boolean;
356
+ label: string;
357
+ } | {
358
+ value: number;
359
+ label: string;
360
+ })[];
361
+ };
362
+ };
363
+ defaultParams: () => {
364
+ unitBefore: string;
365
+ unitAfter: string;
366
+ round: boolean;
367
+ };
368
+ };
369
+ changeTimezone: {
370
+ key: string;
371
+ title: string;
372
+ groupKey: string;
373
+ inputType: string;
374
+ outputType: string;
375
+ fieldset: {
376
+ timezone: {
377
+ type: string;
378
+ 'x-component': React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
379
+ 'x-component-props': {
380
+ placeholder: string;
381
+ showSearch: boolean;
382
+ };
383
+ };
384
+ };
385
+ };
386
+ };