@ngutil/data 0.0.102 → 0.0.104
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/ngutil-data.mjs +31 -31
- package/fesm2022/ngutil-data.mjs.map +1 -1
- package/index.d.ts +586 -9
- package/package.json +5 -5
- package/model/index.d.ts +0 -1
- package/model/meta.d.ts +0 -51
- package/provider/array.d.ts +0 -7
- package/provider/index.d.ts +0 -4
- package/provider/local.d.ts +0 -16
- package/provider/observable.d.ts +0 -7
- package/provider/provider.d.ts +0 -50
- package/query/common.d.ts +0 -2
- package/query/executor.d.ts +0 -30
- package/query/filter.d.ts +0 -118
- package/query/grouper.d.ts +0 -17
- package/query/index.d.ts +0 -8
- package/query/path.d.ts +0 -2
- package/query/query-property.d.ts +0 -25
- package/query/query.d.ts +0 -31
- package/query/slice.d.ts +0 -32
- package/query/slimer.d.ts +0 -28
- package/query/sorter.d.ts +0 -55
- package/source/index.d.ts +0 -2
- package/source/proxy.directive.d.ts +0 -92
- package/source/source.d.ts +0 -32
- package/store/collection-store.d.ts +0 -49
- package/store/index.d.ts +0 -2
- package/store/memory-store.d.ts +0 -16
package/fesm2022/ngutil-data.mjs
CHANGED
|
@@ -101,7 +101,7 @@ class QueryPropertySet extends Observable {
|
|
|
101
101
|
observables.push(o);
|
|
102
102
|
props[name] = o;
|
|
103
103
|
}
|
|
104
|
-
this.#combined = combineLatest(observables).pipe(map(values => deepFreeze(this.merge(...values))), shareReplay(1));
|
|
104
|
+
this.#combined = combineLatest(observables).pipe(map(values => deepFreeze(this.merge(...values.filter(v => v != null)))), shareReplay(1));
|
|
105
105
|
for (const [k, v] of Object.entries(props)) {
|
|
106
106
|
readonlyProp(this, k, v);
|
|
107
107
|
}
|
|
@@ -1310,10 +1310,10 @@ class DataSourceProxy extends DataSource$1 {
|
|
|
1310
1310
|
this.#valueSub?.unsubscribe();
|
|
1311
1311
|
this.#valueSub = undefined;
|
|
1312
1312
|
}
|
|
1313
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1314
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxy, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1314
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.13", type: DataSourceProxy, isStandalone: true, selector: "[nuDataSource]", inputs: { value: ["nuDataSource", "value"] }, exportAs: ["nuDataSource"], usesInheritance: true, ngImport: i0 }); }
|
|
1315
1315
|
}
|
|
1316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxy, decorators: [{
|
|
1317
1317
|
type: Directive,
|
|
1318
1318
|
args: [{
|
|
1319
1319
|
selector: "[nuDataSource]",
|
|
@@ -1327,78 +1327,78 @@ class DataSourceProxyFilter {
|
|
|
1327
1327
|
#proxy;
|
|
1328
1328
|
constructor() {
|
|
1329
1329
|
this.#proxy = inject(DataSourceProxy);
|
|
1330
|
-
this.filter = input.required();
|
|
1330
|
+
this.filter = input.required(...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
1331
1331
|
this.filter$ = toObservable(this.filter);
|
|
1332
1332
|
combineLatest({ query: this.#proxy.query$, filter: this.filter$ })
|
|
1333
1333
|
.pipe(takeUntilDestroyed())
|
|
1334
1334
|
.subscribe(({ query, filter }) => query.filter.forced.set(filter));
|
|
1335
1335
|
}
|
|
1336
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1337
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxyFilter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1337
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.13", type: DataSourceProxyFilter, isStandalone: true, selector: "[nuDataSource][filter]", inputs: { filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
1338
1338
|
}
|
|
1339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxyFilter, decorators: [{
|
|
1340
1340
|
type: Directive,
|
|
1341
1341
|
args: [{
|
|
1342
1342
|
selector: "[nuDataSource][filter]"
|
|
1343
1343
|
}]
|
|
1344
|
-
}], ctorParameters: () => [] });
|
|
1344
|
+
}], ctorParameters: () => [], propDecorators: { filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: true }] }] } });
|
|
1345
1345
|
class DataSourceProxySorter {
|
|
1346
1346
|
#proxy;
|
|
1347
1347
|
constructor() {
|
|
1348
1348
|
this.#proxy = inject(DataSourceProxy);
|
|
1349
|
-
this.sorter = input.required();
|
|
1349
|
+
this.sorter = input.required(...(ngDevMode ? [{ debugName: "sorter" }] : []));
|
|
1350
1350
|
this.sorter$ = toObservable(this.sorter);
|
|
1351
1351
|
combineLatest({ query: this.#proxy.query$, sorter: this.sorter$ })
|
|
1352
1352
|
.pipe(takeUntilDestroyed())
|
|
1353
1353
|
.subscribe(({ query, sorter }) => query.sorter.forced.set(sorter));
|
|
1354
1354
|
}
|
|
1355
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1356
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1355
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxySorter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1356
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.13", type: DataSourceProxySorter, isStandalone: true, selector: "[nuDataSource][sorter]", inputs: { sorter: { classPropertyName: "sorter", publicName: "sorter", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
1357
1357
|
}
|
|
1358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxySorter, decorators: [{
|
|
1359
1359
|
type: Directive,
|
|
1360
1360
|
args: [{
|
|
1361
1361
|
selector: "[nuDataSource][sorter]"
|
|
1362
1362
|
}]
|
|
1363
|
-
}], ctorParameters: () => [] });
|
|
1363
|
+
}], ctorParameters: () => [], propDecorators: { sorter: [{ type: i0.Input, args: [{ isSignal: true, alias: "sorter", required: true }] }] } });
|
|
1364
1364
|
class DataSourceProxySlimer {
|
|
1365
1365
|
#proxy;
|
|
1366
1366
|
constructor() {
|
|
1367
1367
|
this.#proxy = inject(DataSourceProxy);
|
|
1368
|
-
this.slimer = input.required();
|
|
1368
|
+
this.slimer = input.required(...(ngDevMode ? [{ debugName: "slimer" }] : []));
|
|
1369
1369
|
this.slimer$ = toObservable(this.slimer);
|
|
1370
1370
|
combineLatest({ query: this.#proxy.query$, slimer: this.slimer$ })
|
|
1371
1371
|
.pipe(takeUntilDestroyed())
|
|
1372
1372
|
.subscribe(({ query, slimer }) => query.slimer.forced.set(slimer));
|
|
1373
1373
|
}
|
|
1374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1375
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxySlimer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1375
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.13", type: DataSourceProxySlimer, isStandalone: true, selector: "[nuDataSource][slimer]", inputs: { slimer: { classPropertyName: "slimer", publicName: "slimer", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
1376
1376
|
}
|
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxySlimer, decorators: [{
|
|
1378
1378
|
type: Directive,
|
|
1379
1379
|
args: [{
|
|
1380
1380
|
selector: "[nuDataSource][slimer]"
|
|
1381
1381
|
}]
|
|
1382
|
-
}], ctorParameters: () => [] });
|
|
1382
|
+
}], ctorParameters: () => [], propDecorators: { slimer: [{ type: i0.Input, args: [{ isSignal: true, alias: "slimer", required: true }] }] } });
|
|
1383
1383
|
class DataSourceProxyGrouper {
|
|
1384
1384
|
#proxy;
|
|
1385
1385
|
constructor() {
|
|
1386
1386
|
this.#proxy = inject(DataSourceProxy);
|
|
1387
|
-
this.grouper = input.required();
|
|
1387
|
+
this.grouper = input.required(...(ngDevMode ? [{ debugName: "grouper" }] : []));
|
|
1388
1388
|
this.grouper$ = toObservable(this.grouper);
|
|
1389
1389
|
combineLatest({ query: this.#proxy.query$, grouper: this.grouper$ })
|
|
1390
1390
|
.pipe(takeUntilDestroyed())
|
|
1391
1391
|
.subscribe(({ query, grouper }) => query.grouper.forced.set(grouper));
|
|
1392
1392
|
}
|
|
1393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1394
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxyGrouper, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1394
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.13", type: DataSourceProxyGrouper, isStandalone: true, selector: "[nuDataSource][grouper]", inputs: { grouper: { classPropertyName: "grouper", publicName: "grouper", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
1395
1395
|
}
|
|
1396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxyGrouper, decorators: [{
|
|
1397
1397
|
type: Directive,
|
|
1398
1398
|
args: [{
|
|
1399
1399
|
selector: "[nuDataSource][grouper]"
|
|
1400
1400
|
}]
|
|
1401
|
-
}], ctorParameters: () => [] });
|
|
1401
|
+
}], ctorParameters: () => [], propDecorators: { grouper: [{ type: i0.Input, args: [{ isSignal: true, alias: "grouper", required: true }] }] } });
|
|
1402
1402
|
class DataSourceProxyBusy {
|
|
1403
1403
|
#proxy = inject(DataSourceProxy);
|
|
1404
1404
|
#busy = inject(BusyDirective);
|
|
@@ -1407,10 +1407,10 @@ class DataSourceProxyBusy {
|
|
|
1407
1407
|
.pipe(takeUntilDestroyed(), switchMap(value => value.isBusy$))
|
|
1408
1408
|
.subscribe(isBusy => this.#busy.set(isBusy, "data-source"));
|
|
1409
1409
|
}
|
|
1410
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1411
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxyBusy, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1411
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.13", type: DataSourceProxyBusy, isStandalone: true, selector: "[nuDataSource][nuBusy]", ngImport: i0 }); }
|
|
1412
1412
|
}
|
|
1413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceProxyBusy, decorators: [{
|
|
1414
1414
|
type: Directive,
|
|
1415
1415
|
args: [{
|
|
1416
1416
|
selector: "[nuDataSource][nuBusy]"
|
|
@@ -1597,8 +1597,8 @@ class ObservableProvider extends LocalProvider {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
|
|
1599
1599
|
class DataSourceModule {
|
|
1600
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1601
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1600
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1601
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.13", ngImport: i0, type: DataSourceModule, imports: [DataSourceProxy,
|
|
1602
1602
|
DataSourceProxyBusy,
|
|
1603
1603
|
DataSourceProxyFilter,
|
|
1604
1604
|
DataSourceProxyGrouper,
|
|
@@ -1609,9 +1609,9 @@ class DataSourceModule {
|
|
|
1609
1609
|
DataSourceProxyGrouper,
|
|
1610
1610
|
DataSourceProxySlimer,
|
|
1611
1611
|
DataSourceProxySorter] }); }
|
|
1612
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1612
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceModule }); }
|
|
1613
1613
|
}
|
|
1614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: DataSourceModule, decorators: [{
|
|
1615
1615
|
type: NgModule,
|
|
1616
1616
|
args: [{
|
|
1617
1617
|
imports: [
|