@fuentis/phoenix-ui 0.0.9-alpha.77 → 0.0.9-alpha.80

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.
@@ -15,6 +15,7 @@ export declare class TableComponent implements OnInit {
15
15
  searchQuery: import("@angular/core").WritableSignal<string>;
16
16
  selectedColumns: import("@angular/core").WritableSignal<any[]>;
17
17
  selectedItems: import("@angular/core").WritableSignal<any[]>;
18
+ bulkMode: import("@angular/core").WritableSignal<boolean>;
18
19
  totalRecords: import("@angular/core").WritableSignal<number>;
19
20
  multiSortMeta: import("@angular/core").WritableSignal<any[]>;
20
21
  isLoading: import("@angular/core").WritableSignal<boolean>;
@@ -1,45 +1,10 @@
1
- import { DateFormatService } from '../../utils/date-format.service';
2
- import { Subscription } from 'rxjs';
1
+ import { ActionButton, Severity } from '../../models/status.model';
3
2
  import * as i0 from "@angular/core";
4
- interface Log {
5
- date: string;
6
- description: string;
7
- user: string;
8
- }
9
- interface StatusHeaderData {
10
- approach: string;
11
- date: string;
3
+ export declare class StatusHeaderComponent {
12
4
  name: string;
13
- type?: string;
14
- scope: string;
15
5
  title: string;
16
- status: string;
17
- entity: string;
18
- description?: string;
19
- logs: Log[];
20
- createdBy: string;
21
- createdAt: string;
22
- }
23
- interface Icon {
24
- url: string;
25
- alt?: string;
26
- size: {
27
- width: string;
28
- height: string;
29
- };
30
- }
31
- export declare class StatusHeaderComponent {
32
- private dateFormatService;
33
- isCollapsed: boolean;
34
- iconUrl: string;
35
- icon: Icon;
36
- showQuickActions: boolean;
37
- data: StatusHeaderData;
38
- dateFormat: string;
39
- dataFormatSub$: Subscription;
40
- constructor(dateFormatService: DateFormatService);
41
- ngOnDestroy(): void;
6
+ actions: ActionButton[];
7
+ validSeverities: Severity[];
42
8
  static ɵfac: i0.ɵɵFactoryDeclaration<StatusHeaderComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<StatusHeaderComponent, "pho-status-header", never, { "iconUrl": { "alias": "iconUrl"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusHeaderComponent, "phoenix-status-header", never, { "name": { "alias": "name"; "required": false; }; "title": { "alias": "title"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, {}, never, never, true, never>;
44
10
  }
45
- export {};
@@ -0,0 +1,20 @@
1
+ export declare enum SimpleButtonType {
2
+ REGULAR = "regular",
3
+ SPLIT = "split"
4
+ }
5
+ export type Severity = 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast' | null | undefined;
6
+ export interface ActionButton {
7
+ id?: number | string;
8
+ label: string;
9
+ icon?: string;
10
+ disabled?: boolean;
11
+ type?: SimpleButtonType;
12
+ severity?: Severity;
13
+ tooltip?: string;
14
+ action?: () => void;
15
+ splitItems?: {
16
+ label: string;
17
+ icon?: string;
18
+ command: () => void;
19
+ }[];
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuentis/phoenix-ui",
3
- "version": "0.0.9-alpha.77",
3
+ "version": "0.0.9-alpha.80",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
package/public-api.d.ts CHANGED
@@ -12,4 +12,5 @@ export * from './lib/components/meta-form/meta-form-buttons/meta-form-buttons.co
12
12
  export * from './lib/components/meta-form/meta-form-templates/groups-form/groups-form.component';
13
13
  export * from './lib/components/meta-form/services/meta-form.service';
14
14
  export * from './lib/models/shell-config.model';
15
+ export * from './lib/models/status.model';
15
16
  export * from './lib/components/data-table/utils/dataTable.enum';
@@ -1,14 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { BehaviorSubject, Subscription } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class DateFormatService implements OnDestroy {
5
- dateFormat: BehaviorSubject<string>;
6
- currentDateFormatsub$: Subscription;
7
- currentDateFormat$: import("rxjs").Observable<string>;
8
- date: string;
9
- constructor();
10
- setDateFormat(date: string): void;
11
- ngOnDestroy(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<DateFormatService>;
14
- }