@fuentis/phoenix-ui 0.0.9-alpha.241 → 0.0.9-alpha.245
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/fesm2022/fuentis-phoenix-ui.mjs +176 -68
- package/fesm2022/fuentis-phoenix-ui.mjs.map +1 -1
- package/lib/components/actions/action-state.service.d.ts +10 -0
- package/lib/components/actions/actions.component.d.ts +44 -0
- package/lib/components/card/card.component.d.ts +22 -0
- package/lib/models/shell-config.model.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ActionStateService {
|
|
3
|
+
private _disabledActions;
|
|
4
|
+
get disabledActions(): import("@angular/core").Signal<Set<string>>;
|
|
5
|
+
disableAction(id: string): void;
|
|
6
|
+
enableAction(id: string): void;
|
|
7
|
+
isDisabled(id: string): boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionStateService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ActionStateService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ButtonProps } from 'primeng/button';
|
|
3
|
+
import { Popover } from 'primeng/popover';
|
|
4
|
+
import { ActionStateService } from './action-state.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare enum ActionTypes {
|
|
7
|
+
BASIC = "BASIC",
|
|
8
|
+
SELECT = "SELECT"
|
|
9
|
+
}
|
|
10
|
+
export interface Actions {
|
|
11
|
+
}
|
|
12
|
+
export type RegisteredActionEnums = Actions[keyof Actions];
|
|
13
|
+
export type AllActionValues = RegisteredActionEnums[keyof RegisteredActionEnums];
|
|
14
|
+
export interface Action<T = AllActionValues> {
|
|
15
|
+
id?: string;
|
|
16
|
+
actionId: T;
|
|
17
|
+
label: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
severity: Exclude<ButtonProps['severity'], 'warning'> | 'warn';
|
|
20
|
+
iconPos: 'right' | 'left';
|
|
21
|
+
type: ActionTypes;
|
|
22
|
+
requiredPermission?: string;
|
|
23
|
+
data?: any;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
visible?: boolean;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
class?: string;
|
|
28
|
+
items?: {
|
|
29
|
+
key?: string;
|
|
30
|
+
actionId?: T;
|
|
31
|
+
label?: string;
|
|
32
|
+
separator?: boolean;
|
|
33
|
+
icon?: string;
|
|
34
|
+
requiredPermission?: string;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
export declare class ActionsComponent {
|
|
38
|
+
actionStateService: ActionStateService;
|
|
39
|
+
actions: Action[];
|
|
40
|
+
actionClick: EventEmitter<Action<never>>;
|
|
41
|
+
onActionClick($event: any, action: Action, menuRef?: Popover): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsComponent, "pho-actions", never, { "actions": { "alias": "actions"; "required": false; }; }, { "actionClick": "actionClick"; }, never, never, true, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Action } from '../actions/actions.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface cardConfig {
|
|
4
|
+
name: string;
|
|
5
|
+
subName: string;
|
|
6
|
+
description: string;
|
|
7
|
+
actions: any[];
|
|
8
|
+
additional: any[];
|
|
9
|
+
}
|
|
10
|
+
export declare class CardComponent<T extends Record<string, any>> {
|
|
11
|
+
card: import("@angular/core").InputSignal<T>;
|
|
12
|
+
cardEventEmmiter: import("@angular/core").OutputEmitterRef<{
|
|
13
|
+
data: T;
|
|
14
|
+
action: string;
|
|
15
|
+
}>;
|
|
16
|
+
cardActions: Action[];
|
|
17
|
+
objectKeys<T extends Record<string, any>>(obj: T): string[];
|
|
18
|
+
getObjectValueByKey<T extends Record<string, any>>(obj: T, key: string): any;
|
|
19
|
+
onCardClick(event: any, actionType?: string): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent<any>, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent<any>, "pho-card", never, { "card": { "alias": "card"; "required": true; "isSignal": true; }; "cardActions": { "alias": "cardActions"; "required": false; }; }, { "cardEventEmmiter": "cardEventEmmiter"; }, never, ["[custom]"], true, never>;
|
|
22
|
+
}
|
|
@@ -23,8 +23,9 @@ export interface User {
|
|
|
23
23
|
lastname?: string;
|
|
24
24
|
}
|
|
25
25
|
export interface ShellConfig {
|
|
26
|
-
mainItems: SidebarItem[][];
|
|
27
26
|
user: User;
|
|
27
|
+
mainItems: SidebarItem[][];
|
|
28
|
+
shortModuleName: string;
|
|
28
29
|
footerItem: TopbarItem[];
|
|
29
30
|
topbarModulesMenu: any[];
|
|
30
31
|
searchConfig?: SearchTabs[];
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** Public API Surface of phoenix */
|
|
2
2
|
export * from './lib/components/inner-header/inner-header.component';
|
|
3
3
|
export * from './lib/components/sidebar/sidebar.component';
|
|
4
|
+
export * from './lib/components/actions/actions.component';
|
|
5
|
+
export * from './lib/components/card/card.component';
|
|
4
6
|
export * from './lib/components/topbar/topbar.component';
|
|
5
7
|
export * from './lib/components/search-bar/search-bar.component';
|
|
6
8
|
export * from './lib/components/sidebar-item/sidebar-item.component';
|