@acorex/connectivity 20.7.9 → 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
@@ -15945,6 +15777,14 @@ const metadataCategoryMocks = (() => {
15945
15777
  childrenCount: 0,
15946
15778
  };
15947
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);
15948
15788
  const documentManagement = {
15949
15789
  id: AXPDataGenerator.uuid(),
15950
15790
  title: 'Document Management',
@@ -16144,6 +15984,7 @@ const metadataCategoryMocks = (() => {
16144
15984
  ids.set('Cameras', cameras.id);
16145
15985
  return [
16146
15986
  general,
15987
+ location,
16147
15988
  documentManagement,
16148
15989
  qualityControl,
16149
15990
  compliance,
@@ -16293,6 +16134,75 @@ const METADATA_MOCK = [
16293
16134
  categoryIds: [findCategory$1('General').id],
16294
16135
  categories: [findCategory$1('General')],
16295
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
+ },
16296
16206
  // Document Management - Version Control
16297
16207
  {
16298
16208
  id: AXPDataGenerator.uuid(),
@@ -19315,35 +19225,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
19315
19225
  }]
19316
19226
  }] });
19317
19227
 
19318
- const financialCoreCurrencyMocks = [
19319
- {
19320
- id: AXPDataGenerator.uuid(),
19321
- code: 'USD',
19322
- title: 'US Dollar',
19323
- symbol: '$',
19324
- isoNumber: '840',
19325
- decimalPlaces: 2,
19326
- thousandSeparator: ',',
19327
- decimalSeparator: '.',
19328
- formatPattern: '$ #,##0.00',
19329
- isDefault: true,
19330
- isDisabled: false,
19331
- },
19332
- {
19333
- id: AXPDataGenerator.uuid(),
19334
- code: 'EUR',
19335
- title: 'Euro',
19336
- symbol: '€',
19337
- isoNumber: '978',
19338
- decimalPlaces: 2,
19339
- thousandSeparator: '.',
19340
- decimalSeparator: ',',
19341
- formatPattern: '#.##0,00 €',
19342
- isDefault: false,
19343
- isDisabled: false,
19344
- },
19345
- ];
19346
-
19347
19228
  class AXCFiscalCurrencySeeder {
19348
19229
  constructor() {
19349
19230
  this.storageService = inject(AXPEntityStorageService);
@@ -31411,7 +31292,7 @@ class AXCMockCaptchaChallengeComponent extends AXPLoginChallengeComponentBase {
31411
31292
 
31412
31293
  <p class="captcha-hint">{{ '@auth:challenge.hint' | translate | async }}</p>
31413
31294
  </div>
31414
- `, 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" }] }); }
31415
31296
  }
31416
31297
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCMockCaptchaChallengeComponent, decorators: [{
31417
31298
  type: Component,
@@ -32628,11 +32509,6 @@ class AXCLocaleManagementMockModule {
32628
32509
  useClass: AXCTimezonesDataSeeder,
32629
32510
  multi: true,
32630
32511
  },
32631
- {
32632
- provide: AXP_DATA_SEEDER_TOKEN,
32633
- useClass: AXCCurrenciesDataSeeder,
32634
- multi: true,
32635
- },
32636
32512
  ] }); }
32637
32513
  }
32638
32514
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCLocaleManagementMockModule, decorators: [{
@@ -32654,11 +32530,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
32654
32530
  useClass: AXCTimezonesDataSeeder,
32655
32531
  multi: true,
32656
32532
  },
32657
- {
32658
- provide: AXP_DATA_SEEDER_TOKEN,
32659
- useClass: AXCCurrenciesDataSeeder,
32660
- multi: true,
32661
- },
32662
32533
  ],
32663
32534
  }]
32664
32535
  }] });