@acorex/connectivity 18.2.0 → 18.2.1
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.
- package/esm2022/mock/lib/conversation/comments/comment.mock.data.mjs +73 -0
- package/esm2022/mock/lib/conversation/comments/comment.mock.service.mjs +77 -0
- package/esm2022/mock/lib/conversation/comments/comment.seeder.mjs +18 -0
- package/esm2022/mock/lib/conversation/comments/index.mjs +4 -0
- package/esm2022/mock/lib/form-management/datasource-provider.mock.service.mjs +37 -0
- package/esm2022/mock/lib/form-management/designer-connector.mock.service.mjs +4 -49
- package/esm2022/mock/lib/form-management/form-management-mock.module.mjs +41 -0
- package/esm2022/mock/lib/localization-management/culture/culture.mock.data.mjs +16 -0
- package/esm2022/mock/lib/localization-management/culture/culture.seeder.mjs +19 -0
- package/esm2022/mock/lib/localization-management/culture/index.mjs +3 -0
- package/esm2022/mock/lib/localization-management/index.mjs +4 -0
- package/esm2022/mock/lib/localization-management/languages/index.mjs +3 -0
- package/esm2022/mock/lib/localization-management/languages/language.mock.data.mjs +14 -0
- package/esm2022/mock/lib/localization-management/languages/language.seeder.mjs +19 -0
- package/esm2022/mock/lib/localization-management/time-zone/index.mjs +3 -0
- package/esm2022/mock/lib/localization-management/time-zone/time-zone.mock.data.mjs +31 -0
- package/esm2022/mock/lib/localization-management/time-zone/time-zone.seeder.mjs +19 -0
- package/esm2022/mock/lib/mock.module.mjs +48 -16
- package/esm2022/mock/lib/platform-management/country/country.mock.data.mjs +76 -0
- package/esm2022/mock/lib/platform-management/country/country.seeder.mjs +19 -0
- package/esm2022/mock/lib/platform-management/country/index.mjs +3 -0
- package/esm2022/mock/lib/platform-management/currency/currency.mock.data.mjs +22 -0
- package/esm2022/mock/lib/platform-management/currency/currency.seeder.mjs +19 -0
- package/esm2022/mock/lib/platform-management/currency/index.mjs +3 -0
- package/esm2022/mock/lib/platform-management/index.mjs +3 -2
- package/fesm2022/acorex-connectivity-mock.mjs +368 -112
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/lib/{comments → conversation/comments}/comment.mock.service.d.ts +1 -2
- package/mock/lib/form-management/datasource-provider.mock.service.d.ts +4 -0
- package/mock/lib/form-management/designer-connector.mock.service.d.ts +2 -4
- package/mock/lib/form-management/form-management-mock.module.d.ts +6 -0
- package/mock/lib/localization-management/culture/culture.mock.data.d.ts +31 -0
- package/mock/lib/localization-management/culture/culture.seeder.d.ts +8 -0
- package/mock/lib/localization-management/culture/index.d.ts +2 -0
- package/mock/lib/localization-management/index.d.ts +3 -0
- package/mock/lib/localization-management/languages/index.d.ts +2 -0
- package/mock/lib/localization-management/time-zone/index.d.ts +2 -0
- package/mock/lib/localization-management/time-zone/time-zone.mock.data.d.ts +9 -0
- package/mock/lib/localization-management/time-zone/time-zone.seeder.d.ts +8 -0
- package/mock/lib/mock.module.d.ts +2 -1
- package/mock/lib/platform-management/country/country.mock.data.d.ts +18 -0
- package/mock/lib/platform-management/country/country.seeder.d.ts +8 -0
- package/mock/lib/platform-management/country/index.d.ts +2 -0
- package/mock/lib/platform-management/currency/currency.mock.data.d.ts +6 -0
- package/mock/lib/platform-management/currency/currency.seeder.d.ts +8 -0
- package/mock/lib/platform-management/currency/index.d.ts +2 -0
- package/mock/lib/platform-management/index.d.ts +2 -1
- package/package.json +1 -1
- package/esm2022/mock/lib/comments/comment.mock.data.mjs +0 -73
- package/esm2022/mock/lib/comments/comment.mock.service.mjs +0 -77
- package/esm2022/mock/lib/comments/comment.seeder.mjs +0 -18
- package/esm2022/mock/lib/comments/index.mjs +0 -4
- package/esm2022/mock/lib/platform-management/languages/index.mjs +0 -3
- package/esm2022/mock/lib/platform-management/languages/language.seeder.mjs +0 -18
- package/esm2022/mock/lib/platform-management/languages/lanuage.mock.data.mjs +0 -14
- package/mock/lib/platform-management/languages/index.d.ts +0 -2
- /package/mock/lib/{comments → conversation/comments}/comment.mock.data.d.ts +0 -0
- /package/mock/lib/{comments → conversation/comments}/comment.seeder.d.ts +0 -0
- /package/mock/lib/{comments → conversation/comments}/index.d.ts +0 -0
- /package/mock/lib/{platform-management/languages/lanuage.mock.data.d.ts → localization-management/languages/language.mock.data.d.ts} +0 -0
- /package/mock/lib/{platform-management → localization-management}/languages/language.seeder.d.ts +0 -0
@@ -1,13 +1,15 @@
|
|
1
|
-
import { AXMCommentService } from '@acorex/modules/conversation';
|
1
|
+
import { AXPCommentServiceImpl, AXMCommentService } from '@acorex/modules/conversation';
|
2
2
|
import { AXMNotificationService } from '@acorex/modules/notification-management';
|
3
3
|
import { AXPDataGenerator, AXPDexieEntityStorageService, AXPEntityStorageService, AXP_DATA_SEEDER_TOKEN } from '@acorex/platform/common';
|
4
|
-
import { AXPDesignerConnectorAbstract } from '@acorex/platform/layout/designer';
|
5
4
|
import * as i0 from '@angular/core';
|
6
5
|
import { inject, Injectable, NgModule } from '@angular/core';
|
7
6
|
import { APPLICATION_SOURCE_NAME, MODULE_SOURCE_NAME, ENTITY_SOURCE_NAME, FEATURE_SOURCE_NAME, PERMISSION_SOURCE_NAME, PROPERTY_SOURCE_NAME } from '@acorex/modules/application-management';
|
8
|
-
import { AXPCommentServiceImpl } from '@acorex/modules/platform-management';
|
9
7
|
import { AXPSessionService } from '@acorex/platform/auth';
|
8
|
+
import { AXP_WIDGET_DATASOURCE_PROVIDER } from '@acorex/platform/layout/builder';
|
9
|
+
import { AXPDesignerConnectorAbstract } from '@acorex/platform/layout/designer';
|
10
10
|
import { convertArrayToDataSource } from '@acorex/components/common';
|
11
|
+
import { LANGUAGE_SOURCE_NAME, CULTURE_SOURCE_NAME, TIMEZONE_SOURCE_NAME } from '@acorex/modules/localization-management';
|
12
|
+
import { CURRENCY_SOURCE_NAME, COUNTRY_SOURCE_NAME } from '@acorex/modules/platform-management';
|
11
13
|
import { CATEGORY_SOURCE_NAME, TEMPLATE_SOURCE_NAME } from '@acorex/modules/template-management';
|
12
14
|
|
13
15
|
const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
|
@@ -298,59 +300,339 @@ class AXMCommentMockService extends AXPCommentServiceImpl {
|
|
298
300
|
}
|
299
301
|
}
|
300
302
|
|
301
|
-
class
|
302
|
-
|
303
|
-
async getDataSourcesNames() {
|
303
|
+
class AXPMockWidgetDataSourceProvider {
|
304
|
+
async items() {
|
304
305
|
return [
|
305
306
|
{
|
306
|
-
|
307
|
-
title:
|
307
|
+
name: 'mock.users',
|
308
|
+
title: 'Users',
|
309
|
+
columns: [],
|
310
|
+
samples: [
|
311
|
+
{
|
312
|
+
id: '2',
|
313
|
+
title: 'Alex Jakson',
|
314
|
+
},
|
315
|
+
{
|
316
|
+
id: '3',
|
317
|
+
title: 'Emma Smith',
|
318
|
+
},
|
319
|
+
],
|
320
|
+
source: () => convertArrayToDataSource([
|
321
|
+
{
|
322
|
+
id: '1',
|
323
|
+
title: 'Arash Oshnoudi',
|
324
|
+
},
|
325
|
+
{
|
326
|
+
id: '2',
|
327
|
+
title: 'Alex Smith',
|
328
|
+
},
|
329
|
+
{
|
330
|
+
id: '3',
|
331
|
+
title: 'Emma Jakson',
|
332
|
+
},
|
333
|
+
]),
|
308
334
|
},
|
309
|
-
{
|
310
|
-
id: "users",
|
311
|
-
title: "Users"
|
312
|
-
}
|
313
335
|
];
|
314
336
|
}
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
337
|
+
}
|
338
|
+
|
339
|
+
class AXPMockDesignerConnector extends AXPDesignerConnectorAbstract {
|
340
|
+
//#region Save and load Widgets
|
341
|
+
save() {
|
342
|
+
throw new Error('Method not implemented.');
|
343
|
+
}
|
344
|
+
load(id) {
|
345
|
+
throw new Error('Method not implemented.');
|
346
|
+
}
|
347
|
+
}
|
348
|
+
|
349
|
+
class AXCFormManagementMockModule {
|
350
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCFormManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
351
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXCFormManagementMockModule }); }
|
352
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCFormManagementMockModule, providers: [
|
353
|
+
{
|
354
|
+
provide: AXPDesignerConnectorAbstract,
|
355
|
+
useClass: AXPMockDesignerConnector,
|
356
|
+
},
|
357
|
+
{
|
358
|
+
provide: AXP_WIDGET_DATASOURCE_PROVIDER,
|
359
|
+
useClass: AXPMockWidgetDataSourceProvider,
|
360
|
+
multi: true,
|
361
|
+
},
|
362
|
+
] }); }
|
363
|
+
}
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCFormManagementMockModule, decorators: [{
|
365
|
+
type: NgModule,
|
366
|
+
args: [{
|
367
|
+
imports: [],
|
368
|
+
exports: [],
|
369
|
+
declarations: [],
|
370
|
+
providers: [
|
331
371
|
{
|
332
|
-
|
333
|
-
|
372
|
+
provide: AXPDesignerConnectorAbstract,
|
373
|
+
useClass: AXPMockDesignerConnector,
|
334
374
|
},
|
335
375
|
{
|
336
|
-
|
337
|
-
|
376
|
+
provide: AXP_WIDGET_DATASOURCE_PROVIDER,
|
377
|
+
useClass: AXPMockWidgetDataSourceProvider,
|
378
|
+
multi: true,
|
338
379
|
},
|
339
|
-
]
|
340
|
-
}
|
341
|
-
|
342
|
-
|
343
|
-
|
380
|
+
],
|
381
|
+
}]
|
382
|
+
}] });
|
383
|
+
|
384
|
+
const LANGUAGES = [
|
385
|
+
{
|
386
|
+
id: AXPDataGenerator.uuid(),
|
387
|
+
title: 'English',
|
388
|
+
code: 'en'
|
389
|
+
},
|
390
|
+
{
|
391
|
+
id: AXPDataGenerator.uuid(),
|
392
|
+
title: 'Persian',
|
393
|
+
code: 'fa'
|
344
394
|
}
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
395
|
+
];
|
396
|
+
|
397
|
+
class AXPLanguageDataSeeder {
|
398
|
+
constructor() {
|
399
|
+
this.storageService = inject(AXPDexieEntityStorageService);
|
349
400
|
}
|
350
|
-
|
351
|
-
|
401
|
+
async seed() {
|
402
|
+
await this.storageService.initial(LANGUAGE_SOURCE_NAME, LANGUAGES);
|
352
403
|
}
|
404
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLanguageDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
405
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLanguageDataSeeder }); }
|
353
406
|
}
|
407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLanguageDataSeeder, decorators: [{
|
408
|
+
type: Injectable
|
409
|
+
}] });
|
410
|
+
|
411
|
+
const names = ['key', 'counter', 'logo', 'tenant'];
|
412
|
+
const data = [
|
413
|
+
['key1', 'string'],
|
414
|
+
['sequence', 'integer'],
|
415
|
+
['appLogo', 'function'],
|
416
|
+
['CompanyName', 'function'],
|
417
|
+
];
|
418
|
+
const GLOBAL_VARIABLES = Array.from({ length: 4 }).map((element, i) => {
|
419
|
+
return {
|
420
|
+
id: AXPDataGenerator.uuid(),
|
421
|
+
name: names[i],
|
422
|
+
title: names[i],
|
423
|
+
dataType: data[i][1],
|
424
|
+
dataValue: data[i][0],
|
425
|
+
};
|
426
|
+
});
|
427
|
+
|
428
|
+
class AXPGlobalVariablesDataSeeder {
|
429
|
+
constructor() {
|
430
|
+
this.storageService = inject(AXPDexieEntityStorageService);
|
431
|
+
}
|
432
|
+
async seed() {
|
433
|
+
await this.storageService.initial('globalVariable', GLOBAL_VARIABLES);
|
434
|
+
}
|
435
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGlobalVariablesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
436
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGlobalVariablesDataSeeder }); }
|
437
|
+
}
|
438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGlobalVariablesDataSeeder, decorators: [{
|
439
|
+
type: Injectable
|
440
|
+
}] });
|
441
|
+
|
442
|
+
const Currencies = [
|
443
|
+
{
|
444
|
+
id: AXPDataGenerator.uuid(),
|
445
|
+
code: 'AFN',
|
446
|
+
title: 'Afghan afghani',
|
447
|
+
symbol: '؋',
|
448
|
+
},
|
449
|
+
{
|
450
|
+
id: AXPDataGenerator.uuid(),
|
451
|
+
code: 'EUR',
|
452
|
+
title: 'Euro',
|
453
|
+
symbol: '€',
|
454
|
+
},
|
455
|
+
{
|
456
|
+
id: AXPDataGenerator.uuid(),
|
457
|
+
code: 'JPY',
|
458
|
+
title: 'Japanese Yen',
|
459
|
+
symbol: '¥',
|
460
|
+
},
|
461
|
+
];
|
462
|
+
|
463
|
+
class AXPCurrencyDataSeeder {
|
464
|
+
constructor() {
|
465
|
+
this.storageService = inject(AXPDexieEntityStorageService);
|
466
|
+
}
|
467
|
+
async seed() {
|
468
|
+
await this.storageService.initial(CURRENCY_SOURCE_NAME, Currencies);
|
469
|
+
}
|
470
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCurrencyDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
471
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCurrencyDataSeeder }); }
|
472
|
+
}
|
473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCurrencyDataSeeder, decorators: [{
|
474
|
+
type: Injectable
|
475
|
+
}] });
|
476
|
+
|
477
|
+
const COUNTRIES = [
|
478
|
+
{
|
479
|
+
id: AXPDataGenerator.uuid(),
|
480
|
+
title: 'Afghanistan',
|
481
|
+
iso2: 'AF',
|
482
|
+
iso3: 'AFG',
|
483
|
+
numericCode: '004',
|
484
|
+
phoneCode: '93',
|
485
|
+
capital: 'Kabul',
|
486
|
+
tld: '.af',
|
487
|
+
nativeName: 'افغانستان',
|
488
|
+
region: 'Asia',
|
489
|
+
subregion: 'Southern Asia',
|
490
|
+
nationality: 'Afghan',
|
491
|
+
geo: {
|
492
|
+
latitude: '33.00000000',
|
493
|
+
longitude: '65.00000000',
|
494
|
+
},
|
495
|
+
},
|
496
|
+
{
|
497
|
+
id: AXPDataGenerator.uuid(),
|
498
|
+
title: 'United States',
|
499
|
+
iso2: 'US',
|
500
|
+
iso3: 'USA',
|
501
|
+
numericCode: '840',
|
502
|
+
phoneCode: '1',
|
503
|
+
capital: 'Washington, D.C.',
|
504
|
+
tld: '.us',
|
505
|
+
nativeName: 'United States',
|
506
|
+
region: 'Americas',
|
507
|
+
subregion: 'Northern America',
|
508
|
+
nationality: 'American',
|
509
|
+
geo: {
|
510
|
+
latitude: '37.0902',
|
511
|
+
longitude: '-95.7129',
|
512
|
+
},
|
513
|
+
},
|
514
|
+
{
|
515
|
+
id: AXPDataGenerator.uuid(),
|
516
|
+
title: 'France',
|
517
|
+
iso2: 'FR',
|
518
|
+
iso3: 'FRA',
|
519
|
+
numericCode: '250',
|
520
|
+
phoneCode: '33',
|
521
|
+
capital: 'Paris',
|
522
|
+
tld: '.fr',
|
523
|
+
nativeName: 'France',
|
524
|
+
region: 'Europe',
|
525
|
+
subregion: 'Western Europe',
|
526
|
+
nationality: 'French',
|
527
|
+
geo: {
|
528
|
+
latitude: '46.6034',
|
529
|
+
longitude: '1.8883',
|
530
|
+
},
|
531
|
+
},
|
532
|
+
{
|
533
|
+
id: AXPDataGenerator.uuid(),
|
534
|
+
title: 'Japan',
|
535
|
+
iso2: 'JP',
|
536
|
+
iso3: 'JPN',
|
537
|
+
numericCode: '392',
|
538
|
+
phoneCode: '81',
|
539
|
+
capital: 'Tokyo',
|
540
|
+
tld: '.jp',
|
541
|
+
nativeName: '日本',
|
542
|
+
region: 'Asia',
|
543
|
+
subregion: 'Eastern Asia',
|
544
|
+
nationality: 'Japanese',
|
545
|
+
geo: {
|
546
|
+
latitude: '36.2048',
|
547
|
+
longitude: '138.2529',
|
548
|
+
},
|
549
|
+
},
|
550
|
+
];
|
551
|
+
|
552
|
+
class AXPCountryDataSeeder {
|
553
|
+
constructor() {
|
554
|
+
this.storageService = inject(AXPDexieEntityStorageService);
|
555
|
+
}
|
556
|
+
async seed() {
|
557
|
+
await this.storageService.initial(COUNTRY_SOURCE_NAME, COUNTRIES);
|
558
|
+
}
|
559
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCountryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
560
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCountryDataSeeder }); }
|
561
|
+
}
|
562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCountryDataSeeder, decorators: [{
|
563
|
+
type: Injectable
|
564
|
+
}] });
|
565
|
+
|
566
|
+
const CULTURES = [
|
567
|
+
{
|
568
|
+
id: AXPDataGenerator.uuid(),
|
569
|
+
name: 'English (United States)',
|
570
|
+
title: 'English (United States)',
|
571
|
+
language: LANGUAGES[0],
|
572
|
+
country: COUNTRIES[0], // Assuming 'unitedStates' is defined as in previous examples
|
573
|
+
locale: 'en-US', //TODO need define in backend Getter just
|
574
|
+
dateFormat: 'MM/DD/YYYY',
|
575
|
+
timeFormat: 'hh:mm:ss A',
|
576
|
+
},
|
577
|
+
];
|
578
|
+
|
579
|
+
class AXPCultureDataSeeder {
|
580
|
+
constructor() {
|
581
|
+
this.storageService = inject(AXPDexieEntityStorageService);
|
582
|
+
}
|
583
|
+
async seed() {
|
584
|
+
await this.storageService.initial(CULTURE_SOURCE_NAME, CULTURES);
|
585
|
+
}
|
586
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCultureDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
587
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCultureDataSeeder }); }
|
588
|
+
}
|
589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCultureDataSeeder, decorators: [{
|
590
|
+
type: Injectable
|
591
|
+
}] });
|
592
|
+
|
593
|
+
const TIME_ZONES = [
|
594
|
+
{
|
595
|
+
id: AXPDataGenerator.uuid(),
|
596
|
+
name: 'Asia/Kabul',
|
597
|
+
title: 'Asia/Kabul',
|
598
|
+
gmtOffset: 16200,
|
599
|
+
gmtOffsetName: 'UTC+04:30',
|
600
|
+
abbreviation: 'AFT',
|
601
|
+
tzName: 'Afghanistan Time',
|
602
|
+
},
|
603
|
+
{
|
604
|
+
id: AXPDataGenerator.uuid(),
|
605
|
+
name: 'America/New_York',
|
606
|
+
title: 'America/New_York',
|
607
|
+
gmtOffset: -18000, // -5 hours in seconds
|
608
|
+
gmtOffsetName: 'UTC-05:00',
|
609
|
+
abbreviation: 'EST',
|
610
|
+
tzName: 'Eastern Standard Time',
|
611
|
+
},
|
612
|
+
{
|
613
|
+
id: AXPDataGenerator.uuid(),
|
614
|
+
name: 'Europe/Amsterdam',
|
615
|
+
title: 'Europe/Amsterdam',
|
616
|
+
gmtOffset: 3600, // 1 hour in seconds
|
617
|
+
gmtOffsetName: 'UTC+01:00',
|
618
|
+
abbreviation: 'CET',
|
619
|
+
tzName: 'Central European Time',
|
620
|
+
},
|
621
|
+
];
|
622
|
+
|
623
|
+
class AXPTimeZoneDataSeeder {
|
624
|
+
constructor() {
|
625
|
+
this.storageService = inject(AXPDexieEntityStorageService);
|
626
|
+
}
|
627
|
+
async seed() {
|
628
|
+
await this.storageService.initial(TIMEZONE_SOURCE_NAME, TIME_ZONES);
|
629
|
+
}
|
630
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTimeZoneDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
631
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTimeZoneDataSeeder }); }
|
632
|
+
}
|
633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTimeZoneDataSeeder, decorators: [{
|
634
|
+
type: Injectable
|
635
|
+
}] });
|
354
636
|
|
355
637
|
class AXMMockNotificationService {
|
356
638
|
constructor() {
|
@@ -424,64 +706,6 @@ function generateNotification() {
|
|
424
706
|
};
|
425
707
|
}
|
426
708
|
|
427
|
-
const names = ['key', 'counter', 'logo', 'tenant'];
|
428
|
-
const data = [
|
429
|
-
['key1', 'string'],
|
430
|
-
['sequence', 'integer'],
|
431
|
-
['appLogo', 'function'],
|
432
|
-
['CompanyName', 'function'],
|
433
|
-
];
|
434
|
-
const GLOBAL_VARIABLES = Array.from({ length: 4 }).map((element, i) => {
|
435
|
-
return {
|
436
|
-
id: AXPDataGenerator.uuid(),
|
437
|
-
name: names[i],
|
438
|
-
title: names[i],
|
439
|
-
dataType: data[i][1],
|
440
|
-
dataValue: data[i][0],
|
441
|
-
};
|
442
|
-
});
|
443
|
-
|
444
|
-
class AXPGlobalVariablesDataSeeder {
|
445
|
-
constructor() {
|
446
|
-
this.storageService = inject(AXPDexieEntityStorageService);
|
447
|
-
}
|
448
|
-
async seed() {
|
449
|
-
await this.storageService.initial('globalVariable', GLOBAL_VARIABLES);
|
450
|
-
}
|
451
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGlobalVariablesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
452
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGlobalVariablesDataSeeder }); }
|
453
|
-
}
|
454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGlobalVariablesDataSeeder, decorators: [{
|
455
|
-
type: Injectable
|
456
|
-
}] });
|
457
|
-
|
458
|
-
const LANGUAGES = [
|
459
|
-
{
|
460
|
-
id: AXPDataGenerator.uuid(),
|
461
|
-
title: 'English',
|
462
|
-
code: 'en'
|
463
|
-
},
|
464
|
-
{
|
465
|
-
id: AXPDataGenerator.uuid(),
|
466
|
-
title: 'Persian',
|
467
|
-
code: 'fa'
|
468
|
-
}
|
469
|
-
];
|
470
|
-
|
471
|
-
class AXPLanguageDataSeeder {
|
472
|
-
constructor() {
|
473
|
-
this.storageService = inject(AXPDexieEntityStorageService);
|
474
|
-
}
|
475
|
-
async seed() {
|
476
|
-
await this.storageService.initial('language', LANGUAGES);
|
477
|
-
}
|
478
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLanguageDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
479
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLanguageDataSeeder }); }
|
480
|
-
}
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLanguageDataSeeder, decorators: [{
|
482
|
-
type: Injectable
|
483
|
-
}] });
|
484
|
-
|
485
709
|
const TEXT_TEMPLATE_CATEGORY = [
|
486
710
|
{
|
487
711
|
id: AXPDataGenerator.uuid(),
|
@@ -629,17 +853,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
629
853
|
|
630
854
|
class AXCMockModule {
|
631
855
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
632
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXCMockModule }); }
|
856
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXCMockModule, imports: [AXCFormManagementMockModule] }); }
|
633
857
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCMockModule, providers: [
|
634
858
|
AXPDexieEntityStorageService,
|
635
859
|
{
|
636
860
|
provide: AXMNotificationService,
|
637
861
|
useClass: AXMMockNotificationService,
|
638
862
|
},
|
639
|
-
{
|
640
|
-
provide: AXPDesignerConnectorAbstract,
|
641
|
-
useClass: AXPMockDesignerConnector,
|
642
|
-
},
|
643
863
|
{
|
644
864
|
provide: AXPEntityStorageService,
|
645
865
|
useClass: AXPDexieEntityStorageService,
|
@@ -669,16 +889,36 @@ class AXCMockModule {
|
|
669
889
|
useClass: AXPApplicationTemplateDataSeeder,
|
670
890
|
multi: true,
|
671
891
|
},
|
892
|
+
{
|
893
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
894
|
+
useClass: AXPCurrencyDataSeeder,
|
895
|
+
multi: true,
|
896
|
+
},
|
897
|
+
{
|
898
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
899
|
+
useClass: AXPTimeZoneDataSeeder,
|
900
|
+
multi: true,
|
901
|
+
},
|
902
|
+
{
|
903
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
904
|
+
useClass: AXPCountryDataSeeder,
|
905
|
+
multi: true,
|
906
|
+
},
|
907
|
+
{
|
908
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
909
|
+
useClass: AXPCultureDataSeeder,
|
910
|
+
multi: true,
|
911
|
+
},
|
672
912
|
{
|
673
913
|
provide: AXMCommentService,
|
674
914
|
useClass: AXMCommentMockService,
|
675
915
|
},
|
676
|
-
] }); }
|
916
|
+
], imports: [AXCFormManagementMockModule] }); }
|
677
917
|
}
|
678
918
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXCMockModule, decorators: [{
|
679
919
|
type: NgModule,
|
680
920
|
args: [{
|
681
|
-
imports: [],
|
921
|
+
imports: [AXCFormManagementMockModule],
|
682
922
|
exports: [],
|
683
923
|
declarations: [],
|
684
924
|
providers: [
|
@@ -687,10 +927,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
687
927
|
provide: AXMNotificationService,
|
688
928
|
useClass: AXMMockNotificationService,
|
689
929
|
},
|
690
|
-
{
|
691
|
-
provide: AXPDesignerConnectorAbstract,
|
692
|
-
useClass: AXPMockDesignerConnector,
|
693
|
-
},
|
694
930
|
{
|
695
931
|
provide: AXPEntityStorageService,
|
696
932
|
useClass: AXPDexieEntityStorageService,
|
@@ -720,6 +956,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
720
956
|
useClass: AXPApplicationTemplateDataSeeder,
|
721
957
|
multi: true,
|
722
958
|
},
|
959
|
+
{
|
960
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
961
|
+
useClass: AXPCurrencyDataSeeder,
|
962
|
+
multi: true,
|
963
|
+
},
|
964
|
+
{
|
965
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
966
|
+
useClass: AXPTimeZoneDataSeeder,
|
967
|
+
multi: true,
|
968
|
+
},
|
969
|
+
{
|
970
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
971
|
+
useClass: AXPCountryDataSeeder,
|
972
|
+
multi: true,
|
973
|
+
},
|
974
|
+
{
|
975
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
976
|
+
useClass: AXPCultureDataSeeder,
|
977
|
+
multi: true,
|
978
|
+
},
|
723
979
|
{
|
724
980
|
provide: AXMCommentService,
|
725
981
|
useClass: AXMCommentMockService,
|