@nocobase/plugin-field-sort 2.1.0-alpha.11 → 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.
@@ -10,13 +10,13 @@
10
10
  module.exports = {
11
11
  "antd": "5.24.2",
12
12
  "react": "18.2.0",
13
- "@nocobase/flow-engine": "2.1.0-alpha.11",
14
- "@nocobase/client": "2.1.0-alpha.11",
13
+ "@nocobase/flow-engine": "2.1.0-alpha.13",
14
+ "@nocobase/client": "2.1.0-alpha.13",
15
15
  "lodash": "4.17.21",
16
- "@nocobase/database": "2.1.0-alpha.11",
17
- "@nocobase/actions": "2.1.0-alpha.11",
18
- "@nocobase/server": "2.1.0-alpha.11",
19
- "@nocobase/data-source-manager": "2.1.0-alpha.11",
16
+ "@nocobase/database": "2.1.0-alpha.13",
17
+ "@nocobase/actions": "2.1.0-alpha.13",
18
+ "@nocobase/server": "2.1.0-alpha.13",
19
+ "@nocobase/data-source-manager": "2.1.0-alpha.13",
20
20
  "sequelize": "6.35.2",
21
- "@nocobase/lock-manager": "2.1.0-alpha.11"
21
+ "@nocobase/lock-manager": "2.1.0-alpha.13"
22
22
  };
@@ -6,11 +6,9 @@
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
  export declare class PluginFieldSortServer extends Plugin {
12
11
  afterAdd(): Promise<void>;
13
- getFlowSchemaContributions(): FlowSchemaContribution;
14
12
  beforeLoad(): Promise<void>;
15
13
  load(): Promise<void>;
16
14
  install(): Promise<void>;
@@ -34,13 +34,9 @@ var import_server = require("@nocobase/server");
34
34
  var import_data_source_manager = require("@nocobase/data-source-manager");
35
35
  var import_sort_field = require("./sort-field");
36
36
  var import_action = require("./action");
37
- var import_flow_schema_contributions = require("./flow-schema-contributions");
38
37
  class PluginFieldSortServer extends import_server.Plugin {
39
38
  async afterAdd() {
40
39
  }
41
- getFlowSchemaContributions() {
42
- return import_flow_schema_contributions.flowSchemaContribution;
43
- }
44
40
  async beforeLoad() {
45
41
  const { lockManager } = this.app;
46
42
  class SortFieldClass extends import_sort_field.SortField {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-field-sort",
3
- "version": "2.1.0-alpha.11",
3
+ "version": "2.1.0-alpha.13",
4
4
  "license": "Apache-2.0",
5
5
  "displayName": "Collection field: Sort",
6
6
  "displayName.ru-RU": "Поле коллекции: Сортировка",
@@ -22,5 +22,5 @@
22
22
  "keywords": [
23
23
  "Collection fields"
24
24
  ],
25
- "gitHead": "bb96d633a6371afb586072ff516bd0613c757db0"
25
+ "gitHead": "2807a8948412d9c235115a31a81a66f7c82dd173"
26
26
  }
@@ -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,87 +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 sortFieldModelSchemaContribution = {
33
- use: "SortFieldModel",
34
- title: "Sort",
35
- source: "plugin",
36
- strict: false,
37
- exposure: "internal",
38
- stepParamsSchema: {
39
- type: "object",
40
- properties: {
41
- fieldSettings: {
42
- type: "object",
43
- properties: {
44
- init: {
45
- type: "object",
46
- properties: {
47
- dataSourceKey: { type: "string" },
48
- collectionName: { type: "string" },
49
- fieldPath: { type: "string" }
50
- },
51
- additionalProperties: true
52
- }
53
- },
54
- additionalProperties: true
55
- }
56
- },
57
- additionalProperties: true
58
- },
59
- skeleton: {
60
- uid: "todo-sort-field-model",
61
- use: "SortFieldModel"
62
- }
63
- };
64
- const flowSchemaContribution = {
65
- models: [sortFieldModelSchemaContribution],
66
- fieldBindings: [
67
- {
68
- context: "editable-field",
69
- use: "SortFieldModel",
70
- interfaces: ["sort"],
71
- isDefault: true
72
- },
73
- {
74
- context: "display-field",
75
- use: "DisplayNumberFieldModel",
76
- interfaces: ["sort"],
77
- isDefault: true
78
- }
79
- ],
80
- defaults: {
81
- source: "plugin"
82
- }
83
- };
84
- // Annotate the CommonJS export names for ESM import in node:
85
- 0 && (module.exports = {
86
- flowSchemaContribution
87
- });