@esfaenza/core 19.2.80 → 19.2.82
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/components/components.module.d.ts +5 -3
- package/components/public-api.d.ts +5 -0
- package/components/search/base-search.d.ts +36 -0
- package/components/selector/base/base-selector.component.d.ts +97 -0
- package/components/selector/base/models/BaseSelectorInitialization.d.ts +9 -0
- package/components/selector/form-selector/form-selector.component.d.ts +27 -0
- package/components/selector/form-selector-dialog/form-selector-dialog.component.d.ts +21 -0
- package/fesm2022/esfaenza-core-components.mjs +643 -24
- package/fesm2022/esfaenza-core-components.mjs.map +1 -1
- package/fesm2022/esfaenza-core.mjs +2 -2
- package/fesm2022/esfaenza-core.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -6,8 +6,8 @@ import * as i4 from "@esfaenza/core/directives";
|
|
|
6
6
|
import * as i5 from "@esfaenza/localizations";
|
|
7
7
|
import * as i6 from "ngx-bootstrap/progressbar";
|
|
8
8
|
import * as i7 from "ngx-bootstrap/dropdown";
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
9
|
+
import * as i8 from "ngx-bootstrap/modal";
|
|
10
|
+
import * as i9 from "@esfaenza/es-table";
|
|
11
11
|
import * as i10 from "./back-top/back-top.component";
|
|
12
12
|
import * as i11 from "./breadcrumb/breadcrumb.component";
|
|
13
13
|
import * as i12 from "./error/errorpage.component";
|
|
@@ -22,8 +22,10 @@ import * as i20 from "./es-modal/es-modal.component";
|
|
|
22
22
|
import * as i21 from "./es-modal/es-modal-head/es-modal-head.component";
|
|
23
23
|
import * as i22 from "./labeled-span/labeled-span.component";
|
|
24
24
|
import * as i23 from "./es-image-cropper/es-image-cropper.component";
|
|
25
|
+
import * as i24 from "./selector/form-selector/form-selector.component";
|
|
26
|
+
import * as i25 from "./selector/form-selector-dialog/form-selector-dialog.component";
|
|
25
27
|
export declare class ComponentsModule {
|
|
26
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
|
27
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.FormsModule, typeof i4.DirectivesModule, typeof i5.LocalizationModule, typeof i6.ProgressbarModule, typeof i7.BsDropdownModule, typeof i8.
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.FormsModule, typeof i4.DirectivesModule, typeof i5.LocalizationModule, typeof i6.ProgressbarModule, typeof i7.BsDropdownModule, typeof i8.ModalModule, typeof i9.EsTableModule, typeof i10.BackTop, typeof i11.Breadcrumb, typeof i12.ErrorPageComponent, typeof i13.PagesComponent, typeof i14.ExternalPagesComponent, typeof i15.JaceLoginComponent, typeof i16.Navbar, typeof i17.RedirecterComponent, typeof i18.Sidebar, typeof i19.JaceResourceComponent, typeof i20.EsModalComponent, typeof i21.EsModalHeadComponent, typeof i22.LabeledSpanComponent, typeof i23.EsImageCropperComponent, typeof i24.FormSelectorComponent, typeof i25.FormSelectorDialogComponent], [typeof i10.BackTop, typeof i11.Breadcrumb, typeof i12.ErrorPageComponent, typeof i13.PagesComponent, typeof i14.ExternalPagesComponent, typeof i15.JaceLoginComponent, typeof i16.Navbar, typeof i17.RedirecterComponent, typeof i18.Sidebar, typeof i19.JaceResourceComponent, typeof i20.EsModalComponent, typeof i21.EsModalHeadComponent, typeof i22.LabeledSpanComponent, typeof i23.EsImageCropperComponent, typeof i24.FormSelectorComponent, typeof i25.FormSelectorDialogComponent]>;
|
|
28
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
29
31
|
}
|
|
@@ -17,3 +17,8 @@ export * from "./es-modal/es-modal-head/es-modal-head.component";
|
|
|
17
17
|
export * from "./user_infos/user_infos.component";
|
|
18
18
|
export * from "./labeled-span/labeled-span.component";
|
|
19
19
|
export * from "./es-image-cropper/es-image-cropper.component";
|
|
20
|
+
export * from "./selector/base/base-selector.component";
|
|
21
|
+
export * from "./selector/base/models/BaseSelectorInitialization";
|
|
22
|
+
export * from "./search/base-search";
|
|
23
|
+
export * from "./selector/form-selector/form-selector.component";
|
|
24
|
+
export * from "./selector/form-selector-dialog/form-selector-dialog.component";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Injector } from "@angular/core";
|
|
2
|
+
import { AppSearch } from "@esfaenza/es-table";
|
|
3
|
+
import { UtilityService } from "@esfaenza/extensions";
|
|
4
|
+
import { HTTPService } from "@esfaenza/httpservice";
|
|
5
|
+
import { LocalizationService } from "@esfaenza/localizations";
|
|
6
|
+
import { BaseComponent } from "../base/base.component";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare abstract class BaseSearchComponent<TSearch extends AppSearch<TItem>, TItem> extends BaseComponent {
|
|
9
|
+
searchView: TSearch;
|
|
10
|
+
protected HotView: string;
|
|
11
|
+
protected SearchURL: string;
|
|
12
|
+
protected SearchType: new () => TSearch;
|
|
13
|
+
protected ItemType: new () => TItem;
|
|
14
|
+
protected http: HTTPService;
|
|
15
|
+
protected utiExts: UtilityService;
|
|
16
|
+
private location;
|
|
17
|
+
private localStorage;
|
|
18
|
+
private route;
|
|
19
|
+
lc: LocalizationService;
|
|
20
|
+
constructor(injector: Injector);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
private init;
|
|
23
|
+
private createOrLoadView;
|
|
24
|
+
sendSearch(): void;
|
|
25
|
+
onSearchRequest(resetPage?: boolean): void;
|
|
26
|
+
private RetrieveProto;
|
|
27
|
+
prepareExport(callback: any, limit?: number): void;
|
|
28
|
+
abstract initialize(): [string, string, new () => TSearch, new () => TItem] | any;
|
|
29
|
+
protected getDictionaries(): Promise<void>;
|
|
30
|
+
protected afterLoadView(_: TSearch): void;
|
|
31
|
+
protected afterCreateView(_: TSearch): void;
|
|
32
|
+
protected reviewBindings(): void;
|
|
33
|
+
protected canPerformSearch(): boolean;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSearchComponent<any, any>, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseSearchComponent<any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { EventEmitter, Injector, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
+
import { NgForm, NgModel } from "@angular/forms";
|
|
3
|
+
import { AccessControlService } from "@esfaenza/access-control";
|
|
4
|
+
import { LocalizationService } from "@esfaenza/localizations";
|
|
5
|
+
import { HTTPService } from "@esfaenza/httpservice";
|
|
6
|
+
import { AppState } from "@esfaenza/core/services";
|
|
7
|
+
import { AppSearch, ThTdProvider } from "@esfaenza/es-table";
|
|
8
|
+
import { ReplaySubject, Subject } from "rxjs";
|
|
9
|
+
import { ModalDirective } from "ngx-bootstrap/modal";
|
|
10
|
+
import { BaseSelectorInitialization } from "./models/BaseSelectorInitialization";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class BaseSelectorComponent<TSearch extends AppSearch<TItem>, TItem> {
|
|
13
|
+
private injector;
|
|
14
|
+
Initialized: ReplaySubject<void>;
|
|
15
|
+
itemSearch: import("@angular/core").Signal<ModalDirective>;
|
|
16
|
+
EsTableTemplate: import("@angular/core").Signal<ThTdProvider>;
|
|
17
|
+
FiltersTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
18
|
+
ModalOnly: boolean;
|
|
19
|
+
EntityName: string;
|
|
20
|
+
searchModal: ModalDirective;
|
|
21
|
+
inputChange: EventEmitter<TItem[] | TItem>;
|
|
22
|
+
firstValueLoaded: EventEmitter<void>;
|
|
23
|
+
protected SelectedItems: string[];
|
|
24
|
+
SelectedObjects: TItem[];
|
|
25
|
+
SelectedLabel: string;
|
|
26
|
+
propagateChange: (_: any) => void;
|
|
27
|
+
registerOnChange(fn: any): void;
|
|
28
|
+
registerOnTouched(fn: any): void;
|
|
29
|
+
DisplayMode: boolean;
|
|
30
|
+
Readonly: boolean;
|
|
31
|
+
Form: NgForm;
|
|
32
|
+
Placeholder: string;
|
|
33
|
+
ngModelOptions: any;
|
|
34
|
+
SingleSelection: boolean;
|
|
35
|
+
Required: boolean;
|
|
36
|
+
Validation: boolean;
|
|
37
|
+
PageSize: number;
|
|
38
|
+
Navigation: boolean;
|
|
39
|
+
EmitStartingValue: boolean;
|
|
40
|
+
dialogVisible: EventEmitter<boolean>;
|
|
41
|
+
dialogHidden: EventEmitter<boolean>;
|
|
42
|
+
inputFinalized: EventEmitter<string>;
|
|
43
|
+
selected: EventEmitter<TItem>;
|
|
44
|
+
name: string;
|
|
45
|
+
searchView: TSearch;
|
|
46
|
+
protected nameof: <T>(name: Extract<keyof T, string>) => string;
|
|
47
|
+
subject: string;
|
|
48
|
+
private searchType;
|
|
49
|
+
private searchApi;
|
|
50
|
+
private itemIdProperty;
|
|
51
|
+
private searchIndependantProperties;
|
|
52
|
+
navigationEntity: string;
|
|
53
|
+
protected applyFilters(firstApplication?: boolean, onlyEssentials?: boolean): void;
|
|
54
|
+
protected applyIdFilter(itemid?: string): void;
|
|
55
|
+
protected evaluateLabel(item: TItem[]): string;
|
|
56
|
+
protected loadSearchDictionaries(): void;
|
|
57
|
+
protected Initialize(): BaseSelectorInitialization<TSearch>;
|
|
58
|
+
private firstApplication;
|
|
59
|
+
ngControl: NgModel;
|
|
60
|
+
Pristine: boolean;
|
|
61
|
+
private CurrentValue;
|
|
62
|
+
ac: AccessControlService;
|
|
63
|
+
ValidationSubject: Subject<{
|
|
64
|
+
fieldName: string;
|
|
65
|
+
error: string;
|
|
66
|
+
}>;
|
|
67
|
+
destroyed$: Subject<void>;
|
|
68
|
+
private router;
|
|
69
|
+
lc: LocalizationService;
|
|
70
|
+
http: HTTPService;
|
|
71
|
+
state: AppState;
|
|
72
|
+
private msgExts;
|
|
73
|
+
private clipboardService;
|
|
74
|
+
private hashingService;
|
|
75
|
+
private redirectMap;
|
|
76
|
+
private routesMap;
|
|
77
|
+
constructor(injector: Injector);
|
|
78
|
+
bridge(outer: BaseSelectorComponent<any, any>): void;
|
|
79
|
+
ngOnInit(): Promise<void>;
|
|
80
|
+
ngOnDestroy(): void;
|
|
81
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
82
|
+
resetSearch(): boolean;
|
|
83
|
+
initStartValue(valueId: string): void;
|
|
84
|
+
ensureClosed(): void;
|
|
85
|
+
confirmSelection(): Promise<void>;
|
|
86
|
+
sendSearch(resetPage?: boolean, selectResults?: boolean, applyOtherFilters?: boolean): boolean;
|
|
87
|
+
private afterSearch;
|
|
88
|
+
writeValue(obj: any): Promise<void>;
|
|
89
|
+
changed(emit?: boolean): void;
|
|
90
|
+
cleanSelection(): void;
|
|
91
|
+
modalVisible(visible: boolean): void;
|
|
92
|
+
copyToClipboard(subjectOverride?: string): boolean;
|
|
93
|
+
navigate(): void;
|
|
94
|
+
private SelectAll;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSelectorComponent<any, any>, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseSelectorComponent<any, any>, "base-selector", never, { "ModalOnly": { "alias": "ModalOnly"; "required": false; }; "EntityName": { "alias": "EntityName"; "required": false; }; "DisplayMode": { "alias": "DisplayMode"; "required": false; }; "Readonly": { "alias": "Readonly"; "required": false; }; "Form": { "alias": "Form"; "required": false; }; "Placeholder": { "alias": "Placeholder"; "required": false; }; "ngModelOptions": { "alias": "ngModelOptions"; "required": false; }; "SingleSelection": { "alias": "SingleSelection"; "required": false; }; "Required": { "alias": "Required"; "required": false; }; "Validation": { "alias": "Validation"; "required": false; }; "PageSize": { "alias": "PageSize"; "required": false; }; "Navigation": { "alias": "Navigation"; "required": false; }; "EmitStartingValue": { "alias": "EmitStartingValue"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ValidationSubject": { "alias": "ValidationSubject"; "required": false; }; }, { "inputChange": "inputChange"; "firstValueLoaded": "firstValueLoaded"; "dialogVisible": "dialogVisible"; "dialogHidden": "dialogHidden"; "inputFinalized": "inputFinalized"; "selected": "selected"; }, ["EsTableTemplate", "FiltersTemplate"], never, true, never>;
|
|
97
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class BaseSelectorInitialization<TSearch> {
|
|
2
|
+
subject: string;
|
|
3
|
+
searchType: new () => TSearch;
|
|
4
|
+
searchApi: string;
|
|
5
|
+
navigationEntity?: string;
|
|
6
|
+
searchIndependantProperties?: string[];
|
|
7
|
+
idProperty?: string;
|
|
8
|
+
constructor(subject: string, searchType: new () => TSearch, searchApi: string, navigationEntity?: string, searchIndependantProperties?: string[], idProperty?: string);
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { NgForm } from "@angular/forms";
|
|
3
|
+
import { Subject } from "rxjs";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormSelectorComponent {
|
|
6
|
+
SetValidationSubject: Subject<{
|
|
7
|
+
fieldName: string;
|
|
8
|
+
error: string;
|
|
9
|
+
}>;
|
|
10
|
+
ModalOnly: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
Valid: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
SelectedLabel: import("@angular/core").ModelSignal<any>;
|
|
13
|
+
Validation: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
Readonly: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
Form: import("@angular/core").InputSignal<NgForm>;
|
|
16
|
+
Name: import("@angular/core").InputSignal<string>;
|
|
17
|
+
ngModelOptions: any;
|
|
18
|
+
Required: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
Placeholder: import("@angular/core").InputSignal<string>;
|
|
20
|
+
HasExternalLink: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
onChange: EventEmitter<void>;
|
|
22
|
+
onSearch: EventEmitter<void>;
|
|
23
|
+
onNavigation: EventEmitter<void>;
|
|
24
|
+
onClipboardCopy: EventEmitter<void>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectorComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectorComponent, "form-selector", never, { "SetValidationSubject": { "alias": "SetValidationSubject"; "required": false; }; "ModalOnly": { "alias": "ModalOnly"; "required": false; "isSignal": true; }; "Valid": { "alias": "Valid"; "required": false; "isSignal": true; }; "SelectedLabel": { "alias": "SelectedLabel"; "required": false; "isSignal": true; }; "Validation": { "alias": "Validation"; "required": false; "isSignal": true; }; "Readonly": { "alias": "Readonly"; "required": false; "isSignal": true; }; "Form": { "alias": "Form"; "required": false; "isSignal": true; }; "Name": { "alias": "Name"; "required": false; "isSignal": true; }; "ngModelOptions": { "alias": "ngModelOptions"; "required": false; "isSignal": true; }; "Required": { "alias": "Required"; "required": false; "isSignal": true; }; "Placeholder": { "alias": "Placeholder"; "required": false; "isSignal": true; }; "HasExternalLink": { "alias": "HasExternalLink"; "required": false; "isSignal": true; }; }, { "SelectedLabel": "SelectedLabelChange"; "onChange": "onChange"; "onSearch": "onSearch"; "onNavigation": "onNavigation"; "onClipboardCopy": "onClipboardCopy"; }, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { ThTdProvider } from "@esfaenza/es-table";
|
|
3
|
+
import { EsModalComponent } from "../../es-modal/es-modal.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormSelectorDialogComponent {
|
|
6
|
+
Subject: string;
|
|
7
|
+
EsTableTemplate: ThTdProvider;
|
|
8
|
+
TableClasses: string;
|
|
9
|
+
SingleSelection: boolean;
|
|
10
|
+
searchView: any;
|
|
11
|
+
onClearValue: EventEmitter<void>;
|
|
12
|
+
onCloseDialog: EventEmitter<void>;
|
|
13
|
+
onConfirmSelection: EventEmitter<void>;
|
|
14
|
+
onSearchRequest: EventEmitter<boolean>;
|
|
15
|
+
onDialogVisibilityChange: EventEmitter<boolean>;
|
|
16
|
+
itemSearch: EsModalComponent;
|
|
17
|
+
show(): void;
|
|
18
|
+
hide(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectorDialogComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectorDialogComponent, "form-selector-dialog", never, { "Subject": { "alias": "Subject"; "required": false; }; "EsTableTemplate": { "alias": "EsTableTemplate"; "required": false; }; "TableClasses": { "alias": "TableClasses"; "required": false; }; "SingleSelection": { "alias": "SingleSelection"; "required": false; }; "searchView": { "alias": "searchView"; "required": false; }; }, { "onClearValue": "onClearValue"; "onCloseDialog": "onCloseDialog"; "onConfirmSelection": "onConfirmSelection"; "onSearchRequest": "onSearchRequest"; "onDialogVisibilityChange": "onDialogVisibilityChange"; }, never, ["[filters]"], true, never>;
|
|
21
|
+
}
|