ets-fe-ng-sdk 17.0.429 → 17.0.430
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 +4 -4
- package/esm2022/lib/Shared/components/form-generator/form-generator.base.component.mjs +20 -8
- package/esm2022/lib/Shared/components/table-plain/table-base.component.mjs +7 -4
- package/esm2022/lib/Shared/components/table-plain/table-plain.service.mjs +2 -1
- package/esm2022/lib/Shared/components/text-case-2/text-case-2.component.mjs +2 -2
- package/fesm2022/ets-fe-ng-sdk.mjs +26 -10
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/lib/Reusables/reusable-comps/find-item/find-item.component.d.ts +0 -2
- package/lib/Services/utility.service.d.ts +1 -1
- package/lib/Shared/components/btn/btn.component.d.ts +3 -3
- package/lib/Shared/components/form-generator/form-generated-value/form-generated-value.component.d.ts +1 -1
- package/lib/Shared/components/form-generator/form-generator.base.component.d.ts +9 -2
- 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 +3 -3
- package/lib/Shared/components/table-plain/table-base.component.d.ts +2 -1
- package/lib/Shared/components/table-plain/table-plain.service.d.ts +3 -0
- package/lib/Shared/components/text-case-2/text-case-2.component.d.ts +4 -4
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@ import { IObjectLiteral, IRowOption, IStrictFormGroup, SortType, TableCol } from
|
|
|
7
7
|
import { TablePlainComponent } from '../../../Shared/components/table-plain/table-plain.component';
|
|
8
8
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
9
9
|
import { BaseFormGenerator, IBaseFormSchema } from '../../../Shared/components/form-generator/form-generator.base.component';
|
|
10
|
-
import { TableService } from '../../../Shared/components/table-plain/table-plain.service';
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
12
11
|
export declare class FindItemComponent<TQuery extends IObjectLiteral = any, TRow extends IObjectLiteral = any> extends BaseFormGenerator<TQuery, ISearchFormSchema<TQuery, TRow>> implements OnInit {
|
|
13
12
|
/**
|
|
@@ -85,7 +84,6 @@ export declare class FindItemComponent<TQuery extends IObjectLiteral = any, TRow
|
|
|
85
84
|
uaS: UserActivityService;
|
|
86
85
|
router: Router;
|
|
87
86
|
route: ActivatedRoute;
|
|
88
|
-
tS: TableService;
|
|
89
87
|
protected readonly subs2: {
|
|
90
88
|
clear: () => void;
|
|
91
89
|
push: (...subs: import("rxjs").Subscription[]) => void;
|
|
@@ -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, validatorOrOpts?: ValidatorFn | ValidatorFn[] | FormControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => (
|
|
62
|
+
formControl: <T>(value?: T, 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>;
|
|
@@ -24,7 +24,7 @@ export declare class BtnComponent implements OnInit {
|
|
|
24
24
|
set _type(v: BtnType);
|
|
25
25
|
set _group(v: BtnGroup);
|
|
26
26
|
readonly _mclass: import("@angular/core").WritableSignal<string>;
|
|
27
|
-
readonly actionType: import("@angular/core").InputSignal<"
|
|
27
|
+
readonly actionType: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
|
|
28
28
|
readonly animate: import("@angular/core").InputSignal<boolean>;
|
|
29
29
|
excludeLogging: boolean;
|
|
30
30
|
loggingValue: string;
|
|
@@ -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> |
|
|
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> |
|
|
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
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class FormGeneratedValueComponent<TFormGroup extends {
|
|
|
51
51
|
noFormat?: boolean;
|
|
52
52
|
optionFormatter?: (item: any) => string;
|
|
53
53
|
options?: any[];
|
|
54
|
-
optionsAsync?:
|
|
54
|
+
optionsAsync?: import("rxjs").Observable<any[]> | Promise<any[]>;
|
|
55
55
|
optionsInitFunc?: import("rxjs").Observable<any[]>;
|
|
56
56
|
optionsInitFunc2?: () => import("rxjs").Observable<any[]>;
|
|
57
57
|
optionsKey?: string;
|
|
@@ -5,19 +5,26 @@ import { Observable, Subscription } from 'rxjs';
|
|
|
5
5
|
import { UtilityService } from '../../../Services/utility.service';
|
|
6
6
|
import { IObjectLiteral, InputType } from '../../models/index.model';
|
|
7
7
|
import { IconType } from '../btn/btn.model';
|
|
8
|
+
import { TableService } from '../table-plain/table-plain.service';
|
|
8
9
|
export declare abstract class BaseFormGenerator<TFormGroup extends IObjectLiteral, TBaseFormSchema extends {
|
|
9
10
|
field?: any;
|
|
11
|
+
label?: string;
|
|
10
12
|
} = any> {
|
|
11
|
-
|
|
13
|
+
readonly tableService: TableService;
|
|
14
|
+
protected _formSchemaMap: import("@angular/core").WritableSignal<{
|
|
15
|
+
[field: string]: TBaseFormSchema;
|
|
16
|
+
}>;
|
|
17
|
+
protected formSchemaMap: import("@angular/core").Signal<{
|
|
12
18
|
[field: string]: TBaseFormSchema;
|
|
13
19
|
}>;
|
|
14
|
-
formSchema: import("@angular/core").Signal<TBaseFormSchema[]>;
|
|
20
|
+
readonly formSchema: import("@angular/core").Signal<TBaseFormSchema[]>;
|
|
15
21
|
subs: {
|
|
16
22
|
[fieldName: string]: Subscription;
|
|
17
23
|
};
|
|
18
24
|
utilityService: UtilityService<any>;
|
|
19
25
|
destroyRef: DestroyRef;
|
|
20
26
|
cdr: ChangeDetectorRef;
|
|
27
|
+
readonly useCustomLabels: import("@angular/core").ModelSignal<boolean>;
|
|
21
28
|
constructor();
|
|
22
29
|
onDestroy(): void;
|
|
23
30
|
protected _setFormSchemas(schemas: TBaseFormSchema[]): void;
|
|
@@ -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 | 4 | 1 | 3 | 2 | "auto" | 5>;
|
|
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>;
|
|
@@ -78,6 +78,7 @@ export declare abstract class TableBaseComponent<TItem extends IObjectLiteral> {
|
|
|
78
78
|
};
|
|
79
79
|
uS: UtilityService<any>;
|
|
80
80
|
tS: TableService;
|
|
81
|
+
readonly useCustomLabels: import("@angular/core").ModelSignal<boolean>;
|
|
81
82
|
/** Whether the number of selected elements matches the total number of rows. */
|
|
82
83
|
readonly isAllSelected: Signal<boolean>;
|
|
83
84
|
readonly isAnySelected: Signal<boolean>;
|
|
@@ -107,5 +108,5 @@ export declare abstract class TableBaseComponent<TItem extends IObjectLiteral> {
|
|
|
107
108
|
closeExpandedCell(): void;
|
|
108
109
|
refreshUI(): void;
|
|
109
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableBaseComponent<any>, never>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableBaseComponent<any>, "ng-component", never, { "rowOptions": { "alias": "rowOptions"; "required": false; "isSignal": true; }; "centerCells": { "alias": "centerCells"; "required": false; "isSignal": true; }; "curvy": { "alias": "curvy"; "required": false; "isSignal": true; }; "distinct": { "alias": "distinct"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "isExpandable": { "alias": "isExpandable"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "isDisabledFunc": { "alias": "isDisabledFunc"; "required": false; "isSignal": true; }; "noItemTxt": { "alias": "noItemTxt"; "required": false; "isSignal": true; }; "nowrap": { "alias": "nowrap"; "required": false; "isSignal": true; }; "expandedRowTemplate": { "alias": "expandedRowTemplate"; "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; }; "startSectionTemplate": { "alias": "startSectionTemplate"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "placeSelectionAtRight": { "alias": "placeSelectionAtRight"; "required": false; "isSignal": true; }; "showAdditionalColumns": { "alias": "showAdditionalColumns"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "showRowPointer": { "alias": "showRowPointer"; "required": false; "isSignal": true; }; "smallerFonts": { "alias": "smallerFonts"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "tableContainerClass": { "alias": "tableContainerClass"; "required": false; "isSignal": true; }; "useSelection": { "alias": "useSelection"; "required": false; "isSignal": true; }; "formSchemaToColumns": { "alias": "formSchemaToColumns"; "required": false; "isSignal": true; }; "uploadSchemaToColumns": { "alias": "uploadSchemaToColumns"; "required": false; "isSignal": true; }; "_displayedColumns": { "alias": "displayedColumns"; "required": false; "isSignal": true; }; }, { "_rowClick": "rowClick"; "selectionChanged": "selectionChanged"; "emitCheckbox": "emitCheckbox"; }, never, never, true, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableBaseComponent<any>, "ng-component", never, { "rowOptions": { "alias": "rowOptions"; "required": false; "isSignal": true; }; "centerCells": { "alias": "centerCells"; "required": false; "isSignal": true; }; "curvy": { "alias": "curvy"; "required": false; "isSignal": true; }; "distinct": { "alias": "distinct"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "isExpandable": { "alias": "isExpandable"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "isDisabledFunc": { "alias": "isDisabledFunc"; "required": false; "isSignal": true; }; "noItemTxt": { "alias": "noItemTxt"; "required": false; "isSignal": true; }; "nowrap": { "alias": "nowrap"; "required": false; "isSignal": true; }; "expandedRowTemplate": { "alias": "expandedRowTemplate"; "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; }; "startSectionTemplate": { "alias": "startSectionTemplate"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "placeSelectionAtRight": { "alias": "placeSelectionAtRight"; "required": false; "isSignal": true; }; "showAdditionalColumns": { "alias": "showAdditionalColumns"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "showRowPointer": { "alias": "showRowPointer"; "required": false; "isSignal": true; }; "smallerFonts": { "alias": "smallerFonts"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "tableContainerClass": { "alias": "tableContainerClass"; "required": false; "isSignal": true; }; "useSelection": { "alias": "useSelection"; "required": false; "isSignal": true; }; "formSchemaToColumns": { "alias": "formSchemaToColumns"; "required": false; "isSignal": true; }; "uploadSchemaToColumns": { "alias": "uploadSchemaToColumns"; "required": false; "isSignal": true; }; "_displayedColumns": { "alias": "displayedColumns"; "required": false; "isSignal": true; }; "useCustomLabels": { "alias": "useCustomLabels"; "required": false; "isSignal": true; }; }, { "_rowClick": "rowClick"; "selectionChanged": "selectionChanged"; "emitCheckbox": "emitCheckbox"; "useCustomLabels": "useCustomLabelsChange"; }, never, never, true, never>;
|
|
111
112
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { IKVP, TableCol } from '../../models/index.model';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TableService {
|
|
4
|
+
customLabelMap: {
|
|
5
|
+
[field: string]: string;
|
|
6
|
+
};
|
|
4
7
|
constructor();
|
|
5
8
|
formatToColours: (key: any, codes?: IKVP[]) => string;
|
|
6
9
|
getRawFields(arr: TableCol[], optionsLen?: number, useSelection?: boolean, placeSelectionAtRight?: boolean, // the parameter is to support setting the selection checkboxes as the last item instead of the first
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateRef
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { InputType } from '../../models/index.model';
|
|
4
4
|
import { TextCaseService } from './text-case.service';
|
|
@@ -26,9 +26,9 @@ 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: Signal<Promise<string> | Observable<string>>;
|
|
30
|
-
computedValue: Signal<string | number | boolean>;
|
|
31
|
-
computedValueFormatter: Signal<Promise<string | number | boolean> | Observable<string | number | boolean>>;
|
|
29
|
+
computedRoute: import("@angular/core").Signal<Promise<string> | Observable<string>>;
|
|
30
|
+
computedValue: import("@angular/core").Signal<string | number | boolean>;
|
|
31
|
+
computedValueFormatter: import("@angular/core").Signal<Promise<string | number | boolean> | Observable<string | number | boolean>>;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextCase2Component<any>, never>;
|
|
33
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextCase2Component<any>, "text-case-2", never, { "action": { "alias": "action"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "coloredLbl": { "alias": "coloredLbl"; "required": false; "isSignal": true; }; "coloredVal": { "alias": "coloredVal"; "required": false; "isSignal": true; }; "centered": { "alias": "centered"; "required": false; "isSignal": true; }; "customValueTemplate": { "alias": "customValueTemplate"; "required": false; "isSignal": true; }; "formatter": { "alias": "formatter"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "light": { "alias": "light"; "required": false; "isSignal": true; }; "mini": { "alias": "mini"; "required": false; "isSignal": true; }; "route": { "alias": "route"; "required": false; "isSignal": true; }; "routeFunc": { "alias": "routeFunc"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "wrapLabel": { "alias": "wrapLabel"; "required": false; "isSignal": true; }; "isEmail": { "alias": "isEmail"; "required": false; "isSignal": true; }; "isPhone": { "alias": "isPhone"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
34
34
|
}
|