@acorex/modules 19.1.13 → 19.1.15

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.
Files changed (54) hide show
  1. package/fesm2022/{acorex-modules-form-template-management-category.entity-D8XA8ZaF.mjs → acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs} +2 -2
  2. package/fesm2022/{acorex-modules-form-template-management-category.entity-D8XA8ZaF.mjs.map → acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs.map} +1 -1
  3. package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs.map +1 -1
  4. package/fesm2022/{acorex-modules-form-template-management-template.entity-CGj7d49H.mjs → acorex-modules-form-template-management-template.entity-C1xoo-tl.mjs} +2 -2
  5. package/fesm2022/acorex-modules-form-template-management-template.entity-C1xoo-tl.mjs.map +1 -0
  6. package/fesm2022/acorex-modules-form-template-management.mjs +2 -2
  7. package/fesm2022/acorex-modules-notification-management.mjs +7 -17
  8. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  9. package/fesm2022/{acorex-modules-organization-managment-chart.entity-C_1rAJrs.mjs → acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs} +2 -2
  10. package/fesm2022/acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs.map +1 -0
  11. package/fesm2022/{acorex-modules-organization-managment-company.entity-5qijWD6i.mjs → acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs} +2 -2
  12. package/fesm2022/acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs.map +1 -0
  13. package/fesm2022/{acorex-modules-organization-managment-department.entity-BW18skLD.mjs → acorex-modules-organization-managment-department.entity-BagrypDK.mjs} +133 -8
  14. package/fesm2022/acorex-modules-organization-managment-department.entity-BagrypDK.mjs.map +1 -0
  15. package/fesm2022/{acorex-modules-organization-managment-employment.entity-D28NBRYg.mjs → acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs} +2 -2
  16. package/fesm2022/acorex-modules-organization-managment-employment.entity-BYwBhrym.mjs.map +1 -0
  17. package/fesm2022/acorex-modules-organization-managment-position.entity-CAQfoCEm.mjs +412 -0
  18. package/fesm2022/acorex-modules-organization-managment-position.entity-CAQfoCEm.mjs.map +1 -0
  19. package/fesm2022/acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs +201 -0
  20. package/fesm2022/acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs.map +1 -0
  21. package/fesm2022/acorex-modules-organization-managment.mjs +22 -17
  22. package/fesm2022/acorex-modules-organization-managment.mjs.map +1 -1
  23. package/fesm2022/acorex-modules-platform-management.mjs +659 -255
  24. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  25. package/fesm2022/acorex-modules-security-management.mjs +25 -25
  26. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  27. package/fesm2022/acorex-modules-text-template-management-setting.provider-fX0dhWUL.mjs +6 -0
  28. package/fesm2022/acorex-modules-text-template-management-setting.provider-fX0dhWUL.mjs.map +1 -0
  29. package/fesm2022/acorex-modules-text-template-management.mjs +22 -19
  30. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  31. package/organization-managment/lib/entities/department/department.types.d.ts +6 -0
  32. package/organization-managment/lib/entities/position/position.types.d.ts +8 -0
  33. package/organization-managment/lib/setting.provider.d.ts +3 -0
  34. package/package.json +5 -5
  35. package/platform-management/lib/const.d.ts +5 -0
  36. package/platform-management/lib/entities/app-term/app-term.entity.d.ts +3 -0
  37. package/platform-management/lib/entities/app-term/app-term.service.d.ts +10 -0
  38. package/platform-management/lib/entities/app-term/app-term.types.d.ts +9 -0
  39. package/platform-management/lib/entities/app-term/index.d.ts +3 -0
  40. package/platform-management/lib/entities/app-version/index.d.ts +1 -0
  41. package/platform-management/lib/entities/app-version/workflow/change-log.workflow.d.ts +15 -0
  42. package/platform-management/lib/entities/app-version/workflow/index.d.ts +2 -0
  43. package/platform-management/lib/entities/app-version/workflow/test/test.component.d.ts +6 -0
  44. package/platform-management/lib/entities/index.d.ts +1 -0
  45. package/platform-management/lib/platform-management.module.d.ts +2 -1
  46. package/fesm2022/acorex-modules-form-template-management-template.entity-CGj7d49H.mjs.map +0 -1
  47. package/fesm2022/acorex-modules-organization-managment-chart.entity-C_1rAJrs.mjs.map +0 -1
  48. package/fesm2022/acorex-modules-organization-managment-company.entity-5qijWD6i.mjs.map +0 -1
  49. package/fesm2022/acorex-modules-organization-managment-department.entity-BW18skLD.mjs.map +0 -1
  50. package/fesm2022/acorex-modules-organization-managment-employment.entity-D28NBRYg.mjs.map +0 -1
  51. package/fesm2022/acorex-modules-organization-managment-position.entity-DhndysSH.mjs +0 -199
  52. package/fesm2022/acorex-modules-organization-managment-position.entity-DhndysSH.mjs.map +0 -1
  53. package/platform-management/lib/common/organizarion/settings.provider.d.ts +0 -5
  54. /package/{platform-management/lib/common/organizarion → organization-managment/lib}/setting.keys.d.ts +0 -0
@@ -1,6 +1,8 @@
1
1
  import * as i1$1 from '@acorex/platform/common';
2
2
  import { AXPSettingScope, AXPSettingService, AXP_SETTING_DEFINITION_PROVIDER, AXPComponentSlotModule, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, AXP_MENU_PROVIDER } from '@acorex/platform/common';
3
3
  import { AXP_ENTITY_DEFINITION_LOADER, AXPEntityService } from '@acorex/platform/layout/entity';
4
+ import * as i1$2 from '@acorex/platform/workflow';
5
+ import { AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
4
6
  import * as i0 from '@angular/core';
5
7
  import { inject, Injector, Injectable, signal, Component, NgModule } from '@angular/core';
6
8
  import { objectKeyValueTransforms, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
@@ -14,6 +16,7 @@ import * as i1 from '@acorex/components/dropdown';
14
16
  import { AXDropdownModule } from '@acorex/components/dropdown';
15
17
  import { AXPopoverModule } from '@acorex/components/popover';
16
18
  import { CommonModule } from '@angular/common';
19
+ import { AXPopupService } from '@acorex/components/popup';
17
20
  import { AXPSessionService } from '@acorex/platform/auth';
18
21
 
19
22
  class AXMCommonModuleEntityProvider {
@@ -35,7 +38,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
35
38
  type: Injectable
36
39
  }] });
37
40
 
38
- const path$1 = 'regional:';
41
+ const path = 'regional:';
39
42
  var AXPRegionalSetting;
40
43
  (function (AXPRegionalSetting) {
41
44
  AXPRegionalSetting["TimeZone"] = "regional:timezone";
@@ -337,203 +340,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
337
340
  args: [{ imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule, CommonModule], template: "<ax-button look=\"blank\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item [text]=\"lang.title\" [selected]=\"store.language()===lang.code\"\n (onClick)=\"store.changeLanguage(lang.code)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>" }]
338
341
  }] });
339
342
 
340
- const path = 'organization:';
341
- var AXPOrganizationSetting;
342
- (function (AXPOrganizationSetting) {
343
- AXPOrganizationSetting["OrganizationName"] = "organization:organization-name";
344
- AXPOrganizationSetting["OrganizationID"] = "organization:organization-id";
345
- AXPOrganizationSetting["ContactEmail"] = "organization:contact-email";
346
- AXPOrganizationSetting["ContactPhone"] = "organization:contact-phone";
347
- AXPOrganizationSetting["OrganizationAddress"] = "organization:organization-address";
348
- AXPOrganizationSetting["OrganizationCity"] = "organization:organization-city";
349
- AXPOrganizationSetting["OrganizationCountry"] = "organization:organization-country";
350
- AXPOrganizationSetting["BrandingColor"] = "organization:branding-color";
351
- AXPOrganizationSetting["BrandingLogo"] = "organization:branding-logo";
352
- AXPOrganizationSetting["CopyrightText"] = "organization:copyright-text";
353
- AXPOrganizationSetting["ApplicationHeaderTitle"] = "organization:application-header-title";
354
- AXPOrganizationSetting["SupportEmail"] = "organization:support-email";
355
- AXPOrganizationSetting["InfoEmail"] = "organization:info-email";
356
- AXPOrganizationSetting["FaxNumber"] = "organization:fax-number";
357
- })(AXPOrganizationSetting || (AXPOrganizationSetting = {}));
358
-
359
- class AXMOrganizationSettingProvider {
360
- constructor() {
361
- this.sessionService = inject(AXPSessionService);
362
- }
363
- async provide(context) {
364
- context
365
- .addGroup('organization-settings', 'Organization Settings', 'Manage organizational preferences.', 'fa-solid fa-building')
366
- // Branding Section
367
- .addSection('branding', 'Branding', 'Configure company branding.')
368
- .addSetting({
369
- key: AXPOrganizationSetting.OrganizationName,
370
- title: 'Company Name',
371
- scope: 'T',
372
- isInherited: false,
373
- defaultValue: this.sessionService.tenant?.title,
374
- widget: {
375
- type: AXPWidgetsCatalog.text,
376
- },
377
- description: 'Specify the official name of the company.',
378
- })
379
- .addSetting({
380
- key: 'branding-logo',
381
- title: 'Company Logo',
382
- scope: 'T',
383
- isInherited: false,
384
- defaultValue: '',
385
- widget: {
386
- type: AXPWidgetsCatalog.avatar,
387
- options: {
388
- fileTypes: ['image/png', 'image/jpeg'],
389
- },
390
- },
391
- description: 'Upload the company logo.',
392
- })
393
- .addSetting({
394
- key: 'copyright-text',
395
- title: 'Copyright Text',
396
- scope: 'T',
397
- isInherited: true,
398
- defaultValue: '© 2024 Your Company',
399
- widget: {
400
- type: AXPWidgetsCatalog.text,
401
- },
402
- description: 'Text displayed in the footer of the application.',
403
- })
404
- .addSetting({
405
- key: 'application-header-title',
406
- title: 'Application Header Title',
407
- scope: 'T',
408
- isInherited: true,
409
- defaultValue: this.sessionService.application?.title,
410
- widget: {
411
- type: AXPWidgetsCatalog.text,
412
- },
413
- description: 'Title displayed in the application header.',
414
- })
415
- .endSection()
416
- // Contact Details Section
417
- .addSection('contact', 'Contact Details', 'Set company contact information.')
418
- .addSetting({
419
- key: AXPOrganizationSetting.ContactEmail,
420
- title: 'Company Email',
421
- scope: 'T',
422
- isInherited: false,
423
- defaultValue: '',
424
- widget: {
425
- type: AXPWidgetsCatalog.contact,
426
- options: {
427
- type: 'email',
428
- hasLabel: false,
429
- }
430
- },
431
- description: 'Primary email address for the company.',
432
- })
433
- .addSetting({
434
- key: 'support-email',
435
- title: 'Support Email',
436
- scope: 'T',
437
- isInherited: false,
438
- defaultValue: '',
439
- widget: {
440
- type: AXPWidgetsCatalog.contact,
441
- options: {
442
- type: 'email',
443
- hasLabel: false,
444
- }
445
- },
446
- description: 'Support email address for customer inquiries.',
447
- })
448
- .addSetting({
449
- key: 'info-email',
450
- title: 'Info Email',
451
- scope: 'T',
452
- isInherited: false,
453
- defaultValue: '',
454
- widget: {
455
- type: AXPWidgetsCatalog.contact,
456
- options: {
457
- type: 'email',
458
- hasLabel: false,
459
- }
460
- },
461
- description: 'General information email address.',
462
- })
463
- .addSetting({
464
- key: AXPOrganizationSetting.ContactPhone,
465
- title: 'Company Phone',
466
- scope: 'T',
467
- isInherited: false,
468
- defaultValue: '',
469
- widget: {
470
- type: AXPWidgetsCatalog.contact,
471
- options: {
472
- type: 'phone',
473
- hasLabel: false,
474
- }
475
- },
476
- description: 'Primary contact phone number.',
477
- })
478
- .addSetting({
479
- key: 'fax-number',
480
- title: 'Fax Number',
481
- scope: 'T',
482
- isInherited: false,
483
- defaultValue: '',
484
- widget: {
485
- type: AXPWidgetsCatalog.contact,
486
- options: {
487
- type: 'phone',
488
- hasLabel: false,
489
- }
490
- },
491
- description: 'Fax number for the company.',
492
- })
493
- .endSection()
494
- // Address Section
495
- .addSection('address', 'Address', 'Manage company address details.')
496
- .addSetting({
497
- key: AXPOrganizationSetting.OrganizationAddress,
498
- title: 'Street Address',
499
- scope: 'T',
500
- isInherited: false,
501
- defaultValue: '',
502
- widget: {
503
- type: AXPWidgetsCatalog.text,
504
- },
505
- description: 'Street address of the company.',
506
- })
507
- .addSetting({
508
- key: AXPOrganizationSetting.OrganizationCity,
509
- title: 'City',
510
- scope: 'T',
511
- isInherited: false,
512
- defaultValue: '',
513
- widget: {
514
- type: AXPWidgetsCatalog.text,
515
- },
516
- description: 'City where the company is located.',
517
- })
518
- .addSetting({
519
- key: AXPOrganizationSetting.OrganizationCountry,
520
- title: 'Country',
521
- scope: 'T',
522
- isInherited: false,
523
- defaultValue: '',
524
- widget: {
525
- type: AXPWidgetsCatalog.select,
526
- options: {
527
- dataSource: ['United States', 'United Kingdom', 'France', 'Germany', 'Japan', 'China'],
528
- },
529
- },
530
- description: 'Country where the company is based.',
531
- })
532
- .endSection()
533
- .endGroup();
534
- }
535
- }
536
-
537
343
  class AXMPlatformManagementCommonModule {
538
344
  constructor(appInitService, injector) {
539
345
  const service = injector.get(AXPRegionalStoreService);
@@ -558,11 +364,6 @@ class AXMPlatformManagementCommonModule {
558
364
  useClass: AXMRegionalSettingProvider,
559
365
  multi: true
560
366
  },
561
- {
562
- provide: AXP_SETTING_DEFINITION_PROVIDER,
563
- useClass: AXMOrganizationSettingProvider,
564
- multi: true
565
- },
566
367
  ], imports: [AXPComponentSlotModule.forChild({
567
368
  'header-end': [
568
369
  {
@@ -585,57 +386,496 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
585
386
  ]
586
387
  })
587
388
  ],
588
- exports: [],
589
- declarations: [],
590
- providers: [
389
+ exports: [],
390
+ declarations: [],
391
+ providers: [
392
+ {
393
+ provide: AXP_ENTITY_DEFINITION_LOADER,
394
+ useClass: AXMCommonModuleEntityProvider,
395
+ multi: true,
396
+ },
397
+ {
398
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
399
+ useClass: AXMRegionalSettingProvider,
400
+ multi: true
401
+ },
402
+ ],
403
+ }]
404
+ }], ctorParameters: () => [{ type: i1$1.AXPAppStartUpService }, { type: i0.Injector }] });
405
+
406
+ const config = {
407
+ i18n: 'platform-management',
408
+ };
409
+ const RootConfig = {
410
+ config,
411
+ module: {
412
+ route: 'platform-management',
413
+ name: 'PlatformManagement',
414
+ title: `t('module-name', {scope:"${config.i18n}"})`,
415
+ icon: 'fa-solid fa-cogs',
416
+ },
417
+ entities: {
418
+ localizationManagement: {
419
+ name: 'Localization Management',
420
+ title: `t("localization-management", {scope:"${config.i18n}"})`,
421
+ icon: 'fa-solid fa-globe',
422
+ },
423
+ globalVariable: {
424
+ name: 'Global Variables',
425
+ title: `t("variables", {scope:"${config.i18n}"})`,
426
+ icon: 'fa-solid fa-object-exclude',
427
+ },
428
+ appVersion: {
429
+ name: 'app-version',
430
+ title: `t("appVersion", {scope:"${config.i18n}"})`,
431
+ icon: 'fa-regular fa-code-branch',
432
+ },
433
+ appTerm: {
434
+ name: 'app-term',
435
+ title: `t("appTerm", {scope:"${config.i18n}"})`,
436
+ icon: 'fa-solid fa-scale-balanced',
437
+ },
438
+ },
439
+ };
440
+
441
+ class AXMAppTermService extends AXMEntityCrudServiceImpl {
442
+ }
443
+ class AXMAppTermServiceImpl extends AXMEntityCrudServiceImpl {
444
+ constructor() {
445
+ super(`${RootConfig.module.name}.${RootConfig.entities.appTerm.name}`);
446
+ }
447
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppTermServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
448
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppTermServiceImpl }); }
449
+ }
450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppTermServiceImpl, decorators: [{
451
+ type: Injectable
452
+ }], ctorParameters: () => [] });
453
+
454
+ async function appTermEntityEntityFactory(injector) {
455
+ const dataService = injector.get(AXMAppTermService);
456
+ const entityDef = {
457
+ module: RootConfig.module.name,
458
+ name: RootConfig.entities.appTerm.name,
459
+ source: '',
460
+ title: RootConfig.entities.appTerm.title,
461
+ formats: {
462
+ individual: 'Application Term',
463
+ plural: 'Application Terms',
464
+ },
465
+ relatedEntities: [],
466
+ groups: [
467
+ {
468
+ id: 'section',
469
+ title: RootConfig.entities.appTerm.title,
470
+ },
471
+ ],
472
+ properties: [
473
+ {
474
+ name: 'name',
475
+ title: 'Name',
476
+ groupId: 'section',
477
+ schema: {
478
+ dataType: 'string',
479
+ interface: {
480
+ type: AXPWidgetsCatalog.text,
481
+ },
482
+ },
483
+ validations: [
484
+ {
485
+ rule: 'required',
486
+ },
487
+ ],
488
+ },
489
+ {
490
+ name: 'title',
491
+ title: 'Title',
492
+ groupId: 'section',
493
+ schema: {
494
+ dataType: 'string',
495
+ interface: {
496
+ type: AXPWidgetsCatalog.text,
497
+ },
498
+ },
499
+ validations: [
500
+ {
501
+ rule: 'required',
502
+ },
503
+ ],
504
+ },
505
+ {
506
+ name: 'content',
507
+ title: 'Content',
508
+ groupId: 'section',
509
+ schema: {
510
+ dataType: 'string',
511
+ interface: {
512
+ type: AXPWidgetsCatalog.richText,
513
+ },
514
+ },
515
+ validations: [
516
+ {
517
+ rule: 'required',
518
+ },
519
+ ],
520
+ },
521
+ {
522
+ name: 'version',
523
+ title: 'Version',
524
+ groupId: 'section',
525
+ schema: {
526
+ dataType: 'number',
527
+ interface: {
528
+ type: AXPWidgetsCatalog.number,
529
+ },
530
+ },
531
+ validations: [
532
+ {
533
+ rule: 'required',
534
+ },
535
+ ],
536
+ },
537
+ {
538
+ name: 'effectiveDate',
539
+ title: 'Effective Date',
540
+ groupId: 'section',
541
+ schema: {
542
+ dataType: 'dateTime',
543
+ interface: {
544
+ type: AXPWidgetsCatalog.dateTime,
545
+ },
546
+ },
547
+ validations: [
548
+ {
549
+ rule: 'required',
550
+ },
551
+ ],
552
+ },
553
+ {
554
+ name: 'isActive',
555
+ title: 'Is Active',
556
+ groupId: 'section',
557
+ schema: {
558
+ dataType: 'boolean',
559
+ interface: {
560
+ type: AXPWidgetsCatalog.checkbox,
561
+ },
562
+ },
563
+ validations: [
564
+ {
565
+ rule: 'required',
566
+ },
567
+ ],
568
+ },
569
+ ],
570
+ columns: [
571
+ { name: 'title' },
572
+ { name: 'content' },
573
+ { name: 'version' },
574
+ { name: 'effectiveDate' },
575
+ { name: 'isActive' },
576
+ ],
577
+ commands: {
578
+ create: {
579
+ execute: async (data) => {
580
+ return Promise.resolve({ id: await dataService.insertOne(data) });
581
+ },
582
+ },
583
+ delete: {
584
+ execute: async (id) => {
585
+ await await dataService.deleteOne(id);
586
+ return Promise.resolve();
587
+ },
588
+ },
589
+ update: {
590
+ execute: async (data) => {
591
+ return new Promise((resolve) => {
592
+ setTimeout(async () => {
593
+ await dataService.updateOne(data.id, data);
594
+ resolve(data);
595
+ }, 1000);
596
+ });
597
+ },
598
+ },
599
+ },
600
+ queries: {
601
+ byKey: {
602
+ execute: async (id) => {
603
+ return new Promise((resolve) => {
604
+ setTimeout(async () => {
605
+ const entity = await dataService.getOne(id);
606
+ resolve(entity);
607
+ }, 500);
608
+ });
609
+ },
610
+ type: AXPEntityQueryType.Single,
611
+ },
612
+ list: {
613
+ execute: async (e) => {
614
+ const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
615
+ console.log(x);
616
+ return x;
617
+ },
618
+ type: AXPEntityQueryType.List,
619
+ },
620
+ },
621
+ interfaces: {
622
+ master: {
623
+ create: {
624
+ sections: [
625
+ {
626
+ id: 'section',
627
+ },
628
+ ],
629
+ properties: [
630
+ {
631
+ name: 'name',
632
+ layout: {
633
+ positions: {
634
+ lg: {
635
+ colSpan: 5,
636
+ },
637
+ },
638
+ },
639
+ },
640
+ {
641
+ name: 'title',
642
+ layout: {
643
+ positions: {
644
+ lg: {
645
+ colSpan: 5,
646
+ },
647
+ },
648
+ },
649
+ },
650
+ {
651
+ name: 'version',
652
+ layout: {
653
+ positions: {
654
+ lg: {
655
+ colSpan: 2,
656
+ },
657
+ },
658
+ },
659
+ },
660
+ {
661
+ name: 'content',
662
+ layout: {
663
+ positions: {
664
+ lg: {
665
+ colSpan: 12,
666
+ },
667
+ },
668
+ },
669
+ },
670
+ {
671
+ name: 'effectiveDate',
672
+ layout: {
673
+ positions: {
674
+ lg: {
675
+ colSpan: 8,
676
+ },
677
+ },
678
+ },
679
+ },
680
+ {
681
+ name: 'isActive',
682
+ layout: {
683
+ positions: {
684
+ lg: {
685
+ colSpan: 4,
686
+ },
687
+ },
688
+ },
689
+ },
690
+ ],
691
+ },
692
+ update: {
693
+ sections: [
694
+ {
695
+ id: 'section',
696
+ },
697
+ ],
698
+ properties: [
699
+ {
700
+ name: 'name',
701
+ layout: {
702
+ positions: {
703
+ lg: {
704
+ colSpan: 5,
705
+ },
706
+ },
707
+ },
708
+ },
709
+ {
710
+ name: 'title',
711
+ layout: {
712
+ positions: {
713
+ lg: {
714
+ colSpan: 5,
715
+ },
716
+ },
717
+ },
718
+ },
719
+ {
720
+ name: 'version',
721
+ layout: {
722
+ positions: {
723
+ lg: {
724
+ colSpan: 2,
725
+ },
726
+ },
727
+ },
728
+ },
729
+ {
730
+ name: 'content',
731
+ layout: {
732
+ positions: {
733
+ lg: {
734
+ colSpan: 12,
735
+ },
736
+ },
737
+ },
738
+ },
739
+ {
740
+ name: 'effectiveDate',
741
+ layout: {
742
+ positions: {
743
+ lg: {
744
+ colSpan: 8,
745
+ },
746
+ },
747
+ },
748
+ },
749
+ {
750
+ name: 'isActive',
751
+ layout: {
752
+ positions: {
753
+ lg: {
754
+ colSpan: 4,
755
+ },
756
+ },
757
+ },
758
+ },
759
+ ],
760
+ },
761
+ single: {
762
+ title: '{{versionNumber}}',
763
+ sections: [
591
764
  {
592
- provide: AXP_ENTITY_DEFINITION_LOADER,
593
- useClass: AXMCommonModuleEntityProvider,
594
- multi: true,
765
+ id: 'section',
595
766
  },
767
+ ],
768
+ properties: [
596
769
  {
597
- provide: AXP_SETTING_DEFINITION_PROVIDER,
598
- useClass: AXMRegionalSettingProvider,
599
- multi: true
770
+ name: 'name',
771
+ layout: {
772
+ positions: {
773
+ lg: {
774
+ colSpan: 5,
775
+ },
776
+ },
777
+ },
600
778
  },
601
779
  {
602
- provide: AXP_SETTING_DEFINITION_PROVIDER,
603
- useClass: AXMOrganizationSettingProvider,
604
- multi: true
780
+ name: 'title',
781
+ layout: {
782
+ positions: {
783
+ lg: {
784
+ colSpan: 5,
785
+ },
786
+ },
787
+ },
788
+ },
789
+ {
790
+ name: 'version',
791
+ layout: {
792
+ positions: {
793
+ lg: {
794
+ colSpan: 2,
795
+ },
796
+ },
797
+ },
798
+ },
799
+ {
800
+ name: 'content',
801
+ layout: {
802
+ positions: {
803
+ lg: {
804
+ colSpan: 12,
805
+ },
806
+ },
807
+ },
808
+ },
809
+ {
810
+ name: 'effectiveDate',
811
+ layout: {
812
+ positions: {
813
+ lg: {
814
+ colSpan: 8,
815
+ },
816
+ },
817
+ },
818
+ },
819
+ {
820
+ name: 'isActive',
821
+ layout: {
822
+ positions: {
823
+ lg: {
824
+ colSpan: 4,
825
+ },
826
+ },
827
+ },
605
828
  },
606
829
  ],
607
- }]
608
- }], ctorParameters: () => [{ type: i1$1.AXPAppStartUpService }, { type: i0.Injector }] });
609
-
610
- const config = {
611
- i18n: 'platform-management',
612
- };
613
- const RootConfig = {
614
- config,
615
- module: {
616
- route: 'platform-management',
617
- name: 'PlatformManagement',
618
- title: `t('module-name', {scope:"${config.i18n}"})`,
619
- icon: 'fa-solid fa-cogs',
620
- },
621
- entities: {
622
- localizationManagement: {
623
- name: 'Localization Management',
624
- title: `t("localization-management", {scope:"${config.i18n}"})`,
625
- icon: 'fa-solid fa-globe',
626
- },
627
- globalVariable: {
628
- name: 'Global Variables',
629
- title: `t("variables", {scope:"${config.i18n}"})`,
630
- icon: 'fa-solid fa-object-exclude',
631
- },
632
- appVersion: {
633
- name: 'app-version',
634
- title: `t("appVersion", {scope:"${config.i18n}"})`,
635
- icon: 'fa-regular fa-code-branch',
830
+ actions: [],
831
+ },
832
+ list: {
833
+ actions: [
834
+ {
835
+ title: 'Create New',
836
+ command: 'create-entity',
837
+ priority: 'primary',
838
+ type: 'create',
839
+ scope: AXPEntityCommandScope.TypeLevel,
840
+ },
841
+ {
842
+ title: 'Delete Items',
843
+ command: 'delete-entity',
844
+ priority: 'primary',
845
+ type: 'delete',
846
+ scope: AXPEntityCommandScope.Selected,
847
+ },
848
+ {
849
+ title: 'Details',
850
+ command: 'open-entity',
851
+ priority: 'secondary',
852
+ type: 'view',
853
+ scope: AXPEntityCommandScope.Individual,
854
+ },
855
+ {
856
+ title: 'Delete',
857
+ command: 'delete-entity',
858
+ priority: 'secondary',
859
+ type: 'delete',
860
+ scope: AXPEntityCommandScope.Individual,
861
+ },
862
+ ],
863
+ views: [
864
+ {
865
+ name: 'all',
866
+ title: 'All Items',
867
+ fixed: true,
868
+ columns: [],
869
+ conditions: [],
870
+ sorts: [],
871
+ },
872
+ ],
873
+ },
874
+ },
636
875
  },
637
- },
638
- };
876
+ };
877
+ return entityDef;
878
+ }
639
879
 
640
880
  class AXMAppVersionService extends AXMEntityCrudServiceImpl {
641
881
  }
@@ -720,8 +960,29 @@ async function appVersionEntityEntityFactory(injector) {
720
960
  },
721
961
  ],
722
962
  },
963
+ {
964
+ name: 'showFirstTimePopup',
965
+ title: 'Show First Time Popup',
966
+ groupId: 'section',
967
+ schema: {
968
+ dataType: 'boolean',
969
+ interface: {
970
+ type: AXPWidgetsCatalog.checkbox,
971
+ },
972
+ },
973
+ validations: [
974
+ {
975
+ rule: 'required',
976
+ },
977
+ ],
978
+ },
979
+ ],
980
+ columns: [
981
+ { name: 'versionNumber' },
982
+ { name: 'changeLog' },
983
+ { name: 'publishDate' },
984
+ { name: 'showFirstTimePopup' },
723
985
  ],
724
- columns: [{ name: 'versionNumber' }, { name: 'changeLog' }, { name: 'publishDate' }],
725
986
  commands: {
726
987
  create: {
727
988
  execute: async (data) => {
@@ -800,7 +1061,17 @@ async function appVersionEntityEntityFactory(injector) {
800
1061
  layout: {
801
1062
  positions: {
802
1063
  lg: {
803
- colSpan: 12,
1064
+ colSpan: 8,
1065
+ },
1066
+ },
1067
+ },
1068
+ },
1069
+ {
1070
+ name: 'showFirstTimePopup',
1071
+ layout: {
1072
+ positions: {
1073
+ lg: {
1074
+ colSpan: 4,
804
1075
  },
805
1076
  },
806
1077
  },
@@ -839,7 +1110,17 @@ async function appVersionEntityEntityFactory(injector) {
839
1110
  layout: {
840
1111
  positions: {
841
1112
  lg: {
842
- colSpan: 12,
1113
+ colSpan: 8,
1114
+ },
1115
+ },
1116
+ },
1117
+ },
1118
+ {
1119
+ name: 'showFirstTimePopup',
1120
+ layout: {
1121
+ positions: {
1122
+ lg: {
1123
+ colSpan: 4,
843
1124
  },
844
1125
  },
845
1126
  },
@@ -879,7 +1160,17 @@ async function appVersionEntityEntityFactory(injector) {
879
1160
  layout: {
880
1161
  positions: {
881
1162
  lg: {
882
- colSpan: 12,
1163
+ colSpan: 8,
1164
+ },
1165
+ },
1166
+ },
1167
+ },
1168
+ {
1169
+ name: 'showFirstTimePopup',
1170
+ layout: {
1171
+ positions: {
1172
+ lg: {
1173
+ colSpan: 4,
883
1174
  },
884
1175
  },
885
1176
  },
@@ -935,6 +1226,70 @@ async function appVersionEntityEntityFactory(injector) {
935
1226
  return entityDef;
936
1227
  }
937
1228
 
1229
+ class AXMAppVersionTestComponent {
1230
+ constructor() { }
1231
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1232
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMAppVersionTestComponent, isStandalone: true, selector: "app-test", ngImport: i0, template: "<div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna\n aliqua.\n</div>\n" }); }
1233
+ }
1234
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionTestComponent, decorators: [{
1235
+ type: Component,
1236
+ args: [{ selector: 'app-test', template: "<div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna\n aliqua.\n</div>\n" }]
1237
+ }], ctorParameters: () => [] });
1238
+
1239
+ class AXMChangeLogPopupAction extends AXPWorkflowAction {
1240
+ constructor() {
1241
+ super(...arguments);
1242
+ this.popupService = inject(AXPopupService);
1243
+ }
1244
+ async execute(context) {
1245
+ // const data = context.getVariable<any>('data');
1246
+ //const options = context.getVariable<any>('options');
1247
+ const result = await this.popupService.open(AXMAppVersionTestComponent, 'test');
1248
+ // context.setOutput('result', false);
1249
+ // if (result.data?.save) {
1250
+ context.setOutput('result', true);
1251
+ // const prevData = context.getVariable('data');
1252
+ // context.setVariable('data', { ...prevData, ...result.data.item });
1253
+ // }
1254
+ }
1255
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1256
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogPopupAction }); }
1257
+ }
1258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogPopupAction, decorators: [{
1259
+ type: Injectable
1260
+ }] });
1261
+ class AXMChangeLogUpdateSettingAction extends AXPWorkflowAction {
1262
+ constructor() {
1263
+ super(...arguments);
1264
+ this.settingService = inject(AXPSettingService);
1265
+ }
1266
+ async execute(context) {
1267
+ await this.settingService.scope(AXPSettingScope.User).set('is-see-check-version', true);
1268
+ }
1269
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1270
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction }); }
1271
+ }
1272
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction, decorators: [{
1273
+ type: Injectable
1274
+ }] });
1275
+ const AXMChangeLogWorkflow = {
1276
+ startStepId: 'show-popup',
1277
+ steps: {
1278
+ 'show-popup': {
1279
+ action: 'AXMChangeLogPopupAction',
1280
+ nextSteps: [
1281
+ {
1282
+ conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
1283
+ nextStepId: 'first-time-add-to-setting',
1284
+ },
1285
+ ],
1286
+ },
1287
+ 'first-time-add-to-setting': {
1288
+ action: 'AXMChangeLogUpdateSettingAction',
1289
+ },
1290
+ },
1291
+ };
1292
+
938
1293
  class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
939
1294
  }
940
1295
  class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
@@ -1293,10 +1648,17 @@ async function globalVariableEntityFactory(injector) {
1293
1648
 
1294
1649
  var index = /*#__PURE__*/Object.freeze({
1295
1650
  __proto__: null,
1651
+ AXMAppTermService: AXMAppTermService,
1652
+ AXMAppTermServiceImpl: AXMAppTermServiceImpl,
1296
1653
  AXMAppVersionService: AXMAppVersionService,
1297
1654
  AXMAppVersionServiceImpl: AXMAppVersionServiceImpl,
1655
+ AXMAppVersionTestComponent: AXMAppVersionTestComponent,
1656
+ AXMChangeLogPopupAction: AXMChangeLogPopupAction,
1657
+ AXMChangeLogUpdateSettingAction: AXMChangeLogUpdateSettingAction,
1658
+ AXMChangeLogWorkflow: AXMChangeLogWorkflow,
1298
1659
  AXMGlobalVariablesService: AXMGlobalVariablesService,
1299
1660
  AXMGlobalVariablesServiceImpl: AXMGlobalVariablesServiceImpl,
1661
+ appTermEntityEntityFactory: appTermEntityEntityFactory,
1300
1662
  appVersionEntityEntityFactory: appVersionEntityEntityFactory,
1301
1663
  globalVariableEntityFactory: globalVariableEntityFactory
1302
1664
  });
@@ -1326,6 +1688,11 @@ class AXMEntityLoader {
1326
1688
  resolve(entity(this.injector));
1327
1689
  break;
1328
1690
  }
1691
+ case RootConfig.entities.appTerm.name: {
1692
+ const entity = (await Promise.resolve().then(function () { return index; })).appTermEntityEntityFactory;
1693
+ resolve(entity(this.injector));
1694
+ break;
1695
+ }
1329
1696
  default:
1330
1697
  resolve(null);
1331
1698
  }
@@ -1380,7 +1747,7 @@ class AXMMenuProvider {
1380
1747
  children: [
1381
1748
  {
1382
1749
  priority: 9001,
1383
- text: `t('globalVariables', {scope: "${scope}"})`,
1750
+ text: RootConfig.entities.globalVariable.title,
1384
1751
  path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.globalVariable.name),
1385
1752
  icon: RootConfig.entities.globalVariable.icon,
1386
1753
  data: {
@@ -1389,13 +1756,22 @@ class AXMMenuProvider {
1389
1756
  },
1390
1757
  {
1391
1758
  priority: 9002,
1392
- text: `t('appVersion', {scope: "${scope}"})`,
1759
+ text: RootConfig.entities.appVersion.title,
1393
1760
  path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.appVersion.name),
1394
1761
  icon: RootConfig.entities.appVersion.icon,
1395
1762
  data: {
1396
1763
  // requiredPermission: '',
1397
1764
  },
1398
1765
  },
1766
+ {
1767
+ priority: 9003,
1768
+ text: RootConfig.entities.appTerm.title,
1769
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.appTerm.name),
1770
+ icon: RootConfig.entities.appTerm.icon,
1771
+ data: {
1772
+ // requiredPermission: '',
1773
+ },
1774
+ },
1399
1775
  ],
1400
1776
  },
1401
1777
  ]);
@@ -1404,7 +1780,7 @@ class AXMMenuProvider {
1404
1780
 
1405
1781
  class AXMPlatformManagementModule {
1406
1782
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1407
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule] }); }
1783
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i1$2.AXPWorkflowModule] }); }
1408
1784
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
1409
1785
  {
1410
1786
  provide: AXMGlobalVariablesService,
@@ -1414,6 +1790,10 @@ class AXMPlatformManagementModule {
1414
1790
  provide: AXMAppVersionService,
1415
1791
  useClass: AXMAppVersionServiceImpl,
1416
1792
  },
1793
+ {
1794
+ provide: AXMAppTermService,
1795
+ useClass: AXMAppTermServiceImpl,
1796
+ },
1417
1797
  {
1418
1798
  provide: AXP_ENTITY_DEFINITION_LOADER,
1419
1799
  useClass: AXMEntityLoader,
@@ -1424,12 +1804,32 @@ class AXMPlatformManagementModule {
1424
1804
  useClass: AXMMenuProvider,
1425
1805
  multi: true,
1426
1806
  },
1427
- ], imports: [AXMPlatformManagementCommonModule] }); }
1807
+ ], imports: [AXMPlatformManagementCommonModule,
1808
+ AXPWorkflowModule.forChild({
1809
+ actions: {
1810
+ AXMChangeLogPopupAction,
1811
+ AXMChangeLogUpdateSettingAction,
1812
+ },
1813
+ workflows: {
1814
+ 'change-log-version': AXMChangeLogWorkflow,
1815
+ },
1816
+ })] }); }
1428
1817
  }
1429
1818
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
1430
1819
  type: NgModule,
1431
1820
  args: [{
1432
- imports: [AXMPlatformManagementCommonModule],
1821
+ imports: [
1822
+ AXMPlatformManagementCommonModule,
1823
+ AXPWorkflowModule.forChild({
1824
+ actions: {
1825
+ AXMChangeLogPopupAction,
1826
+ AXMChangeLogUpdateSettingAction,
1827
+ },
1828
+ workflows: {
1829
+ 'change-log-version': AXMChangeLogWorkflow,
1830
+ },
1831
+ }),
1832
+ ],
1433
1833
  exports: [],
1434
1834
  declarations: [],
1435
1835
  providers: [
@@ -1441,6 +1841,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1441
1841
  provide: AXMAppVersionService,
1442
1842
  useClass: AXMAppVersionServiceImpl,
1443
1843
  },
1844
+ {
1845
+ provide: AXMAppTermService,
1846
+ useClass: AXMAppTermServiceImpl,
1847
+ },
1444
1848
  {
1445
1849
  provide: AXP_ENTITY_DEFINITION_LOADER,
1446
1850
  useClass: AXMEntityLoader,