@flusys/ng-shared 5.5.0 → 6.0.0-beta.2
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/flusys-ng-shared.mjs +475 -724
- package/fesm2022/flusys-ng-shared.mjs.map +1 -1
- package/package.json +3 -5
- package/types/flusys-ng-shared.d.ts +121 -153
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/ng-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.2",
|
|
4
4
|
"description": "Shared components and utilities for FLUSYS Angular packages",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,10 +8,8 @@
|
|
|
8
8
|
"@angular/core": ">=22.0.0",
|
|
9
9
|
"@angular/forms": ">=22.0.0",
|
|
10
10
|
"@angular/router": ">=22.0.0",
|
|
11
|
-
"@flusys/ng-core": ">=
|
|
12
|
-
"@
|
|
13
|
-
"primeicons": ">=7.0.0",
|
|
14
|
-
"primeng": ">=22.0.0-rc.1",
|
|
11
|
+
"@flusys/ng-core": ">=6.0.0-beta.2",
|
|
12
|
+
"@flusys/ng-ui": ">=6.0.0-beta.2",
|
|
15
13
|
"rxjs": "^7.8.0"
|
|
16
14
|
},
|
|
17
15
|
"sideEffects": false,
|
|
@@ -8,49 +8,11 @@ import { ResolveFn, CanActivateFn } from '@angular/router';
|
|
|
8
8
|
import * as i1 from '@angular/common';
|
|
9
9
|
import * as i2 from '@angular/forms';
|
|
10
10
|
import { ControlValueAccessor } from '@angular/forms';
|
|
11
|
-
import * as i1$1 from 'primeng/autocomplete';
|
|
12
|
-
import * as i2$1 from 'primeng/avatar';
|
|
13
|
-
import * as i3$1 from 'primeng/button';
|
|
14
|
-
import * as i4 from 'primeng/card';
|
|
15
|
-
import * as i5 from 'primeng/checkbox';
|
|
16
|
-
import { CheckboxChangeEvent } from 'primeng/checkbox';
|
|
17
|
-
import * as i6 from 'primeng/confirmdialog';
|
|
18
|
-
import * as i7 from 'primeng/datepicker';
|
|
19
|
-
import * as i8 from 'primeng/dialog';
|
|
20
|
-
import * as i9 from 'primeng/divider';
|
|
21
|
-
import * as i10 from 'primeng/fileupload';
|
|
22
|
-
import * as i11 from 'primeng/iconfield';
|
|
23
|
-
import * as i12 from 'primeng/inputicon';
|
|
24
|
-
import * as i13 from 'primeng/inputnumber';
|
|
25
|
-
import * as i14 from 'primeng/inputpassword';
|
|
26
|
-
import * as i15 from 'primeng/inputtags';
|
|
27
|
-
import * as i16 from 'primeng/inputtext';
|
|
28
|
-
import * as i17 from 'primeng/listbox';
|
|
29
|
-
import * as i18 from 'primeng/paginator';
|
|
30
|
-
import * as i19 from 'primeng/panel';
|
|
31
|
-
import * as i20 from 'primeng/popover';
|
|
32
|
-
import * as i21 from 'primeng/progressbar';
|
|
33
|
-
import * as i22 from 'primeng/radiobutton';
|
|
34
|
-
import * as i23 from 'primeng/ripple';
|
|
35
|
-
import * as i24 from 'primeng/selectbutton';
|
|
36
|
-
import * as i25 from 'primeng/select';
|
|
37
|
-
import * as i26 from 'primeng/skeleton';
|
|
38
|
-
import * as i27 from 'primeng/splitbutton';
|
|
39
|
-
import * as i28 from 'primeng/steps';
|
|
40
|
-
import * as i29 from 'primeng/table';
|
|
41
|
-
import * as i30 from 'primeng/tabs';
|
|
42
|
-
import * as i31 from 'primeng/tag';
|
|
43
|
-
import * as i32 from 'primeng/textarea';
|
|
44
|
-
import * as i33 from 'primeng/toast';
|
|
45
|
-
import * as i34 from 'primeng/togglebutton';
|
|
46
|
-
import * as i35 from 'primeng/toggleswitch';
|
|
47
|
-
import * as i36 from 'primeng/tooltip';
|
|
48
|
-
import * as i37 from 'primeng/treetable';
|
|
49
|
-
import * as i38 from 'primeng/progressspinner';
|
|
50
11
|
import * as _flusys_ng_shared from '@flusys/ng-shared';
|
|
51
12
|
import { ServiceName } from '@flusys/ng-core';
|
|
52
13
|
import { FormValueControl } from '@angular/forms/signals';
|
|
53
14
|
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
15
|
+
import { CheckboxChangeEvent } from '@flusys/ng-ui';
|
|
54
16
|
|
|
55
17
|
declare const SHARED_MESSAGES: Record<string, string>;
|
|
56
18
|
|
|
@@ -559,7 +521,7 @@ interface IUserProvider {
|
|
|
559
521
|
pageSize?: number;
|
|
560
522
|
search?: string;
|
|
561
523
|
isActive?: boolean;
|
|
562
|
-
[key: string]:
|
|
524
|
+
[key: string]: unknown;
|
|
563
525
|
}): Observable<IListResponse<IUserBasicInfo>>;
|
|
564
526
|
}
|
|
565
527
|
/** Filter params passed to loadUsers function */
|
|
@@ -646,9 +608,8 @@ interface IFileProvider {
|
|
|
646
608
|
}
|
|
647
609
|
|
|
648
610
|
declare enum IconTypeEnum {
|
|
649
|
-
|
|
650
|
-
IMAGE_FILE_LINK = 2
|
|
651
|
-
DIRECT_TAG_SVG = 3
|
|
611
|
+
ICON_NAME = 1,
|
|
612
|
+
IMAGE_FILE_LINK = 2
|
|
652
613
|
}
|
|
653
614
|
|
|
654
615
|
declare class CookieService {
|
|
@@ -903,12 +864,6 @@ declare class AngularModule {
|
|
|
903
864
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AngularModule>;
|
|
904
865
|
}
|
|
905
866
|
|
|
906
|
-
declare class PrimeModule {
|
|
907
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PrimeModule, never>;
|
|
908
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<PrimeModule, never, never, [typeof i1$1.AutoCompleteModule, typeof i2$1.AvatarModule, typeof i3$1.ButtonModule, typeof i4.CardModule, typeof i5.CheckboxModule, typeof i6.ConfirmDialogModule, typeof i7.DatePickerModule, typeof i8.DialogModule, typeof i9.DividerModule, typeof i10.FileUploadModule, typeof i11.IconFieldModule, typeof i12.InputIconModule, typeof i13.InputNumberModule, typeof i14.InputPasswordModule, typeof i15.InputTagsModule, typeof i16.InputTextModule, typeof i17.ListboxModule, typeof i18.PaginatorModule, typeof i19.PanelModule, typeof i20.PopoverModule, typeof i21.ProgressBarModule, typeof i22.RadioButtonModule, typeof i23.RippleModule, typeof i24.SelectButtonModule, typeof i25.SelectModule, typeof i26.SkeletonModule, typeof i27.SplitButtonModule, typeof i28.StepsModule, typeof i29.TableModule, typeof i30.TabsModule, typeof i31.TagModule, typeof i32.TextareaModule, typeof i33.ToastModule, typeof i34.ToggleButtonModule, typeof i35.ToggleSwitchModule, typeof i36.TooltipModule, typeof i37.TreeTableModule, typeof i38.ProgressSpinnerModule]>;
|
|
909
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<PrimeModule>;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
867
|
interface IApiService<DtoT, InterfaceT> {
|
|
913
868
|
insert(dto: DtoT): Promise<ISingleResponse<InterfaceT>>;
|
|
914
869
|
insertMany(dtos: DtoT[]): Promise<IBulkResponse<InterfaceT>>;
|
|
@@ -1008,6 +963,99 @@ declare function provideValueAccessor<T extends new (...args: unknown[]) => Cont
|
|
|
1008
963
|
multi: boolean;
|
|
1009
964
|
};
|
|
1010
965
|
|
|
966
|
+
declare class BaseFormTemplateDirective {
|
|
967
|
+
readonly key: _angular_core.InputSignal<string>;
|
|
968
|
+
readonly templateRef: TemplateRef<any>;
|
|
969
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormTemplateDirective, never>;
|
|
970
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormTemplateDirective, "ng-template[baseFormTemplate]", never, { "key": { "alias": "baseFormTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
type FormFieldType = 'text' | 'email' | 'password' | 'number' | 'textarea' | 'select' | 'multiselect' | 'date' | 'checkbox' | 'toggle' | 'custom';
|
|
974
|
+
interface IFormSelectOption {
|
|
975
|
+
label: string;
|
|
976
|
+
value: unknown;
|
|
977
|
+
}
|
|
978
|
+
interface IFormField {
|
|
979
|
+
key: string;
|
|
980
|
+
type: FormFieldType;
|
|
981
|
+
label: string;
|
|
982
|
+
placeholder?: string;
|
|
983
|
+
required?: boolean;
|
|
984
|
+
disabled?: boolean;
|
|
985
|
+
fullWidth?: boolean;
|
|
986
|
+
options?: IFormSelectOption[];
|
|
987
|
+
minDate?: Date;
|
|
988
|
+
maxDate?: Date;
|
|
989
|
+
rows?: number;
|
|
990
|
+
min?: number;
|
|
991
|
+
max?: number;
|
|
992
|
+
hint?: string;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
declare class BaseFormComponent {
|
|
996
|
+
private readonly translateAdapter;
|
|
997
|
+
private readonly router;
|
|
998
|
+
private readonly messageService;
|
|
999
|
+
readonly fields: _angular_core.InputSignal<IFormField[]>;
|
|
1000
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
1001
|
+
readonly createTitle: _angular_core.InputSignal<string>;
|
|
1002
|
+
readonly editTitle: _angular_core.InputSignal<string>;
|
|
1003
|
+
readonly columns: _angular_core.InputSignal<1 | 2 | 3>;
|
|
1004
|
+
readonly submitLabel: _angular_core.InputSignal<string>;
|
|
1005
|
+
readonly cancelLabel: _angular_core.InputSignal<string>;
|
|
1006
|
+
readonly isLoading: _angular_core.InputSignal<boolean>;
|
|
1007
|
+
readonly isEditMode: _angular_core.InputSignal<boolean>;
|
|
1008
|
+
readonly initialValue: _angular_core.InputSignal<Record<string, unknown>>;
|
|
1009
|
+
readonly service: _angular_core.InputSignal<ApiResourceService<unknown, unknown> | null>;
|
|
1010
|
+
readonly editId: _angular_core.InputSignal<string | null>;
|
|
1011
|
+
readonly cancelRoute: _angular_core.InputSignal<string | string[] | null>;
|
|
1012
|
+
readonly navigateOnSuccess: _angular_core.InputSignal<string | string[] | null>;
|
|
1013
|
+
readonly mapToRequest: _angular_core.InputSignal<((data: Record<string, unknown>, editId: string | null) => unknown) | null>;
|
|
1014
|
+
readonly mapFromEntity: _angular_core.InputSignal<((entity: unknown) => Record<string, unknown>) | null>;
|
|
1015
|
+
readonly onSubmit: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
1016
|
+
readonly onCancel: _angular_core.OutputEmitterRef<void>;
|
|
1017
|
+
readonly onValueChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
1018
|
+
readonly fieldTemplates: _angular_core.Signal<readonly BaseFormTemplateDirective[]>;
|
|
1019
|
+
private readonly _formData;
|
|
1020
|
+
private readonly _submitted;
|
|
1021
|
+
private readonly _isLoadingInternal;
|
|
1022
|
+
private readonly _touchedFields;
|
|
1023
|
+
private readonly _visiblePasswordFields;
|
|
1024
|
+
readonly formData: _angular_core.Signal<Record<string, unknown>>;
|
|
1025
|
+
readonly submitted: _angular_core.Signal<boolean>;
|
|
1026
|
+
readonly effectiveIsEditMode: _angular_core.Signal<boolean>;
|
|
1027
|
+
readonly effectiveIsLoading: _angular_core.Signal<boolean>;
|
|
1028
|
+
readonly isFormValid: _angular_core.Signal<boolean>;
|
|
1029
|
+
readonly resolvedTitle: _angular_core.Signal<string>;
|
|
1030
|
+
readonly gridClass: _angular_core.Signal<"grid-cols-1" | "grid-cols-1 md:grid-cols-3" | "grid-cols-1 md:grid-cols-2">;
|
|
1031
|
+
constructor();
|
|
1032
|
+
private loadEntity;
|
|
1033
|
+
getFieldValue(key: string): unknown;
|
|
1034
|
+
setFieldValue(key: string, value: unknown): void;
|
|
1035
|
+
markFieldTouched(key: string): void;
|
|
1036
|
+
isPasswordVisible(key: string): boolean;
|
|
1037
|
+
togglePasswordVisibility(key: string): void;
|
|
1038
|
+
isFieldInvalid(field: IFormField): boolean;
|
|
1039
|
+
getFieldTemplate(key: string): TemplateRef<unknown> | null;
|
|
1040
|
+
handleSubmit(): Promise<void>;
|
|
1041
|
+
handleCancel(): void;
|
|
1042
|
+
reset(): void;
|
|
1043
|
+
t(key: string, vars?: Record<string, string | number>): string;
|
|
1044
|
+
private managedSubmit;
|
|
1045
|
+
private checkValidity;
|
|
1046
|
+
private navigateTo;
|
|
1047
|
+
private getDefaultValue;
|
|
1048
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormComponent, never>;
|
|
1049
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseFormComponent, "lib-base-form", never, { "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "createTitle": { "alias": "createTitle"; "required": false; "isSignal": true; }; "editTitle": { "alias": "editTitle"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "submitLabel": { "alias": "submitLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isEditMode": { "alias": "isEditMode"; "required": false; "isSignal": true; }; "initialValue": { "alias": "initialValue"; "required": false; "isSignal": true; }; "service": { "alias": "service"; "required": false; "isSignal": true; }; "editId": { "alias": "editId"; "required": false; "isSignal": true; }; "cancelRoute": { "alias": "cancelRoute"; "required": false; "isSignal": true; }; "navigateOnSuccess": { "alias": "navigateOnSuccess"; "required": false; "isSignal": true; }; "mapToRequest": { "alias": "mapToRequest"; "required": false; "isSignal": true; }; "mapFromEntity": { "alias": "mapFromEntity"; "required": false; "isSignal": true; }; }, { "onSubmit": "onSubmit"; "onCancel": "onCancel"; "onValueChange": "onValueChange"; }, ["fieldTemplates"], never, true, never>;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
declare class BaseListTemplateDirective {
|
|
1053
|
+
readonly key: _angular_core.InputSignal<string>;
|
|
1054
|
+
readonly templateRef: TemplateRef<any>;
|
|
1055
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseListTemplateDirective, never>;
|
|
1056
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseListTemplateDirective, "ng-template[baseListTemplate]", never, { "key": { "alias": "baseListTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1011
1059
|
type TableColumnType = 'text' | 'date' | 'tag' | 'boolean' | 'number' | 'custom';
|
|
1012
1060
|
type ActionSeverity = 'success' | 'info' | 'warn' | 'danger' | 'secondary' | 'contrast';
|
|
1013
1061
|
interface ITagConfig {
|
|
@@ -1035,13 +1083,6 @@ interface ITableAction<T = unknown> {
|
|
|
1035
1083
|
handler: (item: T) => void;
|
|
1036
1084
|
}
|
|
1037
1085
|
|
|
1038
|
-
declare class BaseListTemplateDirective {
|
|
1039
|
-
readonly key: _angular_core.InputSignal<string>;
|
|
1040
|
-
readonly templateRef: TemplateRef<any>;
|
|
1041
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseListTemplateDirective, never>;
|
|
1042
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseListTemplateDirective, "ng-template[baseListTemplate]", never, { "key": { "alias": "baseListTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
1086
|
declare class BaseListComponent {
|
|
1046
1087
|
private readonly translateAdapter;
|
|
1047
1088
|
private readonly router;
|
|
@@ -1105,101 +1146,6 @@ declare class BaseListComponent {
|
|
|
1105
1146
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseListComponent, "lib-base-list", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "showCreateButton": { "alias": "showCreateButton"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "createButtonLabel": { "alias": "createButtonLabel"; "required": false; "isSignal": true; }; "createButtonIcon": { "alias": "createButtonIcon"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "service": { "alias": "service"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "createRoute": { "alias": "createRoute"; "required": false; "isSignal": true; }; "editRoute": { "alias": "editRoute"; "required": false; "isSignal": true; }; "deleteConfirmField": { "alias": "deleteConfirmField"; "required": false; "isSignal": true; }; "idField": { "alias": "idField"; "required": false; "isSignal": true; }; "canEdit": { "alias": "canEdit"; "required": false; "isSignal": true; }; "canDelete": { "alias": "canDelete"; "required": false; "isSignal": true; }; }, { "onCreate": "onCreate"; "onLazyLoad": "onLazyLoad"; "onSearch": "onSearch"; }, ["columnTemplates"], never, true, never>;
|
|
1106
1147
|
}
|
|
1107
1148
|
|
|
1108
|
-
type FormFieldType = 'text' | 'email' | 'password' | 'number' | 'textarea' | 'select' | 'multiselect' | 'date' | 'checkbox' | 'toggle' | 'custom';
|
|
1109
|
-
interface IFormSelectOption {
|
|
1110
|
-
label: string;
|
|
1111
|
-
value: unknown;
|
|
1112
|
-
}
|
|
1113
|
-
interface IFormField {
|
|
1114
|
-
key: string;
|
|
1115
|
-
type: FormFieldType;
|
|
1116
|
-
label: string;
|
|
1117
|
-
placeholder?: string;
|
|
1118
|
-
required?: boolean;
|
|
1119
|
-
disabled?: boolean;
|
|
1120
|
-
fullWidth?: boolean;
|
|
1121
|
-
options?: IFormSelectOption[];
|
|
1122
|
-
minDate?: Date;
|
|
1123
|
-
maxDate?: Date;
|
|
1124
|
-
rows?: number;
|
|
1125
|
-
min?: number;
|
|
1126
|
-
max?: number;
|
|
1127
|
-
hint?: string;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
declare class BaseFormTemplateDirective {
|
|
1131
|
-
readonly key: _angular_core.InputSignal<string>;
|
|
1132
|
-
readonly templateRef: TemplateRef<any>;
|
|
1133
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormTemplateDirective, never>;
|
|
1134
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormTemplateDirective, "ng-template[baseFormTemplate]", never, { "key": { "alias": "baseFormTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
declare class BaseFormComponent {
|
|
1138
|
-
private readonly translateAdapter;
|
|
1139
|
-
private readonly router;
|
|
1140
|
-
private readonly messageService;
|
|
1141
|
-
readonly fields: _angular_core.InputSignal<IFormField[]>;
|
|
1142
|
-
readonly title: _angular_core.InputSignal<string>;
|
|
1143
|
-
readonly createTitle: _angular_core.InputSignal<string>;
|
|
1144
|
-
readonly editTitle: _angular_core.InputSignal<string>;
|
|
1145
|
-
readonly columns: _angular_core.InputSignal<1 | 2 | 3>;
|
|
1146
|
-
readonly submitLabel: _angular_core.InputSignal<string>;
|
|
1147
|
-
readonly cancelLabel: _angular_core.InputSignal<string>;
|
|
1148
|
-
readonly isLoading: _angular_core.InputSignal<boolean>;
|
|
1149
|
-
readonly isEditMode: _angular_core.InputSignal<boolean>;
|
|
1150
|
-
readonly initialValue: _angular_core.InputSignal<Record<string, unknown>>;
|
|
1151
|
-
readonly service: _angular_core.InputSignal<ApiResourceService<unknown, unknown> | null>;
|
|
1152
|
-
readonly editId: _angular_core.InputSignal<string | null>;
|
|
1153
|
-
readonly cancelRoute: _angular_core.InputSignal<string | string[] | null>;
|
|
1154
|
-
readonly navigateOnSuccess: _angular_core.InputSignal<string | string[] | null>;
|
|
1155
|
-
readonly mapToRequest: _angular_core.InputSignal<((data: Record<string, unknown>, editId: string | null) => unknown) | null>;
|
|
1156
|
-
readonly mapFromEntity: _angular_core.InputSignal<((entity: unknown) => Record<string, unknown>) | null>;
|
|
1157
|
-
readonly onSubmit: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
1158
|
-
readonly onCancel: _angular_core.OutputEmitterRef<void>;
|
|
1159
|
-
readonly onValueChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
1160
|
-
readonly fieldTemplates: _angular_core.Signal<readonly BaseFormTemplateDirective[]>;
|
|
1161
|
-
private readonly _formData;
|
|
1162
|
-
private readonly _submitted;
|
|
1163
|
-
private readonly _isLoadingInternal;
|
|
1164
|
-
private readonly _touchedFields;
|
|
1165
|
-
private readonly _visiblePasswordFields;
|
|
1166
|
-
readonly formData: _angular_core.Signal<Record<string, unknown>>;
|
|
1167
|
-
readonly submitted: _angular_core.Signal<boolean>;
|
|
1168
|
-
readonly effectiveIsEditMode: _angular_core.Signal<boolean>;
|
|
1169
|
-
readonly effectiveIsLoading: _angular_core.Signal<boolean>;
|
|
1170
|
-
readonly isFormValid: _angular_core.Signal<boolean>;
|
|
1171
|
-
readonly resolvedTitle: _angular_core.Signal<string>;
|
|
1172
|
-
readonly gridClass: _angular_core.Signal<"grid-cols-1" | "grid-cols-1 md:grid-cols-3" | "grid-cols-1 md:grid-cols-2">;
|
|
1173
|
-
constructor();
|
|
1174
|
-
private loadEntity;
|
|
1175
|
-
getFieldValue(key: string): unknown;
|
|
1176
|
-
setFieldValue(key: string, value: unknown): void;
|
|
1177
|
-
markFieldTouched(key: string): void;
|
|
1178
|
-
isPasswordVisible(key: string): boolean;
|
|
1179
|
-
togglePasswordVisibility(key: string): void;
|
|
1180
|
-
isFieldInvalid(field: IFormField): boolean;
|
|
1181
|
-
getFieldTemplate(key: string): TemplateRef<unknown> | null;
|
|
1182
|
-
handleSubmit(): Promise<void>;
|
|
1183
|
-
handleCancel(): void;
|
|
1184
|
-
reset(): void;
|
|
1185
|
-
t(key: string, vars?: Record<string, string | number>): string;
|
|
1186
|
-
private managedSubmit;
|
|
1187
|
-
private checkValidity;
|
|
1188
|
-
private navigateTo;
|
|
1189
|
-
private getDefaultValue;
|
|
1190
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormComponent, never>;
|
|
1191
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseFormComponent, "lib-base-form", never, { "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "createTitle": { "alias": "createTitle"; "required": false; "isSignal": true; }; "editTitle": { "alias": "editTitle"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "submitLabel": { "alias": "submitLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isEditMode": { "alias": "isEditMode"; "required": false; "isSignal": true; }; "initialValue": { "alias": "initialValue"; "required": false; "isSignal": true; }; "service": { "alias": "service"; "required": false; "isSignal": true; }; "editId": { "alias": "editId"; "required": false; "isSignal": true; }; "cancelRoute": { "alias": "cancelRoute"; "required": false; "isSignal": true; }; "navigateOnSuccess": { "alias": "navigateOnSuccess"; "required": false; "isSignal": true; }; "mapToRequest": { "alias": "mapToRequest"; "required": false; "isSignal": true; }; "mapFromEntity": { "alias": "mapFromEntity"; "required": false; "isSignal": true; }; }, { "onSubmit": "onSubmit"; "onCancel": "onCancel"; "onValueChange": "onValueChange"; }, ["fieldTemplates"], never, true, never>;
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
declare class InlineSvgComponent {
|
|
1195
|
-
readonly src: _angular_core.InputSignal<string>;
|
|
1196
|
-
private readonly http;
|
|
1197
|
-
private readonly sanitizer;
|
|
1198
|
-
readonly svg: _angular_core.ResourceRef<_angular_platform_browser.SafeHtml | undefined>;
|
|
1199
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineSvgComponent, never>;
|
|
1200
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InlineSvgComponent, "inline-svg", never, { "src": { "alias": "src"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
1149
|
declare class FileSelectorDialogComponent {
|
|
1204
1150
|
private readonly destroyRef;
|
|
1205
1151
|
private readonly translateAdapter;
|
|
@@ -1320,6 +1266,15 @@ declare class IconComponent {
|
|
|
1320
1266
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "lib-icon", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "iconType": { "alias": "iconType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1321
1267
|
}
|
|
1322
1268
|
|
|
1269
|
+
declare class InlineSvgComponent {
|
|
1270
|
+
readonly src: _angular_core.InputSignal<string>;
|
|
1271
|
+
private readonly http;
|
|
1272
|
+
private readonly sanitizer;
|
|
1273
|
+
readonly svg: _angular_core.ResourceRef<_angular_platform_browser.SafeHtml | undefined>;
|
|
1274
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineSvgComponent, never>;
|
|
1275
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InlineSvgComponent, "inline-svg", never, { "src": { "alias": "src"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1323
1278
|
/**
|
|
1324
1279
|
* Lazy-loading multi-select component with search, pagination, and select-all.
|
|
1325
1280
|
*
|
|
@@ -1408,6 +1363,19 @@ declare class LazySelectComponent extends BaseFormControl<string | null> {
|
|
|
1408
1363
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LazySelectComponent, "lib-lazy-select", never, { "placeHolder": { "alias": "placeHolder"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": true; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": true; "isSignal": true; }; "isEditMode": { "alias": "isEditMode"; "required": true; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": true; "isSignal": true; }; "total": { "alias": "total"; "required": true; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": true; "isSignal": true; }; "selectDataList": { "alias": "selectDataList"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onSearch": "onSearch"; "onPagination": "onPagination"; }, never, never, true, never>;
|
|
1409
1364
|
}
|
|
1410
1365
|
|
|
1366
|
+
interface RouterTabItem {
|
|
1367
|
+
id: string | number;
|
|
1368
|
+
label: string;
|
|
1369
|
+
icon?: string;
|
|
1370
|
+
route: string | unknown[];
|
|
1371
|
+
routerLinkActiveExact?: boolean;
|
|
1372
|
+
}
|
|
1373
|
+
declare class RouterTabsComponent {
|
|
1374
|
+
readonly tabs: _angular_core.InputSignal<RouterTabItem[]>;
|
|
1375
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouterTabsComponent, never>;
|
|
1376
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RouterTabsComponent, "lib-router-tabs", never, { "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1411
1379
|
/**
|
|
1412
1380
|
* Base class for user selection components.
|
|
1413
1381
|
* Provides shared user loading, pagination, and search functionality.
|
|
@@ -1679,5 +1647,5 @@ interface ScrollPaginationConfig {
|
|
|
1679
1647
|
*/
|
|
1680
1648
|
declare function checkScrollPagination(event: Event, config: ScrollPaginationConfig): IPagination | null;
|
|
1681
1649
|
|
|
1682
|
-
export { ACTION_PERMISSIONS, AUTH_STATE_PROVIDER, AngularModule, ApiResourceService, ApiResourceService as ApiService, BRANCH_PERMISSIONS, BaseFormComponent, BaseFormControl, BaseFormTemplateDirective, BaseListComponent, BaseListTemplateDirective, BaseUserSelectComponent, COMPANY_ACTION_PERMISSIONS, COMPANY_API_PROVIDER, COMPANY_PERMISSIONS, CookieService, EMAIL_CONFIG_PERMISSIONS, EMAIL_TEMPLATE_PERMISSIONS, EVENT_PERMISSIONS, EditModeElementChangerDirective, FILE_PERMISSIONS, FILE_PROVIDER, FILE_TYPE_FILTERS, FOLDER_PERMISSIONS, FORM_PERMISSIONS, FORM_RESULT_PERMISSIONS, FaviconService, FileSelectorDialogComponent, FileUploaderComponent, FileUrlService, HasPermissionDirective, IconComponent, IconTypeEnum, InlineSvgComponent, IsEmptyImageDirective, LANGUAGE_PERMISSIONS, LazyMultiSelectComponent, LazySelectComponent, NOTIFICATION_PERMISSIONS, PERMISSIONS, PROFILE_PERMISSION_PROVIDER, PermissionValidatorService, PlatformService, PreventDefaultDirective,
|
|
1683
|
-
export type { ActionSeverity, DeleteType, FilesResponseDto, FormFieldType, IActionNode, IActivatable, IApiService, IAuthStateProvider, IBaseEntity, IBulkMeta, IBulkResponse, ICompanyApiProvider, ICompanyBasicInfo, IDeleteData, IDropDown, IFileBasicInfo, IFileProvider, IFileSelectFilter, IFileUploadOptions, IFilter, IFilterData, IFolderBasicInfo, IFormField, IFormSelectOption, IGroupNode, IListResponse, ILoggedUserInfo, ILogicNode, IMessageResponse, IOrderable, IPagination, IPaginationMeta, IProfileActionInfo, IProfilePermissionProvider, IProfileRoleInfo, IRequestMeta, IResolverModuleConfig, ISelectFilter, ISingleResponse, ISoftDeletable, ISort, IStorageConfigBasicInfo, ITableAction, ITableColumn, ITagConfig, ITimestampable, IUploadedFile, IUserBasicInfo, IUserBranchPermission, IUserPermissionProvider, IUserProvider, IUserSelectFilter, LoadUsersFn, PermissionCode, ScrollPaginationConfig, TableColumnType, UploadFileFn, UploadMultipleFilesFn };
|
|
1650
|
+
export { ACTION_PERMISSIONS, AUTH_STATE_PROVIDER, AngularModule, ApiResourceService, ApiResourceService as ApiService, BRANCH_PERMISSIONS, BaseFormComponent, BaseFormControl, BaseFormTemplateDirective, BaseListComponent, BaseListTemplateDirective, BaseUserSelectComponent, COMPANY_ACTION_PERMISSIONS, COMPANY_API_PROVIDER, COMPANY_PERMISSIONS, CookieService, EMAIL_CONFIG_PERMISSIONS, EMAIL_TEMPLATE_PERMISSIONS, EVENT_PERMISSIONS, EditModeElementChangerDirective, FILE_PERMISSIONS, FILE_PROVIDER, FILE_TYPE_FILTERS, FOLDER_PERMISSIONS, FORM_PERMISSIONS, FORM_RESULT_PERMISSIONS, FaviconService, FileSelectorDialogComponent, FileUploaderComponent, FileUrlService, HasPermissionDirective, IconComponent, IconTypeEnum, InlineSvgComponent, IsEmptyImageDirective, LANGUAGE_PERMISSIONS, LazyMultiSelectComponent, LazySelectComponent, NOTIFICATION_PERMISSIONS, PERMISSIONS, PROFILE_PERMISSION_PROVIDER, PermissionValidatorService, PlatformService, PreventDefaultDirective, ROLE_ACTION_PERMISSIONS, ROLE_PERMISSIONS, RouterTabsComponent, SHARED_MESSAGES, SKIP_ERROR_TOAST, STORAGE_CONFIG_PERMISSIONS, TRANSLATION_KEY_PERMISSIONS, TRANSLATION_PERMISSIONS, TranslatePipe, TranslateService, UPLOAD_CONFIG_PERMISSIONS, USER_ACTION_PERMISSIONS, USER_PERMISSIONS, USER_PERMISSION_PROVIDER, USER_PROVIDER, USER_ROLE_PERMISSIONS, UserMultiSelectComponent, UserSelectComponent, allPermissionsGuard, anyPermissionGuard, checkScrollPagination, errorCatchingInterceptor, evaluateLogicNode, evaluatePermission, formatFileSize, formatInTimezone, getAcceptString, getFileIconClass, getUserTimezone, hasAllPermissions, hasAnyPermission, hasPermission, isFileTypeAllowed, localToUtc, permissionGuard, provideValueAccessor, resolveTranslationModule, utcToLocal };
|
|
1651
|
+
export type { ActionSeverity, DeleteType, FilesResponseDto, FormFieldType, IActionNode, IActivatable, IApiService, IAuthStateProvider, IBaseEntity, IBulkMeta, IBulkResponse, ICompanyApiProvider, ICompanyBasicInfo, IDeleteData, IDropDown, IFileBasicInfo, IFileProvider, IFileSelectFilter, IFileUploadOptions, IFilter, IFilterData, IFolderBasicInfo, IFormField, IFormSelectOption, IGroupNode, IListResponse, ILoggedUserInfo, ILogicNode, IMessageResponse, IOrderable, IPagination, IPaginationMeta, IProfileActionInfo, IProfilePermissionProvider, IProfileRoleInfo, IRequestMeta, IResolverModuleConfig, ISelectFilter, ISingleResponse, ISoftDeletable, ISort, IStorageConfigBasicInfo, ITableAction, ITableColumn, ITagConfig, ITimestampable, IUploadedFile, IUserBasicInfo, IUserBranchPermission, IUserPermissionProvider, IUserProvider, IUserSelectFilter, LoadUsersFn, PermissionCode, RouterTabItem, ScrollPaginationConfig, TableColumnType, UploadFileFn, UploadMultipleFilesFn };
|