@smartsoft001/crud-shell-angular 2.124.0 → 2.126.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.
package/package.json
CHANGED
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, Type, Signal,
|
|
2
|
+
import { OnInit, Type, Signal, Injector, DestroyRef, InputSignal, WritableSignal, OnDestroy, PipeTransform, ModuleWithProviders, ViewContainerRef, TemplateRef, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as _smartsoft001_angular from '@smartsoft001/angular';
|
|
4
|
-
import { BaseComponent as BaseComponent$1, IButtonOptions, PaginationMode, ICellPipe, ListMode, IIconButtonOptions, InputBaseComponent, IListOptions, IFormOptions, DynamicComponentType, FormComponent, IDetailsOptions, IPageOptions, DynamicContentDirective, IListPaginationOptions } from '@smartsoft001/angular';
|
|
4
|
+
import { BaseComponent as BaseComponent$1, IButtonOptions, PaginationMode, ICellPipe, ListMode, IIconButtonOptions, InputBaseComponent, SmartPageVariant, InputOptions, IListOptions, IFormOptions, DynamicComponentType, FormComponent, IDetailsOptions, IPageOptions, DynamicContentDirective, IListPaginationOptions, IModelLabelProvider, IModelLabelOptions } from '@smartsoft001/angular';
|
|
5
5
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
6
6
|
import * as _smartsoft001_models from '@smartsoft001/models';
|
|
7
|
-
import { IModelFilter } from '@smartsoft001/models';
|
|
7
|
+
import { IModelFilter, IFieldOptions } from '@smartsoft001/models';
|
|
8
|
+
import * as _smartsoft001_crud_shell_angular from '@smartsoft001/crud-shell-angular';
|
|
9
|
+
import * as i17 from '@angular/forms';
|
|
10
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
8
11
|
import { TranslateService } from '@ngx-translate/core';
|
|
9
12
|
import * as _ngrx_store from '@ngrx/store';
|
|
10
13
|
import { Store, ActionsSubject, State as State$1, Action } from '@ngrx/store';
|
|
11
|
-
import * as i17 from '@angular/forms';
|
|
12
14
|
import * as i18 from '@angular/common';
|
|
13
15
|
import * as i19 from 'ng-dynamic-component';
|
|
14
16
|
import { HttpClient } from '@angular/common/http';
|
|
15
17
|
import { Subscription, Observable } from 'rxjs';
|
|
16
18
|
import * as i7 from '@angular/router';
|
|
17
19
|
|
|
18
|
-
declare class
|
|
20
|
+
declare class ExportBaseComponent<T extends IEntity<string>> extends BaseComponent$1 implements OnInit {
|
|
19
21
|
private facade;
|
|
20
22
|
private popoverService;
|
|
21
23
|
private styleService;
|
|
22
24
|
private elementRef;
|
|
25
|
+
private injector;
|
|
23
26
|
buttonExportCsvOptions: IButtonOptions;
|
|
24
27
|
buttonExportXlsxOptions: IButtonOptions;
|
|
25
28
|
ngOnInit(): void;
|
|
26
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> {
|
|
27
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExportComponent<any>, never>;
|
|
28
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<ExportComponent<any>, "smart-crud-export", never, {}, {}, never, never, true, never>;
|
|
29
37
|
}
|
|
@@ -120,6 +128,8 @@ declare class CrudFullConfig<T> extends CrudConfig<T> {
|
|
|
120
128
|
inputComponents?: {
|
|
121
129
|
[key: string]: Type<InputBaseComponent<T>>;
|
|
122
130
|
};
|
|
131
|
+
cssClass?: string;
|
|
132
|
+
variant?: SmartPageVariant;
|
|
123
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFullConfig<any>, never>;
|
|
124
134
|
static ɵprov: i0.ɵɵInjectableDeclaration<CrudFullConfig<any>>;
|
|
125
135
|
}
|
|
@@ -161,12 +171,54 @@ declare class CrudFacade<T extends IEntity<string>> {
|
|
|
161
171
|
declare class BaseComponent<T extends IEntity<string>> implements OnInit {
|
|
162
172
|
protected facade: CrudFacade<any>;
|
|
163
173
|
protected translateService: TranslateService;
|
|
174
|
+
protected config: CrudConfig<any>;
|
|
175
|
+
protected modelPossibilitiesProvider: _smartsoft001_crud_shell_angular.ICrudModelPossibilitiesProvider | null;
|
|
176
|
+
protected injector: Injector;
|
|
177
|
+
protected destroyRef: DestroyRef;
|
|
178
|
+
private _model;
|
|
179
|
+
/**
|
|
180
|
+
* Local, mutation-free working copy of the last filter this component pushed
|
|
181
|
+
* to `facade.read(...)`. The store-bound `filter()` input is frozen under
|
|
182
|
+
* NgRx `strictStateImmutability`, so refresh/clear operate on a clone; the
|
|
183
|
+
* read getters (`value`, `minValue`, `maxValue`, `hasValue`, …) prefer this
|
|
184
|
+
* pending copy until the real store update flows back through the input.
|
|
185
|
+
*/
|
|
186
|
+
private _pendingFilter;
|
|
187
|
+
/** Snapshot of `filter()` that `_pendingFilter` was derived from. */
|
|
188
|
+
private _pendingFilterSource;
|
|
164
189
|
possibilities: Signal<{
|
|
165
190
|
id: any;
|
|
166
191
|
text: string;
|
|
167
192
|
}[]>;
|
|
168
193
|
readonly item: InputSignal<IModelFilter | undefined>;
|
|
169
194
|
readonly filter: InputSignal<ICrudFilter | undefined>;
|
|
195
|
+
/**
|
|
196
|
+
* The filter the component should read from: the pending working copy when it
|
|
197
|
+
* is still in sync with the current input, otherwise the raw input. Once the
|
|
198
|
+
* store update arrives (a new `filter()` reference), the pending copy is
|
|
199
|
+
* considered stale and the fresh input wins.
|
|
200
|
+
*/
|
|
201
|
+
protected readonly effectiveFilter: Signal<ICrudFilter | undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* OnPush-safe replacement for `@if (value)` in templates (partial GAP-19).
|
|
204
|
+
* True when filter().query has a matching entry (key + type) with a
|
|
205
|
+
* non-empty value.
|
|
206
|
+
*/
|
|
207
|
+
readonly hasValue: Signal<boolean>;
|
|
208
|
+
/**
|
|
209
|
+
* OnPush-safe replacement for `@if (minValue)` in templates (partial
|
|
210
|
+
* GAP-19). True when filter().query has a matching `>=` entry (range "from")
|
|
211
|
+
* with a non-empty value.
|
|
212
|
+
*/
|
|
213
|
+
readonly hasMinValue: Signal<boolean>;
|
|
214
|
+
/**
|
|
215
|
+
* OnPush-safe replacement for `@if (maxValue)` in templates (partial
|
|
216
|
+
* GAP-19). True when filter().query has a matching `<=` entry (range "to")
|
|
217
|
+
* with a non-empty value.
|
|
218
|
+
*/
|
|
219
|
+
readonly hasMaxValue: Signal<boolean>;
|
|
220
|
+
/** Lazily-built model instance used to derive field options/labels. */
|
|
221
|
+
protected get model(): T;
|
|
170
222
|
get value(): any;
|
|
171
223
|
set value(val: any);
|
|
172
224
|
get minValue(): any;
|
|
@@ -174,10 +226,50 @@ declare class BaseComponent<T extends IEntity<string>> implements OnInit {
|
|
|
174
226
|
get maxValue(): any;
|
|
175
227
|
set maxValue(val: any);
|
|
176
228
|
get lang(): string;
|
|
229
|
+
/**
|
|
230
|
+
* Returns a filter object safe to mutate. The store-bound `filter()` input is
|
|
231
|
+
* frozen under NgRx `strictStateImmutability`, so when (any part of) the
|
|
232
|
+
* source is frozen we hand back a deep-enough clone — object + query array +
|
|
233
|
+
* query entries — leaving the store untouched. When the source is a plain,
|
|
234
|
+
* extensible object (no immutability checks active) we keep operating on it in
|
|
235
|
+
* place so consumers that hold the same reference still observe the change.
|
|
236
|
+
*/
|
|
237
|
+
private cloneFilter;
|
|
238
|
+
/**
|
|
239
|
+
* True when `filter` (and its query array + entries) can be mutated directly,
|
|
240
|
+
* i.e. nothing is frozen.
|
|
241
|
+
*/
|
|
242
|
+
private isMutationSafe;
|
|
243
|
+
/**
|
|
244
|
+
* Records the mutated clone as the pending working copy (so read getters
|
|
245
|
+
* reflect it immediately) and dispatches it through the facade.
|
|
246
|
+
*/
|
|
247
|
+
private commitFilter;
|
|
177
248
|
refresh(val: any, type?: string | null): void;
|
|
249
|
+
/**
|
|
250
|
+
* Builds the `InputOptions` consumed by shared `smart-input-*` components for
|
|
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;
|
|
178
269
|
clear(): void;
|
|
179
270
|
ngOnInit(): void;
|
|
180
271
|
private initPossibilities;
|
|
272
|
+
private hasQueryValue;
|
|
181
273
|
private isArrayType;
|
|
182
274
|
private refreshForArray;
|
|
183
275
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent<any>, never>;
|
|
@@ -185,7 +277,6 @@ declare class BaseComponent<T extends IEntity<string>> implements OnInit {
|
|
|
185
277
|
}
|
|
186
278
|
|
|
187
279
|
declare class FilterDateComponent<T extends IEntity<string>> extends BaseComponent<T> {
|
|
188
|
-
id: string;
|
|
189
280
|
get allowAdvanced(): boolean;
|
|
190
281
|
set customValue(val: any);
|
|
191
282
|
get customValue(): any;
|
|
@@ -197,47 +288,49 @@ declare class FilterDateComponent<T extends IEntity<string>> extends BaseCompone
|
|
|
197
288
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateComponent<any>, "smart-crud-filter-date", never, {}, {}, never, never, true, never>;
|
|
198
289
|
}
|
|
199
290
|
|
|
200
|
-
declare class FilterDateWithEditComponent<T extends IEntity<string>> extends FilterDateComponent<T>
|
|
201
|
-
private _subscriptions;
|
|
291
|
+
declare class FilterDateWithEditComponent<T extends IEntity<string>> extends FilterDateComponent<T> {
|
|
202
292
|
advanced: WritableSignal<boolean>;
|
|
203
|
-
id: string;
|
|
204
293
|
toggleAdvanced(): void;
|
|
205
|
-
ngOnInit(): void;
|
|
206
|
-
ngOnDestroy(): void;
|
|
207
294
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateWithEditComponent<any>, never>;
|
|
208
295
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateWithEditComponent<any>, "smart-crud-filter-date-with-edit", never, {}, {}, never, never, true, never>;
|
|
209
296
|
}
|
|
210
297
|
|
|
211
|
-
declare class FilterDateTimeComponent<T extends IEntity<string>> extends FilterDateComponent<T>
|
|
212
|
-
private _subscriptions;
|
|
213
|
-
id: string;
|
|
214
|
-
ngOnInit(): void;
|
|
215
|
-
ngOnDestroy(): void;
|
|
298
|
+
declare class FilterDateTimeComponent<T extends IEntity<string>> extends FilterDateComponent<T> {
|
|
216
299
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateTimeComponent<any>, never>;
|
|
217
300
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateTimeComponent<any>, "smart-crud-filter-date-time", never, {}, {}, never, never, true, never>;
|
|
218
301
|
}
|
|
219
302
|
|
|
220
|
-
declare class FilterRadioComponent<T extends IEntity<string>> extends BaseComponent<T> {
|
|
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;
|
|
221
307
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterRadioComponent<any>, never>;
|
|
222
308
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterRadioComponent<any>, "smart-crud-filter-radio", never, {}, {}, never, never, true, never>;
|
|
223
309
|
}
|
|
224
310
|
|
|
225
|
-
declare class FilterTextComponent<T extends IEntity<string>> extends BaseComponent<T> {
|
|
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;
|
|
226
315
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterTextComponent<any>, never>;
|
|
227
316
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterTextComponent<any>, "smart-crud-filter-text", never, {}, {}, never, never, true, never>;
|
|
228
317
|
}
|
|
229
318
|
|
|
230
|
-
declare class FilterFlagComponent<T extends IEntity<string>> extends BaseComponent<T> {
|
|
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;
|
|
231
323
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterFlagComponent<any>, never>;
|
|
232
324
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterFlagComponent<any>, "smart-crud-filter-flag", never, {}, {}, never, never, true, never>;
|
|
233
325
|
}
|
|
234
326
|
|
|
235
|
-
declare class FilterCheckComponent<T extends IEntity<string>> extends BaseComponent<T> implements
|
|
327
|
+
declare class FilterCheckComponent<T extends IEntity<string>> extends BaseComponent<T> implements OnInit {
|
|
236
328
|
list: Signal<{
|
|
237
329
|
value: any;
|
|
238
330
|
isCheck: boolean;
|
|
239
331
|
}[]>;
|
|
240
|
-
|
|
332
|
+
readonly hasCheckedValues: Signal<boolean>;
|
|
333
|
+
ngOnInit(): void;
|
|
241
334
|
onCheckChange(checked: boolean, entry: {
|
|
242
335
|
value: any;
|
|
243
336
|
isCheck: boolean;
|
|
@@ -246,17 +339,37 @@ declare class FilterCheckComponent<T extends IEntity<string>> extends BaseCompon
|
|
|
246
339
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterCheckComponent<any>, "smart-crud-filter-check", never, {}, {}, never, never, true, never>;
|
|
247
340
|
}
|
|
248
341
|
|
|
249
|
-
declare class FilterIntComponent<T extends IEntity<string>> extends BaseComponent<T> implements OnInit
|
|
250
|
-
|
|
251
|
-
|
|
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;
|
|
252
348
|
get allowAdvanced(): boolean;
|
|
253
349
|
ngOnInit(): void;
|
|
254
|
-
ngOnDestroy(): void;
|
|
255
350
|
toggleAdvanced(): void;
|
|
256
351
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterIntComponent<any>, never>;
|
|
257
352
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterIntComponent<any>, "smart-crud-filter-int", never, {}, {}, never, never, true, never>;
|
|
258
353
|
}
|
|
259
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
|
+
|
|
260
373
|
/**
|
|
261
374
|
* This component is only to use in crud module
|
|
262
375
|
* @requires CrudModule
|
|
@@ -312,22 +425,9 @@ declare class FilterIntComponent<T extends IEntity<string>> extends BaseComponen
|
|
|
312
425
|
})
|
|
313
426
|
body: string;
|
|
314
427
|
*/
|
|
315
|
-
declare class FiltersComponent<T extends IEntity<string>>
|
|
316
|
-
private menuService;
|
|
317
|
-
private config;
|
|
318
|
-
private facade;
|
|
319
|
-
private styleService;
|
|
320
|
-
private elementRef;
|
|
321
|
-
list: WritableSignal<Array<IModelFilter>>;
|
|
322
|
-
filter: Signal<ICrudFilter | undefined>;
|
|
323
|
-
/**
|
|
324
|
-
* Hide menu used only from MenuService
|
|
325
|
-
*/
|
|
326
|
-
readonly hideMenu: InputSignal<boolean>;
|
|
327
|
-
onClose(): Promise<void>;
|
|
328
|
-
ngOnInit(): void;
|
|
428
|
+
declare class FiltersComponent<T extends IEntity<string>> extends FiltersBaseComponent<T> {
|
|
329
429
|
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersComponent<any>, never>;
|
|
330
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersComponent<any>, "smart-crud-filters", never, {
|
|
430
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersComponent<any>, "smart-crud-filters", never, {}, {}, never, never, true, never>;
|
|
331
431
|
}
|
|
332
432
|
|
|
333
433
|
declare class FiltersConfigComponent implements OnInit {
|
|
@@ -341,7 +441,7 @@ declare class FiltersConfigComponent implements OnInit {
|
|
|
341
441
|
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersConfigComponent, "smart-crud-filters-config", never, {}, {}, never, never, true, never>;
|
|
342
442
|
}
|
|
343
443
|
|
|
344
|
-
declare class
|
|
444
|
+
declare class MultiselectBaseComponent<T extends IEntity<string>> {
|
|
345
445
|
private facade;
|
|
346
446
|
config: CrudFullConfig<T>;
|
|
347
447
|
private menuService;
|
|
@@ -357,21 +457,32 @@ declare class MultiselectComponent<T extends IEntity<string>> {
|
|
|
357
457
|
onClose(): Promise<void>;
|
|
358
458
|
onPartialChange(changes: Partial<T>, list: Array<T>): void;
|
|
359
459
|
onValidChange(valid: boolean): void;
|
|
460
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectBaseComponent<any>, never>;
|
|
461
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiselectBaseComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare class MultiselectComponent<T extends IEntity<string>> extends MultiselectBaseComponent<T> {
|
|
360
465
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectComponent<any>, never>;
|
|
361
466
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectComponent<any>, "smart-crud-multiselect", never, {}, {}, never, never, true, never>;
|
|
362
467
|
}
|
|
363
468
|
|
|
364
|
-
declare class
|
|
469
|
+
declare class GroupBaseComponent<T extends IEntity<string>> extends BaseComponent$1 implements OnInit, OnDestroy {
|
|
365
470
|
private styleService;
|
|
366
471
|
private elementRef;
|
|
367
472
|
private groupService;
|
|
473
|
+
private cd;
|
|
368
474
|
readonly groups: InputSignal<Array<ICrudListGroup> | null>;
|
|
369
475
|
readonly listOptions: InputSignal<IListOptions<T> | null>;
|
|
370
476
|
change(val: boolean, item: ICrudListGroup, force?: boolean): void;
|
|
371
477
|
ngOnInit(): void;
|
|
372
478
|
ngOnDestroy(): void;
|
|
479
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupBaseComponent<any>, never>;
|
|
480
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GroupBaseComponent<any>, never, never, { "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "listOptions": { "alias": "listOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
declare class GroupComponent<T extends IEntity<string>> extends GroupBaseComponent<T> {
|
|
373
484
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupComponent<any>, never>;
|
|
374
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GroupComponent<any>, "smart-crud-group", never, {
|
|
485
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupComponent<any>, "smart-crud-group", never, {}, {}, never, never, true, never>;
|
|
375
486
|
}
|
|
376
487
|
|
|
377
488
|
declare class FormOptionsPipe<T extends IEntity<string>> implements PipeTransform {
|
|
@@ -395,9 +506,15 @@ declare class CrudComponentsModule {
|
|
|
395
506
|
static ɵinj: i0.ɵɵInjectorDeclaration<CrudComponentsModule>;
|
|
396
507
|
}
|
|
397
508
|
|
|
509
|
+
declare class SocketService<T> {
|
|
510
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SocketService<any>, never>;
|
|
511
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SocketService<any>>;
|
|
512
|
+
}
|
|
513
|
+
|
|
398
514
|
declare class CrudService<T extends IEntity<string>> {
|
|
399
515
|
protected config: CrudConfig<any>;
|
|
400
516
|
protected http: HttpClient;
|
|
517
|
+
protected socket: SocketService<any> | null;
|
|
401
518
|
protected _formatMap: {
|
|
402
519
|
csv: string;
|
|
403
520
|
xlsx: string;
|
|
@@ -593,6 +710,7 @@ declare class CrudFullModule<T extends IEntity<string>> {
|
|
|
593
710
|
|
|
594
711
|
declare class CrudListPaginationFactory<T extends IEntity<string>> {
|
|
595
712
|
private readonly facade;
|
|
713
|
+
private readonly injector;
|
|
596
714
|
create(options: {
|
|
597
715
|
mode?: PaginationMode;
|
|
598
716
|
limit: number;
|
|
@@ -626,6 +744,155 @@ declare class CrudSearchService {
|
|
|
626
744
|
static ɵprov: i0.ɵɵInjectableDeclaration<CrudSearchService>;
|
|
627
745
|
}
|
|
628
746
|
|
|
747
|
+
declare const create: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
748
|
+
item: T;
|
|
749
|
+
};
|
|
750
|
+
declare const createSuccess: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
751
|
+
item: T;
|
|
752
|
+
};
|
|
753
|
+
declare const createFailure: <T extends IEntity<string>>(entity: string, item: T, error: any) => Action & {
|
|
754
|
+
item: T;
|
|
755
|
+
error: any;
|
|
756
|
+
};
|
|
757
|
+
declare const createMany: <T extends IEntity<string>>(entity: string, data: {
|
|
758
|
+
items: T[];
|
|
759
|
+
options: ICrudCreateManyOptions;
|
|
760
|
+
}) => Action & {
|
|
761
|
+
data: {
|
|
762
|
+
items: T[];
|
|
763
|
+
options: ICrudCreateManyOptions;
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
declare const createManySuccess: <T extends IEntity<string>>(entity: string, data: {
|
|
767
|
+
items: T[];
|
|
768
|
+
options: ICrudCreateManyOptions;
|
|
769
|
+
}) => Action & {
|
|
770
|
+
data: {
|
|
771
|
+
items: T[];
|
|
772
|
+
options: ICrudCreateManyOptions;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
declare const createManyFailure: <T extends IEntity<string>>(entity: string, data: {
|
|
776
|
+
items: T[];
|
|
777
|
+
options: ICrudCreateManyOptions;
|
|
778
|
+
}, error: any) => Action & {
|
|
779
|
+
data: {
|
|
780
|
+
items: T[];
|
|
781
|
+
options: ICrudCreateManyOptions;
|
|
782
|
+
};
|
|
783
|
+
error: any;
|
|
784
|
+
};
|
|
785
|
+
declare const read: (entity: string, filter?: ICrudFilter) => Action & {
|
|
786
|
+
filter?: ICrudFilter;
|
|
787
|
+
};
|
|
788
|
+
declare const readSuccess: <T extends IEntity<string>, F>(entity: string, filter: F, result: {
|
|
789
|
+
data: T[];
|
|
790
|
+
totalCount: number;
|
|
791
|
+
links: any;
|
|
792
|
+
}) => Action & {
|
|
793
|
+
result: {
|
|
794
|
+
data: T[];
|
|
795
|
+
totalCount: number;
|
|
796
|
+
links: any;
|
|
797
|
+
};
|
|
798
|
+
filter: F;
|
|
799
|
+
};
|
|
800
|
+
declare const readFailure: <F>(entity: string, filter: F, error: any) => Action & {
|
|
801
|
+
filter: F;
|
|
802
|
+
error: any;
|
|
803
|
+
};
|
|
804
|
+
declare const clear: (entity: string) => Action;
|
|
805
|
+
declare const exportList: (entity: string, filter: (ICrudFilter | null) | undefined, format: any) => Action & {
|
|
806
|
+
filter: ICrudFilter;
|
|
807
|
+
format: any;
|
|
808
|
+
};
|
|
809
|
+
declare const exportListSuccess: <T extends IEntity<string>, F>(entity: string, filter: F) => Action & {
|
|
810
|
+
filter: F;
|
|
811
|
+
};
|
|
812
|
+
declare const exportListFailure: <F>(entity: string, filter: F, error: any) => Action & {
|
|
813
|
+
filter: F;
|
|
814
|
+
error: any;
|
|
815
|
+
};
|
|
816
|
+
declare const select: (entity: string, id: string) => Action & {
|
|
817
|
+
id: string;
|
|
818
|
+
};
|
|
819
|
+
declare const selectSuccess: <T extends IEntity<string>, F>(entity: string, id: string, item: T) => Action & {
|
|
820
|
+
id: string;
|
|
821
|
+
item: T;
|
|
822
|
+
};
|
|
823
|
+
declare const selectFailure: <F>(entity: string, id: string, error: any) => Action & {
|
|
824
|
+
id: string;
|
|
825
|
+
error: any;
|
|
826
|
+
};
|
|
827
|
+
declare const unselect: (entity: string) => Action;
|
|
828
|
+
declare const multiSelect: <T extends IEntity<string>>(entity: string, items: Array<T>) => Action & {
|
|
829
|
+
items: Array<T>;
|
|
830
|
+
};
|
|
831
|
+
declare const update: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
832
|
+
item: T;
|
|
833
|
+
};
|
|
834
|
+
declare const updateSuccess: <T extends IEntity<string>>(entity: string, item: T) => Action & {
|
|
835
|
+
item: T;
|
|
836
|
+
};
|
|
837
|
+
declare const updateFailure: <T extends IEntity<string>>(entity: string, item: T, error: any) => Action & {
|
|
838
|
+
item: T;
|
|
839
|
+
error: any;
|
|
840
|
+
};
|
|
841
|
+
declare const updatePartial: <T extends IEntity<string>>(entity: string, item: Partial<T> & {
|
|
842
|
+
id: string;
|
|
843
|
+
}) => Action & {
|
|
844
|
+
item: Partial<T> & {
|
|
845
|
+
id: string;
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
declare const updatePartialSuccess: <T extends IEntity<string>>(entity: string, item: Partial<T> & {
|
|
849
|
+
id: string;
|
|
850
|
+
}) => Action & {
|
|
851
|
+
item: Partial<T> & {
|
|
852
|
+
id: string;
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
declare const updatePartialFailure: <T extends IEntity<string>>(entity: string, item: Partial<T> & {
|
|
856
|
+
id: string;
|
|
857
|
+
}, error: any) => Action & {
|
|
858
|
+
item: Partial<T> & {
|
|
859
|
+
id: string;
|
|
860
|
+
};
|
|
861
|
+
error: any;
|
|
862
|
+
};
|
|
863
|
+
declare const updatePartialMany: <T extends IEntity<string>>(entity: string, items: Partial<T> & {
|
|
864
|
+
id: string;
|
|
865
|
+
}[]) => Action & {
|
|
866
|
+
items: Partial<T> & {
|
|
867
|
+
id: string;
|
|
868
|
+
}[];
|
|
869
|
+
};
|
|
870
|
+
declare const updatePartialManySuccess: <T extends IEntity<string>>(entity: string, items: Partial<T> & {
|
|
871
|
+
id: string;
|
|
872
|
+
}[]) => Action & {
|
|
873
|
+
items: Partial<T> & {
|
|
874
|
+
id: string;
|
|
875
|
+
}[];
|
|
876
|
+
};
|
|
877
|
+
declare const updatePartialManyFailure: <T extends IEntity<string>>(entity: string, items: Partial<T> & {
|
|
878
|
+
id: string;
|
|
879
|
+
}[], error: any) => Action & {
|
|
880
|
+
items: Partial<T> & {
|
|
881
|
+
id: string;
|
|
882
|
+
}[];
|
|
883
|
+
error: any;
|
|
884
|
+
};
|
|
885
|
+
declare const deleteItem: (entity: string, id: string) => Action & {
|
|
886
|
+
id: string;
|
|
887
|
+
};
|
|
888
|
+
declare const deleteSuccess: (entity: string, id: string) => Action & {
|
|
889
|
+
id: string;
|
|
890
|
+
};
|
|
891
|
+
declare const deleteFailure: <F>(entity: string, id: string, error: any) => Action & {
|
|
892
|
+
id: string;
|
|
893
|
+
error: any;
|
|
894
|
+
};
|
|
895
|
+
|
|
629
896
|
interface State<T extends IEntity<string>> {
|
|
630
897
|
selected?: T;
|
|
631
898
|
multiSelected?: Array<T>;
|
|
@@ -692,5 +959,13 @@ declare abstract class ICrudModelPossibilitiesProvider {
|
|
|
692
959
|
*/
|
|
693
960
|
declare const CRUD_MODEL_POSSIBILITIES_PROVIDER: InjectionToken<ICrudModelPossibilitiesProvider>;
|
|
694
961
|
|
|
695
|
-
|
|
962
|
+
declare class CrudModelLabelProvider extends IModelLabelProvider {
|
|
963
|
+
private translateService;
|
|
964
|
+
private parent;
|
|
965
|
+
get(options: IModelLabelOptions): Signal<string>;
|
|
966
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudModelLabelProvider, never>;
|
|
967
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CrudModelLabelProvider>;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
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 };
|
|
696
971
|
export type { CrudCreateManyMode, ICrudCreateManyOptions, ICrudFilter, ICrudFilterQueryItem, ICrudListGroup, ICrudModuleOptionsWithRoutng, ICrudModuleOptionsWithoutRoutng, State };
|