@nocobase/plugin-field-sequence 2.1.0-alpha.12 → 2.1.0-alpha.13

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.
@@ -9,16 +9,16 @@
9
9
 
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
- "@nocobase/client": "2.1.0-alpha.12",
13
- "@nocobase/flow-engine": "2.1.0-alpha.12",
12
+ "@nocobase/client": "2.1.0-alpha.13",
13
+ "@nocobase/flow-engine": "2.1.0-alpha.13",
14
14
  "@formily/antd-v5": "1.2.3",
15
15
  "@formily/core": "2.3.7",
16
16
  "@formily/react": "2.3.7",
17
- "@nocobase/utils": "2.1.0-alpha.12",
17
+ "@nocobase/utils": "2.1.0-alpha.13",
18
18
  "antd": "5.24.2",
19
19
  "react-i18next": "11.18.6",
20
- "@nocobase/server": "2.1.0-alpha.12",
20
+ "@nocobase/server": "2.1.0-alpha.13",
21
21
  "lodash": "4.17.21",
22
- "@nocobase/database": "2.1.0-alpha.12",
22
+ "@nocobase/database": "2.1.0-alpha.13",
23
23
  "dayjs": "1.11.13"
24
24
  };
@@ -1 +1 @@
1
- {"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-03-25T14:07:19.208Z"}
1
+ {"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-03-27T05:50:22.851Z"}
@@ -6,13 +6,11 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
9
  import { Plugin } from '@nocobase/server';
11
10
  import { Registry } from '@nocobase/utils';
12
11
  import { Pattern } from './fields/sequence-field';
13
12
  export default class PluginFieldSequenceServer extends Plugin {
14
13
  patternTypes: Registry<Pattern>;
15
- getFlowSchemaContributions(): FlowSchemaContribution;
16
14
  load(): Promise<void>;
17
15
  install(): Promise<void>;
18
16
  }
@@ -46,13 +46,9 @@ var import_server = require("@nocobase/server");
46
46
  var import_utils = require("@nocobase/utils");
47
47
  var import_sequence_field = require("./fields/sequence-field");
48
48
  var import_lodash = __toESM(require("lodash"));
49
- var import_flow_schema_contributions = require("./flow-schema-contributions");
50
49
  const asyncRandomInt = (0, import_util.promisify)(import_crypto.randomInt);
51
50
  class PluginFieldSequenceServer extends import_server.Plugin {
52
51
  patternTypes = new import_utils.Registry();
53
- getFlowSchemaContributions() {
54
- return import_flow_schema_contributions.flowSchemaContribution;
55
- }
56
52
  async load() {
57
53
  const { app, db, options } = this;
58
54
  db.registerFieldTypes({
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Automatically generate codes based on configured rules, supporting combinations of dates, numbers, and text.",
7
7
  "description.ru-RU": "Автоматически генерирует коды по заданным правилам с поддержкой комбинаций дат, чисел и текста.",
8
8
  "description.zh-CN": "根据配置的规则自动生成编码,支持日期、数字、文本的组合。",
9
- "version": "2.1.0-alpha.12",
9
+ "version": "2.1.0-alpha.13",
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/field-sequence",
@@ -32,7 +32,7 @@
32
32
  "@nocobase/test": "2.x",
33
33
  "@nocobase/utils": "2.x"
34
34
  },
35
- "gitHead": "f12c4a75470590b1670ce54510b96ef94c2cd7a2",
35
+ "gitHead": "2807a8948412d9c235115a31a81a66f7c82dd173",
36
36
  "keywords": [
37
37
  "Collection fields"
38
38
  ]
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
- export declare const flowSchemaContribution: FlowSchemaContribution;
@@ -1,60 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var flow_schema_contributions_exports = {};
28
- __export(flow_schema_contributions_exports, {
29
- flowSchemaContribution: () => flowSchemaContribution
30
- });
31
- module.exports = __toCommonJS(flow_schema_contributions_exports);
32
- const flowSchemaContribution = {
33
- fieldBindings: [
34
- {
35
- context: "editable-field",
36
- use: "InputFieldModel",
37
- interfaces: ["sequence"],
38
- isDefault: true
39
- },
40
- {
41
- context: "display-field",
42
- use: "DisplayTextFieldModel",
43
- interfaces: ["sequence"],
44
- isDefault: true
45
- },
46
- {
47
- context: "filter-field",
48
- use: "InputFieldModel",
49
- interfaces: ["sequence"],
50
- isDefault: true
51
- }
52
- ],
53
- defaults: {
54
- source: "plugin"
55
- }
56
- };
57
- // Annotate the CommonJS export names for ESM import in node:
58
- 0 && (module.exports = {
59
- flowSchemaContribution
60
- });