ets-fe-ng-sdk 18.0.21 → 18.0.22
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.model.d.ts +3 -0
- package/lib/Shared/components/form-generator/form-generated-value/form-generated-value.component.d.ts +2 -2
- 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/info-dialog/info-dialog.component.d.ts +1 -1
- package/lib/Shared/components/table-https/table-https.component.d.ts +4 -3
- 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[]) => (AsyncValidatorFn | AsyncValidatorFn[] | ValidatorFn | ValidatorFn[] | T | FormControlOptions)[];
|
|
63
63
|
back: () => void;
|
|
64
64
|
onlyOneInput(inputs: FormControl[]): Subscription;
|
|
65
65
|
copyPayload(payload: any): Promise<void>;
|
|
@@ -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;
|
|
@@ -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<6 | 1 | 2 | "auto" | 3 | 4 | 5>;
|
|
22
22
|
readonly showButtons: InputSignal<boolean>;
|
|
23
23
|
readonly hideClone: InputSignal<boolean>;
|
|
24
24
|
readonly hideShow: InputSignal<boolean>;
|
|
@@ -20,7 +20,7 @@ export declare class InfoDialogComponent implements OnInit {
|
|
|
20
20
|
yes(btn?: IInfoDialogBtn): void;
|
|
21
21
|
no(): void;
|
|
22
22
|
handleAction: (event: PointerEvent, item: IInfoDialogBtn) => void;
|
|
23
|
-
cls: (status?: 0 | 1 | 2) => "" | "
|
|
23
|
+
cls: (status?: 0 | 1 | 2) => "danger" | "success" | "info" | "";
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDialogComponent, never>;
|
|
25
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
26
26
|
}
|
|
@@ -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[];
|