@tachybase/module-ui-schema 0.23.40 → 0.23.47

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.
@@ -1,11 +1,11 @@
1
1
  module.exports = {
2
- "@tachybase/client": "0.23.40",
3
- "@tachybase/database": "0.23.40",
4
- "@tachybase/cache": "0.23.40",
5
- "@tachybase/utils": "0.23.40",
2
+ "@tachybase/client": "0.23.47",
3
+ "@tachybase/database": "0.23.47",
4
+ "@tachybase/cache": "0.23.47",
5
+ "@tachybase/utils": "0.23.47",
6
6
  "lodash": "4.17.21",
7
- "@tachybase/server": "0.23.40",
8
- "@tachybase/actions": "0.23.40",
9
- "@tachybase/resourcer": "0.23.40",
7
+ "@tachybase/server": "0.23.47",
8
+ "@tachybase/actions": "0.23.47",
9
+ "@tachybase/resourcer": "0.23.47",
10
10
  "sequelize": "6.37.5"
11
11
  };
@@ -21,8 +21,8 @@ __export(ui_schema_dao_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(ui_schema_dao_exports);
23
23
  class UiSchemaDAO {
24
- nodeKeys = ["properties", "patternProperties", "additionalProperties"];
25
24
  constructor(schema) {
25
+ this.nodeKeys = ["properties", "patternProperties", "additionalProperties"];
26
26
  }
27
27
  }
28
28
  // Annotate the CommonJS export names for ESM import in node:
@@ -21,7 +21,6 @@ __export(ui_schema_node_dao_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(ui_schema_node_dao_exports);
23
23
  class UiSchemaNodeDAO {
24
- schemaNode;
25
24
  constructor(schemaNode) {
26
25
  this.schemaNode = schemaNode;
27
26
  }
@@ -22,7 +22,10 @@ __export(filter_form_block_exports, {
22
22
  module.exports = __toCommonJS(filter_form_block_exports);
23
23
  var import_server = require("@tachybase/server");
24
24
  class filter_form_block_default extends import_server.Migration {
25
- appVersion = "<0.9.1-alpha.3";
25
+ constructor() {
26
+ super(...arguments);
27
+ this.appVersion = "<0.9.1-alpha.3";
28
+ }
26
29
  async up() {
27
30
  const result = await this.app.version.satisfies("<0.9.1-alpha.3");
28
31
  if (!result) {
@@ -22,7 +22,10 @@ __export(association_select_exports, {
22
22
  module.exports = __toCommonJS(association_select_exports);
23
23
  var import_server = require("@tachybase/server");
24
24
  class association_select_default extends import_server.Migration {
25
- appVersion = "<0.9.3-alpha.1";
25
+ constructor() {
26
+ super(...arguments);
27
+ this.appVersion = "<0.9.3-alpha.1";
28
+ }
26
29
  async up() {
27
30
  const result = await this.app.version.satisfies("<0.9.2-alpha.5");
28
31
  if (!result) {
@@ -22,7 +22,10 @@ __export(record_picker_exports, {
22
22
  module.exports = __toCommonJS(record_picker_exports);
23
23
  var import_server = require("@tachybase/server");
24
24
  class record_picker_default extends import_server.Migration {
25
- appVersion = "<0.9.3-alpha.1";
25
+ constructor() {
26
+ super(...arguments);
27
+ this.appVersion = "<0.9.3-alpha.1";
28
+ }
26
29
  async up() {
27
30
  const result = await this.app.version.satisfies("<0.9.2-alpha.5");
28
31
  if (!result) {
@@ -22,7 +22,10 @@ __export(association_field_exports, {
22
22
  module.exports = __toCommonJS(association_field_exports);
23
23
  var import_server = require("@tachybase/server");
24
24
  class association_field_default extends import_server.Migration {
25
- appVersion = "<0.9.4-alpha.1";
25
+ constructor() {
26
+ super(...arguments);
27
+ this.appVersion = "<0.9.4-alpha.1";
28
+ }
26
29
  async up() {
27
30
  const result = await this.app.version.satisfies("<0.9.3-alpha.2");
28
31
  if (!result) {
@@ -22,7 +22,10 @@ __export(support_filter_blocks_in_select_record_drawer_exports, {
22
22
  module.exports = __toCommonJS(support_filter_blocks_in_select_record_drawer_exports);
23
23
  var import_server = require("@tachybase/server");
24
24
  class support_filter_blocks_in_select_record_drawer_default extends import_server.Migration {
25
- appVersion = "<0.14.0-alpha.8";
25
+ constructor() {
26
+ super(...arguments);
27
+ this.appVersion = "<0.14.0-alpha.8";
28
+ }
26
29
  async up() {
27
30
  const result = await this.app.version.satisfies("<=0.14.0-alpha.7");
28
31
  if (!result) {
@@ -22,9 +22,12 @@ __export(update_uiSchemas_customDesigner_exports, {
22
22
  module.exports = __toCommonJS(update_uiSchemas_customDesigner_exports);
23
23
  var import_server = require("@tachybase/server");
24
24
  class update_uiSchemas_customDesigner_default extends import_server.Migration {
25
- on = "beforeLoad";
26
- // 'beforeLoad' or 'afterLoad'
27
- appVersion = "<0.21.84";
25
+ constructor() {
26
+ super(...arguments);
27
+ this.on = "beforeLoad";
28
+ // 'beforeLoad' or 'afterLoad'
29
+ this.appVersion = "<0.21.84";
30
+ }
28
31
  async up() {
29
32
  const result = await this.app.db.sequelize.query(`
30
33
  UPDATE public."uiSchemas"
@@ -71,9 +71,12 @@ const settingsRule = {
71
71
  "ActionSettings:customize:bulkEdit": "actionSettings:bulkEdit"
72
72
  };
73
73
  class modify_schema_default extends import_server.Migration {
74
- on = "afterLoad";
75
- // 'beforeLoad' or 'afterLoad'
76
- appVersion = "<0.22.40";
74
+ constructor() {
75
+ super(...arguments);
76
+ this.on = "afterLoad";
77
+ // 'beforeLoad' or 'afterLoad'
78
+ this.appVersion = "<0.22.40";
79
+ }
77
80
  async up() {
78
81
  const sequelize = this.app.db.sequelize;
79
82
  const result = await sequelize.query(`
@@ -64,7 +64,6 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
64
64
  }
65
65
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
66
66
  };
67
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
68
67
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
69
68
  var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
70
69
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
@@ -117,7 +116,7 @@ const _UiSchemaRepository = class _UiSchemaRepository extends (_a = import_datab
117
116
  constructor() {
118
117
  super(...arguments);
119
118
  __runInitializers(_init, 5, this);
120
- __publicField(this, "cache");
119
+ this.cache = void 0;
121
120
  }
122
121
  get uiSchemasTableName() {
123
122
  return this.tableNameAdapter(this.model.tableName);
@@ -24,10 +24,10 @@ var import_hooks = require("./hooks");
24
24
  class ServerHooks {
25
25
  constructor(db) {
26
26
  this.db = db;
27
+ this.hooks = /* @__PURE__ */ new Map();
27
28
  this.listen();
28
29
  this.registerHooks();
29
30
  }
30
- hooks = /* @__PURE__ */ new Map();
31
31
  registerHooks() {
32
32
  import_hooks.hooks.forEach((hook) => this.register(hook.hookType, hook.hookName, hook.hookFunc));
33
33
  }
@@ -40,7 +40,6 @@ var import_repository = __toESM(require("./repository"));
40
40
  var import_server_hooks = require("./server-hooks");
41
41
  var import_model2 = require("./server-hooks/model");
42
42
  class ModuleUiSchema extends import_server.Plugin {
43
- serverHooks;
44
43
  registerRepository() {
45
44
  this.app.db.registerRepositories({
46
45
  UiSchemaRepository: import_repository.default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/module-ui-schema",
3
3
  "displayName": "UI schema storage",
4
- "version": "0.23.40",
4
+ "version": "0.23.47",
5
5
  "description": "Provides centralized UI schema storage service.",
6
6
  "keywords": [
7
7
  "System & security"
@@ -14,16 +14,16 @@
14
14
  "sequelize": "6.37.5"
15
15
  },
16
16
  "peerDependencies": {
17
- "@tachybase/actions": "0.23.40",
18
- "@tachybase/cache": "0.23.40",
19
- "@tachybase/client": "0.23.40",
20
- "@tachybase/database": "0.23.40",
21
- "@tachybase/module-user": "0.23.40",
22
- "@tachybase/resourcer": "0.23.40",
23
- "@tachybase/server": "0.23.40",
24
- "@tachybase/test": "0.23.40",
25
- "@tachybase/module-error-handler": "0.23.40",
26
- "@tachybase/utils": "0.23.40"
17
+ "@tachybase/cache": "0.23.47",
18
+ "@tachybase/client": "0.23.47",
19
+ "@tachybase/database": "0.23.47",
20
+ "@tachybase/actions": "0.23.47",
21
+ "@tachybase/module-error-handler": "0.23.47",
22
+ "@tachybase/module-user": "0.23.47",
23
+ "@tachybase/resourcer": "0.23.47",
24
+ "@tachybase/test": "0.23.47",
25
+ "@tachybase/server": "0.23.47",
26
+ "@tachybase/utils": "0.23.47"
27
27
  },
28
28
  "description.zh-CN": "提供中心化的 UI schema 存储服务。",
29
29
  "displayName.zh-CN": "UI schema 存储服务",