@smartsoft001/crud-shell-angular 2.126.0 → 2.128.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.
|
@@ -252,10 +252,10 @@ class CrudConfig {
|
|
|
252
252
|
type;
|
|
253
253
|
reducerFactory;
|
|
254
254
|
baseQuery;
|
|
255
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
256
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
255
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
256
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudConfig });
|
|
257
257
|
}
|
|
258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudConfig, decorators: [{
|
|
259
259
|
type: Injectable
|
|
260
260
|
}] });
|
|
261
261
|
class CrudFullConfig extends CrudConfig {
|
|
@@ -275,10 +275,10 @@ class CrudFullConfig extends CrudConfig {
|
|
|
275
275
|
// Deep threading into IListOptions/IPageOptions lands in Phase 3.
|
|
276
276
|
cssClass;
|
|
277
277
|
variant;
|
|
278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
279
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFullConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
279
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFullConfig });
|
|
280
280
|
}
|
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFullConfig, decorators: [{
|
|
282
282
|
type: Injectable
|
|
283
283
|
}] });
|
|
284
284
|
|
|
@@ -298,17 +298,17 @@ const getCrudError = (entity) => createSelector(getCrudState(entity), (state) =>
|
|
|
298
298
|
// (which would have extended ngx-socket-io's `Socket`) was always commented out.
|
|
299
299
|
// `NotSocketService` is the null-object fallback used when `options.socket` is off.
|
|
300
300
|
class SocketService {
|
|
301
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
302
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
301
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SocketService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
302
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SocketService });
|
|
303
303
|
}
|
|
304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SocketService, decorators: [{
|
|
305
305
|
type: Injectable
|
|
306
306
|
}] });
|
|
307
307
|
class NotSocketService {
|
|
308
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
309
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
308
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotSocketService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
309
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotSocketService });
|
|
310
310
|
}
|
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotSocketService, decorators: [{
|
|
312
312
|
type: Injectable
|
|
313
313
|
}] });
|
|
314
314
|
|
|
@@ -427,10 +427,10 @@ class CrudService {
|
|
|
427
427
|
}
|
|
428
428
|
return query ? '?' + query.replace('&', '') : '';
|
|
429
429
|
}
|
|
430
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
431
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
430
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
431
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudService });
|
|
432
432
|
}
|
|
433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudService, decorators: [{
|
|
434
434
|
type: Injectable
|
|
435
435
|
}] });
|
|
436
436
|
|
|
@@ -595,10 +595,10 @@ class CrudEffects {
|
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
599
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
598
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudEffects, deps: [{ token: i1.ActionsSubject }, { token: CrudService }, { token: CrudConfig }, { token: i1.Store }, { token: i1.State }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
599
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudEffects });
|
|
600
600
|
}
|
|
601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudEffects, decorators: [{
|
|
602
602
|
type: Injectable
|
|
603
603
|
}], ctorParameters: () => [{ type: i1.ActionsSubject }, { type: CrudService }, { type: CrudConfig }, { type: i1.Store }, { type: i1.State }] });
|
|
604
604
|
|
|
@@ -680,10 +680,10 @@ class CrudFacade {
|
|
|
680
680
|
return NgrxStoreService.store;
|
|
681
681
|
return this.store;
|
|
682
682
|
}
|
|
683
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
684
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
683
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFacade, deps: [{ token: i1.Store }, { token: CrudConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
684
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFacade });
|
|
685
685
|
}
|
|
686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFacade, decorators: [{
|
|
687
687
|
type: Injectable
|
|
688
688
|
}], ctorParameters: () => [{ type: i1.Store }, { type: CrudConfig }] });
|
|
689
689
|
|
|
@@ -927,16 +927,16 @@ class ExportBaseComponent extends BaseComponent$1 {
|
|
|
927
927
|
loading: this.facade.loading,
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
931
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
930
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ExportBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
931
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: ExportBaseComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
932
932
|
}
|
|
933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ExportBaseComponent, decorators: [{
|
|
934
934
|
type: Directive
|
|
935
935
|
}] });
|
|
936
936
|
|
|
937
937
|
class ExportComponent extends ExportBaseComponent {
|
|
938
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
939
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
938
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ExportComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
939
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.3", type: ExportComponent, isStandalone: true, selector: "smart-crud-export", usesInheritance: true, ngImport: i0, template: `
|
|
940
940
|
<div class="smart:p-5">
|
|
941
941
|
<p class="smart:my-2.5 smart:mx-0">
|
|
942
942
|
<smart-button
|
|
@@ -955,7 +955,7 @@ class ExportComponent extends ExportBaseComponent {
|
|
|
955
955
|
</div>
|
|
956
956
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
957
957
|
}
|
|
958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ExportComponent, decorators: [{
|
|
959
959
|
type: Component,
|
|
960
960
|
args: [{
|
|
961
961
|
selector: 'smart-crud-export',
|
|
@@ -1007,12 +1007,15 @@ class BaseComponent {
|
|
|
1007
1007
|
* read getters (`value`, `minValue`, `maxValue`, `hasValue`, …) prefer this
|
|
1008
1008
|
* pending copy until the real store update flows back through the input.
|
|
1009
1009
|
*/
|
|
1010
|
-
_pendingFilter = signal(undefined,
|
|
1010
|
+
_pendingFilter = signal(undefined, /* @ts-ignore */
|
|
1011
|
+
...(ngDevMode ? [{ debugName: "_pendingFilter" }] : /* istanbul ignore next */ []));
|
|
1011
1012
|
/** Snapshot of `filter()` that `_pendingFilter` was derived from. */
|
|
1012
1013
|
_pendingFilterSource;
|
|
1013
1014
|
possibilities;
|
|
1014
|
-
item = input(
|
|
1015
|
-
|
|
1015
|
+
item = input(/* @ts-ignore */
|
|
1016
|
+
...(ngDevMode ? [undefined, { debugName: "item" }] : /* istanbul ignore next */ []));
|
|
1017
|
+
filter = input(/* @ts-ignore */
|
|
1018
|
+
...(ngDevMode ? [undefined, { debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
1016
1019
|
/**
|
|
1017
1020
|
* The filter the component should read from: the pending working copy when it
|
|
1018
1021
|
* is still in sync with the current input, otherwise the raw input. Once the
|
|
@@ -1025,7 +1028,8 @@ class BaseComponent {
|
|
|
1025
1028
|
if (pending && source === this._pendingFilterSource)
|
|
1026
1029
|
return pending;
|
|
1027
1030
|
return source;
|
|
1028
|
-
},
|
|
1031
|
+
}, /* @ts-ignore */
|
|
1032
|
+
...(ngDevMode ? [{ debugName: "effectiveFilter" }] : /* istanbul ignore next */ []));
|
|
1029
1033
|
/**
|
|
1030
1034
|
* OnPush-safe replacement for `@if (value)` in templates (partial GAP-19).
|
|
1031
1035
|
* True when filter().query has a matching entry (key + type) with a
|
|
@@ -1041,19 +1045,22 @@ class BaseComponent {
|
|
|
1041
1045
|
return false;
|
|
1042
1046
|
const val = query.value;
|
|
1043
1047
|
return val !== null && val !== undefined && val !== '';
|
|
1044
|
-
},
|
|
1048
|
+
}, /* @ts-ignore */
|
|
1049
|
+
...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
|
|
1045
1050
|
/**
|
|
1046
1051
|
* OnPush-safe replacement for `@if (minValue)` in templates (partial
|
|
1047
1052
|
* GAP-19). True when filter().query has a matching `>=` entry (range "from")
|
|
1048
1053
|
* with a non-empty value.
|
|
1049
1054
|
*/
|
|
1050
|
-
hasMinValue = computed(() => this.hasQueryValue('>='),
|
|
1055
|
+
hasMinValue = computed(() => this.hasQueryValue('>='), /* @ts-ignore */
|
|
1056
|
+
...(ngDevMode ? [{ debugName: "hasMinValue" }] : /* istanbul ignore next */ []));
|
|
1051
1057
|
/**
|
|
1052
1058
|
* OnPush-safe replacement for `@if (maxValue)` in templates (partial
|
|
1053
1059
|
* GAP-19). True when filter().query has a matching `<=` entry (range "to")
|
|
1054
1060
|
* with a non-empty value.
|
|
1055
1061
|
*/
|
|
1056
|
-
hasMaxValue = computed(() => this.hasQueryValue('<='),
|
|
1062
|
+
hasMaxValue = computed(() => this.hasQueryValue('<='), /* @ts-ignore */
|
|
1063
|
+
...(ngDevMode ? [{ debugName: "hasMaxValue" }] : /* istanbul ignore next */ []));
|
|
1057
1064
|
/** Lazily-built model instance used to derive field options/labels. */
|
|
1058
1065
|
get model() {
|
|
1059
1066
|
return (this._model ??= new this.config.type());
|
|
@@ -1205,7 +1212,8 @@ class BaseComponent {
|
|
|
1205
1212
|
};
|
|
1206
1213
|
if (withPossibilities) {
|
|
1207
1214
|
const source = this.possibilities ? this.possibilities() : [];
|
|
1208
|
-
options.possibilities = signal(source.map(({ id, text }) => ({ id, text, checked: false })),
|
|
1215
|
+
options.possibilities = signal(source.map(({ id, text }) => ({ id, text, checked: false })), /* @ts-ignore */
|
|
1216
|
+
...(ngDevMode ? [{ debugName: "possibilities" }] : /* istanbul ignore next */ []));
|
|
1209
1217
|
}
|
|
1210
1218
|
return options;
|
|
1211
1219
|
}
|
|
@@ -1306,8 +1314,8 @@ class BaseComponent {
|
|
|
1306
1314
|
});
|
|
1307
1315
|
this.commitFilter(filter);
|
|
1308
1316
|
}
|
|
1309
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1310
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1317
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1318
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: BaseComponent, isStandalone: true, inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1311
1319
|
}
|
|
1312
1320
|
__decorate([
|
|
1313
1321
|
Debounce(500),
|
|
@@ -1315,7 +1323,7 @@ __decorate([
|
|
|
1315
1323
|
__metadata("design:paramtypes", [Object, Object]),
|
|
1316
1324
|
__metadata("design:returntype", void 0)
|
|
1317
1325
|
], BaseComponent.prototype, "refresh", null);
|
|
1318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1319
1327
|
type: Directive
|
|
1320
1328
|
}], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], refresh: [] } });
|
|
1321
1329
|
|
|
@@ -1327,7 +1335,8 @@ class FilterCheckComponent extends BaseComponent {
|
|
|
1327
1335
|
hasCheckedValues = computed(() => {
|
|
1328
1336
|
const v = this.value;
|
|
1329
1337
|
return Array.isArray(v) && v.length > 0;
|
|
1330
|
-
},
|
|
1338
|
+
}, /* @ts-ignore */
|
|
1339
|
+
...(ngDevMode ? [{ debugName: "hasCheckedValues" }] : /* istanbul ignore next */ []));
|
|
1331
1340
|
ngOnInit() {
|
|
1332
1341
|
super.ngOnInit();
|
|
1333
1342
|
this.list = computed(() => {
|
|
@@ -1337,7 +1346,8 @@ class FilterCheckComponent extends BaseComponent {
|
|
|
1337
1346
|
value: pos,
|
|
1338
1347
|
isCheck: v.some((r) => r === pos.id),
|
|
1339
1348
|
}));
|
|
1340
|
-
},
|
|
1349
|
+
}, /* @ts-ignore */
|
|
1350
|
+
...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
|
|
1341
1351
|
}
|
|
1342
1352
|
onCheckChange(checked, entry) {
|
|
1343
1353
|
if (checked && !(this.value ?? []).some((r) => r === entry.value.id)) {
|
|
@@ -1347,8 +1357,8 @@ class FilterCheckComponent extends BaseComponent {
|
|
|
1347
1357
|
this.value = this.value?.filter((r) => r !== entry.value.id);
|
|
1348
1358
|
}
|
|
1349
1359
|
}
|
|
1350
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1351
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1360
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterCheckComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1361
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterCheckComponent, isStandalone: true, selector: "smart-crud-filter-check", host: { classAttribute: "smart:block smart:w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
1352
1362
|
<fieldset class="smart:w-full">
|
|
1353
1363
|
<legend
|
|
1354
1364
|
class="smart:flex smart:items-center smart:justify-between smart:text-sm smart:font-medium smart:text-gray-900"
|
|
@@ -1383,7 +1393,7 @@ class FilterCheckComponent extends BaseComponent {
|
|
|
1383
1393
|
</fieldset>
|
|
1384
1394
|
`, isInline: true, dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1385
1395
|
}
|
|
1386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterCheckComponent, decorators: [{
|
|
1387
1397
|
type: Component,
|
|
1388
1398
|
args: [{
|
|
1389
1399
|
selector: 'smart-crud-filter-check',
|
|
@@ -1462,8 +1472,8 @@ class FilterDateComponent extends BaseComponent {
|
|
|
1462
1472
|
get customMaxValue() {
|
|
1463
1473
|
return this.maxValue;
|
|
1464
1474
|
}
|
|
1465
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1466
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1475
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterDateComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1476
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterDateComponent, isStandalone: true, selector: "smart-crud-filter-date", host: { classAttribute: "smart:block smart:w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
1467
1477
|
<label class="smart:mb-1 smart:block smart:text-sm smart:font-medium">
|
|
1468
1478
|
{{ item()?.label || '' | translate }}
|
|
1469
1479
|
</label>
|
|
@@ -1486,7 +1496,7 @@ class FilterDateComponent extends BaseComponent {
|
|
|
1486
1496
|
</div>
|
|
1487
1497
|
`, isInline: true, dependencies: [{ kind: "component", type: DateEditComponent, selector: "smart-date-edit", inputs: ["variant", "class", "ngModel"], outputs: ["ngModelChange", "validChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1488
1498
|
}
|
|
1489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterDateComponent, decorators: [{
|
|
1490
1500
|
type: Component,
|
|
1491
1501
|
args: [{
|
|
1492
1502
|
selector: 'smart-crud-filter-date',
|
|
@@ -1520,8 +1530,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1520
1530
|
}] });
|
|
1521
1531
|
|
|
1522
1532
|
class FilterDateTimeComponent extends FilterDateComponent {
|
|
1523
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1524
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterDateTimeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1534
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterDateTimeComponent, isStandalone: true, selector: "smart-crud-filter-date-time", host: { classAttribute: "smart:block smart:w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
1525
1535
|
<label class="smart:mb-1 smart:block smart:text-sm smart:font-medium">
|
|
1526
1536
|
{{ item()?.label || '' | translate }}
|
|
1527
1537
|
</label>
|
|
@@ -1565,9 +1575,9 @@ class FilterDateTimeComponent extends FilterDateComponent {
|
|
|
1565
1575
|
}
|
|
1566
1576
|
</div>
|
|
1567
1577
|
</div>
|
|
1568
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1578
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1569
1579
|
}
|
|
1570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterDateTimeComponent, decorators: [{
|
|
1571
1581
|
type: Component,
|
|
1572
1582
|
args: [{
|
|
1573
1583
|
selector: 'smart-crud-filter-date-time',
|
|
@@ -1624,15 +1634,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1624
1634
|
}] });
|
|
1625
1635
|
|
|
1626
1636
|
class FilterDateWithEditComponent extends FilterDateComponent {
|
|
1627
|
-
advanced = signal(false,
|
|
1637
|
+
advanced = signal(false, /* @ts-ignore */
|
|
1638
|
+
...(ngDevMode ? [{ debugName: "advanced" }] : /* istanbul ignore next */ []));
|
|
1628
1639
|
toggleAdvanced() {
|
|
1629
1640
|
this.advanced.update((val) => !val);
|
|
1630
1641
|
if (this.advanced()) {
|
|
1631
1642
|
this.value = null;
|
|
1632
1643
|
}
|
|
1633
1644
|
}
|
|
1634
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1635
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1645
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterDateWithEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1646
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterDateWithEditComponent, isStandalone: true, selector: "smart-crud-filter-date-with-edit", host: { classAttribute: "smart:block smart:w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
1636
1647
|
<label class="smart:mb-1 smart:block smart:text-sm smart:font-medium">
|
|
1637
1648
|
{{ item()?.label || '' | translate }}
|
|
1638
1649
|
</label>
|
|
@@ -1718,7 +1729,7 @@ class FilterDateWithEditComponent extends FilterDateComponent {
|
|
|
1718
1729
|
}
|
|
1719
1730
|
`, isInline: true, dependencies: [{ kind: "component", type: DateEditComponent, selector: "smart-date-edit", inputs: ["variant", "class", "ngModel"], outputs: ["ngModelChange", "validChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1720
1731
|
}
|
|
1721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterDateWithEditComponent, decorators: [{
|
|
1722
1733
|
type: Component,
|
|
1723
1734
|
args: [{
|
|
1724
1735
|
selector: 'smart-crud-filter-date-with-edit',
|
|
@@ -1815,15 +1826,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1815
1826
|
}] });
|
|
1816
1827
|
|
|
1817
1828
|
class FilterFlagComponent extends BaseComponent {
|
|
1818
|
-
inputOptions = signal(undefined,
|
|
1819
|
-
|
|
1829
|
+
inputOptions = signal(undefined, /* @ts-ignore */
|
|
1830
|
+
...(ngDevMode ? [{ debugName: "inputOptions" }] : /* istanbul ignore next */ []));
|
|
1831
|
+
fieldOptions = signal(undefined, /* @ts-ignore */
|
|
1832
|
+
...(ngDevMode ? [{ debugName: "fieldOptions" }] : /* istanbul ignore next */ []));
|
|
1820
1833
|
ngOnInit() {
|
|
1821
1834
|
super.ngOnInit();
|
|
1822
1835
|
const control = this.bindValueControl();
|
|
1823
1836
|
this.inputOptions.set(this.buildInputOptions(control));
|
|
1824
1837
|
}
|
|
1825
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1826
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1838
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterFlagComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1839
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterFlagComponent, isStandalone: true, selector: "smart-crud-filter-flag", host: { classAttribute: "smart:block smart:w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
1827
1840
|
@if (inputOptions()) {
|
|
1828
1841
|
<div class="smart:flex smart:w-full smart:items-center smart:gap-2">
|
|
1829
1842
|
<smart-input-flag
|
|
@@ -1845,7 +1858,7 @@ class FilterFlagComponent extends BaseComponent {
|
|
|
1845
1858
|
}
|
|
1846
1859
|
`, isInline: true, dependencies: [{ kind: "component", type: InputFlagComponent, selector: "smart-input-flag" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1847
1860
|
}
|
|
1848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterFlagComponent, decorators: [{
|
|
1849
1862
|
type: Component,
|
|
1850
1863
|
args: [{
|
|
1851
1864
|
selector: 'smart-crud-filter-flag',
|
|
@@ -1879,9 +1892,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1879
1892
|
// TODO(FRA-293 GAP-19): the advanced range controls (minControl/maxControl)
|
|
1880
1893
|
// are not re-synced when filter() changes externally; see bindControl().
|
|
1881
1894
|
class FilterIntComponent extends BaseComponent {
|
|
1882
|
-
valueOptions = signal(undefined,
|
|
1883
|
-
|
|
1884
|
-
|
|
1895
|
+
valueOptions = signal(undefined, /* @ts-ignore */
|
|
1896
|
+
...(ngDevMode ? [{ debugName: "valueOptions" }] : /* istanbul ignore next */ []));
|
|
1897
|
+
valueFieldOptions = signal(undefined, /* @ts-ignore */
|
|
1898
|
+
...(ngDevMode ? [{ debugName: "valueFieldOptions" }] : /* istanbul ignore next */ []));
|
|
1899
|
+
advanced = signal(false, /* @ts-ignore */
|
|
1900
|
+
...(ngDevMode ? [{ debugName: "advanced" }] : /* istanbul ignore next */ []));
|
|
1885
1901
|
minControl;
|
|
1886
1902
|
maxControl;
|
|
1887
1903
|
get allowAdvanced() {
|
|
@@ -1900,8 +1916,8 @@ class FilterIntComponent extends BaseComponent {
|
|
|
1900
1916
|
if (this.advanced())
|
|
1901
1917
|
this.value = null;
|
|
1902
1918
|
}
|
|
1903
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1904
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1919
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterIntComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1920
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterIntComponent, isStandalone: true, selector: "smart-crud-filter-int", host: { classAttribute: "smart:block smart:w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
1905
1921
|
@if (valueOptions()) {
|
|
1906
1922
|
<div class="smart:flex smart:w-full smart:items-end smart:gap-2">
|
|
1907
1923
|
@if (!advanced()) {
|
|
@@ -1990,9 +2006,9 @@ class FilterIntComponent extends BaseComponent {
|
|
|
1990
2006
|
</div>
|
|
1991
2007
|
}
|
|
1992
2008
|
}
|
|
1993
|
-
`, isInline: true, dependencies: [{ kind: "component", type: InputIntComponent, selector: "smart-input-int" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2009
|
+
`, isInline: true, dependencies: [{ kind: "component", type: InputIntComponent, selector: "smart-input-int" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NumberValueAccessor, selector: "input[type=number]:not([ngNoCva])[formControlName],input[type=number]:not([ngNoCva])[formControl],input[type=number]:not([ngNoCva])[ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1994
2010
|
}
|
|
1995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterIntComponent, decorators: [{
|
|
1996
2012
|
type: Component,
|
|
1997
2013
|
args: [{
|
|
1998
2014
|
selector: 'smart-crud-filter-int',
|
|
@@ -2093,15 +2109,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2093
2109
|
}] });
|
|
2094
2110
|
|
|
2095
2111
|
class FilterRadioComponent extends BaseComponent {
|
|
2096
|
-
inputOptions = signal(undefined,
|
|
2097
|
-
|
|
2112
|
+
inputOptions = signal(undefined, /* @ts-ignore */
|
|
2113
|
+
...(ngDevMode ? [{ debugName: "inputOptions" }] : /* istanbul ignore next */ []));
|
|
2114
|
+
fieldOptions = signal(undefined, /* @ts-ignore */
|
|
2115
|
+
...(ngDevMode ? [{ debugName: "fieldOptions" }] : /* istanbul ignore next */ []));
|
|
2098
2116
|
ngOnInit() {
|
|
2099
2117
|
super.ngOnInit();
|
|
2100
2118
|
const control = this.bindControl(null);
|
|
2101
2119
|
this.inputOptions.set(this.buildInputOptions(control, true));
|
|
2102
2120
|
}
|
|
2103
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2104
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2122
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterRadioComponent, isStandalone: true, selector: "smart-crud-filter-radio", host: { classAttribute: "smart:mb-5 smart:block smart:w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
2105
2123
|
@if (inputOptions()) {
|
|
2106
2124
|
<div class="smart:flex smart:w-full smart:items-start smart:gap-2">
|
|
2107
2125
|
<smart-input-radio
|
|
@@ -2123,7 +2141,7 @@ class FilterRadioComponent extends BaseComponent {
|
|
|
2123
2141
|
}
|
|
2124
2142
|
`, isInline: true, dependencies: [{ kind: "component", type: InputRadioComponent, selector: "smart-input-radio" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2125
2143
|
}
|
|
2126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterRadioComponent, decorators: [{
|
|
2127
2145
|
type: Component,
|
|
2128
2146
|
args: [{
|
|
2129
2147
|
selector: 'smart-crud-filter-radio',
|
|
@@ -2155,15 +2173,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2155
2173
|
}] });
|
|
2156
2174
|
|
|
2157
2175
|
class FilterTextComponent extends BaseComponent {
|
|
2158
|
-
inputOptions = signal(undefined,
|
|
2159
|
-
|
|
2176
|
+
inputOptions = signal(undefined, /* @ts-ignore */
|
|
2177
|
+
...(ngDevMode ? [{ debugName: "inputOptions" }] : /* istanbul ignore next */ []));
|
|
2178
|
+
fieldOptions = signal(undefined, /* @ts-ignore */
|
|
2179
|
+
...(ngDevMode ? [{ debugName: "fieldOptions" }] : /* istanbul ignore next */ []));
|
|
2160
2180
|
ngOnInit() {
|
|
2161
2181
|
super.ngOnInit();
|
|
2162
2182
|
const control = this.bindValueControl();
|
|
2163
2183
|
this.inputOptions.set(this.buildInputOptions(control));
|
|
2164
2184
|
}
|
|
2165
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2166
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2185
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2186
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterTextComponent, isStandalone: true, selector: "smart-crud-filter-text", host: { classAttribute: "smart:block smart:w-full" }, usesInheritance: true, ngImport: i0, template: `
|
|
2167
2187
|
@if (inputOptions()) {
|
|
2168
2188
|
<div class="smart:flex smart:w-full smart:items-end smart:gap-2">
|
|
2169
2189
|
<smart-input-text
|
|
@@ -2185,7 +2205,7 @@ class FilterTextComponent extends BaseComponent {
|
|
|
2185
2205
|
}
|
|
2186
2206
|
`, isInline: true, dependencies: [{ kind: "component", type: InputTextComponent, selector: "smart-input-text" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2187
2207
|
}
|
|
2188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterTextComponent, decorators: [{
|
|
2189
2209
|
type: Component,
|
|
2190
2210
|
args: [{
|
|
2191
2211
|
selector: 'smart-crud-filter-text',
|
|
@@ -2218,14 +2238,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2218
2238
|
|
|
2219
2239
|
class FilterComponent {
|
|
2220
2240
|
FieldType = FieldType;
|
|
2221
|
-
item = input(
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2241
|
+
item = input(/* @ts-ignore */
|
|
2242
|
+
...(ngDevMode ? [undefined, { debugName: "item" }] : /* istanbul ignore next */ []));
|
|
2243
|
+
filter = input(/* @ts-ignore */
|
|
2244
|
+
...(ngDevMode ? [undefined, { debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
2245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2246
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FilterComponent, isStandalone: true, selector: "smart-crud-filter", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"smart:py-1\">\n @switch ($safeNavigationMigration(item()?.fieldType)) {\n @case (FieldType.date) {\n <smart-crud-filter-date\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date>\n }\n @case (FieldType.dateWithEdit) {\n <smart-crud-filter-date-with-edit\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date-with-edit>\n }\n @case (FieldType.dateTime) {\n <smart-crud-filter-date-time\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date-time>\n }\n @case (FieldType.radio) {\n <smart-crud-filter-radio\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-radio>\n }\n @case (FieldType.check) {\n <smart-crud-filter-check\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-check>\n }\n @case (FieldType.flag) {\n <smart-crud-filter-flag\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-flag>\n }\n @case (FieldType.int) {\n <smart-crud-filter-int\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-int>\n }\n @default {\n <smart-crud-filter-text\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-text>\n }\n }\n</div>\n", dependencies: [{ kind: "component", type: FilterTextComponent, selector: "smart-crud-filter-text" }, { kind: "component", type: FilterIntComponent, selector: "smart-crud-filter-int" }, { kind: "component", type: FilterFlagComponent, selector: "smart-crud-filter-flag" }, { kind: "component", type: FilterCheckComponent, selector: "smart-crud-filter-check" }, { kind: "component", type: FilterRadioComponent, selector: "smart-crud-filter-radio" }, { kind: "component", type: FilterDateTimeComponent, selector: "smart-crud-filter-date-time" }, { kind: "component", type: FilterDateWithEditComponent, selector: "smart-crud-filter-date-with-edit" }, { kind: "component", type: FilterDateComponent, selector: "smart-crud-filter-date" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
2225
2247
|
}
|
|
2226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FilterComponent, decorators: [{
|
|
2227
2249
|
type: Component,
|
|
2228
|
-
args: [{ selector: 'smart-crud-filter', imports: [
|
|
2250
|
+
args: [{ selector: 'smart-crud-filter', changeDetection: ChangeDetectionStrategy.Eager, imports: [
|
|
2229
2251
|
FilterTextComponent,
|
|
2230
2252
|
FilterIntComponent,
|
|
2231
2253
|
FilterFlagComponent,
|
|
@@ -2234,7 +2256,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2234
2256
|
FilterDateTimeComponent,
|
|
2235
2257
|
FilterDateWithEditComponent,
|
|
2236
2258
|
FilterDateComponent,
|
|
2237
|
-
], template: "<div class=\"smart:py-1\">\n @switch (item()?.fieldType) {\n @case (FieldType.date) {\n <smart-crud-filter-date\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date>\n }\n @case (FieldType.dateWithEdit) {\n <smart-crud-filter-date-with-edit\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date-with-edit>\n }\n @case (FieldType.dateTime) {\n <smart-crud-filter-date-time\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date-time>\n }\n @case (FieldType.radio) {\n <smart-crud-filter-radio\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-radio>\n }\n @case (FieldType.check) {\n <smart-crud-filter-check\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-check>\n }\n @case (FieldType.flag) {\n <smart-crud-filter-flag\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-flag>\n }\n @case (FieldType.int) {\n <smart-crud-filter-int\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-int>\n }\n @default {\n <smart-crud-filter-text\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-text>\n }\n }\n</div>\n" }]
|
|
2259
|
+
], template: "<div class=\"smart:py-1\">\n @switch ($safeNavigationMigration(item()?.fieldType)) {\n @case (FieldType.date) {\n <smart-crud-filter-date\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date>\n }\n @case (FieldType.dateWithEdit) {\n <smart-crud-filter-date-with-edit\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date-with-edit>\n }\n @case (FieldType.dateTime) {\n <smart-crud-filter-date-time\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-date-time>\n }\n @case (FieldType.radio) {\n <smart-crud-filter-radio\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-radio>\n }\n @case (FieldType.check) {\n <smart-crud-filter-check\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-check>\n }\n @case (FieldType.flag) {\n <smart-crud-filter-flag\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-flag>\n }\n @case (FieldType.int) {\n <smart-crud-filter-int\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-int>\n }\n @default {\n <smart-crud-filter-text\n [item]=\"item()\"\n [filter]=\"filter()\"\n ></smart-crud-filter-text>\n }\n }\n</div>\n" }]
|
|
2238
2260
|
}], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }] } });
|
|
2239
2261
|
|
|
2240
2262
|
// Rendered by an OnPush concrete (FiltersComponent). The base exposes signals
|
|
@@ -2250,13 +2272,15 @@ class FiltersBaseComponent {
|
|
|
2250
2272
|
/**
|
|
2251
2273
|
* Hide menu used only from MenuService
|
|
2252
2274
|
*/
|
|
2253
|
-
hideMenu = input(false,
|
|
2275
|
+
hideMenu = input(false, /* @ts-ignore */
|
|
2276
|
+
...(ngDevMode ? [{ debugName: "hideMenu" }] : /* istanbul ignore next */ []));
|
|
2254
2277
|
async onClose() {
|
|
2255
2278
|
await this.menuService.closeEnd();
|
|
2256
2279
|
}
|
|
2257
2280
|
ngOnInit() {
|
|
2258
2281
|
this.styleService.init(this.elementRef);
|
|
2259
|
-
this.list = signal([],
|
|
2282
|
+
this.list = signal([], /* @ts-ignore */
|
|
2283
|
+
...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
|
|
2260
2284
|
const modelFilters = getModelOptions(this.config.type)?.filters;
|
|
2261
2285
|
this.list.set([
|
|
2262
2286
|
...(modelFilters
|
|
@@ -2281,10 +2305,10 @@ class FiltersBaseComponent {
|
|
|
2281
2305
|
]);
|
|
2282
2306
|
this.filter = this.facade.filter;
|
|
2283
2307
|
}
|
|
2284
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2285
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2308
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FiltersBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2309
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: FiltersBaseComponent, isStandalone: true, inputs: { hideMenu: { classPropertyName: "hideMenu", publicName: "hideMenu", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2286
2310
|
}
|
|
2287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FiltersBaseComponent, decorators: [{
|
|
2288
2312
|
type: Directive
|
|
2289
2313
|
}], propDecorators: { hideMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideMenu", required: false }] }] } });
|
|
2290
2314
|
|
|
@@ -2344,8 +2368,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2344
2368
|
body: string;
|
|
2345
2369
|
*/
|
|
2346
2370
|
class FiltersComponent extends FiltersBaseComponent {
|
|
2347
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2348
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FiltersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2372
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FiltersComponent, isStandalone: true, selector: "smart-crud-filters", usesInheritance: true, ngImport: i0, template: `
|
|
2349
2373
|
<div class="smart:flex smart:h-full smart:flex-col">
|
|
2350
2374
|
@if (!hideMenu()) {
|
|
2351
2375
|
<header
|
|
@@ -2377,7 +2401,7 @@ class FiltersComponent extends FiltersBaseComponent {
|
|
|
2377
2401
|
</div>
|
|
2378
2402
|
`, isInline: true, dependencies: [{ kind: "component", type: FilterComponent, selector: "smart-crud-filter", inputs: ["item", "filter"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2379
2403
|
}
|
|
2380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FiltersComponent, decorators: [{
|
|
2381
2405
|
type: Component,
|
|
2382
2406
|
args: [{
|
|
2383
2407
|
selector: 'smart-crud-filters',
|
|
@@ -2437,10 +2461,11 @@ class FiltersConfigComponent {
|
|
|
2437
2461
|
this.query = computed(() => {
|
|
2438
2462
|
const filter = this.facade.filter();
|
|
2439
2463
|
return filter?.query?.filter((i) => !i.hidden) || [];
|
|
2440
|
-
},
|
|
2464
|
+
}, /* @ts-ignore */
|
|
2465
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
2441
2466
|
}
|
|
2442
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2443
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2467
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FiltersConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2468
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FiltersConfigComponent, isStandalone: true, selector: "smart-crud-filters-config", ngImport: i0, template: `
|
|
2444
2469
|
@let query = this.query();
|
|
2445
2470
|
@if (query && query.length) {
|
|
2446
2471
|
<div class="smart:flex smart:flex-wrap smart:gap-2 smart:px-4 smart:py-2">
|
|
@@ -2464,7 +2489,7 @@ class FiltersConfigComponent {
|
|
|
2464
2489
|
}
|
|
2465
2490
|
`, isInline: true, dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2466
2491
|
}
|
|
2467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FiltersConfigComponent, decorators: [{
|
|
2468
2493
|
type: Component,
|
|
2469
2494
|
args: [{
|
|
2470
2495
|
selector: 'smart-crud-filters-config',
|
|
@@ -2535,7 +2560,8 @@ class MultiselectBaseComponent {
|
|
|
2535
2560
|
});
|
|
2536
2561
|
this.item = model;
|
|
2537
2562
|
return list;
|
|
2538
|
-
},
|
|
2563
|
+
}, /* @ts-ignore */
|
|
2564
|
+
...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
|
|
2539
2565
|
}
|
|
2540
2566
|
async onClose() {
|
|
2541
2567
|
await this.menuService.closeEnd();
|
|
@@ -2548,10 +2574,10 @@ class MultiselectBaseComponent {
|
|
|
2548
2574
|
onValidChange(valid) {
|
|
2549
2575
|
this.valid = valid;
|
|
2550
2576
|
}
|
|
2551
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2552
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2577
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MultiselectBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2578
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: MultiselectBaseComponent, isStandalone: true, ngImport: i0 });
|
|
2553
2579
|
}
|
|
2554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MultiselectBaseComponent, decorators: [{
|
|
2555
2581
|
type: Directive
|
|
2556
2582
|
}], ctorParameters: () => [] });
|
|
2557
2583
|
|
|
@@ -2591,10 +2617,10 @@ class FormOptionsPipe {
|
|
|
2591
2617
|
};
|
|
2592
2618
|
}
|
|
2593
2619
|
}
|
|
2594
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2595
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2620
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FormOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2621
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: FormOptionsPipe, isStandalone: true, name: "smartFormOptions" });
|
|
2596
2622
|
}
|
|
2597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FormOptionsPipe, decorators: [{
|
|
2598
2624
|
type: Pipe,
|
|
2599
2625
|
args: [{
|
|
2600
2626
|
name: 'smartFormOptions',
|
|
@@ -2602,11 +2628,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2602
2628
|
}] });
|
|
2603
2629
|
|
|
2604
2630
|
class CrudPipesModule {
|
|
2605
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2606
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2607
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2631
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2632
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: CrudPipesModule, imports: [FormOptionsPipe], exports: [FormOptionsPipe] });
|
|
2633
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudPipesModule });
|
|
2608
2634
|
}
|
|
2609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudPipesModule, decorators: [{
|
|
2610
2636
|
type: NgModule,
|
|
2611
2637
|
args: [{
|
|
2612
2638
|
exports: [FormOptionsPipe],
|
|
@@ -2615,10 +2641,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2615
2641
|
}] });
|
|
2616
2642
|
|
|
2617
2643
|
class MultiselectComponent extends MultiselectBaseComponent {
|
|
2618
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2619
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2644
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MultiselectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2645
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: MultiselectComponent, isStandalone: true, selector: "smart-crud-multiselect", usesInheritance: true, ngImport: i0, template: "@let list = this.list();\n@if (list) {\n <header\n class=\"smart:flex smart:items-center smart:justify-between smart:border-b smart:border-gray-200 smart:px-4 smart:py-3\"\n >\n <h2 class=\"smart:text-lg smart:font-semibold smart:text-gray-900\">\n {{ 'selected' | translate }}: {{ list.length }}\n </h2>\n <button\n type=\"button\"\n (click)=\"onClose()\"\n aria-label=\"close\"\n class=\"smart:rounded smart:p-1 smart:text-gray-500 smart:hover:bg-gray-100\"\n >\n \u2715\n </button>\n </header>\n\n @if (config?.list?.components?.multi) {\n <div>\n <ng-template\n [ngComponentOutlet]=\"\n $safeNavigationMigration(config?.list?.components?.multi)\n \"\n [ndcDynamicInputs]=\"{ items: list }\"\n ></ng-template>\n </div>\n }\n\n @if (showForm && item) {\n <div>\n <smart-form\n [options]=\"item | smartFormOptions: 'multiUpdate' : config.type\"\n (valuePartialChange)=\"onPartialChange($event, list)\"\n (validChange)=\"onValidChange($event)\"\n ></smart-form>\n\n <smart-button\n class=\"smart:float-right\"\n [disabled]=\"lock || !valid\"\n [options]=\"buttonOptions\"\n >\n {{ 'change' | translate }}\n </smart-button>\n </div>\n }\n}\n", dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: DynamicIoDirective, selector: "[ndcDynamicInputs],[ndcDynamicOutputs]", inputs: ["ndcDynamicInputs", "ndcDynamicOutputs"], exportAs: ["ndcDynamicIo"] }, { kind: "component", type: FormComponent, selector: "smart-form", inputs: ["options", "class"], outputs: ["invokeSubmit", "valueChange", "valuePartialChange", "validChange"] }, { kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: FormOptionsPipe, name: "smartFormOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2620
2646
|
}
|
|
2621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MultiselectComponent, decorators: [{
|
|
2622
2648
|
type: Component,
|
|
2623
2649
|
args: [{ selector: 'smart-crud-multiselect', imports: [
|
|
2624
2650
|
TranslatePipe,
|
|
@@ -2627,7 +2653,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2627
2653
|
FormOptionsPipe,
|
|
2628
2654
|
FormComponent,
|
|
2629
2655
|
ButtonComponent,
|
|
2630
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let list = this.list();\n@if (list) {\n <header\n class=\"smart:flex smart:items-center smart:justify-between smart:border-b smart:border-gray-200 smart:px-4 smart:py-3\"\n >\n <h2 class=\"smart:text-lg smart:font-semibold smart:text-gray-900\">\n {{ 'selected' | translate }}: {{ list.length }}\n </h2>\n <button\n type=\"button\"\n (click)=\"onClose()\"\n aria-label=\"close\"\n class=\"smart:rounded smart:p-1 smart:text-gray-500 smart:hover:bg-gray-100\"\n >\n \u2715\n </button>\n </header>\n\n @if (config?.list?.components?.multi) {\n <div>\n <ng-template\n [ngComponentOutlet]=\"config?.list?.components?.multi\"\n [ndcDynamicInputs]=\"{ items: list }\"\n ></ng-template>\n </div>\n }\n\n @if (showForm && item) {\n <div>\n <smart-form\n [options]=\"item | smartFormOptions: 'multiUpdate' : config.type\"\n (valuePartialChange)=\"onPartialChange($event, list)\"\n (validChange)=\"onValidChange($event)\"\n ></smart-form>\n\n <smart-button\n class=\"smart:float-right\"\n [disabled]=\"lock || !valid\"\n [options]=\"buttonOptions\"\n >\n {{ 'change' | translate }}\n </smart-button>\n </div>\n }\n}\n" }]
|
|
2656
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let list = this.list();\n@if (list) {\n <header\n class=\"smart:flex smart:items-center smart:justify-between smart:border-b smart:border-gray-200 smart:px-4 smart:py-3\"\n >\n <h2 class=\"smart:text-lg smart:font-semibold smart:text-gray-900\">\n {{ 'selected' | translate }}: {{ list.length }}\n </h2>\n <button\n type=\"button\"\n (click)=\"onClose()\"\n aria-label=\"close\"\n class=\"smart:rounded smart:p-1 smart:text-gray-500 smart:hover:bg-gray-100\"\n >\n \u2715\n </button>\n </header>\n\n @if (config?.list?.components?.multi) {\n <div>\n <ng-template\n [ngComponentOutlet]=\"\n $safeNavigationMigration(config?.list?.components?.multi)\n \"\n [ndcDynamicInputs]=\"{ items: list }\"\n ></ng-template>\n </div>\n }\n\n @if (showForm && item) {\n <div>\n <smart-form\n [options]=\"item | smartFormOptions: 'multiUpdate' : config.type\"\n (valuePartialChange)=\"onPartialChange($event, list)\"\n (validChange)=\"onValidChange($event)\"\n ></smart-form>\n\n <smart-button\n class=\"smart:float-right\"\n [disabled]=\"lock || !valid\"\n [options]=\"buttonOptions\"\n >\n {{ 'change' | translate }}\n </smart-button>\n </div>\n }\n}\n" }]
|
|
2631
2657
|
}] });
|
|
2632
2658
|
|
|
2633
2659
|
class CrudListGroupService {
|
|
@@ -2673,8 +2699,8 @@ class CrudListGroupService {
|
|
|
2673
2699
|
query: newQuery,
|
|
2674
2700
|
});
|
|
2675
2701
|
}
|
|
2676
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2677
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2702
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudListGroupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2703
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudListGroupService });
|
|
2678
2704
|
}
|
|
2679
2705
|
__decorate([
|
|
2680
2706
|
debounce(250),
|
|
@@ -2682,7 +2708,7 @@ __decorate([
|
|
|
2682
2708
|
__metadata("design:paramtypes", []),
|
|
2683
2709
|
__metadata("design:returntype", void 0)
|
|
2684
2710
|
], CrudListGroupService.prototype, "refresh", null);
|
|
2685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudListGroupService, decorators: [{
|
|
2686
2712
|
type: Injectable
|
|
2687
2713
|
}], propDecorators: { refresh: [] } });
|
|
2688
2714
|
|
|
@@ -2691,8 +2717,10 @@ class GroupBaseComponent extends BaseComponent$1 {
|
|
|
2691
2717
|
elementRef = inject(ElementRef);
|
|
2692
2718
|
groupService = inject((CrudListGroupService));
|
|
2693
2719
|
cd = inject(ChangeDetectorRef);
|
|
2694
|
-
groups = input(null,
|
|
2695
|
-
|
|
2720
|
+
groups = input(null, /* @ts-ignore */
|
|
2721
|
+
...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
|
|
2722
|
+
listOptions = input(null, /* @ts-ignore */
|
|
2723
|
+
...(ngDevMode ? [{ debugName: "listOptions" }] : /* istanbul ignore next */ []));
|
|
2696
2724
|
change(val, item, force = false) {
|
|
2697
2725
|
const groups = this.groups();
|
|
2698
2726
|
if (groups) {
|
|
@@ -2724,16 +2752,16 @@ class GroupBaseComponent extends BaseComponent$1 {
|
|
|
2724
2752
|
}
|
|
2725
2753
|
super.ngOnDestroy();
|
|
2726
2754
|
}
|
|
2727
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2728
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2755
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: GroupBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2756
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: GroupBaseComponent, isStandalone: true, inputs: { groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, listOptions: { classPropertyName: "listOptions", publicName: "listOptions", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2729
2757
|
}
|
|
2730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: GroupBaseComponent, decorators: [{
|
|
2731
2759
|
type: Directive
|
|
2732
2760
|
}], propDecorators: { groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: false }] }], listOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "listOptions", required: false }] }] } });
|
|
2733
2761
|
|
|
2734
2762
|
class GroupComponent extends GroupBaseComponent {
|
|
2735
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2736
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2763
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: GroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2764
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: GroupComponent, isStandalone: true, selector: "smart-crud-group", usesInheritance: true, ngImport: i0, template: `
|
|
2737
2765
|
@for (item of groups(); track item.key) {
|
|
2738
2766
|
<div class="smart:border-b smart:border-gray-200">
|
|
2739
2767
|
<button
|
|
@@ -2768,7 +2796,7 @@ class GroupComponent extends GroupBaseComponent {
|
|
|
2768
2796
|
}
|
|
2769
2797
|
`, isInline: true, dependencies: [{ kind: "component", type: GroupComponent, selector: "smart-crud-group" }, { kind: "component", type: ListComponent$1, selector: "smart-list", inputs: ["options", "class"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2770
2798
|
}
|
|
2771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: GroupComponent, decorators: [{
|
|
2772
2800
|
type: Component,
|
|
2773
2801
|
args: [{
|
|
2774
2802
|
selector: 'smart-crud-group',
|
|
@@ -2869,10 +2897,10 @@ class CrudListPaginationFactory {
|
|
|
2869
2897
|
}),
|
|
2870
2898
|
};
|
|
2871
2899
|
}
|
|
2872
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2873
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2900
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudListPaginationFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2901
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudListPaginationFactory });
|
|
2874
2902
|
}
|
|
2875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudListPaginationFactory, decorators: [{
|
|
2876
2904
|
type: Injectable
|
|
2877
2905
|
}] });
|
|
2878
2906
|
|
|
@@ -2889,10 +2917,10 @@ class CrudModelLabelProvider extends IModelLabelProvider {
|
|
|
2889
2917
|
return this.parent.get(options);
|
|
2890
2918
|
return signal(this.translateService.instant('MODEL.' + options.key));
|
|
2891
2919
|
}
|
|
2892
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2893
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2920
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudModelLabelProvider, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
2921
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudModelLabelProvider });
|
|
2894
2922
|
}
|
|
2895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudModelLabelProvider, decorators: [{
|
|
2896
2924
|
type: Injectable
|
|
2897
2925
|
}] });
|
|
2898
2926
|
|
|
@@ -2913,8 +2941,8 @@ const COMPONENTS = [
|
|
|
2913
2941
|
GroupComponent,
|
|
2914
2942
|
];
|
|
2915
2943
|
class CrudComponentsModule {
|
|
2916
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2917
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2944
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2945
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: CrudComponentsModule, imports: [ExportComponent,
|
|
2918
2946
|
FilterComponent,
|
|
2919
2947
|
FilterTextComponent,
|
|
2920
2948
|
FiltersConfigComponent,
|
|
@@ -2945,7 +2973,7 @@ class CrudComponentsModule {
|
|
|
2945
2973
|
FilterIntComponent,
|
|
2946
2974
|
MultiselectComponent,
|
|
2947
2975
|
GroupComponent] });
|
|
2948
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2976
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudComponentsModule, providers: [
|
|
2949
2977
|
CrudService,
|
|
2950
2978
|
CrudFacade,
|
|
2951
2979
|
SocketService,
|
|
@@ -2968,7 +2996,7 @@ class CrudComponentsModule {
|
|
|
2968
2996
|
CommonModule,
|
|
2969
2997
|
DynamicIoModule, CrudPipesModule] });
|
|
2970
2998
|
}
|
|
2971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudComponentsModule, decorators: [{
|
|
2972
3000
|
type: NgModule,
|
|
2973
3001
|
args: [{
|
|
2974
3002
|
imports: [
|
|
@@ -2995,11 +3023,16 @@ class CrudItemPageBaseComponent extends BaseComponent$1 {
|
|
|
2995
3023
|
facade = inject((CrudFacade));
|
|
2996
3024
|
static smartType = 'crud-item-page';
|
|
2997
3025
|
selected;
|
|
2998
|
-
contentTpl = viewChild('contentTpl',
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3026
|
+
contentTpl = viewChild('contentTpl', /* @ts-ignore */
|
|
3027
|
+
...(ngDevMode ? [{ debugName: "contentTpl" }] : /* istanbul ignore next */ []));
|
|
3028
|
+
formComponents = viewChildren(FormComponent, /* @ts-ignore */
|
|
3029
|
+
...(ngDevMode ? [{ debugName: "formComponents" }] : /* istanbul ignore next */ []));
|
|
3030
|
+
detailsOptions = input(/* @ts-ignore */
|
|
3031
|
+
...(ngDevMode ? [undefined, { debugName: "detailsOptions" }] : /* istanbul ignore next */ []));
|
|
3032
|
+
mode = input(/* @ts-ignore */
|
|
3033
|
+
...(ngDevMode ? [undefined, { debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
3034
|
+
uniqueProvider = input(/* @ts-ignore */
|
|
3035
|
+
...(ngDevMode ? [undefined, { debugName: "uniqueProvider" }] : /* istanbul ignore next */ []));
|
|
3003
3036
|
onPartialChange = output();
|
|
3004
3037
|
onChange = output();
|
|
3005
3038
|
onValidChange = output();
|
|
@@ -3007,16 +3040,16 @@ class CrudItemPageBaseComponent extends BaseComponent$1 {
|
|
|
3007
3040
|
super();
|
|
3008
3041
|
this.selected = this.facade.selected;
|
|
3009
3042
|
}
|
|
3010
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3011
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
3043
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudItemPageBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3044
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.1.3", type: CrudItemPageBaseComponent, isStandalone: true, inputs: { detailsOptions: { classPropertyName: "detailsOptions", publicName: "detailsOptions", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, uniqueProvider: { classPropertyName: "uniqueProvider", publicName: "uniqueProvider", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPartialChange: "onPartialChange", onChange: "onChange", onValidChange: "onValidChange" }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "formComponents", predicate: FormComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
|
|
3012
3045
|
}
|
|
3013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudItemPageBaseComponent, decorators: [{
|
|
3014
3047
|
type: Directive
|
|
3015
3048
|
}], ctorParameters: () => [], propDecorators: { contentTpl: [{ type: i0.ViewChild, args: ['contentTpl', { isSignal: true }] }], formComponents: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => FormComponent), { isSignal: true }] }], detailsOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "detailsOptions", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], uniqueProvider: [{ type: i0.Input, args: [{ isSignal: true, alias: "uniqueProvider", required: false }] }], onPartialChange: [{ type: i0.Output, args: ["onPartialChange"] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onValidChange: [{ type: i0.Output, args: ["onValidChange"] }] } });
|
|
3016
3049
|
|
|
3017
3050
|
class ItemStandardComponent extends CrudItemPageBaseComponent {
|
|
3018
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3019
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3051
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ItemStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3052
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ItemStandardComponent, isStandalone: true, selector: "smart-crud-item-standard-page", usesInheritance: true, ngImport: i0, template: `
|
|
3020
3053
|
@if (mode() === 'details') {
|
|
3021
3054
|
@if (detailsOptions()) {
|
|
3022
3055
|
<smart-details [options]="detailsOptions()"></smart-details>
|
|
@@ -3031,7 +3064,7 @@ class ItemStandardComponent extends CrudItemPageBaseComponent {
|
|
|
3031
3064
|
selected()
|
|
3032
3065
|
| smartFormOptions
|
|
3033
3066
|
: mode()
|
|
3034
|
-
: config?.type
|
|
3067
|
+
: $safeNavigationMigration(config?.type)
|
|
3035
3068
|
: uniqueProvider()
|
|
3036
3069
|
: config.inputComponents
|
|
3037
3070
|
"
|
|
@@ -3042,9 +3075,9 @@ class ItemStandardComponent extends CrudItemPageBaseComponent {
|
|
|
3042
3075
|
</ng-template>
|
|
3043
3076
|
|
|
3044
3077
|
<br /><br />
|
|
3045
|
-
`, isInline: true, styles: [""], dependencies: [{ kind: "component", type: DetailsComponent, selector: "smart-details", inputs: ["options", "class"] }, { kind: "component", type: FormComponent, selector: "smart-form", inputs: ["options", "class"], outputs: ["invokeSubmit", "valueChange", "valuePartialChange", "validChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: FormOptionsPipe, name: "smartFormOptions" }] });
|
|
3078
|
+
`, isInline: true, styles: [""], dependencies: [{ kind: "component", type: DetailsComponent, selector: "smart-details", inputs: ["options", "class"] }, { kind: "component", type: FormComponent, selector: "smart-form", inputs: ["options", "class"], outputs: ["invokeSubmit", "valueChange", "valuePartialChange", "validChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: FormOptionsPipe, name: "smartFormOptions" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
3046
3079
|
}
|
|
3047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ItemStandardComponent, decorators: [{
|
|
3048
3081
|
type: Component,
|
|
3049
3082
|
args: [{ selector: 'smart-crud-item-standard-page', template: `
|
|
3050
3083
|
@if (mode() === 'details') {
|
|
@@ -3061,7 +3094,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
3061
3094
|
selected()
|
|
3062
3095
|
| smartFormOptions
|
|
3063
3096
|
: mode()
|
|
3064
|
-
: config?.type
|
|
3097
|
+
: $safeNavigationMigration(config?.type)
|
|
3065
3098
|
: uniqueProvider()
|
|
3066
3099
|
: config.inputComponents
|
|
3067
3100
|
"
|
|
@@ -3072,7 +3105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
3072
3105
|
</ng-template>
|
|
3073
3106
|
|
|
3074
3107
|
<br /><br />
|
|
3075
|
-
`, imports: [
|
|
3108
|
+
`, changeDetection: ChangeDetectionStrategy.Eager, imports: [
|
|
3076
3109
|
DetailsComponent,
|
|
3077
3110
|
FormComponent,
|
|
3078
3111
|
FormOptionsPipe,
|
|
@@ -3106,10 +3139,10 @@ class PageService {
|
|
|
3106
3139
|
val.remove = false;
|
|
3107
3140
|
}
|
|
3108
3141
|
}
|
|
3109
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3110
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3143
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PageService });
|
|
3111
3144
|
}
|
|
3112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PageService, decorators: [{
|
|
3113
3146
|
type: Injectable
|
|
3114
3147
|
}] });
|
|
3115
3148
|
|
|
@@ -3134,7 +3167,8 @@ class ItemComponent extends CreateDynamicComponent('crud-item-page') {
|
|
|
3134
3167
|
variant: this.config.variant,
|
|
3135
3168
|
showBackButton: true,
|
|
3136
3169
|
hideMenuButton: true,
|
|
3137
|
-
},
|
|
3170
|
+
}, /* @ts-ignore */
|
|
3171
|
+
...(ngDevMode ? [{ debugName: "pageOptions" }] : /* istanbul ignore next */ []));
|
|
3138
3172
|
detailsOptions;
|
|
3139
3173
|
id;
|
|
3140
3174
|
formValue;
|
|
@@ -3143,18 +3177,24 @@ class ItemComponent extends CreateDynamicComponent('crud-item-page') {
|
|
|
3143
3177
|
formPartialValue;
|
|
3144
3178
|
uniqueProvider;
|
|
3145
3179
|
set mode(val) {
|
|
3146
|
-
this._mode = signal(val,
|
|
3180
|
+
this._mode = signal(val, /* @ts-ignore */
|
|
3181
|
+
...(ngDevMode ? [{ debugName: "_mode" }] : /* istanbul ignore next */ []));
|
|
3147
3182
|
this.refreshDynamicInstance();
|
|
3148
3183
|
}
|
|
3149
3184
|
get mode() {
|
|
3150
3185
|
return this._mode();
|
|
3151
3186
|
}
|
|
3152
3187
|
selected;
|
|
3153
|
-
standardComponents = viewChildren(ItemStandardComponent,
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3188
|
+
standardComponents = viewChildren(ItemStandardComponent, /* @ts-ignore */
|
|
3189
|
+
...(ngDevMode ? [{ debugName: "standardComponents" }] : /* istanbul ignore next */ []));
|
|
3190
|
+
contentTpl = viewChild('contentTpl', /* @ts-ignore */
|
|
3191
|
+
...(ngDevMode ? [{ debugName: "contentTpl" }] : /* istanbul ignore next */ []));
|
|
3192
|
+
topTpl = viewChild('topTpl', /* @ts-ignore */
|
|
3193
|
+
...(ngDevMode ? [{ debugName: "topTpl" }] : /* istanbul ignore next */ []));
|
|
3194
|
+
bottomTpl = viewChild('bottomTpl', /* @ts-ignore */
|
|
3195
|
+
...(ngDevMode ? [{ debugName: "bottomTpl" }] : /* istanbul ignore next */ []));
|
|
3196
|
+
dynamicContents = viewChildren(DynamicContentDirective, /* @ts-ignore */
|
|
3197
|
+
...(ngDevMode ? [{ debugName: "dynamicContents" }] : /* istanbul ignore next */ []));
|
|
3158
3198
|
subscription = new Subscription();
|
|
3159
3199
|
constructor() {
|
|
3160
3200
|
super();
|
|
@@ -3444,8 +3484,8 @@ class ItemComponent extends CreateDynamicComponent('crud-item-page') {
|
|
|
3444
3484
|
});
|
|
3445
3485
|
}
|
|
3446
3486
|
}
|
|
3447
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3448
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3487
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3488
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ItemComponent, isStandalone: true, selector: "smart-crud-item-page", viewQueries: [{ propertyName: "standardComponents", predicate: ItemStandardComponent, descendants: true, isSignal: true }, { propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, isSignal: true }, { propertyName: "bottomTpl", first: true, predicate: ["bottomTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3449
3489
|
<smart-page [options]="pageOptions()" [class]="config.cssClass || ''">
|
|
3450
3490
|
<div #topTpl class="text-xl py-2.5 separator"></div>
|
|
3451
3491
|
@if (template() === 'default') {
|
|
@@ -3466,13 +3506,14 @@ class ItemComponent extends CreateDynamicComponent('crud-item-page') {
|
|
|
3466
3506
|
<div class="dynamic-content"></div>
|
|
3467
3507
|
<div #bottomTpl class="text-xl py-2.5 separator"></div>
|
|
3468
3508
|
</smart-page>
|
|
3469
|
-
`, isInline: true, dependencies: [{ kind: "component", type: PageComponent, selector: "smart-page", inputs: ["options", "class"] }, { kind: "component", type: ItemStandardComponent, selector: "smart-crud-item-standard-page" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
3509
|
+
`, isInline: true, dependencies: [{ kind: "component", type: PageComponent, selector: "smart-page", inputs: ["options", "class"] }, { kind: "component", type: ItemStandardComponent, selector: "smart-crud-item-standard-page" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
3470
3510
|
}
|
|
3471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ItemComponent, decorators: [{
|
|
3472
3512
|
type: Component,
|
|
3473
3513
|
args: [{
|
|
3474
3514
|
selector: 'smart-crud-item-page',
|
|
3475
3515
|
imports: [PageComponent, ItemStandardComponent, NgTemplateOutlet],
|
|
3516
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
3476
3517
|
template: `
|
|
3477
3518
|
<smart-page [options]="pageOptions()" [class]="config.cssClass || ''">
|
|
3478
3519
|
<div #topTpl class="text-xl py-2.5 separator"></div>
|
|
@@ -3501,23 +3542,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
3501
3542
|
class CrudListPageBaseComponent extends BaseComponent$1 {
|
|
3502
3543
|
config = inject((CrudFullConfig));
|
|
3503
3544
|
static smartType = 'crud-list-page';
|
|
3504
|
-
contentTpl = viewChild('contentTpl',
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3545
|
+
contentTpl = viewChild('contentTpl', /* @ts-ignore */
|
|
3546
|
+
...(ngDevMode ? [{ debugName: "contentTpl" }] : /* istanbul ignore next */ []));
|
|
3547
|
+
listOptions = input(/* @ts-ignore */
|
|
3548
|
+
...(ngDevMode ? [undefined, { debugName: "listOptions" }] : /* istanbul ignore next */ []));
|
|
3549
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudListPageBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3550
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.1.3", type: CrudListPageBaseComponent, isStandalone: true, inputs: { listOptions: { classPropertyName: "listOptions", publicName: "listOptions", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
|
|
3508
3551
|
}
|
|
3509
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudListPageBaseComponent, decorators: [{
|
|
3510
3553
|
type: Directive
|
|
3511
3554
|
}], propDecorators: { contentTpl: [{ type: i0.ViewChild, args: ['contentTpl', { isSignal: true }] }], listOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "listOptions", required: false }] }] } });
|
|
3512
3555
|
|
|
3513
3556
|
class ListStandardComponent extends CrudListPageBaseComponent {
|
|
3514
3557
|
facade = inject((CrudFacade));
|
|
3515
3558
|
config = inject((CrudFullConfig));
|
|
3516
|
-
isSearch = computed(() => !!this.facade.filter()?.searchText,
|
|
3517
|
-
|
|
3518
|
-
static
|
|
3559
|
+
isSearch = computed(() => !!this.facade.filter()?.searchText, /* @ts-ignore */
|
|
3560
|
+
...(ngDevMode ? [{ debugName: "isSearch" }] : /* istanbul ignore next */ []));
|
|
3561
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3562
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListStandardComponent, isStandalone: true, selector: "smart-crud-list-standard-page", providers: [CrudListGroupService], usesInheritance: true, ngImport: i0, template: `
|
|
3519
3563
|
<smart-crud-filters-config></smart-crud-filters-config>
|
|
3520
|
-
@let groups = config.list?.groups;
|
|
3564
|
+
@let groups = $safeNavigationMigration(config.list?.groups);
|
|
3521
3565
|
@if (listOptions()) {
|
|
3522
3566
|
<smart-list
|
|
3523
3567
|
[hidden]="groups && !isSearch()"
|
|
@@ -3530,15 +3574,15 @@ class ListStandardComponent extends CrudListPageBaseComponent {
|
|
|
3530
3574
|
[listOptions]="listOptions() || null"
|
|
3531
3575
|
></smart-crud-group>
|
|
3532
3576
|
}
|
|
3533
|
-
`, isInline: true, dependencies: [{ kind: "component", type: FiltersConfigComponent, selector: "smart-crud-filters-config" }, { kind: "component", type: ListComponent$1, selector: "smart-list", inputs: ["options", "class"] }, { kind: "component", type: GroupComponent, selector: "smart-crud-group" }] });
|
|
3577
|
+
`, isInline: true, dependencies: [{ kind: "component", type: FiltersConfigComponent, selector: "smart-crud-filters-config" }, { kind: "component", type: ListComponent$1, selector: "smart-list", inputs: ["options", "class"] }, { kind: "component", type: GroupComponent, selector: "smart-crud-group" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
3534
3578
|
}
|
|
3535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListStandardComponent, decorators: [{
|
|
3536
3580
|
type: Component,
|
|
3537
3581
|
args: [{
|
|
3538
3582
|
selector: 'smart-crud-list-standard-page',
|
|
3539
3583
|
template: `
|
|
3540
3584
|
<smart-crud-filters-config></smart-crud-filters-config>
|
|
3541
|
-
@let groups = config.list?.groups;
|
|
3585
|
+
@let groups = $safeNavigationMigration(config.list?.groups);
|
|
3542
3586
|
@if (listOptions()) {
|
|
3543
3587
|
<smart-list
|
|
3544
3588
|
[hidden]="groups && !isSearch()"
|
|
@@ -3553,6 +3597,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
3553
3597
|
}
|
|
3554
3598
|
`,
|
|
3555
3599
|
imports: [FiltersConfigComponent, ListComponent$1, GroupComponent],
|
|
3600
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
3556
3601
|
providers: [CrudListGroupService],
|
|
3557
3602
|
}]
|
|
3558
3603
|
}] });
|
|
@@ -3583,10 +3628,10 @@ class CrudSearchService {
|
|
|
3583
3628
|
setEnabled(val) {
|
|
3584
3629
|
this._enabledSource.next(val);
|
|
3585
3630
|
}
|
|
3586
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3587
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3631
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudSearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3632
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudSearchService, providedIn: 'root' });
|
|
3588
3633
|
}
|
|
3589
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudSearchService, decorators: [{
|
|
3590
3635
|
type: Injectable,
|
|
3591
3636
|
args: [{
|
|
3592
3637
|
providedIn: 'root',
|
|
@@ -3606,13 +3651,18 @@ class ListComponent extends CreateDynamicComponent('crud-list-page') {
|
|
|
3606
3651
|
config = inject((CrudFullConfig));
|
|
3607
3652
|
searchService = inject(CrudSearchService);
|
|
3608
3653
|
_cleanMultiSelected$ = new Subject();
|
|
3609
|
-
pageOptions = signal(null,
|
|
3610
|
-
|
|
3654
|
+
pageOptions = signal(null, /* @ts-ignore */
|
|
3655
|
+
...(ngDevMode ? [{ debugName: "pageOptions" }] : /* istanbul ignore next */ []));
|
|
3656
|
+
listOptions = signal(null, /* @ts-ignore */
|
|
3657
|
+
...(ngDevMode ? [{ debugName: "listOptions" }] : /* istanbul ignore next */ []));
|
|
3611
3658
|
links = this.facade.links;
|
|
3612
3659
|
filter = this.facade.filter;
|
|
3613
|
-
topTpl = viewChild('topTpl',
|
|
3614
|
-
|
|
3615
|
-
|
|
3660
|
+
topTpl = viewChild('topTpl', /* @ts-ignore */
|
|
3661
|
+
...(ngDevMode ? [{ debugName: "topTpl" }] : /* istanbul ignore next */ []));
|
|
3662
|
+
contentTpl = viewChild('contentTpl', /* @ts-ignore */
|
|
3663
|
+
...(ngDevMode ? [{ debugName: "contentTpl" }] : /* istanbul ignore next */ []));
|
|
3664
|
+
dynamicContents = viewChildren(DynamicContentDirective, /* @ts-ignore */
|
|
3665
|
+
...(ngDevMode ? [{ debugName: "dynamicContents" }] : /* istanbul ignore next */ []));
|
|
3616
3666
|
refreshProperties() {
|
|
3617
3667
|
this.baseComponentRef.setInput('listOptions', this.listOptions());
|
|
3618
3668
|
}
|
|
@@ -3903,8 +3953,8 @@ class ListComponent extends CreateDynamicComponent('crud-list-page') {
|
|
|
3903
3953
|
}
|
|
3904
3954
|
});
|
|
3905
3955
|
}
|
|
3906
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3907
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3956
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3957
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListComponent, isStandalone: true, selector: "smart-crud-list-page", viewQueries: [{ propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, isSignal: true }, { propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3908
3958
|
@if (filter() && pageOptions()) {
|
|
3909
3959
|
<smart-page [options]="pageOptions()" [class]="config.cssClass || ''">
|
|
3910
3960
|
<div #topTpl></div>
|
|
@@ -3920,13 +3970,14 @@ class ListComponent extends CreateDynamicComponent('crud-list-page') {
|
|
|
3920
3970
|
<div class="dynamic-content"></div>
|
|
3921
3971
|
</smart-page>
|
|
3922
3972
|
}
|
|
3923
|
-
`, isInline: true, dependencies: [{ kind: "component", type: PageComponent, selector: "smart-page", inputs: ["options", "class"] }, { kind: "component", type: ListStandardComponent, selector: "smart-crud-list-standard-page" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
3973
|
+
`, isInline: true, dependencies: [{ kind: "component", type: PageComponent, selector: "smart-page", inputs: ["options", "class"] }, { kind: "component", type: ListStandardComponent, selector: "smart-crud-list-standard-page" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
3924
3974
|
}
|
|
3925
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListComponent, decorators: [{
|
|
3926
3976
|
type: Component,
|
|
3927
3977
|
args: [{
|
|
3928
3978
|
selector: 'smart-crud-list-page',
|
|
3929
3979
|
imports: [PageComponent, ListStandardComponent, NgTemplateOutlet],
|
|
3980
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
3930
3981
|
template: `
|
|
3931
3982
|
@if (filter() && pageOptions()) {
|
|
3932
3983
|
<smart-page [options]="pageOptions()" [class]="config.cssClass || ''">
|
|
@@ -3960,8 +4011,8 @@ class CrudFullModule {
|
|
|
3960
4011
|
: getReducer(config.entity));
|
|
3961
4012
|
effects.init();
|
|
3962
4013
|
}
|
|
3963
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3964
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4014
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFullModule, deps: [{ token: CrudConfig }, { token: CrudEffects }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4015
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: CrudFullModule, imports: [ItemComponent,
|
|
3965
4016
|
ListComponent,
|
|
3966
4017
|
ListStandardComponent,
|
|
3967
4018
|
ItemStandardComponent, SharedModule,
|
|
@@ -3971,7 +4022,7 @@ class CrudFullModule {
|
|
|
3971
4022
|
ListComponent,
|
|
3972
4023
|
ListStandardComponent,
|
|
3973
4024
|
ItemStandardComponent, CrudComponentsModule] });
|
|
3974
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4025
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFullModule, providers: [
|
|
3975
4026
|
CrudService,
|
|
3976
4027
|
CrudListGroupService,
|
|
3977
4028
|
PageService,
|
|
@@ -3989,7 +4040,7 @@ class CrudFullModule {
|
|
|
3989
4040
|
CommonModule,
|
|
3990
4041
|
CrudComponentsModule, CrudComponentsModule] });
|
|
3991
4042
|
}
|
|
3992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudFullModule, decorators: [{
|
|
3993
4044
|
type: NgModule,
|
|
3994
4045
|
args: [{
|
|
3995
4046
|
imports: [
|
|
@@ -4024,13 +4075,13 @@ class CrudCoreModule {
|
|
|
4024
4075
|
: getReducer(config.entity));
|
|
4025
4076
|
effects.init();
|
|
4026
4077
|
}
|
|
4027
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4028
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4078
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudCoreModule, deps: [{ token: CrudConfig }, { token: CrudEffects }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4079
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: CrudCoreModule, imports: [SharedModule,
|
|
4029
4080
|
CrudPipesModule,
|
|
4030
4081
|
FormsModule,
|
|
4031
4082
|
CommonModule,
|
|
4032
4083
|
CrudComponentsModule], exports: [CrudComponentsModule] });
|
|
4033
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4084
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudCoreModule, providers: [
|
|
4034
4085
|
CrudService,
|
|
4035
4086
|
CrudListGroupService,
|
|
4036
4087
|
CrudEffects,
|
|
@@ -4045,7 +4096,7 @@ class CrudCoreModule {
|
|
|
4045
4096
|
CommonModule,
|
|
4046
4097
|
CrudComponentsModule, CrudComponentsModule] });
|
|
4047
4098
|
}
|
|
4048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudCoreModule, decorators: [{
|
|
4049
4100
|
type: NgModule,
|
|
4050
4101
|
args: [{
|
|
4051
4102
|
imports: [
|
|
@@ -4091,9 +4142,9 @@ class CrudModule {
|
|
|
4091
4142
|
: getReducer(config.entity));
|
|
4092
4143
|
effects.init();
|
|
4093
4144
|
}
|
|
4094
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4095
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4096
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4145
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudModule, deps: [{ token: CrudConfig }, { token: CrudEffects }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4146
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: CrudModule });
|
|
4147
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudModule, providers: [
|
|
4097
4148
|
CrudService,
|
|
4098
4149
|
CrudListGroupService,
|
|
4099
4150
|
CrudEffects,
|
|
@@ -4102,7 +4153,7 @@ class CrudModule {
|
|
|
4102
4153
|
CrudListPaginationFactory,
|
|
4103
4154
|
] });
|
|
4104
4155
|
}
|
|
4105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CrudModule, decorators: [{
|
|
4106
4157
|
type: NgModule,
|
|
4107
4158
|
args: [{
|
|
4108
4159
|
providers: [
|