ets-fe-ng-sdk 18.0.21 → 18.0.23
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/esm2022/lib/Reusables/reusable-comps/find-item/find-item.component.mjs +19 -28
- package/esm2022/lib/Reusables/reusable-comps/watermark/watermark.component.mjs +4 -4
- package/esm2022/lib/Shared/components/btn/btn.component.mjs +4 -4
- package/esm2022/lib/Shared/components/btn/btn.model.mjs +1 -1
- package/esm2022/lib/Shared/components/form-generator/form-generated-value/form-generated-value.component.mjs +1 -1
- package/esm2022/lib/Shared/components/form-generator/form-generator.base.component.mjs +1 -1
- package/esm2022/lib/Shared/components/table-https/table-https.component.mjs +5 -5
- package/fesm2022/ets-fe-ng-sdk.mjs +25 -34
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/lib/Reusables/reusable-comps/find-item/find-item.component.d.ts +12 -11
- package/lib/Services/utility.service.d.ts +1 -1
- package/lib/Shared/components/btn/btn.component.d.ts +2 -2
- package/lib/Shared/components/btn/btn.model.d.ts +3 -0
- package/lib/Shared/components/form-generator/form-generated-value/form-generated-value.component.d.ts +3 -3
- package/lib/Shared/components/form-generator/form-generator.base.component.d.ts +1 -1
- package/lib/Shared/components/index-comp-layout/index-comp-layout.component.d.ts +1 -1
- package/lib/Shared/components/table-https/table-https.component.d.ts +5 -3
- package/lib/Shared/components/table-plain/table.pipe.d.ts +2 -2
- package/lib/Shared/components/text-case-2/text-case-2.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit,
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { UserActivityService } from '../../../Reusables/reusable-pages/user-activity/ua-extras/user-activity.service';
|
|
@@ -23,7 +23,7 @@ export declare class FindItemComponent<TQuery extends IObjectLiteral = any, TRow
|
|
|
23
23
|
readonly gridClass: import("@angular/core").InputSignal<string>;
|
|
24
24
|
readonly hideForm: import("@angular/core").InputSignal<boolean>;
|
|
25
25
|
readonly expandedRowTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
26
|
-
readonly isTablePaginated: import("@angular/core").
|
|
26
|
+
readonly isTablePaginated: import("@angular/core").Signal<boolean>;
|
|
27
27
|
readonly rowOptionsMap: import("@angular/core").InputSignal<(row: TRow) => (IRowOption<TRow> | null)[]>;
|
|
28
28
|
readonly isExpandable: import("@angular/core").InputSignal<boolean>;
|
|
29
29
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
@@ -62,10 +62,10 @@ export declare class FindItemComponent<TQuery extends IObjectLiteral = any, TRow
|
|
|
62
62
|
readonly smallerFonts: import("@angular/core").InputSignal<boolean>;
|
|
63
63
|
/** Use checkboxes */
|
|
64
64
|
readonly useSelection: import("@angular/core").InputSignal<boolean>;
|
|
65
|
-
_rowClick:
|
|
66
|
-
clickedCreate:
|
|
67
|
-
tableHTTPSREF: TableHttpsComponent<TRow
|
|
68
|
-
tablePlainRef: TablePlainComponent<TRow
|
|
65
|
+
readonly _rowClick: import("@angular/core").OutputEmitterRef<void>;
|
|
66
|
+
readonly clickedCreate: import("@angular/core").OutputEmitterRef<void>;
|
|
67
|
+
readonly tableHTTPSREF: import("@angular/core").Signal<TableHttpsComponent<TRow>>;
|
|
68
|
+
readonly tablePlainRef: import("@angular/core").Signal<TablePlainComponent<TRow>>;
|
|
69
69
|
readonly tableHTTPSREFSignal: import("@angular/core").Signal<TableHttpsComponent<TRow>>;
|
|
70
70
|
readonly tablePlainRefSignal: import("@angular/core").Signal<TablePlainComponent<TRow>>;
|
|
71
71
|
readonly data: import("@angular/core").WritableSignal<TRow[]>;
|
|
@@ -78,10 +78,12 @@ export declare class FindItemComponent<TQuery extends IObjectLiteral = any, TRow
|
|
|
78
78
|
readonly createButton: import("@angular/core").InputSignal<boolean>;
|
|
79
79
|
set _formSchema(v: ISearchFormSchema<TQuery, TRow>[]);
|
|
80
80
|
readonly searchObservableFunc: import("@angular/core").InputSignal<(data: any) => Observable<ITableSearchResp<TRow>>>;
|
|
81
|
-
readonly delimiterField = "~~~";
|
|
82
|
-
readonly delimiterWord = "~~";
|
|
81
|
+
protected readonly delimiterField = "~~~";
|
|
82
|
+
protected readonly delimiterWord = "~~";
|
|
83
83
|
readonly searchTrigger: Subject<IObjectLiteral>;
|
|
84
84
|
readonly computedFormSchema: import("@angular/core").Signal<ISearchFormSchema<TQuery, TRow>[]>;
|
|
85
|
+
protected readonly hasColumns: import("@angular/core").Signal<boolean>;
|
|
86
|
+
protected readonly hideTable: import("@angular/core").Signal<boolean>;
|
|
85
87
|
uaS: UserActivityService;
|
|
86
88
|
router: Router;
|
|
87
89
|
route: ActivatedRoute;
|
|
@@ -112,11 +114,10 @@ export declare class FindItemComponent<TQuery extends IObjectLiteral = any, TRow
|
|
|
112
114
|
saveQuery(query?: any): void;
|
|
113
115
|
rowClick(e: any): void;
|
|
114
116
|
get selection(): TRow[];
|
|
115
|
-
readonly selectionSignal: import("@angular/core").
|
|
117
|
+
readonly selectionSignal: import("@angular/core").Signal<TRow[]>;
|
|
116
118
|
readonly isAnySelected: import("@angular/core").Signal<boolean>;
|
|
117
|
-
protected setSelection(): void;
|
|
118
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<FindItemComponent<any, any>, never>;
|
|
119
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FindItemComponent<any, any>, "app-find-item,find-item", never, { "autoFormatSchema": { "alias": "autoFormatSchema"; "required": false; "isSignal": true; }; "autoOrder": { "alias": "autoOrder"; "required": false; "isSignal": true; }; "centerCells": { "alias": "centerCells"; "required": false; "isSignal": true; }; "_displayedColumns": { "alias": "displayedColumns"; "required": false; "isSignal": true; }; "gridClass": { "alias": "gridClass"; "required": false; "isSignal": true; }; "hideForm": { "alias": "hideForm"; "required": false; "isSignal": true; }; "expandedRowTemplate": { "alias": "expandedRowTemplate"; "required": false; "isSignal": true; }; "
|
|
120
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FindItemComponent<any, any>, "app-find-item,find-item", never, { "autoFormatSchema": { "alias": "autoFormatSchema"; "required": false; "isSignal": true; }; "autoOrder": { "alias": "autoOrder"; "required": false; "isSignal": true; }; "centerCells": { "alias": "centerCells"; "required": false; "isSignal": true; }; "_displayedColumns": { "alias": "displayedColumns"; "required": false; "isSignal": true; }; "gridClass": { "alias": "gridClass"; "required": false; "isSignal": true; }; "hideForm": { "alias": "hideForm"; "required": false; "isSignal": true; }; "expandedRowTemplate": { "alias": "expandedRowTemplate"; "required": false; "isSignal": true; }; "rowOptionsMap": { "alias": "rowOptionsMap"; "required": false; "isSignal": true; }; "isExpandable": { "alias": "isExpandable"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "nowrap": { "alias": "nowrap"; "required": false; "isSignal": true; }; "options": { "alias": "rowOptions"; "required": false; "isSignal": true; }; "orderDirection": { "alias": "orderDirection"; "required": false; "isSignal": true; }; "orderField": { "alias": "orderField"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "searchFunction": { "alias": "searchFunction"; "required": false; "isSignal": true; }; "showData": { "alias": "showData"; "required": false; "isSignal": true; }; "searchIfNoQuery": { "alias": "searchIfNoQuery"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "showFilter": { "alias": "showFilter"; "required": false; "isSignal": true; }; "showRefreshBtn": { "alias": "showRefreshBtn"; "required": false; "isSignal": true; }; "startSectionTemplate": { "alias": "startSectionTemplate"; "required": false; "isSignal": true; }; "showSearchBtn": { "alias": "showSearchBtn"; "required": false; "isSignal": true; }; "showClearBtn": { "alias": "showClearBtn"; "required": false; "isSignal": true; }; "showValidationMsg": { "alias": "showValidationMsg"; "required": false; "isSignal": true; }; "createBtnRoute": { "alias": "createBtnRoute"; "required": false; "isSignal": true; }; "showAdditionalColumns": { "alias": "showAdditionalColumns"; "required": false; "isSignal": true; }; "smallerFonts": { "alias": "smallerFonts"; "required": false; "isSignal": true; }; "useSelection": { "alias": "useSelection"; "required": false; "isSignal": true; }; "createButton": { "alias": "createButton"; "required": false; "isSignal": true; }; "_formSchema": { "alias": "formSchema"; "required": false; }; "searchObservableFunc": { "alias": "searchObservableFunc"; "required": false; "isSignal": true; }; }, { "_rowClick": "rowClick"; "clickedCreate": "clickedCreate"; }, never, ["[tablePanel]"], true, never>;
|
|
120
121
|
}
|
|
121
122
|
export interface ISearchFormSchema<TQuery extends IObjectLiteral = any, TRow extends IObjectLiteral = any> extends IBaseFormSchema<TQuery, FindItemComponent<TQuery, TRow>, {
|
|
122
123
|
[K in keyof TQuery]: AbstractControl<any, any>;
|
|
@@ -59,7 +59,7 @@ export declare class UtilityService<TEnvironment extends SDKEnvironment = SDKEnv
|
|
|
59
59
|
readonly delimiter = "~~~//~~~";
|
|
60
60
|
formBuilder: import("@angular/forms").NonNullableFormBuilder;
|
|
61
61
|
constructor();
|
|
62
|
-
formControl: <T>(value?: T | null, validatorOrOpts?: ValidatorFn | ValidatorFn[] | FormControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => (
|
|
62
|
+
formControl: <T>(value?: T | null, validatorOrOpts?: ValidatorFn | ValidatorFn[] | FormControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => (FormControlOptions | AsyncValidatorFn | AsyncValidatorFn[] | ValidatorFn | ValidatorFn[] | T)[];
|
|
63
63
|
back: () => void;
|
|
64
64
|
onlyOneInput(inputs: FormControl[]): Subscription;
|
|
65
65
|
copyPayload(payload: any): Promise<void>;
|
|
@@ -35,9 +35,9 @@ export declare class BtnComponent implements OnInit {
|
|
|
35
35
|
*/
|
|
36
36
|
set customIcon(v: string);
|
|
37
37
|
readonly checkFormState$: BehaviorSubject<IFormState>;
|
|
38
|
-
readonly form: import("@angular/core").InputSignal<AbstractControl<any, any> | FormGroup<any> |
|
|
38
|
+
readonly form: import("@angular/core").InputSignal<AbstractControl<any, any> | FormGroup<any> | FormArray<any> | FormControl<any>>;
|
|
39
39
|
protected readonly formState: import("@angular/core").Signal<IFormState>;
|
|
40
|
-
readonly forms: import("@angular/core").InputSignal<(AbstractControl<any, any> | FormGroup<any> |
|
|
40
|
+
readonly forms: import("@angular/core").InputSignal<(AbstractControl<any, any> | FormGroup<any> | FormArray<any> | FormControl<any>)[]>;
|
|
41
41
|
protected readonly formsState: import("@angular/core").Signal<Omit<IFormState, "status">>;
|
|
42
42
|
readonly help: import("@angular/core").InputSignal<string>;
|
|
43
43
|
/**
|
|
@@ -6,11 +6,13 @@ export interface IBtn extends IKVP {
|
|
|
6
6
|
action?: (arg?: any) => void;
|
|
7
7
|
group?: BtnGroup;
|
|
8
8
|
help?: string;
|
|
9
|
+
route?: string;
|
|
9
10
|
icon?: IconType;
|
|
10
11
|
iconBtn?: boolean;
|
|
11
12
|
mini?: boolean;
|
|
12
13
|
showHelpIcon?: boolean;
|
|
13
14
|
label?: string;
|
|
15
|
+
children?: IBtn[];
|
|
14
16
|
type?: BtnType;
|
|
15
17
|
extra?: any;
|
|
16
18
|
}
|
|
@@ -30,6 +32,7 @@ export declare class Btn<TData = any> implements IBtn {
|
|
|
30
32
|
type?: BtnType;
|
|
31
33
|
extra?: any;
|
|
32
34
|
loading?: boolean;
|
|
35
|
+
children?: Btn<TData>[];
|
|
33
36
|
disabled?: boolean;
|
|
34
37
|
constructor(key: string, action?: (data?: TData, ...args: any[]) => any, type?: BtnType, icon?: IconType, cls?: string, help?: string, showHelpIcon?: boolean, loading?: boolean, disabled?: boolean);
|
|
35
38
|
}
|
|
@@ -8,7 +8,7 @@ export declare class ListOptionFinderPipe implements PipeTransform {
|
|
|
8
8
|
iS: InputService;
|
|
9
9
|
transform(value: string, options: {
|
|
10
10
|
x: string;
|
|
11
|
-
}[], valueField: string, labelField: string, labelType: OptionLabelType, optionFormatter: (item: any) => string): string;
|
|
11
|
+
}[], valueField: string, labelField: string | string[], labelType: OptionLabelType, optionFormatter: (item: any) => string): string;
|
|
12
12
|
constructor(iS: InputService);
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListOptionFinderPipe, never>;
|
|
14
14
|
static ɵpipe: i0.ɵɵPipeDeclaration<ListOptionFinderPipe, "listOptionFinder", true>;
|
|
@@ -43,7 +43,7 @@ export declare class FormGeneratedValueComponent<TFormGroup extends {
|
|
|
43
43
|
isRequired?: boolean;
|
|
44
44
|
isSearchField?: boolean;
|
|
45
45
|
label?: string;
|
|
46
|
-
labelField?: string;
|
|
46
|
+
labelField?: string | string[];
|
|
47
47
|
optionLabelFormatter?: (row: any) => string;
|
|
48
48
|
max?: number;
|
|
49
49
|
min?: number;
|
|
@@ -85,7 +85,7 @@ export declare class FormGeneratedValueComponent<TFormGroup extends {
|
|
|
85
85
|
showValidationMsg?: boolean;
|
|
86
86
|
dontFormatAsInput?: boolean;
|
|
87
87
|
showRequiredTag?: boolean;
|
|
88
|
-
tableFormatter?: (val: any) => string |
|
|
88
|
+
tableFormatter?: (val: any) => string | import("rxjs").Observable<string> | Promise<string>;
|
|
89
89
|
icon?: import("ets-fe-ng-sdk").IconType;
|
|
90
90
|
verbose?: boolean;
|
|
91
91
|
}[]>;
|
|
@@ -59,7 +59,7 @@ export interface IBaseFormSchema<T, Component extends BaseFormGenerator<T>, TFor
|
|
|
59
59
|
isRequired?: boolean;
|
|
60
60
|
isSearchField?: boolean;
|
|
61
61
|
label?: string;
|
|
62
|
-
labelField?: string;
|
|
62
|
+
labelField?: string | string[];
|
|
63
63
|
labelType?: OptionLabelType;
|
|
64
64
|
optionLabelFormatter?: (row: any) => string;
|
|
65
65
|
max?: number;
|
|
@@ -18,7 +18,7 @@ export declare class ResizeGridPipe implements PipeTransform {
|
|
|
18
18
|
static ɵpipe: i0.ɵɵPipeDeclaration<ResizeGridPipe, "resizeGrid", true>;
|
|
19
19
|
}
|
|
20
20
|
export declare class IndexCompLayoutComponent {
|
|
21
|
-
readonly grid: InputSignal<
|
|
21
|
+
readonly grid: InputSignal<5 | 1 | 4 | 2 | 6 | 3 | "auto">;
|
|
22
22
|
readonly showButtons: InputSignal<boolean>;
|
|
23
23
|
readonly hideClone: InputSignal<boolean>;
|
|
24
24
|
readonly hideShow: InputSignal<boolean>;
|
|
@@ -17,19 +17,19 @@ export declare class TableHttpsComponent<TItem = any> extends TableBaseComponent
|
|
|
17
17
|
readonly form: FormGroup<{
|
|
18
18
|
pageNumber: FormControl<number>;
|
|
19
19
|
sortBy: FormControl<keyof TItem>;
|
|
20
|
-
sortDirection: FormControl<"" | "
|
|
20
|
+
sortDirection: FormControl<"" | "ASC" | "DESC">;
|
|
21
21
|
pageSize: FormControl<number>;
|
|
22
22
|
}>;
|
|
23
23
|
readonly allQueryData: import("@angular/core").Signal<{
|
|
24
24
|
pageNumber: number;
|
|
25
25
|
sortBy: keyof TItem;
|
|
26
|
-
sortDirection: "" | "
|
|
26
|
+
sortDirection: "" | "ASC" | "DESC";
|
|
27
27
|
pageSize: number;
|
|
28
28
|
}>;
|
|
29
29
|
readonly formValue: import("@angular/core").Signal<{
|
|
30
30
|
pageNumber: number;
|
|
31
31
|
sortBy: keyof TItem;
|
|
32
|
-
sortDirection: "" | "
|
|
32
|
+
sortDirection: "" | "ASC" | "DESC";
|
|
33
33
|
pageSize: number;
|
|
34
34
|
}>;
|
|
35
35
|
readonly isLoadingResults: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -56,6 +56,7 @@ export declare class TableHttpsComponent<TItem = any> extends TableBaseComponent
|
|
|
56
56
|
export interface ITableSearchResp<T = any> {
|
|
57
57
|
totalElements?: number;
|
|
58
58
|
page?: {
|
|
59
|
+
totalElements: number;
|
|
59
60
|
content: T[];
|
|
60
61
|
};
|
|
61
62
|
content?: T[];
|
|
@@ -64,6 +65,7 @@ export interface ITableSearchResp<T = any> {
|
|
|
64
65
|
export interface ITableSearchFunc<T = any> {
|
|
65
66
|
totalElements?: number;
|
|
66
67
|
page?: {
|
|
68
|
+
totalElements: number;
|
|
67
69
|
content: T[];
|
|
68
70
|
};
|
|
69
71
|
content?: T[];
|
|
@@ -4,13 +4,13 @@ import { TableService } from './table-plain.service';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
6
|
export declare class GetColFormattedPipe implements PipeTransform {
|
|
7
|
-
transform(row: any, col: TableCol): import("rxjs").Observable<any
|
|
7
|
+
transform(row: any, col: TableCol): Promise<string> | import("rxjs").Observable<any>;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetColFormattedPipe, never>;
|
|
9
9
|
static ɵpipe: i0.ɵɵPipeDeclaration<GetColFormattedPipe, "getColFormatted", true>;
|
|
10
10
|
}
|
|
11
11
|
/**For the expanded value */
|
|
12
12
|
export declare class GetColFormattedEPipe implements PipeTransform {
|
|
13
|
-
transform(row: any, col: TableCol): import("rxjs").Observable<any
|
|
13
|
+
transform(row: any, col: TableCol): Promise<string> | import("rxjs").Observable<any>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetColFormattedEPipe, never>;
|
|
15
15
|
static ɵpipe: i0.ɵɵPipeDeclaration<GetColFormattedEPipe, "getColFormattedE", true>;
|
|
16
16
|
}
|
|
@@ -26,7 +26,7 @@ export declare class TextCase2Component<T = any> {
|
|
|
26
26
|
isEmail: import("@angular/core").InputSignal<boolean>;
|
|
27
27
|
isPhone: import("@angular/core").InputSignal<boolean>;
|
|
28
28
|
tS: TextCaseService;
|
|
29
|
-
computedRoute: import("@angular/core").Signal<
|
|
29
|
+
computedRoute: import("@angular/core").Signal<Observable<string> | Promise<string>>;
|
|
30
30
|
computedValue: import("@angular/core").Signal<string | number | boolean>;
|
|
31
31
|
computedValueFormatter: import("@angular/core").Signal<Promise<string | number | boolean> | Observable<string | number | boolean>>;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextCase2Component<any>, never>;
|