adminizer 4.3.0-build.121 → 4.3.0-build.122
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.
- package/assets/app.js +2 -2
- package/assets/{catalog-CJ5JpPUx.js → catalog-Bd15EVlr.js} +5 -5
- package/assets/manifest.json +1 -1
- package/controllers/catalog/FrontendCatalogAdapter.d.ts +2 -2
- package/controllers/catalog/FrontentCatalogAdapter.d.ts +2 -2
- package/lib/catalog/AbstractCatalog.d.ts +4 -4
- package/lib/catalog/Navigation.js +2 -2
- package/package.json +1 -1
package/assets/manifest.json
CHANGED
|
@@ -33,11 +33,11 @@ export declare class FrontendCatalog {
|
|
|
33
33
|
setId(id: string): void;
|
|
34
34
|
getItemType(type: string): import("../../lib/catalog/AbstractCatalog").BaseItem<Item>;
|
|
35
35
|
getAddTemplate(item: any, req: ReqType): Promise<{
|
|
36
|
-
type: "component" | "navigation.group" | "navigation.link" | "model";
|
|
36
|
+
type: "component" | "navigation.group" | "navigation.link" | "model" | "model.link";
|
|
37
37
|
data: any;
|
|
38
38
|
}>;
|
|
39
39
|
getEditTemplate(item: any, id: string | number, req: ReqType, modelId: string | number): Promise<{
|
|
40
|
-
type: "component" | "navigation.group" | "navigation.link" | "model";
|
|
40
|
+
type: "component" | "navigation.group" | "navigation.link" | "model" | "model.link";
|
|
41
41
|
data: any;
|
|
42
42
|
}>;
|
|
43
43
|
getitemTypes(): {
|
|
@@ -33,11 +33,11 @@ export declare class FrontendCatalog {
|
|
|
33
33
|
setId(id: string): void;
|
|
34
34
|
getItemType(type: string): import("../../lib/catalog/AbstractCatalog").BaseItem<Item>;
|
|
35
35
|
getAddTemplate(item: any, req: ReqType): Promise<{
|
|
36
|
-
type: "component" | "navigation.group" | "navigation.link" | "model";
|
|
36
|
+
type: "component" | "navigation.group" | "navigation.link" | "model" | "model.link";
|
|
37
37
|
data: any;
|
|
38
38
|
}>;
|
|
39
39
|
getEditTemplate(item: any, id: string | number, req: ReqType, modelId: string | number): Promise<{
|
|
40
|
-
type: "component" | "navigation.group" | "navigation.link" | "model";
|
|
40
|
+
type: "component" | "navigation.group" | "navigation.link" | "model" | "model.link";
|
|
41
41
|
data: any;
|
|
42
42
|
}>;
|
|
43
43
|
getitemTypes(): {
|
|
@@ -92,7 +92,7 @@ export declare abstract class BaseItem<T extends Item> {
|
|
|
92
92
|
* @param req
|
|
93
93
|
*/
|
|
94
94
|
abstract getAddTemplate(req: ReqType): Promise<{
|
|
95
|
-
type: 'component' | 'navigation.group' | 'navigation.link' | 'model';
|
|
95
|
+
type: 'component' | 'navigation.group' | 'navigation.link' | 'model' | 'model.link';
|
|
96
96
|
data: any;
|
|
97
97
|
}>;
|
|
98
98
|
/**
|
|
@@ -103,7 +103,7 @@ export declare abstract class BaseItem<T extends Item> {
|
|
|
103
103
|
* @param modelId
|
|
104
104
|
*/
|
|
105
105
|
abstract getEditTemplate(id: string | number, catalogId: string, req: ReqType, modelId?: string | number): Promise<{
|
|
106
|
-
type: 'component' | 'navigation.group' | 'navigation.link' | 'model';
|
|
106
|
+
type: 'component' | 'navigation.group' | 'navigation.link' | 'model' | 'model.link';
|
|
107
107
|
data: any;
|
|
108
108
|
}>;
|
|
109
109
|
_getChilds(parentId: string | number, catalogId: string, req?: ReqType): Promise<Item[]>;
|
|
@@ -232,7 +232,7 @@ export declare abstract class AbstractCatalog {
|
|
|
232
232
|
* @param modelId
|
|
233
233
|
*/
|
|
234
234
|
getEditTemplate(item: Item, id: string | number, req: ReqType, modelId?: string | number): Promise<{
|
|
235
|
-
type: "component" | "navigation.group" | "navigation.link" | "model";
|
|
235
|
+
type: "component" | "navigation.group" | "navigation.link" | "model" | "model.link";
|
|
236
236
|
data: any;
|
|
237
237
|
}>;
|
|
238
238
|
/**
|
|
@@ -241,7 +241,7 @@ export declare abstract class AbstractCatalog {
|
|
|
241
241
|
* @param req
|
|
242
242
|
*/
|
|
243
243
|
getAddTemplate(item: Item, req: ReqType): Promise<{
|
|
244
|
-
type: "component" | "navigation.group" | "navigation.link" | "model";
|
|
244
|
+
type: "component" | "navigation.group" | "navigation.link" | "model" | "model.link";
|
|
245
245
|
data: any;
|
|
246
246
|
}>;
|
|
247
247
|
addActionHandler(actionHandler: ActionHandler): void;
|
|
@@ -274,7 +274,7 @@ class NavigationItem extends AbstractItem {
|
|
|
274
274
|
* // TODO: need passing custom React module
|
|
275
275
|
*/
|
|
276
276
|
async getAddTemplate(req) {
|
|
277
|
-
let type = 'model';
|
|
277
|
+
let type = 'model.link';
|
|
278
278
|
// Direct call by model adapter
|
|
279
279
|
let itemsDB = await this.adminizer.modelHandler.model.get(this.model)["_find"]({});
|
|
280
280
|
let items = itemsDB.map((item) => {
|
|
@@ -304,7 +304,7 @@ class NavigationItem extends AbstractItem {
|
|
|
304
304
|
}
|
|
305
305
|
async getEditTemplate(id, catalogId, req, modelId) {
|
|
306
306
|
return Promise.resolve({
|
|
307
|
-
type: 'model',
|
|
307
|
+
type: 'model.link',
|
|
308
308
|
data: {
|
|
309
309
|
item: await this.find(id, catalogId)
|
|
310
310
|
}
|