@one-paragon/angular-utilities 2.0.12 → 2.0.14
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 +57 -56
- 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 +2 -1
- package/table-builder/components/column-builder/column-helpers.d.ts +2 -0
- package/table-builder/interfaces/report-def.d.ts +7 -11
- package/utilities/directives/conditional-classes.directive.d.ts +4 -5
- package/utilities/directives/styler.d.ts +6 -5
package/package.json
CHANGED
|
@@ -23,10 +23,11 @@ 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;
|
|
30
|
+
innerBody: import("../../../utilities").StylerStyle;
|
|
30
31
|
footer: Dictionary<string>;
|
|
31
32
|
} | undefined>;
|
|
32
33
|
private viewInited;
|
|
@@ -21,6 +21,7 @@ export declare const calculateFlexWidth: (metaData: MetaData, userDefinedWidth:
|
|
|
21
21
|
export declare const columnStyles: (metaData: MetaData, userDefinedWidth: number | undefined, tableSettingsMinWidth?: number | undefined) => {
|
|
22
22
|
header: Dictionary<string>;
|
|
23
23
|
body: StylerStyle;
|
|
24
|
+
innerBody: StylerStyle;
|
|
24
25
|
footer: Dictionary<string>;
|
|
25
26
|
};
|
|
26
27
|
export declare const calculateFlexWidths: (metaDatas: MetaData[], userDefinedWidths: Dictionary<number>, tableSettingsMinWidth: number | undefined) => import("../../interfaces/dictionary").Dictionary<{
|
|
@@ -32,5 +33,6 @@ export declare const calculateFlexWidths: (metaDatas: MetaData[], userDefinedWid
|
|
|
32
33
|
export declare const columnsStyles: (metaDatas: MetaData[], userDefinedWidths: Dictionary<number>) => import("../../interfaces/dictionary").Dictionary<{
|
|
33
34
|
header: Dictionary<string>;
|
|
34
35
|
body: StylerStyle;
|
|
36
|
+
innerBody: StylerStyle;
|
|
35
37
|
footer: Dictionary<string>;
|
|
36
38
|
}>;
|
|
@@ -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;
|
|
@@ -117,21 +118,16 @@ 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
|
-
|
|
128
|
-
value: (t: T) => string | string;
|
|
129
|
-
}>;
|
|
124
|
+
body?: StylerStyle;
|
|
125
|
+
innerBody?: StylerStyle;
|
|
130
126
|
footer?: Dictionary<string>;
|
|
131
127
|
};
|
|
132
128
|
columnPartClasses?: {
|
|
133
|
-
header?: Dictionary<Predicate<T
|
|
134
|
-
footer?: Dictionary<Predicate<T
|
|
129
|
+
header?: Dictionary<Predicate<T> | true>;
|
|
130
|
+
footer?: Dictionary<Predicate<T> | true>;
|
|
135
131
|
};
|
|
136
132
|
enumMap?: {
|
|
137
133
|
[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
|
}>;
|