@acorex/connectivity 20.7.8 → 20.7.9

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.
@@ -10553,14 +10553,15 @@ class AXCFileStorageService {
10553
10553
  }
10554
10554
  async findMany(ids) {
10555
10555
  const files = await db.files.where('fileId').anyOf(ids).toArray();
10556
- return files.map((file) => ({
10556
+ return Promise.all(files.map(async (file) => ({
10557
10557
  id: file.fileId,
10558
10558
  fileId: file.fileId,
10559
10559
  refId: file.refId,
10560
10560
  refType: file.refType,
10561
10561
  size: file.size,
10562
10562
  name: file.name,
10563
- }));
10563
+ url: file.binary ? await this.fileService.blobToBase64(file.binary) : undefined,
10564
+ })));
10564
10565
  }
10565
10566
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCFileStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
10566
10567
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCFileStorageService }); }
@@ -43885,13 +43886,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
43885
43886
  class AXMReportViewerMockService extends AXPReportViewerService {
43886
43887
  constructor() {
43887
43888
  super(...arguments);
43888
- // override getCategories(parentId?: string): Promise<AXPReportCategory[]> {
43889
- // console.log("getCategories: ", parentId)
43890
- // return super.getCategories(parentId);
43889
+ // categories: AXPReportCategory[] = [
43890
+ // {
43891
+ // id: '1',
43892
+ // title: 'Root1',
43893
+ // childrenCount: 2,
43894
+ // itemsCount: 0,
43895
+ // },
43896
+ // {
43897
+ // id: '2',
43898
+ // title: 'Root2',
43899
+ // childrenCount: 1,
43900
+ // itemsCount: 0,
43901
+ // },
43902
+ // {
43903
+ // id: '3',
43904
+ // title: 'Root3',
43905
+ // childrenCount: 0,
43906
+ // itemsCount: 0,
43907
+ // },
43908
+ // {
43909
+ // id: '11',
43910
+ // parentId: '1',
43911
+ // title: 'sub-1',
43912
+ // childrenCount: 0,
43913
+ // itemsCount: 0,
43914
+ // },
43915
+ // {
43916
+ // id: '12',
43917
+ // parentId: '1',
43918
+ // title: 'sub-12',
43919
+ // childrenCount: 0,
43920
+ // itemsCount: 0,
43921
+ // },
43922
+ // {
43923
+ // id: '21',
43924
+ // parentId: '2',
43925
+ // title: 'sub-21',
43926
+ // childrenCount: 0,
43927
+ // itemsCount: 0,
43928
+ // },
43929
+ // ];
43930
+ // override async getCategories(parentId?: string): Promise<AXPReportCategory[]> {
43931
+ // debugger;
43932
+ // const result = this.categories.filter(
43933
+ // (c) => (c.parentId == null && parentId == null) || (parentId && c.parentId == parentId),
43934
+ // );
43935
+ // return result;
43891
43936
  // }
43892
- // override getCategoryById(categoryId: string): Promise<AXPReportCategory | undefined> {
43893
- // console.log("getCategoryById: ", categoryId);
43894
- // return super.getCategoryById(categoryId);
43937
+ // // override getCategories(parentId?: string): Promise<AXPReportCategory[]> {
43938
+ // // console.log("getCategories: ", parentId)
43939
+ // // return super.getCategories(parentId);
43940
+ // // }
43941
+ // override async getCategoryById(categoryId: string): Promise<AXPReportCategory | undefined> {
43942
+ // return this.categories.find(c => c.id == categoryId);
43895
43943
  // }
43896
43944
  //#region ---- Dependencies ----
43897
43945
  this.queryService = inject(AXPQueryService);