@smartsoft001/crud-shell-angular 2.196.0 → 2.198.0
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.
|
@@ -1,375 +1,417 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { BaseComponent
|
|
5
|
-
import { IEntity } from
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
private initButtonExportOptions;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExportBaseComponent<any>, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ExportBaseComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare class ExportComponent<T extends IEntity<string>> extends ExportBaseComponent<T> {
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExportComponent<any>, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExportComponent<any>, "smart-crud-export", never, {}, {}, never, never, true, never>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface ICrudFilter {
|
|
40
|
-
searchText?: string;
|
|
41
|
-
sortBy?: string;
|
|
42
|
-
sortDesc?: boolean;
|
|
43
|
-
offset?: number;
|
|
44
|
-
limit?: number;
|
|
45
|
-
paginationMode?: PaginationMode;
|
|
46
|
-
query?: Array<ICrudFilterQueryItem>;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { DestroyRef, InjectionToken, Injector, InputSignal, ModuleWithProviders, OnDestroy, OnInit, PipeTransform, Signal, TemplateRef, Type, ViewContainerRef, WritableSignal } from "@angular/core";
|
|
3
|
+
import * as i15 from "@smartsoft001/angular";
|
|
4
|
+
import { BaseComponent, DynamicComponentType, DynamicContentDirective, FormComponent, IButtonOptions, ICellPipe, IDetailsOptions, IFormOptions, IIconButtonOptions, IListOptions, IListPaginationOptions, IModelLabelOptions, IModelLabelProvider, IPageOptions, InputBaseComponent, InputOptions, ListMode, PaginationMode, SmartFormGroup, SmartPageVariant } from "@smartsoft001/angular";
|
|
5
|
+
import { IEntity } from "@smartsoft001/domain-core";
|
|
6
|
+
import { IFieldOptions, IModelFilter } from "@smartsoft001/models";
|
|
7
|
+
import * as i17 from "@angular/forms";
|
|
8
|
+
import { UntypedFormControl } from "@angular/forms";
|
|
9
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
10
|
+
import { Action, ActionsSubject, State as State$1, Store } from "@ngrx/store";
|
|
11
|
+
import * as i18 from "@angular/common";
|
|
12
|
+
import * as i19 from "ng-dynamic-component";
|
|
13
|
+
import "reflect-metadata";
|
|
14
|
+
import { HttpClient } from "@angular/common/http";
|
|
15
|
+
import { Observable, Subscription } from "rxjs";
|
|
16
|
+
import * as i7 from "@angular/router";
|
|
17
|
+
export declare class ExportBaseComponent<T extends IEntity<string>> extends BaseComponent implements OnInit {
|
|
18
|
+
private facade;
|
|
19
|
+
private popoverService;
|
|
20
|
+
private styleService;
|
|
21
|
+
private elementRef;
|
|
22
|
+
private injector;
|
|
23
|
+
buttonExportCsvOptions: IButtonOptions;
|
|
24
|
+
buttonExportXlsxOptions: IButtonOptions;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
private initButtonExportOptions;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportBaseComponent<any>, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExportBaseComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
47
29
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
value: any;
|
|
51
|
-
type: '=' | '!=' | '>=' | '<=' | '<' | '>';
|
|
52
|
-
hidden?: boolean;
|
|
30
|
+
declare namespace export_component_d_exports {
|
|
31
|
+
export { ExportComponent };
|
|
53
32
|
}
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
export declare class ExportComponent<T extends IEntity<string>> extends ExportBaseComponent<T> {
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportComponent<any>, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExportComponent<any>, "smart-crud-export", never, {}, {}, never, never, true, never>;
|
|
56
36
|
}
|
|
57
|
-
interface
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
declare
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
37
|
+
export interface ICrudFilter {
|
|
38
|
+
searchText?: string;
|
|
39
|
+
sortBy?: string;
|
|
40
|
+
sortDesc?: boolean;
|
|
41
|
+
offset?: number;
|
|
42
|
+
limit?: number;
|
|
43
|
+
paginationMode?: PaginationMode;
|
|
44
|
+
query?: Array<ICrudFilterQueryItem>;
|
|
45
|
+
}
|
|
46
|
+
export interface ICrudFilterQueryItem extends IModelFilter {
|
|
47
|
+
key: string;
|
|
48
|
+
value: any;
|
|
49
|
+
type: '=' | '!=' | '>=' | '<=' | '<' | '>';
|
|
50
|
+
hidden?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface ICrudCreateManyOptions {
|
|
53
|
+
mode: CrudCreateManyMode;
|
|
54
|
+
}
|
|
55
|
+
export interface ICrudListGroup {
|
|
56
|
+
key: string;
|
|
57
|
+
value: string;
|
|
58
|
+
text: string;
|
|
59
|
+
show?: boolean;
|
|
60
|
+
changed?: boolean;
|
|
61
|
+
children?: Array<ICrudListGroup>;
|
|
62
|
+
}
|
|
63
|
+
export type CrudCreateManyMode = 'default' | 'replace';
|
|
64
|
+
declare namespace filter_component_d_exports {
|
|
65
|
+
export { FilterComponent };
|
|
66
|
+
}
|
|
67
|
+
export declare class FilterComponent {
|
|
68
|
+
FieldType: typeof import("@smartsoft001/models").FieldTypeDef;
|
|
69
|
+
item: import("@angular/core").InputSignal<IModelFilter | undefined>;
|
|
70
|
+
filter: import("@angular/core").InputSignal<ICrudFilter | undefined>;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "smart-crud-filter", never, {
|
|
73
|
+
"item": {
|
|
74
|
+
"alias": "item";
|
|
75
|
+
"required": false;
|
|
76
|
+
"isSignal": true;
|
|
92
77
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
bottom?: any;
|
|
98
|
-
};
|
|
78
|
+
"filter": {
|
|
79
|
+
"alias": "filter";
|
|
80
|
+
"required": false;
|
|
81
|
+
"isSignal": true;
|
|
99
82
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
83
|
+
}, {}, never, never, true, never>;
|
|
84
|
+
}
|
|
85
|
+
export declare class CrudConfig<T> {
|
|
86
|
+
apiUrl: string;
|
|
87
|
+
entity: string;
|
|
88
|
+
type?: any;
|
|
89
|
+
reducerFactory?: () => any;
|
|
90
|
+
baseQuery?: Array<ICrudFilterQueryItem>;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudConfig<any>, never>;
|
|
92
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
93
|
+
}
|
|
94
|
+
export declare class CrudFullConfig<T> extends CrudConfig<T> {
|
|
95
|
+
title: string;
|
|
96
|
+
details?: boolean | {
|
|
97
|
+
cellPipe?: ICellPipe<T>;
|
|
98
|
+
components?: {
|
|
99
|
+
top?: any;
|
|
100
|
+
bottom?: any;
|
|
105
101
|
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
};
|
|
103
|
+
edit?: boolean | {
|
|
104
|
+
cellPipe?: ICellPipe<T>;
|
|
105
|
+
components?: {
|
|
106
|
+
top?: any;
|
|
107
|
+
bottom?: any;
|
|
111
108
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
};
|
|
110
|
+
add?: boolean | {
|
|
111
|
+
components?: {
|
|
112
|
+
top?: any;
|
|
113
|
+
bottom?: any;
|
|
115
114
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
};
|
|
116
|
+
remove?: boolean;
|
|
117
|
+
search?: boolean;
|
|
118
|
+
export?: boolean;
|
|
119
|
+
pagination?: {
|
|
120
|
+
limit: number;
|
|
121
|
+
};
|
|
122
|
+
sort?: boolean | {
|
|
123
|
+
default?: string;
|
|
124
|
+
defaultDesc?: boolean;
|
|
125
|
+
};
|
|
126
|
+
list?: {
|
|
127
|
+
cellPipe?: ICellPipe<T>;
|
|
128
|
+
components?: {
|
|
129
|
+
top?: any;
|
|
130
|
+
multi?: any;
|
|
131
|
+
};
|
|
132
|
+
mode?: ListMode;
|
|
133
|
+
paginationMode?: PaginationMode;
|
|
134
|
+
resetQuery?: 'beforeInit';
|
|
135
|
+
groups?: Array<ICrudListGroup>;
|
|
136
|
+
};
|
|
137
|
+
buttons?: Array<IIconButtonOptions>;
|
|
138
|
+
inputComponents?: {
|
|
139
|
+
[key: string]: Type<InputBaseComponent<T>>;
|
|
140
|
+
};
|
|
141
|
+
cssClass?: string;
|
|
142
|
+
variant?: SmartPageVariant;
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFullConfig<any>, never>;
|
|
144
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
145
|
+
}
|
|
146
|
+
export declare class CrudFacade<T extends IEntity<string>> {
|
|
147
|
+
private readonly store;
|
|
148
|
+
private config;
|
|
149
|
+
readonly loaded: Signal<boolean | undefined>;
|
|
150
|
+
readonly loading: Signal<boolean>;
|
|
151
|
+
readonly selected: Signal<T | undefined>;
|
|
152
|
+
readonly multiSelected: Signal<T[] | undefined>;
|
|
153
|
+
readonly list: Signal<T[] | undefined>;
|
|
154
|
+
readonly filter: Signal<ICrudFilter | undefined>;
|
|
155
|
+
readonly totalCount: Signal<number | undefined>;
|
|
156
|
+
readonly links: Signal<any>;
|
|
157
|
+
readonly error: Signal<any>;
|
|
158
|
+
constructor(store: Store<any>, config: CrudConfig<T>);
|
|
159
|
+
create(item: T): void;
|
|
160
|
+
createMany(items: Array<T>, options: ICrudCreateManyOptions): void;
|
|
161
|
+
read(filter?: ICrudFilter): void;
|
|
162
|
+
clear(): void;
|
|
163
|
+
select(id: string): void;
|
|
164
|
+
unselect(): void;
|
|
165
|
+
multiSelect(items: Array<T>): void;
|
|
166
|
+
update(item: T): void;
|
|
167
|
+
export(filter?: ICrudFilter, format?: string): void;
|
|
168
|
+
updatePartial(item: Partial<T> & {
|
|
169
|
+
id: string;
|
|
170
|
+
}): void;
|
|
171
|
+
updatePartialMany(items: (Partial<T> & {
|
|
172
|
+
id: string;
|
|
173
|
+
})[]): void;
|
|
174
|
+
delete(id: string): void;
|
|
175
|
+
private getStore;
|
|
176
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFacade<any>, never>;
|
|
177
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
178
|
+
}
|
|
179
|
+
declare class BaseComponent$1<T extends IEntity<string>> implements OnInit {
|
|
180
|
+
protected facade: CrudFacade<any>;
|
|
181
|
+
protected translateService: TranslateService;
|
|
182
|
+
protected config: CrudConfig<any>;
|
|
183
|
+
protected modelPossibilitiesProvider: import("@smartsoft001/crud-shell-angular").ICrudModelPossibilitiesProvider | null;
|
|
184
|
+
protected injector: Injector;
|
|
185
|
+
protected destroyRef: DestroyRef;
|
|
186
|
+
private _model;
|
|
187
|
+
/**
|
|
188
|
+
* Local, mutation-free working copy of the last filter this component pushed
|
|
189
|
+
* to `facade.read(...)`. The store-bound `filter()` input is frozen under
|
|
190
|
+
* NgRx `strictStateImmutability`, so refresh/clear operate on a clone; the
|
|
191
|
+
* read getters (`value`, `minValue`, `maxValue`, `hasValue`, …) prefer this
|
|
192
|
+
* pending copy until the real store update flows back through the input.
|
|
193
|
+
*/
|
|
194
|
+
private _pendingFilter;
|
|
195
|
+
/** Snapshot of `filter()` that `_pendingFilter` was derived from. */
|
|
196
|
+
private _pendingFilterSource;
|
|
197
|
+
possibilities: Signal<{
|
|
198
|
+
id: any;
|
|
199
|
+
text: string;
|
|
200
|
+
}[]>;
|
|
201
|
+
readonly item: InputSignal<IModelFilter | undefined>;
|
|
202
|
+
readonly filter: InputSignal<ICrudFilter | undefined>;
|
|
203
|
+
/**
|
|
204
|
+
* The filter the component should read from: the pending working copy when it
|
|
205
|
+
* is still in sync with the current input, otherwise the raw input. Once the
|
|
206
|
+
* store update arrives (a new `filter()` reference), the pending copy is
|
|
207
|
+
* considered stale and the fresh input wins.
|
|
208
|
+
*/
|
|
209
|
+
protected readonly effectiveFilter: Signal<ICrudFilter | undefined>;
|
|
210
|
+
/**
|
|
211
|
+
* OnPush-safe replacement for `@if (value)` in templates (partial GAP-19).
|
|
212
|
+
* True when filter().query has a matching entry (key + type) with a
|
|
213
|
+
* non-empty value.
|
|
214
|
+
*/
|
|
215
|
+
readonly hasValue: Signal<boolean>;
|
|
216
|
+
/**
|
|
217
|
+
* OnPush-safe replacement for `@if (minValue)` in templates (partial
|
|
218
|
+
* GAP-19). True when filter().query has a matching `>=` entry (range "from")
|
|
219
|
+
* with a non-empty value.
|
|
220
|
+
*/
|
|
221
|
+
readonly hasMinValue: Signal<boolean>;
|
|
222
|
+
/**
|
|
223
|
+
* OnPush-safe replacement for `@if (maxValue)` in templates (partial
|
|
224
|
+
* GAP-19). True when filter().query has a matching `<=` entry (range "to")
|
|
225
|
+
* with a non-empty value.
|
|
226
|
+
*/
|
|
227
|
+
readonly hasMaxValue: Signal<boolean>;
|
|
228
|
+
/** Lazily-built model instance used to derive field options/labels. */
|
|
229
|
+
protected get model(): T;
|
|
230
|
+
get value(): any;
|
|
231
|
+
set value(val: any);
|
|
232
|
+
get minValue(): any;
|
|
233
|
+
set minValue(val: any);
|
|
234
|
+
get maxValue(): any;
|
|
235
|
+
set maxValue(val: any);
|
|
236
|
+
get lang(): string;
|
|
237
|
+
/**
|
|
238
|
+
* Returns a filter object safe to mutate. The store-bound `filter()` input is
|
|
239
|
+
* frozen under NgRx `strictStateImmutability`, so when (any part of) the
|
|
240
|
+
* source is frozen we hand back a deep-enough clone — object + query array +
|
|
241
|
+
* query entries — leaving the store untouched. When the source is a plain,
|
|
242
|
+
* extensible object (no immutability checks active) we keep operating on it in
|
|
243
|
+
* place so consumers that hold the same reference still observe the change.
|
|
244
|
+
*/
|
|
245
|
+
private cloneFilter;
|
|
246
|
+
/**
|
|
247
|
+
* True when `filter` (and its query array + entries) can be mutated directly,
|
|
248
|
+
* i.e. nothing is frozen.
|
|
249
|
+
*/
|
|
250
|
+
private isMutationSafe;
|
|
251
|
+
/**
|
|
252
|
+
* Records the mutated clone as the pending working copy (so read getters
|
|
253
|
+
* reflect it immediately) and dispatches it through the facade.
|
|
254
|
+
*/
|
|
255
|
+
private commitFilter;
|
|
256
|
+
refresh(val: any, type?: string | null): void;
|
|
257
|
+
/**
|
|
258
|
+
* Builds the `InputOptions` consumed by shared `smart-input-*` components for
|
|
259
|
+
* a single reactive control. When `withPossibilities` is true (radio/select
|
|
260
|
+
* style filters) the base `possibilities` signal is mapped into the
|
|
261
|
+
* `{ id, text, checked }` shape the shared inputs expect; otherwise it is
|
|
262
|
+
* omitted (text/flag filters do not need possibilities).
|
|
263
|
+
*/
|
|
264
|
+
protected buildInputOptions(control: UntypedFormControl, withPossibilities?: boolean): InputOptions<any>;
|
|
265
|
+
/**
|
|
266
|
+
* Creates a reactive control bridged to the legacy filter state for a given
|
|
267
|
+
* query slot: seeded from the current query value for that slot (`null` ->
|
|
268
|
+
* `value` / `item.type`, `'>='` -> `minValue`, `'<='` -> `maxValue`), and
|
|
269
|
+
* wired so every change re-runs the (debounced) `refresh` for that slot.
|
|
270
|
+
*/
|
|
271
|
+
protected bindControl(type?: string | null): UntypedFormControl;
|
|
272
|
+
/**
|
|
273
|
+
* Creates a reactive control bridged to the default (`value` / `item.type`)
|
|
274
|
+
* query slot.
|
|
275
|
+
*/
|
|
276
|
+
protected bindValueControl(): UntypedFormControl;
|
|
277
|
+
clear(): void;
|
|
278
|
+
ngOnInit(): void;
|
|
279
|
+
private initPossibilities;
|
|
280
|
+
private hasQueryValue;
|
|
281
|
+
private isArrayType;
|
|
282
|
+
private refreshForArray;
|
|
283
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent$1<any>, never>;
|
|
284
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent$1<any>, never, never, {
|
|
285
|
+
"item": {
|
|
286
|
+
"alias": "item";
|
|
287
|
+
"required": false;
|
|
288
|
+
"isSignal": true;
|
|
126
289
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
290
|
+
"filter": {
|
|
291
|
+
"alias": "filter";
|
|
292
|
+
"required": false;
|
|
293
|
+
"isSignal": true;
|
|
130
294
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
* a single reactive control. When `withPossibilities` is true (radio/select
|
|
252
|
-
* style filters) the base `possibilities` signal is mapped into the
|
|
253
|
-
* `{ id, text, checked }` shape the shared inputs expect; otherwise it is
|
|
254
|
-
* omitted (text/flag filters do not need possibilities).
|
|
255
|
-
*/
|
|
256
|
-
protected buildInputOptions(control: UntypedFormControl, withPossibilities?: boolean): InputOptions<any>;
|
|
257
|
-
/**
|
|
258
|
-
* Creates a reactive control bridged to the legacy filter state for a given
|
|
259
|
-
* query slot: seeded from the current query value for that slot (`null` ->
|
|
260
|
-
* `value` / `item.type`, `'>='` -> `minValue`, `'<='` -> `maxValue`), and
|
|
261
|
-
* wired so every change re-runs the (debounced) `refresh` for that slot.
|
|
262
|
-
*/
|
|
263
|
-
protected bindControl(type?: string | null): UntypedFormControl;
|
|
264
|
-
/**
|
|
265
|
-
* Creates a reactive control bridged to the default (`value` / `item.type`)
|
|
266
|
-
* query slot.
|
|
267
|
-
*/
|
|
268
|
-
protected bindValueControl(): UntypedFormControl;
|
|
269
|
-
clear(): void;
|
|
270
|
-
ngOnInit(): void;
|
|
271
|
-
private initPossibilities;
|
|
272
|
-
private hasQueryValue;
|
|
273
|
-
private isArrayType;
|
|
274
|
-
private refreshForArray;
|
|
275
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent<any>, never>;
|
|
276
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent<any>, never, never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
declare class FilterDateComponent<T extends IEntity<string>> extends BaseComponent<T> {
|
|
280
|
-
get allowAdvanced(): boolean;
|
|
281
|
-
set customValue(val: any);
|
|
282
|
-
get customValue(): any;
|
|
283
|
-
set customMinValue(val: any);
|
|
284
|
-
get customMinValue(): any;
|
|
285
|
-
set customMaxValue(val: any);
|
|
286
|
-
get customMaxValue(): any;
|
|
287
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateComponent<any>, never>;
|
|
288
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateComponent<any>, "smart-crud-filter-date", never, {}, {}, never, never, true, never>;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
declare class FilterDateWithEditComponent<T extends IEntity<string>> extends FilterDateComponent<T> {
|
|
292
|
-
advanced: WritableSignal<boolean>;
|
|
293
|
-
toggleAdvanced(): void;
|
|
294
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateWithEditComponent<any>, never>;
|
|
295
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateWithEditComponent<any>, "smart-crud-filter-date-with-edit", never, {}, {}, never, never, true, never>;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
declare class FilterDateTimeComponent<T extends IEntity<string>> extends FilterDateComponent<T> {
|
|
299
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateTimeComponent<any>, never>;
|
|
300
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateTimeComponent<any>, "smart-crud-filter-date-time", never, {}, {}, never, never, true, never>;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
declare class FilterRadioComponent<T extends IEntity<string>> extends BaseComponent<T> implements OnInit {
|
|
304
|
-
readonly inputOptions: WritableSignal<InputOptions<any> | undefined>;
|
|
305
|
-
readonly fieldOptions: WritableSignal<IFieldOptions | undefined>;
|
|
306
|
-
ngOnInit(): void;
|
|
307
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterRadioComponent<any>, never>;
|
|
308
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterRadioComponent<any>, "smart-crud-filter-radio", never, {}, {}, never, never, true, never>;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
declare class FilterTextComponent<T extends IEntity<string>> extends BaseComponent<T> implements OnInit {
|
|
312
|
-
readonly inputOptions: WritableSignal<InputOptions<any> | undefined>;
|
|
313
|
-
readonly fieldOptions: WritableSignal<IFieldOptions | undefined>;
|
|
314
|
-
ngOnInit(): void;
|
|
315
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterTextComponent<any>, never>;
|
|
316
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterTextComponent<any>, "smart-crud-filter-text", never, {}, {}, never, never, true, never>;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
declare class FilterFlagComponent<T extends IEntity<string>> extends BaseComponent<T> implements OnInit {
|
|
320
|
-
readonly inputOptions: WritableSignal<InputOptions<any> | undefined>;
|
|
321
|
-
readonly fieldOptions: WritableSignal<IFieldOptions | undefined>;
|
|
322
|
-
ngOnInit(): void;
|
|
323
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterFlagComponent<any>, never>;
|
|
324
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterFlagComponent<any>, "smart-crud-filter-flag", never, {}, {}, never, never, true, never>;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
declare class FilterCheckComponent<T extends IEntity<string>> extends BaseComponent<T> implements OnInit {
|
|
328
|
-
list: Signal<{
|
|
329
|
-
value: any;
|
|
330
|
-
isCheck: boolean;
|
|
331
|
-
}[]>;
|
|
332
|
-
readonly hasCheckedValues: Signal<boolean>;
|
|
333
|
-
ngOnInit(): void;
|
|
334
|
-
onCheckChange(checked: boolean, entry: {
|
|
335
|
-
value: any;
|
|
336
|
-
isCheck: boolean;
|
|
337
|
-
}): void;
|
|
338
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterCheckComponent<any>, never>;
|
|
339
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterCheckComponent<any>, "smart-crud-filter-check", never, {}, {}, never, never, true, never>;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
declare class FilterIntComponent<T extends IEntity<string>> extends BaseComponent<T> implements OnInit {
|
|
343
|
-
readonly valueOptions: WritableSignal<InputOptions<any> | undefined>;
|
|
344
|
-
readonly valueFieldOptions: WritableSignal<IFieldOptions | undefined>;
|
|
345
|
-
readonly advanced: WritableSignal<boolean>;
|
|
346
|
-
minControl: UntypedFormControl;
|
|
347
|
-
maxControl: UntypedFormControl;
|
|
348
|
-
get allowAdvanced(): boolean;
|
|
349
|
-
ngOnInit(): void;
|
|
350
|
-
toggleAdvanced(): void;
|
|
351
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterIntComponent<any>, never>;
|
|
352
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterIntComponent<any>, "smart-crud-filter-int", never, {}, {}, never, never, true, never>;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
declare class FiltersBaseComponent<T extends IEntity<string>> implements OnInit {
|
|
356
|
-
private menuService;
|
|
357
|
-
private config;
|
|
358
|
-
private facade;
|
|
359
|
-
private styleService;
|
|
360
|
-
private elementRef;
|
|
361
|
-
list: WritableSignal<Array<IModelFilter>>;
|
|
362
|
-
filter: Signal<ICrudFilter | undefined>;
|
|
363
|
-
/**
|
|
364
|
-
* Hide menu used only from MenuService
|
|
365
|
-
*/
|
|
366
|
-
readonly hideMenu: InputSignal<boolean>;
|
|
367
|
-
onClose(): Promise<void>;
|
|
368
|
-
ngOnInit(): void;
|
|
369
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersBaseComponent<any>, never>;
|
|
370
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FiltersBaseComponent<any>, never, never, { "hideMenu": { "alias": "hideMenu"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
371
|
-
}
|
|
372
|
-
|
|
295
|
+
}, {}, never, never, true, never>;
|
|
296
|
+
}
|
|
297
|
+
declare namespace date_component_d_exports {
|
|
298
|
+
export { FilterDateComponent };
|
|
299
|
+
}
|
|
300
|
+
export declare class FilterDateComponent<T extends IEntity<string>> extends BaseComponent$1<T> {
|
|
301
|
+
get allowAdvanced(): boolean;
|
|
302
|
+
set customValue(val: any);
|
|
303
|
+
get customValue(): any;
|
|
304
|
+
set customMinValue(val: any);
|
|
305
|
+
get customMinValue(): any;
|
|
306
|
+
set customMaxValue(val: any);
|
|
307
|
+
get customMaxValue(): any;
|
|
308
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateComponent<any>, never>;
|
|
309
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateComponent<any>, "smart-crud-filter-date", never, {}, {}, never, never, true, never>;
|
|
310
|
+
}
|
|
311
|
+
declare namespace date_with_edit_component_d_exports {
|
|
312
|
+
export { FilterDateWithEditComponent };
|
|
313
|
+
}
|
|
314
|
+
export declare class FilterDateWithEditComponent<T extends IEntity<string>> extends FilterDateComponent<T> {
|
|
315
|
+
advanced: WritableSignal<boolean>;
|
|
316
|
+
toggleAdvanced(): void;
|
|
317
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateWithEditComponent<any>, never>;
|
|
318
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateWithEditComponent<any>, "smart-crud-filter-date-with-edit", never, {}, {}, never, never, true, never>;
|
|
319
|
+
}
|
|
320
|
+
declare namespace date_time_component_d_exports {
|
|
321
|
+
export { FilterDateTimeComponent };
|
|
322
|
+
}
|
|
323
|
+
export declare class FilterDateTimeComponent<T extends IEntity<string>> extends FilterDateComponent<T> {
|
|
324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateTimeComponent<any>, never>;
|
|
325
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateTimeComponent<any>, "smart-crud-filter-date-time", never, {}, {}, never, never, true, never>;
|
|
326
|
+
}
|
|
327
|
+
declare namespace radio_component_d_exports {
|
|
328
|
+
export { FilterRadioComponent };
|
|
329
|
+
}
|
|
330
|
+
export declare class FilterRadioComponent<T extends IEntity<string>> extends BaseComponent$1<T> implements OnInit {
|
|
331
|
+
readonly inputOptions: WritableSignal<InputOptions<any> | undefined>;
|
|
332
|
+
readonly fieldOptions: WritableSignal<IFieldOptions | undefined>;
|
|
333
|
+
ngOnInit(): void;
|
|
334
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterRadioComponent<any>, never>;
|
|
335
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterRadioComponent<any>, "smart-crud-filter-radio", never, {}, {}, never, never, true, never>;
|
|
336
|
+
}
|
|
337
|
+
declare namespace text_component_d_exports {
|
|
338
|
+
export { FilterTextComponent };
|
|
339
|
+
}
|
|
340
|
+
export declare class FilterTextComponent<T extends IEntity<string>> extends BaseComponent$1<T> implements OnInit {
|
|
341
|
+
readonly inputOptions: WritableSignal<InputOptions<any> | undefined>;
|
|
342
|
+
readonly fieldOptions: WritableSignal<IFieldOptions | undefined>;
|
|
343
|
+
ngOnInit(): void;
|
|
344
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterTextComponent<any>, never>;
|
|
345
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterTextComponent<any>, "smart-crud-filter-text", never, {}, {}, never, never, true, never>;
|
|
346
|
+
}
|
|
347
|
+
declare namespace flag_component_d_exports {
|
|
348
|
+
export { FilterFlagComponent };
|
|
349
|
+
}
|
|
350
|
+
export declare class FilterFlagComponent<T extends IEntity<string>> extends BaseComponent$1<T> implements OnInit {
|
|
351
|
+
readonly inputOptions: WritableSignal<InputOptions<any> | undefined>;
|
|
352
|
+
readonly fieldOptions: WritableSignal<IFieldOptions | undefined>;
|
|
353
|
+
ngOnInit(): void;
|
|
354
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterFlagComponent<any>, never>;
|
|
355
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterFlagComponent<any>, "smart-crud-filter-flag", never, {}, {}, never, never, true, never>;
|
|
356
|
+
}
|
|
357
|
+
declare namespace check_component_d_exports {
|
|
358
|
+
export { FilterCheckComponent };
|
|
359
|
+
}
|
|
360
|
+
export declare class FilterCheckComponent<T extends IEntity<string>> extends BaseComponent$1<T> implements OnInit {
|
|
361
|
+
list: Signal<{
|
|
362
|
+
value: any;
|
|
363
|
+
isCheck: boolean;
|
|
364
|
+
}[]>;
|
|
365
|
+
readonly hasCheckedValues: Signal<boolean>;
|
|
366
|
+
ngOnInit(): void;
|
|
367
|
+
onCheckChange(checked: boolean, entry: {
|
|
368
|
+
value: any;
|
|
369
|
+
isCheck: boolean;
|
|
370
|
+
}): void;
|
|
371
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterCheckComponent<any>, never>;
|
|
372
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterCheckComponent<any>, "smart-crud-filter-check", never, {}, {}, never, never, true, never>;
|
|
373
|
+
}
|
|
374
|
+
declare namespace int_component_d_exports {
|
|
375
|
+
export { FilterIntComponent };
|
|
376
|
+
}
|
|
377
|
+
export declare class FilterIntComponent<T extends IEntity<string>> extends BaseComponent$1<T> implements OnInit {
|
|
378
|
+
readonly valueOptions: WritableSignal<InputOptions<any> | undefined>;
|
|
379
|
+
readonly valueFieldOptions: WritableSignal<IFieldOptions | undefined>;
|
|
380
|
+
readonly advanced: WritableSignal<boolean>;
|
|
381
|
+
minControl: UntypedFormControl;
|
|
382
|
+
maxControl: UntypedFormControl;
|
|
383
|
+
get allowAdvanced(): boolean;
|
|
384
|
+
ngOnInit(): void;
|
|
385
|
+
toggleAdvanced(): void;
|
|
386
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterIntComponent<any>, never>;
|
|
387
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterIntComponent<any>, "smart-crud-filter-int", never, {}, {}, never, never, true, never>;
|
|
388
|
+
}
|
|
389
|
+
export declare class FiltersBaseComponent<T extends IEntity<string>> implements OnInit {
|
|
390
|
+
private menuService;
|
|
391
|
+
private config;
|
|
392
|
+
private facade;
|
|
393
|
+
private styleService;
|
|
394
|
+
private elementRef;
|
|
395
|
+
list: WritableSignal<Array<IModelFilter>>;
|
|
396
|
+
filter: Signal<ICrudFilter | undefined>;
|
|
397
|
+
/**
|
|
398
|
+
* Hide menu used only from MenuService
|
|
399
|
+
*/
|
|
400
|
+
readonly hideMenu: InputSignal<boolean>;
|
|
401
|
+
onClose(): Promise<void>;
|
|
402
|
+
ngOnInit(): void;
|
|
403
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersBaseComponent<any>, never>;
|
|
404
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FiltersBaseComponent<any>, never, never, {
|
|
405
|
+
"hideMenu": {
|
|
406
|
+
"alias": "hideMenu";
|
|
407
|
+
"required": false;
|
|
408
|
+
"isSignal": true;
|
|
409
|
+
};
|
|
410
|
+
}, {}, never, never, true, never>;
|
|
411
|
+
}
|
|
412
|
+
declare namespace filters_component_d_exports {
|
|
413
|
+
export { FiltersComponent };
|
|
414
|
+
}
|
|
373
415
|
/**
|
|
374
416
|
* This component is only to use in crud module
|
|
375
417
|
* @requires CrudModule
|
|
@@ -425,555 +467,596 @@ declare class FiltersBaseComponent<T extends IEntity<string>> implements OnInit
|
|
|
425
467
|
})
|
|
426
468
|
body: string;
|
|
427
469
|
*/
|
|
428
|
-
declare class FiltersComponent<T extends IEntity<string>> extends FiltersBaseComponent<T> {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
declare
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
declare class FormOptionsPipe<T extends IEntity<string>> implements PipeTransform {
|
|
489
|
-
private modelPossibilitiesProvider;
|
|
490
|
-
transform(item: T, mode: string, type: any, uniqueProvider?: (values: Record<keyof T, any>) => Promise<boolean>, inputComponents?: {
|
|
491
|
-
[key: string]: Type<InputBaseComponent<any>>;
|
|
492
|
-
}): IFormOptions<T>;
|
|
493
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormOptionsPipe<any>, never>;
|
|
494
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FormOptionsPipe<any>, "smartFormOptions", true>;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
declare class CrudPipesModule {
|
|
498
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudPipesModule, never>;
|
|
499
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudPipesModule, never, [typeof FormOptionsPipe], [typeof FormOptionsPipe]>;
|
|
500
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CrudPipesModule>;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
declare class CrudComponentsModule {
|
|
504
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudComponentsModule, never>;
|
|
505
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudComponentsModule, never, [typeof ExportComponent, typeof FilterComponent, typeof FilterTextComponent, typeof FiltersConfigComponent, typeof FilterDateComponent, typeof FilterDateWithEditComponent, typeof FilterDateTimeComponent, typeof FilterRadioComponent, typeof FiltersComponent, typeof FilterFlagComponent, typeof FilterCheckComponent, typeof FilterIntComponent, typeof MultiselectComponent, typeof GroupComponent, typeof _smartsoft001_angular.SharedModule, typeof CrudPipesModule, typeof i17.FormsModule, typeof i18.CommonModule, typeof i19.DynamicIoModule], [typeof CrudPipesModule, typeof ExportComponent, typeof FilterComponent, typeof FilterTextComponent, typeof FiltersConfigComponent, typeof FilterDateComponent, typeof FilterDateWithEditComponent, typeof FilterDateTimeComponent, typeof FilterRadioComponent, typeof FiltersComponent, typeof FilterFlagComponent, typeof FilterCheckComponent, typeof FilterIntComponent, typeof MultiselectComponent, typeof GroupComponent]>;
|
|
506
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CrudComponentsModule>;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
declare class SocketService<T> {
|
|
510
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SocketService<any>, never>;
|
|
511
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SocketService<any>>;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
declare class CrudService<T extends IEntity<string>> {
|
|
515
|
-
protected config: CrudConfig<any>;
|
|
516
|
-
protected http: HttpClient;
|
|
517
|
-
protected socket: SocketService<any> | null;
|
|
518
|
-
protected _formatMap: {
|
|
519
|
-
csv: string;
|
|
520
|
-
xlsx: string;
|
|
470
|
+
export declare class FiltersComponent<T extends IEntity<string>> extends FiltersBaseComponent<T> {
|
|
471
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersComponent<any>, never>;
|
|
472
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersComponent<any>, "smart-crud-filters", never, {}, {}, never, never, true, never>;
|
|
473
|
+
}
|
|
474
|
+
declare namespace filters_config_component_d_exports {
|
|
475
|
+
export { FiltersConfigComponent };
|
|
476
|
+
}
|
|
477
|
+
export declare class FiltersConfigComponent implements OnInit {
|
|
478
|
+
private readonly facade;
|
|
479
|
+
private styleService;
|
|
480
|
+
private elementRef;
|
|
481
|
+
query: Signal<ICrudFilterQueryItem[]>;
|
|
482
|
+
onRemoveQuery(item: ICrudFilterQueryItem): void;
|
|
483
|
+
ngOnInit(): void;
|
|
484
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersConfigComponent, never>;
|
|
485
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersConfigComponent, "smart-crud-filters-config", never, {}, {}, never, never, true, never>;
|
|
486
|
+
}
|
|
487
|
+
export declare class MultiselectBaseComponent<T extends IEntity<string>> {
|
|
488
|
+
private facade;
|
|
489
|
+
config: CrudFullConfig<T>;
|
|
490
|
+
private menuService;
|
|
491
|
+
private _list;
|
|
492
|
+
private _changes;
|
|
493
|
+
item: T;
|
|
494
|
+
valid: boolean;
|
|
495
|
+
buttonOptions: IButtonOptions;
|
|
496
|
+
lock: boolean;
|
|
497
|
+
showForm: boolean;
|
|
498
|
+
list: Signal<T[]>;
|
|
499
|
+
constructor();
|
|
500
|
+
onClose(): Promise<void>;
|
|
501
|
+
onPartialChange(changes: Partial<T>, list: Array<T>): void;
|
|
502
|
+
onValidChange(valid: boolean): void;
|
|
503
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectBaseComponent<any>, never>;
|
|
504
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiselectBaseComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
505
|
+
}
|
|
506
|
+
declare namespace multiselect_component_d_exports {
|
|
507
|
+
export { MultiselectComponent };
|
|
508
|
+
}
|
|
509
|
+
export declare class MultiselectComponent<T extends IEntity<string>> extends MultiselectBaseComponent<T> {
|
|
510
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectComponent<any>, never>;
|
|
511
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectComponent<any>, "smart-crud-multiselect", never, {}, {}, never, never, true, never>;
|
|
512
|
+
}
|
|
513
|
+
export declare class GroupBaseComponent<T extends IEntity<string>> extends BaseComponent implements OnInit, OnDestroy {
|
|
514
|
+
private styleService;
|
|
515
|
+
private elementRef;
|
|
516
|
+
private groupService;
|
|
517
|
+
private cd;
|
|
518
|
+
readonly groups: InputSignal<Array<ICrudListGroup> | null>;
|
|
519
|
+
readonly listOptions: InputSignal<IListOptions<T> | null>;
|
|
520
|
+
change(val: boolean, item: ICrudListGroup, force?: boolean): void;
|
|
521
|
+
ngOnInit(): void;
|
|
522
|
+
ngOnDestroy(): void;
|
|
523
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupBaseComponent<any>, never>;
|
|
524
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GroupBaseComponent<any>, never, never, {
|
|
525
|
+
"groups": {
|
|
526
|
+
"alias": "groups";
|
|
527
|
+
"required": false;
|
|
528
|
+
"isSignal": true;
|
|
521
529
|
};
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
onPartialChange: i0.OutputEmitterRef<Partial<T>>;
|
|
591
|
-
onChange: i0.OutputEmitterRef<T>;
|
|
592
|
-
onValidChange: i0.OutputEmitterRef<boolean>;
|
|
593
|
-
constructor();
|
|
594
|
-
/**
|
|
595
|
-
* The reactive form of the first rendered `<smart-form>`, or `undefined`
|
|
596
|
-
* until the form factory has built it. `FormComponent.form` is a getter over
|
|
597
|
-
* a signal, so it always reports the group currently rendered; a method is
|
|
598
|
-
* kept here so the page button handlers read that group at call time rather
|
|
599
|
-
* than through a `computed` captured when the form did not exist yet.
|
|
600
|
-
*/
|
|
601
|
-
getForm(): SmartFormGroup | undefined;
|
|
602
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudItemPageBaseComponent<any>, never>;
|
|
603
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CrudItemPageBaseComponent<any>, never, never, { "detailsOptions": { "alias": "detailsOptions"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "uniqueProvider": { "alias": "uniqueProvider"; "required": false; "isSignal": true; }; }, { "onPartialChange": "onPartialChange"; "onChange": "onChange"; "onValidChange": "onValidChange"; }, never, never, true, never>;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
declare class ItemStandardComponent<T extends IEntity<string>> extends CrudItemPageBaseComponent<T> {
|
|
607
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItemStandardComponent<any>, never>;
|
|
608
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItemStandardComponent<any>, "smart-crud-item-standard-page", never, {}, {}, never, never, true, never>;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
declare const ItemComponent_base: new () => _smartsoft001_angular.IDynamicComponent<CrudItemPageBaseComponent<any>>;
|
|
612
|
-
declare class ItemComponent<T extends IEntity<string>> extends ItemComponent_base implements OnInit, OnDestroy {
|
|
613
|
-
private router;
|
|
614
|
-
private activeRoute;
|
|
615
|
-
private facade;
|
|
616
|
-
private service;
|
|
617
|
-
private dynamicComponentLoader;
|
|
618
|
-
private translateService;
|
|
619
|
-
config: CrudFullConfig<T>;
|
|
620
|
-
private location;
|
|
621
|
-
private cd;
|
|
622
|
-
private styleService;
|
|
623
|
-
private elementRef;
|
|
624
|
-
private toastService;
|
|
625
|
-
private pageService;
|
|
626
|
-
private detailsService;
|
|
627
|
-
private _mode;
|
|
628
|
-
pageOptions: WritableSignal<IPageOptions>;
|
|
629
|
-
detailsOptions: WritableSignal<IDetailsOptions<T> | undefined>;
|
|
530
|
+
"listOptions": {
|
|
531
|
+
"alias": "listOptions";
|
|
532
|
+
"required": false;
|
|
533
|
+
"isSignal": true;
|
|
534
|
+
};
|
|
535
|
+
}, {}, never, never, true, never>;
|
|
536
|
+
}
|
|
537
|
+
declare namespace group_component_d_exports {
|
|
538
|
+
export { GroupComponent };
|
|
539
|
+
}
|
|
540
|
+
export declare class GroupComponent<T extends IEntity<string>> extends GroupBaseComponent<T> {
|
|
541
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupComponent<any>, never>;
|
|
542
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupComponent<any>, "smart-crud-group", never, {}, {}, never, never, true, never>;
|
|
543
|
+
}
|
|
544
|
+
declare namespace form_options_pipe_d_exports {
|
|
545
|
+
export { FormOptionsPipe };
|
|
546
|
+
}
|
|
547
|
+
export declare class FormOptionsPipe<T extends IEntity<string>> implements PipeTransform {
|
|
548
|
+
private modelPossibilitiesProvider;
|
|
549
|
+
transform(item: T, mode: string, type: any, uniqueProvider?: (values: Record<keyof T, any>) => Promise<boolean>, inputComponents?: {
|
|
550
|
+
[key: string]: Type<InputBaseComponent<any>>;
|
|
551
|
+
}): IFormOptions<T>;
|
|
552
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormOptionsPipe<any>, never>;
|
|
553
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormOptionsPipe<any>, "smartFormOptions", true>;
|
|
554
|
+
}
|
|
555
|
+
declare namespace pipes_module_d_exports {
|
|
556
|
+
export { CrudPipesModule };
|
|
557
|
+
}
|
|
558
|
+
export declare class CrudPipesModule {
|
|
559
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudPipesModule, never>;
|
|
560
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudPipesModule, never, [typeof FormOptionsPipe], [typeof FormOptionsPipe]>;
|
|
561
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrudPipesModule>;
|
|
562
|
+
}
|
|
563
|
+
declare namespace components_module_d_exports {
|
|
564
|
+
export { CrudComponentsModule };
|
|
565
|
+
}
|
|
566
|
+
export declare class CrudComponentsModule {
|
|
567
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudComponentsModule, never>;
|
|
568
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudComponentsModule, never, [typeof ExportComponent, typeof FilterComponent, typeof FilterTextComponent, typeof FiltersConfigComponent, typeof FilterDateComponent, typeof FilterDateWithEditComponent, typeof FilterDateTimeComponent, typeof FilterRadioComponent, typeof FiltersComponent, typeof FilterFlagComponent, typeof FilterCheckComponent, typeof FilterIntComponent, typeof MultiselectComponent, typeof GroupComponent, typeof i15.SharedModule, typeof CrudPipesModule, typeof i17.FormsModule, typeof i18.CommonModule, typeof i19.DynamicIoModule], [typeof CrudPipesModule, typeof ExportComponent, typeof FilterComponent, typeof FilterTextComponent, typeof FiltersConfigComponent, typeof FilterDateComponent, typeof FilterDateWithEditComponent, typeof FilterDateTimeComponent, typeof FilterRadioComponent, typeof FiltersComponent, typeof FilterFlagComponent, typeof FilterCheckComponent, typeof FilterIntComponent, typeof MultiselectComponent, typeof GroupComponent]>;
|
|
569
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrudComponentsModule>;
|
|
570
|
+
}
|
|
571
|
+
declare class SocketService<T> {
|
|
572
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SocketService<any>, never>;
|
|
573
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
574
|
+
}
|
|
575
|
+
declare class NotSocketService<T> {
|
|
576
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotSocketService<any>, never>;
|
|
577
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
578
|
+
}
|
|
579
|
+
export declare class CrudService<T extends IEntity<string>> {
|
|
580
|
+
protected config: CrudConfig<any>;
|
|
581
|
+
protected http: HttpClient;
|
|
582
|
+
protected socket: SocketService<any> | null;
|
|
583
|
+
protected _formatMap: {
|
|
584
|
+
csv: string;
|
|
585
|
+
xlsx: string;
|
|
586
|
+
};
|
|
587
|
+
create(item: T): Promise<string>;
|
|
588
|
+
createMany(items: Array<T>, options: ICrudCreateManyOptions): Promise<void>;
|
|
589
|
+
getById(id: string): Promise<T>;
|
|
590
|
+
getList<T>(filter?: ICrudFilter | null): Promise<{
|
|
591
|
+
data: T[];
|
|
592
|
+
totalCount: number;
|
|
593
|
+
links: any;
|
|
594
|
+
}>;
|
|
595
|
+
exportList(filter: (ICrudFilter | null) | undefined, format: 'csv' | 'xlsx'): Promise<void>;
|
|
596
|
+
update(item: T): Promise<void>;
|
|
597
|
+
updatePartial(item: Partial<T> & {
|
|
630
598
|
id: string;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
declare
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
599
|
+
}): Promise<void>;
|
|
600
|
+
updatePartialMany(items: (Partial<T> & {
|
|
601
|
+
id: string;
|
|
602
|
+
})[]): Promise<any>;
|
|
603
|
+
delete(id: string): Promise<void>;
|
|
604
|
+
protected getQuery(filter: ICrudFilter): string;
|
|
605
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudService<any>, never>;
|
|
606
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
607
|
+
}
|
|
608
|
+
export declare class CrudEffects<T extends IEntity<string>> {
|
|
609
|
+
private actions$;
|
|
610
|
+
private service;
|
|
611
|
+
private config;
|
|
612
|
+
private store;
|
|
613
|
+
private state;
|
|
614
|
+
constructor(actions$: ActionsSubject, service: CrudService<T>, config: CrudConfig<T>, store: Store<any>, state: State$1<any>);
|
|
615
|
+
init(): void;
|
|
616
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudEffects<any>, never>;
|
|
617
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
618
|
+
}
|
|
619
|
+
export declare class CrudCoreModule<T extends IEntity<string>> {
|
|
620
|
+
constructor(config: CrudConfig<T>, effects: CrudEffects<any>, store: Store<any>);
|
|
621
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudCoreModule, never>;
|
|
622
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudCoreModule, never, [typeof i15.SharedModule, typeof CrudPipesModule, typeof i17.FormsModule, typeof i18.CommonModule, typeof CrudComponentsModule], [typeof CrudComponentsModule]>;
|
|
623
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrudCoreModule>;
|
|
624
|
+
}
|
|
625
|
+
export declare class CrudModule<T extends IEntity<string>> {
|
|
626
|
+
static forFeature<T extends IEntity<string>>(options: ICrudModuleOptionsWithRoutng<T> | ICrudModuleOptionsWithoutRoutng<T>): ModuleWithProviders<CrudModule<any>>;
|
|
627
|
+
constructor(config: CrudConfig<T>, effects: CrudEffects<any>, store: Store<any>);
|
|
628
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudModule, never>;
|
|
629
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudModule, never, never, never>;
|
|
630
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrudModule>;
|
|
631
|
+
}
|
|
632
|
+
export interface ICrudModuleOptionsWithRoutng<T> {
|
|
633
|
+
config: CrudFullConfig<T>;
|
|
634
|
+
socket?: boolean;
|
|
635
|
+
routing: true;
|
|
636
|
+
}
|
|
637
|
+
export interface ICrudModuleOptionsWithoutRoutng<T> {
|
|
638
|
+
config: CrudConfig<T>;
|
|
639
|
+
socket?: boolean;
|
|
640
|
+
routing: false;
|
|
641
|
+
}
|
|
642
|
+
export declare abstract class CrudItemPageBaseComponent<T extends IEntity<string>> extends BaseComponent {
|
|
643
|
+
config: CrudFullConfig<T>;
|
|
644
|
+
facade: CrudFacade<any>;
|
|
645
|
+
static smartType: DynamicComponentType;
|
|
646
|
+
selected: Signal<T>;
|
|
647
|
+
contentTpl: Signal<ViewContainerRef | undefined>;
|
|
648
|
+
formComponents: Signal<readonly FormComponent<any>[]>;
|
|
649
|
+
detailsOptions: import("@angular/core").InputSignal<IDetailsOptions<T> | undefined>;
|
|
650
|
+
mode: import("@angular/core").InputSignal<string | undefined>;
|
|
651
|
+
uniqueProvider: import("@angular/core").InputSignal<((values: Record<keyof T, any>) => Promise<boolean>) | undefined>;
|
|
652
|
+
onPartialChange: import("@angular/core").OutputEmitterRef<Partial<T>>;
|
|
653
|
+
onChange: import("@angular/core").OutputEmitterRef<T>;
|
|
654
|
+
onValidChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
655
|
+
constructor();
|
|
656
|
+
/**
|
|
657
|
+
* The reactive form of the first rendered `<smart-form>`, or `undefined`
|
|
658
|
+
* until the form factory has built it. `FormComponent.form` is a getter over
|
|
659
|
+
* a signal, so it always reports the group currently rendered; a method is
|
|
660
|
+
* kept here so the page button handlers read that group at call time rather
|
|
661
|
+
* than through a `computed` captured when the form did not exist yet.
|
|
662
|
+
*/
|
|
663
|
+
getForm(): SmartFormGroup | undefined;
|
|
664
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudItemPageBaseComponent<any>, never>;
|
|
665
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CrudItemPageBaseComponent<any>, never, never, {
|
|
666
|
+
"detailsOptions": {
|
|
667
|
+
"alias": "detailsOptions";
|
|
668
|
+
"required": false;
|
|
669
|
+
"isSignal": true;
|
|
670
|
+
};
|
|
671
|
+
"mode": {
|
|
672
|
+
"alias": "mode";
|
|
673
|
+
"required": false;
|
|
674
|
+
"isSignal": true;
|
|
675
|
+
};
|
|
676
|
+
"uniqueProvider": {
|
|
677
|
+
"alias": "uniqueProvider";
|
|
678
|
+
"required": false;
|
|
679
|
+
"isSignal": true;
|
|
680
|
+
};
|
|
681
|
+
}, {
|
|
682
|
+
"onPartialChange": "onPartialChange";
|
|
683
|
+
"onChange": "onChange";
|
|
684
|
+
"onValidChange": "onValidChange";
|
|
685
|
+
}, never, never, true, never>;
|
|
686
|
+
}
|
|
687
|
+
declare namespace standard_component_d_exports$1 {
|
|
688
|
+
export { ItemStandardComponent };
|
|
689
|
+
}
|
|
690
|
+
export declare class ItemStandardComponent<T extends IEntity<string>> extends CrudItemPageBaseComponent<T> {
|
|
691
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemStandardComponent<any>, never>;
|
|
692
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemStandardComponent<any>, "smart-crud-item-standard-page", never, {}, {}, never, never, true, never>;
|
|
693
|
+
}
|
|
694
|
+
declare namespace item_component_d_exports {
|
|
695
|
+
export { ItemComponent };
|
|
696
|
+
}
|
|
697
|
+
declare const ItemComponent_base: new () => import("@smartsoft001/angular").IDynamicComponent<CrudItemPageBaseComponent<any>>;
|
|
698
|
+
export declare class ItemComponent<T extends IEntity<string>> extends ItemComponent_base implements OnInit, OnDestroy {
|
|
699
|
+
private router;
|
|
700
|
+
private activeRoute;
|
|
701
|
+
private facade;
|
|
702
|
+
private service;
|
|
703
|
+
private dynamicComponentLoader;
|
|
704
|
+
private translateService;
|
|
705
|
+
config: CrudFullConfig<T>;
|
|
706
|
+
private location;
|
|
707
|
+
private cd;
|
|
708
|
+
private styleService;
|
|
709
|
+
private elementRef;
|
|
710
|
+
private toastService;
|
|
711
|
+
private pageService;
|
|
712
|
+
private detailsService;
|
|
713
|
+
private _mode;
|
|
714
|
+
pageOptions: WritableSignal<IPageOptions>;
|
|
715
|
+
detailsOptions: WritableSignal<IDetailsOptions<T> | undefined>;
|
|
716
|
+
id: string;
|
|
717
|
+
formValue: T;
|
|
718
|
+
formValid: boolean;
|
|
719
|
+
item: T;
|
|
720
|
+
formPartialValue: Partial<T>;
|
|
721
|
+
uniqueProvider: WritableSignal<((values: Record<keyof T, any>) => Promise<boolean>) | undefined>;
|
|
722
|
+
set mode(val: string);
|
|
723
|
+
get mode(): string;
|
|
724
|
+
selected: Signal<T>;
|
|
725
|
+
standardComponents: Signal<readonly ItemStandardComponent<IEntity<string>>[]>;
|
|
726
|
+
contentTpl: Signal<TemplateRef<any> | undefined>;
|
|
727
|
+
topTpl: Signal<ViewContainerRef | undefined>;
|
|
728
|
+
bottomTpl: Signal<ViewContainerRef | undefined>;
|
|
729
|
+
dynamicContents: Signal<readonly DynamicContentDirective[]>;
|
|
730
|
+
subscription: Subscription;
|
|
731
|
+
constructor();
|
|
732
|
+
refreshProperties(): void;
|
|
733
|
+
ngOnInit(): Promise<void>;
|
|
734
|
+
ngOnDestroy(): void;
|
|
735
|
+
private generateComponents;
|
|
736
|
+
onPartialChange(val: Partial<T>): void;
|
|
737
|
+
onChange(val: T): void;
|
|
738
|
+
onValidChange(val: boolean): void;
|
|
739
|
+
private initPageOptions;
|
|
740
|
+
private getButtons;
|
|
741
|
+
private getTitle;
|
|
742
|
+
private removeParagraph;
|
|
743
|
+
private checkFirstInvalid;
|
|
744
|
+
private getInvalidFields;
|
|
745
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemComponent<any>, never>;
|
|
746
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemComponent<any>, "smart-crud-item-page", never, {}, {}, never, ["*"], true, never>;
|
|
747
|
+
}
|
|
748
|
+
export declare abstract class CrudListPageBaseComponent<T extends IEntity<string>> extends BaseComponent {
|
|
749
|
+
config: CrudFullConfig<T>;
|
|
750
|
+
static smartType: DynamicComponentType;
|
|
751
|
+
contentTpl: import("@angular/core").Signal<ViewContainerRef | undefined>;
|
|
752
|
+
listOptions: import("@angular/core").InputSignal<IListOptions<T> | null | undefined>;
|
|
753
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudListPageBaseComponent<any>, never>;
|
|
754
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CrudListPageBaseComponent<any>, never, never, {
|
|
755
|
+
"listOptions": {
|
|
756
|
+
"alias": "listOptions";
|
|
757
|
+
"required": false;
|
|
758
|
+
"isSignal": true;
|
|
759
|
+
};
|
|
760
|
+
}, {}, never, never, true, never>;
|
|
761
|
+
}
|
|
762
|
+
declare namespace list_component_d_exports {
|
|
763
|
+
export { ListComponent };
|
|
764
|
+
}
|
|
765
|
+
declare const ListComponent_base: new () => import("@smartsoft001/angular").IDynamicComponent<CrudListPageBaseComponent<any>>;
|
|
766
|
+
export declare class ListComponent<T extends IEntity<string>> extends ListComponent_base implements OnInit, OnDestroy {
|
|
767
|
+
private facade;
|
|
768
|
+
private router;
|
|
769
|
+
private dynamicComponentLoader;
|
|
770
|
+
private injector;
|
|
771
|
+
private cd;
|
|
772
|
+
private menuService;
|
|
773
|
+
private hardwareService;
|
|
774
|
+
private paginationFacade;
|
|
775
|
+
private pageService;
|
|
776
|
+
config: CrudFullConfig<T>;
|
|
777
|
+
private searchService;
|
|
778
|
+
private _cleanMultiSelected$;
|
|
779
|
+
pageOptions: WritableSignal<IPageOptions | null>;
|
|
780
|
+
listOptions: WritableSignal<IListOptions<T> | null>;
|
|
781
|
+
links: Signal<any>;
|
|
782
|
+
filter: Signal<ICrudFilter | undefined>;
|
|
783
|
+
topTpl: Signal<ViewContainerRef | undefined>;
|
|
784
|
+
contentTpl: Signal<TemplateRef<any> | undefined>;
|
|
785
|
+
dynamicContents: Signal<readonly DynamicContentDirective[]>;
|
|
786
|
+
refreshProperties(): void;
|
|
787
|
+
ngOnInit(): Promise<void>;
|
|
788
|
+
private initCloseMenu;
|
|
789
|
+
private clear;
|
|
790
|
+
private getEndButtons;
|
|
791
|
+
private initTopComponent;
|
|
792
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent<any>, never>;
|
|
793
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent<any>, "smart-crud-list-page", never, {}, {}, never, ["*"], true, never>;
|
|
794
|
+
}
|
|
795
|
+
declare namespace standard_component_d_exports {
|
|
796
|
+
export { ListStandardComponent };
|
|
797
|
+
}
|
|
798
|
+
export declare class ListStandardComponent<T extends IEntity<string>> extends CrudListPageBaseComponent<T> {
|
|
799
|
+
private readonly facade;
|
|
800
|
+
readonly config: CrudFullConfig<T>;
|
|
801
|
+
isSearch: Signal<boolean>;
|
|
802
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListStandardComponent<any>, never>;
|
|
803
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListStandardComponent<any>, "smart-crud-list-standard-page", never, {}, {}, never, never, true, never>;
|
|
804
|
+
}
|
|
805
|
+
export declare const PAGES: (typeof ItemStandardComponent | typeof ItemComponent | typeof ListStandardComponent | typeof ListComponent)[];
|
|
806
|
+
export declare class CrudFullModule<T extends IEntity<string>> {
|
|
807
|
+
constructor(config: CrudConfig<T>, effects: CrudEffects<any>, store: Store<any>);
|
|
808
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFullModule, never>;
|
|
809
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudFullModule, never, [typeof ItemComponent, typeof ListComponent, typeof ListStandardComponent, typeof ItemStandardComponent, typeof i15.SharedModule, typeof CrudPipesModule, typeof i7.RouterModule, typeof i17.FormsModule, typeof i18.CommonModule, typeof CrudComponentsModule], [typeof ItemComponent, typeof ListComponent, typeof ListStandardComponent, typeof ItemStandardComponent, typeof CrudComponentsModule]>;
|
|
810
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrudFullModule>;
|
|
811
|
+
}
|
|
812
|
+
export declare class CrudListPaginationFactory<T extends IEntity<string>> {
|
|
813
|
+
private readonly facade;
|
|
814
|
+
private readonly injector;
|
|
815
|
+
create(options: {
|
|
816
|
+
mode?: PaginationMode;
|
|
817
|
+
limit: number;
|
|
818
|
+
provider: {
|
|
819
|
+
getLinks(): any;
|
|
820
|
+
getFilter(): ICrudFilter;
|
|
821
|
+
};
|
|
822
|
+
}): Promise<IListPaginationOptions>;
|
|
823
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudListPaginationFactory<any>, never>;
|
|
824
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
825
|
+
}
|
|
826
|
+
export declare class PageService<T> {
|
|
827
|
+
private authService;
|
|
828
|
+
private config;
|
|
829
|
+
checkPermissions(): void;
|
|
830
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageService<any>, never>;
|
|
831
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
832
|
+
}
|
|
833
|
+
export declare class CrudSearchService {
|
|
834
|
+
private _filterSource;
|
|
835
|
+
private _enabledSource;
|
|
836
|
+
get filter(): Partial<ICrudFilter>;
|
|
837
|
+
get enabled(): boolean;
|
|
838
|
+
enabled$: Observable<boolean>;
|
|
839
|
+
filter$: Observable<Partial<ICrudFilter>>;
|
|
840
|
+
setFilter(val: Partial<ICrudFilter>): void;
|
|
841
|
+
setEnabled(val: boolean): void;
|
|
842
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudSearchService, never>;
|
|
843
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
844
|
+
}
|
|
845
|
+
export declare const create: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
846
|
+
item: T;
|
|
757
847
|
};
|
|
758
|
-
declare const createSuccess: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
759
|
-
|
|
848
|
+
export declare const createSuccess: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
849
|
+
item: T;
|
|
760
850
|
};
|
|
761
|
-
declare const createFailure: <T extends IEntity<string>>(entity: string, item: T, error: any) => Action & {
|
|
762
|
-
|
|
763
|
-
|
|
851
|
+
export declare const createFailure: <T extends IEntity<string>>(entity: string, item: T, error: any) => Action & {
|
|
852
|
+
item: T;
|
|
853
|
+
error: any;
|
|
764
854
|
};
|
|
765
|
-
declare const createMany: <T extends IEntity<string>>(entity: string, data: {
|
|
855
|
+
export declare const createMany: <T extends IEntity<string>>(entity: string, data: {
|
|
856
|
+
items: T[];
|
|
857
|
+
options: ICrudCreateManyOptions;
|
|
858
|
+
}) => Action & {
|
|
859
|
+
data: {
|
|
766
860
|
items: T[];
|
|
767
861
|
options: ICrudCreateManyOptions;
|
|
768
|
-
}
|
|
769
|
-
data: {
|
|
770
|
-
items: T[];
|
|
771
|
-
options: ICrudCreateManyOptions;
|
|
772
|
-
};
|
|
862
|
+
};
|
|
773
863
|
};
|
|
774
|
-
declare const createManySuccess: <T extends IEntity<string>>(entity: string, data: {
|
|
864
|
+
export declare const createManySuccess: <T extends IEntity<string>>(entity: string, data: {
|
|
865
|
+
items: T[];
|
|
866
|
+
options: ICrudCreateManyOptions;
|
|
867
|
+
}) => Action & {
|
|
868
|
+
data: {
|
|
775
869
|
items: T[];
|
|
776
870
|
options: ICrudCreateManyOptions;
|
|
777
|
-
}
|
|
778
|
-
data: {
|
|
779
|
-
items: T[];
|
|
780
|
-
options: ICrudCreateManyOptions;
|
|
781
|
-
};
|
|
871
|
+
};
|
|
782
872
|
};
|
|
783
|
-
declare const createManyFailure: <T extends IEntity<string>>(entity: string, data: {
|
|
873
|
+
export declare const createManyFailure: <T extends IEntity<string>>(entity: string, data: {
|
|
874
|
+
items: T[];
|
|
875
|
+
options: ICrudCreateManyOptions;
|
|
876
|
+
}, error: any) => Action & {
|
|
877
|
+
data: {
|
|
784
878
|
items: T[];
|
|
785
879
|
options: ICrudCreateManyOptions;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
items: T[];
|
|
789
|
-
options: ICrudCreateManyOptions;
|
|
790
|
-
};
|
|
791
|
-
error: any;
|
|
880
|
+
};
|
|
881
|
+
error: any;
|
|
792
882
|
};
|
|
793
|
-
declare const read: (entity: string, filter?: ICrudFilter) => Action & {
|
|
794
|
-
|
|
883
|
+
export declare const read: (entity: string, filter?: ICrudFilter) => Action & {
|
|
884
|
+
filter?: ICrudFilter;
|
|
795
885
|
};
|
|
796
|
-
declare const readSuccess: <T extends IEntity<string>, F>(entity: string, filter: F, result: {
|
|
886
|
+
export declare const readSuccess: <T extends IEntity<string>, F>(entity: string, filter: F, result: {
|
|
887
|
+
data: T[];
|
|
888
|
+
totalCount: number;
|
|
889
|
+
links: any;
|
|
890
|
+
}) => Action & {
|
|
891
|
+
result: {
|
|
797
892
|
data: T[];
|
|
798
893
|
totalCount: number;
|
|
799
894
|
links: any;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
data: T[];
|
|
803
|
-
totalCount: number;
|
|
804
|
-
links: any;
|
|
805
|
-
};
|
|
806
|
-
filter: F;
|
|
895
|
+
};
|
|
896
|
+
filter: F;
|
|
807
897
|
};
|
|
808
|
-
declare const readFailure: <F>(entity: string, filter: F, error: any) => Action & {
|
|
809
|
-
|
|
810
|
-
|
|
898
|
+
export declare const readFailure: <F>(entity: string, filter: F, error: any) => Action & {
|
|
899
|
+
filter: F;
|
|
900
|
+
error: any;
|
|
811
901
|
};
|
|
812
|
-
declare const clear: (entity: string) => Action;
|
|
813
|
-
declare const exportList: (entity: string, filter: (ICrudFilter | null) | undefined, format: any) => Action & {
|
|
814
|
-
|
|
815
|
-
|
|
902
|
+
export declare const clear: (entity: string) => Action;
|
|
903
|
+
export declare const exportList: (entity: string, filter: (ICrudFilter | null) | undefined, format: any) => Action & {
|
|
904
|
+
filter: ICrudFilter;
|
|
905
|
+
format: any;
|
|
816
906
|
};
|
|
817
|
-
declare const exportListSuccess: <T extends IEntity<string>, F>(entity: string, filter: F) => Action & {
|
|
818
|
-
|
|
907
|
+
export declare const exportListSuccess: <T extends IEntity<string>, F>(entity: string, filter: F) => Action & {
|
|
908
|
+
filter: F;
|
|
819
909
|
};
|
|
820
|
-
declare const exportListFailure: <F>(entity: string, filter: F, error: any) => Action & {
|
|
821
|
-
|
|
822
|
-
|
|
910
|
+
export declare const exportListFailure: <F>(entity: string, filter: F, error: any) => Action & {
|
|
911
|
+
filter: F;
|
|
912
|
+
error: any;
|
|
823
913
|
};
|
|
824
|
-
declare const select: (entity: string, id: string) => Action & {
|
|
825
|
-
|
|
914
|
+
export declare const select: (entity: string, id: string) => Action & {
|
|
915
|
+
id: string;
|
|
826
916
|
};
|
|
827
|
-
declare const selectSuccess: <T extends IEntity<string>, F>(entity: string, id: string, item: T) => Action & {
|
|
828
|
-
|
|
829
|
-
|
|
917
|
+
export declare const selectSuccess: <T extends IEntity<string>, F>(entity: string, id: string, item: T) => Action & {
|
|
918
|
+
id: string;
|
|
919
|
+
item: T;
|
|
830
920
|
};
|
|
831
|
-
declare const selectFailure: <F>(entity: string, id: string, error: any) => Action & {
|
|
832
|
-
|
|
833
|
-
|
|
921
|
+
export declare const selectFailure: <F>(entity: string, id: string, error: any) => Action & {
|
|
922
|
+
id: string;
|
|
923
|
+
error: any;
|
|
834
924
|
};
|
|
835
|
-
declare const unselect: (entity: string) => Action;
|
|
836
|
-
declare const multiSelect: <T extends IEntity<string>>(entity: string, items: Array<T>) => Action & {
|
|
837
|
-
|
|
925
|
+
export declare const unselect: (entity: string) => Action;
|
|
926
|
+
export declare const multiSelect: <T extends IEntity<string>>(entity: string, items: Array<T>) => Action & {
|
|
927
|
+
items: Array<T>;
|
|
838
928
|
};
|
|
839
|
-
declare const update: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
840
|
-
|
|
929
|
+
export declare const update: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
930
|
+
item: T;
|
|
841
931
|
};
|
|
842
|
-
declare const updateSuccess: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
843
|
-
|
|
932
|
+
export declare const updateSuccess: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
933
|
+
item: T;
|
|
844
934
|
};
|
|
845
|
-
declare const updateFailure: <T extends IEntity<string>>(entity: string, item: T, error: any) => Action & {
|
|
846
|
-
|
|
847
|
-
|
|
935
|
+
export declare const updateFailure: <T extends IEntity<string>>(entity: string, item: T, error: any) => Action & {
|
|
936
|
+
item: T;
|
|
937
|
+
error: any;
|
|
848
938
|
};
|
|
849
|
-
declare const updatePartial: <T extends IEntity<string>>(entity: string, item: Partial<T> & {
|
|
850
|
-
|
|
939
|
+
export declare const updatePartial: <T extends IEntity<string>>(entity: string, item: Partial<T> & {
|
|
940
|
+
id: string;
|
|
851
941
|
}) => Action & {
|
|
852
|
-
|
|
853
|
-
id: string;
|
|
854
|
-
};
|
|
855
|
-
};
|
|
856
|
-
declare const updatePartialSuccess: <T extends IEntity<string>>(entity: string, item: Partial<T> & {
|
|
942
|
+
item: Partial<T> & {
|
|
857
943
|
id: string;
|
|
858
|
-
}
|
|
859
|
-
item: Partial<T> & {
|
|
860
|
-
id: string;
|
|
861
|
-
};
|
|
944
|
+
};
|
|
862
945
|
};
|
|
863
|
-
declare const
|
|
946
|
+
export declare const updatePartialSuccess: <T extends IEntity<string>>(entity: string, item: Partial<T> & {
|
|
947
|
+
id: string;
|
|
948
|
+
}) => Action & {
|
|
949
|
+
item: Partial<T> & {
|
|
864
950
|
id: string;
|
|
865
|
-
}
|
|
866
|
-
item: Partial<T> & {
|
|
867
|
-
id: string;
|
|
868
|
-
};
|
|
869
|
-
error: any;
|
|
951
|
+
};
|
|
870
952
|
};
|
|
871
|
-
declare const
|
|
953
|
+
export declare const updatePartialFailure: <T extends IEntity<string>>(entity: string, item: Partial<T> & {
|
|
954
|
+
id: string;
|
|
955
|
+
}, error: any) => Action & {
|
|
956
|
+
item: Partial<T> & {
|
|
872
957
|
id: string;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
id: string;
|
|
876
|
-
}[];
|
|
958
|
+
};
|
|
959
|
+
error: any;
|
|
877
960
|
};
|
|
878
|
-
declare const
|
|
879
|
-
|
|
961
|
+
export declare const updatePartialMany: <T extends IEntity<string>>(entity: string, items: Partial<T> & {
|
|
962
|
+
id: string;
|
|
880
963
|
}[]) => Action & {
|
|
881
|
-
|
|
882
|
-
id: string;
|
|
883
|
-
}[];
|
|
884
|
-
};
|
|
885
|
-
declare const updatePartialManyFailure: <T extends IEntity<string>>(entity: string, items: Partial<T> & {
|
|
964
|
+
items: Partial<T> & {
|
|
886
965
|
id: string;
|
|
887
|
-
}[]
|
|
888
|
-
items: Partial<T> & {
|
|
889
|
-
id: string;
|
|
890
|
-
}[];
|
|
891
|
-
error: any;
|
|
966
|
+
}[];
|
|
892
967
|
};
|
|
893
|
-
declare const
|
|
968
|
+
export declare const updatePartialManySuccess: <T extends IEntity<string>>(entity: string, items: Partial<T> & {
|
|
969
|
+
id: string;
|
|
970
|
+
}[]) => Action & {
|
|
971
|
+
items: Partial<T> & {
|
|
894
972
|
id: string;
|
|
973
|
+
}[];
|
|
895
974
|
};
|
|
896
|
-
declare const
|
|
975
|
+
export declare const updatePartialManyFailure: <T extends IEntity<string>>(entity: string, items: Partial<T> & {
|
|
976
|
+
id: string;
|
|
977
|
+
}[], error: any) => Action & {
|
|
978
|
+
items: Partial<T> & {
|
|
897
979
|
id: string;
|
|
980
|
+
}[];
|
|
981
|
+
error: any;
|
|
898
982
|
};
|
|
899
|
-
declare const
|
|
900
|
-
|
|
901
|
-
|
|
983
|
+
export declare const deleteItem: (entity: string, id: string) => Action & {
|
|
984
|
+
id: string;
|
|
985
|
+
};
|
|
986
|
+
export declare const deleteSuccess: (entity: string, id: string) => Action & {
|
|
987
|
+
id: string;
|
|
902
988
|
};
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
989
|
+
export declare const deleteFailure: <F>(entity: string, id: string, error: any) => Action & {
|
|
990
|
+
id: string;
|
|
991
|
+
error: any;
|
|
992
|
+
};
|
|
993
|
+
export interface State<T extends IEntity<string>> {
|
|
994
|
+
selected?: T;
|
|
995
|
+
multiSelected?: Array<T>;
|
|
996
|
+
list?: T[];
|
|
997
|
+
totalCount?: number;
|
|
998
|
+
filter?: ICrudFilter;
|
|
999
|
+
links?: any;
|
|
1000
|
+
loaded: boolean;
|
|
1001
|
+
error?: string | null;
|
|
1002
|
+
}
|
|
1003
|
+
export declare const initialState: State<any>;
|
|
1004
|
+
export declare function getReducer(entity: string): (state: any, action: Action) => State<any> | {
|
|
1005
|
+
loaded: boolean;
|
|
1006
|
+
error: any;
|
|
1007
|
+
selected?: any;
|
|
1008
|
+
multiSelected?: any[] | undefined;
|
|
1009
|
+
list?: any[] | undefined;
|
|
1010
|
+
totalCount?: number;
|
|
1011
|
+
filter?: ICrudFilter;
|
|
1012
|
+
links?: any;
|
|
924
1013
|
} | {
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
1014
|
+
loaded: boolean;
|
|
1015
|
+
filter: any;
|
|
1016
|
+
error: null;
|
|
1017
|
+
totalCount: null;
|
|
1018
|
+
links: null;
|
|
1019
|
+
selected?: any;
|
|
1020
|
+
multiSelected?: any[] | undefined;
|
|
1021
|
+
list?: any[] | undefined;
|
|
933
1022
|
} | {
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1023
|
+
loaded: boolean;
|
|
1024
|
+
list: any[];
|
|
1025
|
+
totalCount: any;
|
|
1026
|
+
links: any;
|
|
1027
|
+
error: null;
|
|
1028
|
+
selected?: any;
|
|
1029
|
+
multiSelected?: any[] | undefined;
|
|
1030
|
+
filter?: ICrudFilter;
|
|
942
1031
|
};
|
|
943
|
-
|
|
944
|
-
declare const
|
|
945
|
-
declare const
|
|
946
|
-
declare const
|
|
947
|
-
declare const
|
|
948
|
-
declare const
|
|
949
|
-
declare const
|
|
950
|
-
declare const
|
|
951
|
-
declare const
|
|
952
|
-
declare const getCrudError: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
953
|
-
|
|
1032
|
+
export declare const getCrudState: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
1033
|
+
export declare const getCrudSelected: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: any) => any>;
|
|
1034
|
+
export declare const getCrudMultiSelected: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: any) => any>;
|
|
1035
|
+
export declare const getCrudList: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: any) => any>;
|
|
1036
|
+
export declare const getCrudTotalCount: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: any) => any>;
|
|
1037
|
+
export declare const getCrudLinks: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: any) => any>;
|
|
1038
|
+
export declare const getCrudLoaded: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: any) => any>;
|
|
1039
|
+
export declare const getCrudFilter: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: any) => any>;
|
|
1040
|
+
export declare const getCrudError: (entity: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: any) => any>;
|
|
954
1041
|
/**
|
|
955
1042
|
* @deprecated - please, use IModelPossibilitiesProvider from @smartsoft001/angular
|
|
956
1043
|
*/
|
|
957
|
-
declare abstract class ICrudModelPossibilitiesProvider {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1044
|
+
export declare abstract class ICrudModelPossibilitiesProvider {
|
|
1045
|
+
abstract get<T>(type: any): {
|
|
1046
|
+
[key: string]: Observable<{
|
|
1047
|
+
id: any;
|
|
1048
|
+
text: string;
|
|
1049
|
+
}[]>;
|
|
1050
|
+
};
|
|
964
1051
|
}
|
|
965
1052
|
/**
|
|
966
1053
|
* @deprecated - please, use MODEL_POSSIBILITIES_PROVIDER from @smartsoft001/angular
|
|
967
1054
|
*/
|
|
968
|
-
declare const CRUD_MODEL_POSSIBILITIES_PROVIDER: InjectionToken<ICrudModelPossibilitiesProvider>;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
export { CRUD_MODEL_POSSIBILITIES_PROVIDER, CrudComponentsModule, CrudConfig, CrudCoreModule, CrudEffects, CrudFacade, CrudFullConfig, CrudFullModule, CrudItemPageBaseComponent, CrudListPageBaseComponent, CrudListPaginationFactory, CrudModelLabelProvider, CrudModule, CrudPipesModule, CrudSearchService, CrudService, ExportBaseComponent, ExportComponent, FilterCheckComponent, FilterComponent, FilterDateComponent, FilterDateTimeComponent, FilterDateWithEditComponent, FilterFlagComponent, FilterIntComponent, FilterRadioComponent, FilterTextComponent, FiltersBaseComponent, FiltersComponent, FiltersConfigComponent, FormOptionsPipe, GroupBaseComponent, GroupComponent, ICrudModelPossibilitiesProvider, ItemComponent, ItemStandardComponent, ListComponent, ListStandardComponent, MultiselectBaseComponent, MultiselectComponent, PAGES, PageService, clear, create, createFailure, createMany, createManyFailure, createManySuccess, createSuccess, deleteFailure, deleteItem, deleteSuccess, exportList, exportListFailure, exportListSuccess, getCrudError, getCrudFilter, getCrudLinks, getCrudList, getCrudLoaded, getCrudMultiSelected, getCrudSelected, getCrudState, getCrudTotalCount, getReducer, initialState, multiSelect, read, readFailure, readSuccess, select, selectFailure, selectSuccess, unselect, update, updateFailure, updatePartial, updatePartialFailure, updatePartialMany, updatePartialManyFailure, updatePartialManySuccess, updatePartialSuccess, updateSuccess };
|
|
979
|
-
export type { CrudCreateManyMode, ICrudCreateManyOptions, ICrudFilter, ICrudFilterQueryItem, ICrudListGroup, ICrudModuleOptionsWithRoutng, ICrudModuleOptionsWithoutRoutng, State };
|
|
1055
|
+
export declare const CRUD_MODEL_POSSIBILITIES_PROVIDER: InjectionToken<ICrudModelPossibilitiesProvider>;
|
|
1056
|
+
export declare class CrudModelLabelProvider extends IModelLabelProvider {
|
|
1057
|
+
private translateService;
|
|
1058
|
+
private parent;
|
|
1059
|
+
get(options: IModelLabelOptions): Signal<string>;
|
|
1060
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudModelLabelProvider, never>;
|
|
1061
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1062
|
+
}
|