adminizer 4.1.0-build.27 → 4.1.0-build.29

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.
@@ -12,7 +12,8 @@ export class AccessRightsHelper {
12
12
  }
13
13
  for (let token of this._tokens) {
14
14
  if (token.id === accessRightsToken.id) {
15
- throw new Error(`Adminpanel > Can not register token: Token with this id ["${token.id}"] already registered`);
15
+ Adminizer.log.error(`Adminpanel > Can not register token: Token with this id ["${token.id}"] already registered`);
16
+ continue;
16
17
  }
17
18
  }
18
19
  this._tokens.push(accessRightsToken);
@@ -435,7 +435,7 @@ export declare function getControlsOptions(fieldConfig: Field["config"], req: Re
435
435
  };
436
436
  path: {};
437
437
  };
438
- export declare function inputText(type: string, isIn: string[]): "email" | "password" | "date" | "time" | "number" | "color" | "month" | "week" | "range" | "text" | "select" | "datetime-local";
438
+ export declare function inputText(type: string, isIn: string[]): "email" | "password" | "number" | "date" | "time" | "color" | "month" | "week" | "range" | "text" | "select" | "datetime-local";
439
439
  export declare function getControl(req: ReqType, type: ControlType, name: string | undefined, defaultControlName: string): AbstractControls;
440
440
  export declare function setSelectMany(isIn: string[], value: string[] | undefined): {
441
441
  initOptions: {
@@ -163,12 +163,6 @@ export interface AdminpanelConfig {
163
163
  * Navigation
164
164
  */
165
165
  navigation?: NavigationConfig;
166
- /**
167
- * Path to modules views
168
- */
169
- modulesViewsPath?: string;
170
- /** @deprecated (module manager can be used it somehow) */
171
- templateRootPath?: string;
172
166
  mediamanager?: MediaManagerConfig;
173
167
  /** System settings */
174
168
  system?: {
@@ -99,7 +99,7 @@ export function mapSequelizeToWaterline(model) {
99
99
  result[a.foreignKey]["primaryKeyForAssociation"] = true;
100
100
  result[alias] = {
101
101
  type: "association",
102
- model: a.target.name.toLowerCase(),
102
+ model: a.target.name,
103
103
  via: a.foreignKey,
104
104
  };
105
105
  break;
@@ -109,7 +109,7 @@ export function mapSequelizeToWaterline(model) {
109
109
  result[a.foreignKey]["primaryKeyForAssociation"] = true;
110
110
  result[alias] = {
111
111
  type: "association",
112
- model: a.target.name.toLowerCase(),
112
+ model: a.target.name,
113
113
  via: a.foreignKey,
114
114
  };
115
115
  break;
@@ -118,7 +118,7 @@ export function mapSequelizeToWaterline(model) {
118
118
  const a = assoc;
119
119
  result[alias] = {
120
120
  type: "association-many",
121
- collection: a.target.name.toLowerCase(),
121
+ collection: a.target.name,
122
122
  via: a.foreignKey,
123
123
  };
124
124
  break;
@@ -127,7 +127,7 @@ export function mapSequelizeToWaterline(model) {
127
127
  const a = assoc;
128
128
  result[alias] = {
129
129
  type: "association-many",
130
- collection: a.target.name.toLowerCase(),
130
+ collection: a.target.name,
131
131
  via: a.otherKey,
132
132
  };
133
133
  break;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adminizer",
3
3
  "type": "module",
4
- "version": "4.1.0-build.27",
4
+ "version": "4.1.0-build.29",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "vitest --reporter verbose",