@one-paragon/angular-utilities 2.0.11 → 2.0.13
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/one-paragon-angular-utilities.mjs +53 -53
- package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -1
- package/package.json +1 -1
- package/table-builder/components/column-builder/column-builder.component.d.ts +1 -1
- package/table-builder/interfaces/report-def.d.ts +8 -13
- package/utilities/directives/conditional-classes.directive.d.ts +4 -5
- package/utilities/directives/styler.d.ts +6 -5
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ export declare class ColumnBuilderComponent {
|
|
|
23
23
|
$innerTemplate: Signal<TemplateRef<any> | undefined>;
|
|
24
24
|
$showFilters: Signal<boolean | undefined>;
|
|
25
25
|
$outerTemplate: Signal<TemplateRef<any> | undefined>;
|
|
26
|
-
$classes: Signal<Dictionary<Predicate<any
|
|
26
|
+
$classes: Signal<Dictionary<Predicate<any> | true> | undefined>;
|
|
27
27
|
$styles: Signal<{
|
|
28
28
|
header: Dictionary<string>;
|
|
29
29
|
body: import("../../../utilities").StylerStyle;
|
|
@@ -2,6 +2,7 @@ import { Dictionary } from './dictionary';
|
|
|
2
2
|
import { PipeTransform, Predicate, TemplateRef } from '@angular/core';
|
|
3
3
|
import { TableBuilderExport } from '../classes/TableBuilderConfig';
|
|
4
4
|
import { QueryParamsHandling } from '@angular/router';
|
|
5
|
+
import { StylerStyle } from '../../utilities/directives/styler';
|
|
5
6
|
export declare enum FieldType {
|
|
6
7
|
Unknown = 0,
|
|
7
8
|
Date = 1,
|
|
@@ -52,7 +53,7 @@ interface BaseMeta<T = any> {
|
|
|
52
53
|
transform?: ((o: T, ...args: any[]) => any) | ((o: string, ...args: any[]) => any) | PipeTransform;
|
|
53
54
|
click?: (element: T, key: string) => void;
|
|
54
55
|
template?: TemplateRef<any>;
|
|
55
|
-
classes?: Dictionary<Predicate<T
|
|
56
|
+
classes?: Dictionary<Predicate<T> | true>;
|
|
56
57
|
toolTip?: string | ((t: T) => string);
|
|
57
58
|
useIcon?: boolean;
|
|
58
59
|
map?: (t: T) => any;
|
|
@@ -102,9 +103,9 @@ export interface Additional<T = any> {
|
|
|
102
103
|
* If you want to use a route with interpolated params, you can use this. Wrap the property name in curly braces.
|
|
103
104
|
* For example, if interpolatedRoute = /users/{id}/edit, {id} will be replaced with the value of the element's id property.
|
|
104
105
|
*/
|
|
105
|
-
interpolatedRoute?: interpolatedRoute;
|
|
106
|
+
interpolatedRoute?: interpolatedRoute | ((t: T) => string);
|
|
106
107
|
routerLinkOptions?: {
|
|
107
|
-
queryParams?: [string, interpolatedRoute][];
|
|
108
|
+
queryParams?: [string, interpolatedRoute | ((t: T) => string)][];
|
|
108
109
|
fragment?: string;
|
|
109
110
|
preserveFragment?: boolean;
|
|
110
111
|
queryParamsHandling?: QueryParamsHandling;
|
|
@@ -117,21 +118,15 @@ export interface Additional<T = any> {
|
|
|
117
118
|
dateFormat?: string;
|
|
118
119
|
dateTimeOptions?: DateTimeOptions;
|
|
119
120
|
filterOptions?: FilterOptions;
|
|
120
|
-
styles?:
|
|
121
|
-
condition: (t: T) => boolean | true;
|
|
122
|
-
value: (t: T) => string | string;
|
|
123
|
-
}>;
|
|
121
|
+
styles?: StylerStyle;
|
|
124
122
|
columnPartStyles?: {
|
|
125
123
|
header?: Dictionary<string>;
|
|
126
|
-
body?:
|
|
127
|
-
condition: (t: T) => boolean | true;
|
|
128
|
-
value: (t: T) => string | string;
|
|
129
|
-
}>;
|
|
124
|
+
body?: StylerStyle;
|
|
130
125
|
footer?: Dictionary<string>;
|
|
131
126
|
};
|
|
132
127
|
columnPartClasses?: {
|
|
133
|
-
header?: Dictionary<Predicate<T
|
|
134
|
-
footer?: Dictionary<Predicate<T
|
|
128
|
+
header?: Dictionary<Predicate<T> | true>;
|
|
129
|
+
footer?: Dictionary<Predicate<T> | true>;
|
|
135
130
|
};
|
|
136
131
|
enumMap?: {
|
|
137
132
|
[key: number]: string;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { SimpleChanges } from '@angular/core';
|
|
2
1
|
import { Dictionary, Predicate } from '@ngrx/entity';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class ConditionalClassesDirective {
|
|
4
|
+
#private;
|
|
5
5
|
private el;
|
|
6
6
|
private renderer;
|
|
7
|
-
element
|
|
8
|
-
classes
|
|
7
|
+
$element: import("@angular/core").InputSignal<any>;
|
|
8
|
+
$classes: import("@angular/core").InputSignal<Dictionary<true | Predicate<any>> | undefined>;
|
|
9
9
|
classesApplied: string[];
|
|
10
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConditionalClassesDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ConditionalClassesDirective, "[conditionalClasses]", never, { "element": { "alias": "element"; "required":
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConditionalClassesDirective, "[conditionalClasses]", never, { "$element": { "alias": "element"; "required": true; "isSignal": true; }; "$classes": { "alias": "conditionalClasses"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
12
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Dictionary } from '@ngrx/entity';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class StylerDirective {
|
|
4
|
+
#private;
|
|
4
5
|
private el;
|
|
5
6
|
private renderer;
|
|
6
|
-
stylesApplied: Dictionary<string
|
|
7
|
-
element
|
|
8
|
-
|
|
7
|
+
$stylesApplied: import("@angular/core").WritableSignal<Dictionary<string>>;
|
|
8
|
+
$element: import("@angular/core").InputSignal<any>;
|
|
9
|
+
$styler: import("@angular/core").InputSignal<StylerStyle>;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<StylerDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<StylerDirective, "[styler]", never, { "element": { "alias": "element"; "required":
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StylerDirective, "[styler]", never, { "$element": { "alias": "element"; "required": true; "isSignal": true; }; "$styler": { "alias": "styler"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
12
|
}
|
|
12
13
|
export type StylerStyle = Dictionary<string | {
|
|
13
|
-
condition
|
|
14
|
+
condition?: ((t: any) => boolean) | true;
|
|
14
15
|
value: ((t: any) => string) | string;
|
|
15
16
|
}>;
|