@tachybase/plugin-field-sequence 0.23.8

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 (42) hide show
  1. package/.turbo/turbo-build.log +12 -0
  2. package/README.md +9 -0
  3. package/README.zh-CN.md +9 -0
  4. package/client.d.ts +2 -0
  5. package/client.js +1 -0
  6. package/dist/client/SequenceFieldProvider.d.ts +2 -0
  7. package/dist/client/index.d.ts +5 -0
  8. package/dist/client/index.js +19 -0
  9. package/dist/client/locale/index.d.ts +3 -0
  10. package/dist/client/sequence.d.ts +259 -0
  11. package/dist/externalVersion.js +13 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.js +39 -0
  14. package/dist/locale/en-US.json +24 -0
  15. package/dist/locale/es-ES.json +24 -0
  16. package/dist/locale/fr-FR.json +24 -0
  17. package/dist/locale/ko_KR.json +24 -0
  18. package/dist/locale/pt-BR.json +24 -0
  19. package/dist/locale/zh-CN.json +25 -0
  20. package/dist/node_modules/cron-parser/LICENSE +21 -0
  21. package/dist/node_modules/cron-parser/lib/date.js +252 -0
  22. package/dist/node_modules/cron-parser/lib/expression.js +1002 -0
  23. package/dist/node_modules/cron-parser/lib/field_compactor.js +70 -0
  24. package/dist/node_modules/cron-parser/lib/field_stringify.js +58 -0
  25. package/dist/node_modules/cron-parser/lib/parser.js +1 -0
  26. package/dist/node_modules/cron-parser/package.json +1 -0
  27. package/dist/node_modules/cron-parser/types/common.d.ts +131 -0
  28. package/dist/node_modules/cron-parser/types/index.d.ts +45 -0
  29. package/dist/node_modules/cron-parser/types/ts3/index.d.ts +28 -0
  30. package/dist/server/Plugin.d.ts +8 -0
  31. package/dist/server/Plugin.js +124 -0
  32. package/dist/server/collections/sequences.d.ts +2 -0
  33. package/dist/server/collections/sequences.js +87 -0
  34. package/dist/server/fields/field-sequence.d.ts +38 -0
  35. package/dist/server/fields/field-sequence.js +386 -0
  36. package/dist/server/index.d.ts +2 -0
  37. package/dist/server/index.js +39 -0
  38. package/dist/server/migrations/20221207022250-sequence-field-key.d.ts +6 -0
  39. package/dist/server/migrations/20221207022250-sequence-field-key.js +85 -0
  40. package/package.json +36 -0
  41. package/server.d.ts +2 -0
  42. package/server.js +1 -0
@@ -0,0 +1,12 @@
1
+
2
+ 
3
+ > @tachybase/plugin-field-sequence@0.23.2 build /Users/seal/Documents/projects/tachybase/packages/plugin-field-sequence
4
+ > tachybase-build --no-dts @tachybase/plugin-field-sequence
5
+
6
+ The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
7
+ @tachybase/plugin-field-sequence: plugin-field-sequence build start
8
+ @tachybase/plugin-field-sequence: build plugin client
9
+ @tachybase/plugin-field-sequence: build plugin server source
10
+ @tachybase/plugin-field-sequence: delete server files
11
+ @tachybase/plugin-field-sequence: build plugin server dependencies
12
+ @tachybase/plugin-field-sequence: These packages cron-parser will be bundled to dist/node_modules. These packages @tachybase/server, @tachybase/utils, @tachybase/database, dayjs, lodash will be exclude.
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # sequence-field
2
+
3
+ English | [中文](./README.zh-CN.md)
4
+
5
+ ## 安装激活
6
+
7
+ 内置插件无需手动安装激活。
8
+
9
+ ## 使用方法
@@ -0,0 +1,9 @@
1
+ # sequence-field
2
+
3
+ [English](./README.md) | 中文
4
+
5
+ ## 安装激活
6
+
7
+ 内置插件无需手动安装激活。
8
+
9
+ ## 使用方法
package/client.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client';
2
+ export { default } from './dist/client';
package/client.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client/index.js');
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SequenceFieldProvider: (props: any) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class SequenceFieldPlugin extends Plugin {
3
+ load(): Promise<void>;
4
+ }
5
+ export default SequenceFieldPlugin;
@@ -0,0 +1,19 @@
1
+ (function(n,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("react"),require("@tachybase/components"),require("@tachybase/schema"),require("@tachybase/utils/client"),require("antd"),require("react-i18next")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","react","@tachybase/components","@tachybase/schema","@tachybase/utils/client","antd","react-i18next"],e):(n=typeof globalThis!="undefined"?globalThis:n||self,e(n["@tachybase/plugin-field-sequence"]={},n["@tachybase/client"],n.jsxRuntime,n.react,n["@tachybase/components"],n["@tachybase/schema"],n["@tachybase/utils"],n.antd,n["react-i18next"]))})(this,function(n,e,t,F,u,y,I,d,m){"use strict";var V=Object.defineProperty,Y=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var q=(n,e,t)=>e in n?V(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,h=(n,e)=>{for(var t in e||(e={}))z.call(e,t)&&q(n,t,e[t]);if(T)for(var t of T(e))B.call(e,t)&&q(n,t,e[t]);return n},S=(n,e)=>Y(n,w(e));var l=(n,e,t)=>q(n,typeof e!="symbol"?e+"":e,t);var A=(n,e,t)=>new Promise((F,u)=>{var y=m=>{try{d(t.next(m))}catch(r){u(r)}},I=m=>{try{d(t.throw(m))}catch(r){u(r)}},d=m=>m.done?F(m.value):Promise.resolve(m.value).then(y,I);d((t=t.apply(n,e)).next())});const r="field-sequence";function j(o,a={}){return e.i18n.t(o,S(h({},a),{ns:r}))}function O(o){const a=e.useCompile(),{setValuesIn:i}=y.useForm(),c=u.ArrayTable.useIndex();return y.useFormEffects(()=>{y.onFieldValueChange(`patterns.${c}.type`,s=>{i(`patterns.${c}.options`,{})})}),t.jsx(d.Select,S(h({popupMatchSelectWidth:!1},o),{children:Object.keys(v).map(s=>t.jsx(d.Select.Option,{value:s,children:a(v[s].title)},s))}))}function P(){const o=e.useCompile(),{values:a}=y.useForm(),i=u.ArrayTable.useIndex(),{type:c,options:s}=a.patterns[i],x=v[c];return t.jsx("div",{className:e.css`
2
+ display: flex;
3
+ gap: 1em;
4
+ flex-wrap: wrap;
5
+ `,children:Object.keys(s).filter(p=>typeof s[p]!="undefined"&&x.optionRenders[p]).map(p=>{const g=x.optionRenders[p],{title:f}=x.fieldset[p];return g?t.jsxs("dl",{className:e.css`
6
+ margin: 0;
7
+ padding: 0;
8
+ `,children:[t.jsx("dt",{children:o(f)}),t.jsx("dd",{className:e.css`
9
+ margin-bottom: 0;
10
+ `,children:t.jsx(g,{value:s[p]},p)})]},p):null})})}const v={string:{title:`{{t("Fixed text", { ns: "${r}" })}}`,optionRenders:{value(o={value:""}){return t.jsx("code",{children:o.value})}},fieldset:{value:{type:"string",title:`{{t("Text content", { ns: "${r}" })}}`,"x-decorator":"FormItem","x-component":"Input"}}},integer:{title:`{{t("Autoincrement", { ns: "${r}" })}}`,optionRenders:{digits:function({value:a}){return t.jsx("code",{children:a})},start:function({value:a}){return t.jsx("code",{children:a})},cycle:e.Cron.ReadPretty},fieldset:{digits:{type:"number",title:`{{t("Digits", { ns: "${r}" })}}`,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{min:1,max:10},required:!0,default:1,"x-reactions":{target:"start",fulfill:{schema:{"x-component-props.max":"{{ 10 ** $self.value - 1 }}"}}}},start:{type:"number",title:`{{t("Start from", { ns: "${r}" })}}`,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{min:0},required:!0,default:0},cycle:{type:"string",title:`{{t("Reset cycle", { ns: "${r}" })}}`,"x-decorator":"FormItem","x-component"({value:o,onChange:a}){const i=[{label:"No reset",value:0},{label:"Daily",value:1,cron:"0 0 * * *"},{label:"Every Monday",value:2,cron:"0 0 * * 1"},{label:"Monthly",value:3,cron:"0 0 1 * *"},{label:"Yearly",value:4,cron:"0 0 1 1 *"},{label:"Customize",value:5,cron:"* * * * *"}],c=typeof o=="undefined"?i[0]:i.find(s=>s.cron==o)||i[5];return t.jsxs("fieldset",{children:[t.jsx(d.Select,{value:c.value,onChange:s=>a(i[s].cron),children:i.map(s=>t.jsx(d.Select.Option,{value:s.value,children:j(s.label)},s.value))}),c.value===5?t.jsx(e.Cron,{value:o,onChange:a,clearButton:!1}):null]})},default:null}}},date:{title:`{{t("Date", { ns: "${r}" })}}`,optionRenders:{format(o={value:"YYYYMMDD"}){return t.jsx("code",{children:o.value})}}}};function C(){const{t:o}=m.useTranslation(),a=e.useCompile(),i=F.useContext(y.SchemaOptionsContext),{values:c,setValuesIn:s}=y.useForm(),x=u.ArrayTable.useIndex(),{type:p,options:g}=c.patterns[x],f=v[p],{token:D}=e.useToken();return f!=null&&f.fieldset?t.jsx(d.Button,{type:"link",onClick:()=>{u.FormDrawer({title:a(f.title),zIndex:D.zIndexPopupBase+1e3},()=>t.jsxs(u.FormLayout,{layout:"vertical",children:[t.jsx(e.SchemaComponentOptions,{scope:i.scope,components:i.components,children:t.jsx(e.SchemaComponent,{schema:{type:"object","x-component":"fieldset",properties:f.fieldset}})}),t.jsx(u.FormButtonGroup,{className:e.css`
11
+ justify-content: flex-end;
12
+ `,children:t.jsx(u.Submit,{onSubmit:b=>b,children:o("Submit")})})]})).open({initialValues:g}).then(b=>{s(`patterns.${x}`,{type:p,options:h({},b)})}).catch(b=>{I.error(b)})},children:o("Configure")}):null}class M extends e.CollectionFieldInterface{constructor(){super(...arguments);l(this,"name","sequence");l(this,"type","object");l(this,"group","advanced");l(this,"order",3);l(this,"title",`{{t("Sequence", { ns: "${r}" })}}`);l(this,"description",`{{t("Automatically generate codes based on configured rules, supporting combinations of dates, numbers, and text.", { ns: "${r}" })}}`);l(this,"sortable",!0);l(this,"default",{type:"sequence",uiSchema:{type:"string","x-component":"Input","x-component-props":{}}});l(this,"availableTypes",["string"]);l(this,"hasDefaultValue",!1);l(this,"filterable",{operators:e.interfacesProperties.operators.string});l(this,"titleUsable",!0);l(this,"properties",S(h({},e.interfacesProperties.defaultProps),{unique:e.interfacesProperties.unique,patterns:{type:"array",title:`{{t("Sequence rules", { ns: "${r}" })}}`,required:!0,"x-decorator":"FormItem","x-component":"ArrayTable",items:{type:"object",properties:{sort:{type:"void","x-component":"ArrayTable.Column","x-component-props":{width:50,title:"",align:"center"},properties:{sort:{type:"void","x-component":"ArrayTable.SortHandle"}}},type:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:`{{t("Type", { ns: "${r}" })}}`},properties:{type:{type:"string",name:"type",required:!0,"x-decorator":"FormItem","x-component":O}}},options:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:`{{t("Rule content", { ns: "${r}" })}}`},properties:{options:{type:"object",name:"options","x-component":P}}},operations:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:`{{t("Operations", { ns: "${r}" })}}`,dataIndex:"operations",fixed:"right",className:e.css`
13
+ > *:not(:last-child) {
14
+ margin-right: 0.5em;
15
+ }
16
+ button {
17
+ padding: 0;
18
+ }
19
+ `},properties:{config:{type:"void",properties:{options:{type:"object","x-component":C}}},remove:{type:"void","x-component":"ArrayTable.Remove"}}}}},properties:{add:{type:"void","x-component":"ArrayTable.Addition","x-component-props":{defaultValue:{type:"integer",options:{digits:1,start:0}}},title:`{{t("Add rule", { ns: "${r}" })}}`}}},inputable:{type:"boolean",title:`{{t("Inputable", { ns: "${r}" })}}`,"x-decorator":"FormItem","x-component":"Checkbox"},match:{type:"boolean",title:`{{t("Match rules", { ns: "${r}" })}}`,"x-decorator":"FormItem","x-component":"Checkbox","x-reactions":{dependencies:["inputable"],fulfill:{state:{value:"{{$deps[0] && $self.value}}",visible:"{{$deps[0] === true}}"}}}}}))}schemaInitialize(i,{block:c,field:s}){return c==="Form"&&Object.assign(i["x-component-props"],{disabled:!s.inputable}),i}}const N=o=>t.jsx(e.SchemaComponentOptions,{components:{RuleConfigForm:C},children:o.children});class $ extends e.Plugin{load(){return A(this,null,function*(){this.app.use(N),this.app.dataSourceManager.addFieldInterfaces([M])})}}n.SequenceFieldPlugin=$,n.default=$,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,3 @@
1
+ export declare const NAMESPACE = "field-sequence";
2
+ export declare function lang(key: string, options?: {}): string;
3
+ export declare function usePluginTranslation(): import("react-i18next").UseTranslationResponse<"field-sequence", undefined>;
@@ -0,0 +1,259 @@
1
+ import React from 'react';
2
+ import { CollectionFieldInterface } from '@tachybase/client';
3
+ import { ISchema } from '@tachybase/schema';
4
+ declare function RuleTypeSelect(props: any): React.JSX.Element;
5
+ declare function RuleOptions(): React.JSX.Element;
6
+ export declare function RuleConfigForm(): React.JSX.Element;
7
+ export declare class SequenceFieldInterface extends CollectionFieldInterface {
8
+ name: string;
9
+ type: string;
10
+ group: string;
11
+ order: number;
12
+ title: string;
13
+ description: string;
14
+ sortable: boolean;
15
+ default: {
16
+ type: string;
17
+ uiSchema: {
18
+ type: string;
19
+ 'x-component': string;
20
+ 'x-component-props': {};
21
+ };
22
+ };
23
+ availableTypes: string[];
24
+ hasDefaultValue: boolean;
25
+ filterable: {
26
+ operators: ({
27
+ label: string;
28
+ value: string;
29
+ selected: boolean;
30
+ noValue?: undefined;
31
+ } | {
32
+ label: string;
33
+ value: string;
34
+ selected?: undefined;
35
+ noValue?: undefined;
36
+ } | {
37
+ label: string;
38
+ value: string;
39
+ noValue: boolean;
40
+ selected?: undefined;
41
+ })[];
42
+ };
43
+ titleUsable: boolean;
44
+ schemaInitialize(schema: ISchema, { block, field }: {
45
+ block: any;
46
+ field: any;
47
+ }): import("@tachybase/schema").Stringify<{
48
+ [key: symbol]: any;
49
+ [key: `x-${string}`]: any;
50
+ [key: `x-${number}`]: any;
51
+ version?: string;
52
+ name?: import("@tachybase/schema").SchemaKey;
53
+ title?: any;
54
+ description?: any;
55
+ default?: any;
56
+ readOnly?: boolean;
57
+ writeOnly?: boolean;
58
+ type?: import("@tachybase/schema").SchemaTypes;
59
+ enum?: import("@tachybase/schema").SchemaEnum<any>;
60
+ const?: any;
61
+ multipleOf?: number;
62
+ maximum?: number;
63
+ exclusiveMaximum?: number;
64
+ minimum?: number;
65
+ exclusiveMinimum?: number;
66
+ maxLength?: number;
67
+ minLength?: number;
68
+ pattern?: string | RegExp;
69
+ maxItems?: number;
70
+ minItems?: number;
71
+ uniqueItems?: boolean;
72
+ maxProperties?: number;
73
+ minProperties?: number;
74
+ required?: string[] | boolean | string;
75
+ format?: string;
76
+ $ref?: string;
77
+ $namespace?: string;
78
+ definitions?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
79
+ properties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
80
+ items?: import("@tachybase/schema").SchemaItems<any, any, any, any, any, any, any, any>;
81
+ additionalItems?: import("@tachybase/schema").Stringify</*elided*/ any>;
82
+ patternProperties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
83
+ additionalProperties?: import("@tachybase/schema").Stringify</*elided*/ any>;
84
+ "x-value"?: any;
85
+ "x-index"?: number;
86
+ "x-pattern"?: any;
87
+ "x-display"?: any;
88
+ "x-validator"?: any;
89
+ "x-decorator"?: any;
90
+ "x-decorator-props"?: any;
91
+ "x-component"?: any;
92
+ "x-component-props"?: any;
93
+ "x-reactions"?: import("@tachybase/schema").SchemaReactions<any>;
94
+ "x-content"?: any;
95
+ "x-data"?: any;
96
+ "x-visible"?: boolean;
97
+ "x-hidden"?: boolean;
98
+ "x-disabled"?: boolean;
99
+ "x-editable"?: boolean;
100
+ "x-read-only"?: boolean;
101
+ "x-read-pretty"?: boolean;
102
+ "x-compile-omitted"?: string[];
103
+ }>;
104
+ properties: {
105
+ unique: {
106
+ type: string;
107
+ 'x-content': string;
108
+ 'x-decorator': string;
109
+ 'x-component': string;
110
+ 'x-disabled': string;
111
+ 'x-reactions': {
112
+ dependencies: string[];
113
+ when: string;
114
+ fulfill: {
115
+ state: {
116
+ value: boolean;
117
+ };
118
+ };
119
+ }[];
120
+ };
121
+ patterns: {
122
+ type: string;
123
+ title: string;
124
+ required: boolean;
125
+ 'x-decorator': string;
126
+ 'x-component': string;
127
+ items: {
128
+ type: string;
129
+ properties: {
130
+ sort: {
131
+ type: string;
132
+ 'x-component': string;
133
+ 'x-component-props': {
134
+ width: number;
135
+ title: string;
136
+ align: string;
137
+ };
138
+ properties: {
139
+ sort: {
140
+ type: string;
141
+ 'x-component': string;
142
+ };
143
+ };
144
+ };
145
+ type: {
146
+ type: string;
147
+ 'x-component': string;
148
+ 'x-component-props': {
149
+ title: string;
150
+ };
151
+ properties: {
152
+ type: {
153
+ type: string;
154
+ name: string;
155
+ required: boolean;
156
+ 'x-decorator': string;
157
+ 'x-component': typeof RuleTypeSelect;
158
+ };
159
+ };
160
+ };
161
+ options: {
162
+ type: string;
163
+ 'x-component': string;
164
+ 'x-component-props': {
165
+ title: string;
166
+ };
167
+ properties: {
168
+ options: {
169
+ type: string;
170
+ name: string;
171
+ 'x-component': typeof RuleOptions;
172
+ };
173
+ };
174
+ };
175
+ operations: {
176
+ type: string;
177
+ 'x-component': string;
178
+ 'x-component-props': {
179
+ title: string;
180
+ dataIndex: string;
181
+ fixed: string;
182
+ className: string;
183
+ };
184
+ properties: {
185
+ config: {
186
+ type: string;
187
+ properties: {
188
+ options: {
189
+ type: string;
190
+ 'x-component': typeof RuleConfigForm;
191
+ };
192
+ };
193
+ };
194
+ remove: {
195
+ type: string;
196
+ 'x-component': string;
197
+ };
198
+ };
199
+ };
200
+ };
201
+ };
202
+ properties: {
203
+ add: {
204
+ type: string;
205
+ 'x-component': string;
206
+ 'x-component-props': {
207
+ defaultValue: {
208
+ type: string;
209
+ options: {
210
+ digits: number;
211
+ start: number;
212
+ };
213
+ };
214
+ };
215
+ title: string;
216
+ };
217
+ };
218
+ };
219
+ inputable: {
220
+ type: string;
221
+ title: string;
222
+ 'x-decorator': string;
223
+ 'x-component': string;
224
+ };
225
+ match: {
226
+ type: string;
227
+ title: string;
228
+ 'x-decorator': string;
229
+ 'x-component': string;
230
+ 'x-reactions': {
231
+ dependencies: string[];
232
+ fulfill: {
233
+ state: {
234
+ value: string;
235
+ visible: string;
236
+ };
237
+ };
238
+ };
239
+ };
240
+ 'uiSchema.title': {
241
+ type: string;
242
+ title: string;
243
+ required: boolean;
244
+ "x-decorator": string;
245
+ "x-component": string;
246
+ };
247
+ name: {
248
+ type: string;
249
+ title: string;
250
+ required: boolean;
251
+ "x-disabled": string;
252
+ "x-decorator": string;
253
+ "x-component": string;
254
+ "x-validator": string;
255
+ description: string;
256
+ };
257
+ };
258
+ }
259
+ export {};
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ "react": "18.3.1",
3
+ "@tachybase/client": "0.23.8",
4
+ "@tachybase/components": "0.23.8",
5
+ "@tachybase/schema": "0.23.8",
6
+ "@tachybase/utils": "0.23.8",
7
+ "antd": "5.22.5",
8
+ "react-i18next": "15.2.0",
9
+ "@tachybase/server": "0.23.8",
10
+ "@tachybase/database": "0.23.8",
11
+ "dayjs": "1.11.13",
12
+ "lodash": "4.17.21"
13
+ };
@@ -0,0 +1,2 @@
1
+ export * from './server';
2
+ export { default } from './server';
package/dist/index.js ADDED
@@ -0,0 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var src_exports = {};
30
+ __export(src_exports, {
31
+ default: () => import_server.default
32
+ });
33
+ module.exports = __toCommonJS(src_exports);
34
+ __reExport(src_exports, require("./server"), module.exports);
35
+ var import_server = __toESM(require("./server"));
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ ...require("./server")
39
+ });
@@ -0,0 +1,24 @@
1
+ {
2
+ "Add rule": "Add rule",
3
+ "Autoincrement": "Autoincrement",
4
+ "Customize": "Customize",
5
+ "Daily": "Daily",
6
+ "Digits": "Digits",
7
+ "Every Monday": "Every Monday",
8
+ "Fixed text": "Fixed text",
9
+ "Inputable": "Inputable",
10
+ "Match rules": "Match rules",
11
+ "Monthly": "Monthly",
12
+ "No reset": "No reset",
13
+ "Operations": "Operations",
14
+ "Reset cycle": "Reset cycle",
15
+ "Rule content": "Rule content",
16
+ "Sequence": "Sequence",
17
+ "Sequence rules": "Sequence rules",
18
+ "Start from": "Start from",
19
+ "Starts from {{value}}": "Starts from {{value}}",
20
+ "Text content": "Text content",
21
+ "Type": "Type",
22
+ "Yearly": "Yearly",
23
+ "{{value}} Digits": "{{value}} Digits"
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "Add rule": "Añadir regla",
3
+ "Autoincrement": "Autoincremento",
4
+ "Customize": "Personalizar",
5
+ "Daily": "Diario",
6
+ "Digits": "Dígitos",
7
+ "Every Monday": "Todos los lunes",
8
+ "Fixed text": "Texto fijo",
9
+ "Inputable": "Inputable",
10
+ "Match rules": "Emparejar reglas",
11
+ "Monthly": "Mensualmente",
12
+ "No reset": "Sin reinicio",
13
+ "Operations": "Operaciones",
14
+ "Reset cycle": "Reinicia ciclo",
15
+ "Rule content": "Contenido de la regla",
16
+ "Sequence": "Secuencia",
17
+ "Sequence rules": "Reglas de secuencia",
18
+ "Start from": "Empezar desde",
19
+ "Starts from {{value}}": " Empieza a partir de {{value}}",
20
+ "Text content": "Contenido del texto",
21
+ "Type": "Tipo",
22
+ "Yearly": "Anual",
23
+ "{{value}} Digits": "{{value}} Dígitos"
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "Add rule": "Ajouter une règle",
3
+ "Autoincrement": "Incrémentation automatique",
4
+ "Customize": "Personnaliser",
5
+ "Daily": "Quotidien",
6
+ "Digits": "Chiffres",
7
+ "Every Monday": "Chaque lundi",
8
+ "Fixed text": "Texte fixe",
9
+ "Inputable": "Modifiable",
10
+ "Match rules": "Règles de correspondance",
11
+ "Monthly": "Mensuel",
12
+ "No reset": "Pas de réinitialisation",
13
+ "Operations": "Opérations",
14
+ "Reset cycle": "Cycle de réinitialisation",
15
+ "Rule content": "Contenu de la règle",
16
+ "Sequence": "Séquence",
17
+ "Sequence rules": "Règles de séquence",
18
+ "Start from": "Commencer à partir de",
19
+ "Starts from {{value}}": "Commence à partir de {{value}}",
20
+ "Text content": "Contenu du texte",
21
+ "Type": "Type",
22
+ "Yearly": "Annuel",
23
+ "{{value}} Digits": "{{value}} chiffres"
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "Add rule": "규칙 추가",
3
+ "Autoincrement": "자동 증가",
4
+ "Customize": "사용자 정의",
5
+ "Daily": "매일",
6
+ "Digits": "자릿수",
7
+ "Every Monday": "매주 월요일",
8
+ "Fixed text": "고정 텍스트",
9
+ "Inputable": "입력 가능",
10
+ "Match rules": "규칙과 일치해야 함",
11
+ "Monthly": "매월",
12
+ "No reset": "초기화 없음",
13
+ "Operations": "조작",
14
+ "Reset cycle": "초기화 주기",
15
+ "Rule content": "규칙 내용",
16
+ "Sequence": "자동 코드",
17
+ "Sequence rules": "순차 규칙",
18
+ "Start from": "시작일",
19
+ "Starts from {{value}}": "{{value}}에서 시작",
20
+ "Text content": "텍스트 내용",
21
+ "Type": "유형",
22
+ "Yearly": "매년",
23
+ "{{value}} Digits": "{{value}} 자리 숫자"
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "Add rule": "Adicionar regra",
3
+ "Autoincrement": "Autoincremento",
4
+ "Customize": "Personalizar",
5
+ "Daily": "Diariamente",
6
+ "Digits": "Dígitos",
7
+ "Every Monday": "Toda segunda-feira",
8
+ "Fixed text": "Texto fixo",
9
+ "Inputable": "Inserível",
10
+ "Match rules": "Regras de correspondência",
11
+ "Monthly": "Mensalmente",
12
+ "No reset": "Sem reinício",
13
+ "Operations": "Operações",
14
+ "Reset cycle": "Ciclo de reinício",
15
+ "Rule content": "Conteúdo da regra",
16
+ "Sequence": "Sequência",
17
+ "Sequence rules": "Regras de sequência",
18
+ "Start from": "Começa a partir de",
19
+ "Starts from {{value}}": "Começa a partir de {{value}}",
20
+ "Text content": "Conteúdo de texto",
21
+ "Type": "Tipo",
22
+ "Yearly": "Anualmente",
23
+ "{{value}} Digits": "{{value}} Dígitos"
24
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Add rule": "添加规则",
3
+ "Autoincrement": "自增数字",
4
+ "Automatically generate codes based on configured rules, supporting combinations of dates, numbers, and text.": "根据配置的规则自动生成编码,支持日期、数字、文本的组合。",
5
+ "Customize": "自定义",
6
+ "Daily": "每天",
7
+ "Digits": "位数",
8
+ "Every Monday": "每周一",
9
+ "Fixed text": "固定文本",
10
+ "Inputable": "可输入",
11
+ "Match rules": "输入必须匹配规则",
12
+ "Monthly": "每月",
13
+ "No reset": "不重置",
14
+ "Operations": "操作",
15
+ "Reset cycle": "重置周期",
16
+ "Rule content": "规则内容",
17
+ "Sequence": "自动编码",
18
+ "Sequence rules": "编号规则",
19
+ "Start from": "起始于",
20
+ "Starts from {{value}}": "从 {{value}} 开始",
21
+ "Text content": "文本内容",
22
+ "Type": "类型",
23
+ "Yearly": "每年",
24
+ "{{value}} Digits": "{{value}} 位数字"
25
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2016 Harri Siirak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.