@ngutil/data 0.0.101 → 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.
@@ -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: "19.2.8", ngImport: i0, type: DataSourceProxy, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
1314
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.8", type: DataSourceProxy, isStandalone: true, selector: "[nuDataSource]", inputs: { value: ["nuDataSource", "value"] }, exportAs: ["nuDataSource"], usesInheritance: true, ngImport: i0 }); }
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: "19.2.8", ngImport: i0, type: DataSourceProxy, decorators: [{
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: "19.2.8", ngImport: i0, type: DataSourceProxyFilter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1337
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.8", type: DataSourceProxyFilter, isStandalone: true, selector: "[nuDataSource][filter]", inputs: { filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
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: "19.2.8", ngImport: i0, type: DataSourceProxyFilter, decorators: [{
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: "19.2.8", ngImport: i0, type: DataSourceProxySorter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1356
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.8", type: DataSourceProxySorter, isStandalone: true, selector: "[nuDataSource][sorter]", inputs: { sorter: { classPropertyName: "sorter", publicName: "sorter", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
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: "19.2.8", ngImport: i0, type: DataSourceProxySorter, decorators: [{
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: "19.2.8", ngImport: i0, type: DataSourceProxySlimer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1375
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.8", type: DataSourceProxySlimer, isStandalone: true, selector: "[nuDataSource][slimer]", inputs: { slimer: { classPropertyName: "slimer", publicName: "slimer", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
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: "19.2.8", ngImport: i0, type: DataSourceProxySlimer, decorators: [{
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: "19.2.8", ngImport: i0, type: DataSourceProxyGrouper, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1394
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.8", type: DataSourceProxyGrouper, isStandalone: true, selector: "[nuDataSource][grouper]", inputs: { grouper: { classPropertyName: "grouper", publicName: "grouper", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
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: "19.2.8", ngImport: i0, type: DataSourceProxyGrouper, decorators: [{
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: "19.2.8", ngImport: i0, type: DataSourceProxyBusy, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1411
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.8", type: DataSourceProxyBusy, isStandalone: true, selector: "[nuDataSource][nuBusy]", ngImport: i0 }); }
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: "19.2.8", ngImport: i0, type: DataSourceProxyBusy, decorators: [{
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: "19.2.8", ngImport: i0, type: DataSourceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1601
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.8", ngImport: i0, type: DataSourceModule, imports: [DataSourceProxy,
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: "19.2.8", ngImport: i0, type: DataSourceModule }); }
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: "19.2.8", ngImport: i0, type: DataSourceModule, decorators: [{
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: [