valtech-components 2.0.918 → 2.0.919

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.
@@ -43,7 +43,7 @@ export declare class RightsFooterComponent {
43
43
  /**
44
44
  * Computed helper for color prop in template.
45
45
  */
46
- propsColor: import("@angular/core").Signal<"medium" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "dark">;
46
+ propsColor: import("@angular/core").Signal<"success" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "light" | "dark">;
47
47
  /**
48
48
  * Computed helper for withMargin prop in template.
49
49
  */
@@ -90,9 +90,9 @@ export declare class ArticleComponent implements OnInit {
90
90
  contentInterpolation?: Record<string, string | number>;
91
91
  icon?: import("valtech-components").IconMetada;
92
92
  shape?: "round";
93
- size?: "small" | "large" | "default";
93
+ size?: "default" | "small" | "large";
94
94
  fill?: "default" | "clear" | "outline" | "solid";
95
- type: "button" | "submit" | "reset";
95
+ type: "reset" | "submit" | "button";
96
96
  token?: string;
97
97
  ref?: any;
98
98
  handler?: (value: any) => any;
@@ -72,7 +72,7 @@ export declare class ToolbarComponent implements OnInit {
72
72
  };
73
73
  showFlags?: boolean;
74
74
  color: import("@ionic/core").Color;
75
- size?: "small" | "large" | "default";
75
+ size?: "default" | "small" | "large";
76
76
  fill?: "default" | "clear" | "outline" | "solid";
77
77
  shape?: "round";
78
78
  expand?: "full" | "block";
@@ -0,0 +1,21 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Structural directive that renders its host element only when the
4
+ * authenticated user has the required permission in the active org.
5
+ *
6
+ * Usage:
7
+ * <ion-button *valHasPermission="'rbac:manage'">Gestionar roles</ion-button>
8
+ *
9
+ * Permissions use resource:action format (e.g. 'users:read', 'documents:*', '*:*').
10
+ * Wildcard rules from the backend are respected by AuthService.hasPermission().
11
+ */
12
+ export declare class HasPermissionDirective {
13
+ private auth;
14
+ private tpl;
15
+ private vc;
16
+ readonly valHasPermission: import("@angular/core").InputSignal<string>;
17
+ private hasView;
18
+ constructor();
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<HasPermissionDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HasPermissionDirective, "[valHasPermission]", never, { "valHasPermission": { "alias": "valHasPermission"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
21
+ }
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.918";
5
+ export declare const VERSION = "2.0.919";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.918",
3
+ "version": "2.0.919",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './lib/version';
2
+ export * from './lib/directives/has-permission.directive';
2
3
  export * from './lib/components/atoms/avatar/avatar.component';
3
4
  export * from './lib/components/atoms/avatar/types';
4
5
  export * from './lib/components/atoms/box/box.component';