@yuuvis/client-framework 2.20.1 → 2.21.0

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.
@@ -1,6 +1,7 @@
1
1
  import { SnackBarLevel } from "./snack-bar-level.model";
2
+ import { SnackBarMessage } from "./snack-bar-options.model";
2
3
  export interface SnackBarData {
3
4
  level: SnackBarLevel;
4
- message: string;
5
- action?: string;
5
+ message: SnackBarMessage;
6
+ action?: SnackBarMessage;
6
7
  }
@@ -1,9 +1,13 @@
1
1
  import { MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from "@angular/material/snack-bar";
2
2
  import { SnackBarLevel } from "./snack-bar-level.model";
3
+ export type SnackBarMessage = string | {
4
+ key: string;
5
+ params?: Record<string, unknown>;
6
+ };
3
7
  export interface SnackBarOptions {
4
8
  duration?: number;
5
9
  horizontalPosition?: MatSnackBarHorizontalPosition;
6
10
  verticalPosition?: MatSnackBarVerticalPosition;
7
- action?: string;
11
+ action?: SnackBarMessage;
8
12
  level?: SnackBarLevel;
9
13
  }
@@ -1,21 +1,24 @@
1
+ import { Signal } from '@angular/core';
1
2
  import { MatSnackBarRef } from '@angular/material/snack-bar';
2
- import { SnackBarLevel, SnackBarOptions } from '../../models';
3
+ import { SnackBarLevel, SnackBarMessage, SnackBarOptions } from '../../models';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class SnackBarService {
5
6
  #private;
6
- info(message: string, action?: string, duration?: number): MatSnackBarRef<SnackBarComponent>;
7
- success(message: string, action?: string, duration?: number): MatSnackBarRef<SnackBarComponent>;
8
- warning(message: string, action?: string, duration?: number): MatSnackBarRef<SnackBarComponent>;
9
- danger(message: string, action?: string, duration?: number): MatSnackBarRef<SnackBarComponent>;
10
- snack(message: string, options: SnackBarOptions): MatSnackBarRef<SnackBarComponent>;
7
+ private translate;
8
+ constructor();
9
+ info(message: SnackBarMessage, action?: SnackBarMessage, duration?: number): MatSnackBarRef<SnackBarComponent>;
10
+ success(message: SnackBarMessage, action?: SnackBarMessage, duration?: number): MatSnackBarRef<SnackBarComponent>;
11
+ warning(message: SnackBarMessage, action?: SnackBarMessage, duration?: number): MatSnackBarRef<SnackBarComponent>;
12
+ danger(message: SnackBarMessage, action?: SnackBarMessage, duration?: number): MatSnackBarRef<SnackBarComponent>;
13
+ snack(message: SnackBarMessage, options: SnackBarOptions): MatSnackBarRef<SnackBarComponent>;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarService, never>;
12
15
  static ɵprov: i0.ɵɵInjectableDeclaration<SnackBarService>;
13
16
  }
14
17
  export declare class SnackBarComponent {
15
18
  #private;
16
19
  level: import("@angular/core").WritableSignal<SnackBarLevel>;
17
- message: import("@angular/core").WritableSignal<string>;
18
- action: import("@angular/core").WritableSignal<string | undefined>;
20
+ message: Signal<string>;
21
+ action: Signal<string | undefined>;
19
22
  dismiss(withAction?: boolean): void;
20
23
  static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarComponent, never>;
21
24
  static ɵcmp: i0.ɵɵComponentDeclaration<SnackBarComponent, "yuv-snack-bar-component", never, {}, {}, never, never, true, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-framework",
3
- "version": "2.20.1",
3
+ "version": "2.21.0",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -8,15 +8,15 @@
8
8
  "@angular/common": "^19.2.1",
9
9
  "@angular/core": "^19.2.1",
10
10
  "angular-gridster2": "^19.0.0",
11
- "@yuuvis/client-core": "^2.20.1",
12
- "@yuuvis/client-shell-core": "^2.20.1",
11
+ "@yuuvis/client-core": "^2.21.0",
12
+ "@yuuvis/client-shell-core": "^2.21.0",
13
13
  "ng-dynamic-component": "^10.8.2",
14
14
  "modern-normalize": "^3.0.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@angular/material": "^19.2.15",
18
18
  "@ngrx/signals": "^19.2.0",
19
- "@yuuvis/material": "2.20.1",
19
+ "@yuuvis/material": "2.21.0",
20
20
  "@yuuvis/media-viewer": "^2.2.0",
21
21
  "angular-split": "^19.0.0",
22
22
  "vis-network": "^10.0.2",
@@ -1,10 +1,11 @@
1
- export * from './lib/tile-list/tile-list.interface';
2
- export * from './lib/tile-list/tile-list.component';
3
1
  export * from './lib/tile-actions-menu/tile-actions-menu.component';
4
- export * from './lib/tile-config/tile-config.component';
2
+ export * from './lib/tile-list/tile-list.component';
3
+ export * from './lib/tile-list/tile-list.interface';
4
+ export * from './lib/tile-config/action-select/action-select.component';
5
5
  export * from './lib/tile-config/property-select/property-select.component';
6
6
  export * from './lib/tile-config/tile-config-trigger/tile-config-trigger.component';
7
- export * from './lib/tile-config/action-select/action-select.component';
8
- export * from './lib/tile-extension/tile-extension.service';
7
+ export * from './lib/tile-config/tile-config.component';
9
8
  export * from './lib/tile-extension/directive/tile-extension.directive';
10
9
  export * from './lib/tile-extension/extensions/email.extension';
10
+ export * from './lib/tile-extension/tile-extension.service';
11
+ export * from './lib/tile-actions-menu/tile-actions-menu.component';
@@ -3,9 +3,10 @@ import { Action } from '@yuuvis/client-framework/actions';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TileActionsMenuComponent {
5
5
  actions: import("@angular/core").InputSignal<Action[]>;
6
+ loading: import("@angular/core").InputSignal<boolean>;
6
7
  itemSelect: import("@angular/core").OutputEmitterRef<Action>;
7
8
  matMenu: import("@angular/core").Signal<MatMenu>;
8
9
  itemClicked(event: Event, action: Action): void;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TileActionsMenuComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<TileActionsMenuComponent, "yuv-tile-actions-menu", never, { "actions": { "alias": "actions"; "required": true; "isSignal": true; }; }, { "itemSelect": "itemSelect"; }, never, never, true, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<TileActionsMenuComponent, "yuv-tile-actions-menu", never, { "actions": { "alias": "actions"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; }, never, never, true, never>;
11
12
  }