@acorex/connectivity 20.7.8 → 20.7.10

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.
@@ -2316,203 +2316,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2316
2316
  type: Injectable
2317
2317
  }] });
2318
2318
 
2319
- const currenciesMock = [
2319
+ const financialCoreCurrencyMocks = [
2320
2320
  {
2321
2321
  id: AXPDataGenerator.uuid(),
2322
2322
  code: 'USD',
2323
2323
  title: 'US Dollar',
2324
2324
  symbol: '$',
2325
+ isoNumber: '840',
2325
2326
  decimalPlaces: 2,
2326
- isActive: true,
2327
- created: { at: new Date('2024-01-01') },
2328
- updated: { at: new Date('2024-01-01') },
2327
+ thousandSeparator: ',',
2328
+ decimalSeparator: '.',
2329
+ formatPattern: '$ #,##0.00',
2330
+ isDefault: true,
2331
+ isDisabled: false,
2329
2332
  },
2330
2333
  {
2331
2334
  id: AXPDataGenerator.uuid(),
2332
2335
  code: 'EUR',
2333
2336
  title: 'Euro',
2334
2337
  symbol: '€',
2338
+ isoNumber: '978',
2335
2339
  decimalPlaces: 2,
2336
- isActive: true,
2337
- created: { at: new Date('2024-01-01') },
2338
- updated: { at: new Date('2024-01-01') },
2339
- },
2340
- {
2341
- id: AXPDataGenerator.uuid(),
2342
- code: 'GBP',
2343
- title: 'British Pound Sterling',
2344
- symbol: '£',
2345
- decimalPlaces: 2,
2346
- isActive: true,
2347
- created: { at: new Date('2024-01-01') },
2348
- updated: { at: new Date('2024-01-01') },
2349
- },
2350
- {
2351
- id: AXPDataGenerator.uuid(),
2352
- code: 'JPY',
2353
- title: 'Japanese Yen',
2354
- symbol: '¥',
2355
- decimalPlaces: 0,
2356
- isActive: true,
2357
- created: { at: new Date('2024-01-01') },
2358
- updated: { at: new Date('2024-01-01') },
2359
- },
2360
- {
2361
- id: AXPDataGenerator.uuid(),
2362
- code: 'CHF',
2363
- title: 'Swiss Franc',
2364
- symbol: 'CHF',
2365
- decimalPlaces: 2,
2366
- isActive: true,
2367
- created: { at: new Date('2024-01-01') },
2368
- updated: { at: new Date('2024-01-01') },
2369
- },
2370
- {
2371
- id: AXPDataGenerator.uuid(),
2372
- code: 'CAD',
2373
- title: 'Canadian Dollar',
2374
- symbol: 'C$',
2375
- decimalPlaces: 2,
2376
- isActive: true,
2377
- created: { at: new Date('2024-01-01') },
2378
- updated: { at: new Date('2024-01-01') },
2379
- },
2380
- {
2381
- id: AXPDataGenerator.uuid(),
2382
- code: 'AUD',
2383
- title: 'Australian Dollar',
2384
- symbol: 'A$',
2385
- decimalPlaces: 2,
2386
- isActive: true,
2387
- created: { at: new Date('2024-01-01') },
2388
- updated: { at: new Date('2024-01-01') },
2389
- },
2390
- {
2391
- id: AXPDataGenerator.uuid(),
2392
- code: 'CNY',
2393
- title: 'Chinese Yuan',
2394
- symbol: '¥',
2395
- decimalPlaces: 2,
2396
- isActive: true,
2397
- created: { at: new Date('2024-01-01') },
2398
- updated: { at: new Date('2024-01-01') },
2399
- },
2400
- {
2401
- id: AXPDataGenerator.uuid(),
2402
- code: 'INR',
2403
- title: 'Indian Rupee',
2404
- symbol: '₹',
2405
- decimalPlaces: 2,
2406
- isActive: true,
2407
- created: { at: new Date('2024-01-01') },
2408
- updated: { at: new Date('2024-01-01') },
2409
- },
2410
- {
2411
- id: AXPDataGenerator.uuid(),
2412
- code: 'BRL',
2413
- title: 'Brazilian Real',
2414
- symbol: 'R$',
2415
- decimalPlaces: 2,
2416
- isActive: true,
2417
- created: { at: new Date('2024-01-01') },
2418
- updated: { at: new Date('2024-01-01') },
2419
- },
2420
- {
2421
- id: AXPDataGenerator.uuid(),
2422
- code: 'MXN',
2423
- title: 'Mexican Peso',
2424
- symbol: 'MX$',
2425
- decimalPlaces: 2,
2426
- isActive: true,
2427
- created: { at: new Date('2024-01-01') },
2428
- updated: { at: new Date('2024-01-01') },
2429
- },
2430
- {
2431
- id: AXPDataGenerator.uuid(),
2432
- code: 'KRW',
2433
- title: 'South Korean Won',
2434
- symbol: '₩',
2435
- decimalPlaces: 0,
2436
- isActive: true,
2437
- created: { at: new Date('2024-01-01') },
2438
- updated: { at: new Date('2024-01-01') },
2439
- },
2440
- {
2441
- id: AXPDataGenerator.uuid(),
2442
- code: 'SGD',
2443
- title: 'Singapore Dollar',
2444
- symbol: 'S$',
2445
- decimalPlaces: 2,
2446
- isActive: true,
2447
- created: { at: new Date('2024-01-01') },
2448
- updated: { at: new Date('2024-01-01') },
2449
- },
2450
- {
2451
- id: AXPDataGenerator.uuid(),
2452
- code: 'IRR',
2453
- title: 'Iranian Rial',
2454
- symbol: '﷼',
2455
- decimalPlaces: 0,
2456
- isActive: true,
2457
- created: { at: new Date('2024-01-01') },
2458
- updated: { at: new Date('2024-01-01') },
2459
- },
2460
- {
2461
- id: AXPDataGenerator.uuid(),
2462
- code: 'AED',
2463
- title: 'UAE Dirham',
2464
- symbol: 'د.إ',
2465
- decimalPlaces: 2,
2466
- isActive: true,
2467
- created: { at: new Date('2024-01-01') },
2468
- updated: { at: new Date('2024-01-01') },
2469
- },
2470
- {
2471
- id: AXPDataGenerator.uuid(),
2472
- code: 'SAR',
2473
- title: 'Saudi Riyal',
2474
- symbol: '﷼',
2475
- decimalPlaces: 2,
2476
- isActive: true,
2477
- created: { at: new Date('2024-01-01') },
2478
- updated: { at: new Date('2024-01-01') },
2479
- },
2480
- {
2481
- id: AXPDataGenerator.uuid(),
2482
- code: 'AUD',
2483
- title: 'Australian Dollar',
2484
- symbol: 'A$',
2485
- decimalPlaces: 0,
2486
- isActive: true,
2487
- created: { at: new Date('2024-01-01') },
2488
- updated: { at: new Date('2024-01-01') },
2489
- },
2490
- {
2491
- id: AXPDataGenerator.uuid(),
2492
- code: 'NZD',
2493
- title: 'New Zealand Dollar',
2494
- symbol: 'NZ$',
2495
- decimalPlaces: 0,
2496
- isActive: true,
2497
- created: { at: new Date('2024-01-01') },
2498
- updated: { at: new Date('2024-01-01') },
2340
+ thousandSeparator: '.',
2341
+ decimalSeparator: ',',
2342
+ formatPattern: '#.##0,00 ',
2343
+ isDefault: false,
2344
+ isDisabled: false,
2499
2345
  },
2500
2346
  ];
2501
2347
 
2502
- class AXCCurrenciesDataSeeder {
2503
- constructor() {
2504
- this.storageService = inject(AXPEntityStorageService);
2505
- }
2506
- async seed() {
2507
- await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.currencies.name}`, currenciesMock);
2508
- }
2509
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCurrenciesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2510
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCurrenciesDataSeeder }); }
2511
- }
2512
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCurrenciesDataSeeder, decorators: [{
2513
- type: Injectable
2514
- }] });
2515
-
2516
2348
  const timezonesMock = [
2517
2349
  {
2518
2350
  id: AXPDataGenerator.uuid(),
@@ -2724,7 +2556,7 @@ const getValidTimezone = (iana) => {
2724
2556
  : { code: iana, title: iana };
2725
2557
  };
2726
2558
  const getValidCurrency = (code) => {
2727
- const curr = currenciesMock.find(c => c.code === code);
2559
+ const curr = financialCoreCurrencyMocks.find((c) => c.code === code);
2728
2560
  return curr ? { code: curr.code, title: curr.title } : { code, title: code };
2729
2561
  };
2730
2562
  // Generate fixed UUIDs for consistent parent-child relationships
@@ -10553,14 +10385,15 @@ class AXCFileStorageService {
10553
10385
  }
10554
10386
  async findMany(ids) {
10555
10387
  const files = await db.files.where('fileId').anyOf(ids).toArray();
10556
- return files.map((file) => ({
10388
+ return Promise.all(files.map(async (file) => ({
10557
10389
  id: file.fileId,
10558
10390
  fileId: file.fileId,
10559
10391
  refId: file.refId,
10560
10392
  refType: file.refType,
10561
10393
  size: file.size,
10562
10394
  name: file.name,
10563
- }));
10395
+ url: file.binary ? await this.fileService.blobToBase64(file.binary) : undefined,
10396
+ })));
10564
10397
  }
10565
10398
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCFileStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
10566
10399
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCFileStorageService }); }
@@ -15944,6 +15777,14 @@ const metadataCategoryMocks = (() => {
15944
15777
  childrenCount: 0,
15945
15778
  };
15946
15779
  ids.set('General', general.id);
15780
+ const location = {
15781
+ id: AXPDataGenerator.uuid(),
15782
+ title: 'Location',
15783
+ description: 'Geographic location metadata (country, province, city)',
15784
+ parentId: undefined,
15785
+ childrenCount: 0,
15786
+ };
15787
+ ids.set('Location', location.id);
15947
15788
  const documentManagement = {
15948
15789
  id: AXPDataGenerator.uuid(),
15949
15790
  title: 'Document Management',
@@ -16143,6 +15984,7 @@ const metadataCategoryMocks = (() => {
16143
15984
  ids.set('Cameras', cameras.id);
16144
15985
  return [
16145
15986
  general,
15987
+ location,
16146
15988
  documentManagement,
16147
15989
  qualityControl,
16148
15990
  compliance,
@@ -16292,6 +16134,75 @@ const METADATA_MOCK = [
16292
16134
  categoryIds: [findCategory$1('General').id],
16293
16135
  categories: [findCategory$1('General')],
16294
16136
  },
16137
+ // Location - Country / Province / City (uses existing datasources: countries, provinces, cities)
16138
+ {
16139
+ id: AXPDataGenerator.uuid(),
16140
+ name: 'country',
16141
+ title: 'Country',
16142
+ defaultValue: '',
16143
+ interface: {
16144
+ type: 'select-editor',
16145
+ options: {
16146
+ dataSource: 'countries',
16147
+ valueField: 'id',
16148
+ textField: 'title',
16149
+ placeholder: 'Select country',
16150
+ hasClearButton: true,
16151
+ },
16152
+ },
16153
+ categoryIds: [findCategory$1('Location').id],
16154
+ categories: [findCategory$1('Location')],
16155
+ },
16156
+ {
16157
+ id: AXPDataGenerator.uuid(),
16158
+ name: 'province',
16159
+ title: 'Province',
16160
+ defaultValue: '',
16161
+ interface: {
16162
+ type: 'select-editor',
16163
+ options: {
16164
+ dataSource: 'provinces',
16165
+ valueField: 'id',
16166
+ textField: 'title',
16167
+ placeholder: 'Select province',
16168
+ hasClearButton: true,
16169
+ filter: {
16170
+ logic: 'and',
16171
+ filters: [
16172
+ { field: 'parentId', operator: { type: 'equal' }, value: '{{ context.eval("country.id") }}' },
16173
+ ],
16174
+ },
16175
+ },
16176
+ triggers: [{ event: "{{ events.context('country') }}", action: '{{ widget.refresh() }}' }],
16177
+ },
16178
+ categoryIds: [findCategory$1('Location').id],
16179
+ categories: [findCategory$1('Location')],
16180
+ },
16181
+ {
16182
+ id: AXPDataGenerator.uuid(),
16183
+ name: 'city',
16184
+ title: 'City',
16185
+ defaultValue: '',
16186
+ interface: {
16187
+ type: 'select-editor',
16188
+ options: {
16189
+ dataSource: 'cities',
16190
+ valueField: 'id',
16191
+ textField: 'title',
16192
+ placeholder: 'Select city',
16193
+ hasClearButton: true,
16194
+ filter: {
16195
+ logic: 'and',
16196
+ filters: [
16197
+ { field: 'parentId', operator: { type: 'equal' }, value: '{{ context.eval("province.id") }}' },
16198
+ ],
16199
+ },
16200
+ },
16201
+ triggers: [{ event: "{{ events.context('province') }}", action: '{{ widget.refresh() }}' }],
16202
+ },
16203
+ categoryIds: [findCategory$1('Location').id],
16204
+ categories: [findCategory$1('Location')],
16205
+ },
16295
16206
  // Document Management - Version Control
16296
16207
  {
16297
16208
  id: AXPDataGenerator.uuid(),
@@ -19314,35 +19225,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
19314
19225
  }]
19315
19226
  }] });
19316
19227
 
19317
- const financialCoreCurrencyMocks = [
19318
- {
19319
- id: AXPDataGenerator.uuid(),
19320
- code: 'USD',
19321
- title: 'US Dollar',
19322
- symbol: '$',
19323
- isoNumber: '840',
19324
- decimalPlaces: 2,
19325
- thousandSeparator: ',',
19326
- decimalSeparator: '.',
19327
- formatPattern: '$ #,##0.00',
19328
- isDefault: true,
19329
- isDisabled: false,
19330
- },
19331
- {
19332
- id: AXPDataGenerator.uuid(),
19333
- code: 'EUR',
19334
- title: 'Euro',
19335
- symbol: '€',
19336
- isoNumber: '978',
19337
- decimalPlaces: 2,
19338
- thousandSeparator: '.',
19339
- decimalSeparator: ',',
19340
- formatPattern: '#.##0,00 €',
19341
- isDefault: false,
19342
- isDisabled: false,
19343
- },
19344
- ];
19345
-
19346
19228
  class AXCFiscalCurrencySeeder {
19347
19229
  constructor() {
19348
19230
  this.storageService = inject(AXPEntityStorageService);
@@ -31410,7 +31292,7 @@ class AXCMockCaptchaChallengeComponent extends AXPLoginChallengeComponentBase {
31410
31292
 
31411
31293
  <p class="captcha-hint">{{ '@auth:challenge.hint' | translate | async }}</p>
31412
31294
  </div>
31413
- `, isInline: true, styles: [".captcha-container{display:flex;flex-direction:column;gap:12px;padding:16px;border:2px solid var(--ax-color-primary-200);border-radius:12px;background:linear-gradient(135deg,var(--ax-color-primary-50) 0%,var(--ax-color-surface) 100%)}.captcha-header{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--ax-color-primary-700)}.captcha-icon{font-size:20px}.captcha-title{font-size:14px}.captcha-image-wrapper{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;background:#fff;border-radius:8px;border:1px solid var(--ax-color-neutral-200)}.captcha-image{height:48px;border-radius:4px;box-shadow:0 2px 4px #0000001a}.captcha-text{font-family:Courier New,monospace;font-size:24px;font-weight:700;letter-spacing:4px;padding:8px 16px;background:var(--ax-color-neutral-100);border-radius:4px}.refresh-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;background:var(--ax-color-primary-100);color:var(--ax-color-primary-600);cursor:pointer;transition:all .2s ease}.refresh-btn:hover:not(:disabled){background:var(--ax-color-primary-200);transform:rotate(90deg)}.refresh-btn:disabled{opacity:.5;cursor:not-allowed}.captcha-hint{font-size:12px;color:var(--ax-color-neutral-500);text-align:center;margin:0}\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "directive", type: i3.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }] }); }
31295
+ `, isInline: true, styles: [".captcha-container{display:flex;flex-direction:column;gap:12px;padding:16px;border:2px solid var(--ax-color-primary-200);border-radius:12px;background:linear-gradient(135deg,var(--ax-color-primary-50) 0%,var(--ax-color-surface) 100%)}.captcha-header{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--ax-color-primary-700)}.captcha-icon{font-size:20px}.captcha-title{font-size:14px}.captcha-image-wrapper{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;background:#fff;border-radius:8px;border:1px solid var(--ax-color-neutral-200)}.captcha-image{height:48px;border-radius:4px;box-shadow:0 2px 4px #0000001a}.captcha-text{font-family:Courier New,monospace;font-size:24px;font-weight:700;letter-spacing:4px;padding:8px 16px;background:var(--ax-color-neutral-100);border-radius:4px}.refresh-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;background:var(--ax-color-primary-100);color:var(--ax-color-primary-600);cursor:pointer;transition:all .2s ease}.refresh-btn:hover:not(:disabled){background:var(--ax-color-primary-200);transform:rotate(90deg)}.refresh-btn:disabled{opacity:.5;cursor:not-allowed}.captcha-hint{font-size:12px;color:var(--ax-color-neutral-500);text-align:center;margin:0}\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "directive", type: i3.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }] }); }
31414
31296
  }
31415
31297
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCMockCaptchaChallengeComponent, decorators: [{
31416
31298
  type: Component,
@@ -32627,11 +32509,6 @@ class AXCLocaleManagementMockModule {
32627
32509
  useClass: AXCTimezonesDataSeeder,
32628
32510
  multi: true,
32629
32511
  },
32630
- {
32631
- provide: AXP_DATA_SEEDER_TOKEN,
32632
- useClass: AXCCurrenciesDataSeeder,
32633
- multi: true,
32634
- },
32635
32512
  ] }); }
32636
32513
  }
32637
32514
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCLocaleManagementMockModule, decorators: [{
@@ -32653,11 +32530,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
32653
32530
  useClass: AXCTimezonesDataSeeder,
32654
32531
  multi: true,
32655
32532
  },
32656
- {
32657
- provide: AXP_DATA_SEEDER_TOKEN,
32658
- useClass: AXCCurrenciesDataSeeder,
32659
- multi: true,
32660
- },
32661
32533
  ],
32662
32534
  }]
32663
32535
  }] });
@@ -43885,13 +43757,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
43885
43757
  class AXMReportViewerMockService extends AXPReportViewerService {
43886
43758
  constructor() {
43887
43759
  super(...arguments);
43888
- // override getCategories(parentId?: string): Promise<AXPReportCategory[]> {
43889
- // console.log("getCategories: ", parentId)
43890
- // return super.getCategories(parentId);
43760
+ // categories: AXPReportCategory[] = [
43761
+ // {
43762
+ // id: '1',
43763
+ // title: 'Root1',
43764
+ // childrenCount: 2,
43765
+ // itemsCount: 0,
43766
+ // },
43767
+ // {
43768
+ // id: '2',
43769
+ // title: 'Root2',
43770
+ // childrenCount: 1,
43771
+ // itemsCount: 0,
43772
+ // },
43773
+ // {
43774
+ // id: '3',
43775
+ // title: 'Root3',
43776
+ // childrenCount: 0,
43777
+ // itemsCount: 0,
43778
+ // },
43779
+ // {
43780
+ // id: '11',
43781
+ // parentId: '1',
43782
+ // title: 'sub-1',
43783
+ // childrenCount: 0,
43784
+ // itemsCount: 0,
43785
+ // },
43786
+ // {
43787
+ // id: '12',
43788
+ // parentId: '1',
43789
+ // title: 'sub-12',
43790
+ // childrenCount: 0,
43791
+ // itemsCount: 0,
43792
+ // },
43793
+ // {
43794
+ // id: '21',
43795
+ // parentId: '2',
43796
+ // title: 'sub-21',
43797
+ // childrenCount: 0,
43798
+ // itemsCount: 0,
43799
+ // },
43800
+ // ];
43801
+ // override async getCategories(parentId?: string): Promise<AXPReportCategory[]> {
43802
+ // debugger;
43803
+ // const result = this.categories.filter(
43804
+ // (c) => (c.parentId == null && parentId == null) || (parentId && c.parentId == parentId),
43805
+ // );
43806
+ // return result;
43891
43807
  // }
43892
- // override getCategoryById(categoryId: string): Promise<AXPReportCategory | undefined> {
43893
- // console.log("getCategoryById: ", categoryId);
43894
- // return super.getCategoryById(categoryId);
43808
+ // // override getCategories(parentId?: string): Promise<AXPReportCategory[]> {
43809
+ // // console.log("getCategories: ", parentId)
43810
+ // // return super.getCategories(parentId);
43811
+ // // }
43812
+ // override async getCategoryById(categoryId: string): Promise<AXPReportCategory | undefined> {
43813
+ // return this.categories.find(c => c.id == categoryId);
43895
43814
  // }
43896
43815
  //#region ---- Dependencies ----
43897
43816
  this.queryService = inject(AXPQueryService);