@bizy/core 19.5.5 → 19.5.7

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.
@@ -2520,10 +2520,31 @@ class BizyFilterPipe {
2520
2520
  });
2521
2521
  output = output.concat(res);
2522
2522
  });
2523
- let map = new Map();
2524
- output.forEach(obj => map.set(JSON.stringify(obj), obj));
2525
- const uniqueArray = Array.from(map.values());
2526
- return uniqueArray;
2523
+ function deepEqual(a, b, seen = new WeakMap()) {
2524
+ if (a === b)
2525
+ return true;
2526
+ if (typeof a !== "object" || typeof b !== "object" || a === null || b === null)
2527
+ return false;
2528
+ // Circular reference check
2529
+ if (seen.has(a))
2530
+ return seen.get(a) === b;
2531
+ seen.set(a, b);
2532
+ const aKeys = Object.keys(a);
2533
+ const bKeys = Object.keys(b);
2534
+ if (aKeys.length !== bKeys.length)
2535
+ return false;
2536
+ for (let key of aKeys) {
2537
+ if (!bKeys.includes(key))
2538
+ return false;
2539
+ if (!deepEqual(a[key], b[key], seen))
2540
+ return false;
2541
+ }
2542
+ return true;
2543
+ }
2544
+ function uniqueObjects(items) {
2545
+ return items.filter((obj, index, self) => index === self.findIndex(other => deepEqual(obj, other)));
2546
+ }
2547
+ return uniqueObjects(output);
2527
2548
  }
2528
2549
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: BizyFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2529
2550
  static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: BizyFilterPipe, isStandalone: true, name: "bizyFilter" });
@@ -4351,11 +4372,11 @@ class BizyTableColumnComponent {
4351
4372
  this.#elementRef.nativeElement.setMarginLeft(margin);
4352
4373
  }
4353
4374
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: BizyTableColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4354
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: BizyTableColumnComponent, isStandalone: true, selector: "bizy-table-column", inputs: { id: "id", customClass: "customClass" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"onSelect.emit($event)\"\n (keyup.enter)=\"onSelect.emit($event)\"\n class=\"bizy-table-column {{customClass}}\">\n\n <ng-content></ng-content>\n \n</button>", styles: [":host{font-size:1rem;flex:1;background-color:inherit;height:var(--bizy-table-row-height);display:flex;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}:host:has(.bizy-table-column-arrows) .bizy-table-column{cursor:pointer!important}.bizy-table-column{font-size:1rem;min-width:var(--bizy-table-column-min-width);width:100%;cursor:var(--bizy-table-column-cursor);border-top:var(--bizy-table-column-border-top);border-right:var(--bizy-table-column-border-right);border-bottom:var(--bizy-table-column-border-bottom);border-left:var(--bizy-table-column-border-left);background-color:var(--bizy-table-column-background-color);display:flex;align-items:center;justify-content:var(--bizy-table-column-justify-content);column-gap:.3rem;padding-right:.3rem}::ng-deep .bizy-table-column *{text-align:start}::ng-deep .bizy-table-column:hover .bizy-table-column-arrows{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4375
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: BizyTableColumnComponent, isStandalone: true, selector: "bizy-table-column", inputs: { id: "id", customClass: "customClass" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"onSelect.emit($event)\"\n (keyup.enter)=\"onSelect.emit($event)\"\n class=\"bizy-table-column {{customClass}}\">\n\n <ng-content></ng-content>\n \n</button>", styles: [":host{font-size:1rem;flex:1;background-color:inherit;min-height:var(--bizy-table-row-height);display:flex;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}:host:has(.bizy-table-column-arrows) .bizy-table-column{cursor:pointer!important}.bizy-table-column{font-size:1rem;min-width:var(--bizy-table-column-min-width);width:100%;cursor:var(--bizy-table-column-cursor);border-top:var(--bizy-table-column-border-top);border-right:var(--bizy-table-column-border-right);border-bottom:var(--bizy-table-column-border-bottom);border-left:var(--bizy-table-column-border-left);background-color:var(--bizy-table-column-background-color);display:flex;align-items:center;justify-content:var(--bizy-table-column-justify-content);column-gap:.3rem;padding-right:.3rem}::ng-deep .bizy-table-column *{text-align:start}::ng-deep .bizy-table-column:hover .bizy-table-column-arrows{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4355
4376
  }
4356
4377
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: BizyTableColumnComponent, decorators: [{
4357
4378
  type: Component,
4358
- args: [{ selector: 'bizy-table-column', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"onSelect.emit($event)\"\n (keyup.enter)=\"onSelect.emit($event)\"\n class=\"bizy-table-column {{customClass}}\">\n\n <ng-content></ng-content>\n \n</button>", styles: [":host{font-size:1rem;flex:1;background-color:inherit;height:var(--bizy-table-row-height);display:flex;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}:host:has(.bizy-table-column-arrows) .bizy-table-column{cursor:pointer!important}.bizy-table-column{font-size:1rem;min-width:var(--bizy-table-column-min-width);width:100%;cursor:var(--bizy-table-column-cursor);border-top:var(--bizy-table-column-border-top);border-right:var(--bizy-table-column-border-right);border-bottom:var(--bizy-table-column-border-bottom);border-left:var(--bizy-table-column-border-left);background-color:var(--bizy-table-column-background-color);display:flex;align-items:center;justify-content:var(--bizy-table-column-justify-content);column-gap:.3rem;padding-right:.3rem}::ng-deep .bizy-table-column *{text-align:start}::ng-deep .bizy-table-column:hover .bizy-table-column-arrows{display:inline-block}\n"] }]
4379
+ args: [{ selector: 'bizy-table-column', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n [id]=\"id\"\n (click)=\"onSelect.emit($event)\"\n (keyup.enter)=\"onSelect.emit($event)\"\n class=\"bizy-table-column {{customClass}}\">\n\n <ng-content></ng-content>\n \n</button>", styles: [":host{font-size:1rem;flex:1;background-color:inherit;min-height:var(--bizy-table-row-height);display:flex;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}:host:has(.bizy-table-column-arrows) .bizy-table-column{cursor:pointer!important}.bizy-table-column{font-size:1rem;min-width:var(--bizy-table-column-min-width);width:100%;cursor:var(--bizy-table-column-cursor);border-top:var(--bizy-table-column-border-top);border-right:var(--bizy-table-column-border-right);border-bottom:var(--bizy-table-column-border-bottom);border-left:var(--bizy-table-column-border-left);background-color:var(--bizy-table-column-background-color);display:flex;align-items:center;justify-content:var(--bizy-table-column-justify-content);column-gap:.3rem;padding-right:.3rem}::ng-deep .bizy-table-column *{text-align:start}::ng-deep .bizy-table-column:hover .bizy-table-column-arrows{display:inline-block}\n"] }]
4359
4380
  }], propDecorators: { id: [{
4360
4381
  type: Input
4361
4382
  }], customClass: [{