@daffodil/core 0.83.0 → 0.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/daffodil-core-external-script-testing.mjs +3 -3
- package/fesm2022/daffodil-core-external-script-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-external-script.mjs +4 -4
- package/fesm2022/daffodil-core-external-script.mjs.map +1 -1
- package/fesm2022/daffodil-core-graphql.mjs +3 -3
- package/fesm2022/daffodil-core-graphql.mjs.map +1 -1
- package/fesm2022/daffodil-core-routing.mjs +3 -3
- package/fesm2022/daffodil-core-routing.mjs.map +1 -1
- package/fesm2022/daffodil-core-state-testing.mjs +6 -6
- package/fesm2022/daffodil-core-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-testing.mjs +118 -106
- package/fesm2022/daffodil-core-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core.mjs +19 -19
- package/fesm2022/daffodil-core.mjs.map +1 -1
- package/package.json +1 -1
- package/testing/public_api.d.ts +1 -0
- package/testing/unique/enforce.d.ts +7 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Pipe, NgModule, Injectable } from '@angular/core';
|
|
3
|
+
import { UniqueEnforcer } from 'enforce-unique';
|
|
3
4
|
import { range, DaffSortDirectionEnum, DaffFilterType, daffFilterArrayToDict, daffIdentifiableArrayToDict } from '@daffodil/core';
|
|
4
5
|
import { faker } from '@faker-js/faker/locale/en_US';
|
|
5
6
|
|
|
@@ -12,10 +13,10 @@ import { faker } from '@faker-js/faker/locale/en_US';
|
|
|
12
13
|
class DaffMockCurrencyPipe {
|
|
13
14
|
transform(value) { }
|
|
14
15
|
;
|
|
15
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
16
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
16
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffMockCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
17
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.11", ngImport: i0, type: DaffMockCurrencyPipe, isStandalone: false, name: "currency" }); }
|
|
17
18
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffMockCurrencyPipe, decorators: [{
|
|
19
20
|
type: Pipe,
|
|
20
21
|
args: [{
|
|
21
22
|
name: 'currency',
|
|
@@ -24,11 +25,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
24
25
|
}] });
|
|
25
26
|
|
|
26
27
|
class DaffCoreTestingModule {
|
|
27
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
28
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
|
29
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
|
28
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCoreTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
29
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.11", ngImport: i0, type: DaffCoreTestingModule, declarations: [DaffMockCurrencyPipe] }); }
|
|
30
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCoreTestingModule }); }
|
|
30
31
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCoreTestingModule, decorators: [{
|
|
32
33
|
type: NgModule,
|
|
33
34
|
args: [{
|
|
34
35
|
declarations: [
|
|
@@ -37,6 +38,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
37
38
|
}]
|
|
38
39
|
}] });
|
|
39
40
|
|
|
41
|
+
const store = new Map();
|
|
42
|
+
/**
|
|
43
|
+
* Wraps `UniqueEnforcer` to provide function-specific instances.
|
|
44
|
+
*/
|
|
45
|
+
const enforceUnique = (func, options) => {
|
|
46
|
+
if (!store.has(func)) {
|
|
47
|
+
store.set(func, new UniqueEnforcer());
|
|
48
|
+
}
|
|
49
|
+
return store.get(func)?.enforce(func, options);
|
|
50
|
+
};
|
|
51
|
+
|
|
40
52
|
/**
|
|
41
53
|
* The base class for model factories.
|
|
42
54
|
*
|
|
@@ -90,17 +102,17 @@ class DaffModelFactory {
|
|
|
90
102
|
|
|
91
103
|
class MockDaffIdentifiable {
|
|
92
104
|
constructor() {
|
|
93
|
-
this.id = faker.
|
|
105
|
+
this.id = faker.string.uuid();
|
|
94
106
|
}
|
|
95
107
|
}
|
|
96
108
|
class DaffIdentifiableFactory extends DaffModelFactory {
|
|
97
109
|
constructor() {
|
|
98
110
|
super(MockDaffIdentifiable);
|
|
99
111
|
}
|
|
100
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
101
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
112
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffIdentifiableFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
113
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffIdentifiableFactory, providedIn: 'root' }); }
|
|
102
114
|
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffIdentifiableFactory, decorators: [{
|
|
104
116
|
type: Injectable,
|
|
105
117
|
args: [{
|
|
106
118
|
providedIn: 'root',
|
|
@@ -109,19 +121,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
109
121
|
|
|
110
122
|
class MockDaffNumericallyPaginable {
|
|
111
123
|
constructor() {
|
|
112
|
-
this.totalPages = faker.
|
|
113
|
-
this.currentPage = faker.
|
|
114
|
-
this.pageSize = faker.
|
|
124
|
+
this.totalPages = faker.number.int({ min: 1, max: 100 });
|
|
125
|
+
this.currentPage = faker.number.int({ min: 1, max: this.totalPages });
|
|
126
|
+
this.pageSize = faker.number.int({ min: 1, max: 100 });
|
|
115
127
|
}
|
|
116
128
|
}
|
|
117
129
|
class DaffNumericallyPaginableFactory extends DaffModelFactory {
|
|
118
130
|
constructor() {
|
|
119
131
|
super(MockDaffNumericallyPaginable);
|
|
120
132
|
}
|
|
121
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
122
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
133
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffNumericallyPaginableFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
134
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffNumericallyPaginableFactory, providedIn: 'root' }); }
|
|
123
135
|
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffNumericallyPaginableFactory, decorators: [{
|
|
125
137
|
type: Injectable,
|
|
126
138
|
args: [{
|
|
127
139
|
providedIn: 'root',
|
|
@@ -130,18 +142,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
130
142
|
|
|
131
143
|
class MockDaffSortOption {
|
|
132
144
|
constructor() {
|
|
133
|
-
this.label = faker.
|
|
134
|
-
this.value = faker.
|
|
145
|
+
this.label = faker.lorem.word();
|
|
146
|
+
this.value = faker.lorem.word();
|
|
135
147
|
}
|
|
136
148
|
}
|
|
137
149
|
class DaffSortOptionFactory extends DaffModelFactory {
|
|
138
150
|
constructor() {
|
|
139
151
|
super(MockDaffSortOption);
|
|
140
152
|
}
|
|
141
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
142
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
153
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
154
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortOptionFactory, providedIn: 'root' }); }
|
|
143
155
|
}
|
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortOptionFactory, decorators: [{
|
|
145
157
|
type: Injectable,
|
|
146
158
|
args: [{
|
|
147
159
|
providedIn: 'root',
|
|
@@ -155,17 +167,17 @@ class MockDaffSortOptions {
|
|
|
155
167
|
this.default = faker.helpers.arrayElement(this.options).value;
|
|
156
168
|
}
|
|
157
169
|
createOptions() {
|
|
158
|
-
return this.optionFactory.createMany(faker.
|
|
170
|
+
return this.optionFactory.createMany(faker.number.int({ min: 1, max: 5 }));
|
|
159
171
|
}
|
|
160
172
|
}
|
|
161
173
|
class DaffSortOptionsFactory extends DaffModelFactory {
|
|
162
174
|
constructor(optionFactory) {
|
|
163
175
|
super(MockDaffSortOptions, optionFactory);
|
|
164
176
|
}
|
|
165
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
166
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
177
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortOptionsFactory, deps: [{ token: DaffSortOptionFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
178
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortOptionsFactory, providedIn: 'root' }); }
|
|
167
179
|
}
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortOptionsFactory, decorators: [{
|
|
169
181
|
type: Injectable,
|
|
170
182
|
args: [{
|
|
171
183
|
providedIn: 'root',
|
|
@@ -187,10 +199,10 @@ class DaffSortableFactory extends DaffModelFactory {
|
|
|
187
199
|
constructor(optionFactory) {
|
|
188
200
|
super(MockDaffSortable, optionFactory);
|
|
189
201
|
}
|
|
190
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
191
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
202
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortableFactory, deps: [{ token: DaffSortOptionsFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
203
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortableFactory, providedIn: 'root' }); }
|
|
192
204
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffSortableFactory, decorators: [{
|
|
194
206
|
type: Injectable,
|
|
195
207
|
args: [{
|
|
196
208
|
providedIn: 'root',
|
|
@@ -200,8 +212,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
200
212
|
class MockFilterEqual {
|
|
201
213
|
constructor() {
|
|
202
214
|
this.type = DaffFilterType.Equal;
|
|
203
|
-
this.label = faker.
|
|
204
|
-
this.name = faker.
|
|
215
|
+
this.label = faker.lorem.word();
|
|
216
|
+
this.name = faker.string.uuid();
|
|
205
217
|
this.options = {};
|
|
206
218
|
}
|
|
207
219
|
}
|
|
@@ -212,10 +224,10 @@ class DaffFilterEqualFactory extends DaffModelFactory {
|
|
|
212
224
|
constructor() {
|
|
213
225
|
super(MockFilterEqual);
|
|
214
226
|
}
|
|
215
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
216
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
227
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterEqualFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
228
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterEqualFactory, providedIn: 'root' }); }
|
|
217
229
|
}
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterEqualFactory, decorators: [{
|
|
219
231
|
type: Injectable,
|
|
220
232
|
args: [{
|
|
221
233
|
providedIn: 'root',
|
|
@@ -225,10 +237,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
225
237
|
class MockFilterRangeNumeric {
|
|
226
238
|
constructor() {
|
|
227
239
|
this.type = DaffFilterType.RangeNumeric;
|
|
228
|
-
this.label = faker.
|
|
229
|
-
this.name = faker.
|
|
230
|
-
this.min = faker.
|
|
231
|
-
this.max = faker.
|
|
240
|
+
this.label = faker.lorem.word();
|
|
241
|
+
this.name = faker.string.uuid();
|
|
242
|
+
this.min = faker.number.int({ min: 1, max: 10 });
|
|
243
|
+
this.max = faker.number.int({ min: 10, max: 200 });
|
|
232
244
|
this.options = {};
|
|
233
245
|
}
|
|
234
246
|
}
|
|
@@ -239,10 +251,10 @@ class DaffFilterRangeNumericFactory extends DaffModelFactory {
|
|
|
239
251
|
constructor() {
|
|
240
252
|
super(MockFilterRangeNumeric);
|
|
241
253
|
}
|
|
242
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
243
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
254
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
255
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericFactory, providedIn: 'root' }); }
|
|
244
256
|
}
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericFactory, decorators: [{
|
|
246
258
|
type: Injectable,
|
|
247
259
|
args: [{
|
|
248
260
|
providedIn: 'root',
|
|
@@ -270,7 +282,7 @@ class DaffFilterFactory extends DaffModelFactory {
|
|
|
270
282
|
factory = this.rangeFactory;
|
|
271
283
|
break;
|
|
272
284
|
default:
|
|
273
|
-
factory = faker.
|
|
285
|
+
factory = faker.number.int({ min: 1, max: 2 }) === 2
|
|
274
286
|
? this.equalFactory
|
|
275
287
|
: this.rangeFactory;
|
|
276
288
|
break;
|
|
@@ -280,10 +292,10 @@ class DaffFilterFactory extends DaffModelFactory {
|
|
|
280
292
|
...factory.create(partial),
|
|
281
293
|
};
|
|
282
294
|
}
|
|
283
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
284
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
295
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterFactory, deps: [{ token: DaffFilterEqualFactory }, { token: DaffFilterRangeNumericFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
296
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterFactory, providedIn: 'root' }); }
|
|
285
297
|
}
|
|
286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterFactory, decorators: [{
|
|
287
299
|
type: Injectable,
|
|
288
300
|
args: [{
|
|
289
301
|
providedIn: 'root',
|
|
@@ -293,8 +305,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
293
305
|
class MockDaffFilterEqualRequest {
|
|
294
306
|
constructor() {
|
|
295
307
|
this.type = DaffFilterType.Equal;
|
|
296
|
-
this.name = faker.
|
|
297
|
-
this.value = [faker.
|
|
308
|
+
this.name = faker.lorem.word();
|
|
309
|
+
this.value = [faker.string.uuid()];
|
|
298
310
|
}
|
|
299
311
|
}
|
|
300
312
|
/**
|
|
@@ -304,10 +316,10 @@ class DaffFilterRequestEqualFactory extends DaffModelFactory {
|
|
|
304
316
|
constructor() {
|
|
305
317
|
super(MockDaffFilterEqualRequest);
|
|
306
318
|
}
|
|
307
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
308
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
319
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestEqualFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
320
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestEqualFactory, providedIn: 'root' }); }
|
|
309
321
|
}
|
|
310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestEqualFactory, decorators: [{
|
|
311
323
|
type: Injectable,
|
|
312
324
|
args: [{
|
|
313
325
|
providedIn: 'root',
|
|
@@ -316,8 +328,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
316
328
|
|
|
317
329
|
class MockDaffFilterRangeNumericRequestOption {
|
|
318
330
|
constructor() {
|
|
319
|
-
this.min = faker.
|
|
320
|
-
this.max = faker.
|
|
331
|
+
this.min = faker.number.int({ min: 0, max: 100 });
|
|
332
|
+
this.max = faker.number.int({ min: 100, max: 1000 });
|
|
321
333
|
}
|
|
322
334
|
}
|
|
323
335
|
/**
|
|
@@ -327,10 +339,10 @@ class DaffFilterRangeNumericRequestOptionFactory extends DaffModelFactory {
|
|
|
327
339
|
constructor() {
|
|
328
340
|
super(MockDaffFilterRangeNumericRequestOption);
|
|
329
341
|
}
|
|
330
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
331
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
342
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericRequestOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
343
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericRequestOptionFactory, providedIn: 'root' }); }
|
|
332
344
|
}
|
|
333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericRequestOptionFactory, decorators: [{
|
|
334
346
|
type: Injectable,
|
|
335
347
|
args: [{
|
|
336
348
|
providedIn: 'root',
|
|
@@ -340,7 +352,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
340
352
|
class MockDaffFilterRangeNumericRequest {
|
|
341
353
|
constructor() {
|
|
342
354
|
this.type = DaffFilterType.RangeNumeric;
|
|
343
|
-
this.name = faker.
|
|
355
|
+
this.name = faker.lorem.word();
|
|
344
356
|
}
|
|
345
357
|
}
|
|
346
358
|
/**
|
|
@@ -358,10 +370,10 @@ class DaffFilterRequestRangeNumericFactory extends DaffModelFactory {
|
|
|
358
370
|
...partial,
|
|
359
371
|
};
|
|
360
372
|
}
|
|
361
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
362
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
373
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestRangeNumericFactory, deps: [{ token: DaffFilterRangeNumericRequestOptionFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
374
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestRangeNumericFactory, providedIn: 'root' }); }
|
|
363
375
|
}
|
|
364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestRangeNumericFactory, decorators: [{
|
|
365
377
|
type: Injectable,
|
|
366
378
|
args: [{
|
|
367
379
|
providedIn: 'root',
|
|
@@ -373,12 +385,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
373
385
|
*/
|
|
374
386
|
class DaffFilterRequestFactory extends DaffModelFactory {
|
|
375
387
|
constructor(equalFactory, rangeFactory) {
|
|
376
|
-
super(faker.
|
|
388
|
+
super(faker.number.int({ min: 1, max: 2 }) === 2 ? equalFactory.type : rangeFactory.type);
|
|
377
389
|
}
|
|
378
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
379
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
390
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestFactory, deps: [{ token: DaffFilterRequestEqualFactory }, { token: DaffFilterRequestRangeNumericFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
391
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestFactory, providedIn: 'root' }); }
|
|
380
392
|
}
|
|
381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRequestFactory, decorators: [{
|
|
382
394
|
type: Injectable,
|
|
383
395
|
args: [{
|
|
384
396
|
providedIn: 'root',
|
|
@@ -388,8 +400,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
388
400
|
class MockDaffFilterToggleEqualRequest {
|
|
389
401
|
constructor() {
|
|
390
402
|
this.type = DaffFilterType.Equal;
|
|
391
|
-
this.name = faker.
|
|
392
|
-
this.value = faker.
|
|
403
|
+
this.name = faker.lorem.word();
|
|
404
|
+
this.value = faker.string.uuid();
|
|
393
405
|
}
|
|
394
406
|
}
|
|
395
407
|
/**
|
|
@@ -399,10 +411,10 @@ class DaffFilterToggleRequestEqualFactory extends DaffModelFactory {
|
|
|
399
411
|
constructor() {
|
|
400
412
|
super(MockDaffFilterToggleEqualRequest);
|
|
401
413
|
}
|
|
402
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
403
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
414
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestEqualFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
415
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestEqualFactory, providedIn: 'root' }); }
|
|
404
416
|
}
|
|
405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestEqualFactory, decorators: [{
|
|
406
418
|
type: Injectable,
|
|
407
419
|
args: [{
|
|
408
420
|
providedIn: 'root',
|
|
@@ -412,7 +424,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
412
424
|
class MockDaffFilterToggleRangeNumericRequest {
|
|
413
425
|
constructor() {
|
|
414
426
|
this.type = DaffFilterType.RangeNumeric;
|
|
415
|
-
this.name = faker.
|
|
427
|
+
this.name = faker.lorem.word();
|
|
416
428
|
}
|
|
417
429
|
}
|
|
418
430
|
/**
|
|
@@ -430,10 +442,10 @@ class DaffFilterToggleRequestRangeNumericFactory extends DaffModelFactory {
|
|
|
430
442
|
...partial,
|
|
431
443
|
};
|
|
432
444
|
}
|
|
433
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
434
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
445
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestRangeNumericFactory, deps: [{ token: DaffFilterRangeNumericRequestOptionFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
446
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestRangeNumericFactory, providedIn: 'root' }); }
|
|
435
447
|
}
|
|
436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestRangeNumericFactory, decorators: [{
|
|
437
449
|
type: Injectable,
|
|
438
450
|
args: [{
|
|
439
451
|
providedIn: 'root',
|
|
@@ -454,13 +466,13 @@ class DaffFilterToggleRequestFactory extends DaffModelFactory {
|
|
|
454
466
|
create(partial) {
|
|
455
467
|
return {
|
|
456
468
|
...new this.type(),
|
|
457
|
-
...faker.
|
|
469
|
+
...faker.number.int({ min: 1, max: 2 }) === 2 ? this.equalFactory.create() : this.rangeFactory.create(),
|
|
458
470
|
};
|
|
459
471
|
}
|
|
460
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
461
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
472
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestFactory, deps: [{ token: DaffFilterToggleRequestEqualFactory }, { token: DaffFilterToggleRequestRangeNumericFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
473
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestFactory, providedIn: 'root' }); }
|
|
462
474
|
}
|
|
463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterToggleRequestFactory, decorators: [{
|
|
464
476
|
type: Injectable,
|
|
465
477
|
args: [{
|
|
466
478
|
providedIn: 'root',
|
|
@@ -470,9 +482,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
470
482
|
class MockDaffFilterEqualOption {
|
|
471
483
|
constructor() {
|
|
472
484
|
this.applied = false;
|
|
473
|
-
this.value = faker.
|
|
474
|
-
this.label = faker.
|
|
475
|
-
this.count = faker.
|
|
485
|
+
this.value = faker.string.uuid();
|
|
486
|
+
this.label = faker.lorem.word();
|
|
487
|
+
this.count = faker.number.int({ min: 1, max: 1000 });
|
|
476
488
|
}
|
|
477
489
|
}
|
|
478
490
|
/**
|
|
@@ -482,10 +494,10 @@ class DaffFilterEqualOptionFactory extends DaffModelFactory {
|
|
|
482
494
|
constructor() {
|
|
483
495
|
super(MockDaffFilterEqualOption);
|
|
484
496
|
}
|
|
485
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
486
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
497
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterEqualOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
498
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterEqualOptionFactory, providedIn: 'root' }); }
|
|
487
499
|
}
|
|
488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterEqualOptionFactory, decorators: [{
|
|
489
501
|
type: Injectable,
|
|
490
502
|
args: [{
|
|
491
503
|
providedIn: 'root',
|
|
@@ -494,8 +506,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
494
506
|
|
|
495
507
|
class MockFilterRangeNumericOption {
|
|
496
508
|
constructor() {
|
|
497
|
-
this.value = faker.
|
|
498
|
-
this.label = faker.
|
|
509
|
+
this.value = faker.number.int({ min: 0, max: 10 });
|
|
510
|
+
this.label = faker.string.alpha({ length: 3 });
|
|
499
511
|
}
|
|
500
512
|
}
|
|
501
513
|
/**
|
|
@@ -505,10 +517,10 @@ class DaffFilterRangeNumericOptionFactory extends DaffModelFactory {
|
|
|
505
517
|
constructor() {
|
|
506
518
|
super(MockFilterRangeNumericOption);
|
|
507
519
|
}
|
|
508
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
509
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
520
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
521
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericOptionFactory, providedIn: 'root' }); }
|
|
510
522
|
}
|
|
511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericOptionFactory, decorators: [{
|
|
512
524
|
type: Injectable,
|
|
513
525
|
args: [{
|
|
514
526
|
providedIn: 'root',
|
|
@@ -531,15 +543,15 @@ class DaffFilterRangeNumericPairFactory extends DaffModelFactory {
|
|
|
531
543
|
create(partial = {}) {
|
|
532
544
|
return {
|
|
533
545
|
...new this.type(),
|
|
534
|
-
min: this.option.create({ value: faker.
|
|
535
|
-
max: this.option.create({ value: faker.
|
|
546
|
+
min: this.option.create({ value: faker.number.int({ min: 0, max: 100 }) }),
|
|
547
|
+
max: this.option.create({ value: faker.number.int({ min: 100, max: 1000 }) }),
|
|
536
548
|
...partial,
|
|
537
549
|
};
|
|
538
550
|
}
|
|
539
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
540
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
551
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericPairFactory, deps: [{ token: DaffFilterRangeNumericOptionFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
552
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericPairFactory, providedIn: 'root' }); }
|
|
541
553
|
}
|
|
542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffFilterRangeNumericPairFactory, decorators: [{
|
|
543
555
|
type: Injectable,
|
|
544
556
|
args: [{
|
|
545
557
|
providedIn: 'root',
|
|
@@ -553,15 +565,15 @@ class MockCollectionMetadata {
|
|
|
553
565
|
constructor(pageInfoFactory, sortFieldsFactory, filterFactory) {
|
|
554
566
|
const _pageInfo = pageInfoFactory.create();
|
|
555
567
|
const _sortFields = sortFieldsFactory.create();
|
|
556
|
-
this.count = faker.
|
|
557
|
-
this.ids = new Array(this.count).fill(null).map(() => faker.
|
|
568
|
+
this.count = faker.number.int({ min: 1, max: 1000 });
|
|
569
|
+
this.ids = new Array(this.count).fill(null).map(() => faker.string.uuid());
|
|
558
570
|
this.currentPage = _pageInfo.currentPage;
|
|
559
571
|
this.totalPages = _pageInfo.totalPages;
|
|
560
572
|
this.pageSize = _pageInfo.pageSize;
|
|
561
573
|
this.appliedSortDirection = _sortFields.appliedSortDirection;
|
|
562
574
|
this.appliedSortOption = _sortFields.appliedSortOption;
|
|
563
575
|
this.sortOptions = _sortFields.sortOptions;
|
|
564
|
-
this.filters = daffFilterArrayToDict(filterFactory.createMany(faker.
|
|
576
|
+
this.filters = daffFilterArrayToDict(filterFactory.createMany(faker.number.int({ min: 1, max: 5 })));
|
|
565
577
|
}
|
|
566
578
|
}
|
|
567
579
|
/**
|
|
@@ -571,10 +583,10 @@ class DaffCollectionMetadataFactory extends DaffModelFactory {
|
|
|
571
583
|
constructor(pageInfoFactory, sortFieldsFactory, filterFactory) {
|
|
572
584
|
super(MockCollectionMetadata, pageInfoFactory, sortFieldsFactory, filterFactory);
|
|
573
585
|
}
|
|
574
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
575
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
586
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCollectionMetadataFactory, deps: [{ token: DaffNumericallyPaginableFactory }, { token: DaffSortableFactory }, { token: DaffFilterFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
587
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCollectionMetadataFactory, providedIn: 'root' }); }
|
|
576
588
|
}
|
|
577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCollectionMetadataFactory, decorators: [{
|
|
578
590
|
type: Injectable,
|
|
579
591
|
args: [{
|
|
580
592
|
providedIn: 'root',
|
|
@@ -587,14 +599,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
587
599
|
class MockCollectionRequest {
|
|
588
600
|
constructor(filterRequestFactory) {
|
|
589
601
|
this.filterRequestFactory = filterRequestFactory;
|
|
590
|
-
this.currentPage = faker.
|
|
602
|
+
this.currentPage = faker.number.int({ min: 1, max: 100 });
|
|
591
603
|
this.appliedSortDirection = faker.helpers.arrayElement([DaffSortDirectionEnum.Ascending, DaffSortDirectionEnum.Descending]);
|
|
592
|
-
this.pageSize = faker.
|
|
593
|
-
this.appliedSortOption = faker.
|
|
604
|
+
this.pageSize = faker.number.int({ min: 1, max: 100 });
|
|
605
|
+
this.appliedSortOption = faker.lorem.word();
|
|
594
606
|
this.filterRequests = this.createFilterRequests();
|
|
595
607
|
}
|
|
596
608
|
createFilterRequests() {
|
|
597
|
-
return this.filterRequestFactory.createMany(faker.
|
|
609
|
+
return this.filterRequestFactory.createMany(faker.number.int({ min: 1, max: 5 }));
|
|
598
610
|
}
|
|
599
611
|
}
|
|
600
612
|
/**
|
|
@@ -604,10 +616,10 @@ class DaffCollectionRequestFactory extends DaffModelFactory {
|
|
|
604
616
|
constructor(filterRequestFactory) {
|
|
605
617
|
super(MockCollectionRequest, filterRequestFactory);
|
|
606
618
|
}
|
|
607
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
608
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
619
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCollectionRequestFactory, deps: [{ token: DaffFilterRequestFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
620
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCollectionRequestFactory, providedIn: 'root' }); }
|
|
609
621
|
}
|
|
610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCollectionRequestFactory, decorators: [{
|
|
611
623
|
type: Injectable,
|
|
612
624
|
args: [{
|
|
613
625
|
providedIn: 'root',
|
|
@@ -644,5 +656,5 @@ class MockCollection {
|
|
|
644
656
|
* Generated bundle index. Do not edit.
|
|
645
657
|
*/
|
|
646
658
|
|
|
647
|
-
export { DaffCollectionMetadataFactory, DaffCollectionRequestFactory, DaffCoreTestingModule, DaffFilterEqualFactory, DaffFilterEqualOptionFactory, DaffFilterFactory, DaffFilterRangeNumericFactory, DaffFilterRangeNumericOptionFactory, DaffFilterRangeNumericPairFactory, DaffFilterRangeNumericRequestOptionFactory, DaffFilterRequestEqualFactory, DaffFilterRequestFactory, DaffFilterRequestRangeNumericFactory, DaffFilterToggleRequestEqualFactory, DaffFilterToggleRequestFactory, DaffFilterToggleRequestRangeNumericFactory, DaffIdentifiableFactory, DaffMockCurrencyPipe, DaffModelFactory, DaffNumericallyPaginableFactory, DaffSortOptionFactory, DaffSortOptionsFactory, DaffSortableFactory, MockCollection, MockCollectionMetadata, MockCollectionRequest, MockDaffFilterEqualOption, MockDaffFilterEqualRequest, MockDaffFilterRangeNumericPair, MockDaffFilterRangeNumericRequest, MockDaffFilterRangeNumericRequestOption, MockDaffFilterToggleEqualRequest, MockDaffFilterToggleRangeNumericRequest, MockDaffIdentifiable, MockFilterEqual, MockFilterRangeNumeric, MockFilterRangeNumericOption };
|
|
659
|
+
export { DaffCollectionMetadataFactory, DaffCollectionRequestFactory, DaffCoreTestingModule, DaffFilterEqualFactory, DaffFilterEqualOptionFactory, DaffFilterFactory, DaffFilterRangeNumericFactory, DaffFilterRangeNumericOptionFactory, DaffFilterRangeNumericPairFactory, DaffFilterRangeNumericRequestOptionFactory, DaffFilterRequestEqualFactory, DaffFilterRequestFactory, DaffFilterRequestRangeNumericFactory, DaffFilterToggleRequestEqualFactory, DaffFilterToggleRequestFactory, DaffFilterToggleRequestRangeNumericFactory, DaffIdentifiableFactory, DaffMockCurrencyPipe, DaffModelFactory, DaffNumericallyPaginableFactory, DaffSortOptionFactory, DaffSortOptionsFactory, DaffSortableFactory, MockCollection, MockCollectionMetadata, MockCollectionRequest, MockDaffFilterEqualOption, MockDaffFilterEqualRequest, MockDaffFilterRangeNumericPair, MockDaffFilterRangeNumericRequest, MockDaffFilterRangeNumericRequestOption, MockDaffFilterToggleEqualRequest, MockDaffFilterToggleRangeNumericRequest, MockDaffIdentifiable, MockFilterEqual, MockFilterRangeNumeric, MockFilterRangeNumericOption, enforceUnique };
|
|
648
660
|
//# sourceMappingURL=daffodil-core-testing.mjs.map
|