aril 1.1.64 → 1.1.66
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/boot/config/api/src/api.service.d.ts +1 -0
- package/esm2022/boot/config/api/src/api.service.mjs +15 -3
- package/esm2022/boot/host/src/bootstrap.mjs +4 -2
- package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +63 -30
- package/esm2022/ui-business/assetPicker/src/interface.mjs +1 -1
- package/esm2022/util/directives/aril-util-directives.mjs +5 -0
- package/esm2022/util/directives/index.mjs +4 -0
- package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +298 -0
- package/esm2022/util/directives/src/detail-page-customization/index.mjs +3 -0
- package/esm2022/util/directives/src/detail-page-customization/models.mjs +4 -0
- package/esm2022/util/directives/src/dialog-component/plugin-dialog.component.mjs +25 -0
- package/esm2022/util/directives/src/dialog-service/plugin-dialog.service.mjs +16 -0
- package/fesm2022/aril-boot-config-api.mjs +15 -3
- package/fesm2022/aril-boot-config-api.mjs.map +1 -1
- package/fesm2022/aril-boot-host.mjs +3 -1
- package/fesm2022/aril-boot-host.mjs.map +1 -1
- package/fesm2022/aril-ui-business-assetPicker.mjs +62 -29
- package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
- package/fesm2022/aril-util-directives.mjs +343 -0
- package/fesm2022/aril-util-directives.mjs.map +1 -0
- package/fesm2022/aril.mjs +3 -1
- package/fesm2022/aril.mjs.map +1 -1
- package/package.json +72 -66
- package/ui-business/assetPicker/src/asset-picker.component.d.ts +7 -2
- package/ui-business/assetPicker/src/interface.d.ts +1 -0
- package/util/directives/index.d.ts +3 -0
- package/util/directives/src/detail-page-customization/detail-page-customization.directive.d.ts +26 -0
- package/util/directives/src/detail-page-customization/index.d.ts +2 -0
- package/util/directives/src/detail-page-customization/models.d.ts +53 -0
- package/util/directives/src/dialog-component/plugin-dialog.component.d.ts +10 -0
- package/util/directives/src/dialog-service/plugin-dialog.service.d.ts +7 -0
package/util/directives/src/detail-page-customization/detail-page-customization.directive.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DetailComponent } from './models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DetailPageCustomizationDirective {
|
|
4
|
+
private readonly detailComponent;
|
|
5
|
+
private readonly route;
|
|
6
|
+
private readonly router;
|
|
7
|
+
private readonly dialogService;
|
|
8
|
+
private readonly translocoService;
|
|
9
|
+
private viewsInitialized;
|
|
10
|
+
private config;
|
|
11
|
+
private getRouteConfig;
|
|
12
|
+
private getProcessedTabs;
|
|
13
|
+
constructor(detailComponent: DetailComponent);
|
|
14
|
+
private onViewsReady;
|
|
15
|
+
private updateTabVisibility;
|
|
16
|
+
hideTabByPosition(position: number, hide?: boolean): void;
|
|
17
|
+
/**
|
|
18
|
+
* Reorder tabs based on config positions
|
|
19
|
+
* Iterates over visible config tabs and rearranges both static and config tabs
|
|
20
|
+
*/
|
|
21
|
+
private reorderTabsByPosition;
|
|
22
|
+
private activateTabFromUrl;
|
|
23
|
+
private updateMenu;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailPageCustomizationDirective, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DetailPageCustomizationDirective, never, never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { InjectionToken, Signal } from '@angular/core';
|
|
2
|
+
import { MenuItem } from 'primeng/api';
|
|
3
|
+
import { TabView } from 'primeng/tabview';
|
|
4
|
+
import { solidIcons } from 'aril/util/lib';
|
|
5
|
+
export interface DetailComponent {
|
|
6
|
+
mdInfoPluginProps: {
|
|
7
|
+
generalMenu: Signal<MenuItem[]>;
|
|
8
|
+
};
|
|
9
|
+
configTabs: Signal<TabConfig[]>;
|
|
10
|
+
activeTabComponents: Signal<TabConfig['components']>;
|
|
11
|
+
tabs: TabConfig[];
|
|
12
|
+
tabView?: TabView;
|
|
13
|
+
}
|
|
14
|
+
export declare const DETAIL_COMPONENT: InjectionToken<DetailComponent>;
|
|
15
|
+
export declare const PLUGIN_DIALOG_SERVICE: InjectionToken<unknown>;
|
|
16
|
+
export interface TabConfig {
|
|
17
|
+
id: string | number | null;
|
|
18
|
+
header: string;
|
|
19
|
+
icon: keyof typeof solidIcons;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
position: number;
|
|
22
|
+
components: Array<{
|
|
23
|
+
id: string | null;
|
|
24
|
+
pluginName: string;
|
|
25
|
+
visible: boolean;
|
|
26
|
+
order?: number;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
export interface DetailConfigMenuItem {
|
|
30
|
+
label: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
command: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
}
|
|
36
|
+
export interface DetailConfig {
|
|
37
|
+
menu: Array<DetailConfigMenuItem>;
|
|
38
|
+
tabs: Array<{
|
|
39
|
+
id: string | null;
|
|
40
|
+
icon: keyof typeof solidIcons;
|
|
41
|
+
label?: {
|
|
42
|
+
[key: string]: string;
|
|
43
|
+
};
|
|
44
|
+
visible: boolean;
|
|
45
|
+
position: number;
|
|
46
|
+
components: Array<{
|
|
47
|
+
id: string | null;
|
|
48
|
+
pluginName: string;
|
|
49
|
+
visible: boolean;
|
|
50
|
+
order?: number;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CustomizedPluginDialogComponent {
|
|
4
|
+
private readonly dialogConfig;
|
|
5
|
+
name: string;
|
|
6
|
+
PLUGINS: import("../../../../../../dist/boot/config/plugins/src/interfaces").FactoryClass & import("../../../../../../dist/boot/config/plugins/src/interfaces").PluginConfigs;
|
|
7
|
+
constructor(dialogConfig: DynamicDialogConfig);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomizedPluginDialogComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomizedPluginDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DialogService, DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CustomizedPluginDialogService extends DialogService {
|
|
4
|
+
openDialog(config: DynamicDialogConfig): DynamicDialogRef;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomizedPluginDialogService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomizedPluginDialogService>;
|
|
7
|
+
}
|