@acorex/modules 19.3.2 → 19.3.3-next.0

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 (122) hide show
  1. package/common/index.d.ts +1 -0
  2. package/common/lib/common.module.d.ts +3 -2
  3. package/common/lib/features/global-search/index.d.ts +3 -0
  4. package/common/lib/features/global-search/search-popup.component.d.ts +22 -0
  5. package/common/lib/features/global-search/search-slot.component.d.ts +9 -0
  6. package/common/lib/features/global-search/search.config.d.ts +5 -0
  7. package/common/lib/features/global-search/search.module.d.ts +11 -0
  8. package/common/lib/features/global-search/search.viewmodel.d.ts +34 -0
  9. package/common/lib/features/global-search/workflows/search.workflow.d.ts +11 -0
  10. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +1 -0
  11. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +1 -0
  12. package/document-management/lib/features/document-explorer/views/detail-panel/detail-panel.component.d.ts +1 -0
  13. package/document-management/lib/features/document-explorer/views/details/details-view.component.d.ts +1 -0
  14. package/document-management/lib/features/document-explorer/views/large-icons/large-icons-view.component.d.ts +1 -0
  15. package/document-management/lib/features/document-explorer/views/large-tiles/large-tiles-view.component.d.ts +1 -0
  16. package/document-management/lib/features/document-explorer/views/list/list-view.component.d.ts +1 -0
  17. package/document-management/lib/features/document-explorer/views/small-icons/small-icons-view.component.d.ts +1 -0
  18. package/document-management/lib/features/document-explorer/views/small-tiles/small-tiles-view.component.d.ts +1 -0
  19. package/document-management/lib/features/drive/drive.component.d.ts +1 -0
  20. package/document-management/lib/features/drive-choose/drive-choose.component.d.ts +1 -0
  21. package/document-management/lib/features/shared/components/folder-path-breadcrumbs/folder-path-breadcrumbs.component.d.ts +1 -0
  22. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +4 -3
  23. package/document-management/lib/permission-definition.provider.d.ts +4 -0
  24. package/document-management/lib/permission.keys.d.ts +19 -0
  25. package/fesm2022/acorex-modules-common-search-popup.component-C3XUb6pF.mjs +128 -0
  26. package/fesm2022/acorex-modules-common-search-popup.component-C3XUb6pF.mjs.map +1 -0
  27. package/fesm2022/acorex-modules-common.mjs +289 -7
  28. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  29. package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-VORBD1g-.mjs → acorex-modules-dashboard-management-acorex-modules-dashboard-management-Ccj2AaJ1.mjs} +3 -3
  30. package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-VORBD1g-.mjs.map → acorex-modules-dashboard-management-acorex-modules-dashboard-management-Ccj2AaJ1.mjs.map} +1 -1
  31. package/fesm2022/{acorex-modules-dashboard-management-home-dashboard-DiPn_RhH.mjs → acorex-modules-dashboard-management-home-dashboard-BXD0g_tp.mjs} +2 -2
  32. package/fesm2022/{acorex-modules-dashboard-management-home-dashboard-DiPn_RhH.mjs.map → acorex-modules-dashboard-management-home-dashboard-BXD0g_tp.mjs.map} +1 -1
  33. package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
  34. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-vYaqbxKs.mjs → acorex-modules-document-management-acorex-modules-document-management-Dw7YKb_h.mjs} +59 -41
  35. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-Dw7YKb_h.mjs.map +1 -0
  36. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-Bc_IX3gT.mjs → acorex-modules-document-management-create-folder-dialog.component-Ty5V60Tu.mjs} +2 -2
  37. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-Bc_IX3gT.mjs.map → acorex-modules-document-management-create-folder-dialog.component-Ty5V60Tu.mjs.map} +1 -1
  38. package/fesm2022/{acorex-modules-document-management-details-view.component-_9f5TQJi.mjs → acorex-modules-document-management-details-view.component-BuUJq8WU.mjs} +2 -2
  39. package/fesm2022/{acorex-modules-document-management-details-view.component-_9f5TQJi.mjs.map → acorex-modules-document-management-details-view.component-BuUJq8WU.mjs.map} +1 -1
  40. package/fesm2022/{acorex-modules-document-management-drive-choose.component-CFOb0_MF.mjs → acorex-modules-document-management-drive-choose.component-DSCIj1X_.mjs} +2 -2
  41. package/fesm2022/{acorex-modules-document-management-drive-choose.component-CFOb0_MF.mjs.map → acorex-modules-document-management-drive-choose.component-DSCIj1X_.mjs.map} +1 -1
  42. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-D9es4CBl.mjs → acorex-modules-document-management-large-icons-view.component-DvrdSkIZ.mjs} +2 -2
  43. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-D9es4CBl.mjs.map → acorex-modules-document-management-large-icons-view.component-DvrdSkIZ.mjs.map} +1 -1
  44. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Q1Sjg47F.mjs → acorex-modules-document-management-large-tiles-view.component-rIxsD8sE.mjs} +2 -2
  45. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Q1Sjg47F.mjs.map → acorex-modules-document-management-large-tiles-view.component-rIxsD8sE.mjs.map} +1 -1
  46. package/fesm2022/{acorex-modules-document-management-list-view.component-BUu5vrul.mjs → acorex-modules-document-management-list-view.component-BrutZLAU.mjs} +2 -2
  47. package/fesm2022/{acorex-modules-document-management-list-view.component-BUu5vrul.mjs.map → acorex-modules-document-management-list-view.component-BrutZLAU.mjs.map} +1 -1
  48. package/fesm2022/acorex-modules-document-management-permission-definition.provider-CQOLEctF.mjs +31 -0
  49. package/fesm2022/acorex-modules-document-management-permission-definition.provider-CQOLEctF.mjs.map +1 -0
  50. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-BMRmdslE.mjs → acorex-modules-document-management-rename-node-dialog.component-zSY0PShA.mjs} +2 -2
  51. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-BMRmdslE.mjs.map → acorex-modules-document-management-rename-node-dialog.component-zSY0PShA.mjs.map} +1 -1
  52. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-ChSS7z9z.mjs → acorex-modules-document-management-small-icons-view.component-CFB6g5r6.mjs} +2 -2
  53. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-ChSS7z9z.mjs.map → acorex-modules-document-management-small-icons-view.component-CFB6g5r6.mjs.map} +1 -1
  54. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-Ci33qbBY.mjs → acorex-modules-document-management-small-tiles-view.component-Dp2Lnb3c.mjs} +2 -2
  55. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-Ci33qbBY.mjs.map → acorex-modules-document-management-small-tiles-view.component-Dp2Lnb3c.mjs.map} +1 -1
  56. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  57. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-Cv92x_9Z.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-CJ2Qoott.mjs} +33 -15
  58. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CJ2Qoott.mjs.map +1 -0
  59. package/fesm2022/{acorex-modules-form-template-management-category.entity-DPVwQW4X.mjs → acorex-modules-form-template-management-category.entity-BjNsUAZq.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-form-template-management-category.entity-DPVwQW4X.mjs.map → acorex-modules-form-template-management-category.entity-BjNsUAZq.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-BrWbwKTK.mjs → acorex-modules-form-template-management-permission-definition.provider-CqZ8ytjA.mjs} +2 -21
  62. package/fesm2022/acorex-modules-form-template-management-permission-definition.provider-CqZ8ytjA.mjs.map +1 -0
  63. package/fesm2022/{acorex-modules-form-template-management-settings.provider-iwOUp0iw.mjs → acorex-modules-form-template-management-settings.provider-LrzsYkiL.mjs} +2 -2
  64. package/fesm2022/{acorex-modules-form-template-management-settings.provider-iwOUp0iw.mjs.map → acorex-modules-form-template-management-settings.provider-LrzsYkiL.mjs.map} +1 -1
  65. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkR3x74p.mjs → acorex-modules-form-template-management-template-widget-edit.component-BP75i9zU.mjs} +2 -2
  66. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkR3x74p.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-BP75i9zU.mjs.map} +1 -1
  67. package/fesm2022/{acorex-modules-form-template-management-template.entity-NgmH7r8R.mjs → acorex-modules-form-template-management-template.entity-CCaHPkWq.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-form-template-management-template.entity-NgmH7r8R.mjs.map → acorex-modules-form-template-management-template.entity-CCaHPkWq.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-Cq33xA62.mjs → acorex-modules-form-template-management-viewer-popup.component-CUOsh6e5.mjs} +2 -2
  70. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-Cq33xA62.mjs.map → acorex-modules-form-template-management-viewer-popup.component-CUOsh6e5.mjs.map} +1 -1
  71. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  72. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-U5EJyG5e.mjs → acorex-modules-issue-management-acorex-modules-issue-management-DcmAnBue.mjs} +2 -3
  73. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-U5EJyG5e.mjs.map → acorex-modules-issue-management-acorex-modules-issue-management-DcmAnBue.mjs.map} +1 -1
  74. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-3ZAOJBfn.mjs → acorex-modules-issue-management-capture-screen.component-BMpafdHr.mjs} +2 -2
  75. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-3ZAOJBfn.mjs.map → acorex-modules-issue-management-capture-screen.component-BMpafdHr.mjs.map} +1 -1
  76. package/fesm2022/acorex-modules-issue-management.mjs +1 -1
  77. package/fesm2022/acorex-modules-log-management.mjs +3 -8
  78. package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
  79. package/fesm2022/{acorex-modules-organization-management-add-item.component-DW0TneoX.mjs → acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs} +3 -3
  80. package/fesm2022/{acorex-modules-organization-management-add-item.component-DW0TneoX.mjs.map → acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs.map} +1 -1
  81. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-RuvkSheN.mjs +124 -0
  82. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-RuvkSheN.mjs.map +1 -0
  83. package/fesm2022/{acorex-modules-organization-management-org-chart.page-DnRbGIWN.mjs → acorex-modules-organization-management-org-chart.page-C2qYJxpY.mjs} +59 -19
  84. package/fesm2022/acorex-modules-organization-management-org-chart.page-C2qYJxpY.mjs.map +1 -0
  85. package/fesm2022/acorex-modules-organization-management.mjs +7 -7
  86. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  87. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs → acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs} +44 -51
  88. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs.map +1 -0
  89. package/fesm2022/{acorex-modules-platform-management-list-version.component-BElZjmXr.mjs → acorex-modules-platform-management-list-version.component-DB8pe9so.mjs} +2 -2
  90. package/fesm2022/{acorex-modules-platform-management-list-version.component-BElZjmXr.mjs.map → acorex-modules-platform-management-list-version.component-DB8pe9so.mjs.map} +1 -1
  91. package/fesm2022/{acorex-modules-platform-management-settings.provider-CemrvnbH.mjs → acorex-modules-platform-management-settings.provider-BQzM-lyt.mjs} +2 -2
  92. package/fesm2022/{acorex-modules-platform-management-settings.provider-CemrvnbH.mjs.map → acorex-modules-platform-management-settings.provider-BQzM-lyt.mjs.map} +1 -1
  93. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  94. package/fesm2022/acorex-modules-settings-management-setting-page.component-XDFtTqft.mjs +219 -0
  95. package/fesm2022/acorex-modules-settings-management-setting-page.component-XDFtTqft.mjs.map +1 -0
  96. package/fesm2022/acorex-modules-settings-management-setting-view.component-B_6RIU9e.mjs +103 -0
  97. package/fesm2022/acorex-modules-settings-management-setting-view.component-B_6RIU9e.mjs.map +1 -0
  98. package/fesm2022/acorex-modules-settings-management.mjs +442 -0
  99. package/fesm2022/acorex-modules-settings-management.mjs.map +1 -0
  100. package/fesm2022/acorex-modules-training-management.mjs +0 -2
  101. package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
  102. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +7 -61
  103. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +8 -61
  104. package/package.json +5 -1
  105. package/platform-management/lib/const.d.ts +2 -6
  106. package/platform-management/lib/features/app-terms/pages/list/list-terms.component.d.ts +11 -13
  107. package/settings-management/README.md +3 -0
  108. package/settings-management/index.d.ts +2 -0
  109. package/settings-management/lib/features/settings/convert-setting-data.d.ts +2 -0
  110. package/settings-management/lib/features/settings/search-definition.provider.d.ts +4 -0
  111. package/settings-management/lib/features/settings/search.provider.d.ts +9 -0
  112. package/settings-management/lib/features/settings/setting-page/setting-page.component.d.ts +65 -0
  113. package/settings-management/lib/features/settings/setting-view/setting-view.component.d.ts +135 -0
  114. package/settings-management/lib/features/settings/settings.viewmodel.d.ts +46 -0
  115. package/settings-management/lib/settings-management.module.d.ts +9 -0
  116. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-vYaqbxKs.mjs.map +0 -1
  117. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-Cv92x_9Z.mjs.map +0 -1
  118. package/fesm2022/acorex-modules-form-template-management-permission-definition.provider-BrWbwKTK.mjs.map +0 -1
  119. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-DFqOS0So.mjs +0 -92
  120. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-DFqOS0So.mjs.map +0 -1
  121. package/fesm2022/acorex-modules-organization-management-org-chart.page-DnRbGIWN.mjs.map +0 -1
  122. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs.map +0 -1
@@ -14,7 +14,7 @@ import * as i1 from '@angular/common';
14
14
  import { CommonModule } from '@angular/common';
15
15
  import * as i0 from '@angular/core';
16
16
  import { inject, signal, ChangeDetectionStrategy, Component } from '@angular/core';
17
- import { a as AXMAppVersionService } from './acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs';
17
+ import { a as AXMAppVersionService } from './acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs';
18
18
 
19
19
  class AXMListVersionComponent extends AXBasePageComponent {
20
20
  constructor() {
@@ -56,4 +56,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
56
56
  }] });
57
57
 
58
58
  export { AXMListVersionComponent };
59
- //# sourceMappingURL=acorex-modules-platform-management-list-version.component-BElZjmXr.mjs.map
59
+ //# sourceMappingURL=acorex-modules-platform-management-list-version.component-DB8pe9so.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-platform-management-list-version.component-BElZjmXr.mjs","sources":["../../../../libs/modules/platform-management/src/lib/features/app-version/components/list-versions/list-version.component.ts","../../../../libs/modules/platform-management/src/lib/features/app-version/components/list-versions/list-version.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTimeLineModule } from '@acorex/components/time-line';\nimport { AXDateTimeModule } from '@acorex/core/date-time';\nimport { AXFormatModule, AXFormatService } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPHtmlUtils } from '@acorex/platform/core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal, WritableSignal } from '@angular/core';\nimport { AXMAppVersionService } from '../../../../entities/app-version/app-version.service';\nimport { AXMAppVersionListComponentModel } from '../../../../entities/app-version/app-version.types';\n\n@Component({\n selector: 'axm-list-version',\n imports: [\n CommonModule,\n AXTimeLineModule,\n AXDecoratorModule,\n AXFormatModule,\n AXDateTimeModule,\n AXButtonModule,\n AXTranslationModule,\n ],\n templateUrl: './list-version.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXMListVersionComponent extends AXBasePageComponent {\n private appVersionService = inject(AXMAppVersionService);\n private formatService = inject(AXFormatService);\n private htmlUtil = inject(AXPHtmlUtils);\n versions: WritableSignal<AXMAppVersionListComponentModel[]> = signal([]);\n\n protected override async ngOnInit(): Promise<void> {\n const result = await this.appVersionService.query({\n take: 1000,\n skip: 0,\n });\n const mappedItems = result.items.map<AXMAppVersionListComponentModel>((item) => ({\n id: item.id,\n //TODO to translate\n title: `Version ${item.versionNumber} Published at ${this.formatService.format(item.publishDate, 'datetime', {\n format: 'date',\n })}`,\n content: this.htmlUtil.getSafeHTMLfromHTML(item.changeLog) ?? '',\n }));\n this.versions.set(mappedItems);\n }\n}\n","<div class=\"ax-px-12 ax-min-h-96\">\n <ax-time-line>\n @for(version of versions();track version.id){\n <ax-time-line-item [text]=\"version.title\" [isCollapsed]=\"$index == 0 ? false : true\">\n <ax-icon class=\"fa-solid fa-flag-checkered\"></ax-icon>\n <ax-content class=\"ax-px-8 ax-py-2 ax-text-base/6\" [innerHtml]=\"version.content\"></ax-content>\n </ax-time-line-item>\n }\n </ax-time-line>\n</div>\n<ax-footer class=\"ax-flex !ax-justify-end\"\n ><ax-button [text]=\"'okay' | translate | async\" color=\"primary\" (onClick)=\"this.close()\"></ax-button\n></ax-footer>\n"],"names":["i3","i5"],"mappings":";;;;;;;;;;;;;;;;;;AA2BM,MAAO,uBAAwB,SAAQ,mBAAmB,CAAA;AAdhE,IAAA,WAAA,GAAA;;AAeU,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAChD,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,YAAY,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAsD,MAAM,CAAC,E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A,6lBAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"acorex-modules-platform-management-list-version.component-DB8pe9so.mjs","sources":["../../../../libs/modules/platform-management/src/lib/features/app-version/components/list-versions/list-version.component.ts","../../../../libs/modules/platform-management/src/lib/features/app-version/components/list-versions/list-version.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTimeLineModule } from '@acorex/components/time-line';\nimport { AXDateTimeModule } from '@acorex/core/date-time';\nimport { AXFormatModule, AXFormatService } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPHtmlUtils } from '@acorex/platform/core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal, WritableSignal } from '@angular/core';\nimport { AXMAppVersionService } from '../../../../entities/app-version/app-version.service';\nimport { AXMAppVersionListComponentModel } from '../../../../entities/app-version/app-version.types';\n\n@Component({\n selector: 'axm-list-version',\n imports: [\n CommonModule,\n AXTimeLineModule,\n AXDecoratorModule,\n AXFormatModule,\n AXDateTimeModule,\n AXButtonModule,\n AXTranslationModule,\n ],\n templateUrl: './list-version.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXMListVersionComponent extends AXBasePageComponent {\n private appVersionService = inject(AXMAppVersionService);\n private formatService = inject(AXFormatService);\n private htmlUtil = inject(AXPHtmlUtils);\n versions: WritableSignal<AXMAppVersionListComponentModel[]> = signal([]);\n\n protected override async ngOnInit(): Promise<void> {\n const result = await this.appVersionService.query({\n take: 1000,\n skip: 0,\n });\n const mappedItems = result.items.map<AXMAppVersionListComponentModel>((item) => ({\n id: item.id,\n //TODO to translate\n title: `Version ${item.versionNumber} Published at ${this.formatService.format(item.publishDate, 'datetime', {\n format: 'date',\n })}`,\n content: this.htmlUtil.getSafeHTMLfromHTML(item.changeLog) ?? '',\n }));\n this.versions.set(mappedItems);\n }\n}\n","<div class=\"ax-px-12 ax-min-h-96\">\n <ax-time-line>\n @for(version of versions();track version.id){\n <ax-time-line-item [text]=\"version.title\" [isCollapsed]=\"$index == 0 ? false : true\">\n <ax-icon class=\"fa-solid fa-flag-checkered\"></ax-icon>\n <ax-content class=\"ax-px-8 ax-py-2 ax-text-base/6\" [innerHtml]=\"version.content\"></ax-content>\n </ax-time-line-item>\n }\n </ax-time-line>\n</div>\n<ax-footer class=\"ax-flex !ax-justify-end\"\n ><ax-button [text]=\"'okay' | translate | async\" color=\"primary\" (onClick)=\"this.close()\"></ax-button\n></ax-footer>\n"],"names":["i3","i5"],"mappings":";;;;;;;;;;;;;;;;;;AA2BM,MAAO,uBAAwB,SAAQ,mBAAmB,CAAA;AAdhE,IAAA,WAAA,GAAA;;AAeU,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAChD,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,YAAY,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAsD,MAAM,CAAC,EAAE,CAAC;AAiBzE;AAfoB,IAAA,MAAM,QAAQ,GAAA;QAC/B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;AAChD,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,IAAI,EAAE,CAAC;AACR,SAAA,CAAC;AACF,QAAA,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAkC,CAAC,IAAI,MAAM;YAC/E,EAAE,EAAE,IAAI,CAAC,EAAE;;AAEX,YAAA,KAAK,EAAE,CAAW,QAAA,EAAA,IAAI,CAAC,aAAa,kBAAkB,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE;AAC5G,gBAAA,MAAM,EAAE,MAAM;AACf,aAAA,CAAC,C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AAA,EAAAA,EAAA,CAAA,2BAAA,EAAA,QAAA,EAAA,8IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACjB,cAAc,EACd,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,gBAAgB,EAChB,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,cAAc,6XACd,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAKV,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAdnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EACnB,OAAA,EAAA;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,iBAAiB;wBACjB,cAAc;wBACd,gBAAgB;wBAChB,cAAc;wBACd,mBAAmB;qBACpB,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6lBAAA,EAAA;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { AXTranslationService } from '@acorex/core/translation';
2
2
  import { AXPRegionalService } from '@acorex/platform/common';
3
- import { A as AXPRegionalSetting } from './acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs';
3
+ import { A as AXPRegionalSetting } from './acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs';
4
4
  import { objectKeyValueTransforms } from '@acorex/platform/core';
5
5
  import { AXPWidgetsList } from '@acorex/modules/common';
6
6
  import { AXFormatService } from '@acorex/core/format';
@@ -460,4 +460,4 @@ class AXMRegionalSettingProvider {
460
460
  }
461
461
 
462
462
  export { AXMRegionalSettingProvider };
463
- //# sourceMappingURL=acorex-modules-platform-management-settings.provider-CemrvnbH.mjs.map
463
+ //# sourceMappingURL=acorex-modules-platform-management-settings.provider-BQzM-lyt.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-platform-management-settings.provider-CemrvnbH.mjs","sources":["../../../../libs/modules/platform-management/src/lib/features/common/regional/settings.provider.ts"],"sourcesContent":["import { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPRegionalService,\n AXPSettingDefinitionProvider,\n AXPSettingDefinitionProviderContext,\n} from '@acorex/platform/common';\nimport { Injector } from '@angular/core';\nimport { AXPRegionalSetting } from './settings.keys';\nimport { objectKeyValueTransforms } from '@acorex/platform/core';\nimport { AXPWidgetsList } from '@acorex/modules/common';\nimport { AXFormatService } from '@acorex/core/format';\nexport class AXMRegionalSettingProvider implements AXPSettingDefinitionProvider {\n private regionalService = this.injector.get(AXPRegionalService);\n private readonly translateService = this.injector.get(AXTranslationService);\n private readonly formatService = this.injector.get(AXFormatService);\n\n constructor(private injector: Injector) { }\n\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n const trans = async (key: string) => await this.translateService.translateAsync(`settings.regional.${key}`, { scope: 'regional' });\n const profiles = await this.regionalService.getLocaleProfiles();\n const defaultProfile = profiles.find(p => p.code === 'en-US')!;\n\n context\n .addGroup(\n 'regional-settings',\n await trans('title'),\n await trans('description'),\n 'fa-light fa-earth-americas'\n )\n\n // Date & Time Section\n .addSection('date-time', await trans('datetime.title'), await trans('datetime.description'))\n .addSetting({\n key: AXPRegionalSetting.TimeZone,\n title: await trans('datetime.timezone.title'),\n scope: 'T',\n isInherited: true,\n defaultValue: await this.regionalService.getBrowserTimeZoneCode(),\n valueTransforms: objectKeyValueTransforms('code'),\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'code',\n dataSource: await this.regionalService.getTimeZones(),\n },\n },\n description: await trans('datetime.timezone.description'),\n })\n .endSection()\n\n // Region Section\n .addSection('region', await trans('region.title'), await trans('region.description'))\n .addSetting({\n key: AXPRegionalSetting.LocaleProfile,\n title: await trans('region.format.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.code,\n valueTransforms: objectKeyValueTransforms('code'),\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'code',\n dataSource: profiles,\n },\n },\n description: await trans('region.format.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.Language,\n title: await trans('region.language.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: await this.translateService.getDefaultLang(),\n valueTransforms: objectKeyValueTransforms('code'),\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'code',\n dataSource: await this.regionalService.getAvailableLanguages(),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: `{{ widget.setValue(context.eval('${AXPRegionalSetting.LocaleProfile}')) }}`,\n },\n ],\n },\n description: await trans('region.language.description'),\n })\n\n .addSetting({\n key: AXPRegionalSetting.Calendar,\n title: await trans('region.calendar.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.calendar.system,\n valueTransforms: objectKeyValueTransforms('value'),\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n text: await trans('region.calendar.options.gregorian'),\n value: 'gregorian'\n },\n {\n text: await trans('region.calendar.options.hijri'),\n value: 'solar-hijri'\n }\n ],\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').calendar.system) }}`,\n ],\n },\n ],\n },\n description: await trans('region.calendar.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.FirstDayOfWeek,\n title: await trans('region.firstday.title'),\n scope: 'T',\n isInherited: false,\n defaultValue: defaultProfile.calendar.week.startsOn,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n text: await trans('region.firstday.options.saturday'),\n value: 6\n },\n {\n text: await trans('region.firstday.options.sunday'),\n value: 0\n },\n {\n text: await trans('region.firstday.options.monday'),\n value: 1\n }\n ],\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').calendar.week.startsOn) }}`,\n ],\n },\n ],\n },\n },\n description: await trans('region.firstday.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.WeekendDays,\n title: await trans('region.workdays.title'),\n scope: 'T',\n isInherited: false,\n defaultValue: defaultProfile.calendar.week.weekends,\n widget: {\n type: AXPWidgetsList.Editors.SelectionList,\n options: {\n multiple: true,\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { text: await trans('region.workdays.options.monday'), value: 1 },\n { text: await trans('region.workdays.options.tuesday'), value: 2 },\n { text: await trans('region.workdays.options.wednesday'), value: 3 },\n { text: await trans('region.workdays.options.thursday'), value: 4 },\n { text: await trans('region.workdays.options.friday'), value: 5 },\n { text: await trans('region.workdays.options.saturday'), value: 6 },\n { text: await trans('region.workdays.options.sunday'), value: 0 }\n ],\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').calendar.week.weekends) }}`,\n ],\n },\n ],\n },\n description: await trans('region.workdays.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.ShortDate,\n title: await trans('region.shortdate.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.formats.date.short,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: `${c.formats.date.short} (${await this.formatService.format(new Date(), 'datetime', { format: c.formats.date.short })})`,\n value: c.formats.date.short\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').formats.date.short) }}`,\n ],\n },\n ],\n },\n description: await trans('region.shortdate.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.LongDate,\n title: await trans('region.longdate.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.formats.date.long,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: `${c.formats.date.long} (${await this.formatService.format(new Date(), 'datetime', { format: c.formats.date.long })})`,\n value: c.formats.date.long\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').formats.date.long) }}`,\n ],\n },\n ],\n },\n description: await trans('region.longdate.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.ShortTime,\n title: await trans('region.shorttime.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.formats.time.short,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: `${c.formats.time.short} (${await this.formatService.format(new Date(), 'datetime', { format: c.formats.time.short })})`,\n value: c.formats.time.short\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').formats.time.short) }}`,\n ],\n },\n ],\n },\n description: await trans('region.shorttime.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.LongTime,\n title: await trans('region.longtime.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.formats.time.long,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: `${c.formats.time.long} (${await this.formatService.format(new Date(), 'datetime', { format: c.formats.time.long })})`,\n value: c.formats.time.long\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').formats.time.long) }}`,\n ],\n },\n ],\n },\n description: await trans('region.longtime.description'),\n })\n .endSection()\n\n // Unit Settings Section\n .addSection('units', await trans('units.title'), await trans('units.description'))\n .addSetting({\n key: AXPRegionalSetting.TemperatureUnits,\n title: await trans('units.temperature.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.temperature,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.temperature.options.${c.units!.temperature}`),\n value: c.units!.temperature\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.temperature) }}`,\n ],\n },\n ],\n },\n description: await trans('units.temperature.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.DistanceUnits,\n title: await trans('units.distance.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.distance,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.distance.options.${c.units!.distance}`),\n value: c.units!.distance\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.distance) }}`,\n ],\n },\n ],\n },\n description: await trans('units.distance.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.WeightUnits,\n title: await trans('units.weight.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.weight,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.weight.options.${c.units!.weight}`),\n value: c.units!.weight\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.weight) }}`,\n ],\n },\n ],\n },\n description: await trans('units.weight.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.VolumeUnits,\n title: await trans('units.volume.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.volume,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { text: await trans('units.volume.options.liters'), value: 'liters' },\n { text: await trans('units.volume.options.gallons'), value: 'gallons' }\n ],\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.volume) }}`,\n ],\n },\n ],\n },\n description: await trans('units.volume.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.SpeedUnits,\n title: await trans('units.speed.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.speed,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.speed.options.${c.units!.speed}`),\n value: c.units!.speed\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.speed) }}`,\n ],\n },\n ],\n },\n description: await trans('units.speed.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.AreaUnits,\n title: await trans('units.area.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.area,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.area.options.${c.units!.area}`),\n value: c.units!.area\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.area) }}`,\n ],\n },\n ],\n },\n description: await trans('units.area.description'),\n })\n .endSection()\n .endGroup();\n }\n}\n"],"names":[],"mappings":";;;;;;;MAWa,0BAA0B,CAAA;AAKrC,IAAA,WAAA,CAAoB,QAAkB,EAAA;QAAlB,IAAQ,CAAA,QAAA,GAAR,QAAQ;QAJpB,IAAe,CAAA,eAAA,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC;QAC9C,IAAgB,CAAA,gBAAA,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC;QAC1D,IAAa,CAAA,aAAA,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC;;IAInE,MAAM,OAAO,CAAC,OAA4C,EAAA;QACxD,MAAM,KAAK,GAAG,OAAO,GAAW,KAAK,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAqB,kBAAA,EAAA,GAAG,CAAE,CAAA,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QAClI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE;AAC/D,QAAA,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,CAAE;QAE9D;AACG,aAAA,QAAQ,CACP,mBAAmB,EACnB,MAAM,KAAK,CAAC,OAAO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UAAU,EAAE,OAAO;AACnB,oBAAA,SAAS,EAAE,MAAM;AACjB,oBAAA,UAAU,EAAE,MAAM,OAAO,CAAC,GAAG,CAC3B,QAAQ,CAAC,GAAG,CAAC,OAAM,CAAC,MAAK;wBACvB,IAAI,EAAE,MAAM,KAAK,CAAC,CAAA,mBAAA,EAAsB,CAAC,CAAC,KAAM,CAAC,IAAI,CAAA,CAAE,CAAC;AACxD,wBAAA,KAAK,EAAE,CAAC,CAAC,KAAM,CAAC;AACjB,qBAAA,CAAC,CAAC,CACJ;AACF,iBAAA;AACD,gBAAA,QAAQ,EAAE;AACR,oBAAA;AACE,wBAAA,KAAK,EAAE,CAAA,mBAAA,EAAsB,kBAAkB,CAAC,aAAa,CAAO,KAAA,CAAA;AACpE,wBAAA,MAAM,EAAE;4BACN,CAAmC,gCAAA,EAAA,kBAAkB,CAAC,aAAa,CAAkC,gCAAA,CAAA;AACtG,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACD,YAAA,WAAW,EAAE,MAAM,KAAK,CAAC,wBAAwB,CAAC;SACnD;AACA,aAAA,UAAU;AACV,aAAA,QAAQ,EAAE;;AAEhB;;;;"}
1
+ {"version":3,"file":"acorex-modules-platform-management-settings.provider-BQzM-lyt.mjs","sources":["../../../../libs/modules/platform-management/src/lib/features/common/regional/settings.provider.ts"],"sourcesContent":["import { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPRegionalService,\n AXPSettingDefinitionProvider,\n AXPSettingDefinitionProviderContext,\n} from '@acorex/platform/common';\nimport { Injector } from '@angular/core';\nimport { AXPRegionalSetting } from './settings.keys';\nimport { objectKeyValueTransforms } from '@acorex/platform/core';\nimport { AXPWidgetsList } from '@acorex/modules/common';\nimport { AXFormatService } from '@acorex/core/format';\nexport class AXMRegionalSettingProvider implements AXPSettingDefinitionProvider {\n private regionalService = this.injector.get(AXPRegionalService);\n private readonly translateService = this.injector.get(AXTranslationService);\n private readonly formatService = this.injector.get(AXFormatService);\n\n constructor(private injector: Injector) { }\n\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n const trans = async (key: string) => await this.translateService.translateAsync(`settings.regional.${key}`, { scope: 'regional' });\n const profiles = await this.regionalService.getLocaleProfiles();\n const defaultProfile = profiles.find(p => p.code === 'en-US')!;\n\n context\n .addGroup(\n 'regional-settings',\n await trans('title'),\n await trans('description'),\n 'fa-light fa-earth-americas'\n )\n\n // Date & Time Section\n .addSection('date-time', await trans('datetime.title'), await trans('datetime.description'))\n .addSetting({\n key: AXPRegionalSetting.TimeZone,\n title: await trans('datetime.timezone.title'),\n scope: 'T',\n isInherited: true,\n defaultValue: await this.regionalService.getBrowserTimeZoneCode(),\n valueTransforms: objectKeyValueTransforms('code'),\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'code',\n dataSource: await this.regionalService.getTimeZones(),\n },\n },\n description: await trans('datetime.timezone.description'),\n })\n .endSection()\n\n // Region Section\n .addSection('region', await trans('region.title'), await trans('region.description'))\n .addSetting({\n key: AXPRegionalSetting.LocaleProfile,\n title: await trans('region.format.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.code,\n valueTransforms: objectKeyValueTransforms('code'),\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'code',\n dataSource: profiles,\n },\n },\n description: await trans('region.format.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.Language,\n title: await trans('region.language.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: await this.translateService.getDefaultLang(),\n valueTransforms: objectKeyValueTransforms('code'),\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'code',\n dataSource: await this.regionalService.getAvailableLanguages(),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: `{{ widget.setValue(context.eval('${AXPRegionalSetting.LocaleProfile}')) }}`,\n },\n ],\n },\n description: await trans('region.language.description'),\n })\n\n .addSetting({\n key: AXPRegionalSetting.Calendar,\n title: await trans('region.calendar.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.calendar.system,\n valueTransforms: objectKeyValueTransforms('value'),\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n text: await trans('region.calendar.options.gregorian'),\n value: 'gregorian'\n },\n {\n text: await trans('region.calendar.options.hijri'),\n value: 'solar-hijri'\n }\n ],\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').calendar.system) }}`,\n ],\n },\n ],\n },\n description: await trans('region.calendar.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.FirstDayOfWeek,\n title: await trans('region.firstday.title'),\n scope: 'T',\n isInherited: false,\n defaultValue: defaultProfile.calendar.week.startsOn,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n text: await trans('region.firstday.options.saturday'),\n value: 6\n },\n {\n text: await trans('region.firstday.options.sunday'),\n value: 0\n },\n {\n text: await trans('region.firstday.options.monday'),\n value: 1\n }\n ],\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').calendar.week.startsOn) }}`,\n ],\n },\n ],\n },\n },\n description: await trans('region.firstday.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.WeekendDays,\n title: await trans('region.workdays.title'),\n scope: 'T',\n isInherited: false,\n defaultValue: defaultProfile.calendar.week.weekends,\n widget: {\n type: AXPWidgetsList.Editors.SelectionList,\n options: {\n multiple: true,\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { text: await trans('region.workdays.options.monday'), value: 1 },\n { text: await trans('region.workdays.options.tuesday'), value: 2 },\n { text: await trans('region.workdays.options.wednesday'), value: 3 },\n { text: await trans('region.workdays.options.thursday'), value: 4 },\n { text: await trans('region.workdays.options.friday'), value: 5 },\n { text: await trans('region.workdays.options.saturday'), value: 6 },\n { text: await trans('region.workdays.options.sunday'), value: 0 }\n ],\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').calendar.week.weekends) }}`,\n ],\n },\n ],\n },\n description: await trans('region.workdays.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.ShortDate,\n title: await trans('region.shortdate.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.formats.date.short,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: `${c.formats.date.short} (${await this.formatService.format(new Date(), 'datetime', { format: c.formats.date.short })})`,\n value: c.formats.date.short\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').formats.date.short) }}`,\n ],\n },\n ],\n },\n description: await trans('region.shortdate.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.LongDate,\n title: await trans('region.longdate.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.formats.date.long,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: `${c.formats.date.long} (${await this.formatService.format(new Date(), 'datetime', { format: c.formats.date.long })})`,\n value: c.formats.date.long\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').formats.date.long) }}`,\n ],\n },\n ],\n },\n description: await trans('region.longdate.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.ShortTime,\n title: await trans('region.shorttime.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.formats.time.short,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: `${c.formats.time.short} (${await this.formatService.format(new Date(), 'datetime', { format: c.formats.time.short })})`,\n value: c.formats.time.short\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').formats.time.short) }}`,\n ],\n },\n ],\n },\n description: await trans('region.shorttime.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.LongTime,\n title: await trans('region.longtime.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.formats.time.long,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: `${c.formats.time.long} (${await this.formatService.format(new Date(), 'datetime', { format: c.formats.time.long })})`,\n value: c.formats.time.long\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').formats.time.long) }}`,\n ],\n },\n ],\n },\n description: await trans('region.longtime.description'),\n })\n .endSection()\n\n // Unit Settings Section\n .addSection('units', await trans('units.title'), await trans('units.description'))\n .addSetting({\n key: AXPRegionalSetting.TemperatureUnits,\n title: await trans('units.temperature.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.temperature,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.temperature.options.${c.units!.temperature}`),\n value: c.units!.temperature\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.temperature) }}`,\n ],\n },\n ],\n },\n description: await trans('units.temperature.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.DistanceUnits,\n title: await trans('units.distance.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.distance,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.distance.options.${c.units!.distance}`),\n value: c.units!.distance\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.distance) }}`,\n ],\n },\n ],\n },\n description: await trans('units.distance.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.WeightUnits,\n title: await trans('units.weight.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.weight,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.weight.options.${c.units!.weight}`),\n value: c.units!.weight\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.weight) }}`,\n ],\n },\n ],\n },\n description: await trans('units.weight.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.VolumeUnits,\n title: await trans('units.volume.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.volume,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { text: await trans('units.volume.options.liters'), value: 'liters' },\n { text: await trans('units.volume.options.gallons'), value: 'gallons' }\n ],\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.volume) }}`,\n ],\n },\n ],\n },\n description: await trans('units.volume.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.SpeedUnits,\n title: await trans('units.speed.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.speed,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.speed.options.${c.units!.speed}`),\n value: c.units!.speed\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.speed) }}`,\n ],\n },\n ],\n },\n description: await trans('units.speed.description'),\n })\n .addSetting({\n key: AXPRegionalSetting.AreaUnits,\n title: await trans('units.area.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: defaultProfile.units!.area,\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: await Promise.all(\n profiles.map(async c => ({\n text: await trans(`units.area.options.${c.units!.area}`),\n value: c.units!.area\n }))\n ),\n },\n triggers: [\n {\n event: `{{ events.context('${AXPRegionalSetting.LocaleProfile}') }}`,\n action: [\n `{{ widget.setValue(widget.find('${AXPRegionalSetting.LocaleProfile}').output('item').units.area) }}`,\n ],\n },\n ],\n },\n description: await trans('units.area.description'),\n })\n .endSection()\n .endGroup();\n }\n}\n"],"names":[],"mappings":";;;;;;;MAWa,0BAA0B,CAAA;AAKrC,IAAA,WAAA,CAAoB,QAAkB,EAAA;QAAlB,IAAQ,CAAA,QAAA,GAAR,QAAQ;QAJpB,IAAe,CAAA,eAA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A;AACtG,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACD,YAAA,WAAW,EAAE,MAAM,KAAK,CAAC,wBAAwB,CAAC;SACnD;AACA,aAAA,UAAU;AACV,aAAA,QAAQ,EAAE;;AAEhB;;;;"}
@@ -1,2 +1,2 @@
1
- export { I as AXMAppPromotionService, d as AXMAppTermService, e as AXMAppTermServiceImpl, a as AXMAppVersionService, k as AXMAppVersionServiceImpl, m as AXMAppVersionSlotComponent, n as AXMChangeLogPopupAction, o as AXMChangeLogUpdateSettingAction, r as AXMDataSourceService, s as AXMDataSourceServiceImpl, u as AXMGlobalVariablesService, v as AXMGlobalVariablesServiceImpl, x as AXMGlossaryService, y as AXMGlossaryServiceImpl, f as AXMListTermsComponent, E as AXMMetaDataDefinitionCategoryService, F as AXMMetaDataDefinitionCategoryServiceImpl, B as AXMMetaDataDefinitionService, i as AXMNewTermWorkflow, l as AXMNotifyAppComponent, g as AXMNotifyNewTermPopupAction, C as AXMPMetaDataDefinitionServiceImpl, b as AXMPlatformManagementModule, J as AXMPromotionServiceImpl, G as AXMPromotionSlotComponent, h as AXMTermUpdateSettingAction, p as AXMWhatsNewWorkflow, K as AXPRegionalStoreService, R as RootConfig, c as appTermEntityEntityFactory, j as appVersionEntityEntityFactory, q as dataSourceEntityFactory, t as globalVariableEntityFactory, w as glossaryEntityFactory, D as metaDataDefinitionCategoryEntityFactory, z as metaDataDefinitionFactory, H as promotionEntityFactory } from './acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs';
1
+ export { I as AXMAppPromotionService, d as AXMAppTermService, e as AXMAppTermServiceImpl, a as AXMAppVersionService, k as AXMAppVersionServiceImpl, m as AXMAppVersionSlotComponent, n as AXMChangeLogPopupAction, o as AXMChangeLogUpdateSettingAction, r as AXMDataSourceService, s as AXMDataSourceServiceImpl, u as AXMGlobalVariablesService, v as AXMGlobalVariablesServiceImpl, x as AXMGlossaryService, y as AXMGlossaryServiceImpl, f as AXMListTermsComponent, E as AXMMetaDataDefinitionCategoryService, F as AXMMetaDataDefinitionCategoryServiceImpl, B as AXMMetaDataDefinitionService, i as AXMNewTermWorkflow, l as AXMNotifyAppComponent, g as AXMNotifyNewTermPopupAction, C as AXMPMetaDataDefinitionServiceImpl, b as AXMPlatformManagementModule, J as AXMPromotionServiceImpl, G as AXMPromotionSlotComponent, h as AXMTermUpdateSettingAction, p as AXMWhatsNewWorkflow, K as AXPRegionalStoreService, R as RootConfig, c as appTermEntityEntityFactory, j as appVersionEntityEntityFactory, q as dataSourceEntityFactory, t as globalVariableEntityFactory, w as glossaryEntityFactory, D as metaDataDefinitionCategoryEntityFactory, z as metaDataDefinitionFactory, H as promotionEntityFactory } from './acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs';
2
2
  //# sourceMappingURL=acorex-modules-platform-management.mjs.map
@@ -0,0 +1,219 @@
1
+ import { AXBadgeModule } from '@acorex/components/badge';
2
+ import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
3
+ import * as i7 from '@acorex/components/button';
4
+ import { AXButtonModule } from '@acorex/components/button';
5
+ import * as i5 from '@acorex/components/decorators';
6
+ import { AXDecoratorModule } from '@acorex/components/decorators';
7
+ import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
8
+ import * as i9 from '@acorex/components/loading';
9
+ import { AXLoadingModule } from '@acorex/components/loading';
10
+ import * as i4 from '@acorex/components/search-box';
11
+ import { AXSearchBoxModule } from '@acorex/components/search-box';
12
+ import * as i8 from '@acorex/components/tabs';
13
+ import { AXTabsModule } from '@acorex/components/tabs';
14
+ import * as i6 from '@acorex/core/translation';
15
+ import { AXTranslationModule } from '@acorex/core/translation';
16
+ import { AXPThemeLayoutBlockComponent, AXPThemeLayoutListComponent, AXPThemeLayoutListItemComponent, AXPThemeLayoutToolbarComponent, AXPThemeLayoutHeaderComponent, AXPThemeLayoutStartSideComponent } from '@acorex/platform/themes/shared';
17
+ import * as i1 from '@angular/common';
18
+ import { CommonModule } from '@angular/common';
19
+ import * as i0 from '@angular/core';
20
+ import { inject, effect, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
21
+ import * as i2 from '@angular/forms';
22
+ import { FormsModule } from '@angular/forms';
23
+ import * as i3 from '@angular/router';
24
+ import { ActivatedRoute, Router, NavigationEnd, RouterModule } from '@angular/router';
25
+ import { AXHighlightService, resolvePlatformScopeName, resolvePlatformScopeKey } from '@acorex/platform/core';
26
+ import { filter, startWith, firstValueFrom, take } from 'rxjs';
27
+ import { AXUnsubscriber } from '@acorex/core/utils';
28
+ import { AXPBasePageComponent, AXPPageLayoutComponent, AXPBasePage } from '@acorex/platform/themes/default';
29
+ import { AXPSettingsViewModel } from './acorex-modules-settings-management.mjs';
30
+
31
+ class AXPSettingPageComponent extends AXPBasePageComponent {
32
+ constructor() {
33
+ super(...arguments);
34
+ this.vm = inject(AXPSettingsViewModel);
35
+ this.activatedRoute = inject(ActivatedRoute);
36
+ this.unsubscribe = inject(AXUnsubscriber);
37
+ this.highlightService = inject(AXHighlightService);
38
+ this.router = inject(Router);
39
+ this.#effect = effect(() => {
40
+ if (!this.vm.isLoaded()) {
41
+ return;
42
+ }
43
+ const expression = this.vm.searchExpression();
44
+ const app = this.sessionService.application?.name;
45
+ const scope = resolvePlatformScopeName(this.vm.scope());
46
+ const group = this.vm.activateGroup()?.name;
47
+ //
48
+ if (this.vm.isSearching()) {
49
+ this.router.navigate([app, 'settings', scope, group ?? ''], {
50
+ queryParams: { q: expression },
51
+ });
52
+ setTimeout(() => {
53
+ this.highlightService.highlight('#ax-settings', expression);
54
+ }, 100);
55
+ return;
56
+ }
57
+ this.router.navigate([app, 'settings', scope, group ?? '']);
58
+ this.highlightService.clear();
59
+ });
60
+ }
61
+ #effect;
62
+ async ngOnInit() {
63
+ await super.ngOnInit();
64
+ //
65
+ this.router.events
66
+ .pipe(this.unsubscribe.takeUntilDestroy, filter((event) => event instanceof NavigationEnd), startWith(null))
67
+ .subscribe(async () => {
68
+ await this.loadFromRoute();
69
+ });
70
+ }
71
+ async loadFromRoute() {
72
+ const snapshot = this.activatedRoute.snapshot;
73
+ const routerScope = resolvePlatformScopeKey(snapshot.paramMap.get('scope')?.trim().toLowerCase());
74
+ const vmScope = this.vm.scope();
75
+ const query = snapshot.queryParamMap.get('q');
76
+ //
77
+ //
78
+ if (vmScope != routerScope || !this.vm.isLoaded()) {
79
+ await this.vm.load(routerScope);
80
+ }
81
+ this.vm.unloadActivateGroup();
82
+ this.vm.clearSearch();
83
+ //
84
+ let group = await this.getGroupFromRoute();
85
+ //
86
+ if (!group && this.layoutService.isLarge() && !this.vm.isSearching()) {
87
+ group = this.vm.groups()?.[0]?.name;
88
+ if (group) {
89
+ await this.router.navigate([group], { relativeTo: this.activatedRoute, replaceUrl: true });
90
+ }
91
+ }
92
+ else if (group) {
93
+ await this.vm.setActivateGroupByName(group);
94
+ }
95
+ if (query) {
96
+ await this.vm.search(query);
97
+ }
98
+ }
99
+ async getGroupFromRoute() {
100
+ const snapshot = this.activatedRoute.snapshot;
101
+ let group = snapshot.paramMap.get('group');
102
+ //
103
+ if (!group) {
104
+ for (const childRoute of this.activatedRoute.children) {
105
+ const params = await firstValueFrom(childRoute.paramMap.pipe(take(1)));
106
+ group = params?.get('group');
107
+ if (group) {
108
+ break;
109
+ }
110
+ }
111
+ }
112
+ return group ?? undefined;
113
+ }
114
+ async handleSelectGroup(item) {
115
+ await this.router.navigate([`${item.name}`], { relativeTo: this.activatedRoute });
116
+ }
117
+ //#region ---------------- Page Configuration Overrides ----------------
118
+ async getSecondaryMenuItems() {
119
+ if (this.vm.activateGroup()) {
120
+ return [
121
+ {
122
+ title: await this.translateService.translateAsync('actions.restore-defaults.title', { scope: 'settings' }),
123
+ icon: 'fa-light fa-rotate-left',
124
+ color: 'danger',
125
+ command: {
126
+ name: 'restore-defaults'
127
+ }
128
+ }
129
+ ];
130
+ }
131
+ return [];
132
+ }
133
+ async getPageTitle() {
134
+ if (!this.vm.isSearching()) {
135
+ return this.vm.activateGroup()?.title ?? this.translateService.translateAsync(this.vm.scopeTitle(), { scope: 'settings' });
136
+ }
137
+ else {
138
+ return this.translateService.translateAsync('search.title', { scope: 'settings', params: { q: this.vm.searchExpression() } });
139
+ }
140
+ }
141
+ async getPageDescription() {
142
+ if (!this.vm.isSearching()) {
143
+ return this.vm.activateGroup()?.description ?? this.translateService.translateAsync(this.vm.scopeDescription(), { scope: 'settings' });
144
+ }
145
+ else {
146
+ return this.translateService.translateAsync('search.description', { scope: 'settings' });
147
+ }
148
+ }
149
+ async getBackButton() {
150
+ if (this.vm.activateGroup()) {
151
+ return {
152
+ title: await this.translateService.translateAsync(this.vm.scopeTitle(), { scope: 'settings' }),
153
+ };
154
+ }
155
+ return null;
156
+ }
157
+ onBackButtonClick() {
158
+ const app = this.sessionService.application?.name;
159
+ const scope = resolvePlatformScopeName(this.vm.scope());
160
+ //
161
+ this.router.navigate([app, 'settings', scope]);
162
+ }
163
+ async execute(command) {
164
+ switch (command.name) {
165
+ case 'restore-defaults':
166
+ await this.vm.resetToDefault();
167
+ break;
168
+ }
169
+ }
170
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingPageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
171
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPSettingPageComponent, isStandalone: true, selector: "ng-component", host: { classAttribute: "axp-setting-page" }, providers: [
172
+ AXUnsubscriber,
173
+ AXPSettingsViewModel,
174
+ {
175
+ provide: AXPBasePage,
176
+ useExisting: AXPSettingPageComponent
177
+ }
178
+ ], usesInheritance: true, ngImport: i0, template: "<axp-page-layout *translate=\"let t\">\n @if(vm.showGroups()) {\n <axp-layout-start-side>\n <axp-layout-header>\n <axp-layout-title>{{ t(vm.scopeTitle(), { scope: 'settings' }) | async }}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box\n [delayTime]=\"300\"\n [ngModel]=\"vm.searchExpression()\"\n (onValueChanged)=\"vm.search($event.value)\"\n [placeholder]=\"t('search.placeholder', { scope: 'settings' }) | async\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n <axp-layout-content>\n <ax-tabs [look]=\"'with-line-color'\" [location]=\"'end'\" [fitParent]=\"true\">\n @for (item of vm.groups(); track $index) {\n <ax-tab-item\n [text]=\"item.title\"\n (onClick)=\"handleSelectGroup(item)\"\n [active]=\"vm.activateGroup() == item && !vm.isSearching()\"\n >\n <ax-prefix>\n <ax-icon icon=\"far ${{ item.icon }}\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n }\n </ax-tabs>\n </axp-layout-content>\n </axp-layout-start-side>\n }\n\n <axp-page-content id=\"ax-settings\">\n @if(vm.hasActivateGroup() || vm.isSearching()) {\n <router-outlet></router-outlet>\n } @else {\n <axp-layout-list>\n @for (item of vm.groups(); track $index) {\n <axp-layout-list-item (click)=\"handleSelectGroup(item)\">\n <axp-layout-prefix>\n <ax-icon icon=\"far ${{ item.icon }}\" class=\"ax-text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <a class=\"ax-font-semibold\">{{ item.title | translate | async }}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\" far fa-chevron-right\" class=\"ax-text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n </axp-page-content>\n\n @if(vm.isDirty()) {\n <axp-page-footer class=\"--animated\">\n <axp-layout-suffix>\n <ax-button\n [class.ax-sm]=\"layoutService.isSmall()\"\n [disabled]=\"vm.isBusy() || vm.isSaving()\"\n [text]=\"t('discard') | async\"\n (onClick)=\"vm.discard()\"\n >\n </ax-button>\n <ax-button\n [class.ax-sm]=\"layoutService.isSmall()\"\n [disabled]=\"vm.isBusy() || vm.isSaving()\"\n [text]=\"t('apply') | async\"\n (onClick)=\"vm.apply()\"\n [color]=\"'secondary'\"\n >\n @if(vm.isSaving()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-page-footer>\n }\n</axp-page-layout>\n", styles: [".axp-setting-page ax-tabs{--ax-comp-tabs-default-border-radius: 0}.axp-setting-page ax-tabs ax-tab-item{margin-top:0!important;margin-bottom:0!important;padding-top:.75rem!important;padding-bottom:.75rem!important;font-weight:600!important}.axp-setting-page axp-layout-section axp-layout-content{display:flex;width:100%;flex-direction:column}.axp-setting-page axp-layout-section axp-layout-content>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse));border-style:dashed;--tw-divide-opacity: 1;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-divide-opacity, 1))}.axp-setting-page axp-layout-section axp-layout-content .--item-container{align-items:center;gap:1rem;padding:1rem}@media (min-width: 1024px){.axp-setting-page axp-layout-section axp-layout-content .--item-container{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1280px){.axp-setting-page axp-layout-section axp-layout-content .--item-container{padding-left:2rem;padding-right:2rem}}@media (min-width: 1536px){.axp-setting-page axp-layout-section axp-layout-content .--item-container{padding-left:2.5rem;padding-right:2.5rem}}.axp-setting-page axp-layout-section axp-layout-content .--item-container{display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}.axp-setting-page axp-layout-section axp-layout-content .--item-container axp-layout-description{margin-top:.5rem!important;font-size:.75rem!important;line-height:1rem!important}.axp-setting-page axp-layout-start-side{border-inline-end-width:1px;background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface))}.axp-setting-page #ax-settings{padding:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "ngmodule", type:
179
+ //
180
+ AXSearchBoxModule }, { kind: "component", type: i4.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i7.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i8.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i8.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i9.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type:
181
+ //
182
+ AXPPageLayoutComponent, selector: "axp-page-layout" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer, axp-page-header, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-container, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type: AXPThemeLayoutListComponent, selector: "axp-layout-list" }, { kind: "component", type: AXPThemeLayoutListItemComponent, selector: "axp-layout-list-item" }, { kind: "component", type: AXPThemeLayoutToolbarComponent, selector: "axp-layout-toolbar" }, { kind: "component", type: AXPThemeLayoutHeaderComponent, selector: "axp-layout-header" }, { kind: "component", type: AXPThemeLayoutStartSideComponent, selector: "axp-layout-page-start-side, axp-layout-start-side" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
183
+ }
184
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingPageComponent, decorators: [{
185
+ type: Component,
186
+ args: [{ standalone: true, imports: [
187
+ CommonModule,
188
+ FormsModule,
189
+ RouterModule,
190
+ //
191
+ AXSearchBoxModule,
192
+ AXDecoratorModule,
193
+ AXBreadcrumbsModule,
194
+ AXTranslationModule,
195
+ AXButtonModule,
196
+ AXTabsModule,
197
+ AXBadgeModule,
198
+ AXLoadingModule,
199
+ AXDropdownButtonModule,
200
+ //
201
+ AXPPageLayoutComponent,
202
+ AXPThemeLayoutBlockComponent,
203
+ AXPThemeLayoutListComponent,
204
+ AXPThemeLayoutListItemComponent,
205
+ AXPThemeLayoutToolbarComponent,
206
+ AXPThemeLayoutHeaderComponent,
207
+ AXPThemeLayoutStartSideComponent
208
+ ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
209
+ AXUnsubscriber,
210
+ AXPSettingsViewModel,
211
+ {
212
+ provide: AXPBasePage,
213
+ useExisting: AXPSettingPageComponent
214
+ }
215
+ ], host: { class: 'axp-setting-page' }, template: "<axp-page-layout *translate=\"let t\">\n @if(vm.showGroups()) {\n <axp-layout-start-side>\n <axp-layout-header>\n <axp-layout-title>{{ t(vm.scopeTitle(), { scope: 'settings' }) | async }}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box\n [delayTime]=\"300\"\n [ngModel]=\"vm.searchExpression()\"\n (onValueChanged)=\"vm.search($event.value)\"\n [placeholder]=\"t('search.placeholder', { scope: 'settings' }) | async\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n <axp-layout-content>\n <ax-tabs [look]=\"'with-line-color'\" [location]=\"'end'\" [fitParent]=\"true\">\n @for (item of vm.groups(); track $index) {\n <ax-tab-item\n [text]=\"item.title\"\n (onClick)=\"handleSelectGroup(item)\"\n [active]=\"vm.activateGroup() == item && !vm.isSearching()\"\n >\n <ax-prefix>\n <ax-icon icon=\"far ${{ item.icon }}\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n }\n </ax-tabs>\n </axp-layout-content>\n </axp-layout-start-side>\n }\n\n <axp-page-content id=\"ax-settings\">\n @if(vm.hasActivateGroup() || vm.isSearching()) {\n <router-outlet></router-outlet>\n } @else {\n <axp-layout-list>\n @for (item of vm.groups(); track $index) {\n <axp-layout-list-item (click)=\"handleSelectGroup(item)\">\n <axp-layout-prefix>\n <ax-icon icon=\"far ${{ item.icon }}\" class=\"ax-text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <a class=\"ax-font-semibold\">{{ item.title | translate | async }}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\" far fa-chevron-right\" class=\"ax-text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n </axp-page-content>\n\n @if(vm.isDirty()) {\n <axp-page-footer class=\"--animated\">\n <axp-layout-suffix>\n <ax-button\n [class.ax-sm]=\"layoutService.isSmall()\"\n [disabled]=\"vm.isBusy() || vm.isSaving()\"\n [text]=\"t('discard') | async\"\n (onClick)=\"vm.discard()\"\n >\n </ax-button>\n <ax-button\n [class.ax-sm]=\"layoutService.isSmall()\"\n [disabled]=\"vm.isBusy() || vm.isSaving()\"\n [text]=\"t('apply') | async\"\n (onClick)=\"vm.apply()\"\n [color]=\"'secondary'\"\n >\n @if(vm.isSaving()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-page-footer>\n }\n</axp-page-layout>\n", styles: [".axp-setting-page ax-tabs{--ax-comp-tabs-default-border-radius: 0}.axp-setting-page ax-tabs ax-tab-item{margin-top:0!important;margin-bottom:0!important;padding-top:.75rem!important;padding-bottom:.75rem!important;font-weight:600!important}.axp-setting-page axp-layout-section axp-layout-content{display:flex;width:100%;flex-direction:column}.axp-setting-page axp-layout-section axp-layout-content>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse));border-style:dashed;--tw-divide-opacity: 1;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-divide-opacity, 1))}.axp-setting-page axp-layout-section axp-layout-content .--item-container{align-items:center;gap:1rem;padding:1rem}@media (min-width: 1024px){.axp-setting-page axp-layout-section axp-layout-content .--item-container{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1280px){.axp-setting-page axp-layout-section axp-layout-content .--item-container{padding-left:2rem;padding-right:2rem}}@media (min-width: 1536px){.axp-setting-page axp-layout-section axp-layout-content .--item-container{padding-left:2.5rem;padding-right:2.5rem}}.axp-setting-page axp-layout-section axp-layout-content .--item-container{display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}.axp-setting-page axp-layout-section axp-layout-content .--item-container axp-layout-description{margin-top:.5rem!important;font-size:.75rem!important;line-height:1rem!important}.axp-setting-page axp-layout-start-side{border-inline-end-width:1px;background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface))}.axp-setting-page #ax-settings{padding:1rem}\n"] }]
216
+ }] });
217
+
218
+ export { AXPSettingPageComponent };
219
+ //# sourceMappingURL=acorex-modules-settings-management-setting-page.component-XDFtTqft.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-settings-management-setting-page.component-XDFtTqft.mjs","sources":["../../../../libs/modules/settings-management/src/lib/features/settings/setting-page/setting-page.component.ts","../../../../libs/modules/settings-management/src/lib/features/settings/setting-page/setting-page.component.html"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutHeaderComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPThemeLayoutStartSideComponent,\n AXPThemeLayoutToolbarComponent,\n} from '@acorex/platform/themes/shared';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, inject, untracked, ViewEncapsulation } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ActivatedRoute, NavigationEnd, Router, RouterModule } from '@angular/router';\nimport { AXHighlightService, AXPActionMenuItem, AXPBackButton, AXPExecuteCommand, resolvePlatformScopeKey, resolvePlatformScopeName } from '@acorex/platform/core';\nimport { AXPSettingDefinitionGroup } from '@acorex/platform/common';\nimport { filter, firstValueFrom, startWith, take } from 'rxjs';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { AXPBasePage, AXPBasePageComponent, AXPPageLayoutComponent } from '@acorex/platform/themes/default';\nimport { AXPSettingsViewModel } from '../settings.viewmodel';\n\n\n\n@Component({\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n RouterModule,\n //\n AXSearchBoxModule,\n AXDecoratorModule,\n AXBreadcrumbsModule,\n AXTranslationModule,\n AXButtonModule,\n AXTabsModule,\n AXBadgeModule,\n AXLoadingModule,\n AXDropdownButtonModule,\n //\n AXPPageLayoutComponent,\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPThemeLayoutToolbarComponent,\n AXPThemeLayoutHeaderComponent,\n AXPThemeLayoutStartSideComponent\n\n ],\n templateUrl: './setting-page.component.html',\n styleUrl: './setting-page.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n AXUnsubscriber,\n AXPSettingsViewModel,\n {\n provide: AXPBasePage,\n useExisting: AXPSettingPageComponent\n }\n ],\n host: { class: 'axp-setting-page' },\n})\nexport class AXPSettingPageComponent extends AXPBasePageComponent {\n\n protected vm = inject(AXPSettingsViewModel);\n private activatedRoute = inject(ActivatedRoute);\n private unsubscribe = inject(AXUnsubscriber);\n private readonly highlightService = inject(AXHighlightService);\n\n private router = inject(Router);\n\n\n #effect = effect(() => {\n if (!this.vm.isLoaded()) {\n return;\n }\n\n const expression = this.vm.searchExpression();\n const app = this.sessionService.application?.name;\n const scope = resolvePlatformScopeName(this.vm.scope());\n const group = this.vm.activateGroup()?.name;\n //\n if (this.vm.isSearching()) {\n this.router.navigate([app, 'settings', scope, group ?? ''], {\n queryParams: { q: expression },\n });\n setTimeout(() => {\n this.highlightService.highlight('#ax-settings', expression!);\n }, 100);\n return;\n }\n this.router.navigate([app, 'settings', scope, group ?? '']);\n this.highlightService.clear();\n });\n\n\n\n override async ngOnInit(): Promise<void> {\n await super.ngOnInit();\n //\n this.router.events\n .pipe(\n this.unsubscribe.takeUntilDestroy,\n filter((event) => event instanceof NavigationEnd),\n startWith(null),\n )\n .subscribe(async () => {\n await this.loadFromRoute();\n });\n }\n\n\n private async loadFromRoute(): Promise<void> {\n const snapshot = this.activatedRoute.snapshot;\n const routerScope = resolvePlatformScopeKey(snapshot.paramMap.get('scope')?.trim().toLowerCase()!);\n const vmScope = this.vm.scope();\n const query = snapshot.queryParamMap.get('q');\n //\n //\n if (vmScope != routerScope || !this.vm.isLoaded()) {\n await this.vm.load(routerScope);\n }\n this.vm.unloadActivateGroup();\n this.vm.clearSearch();\n //\n let group = await this.getGroupFromRoute();\n //\n if (!group && this.layoutService.isLarge() && !this.vm.isSearching()) {\n group = this.vm.groups()?.[0]?.name;\n if (group) {\n await this.router.navigate([group], { relativeTo: this.activatedRoute, replaceUrl: true });\n }\n }\n else if (group) {\n await this.vm.setActivateGroupByName(group!);\n }\n if (query) {\n await this.vm.search(query);\n }\n }\n\n private async getGroupFromRoute(): Promise<string | undefined> {\n const snapshot = this.activatedRoute.snapshot;\n let group = snapshot.paramMap.get('group');\n //\n if (!group) {\n for (const childRoute of this.activatedRoute.children) {\n const params = await firstValueFrom(childRoute.paramMap.pipe(take(1)));\n group = params?.get('group');\n if (group) {\n break;\n }\n }\n }\n return group ?? undefined;\n }\n\n protected async handleSelectGroup(item: AXPSettingDefinitionGroup) {\n await this.router.navigate([`${item.name}`], { relativeTo: this.activatedRoute });\n }\n\n //#region ---------------- Page Configuration Overrides ----------------\n\n\n override async getSecondaryMenuItems(): Promise<AXPActionMenuItem[]> {\n if (this.vm.activateGroup()) {\n return [\n {\n title: await this.translateService.translateAsync('actions.restore-defaults.title', { scope: 'settings' }),\n icon: 'fa-light fa-rotate-left',\n color: 'danger',\n command: {\n name: 'restore-defaults'\n }\n }\n ];\n }\n return [];\n }\n\n override async getPageTitle(): Promise<string> {\n if (!this.vm.isSearching()) {\n return this.vm.activateGroup()?.title ?? this.translateService.translateAsync(this.vm.scopeTitle(), { scope: 'settings' });\n } else {\n return this.translateService.translateAsync('search.title', { scope: 'settings', params: { q: this.vm.searchExpression() } })\n }\n }\n\n override async getPageDescription(): Promise<string | null> {\n if (!this.vm.isSearching()) {\n return this.vm.activateGroup()?.description ?? this.translateService.translateAsync(this.vm.scopeDescription(), { scope: 'settings' });\n }\n else {\n return this.translateService.translateAsync('search.description', { scope: 'settings' })\n }\n }\n\n override async getBackButton(): Promise<AXPBackButton | null> {\n if (this.vm.activateGroup()) {\n return {\n title: await this.translateService.translateAsync(this.vm.scopeTitle(), { scope: 'settings' }),\n };\n }\n return null;\n }\n\n override onBackButtonClick(): void | Promise<void> {\n const app = this.sessionService.application?.name;\n const scope = resolvePlatformScopeName(this.vm.scope());\n //\n this.router.navigate([app, 'settings', scope]);\n }\n\n\n override async execute(command: AXPExecuteCommand): Promise<void> {\n switch (command.name) {\n case 'restore-defaults':\n await this.vm.resetToDefault();\n break;\n }\n }\n\n //#endregion\n}\n","<axp-page-layout *translate=\"let t\">\n @if(vm.showGroups()) {\n <axp-layout-start-side>\n <axp-layout-header>\n <axp-layout-title>{{ t(vm.scopeTitle(), { scope: 'settings' }) | async }}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box\n [delayTime]=\"300\"\n [ngModel]=\"vm.searchExpression()\"\n (onValueChanged)=\"vm.search($event.value)\"\n [placeholder]=\"t('search.placeholder', { scope: 'settings' }) | async\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n <axp-layout-content>\n <ax-tabs [look]=\"'with-line-color'\" [location]=\"'end'\" [fitParent]=\"true\">\n @for (item of vm.groups(); track $index) {\n <ax-tab-item\n [text]=\"item.title\"\n (onClick)=\"handleSelectGroup(item)\"\n [active]=\"vm.activateGroup() == item && !vm.isSearching()\"\n >\n <ax-prefix>\n <ax-icon icon=\"far ${{ item.icon }}\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n }\n </ax-tabs>\n </axp-layout-content>\n </axp-layout-start-side>\n }\n\n <axp-page-content id=\"ax-settings\">\n @if(vm.hasActivateGroup() || vm.isSearching()) {\n <router-outlet></router-outlet>\n } @else {\n <axp-layout-list>\n @for (item of vm.groups(); track $index) {\n <axp-layout-list-item (click)=\"handleSelectGroup(item)\">\n <axp-layout-prefix>\n <ax-icon icon=\"far ${{ item.icon }}\" class=\"ax-text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <a class=\"ax-font-semibold\">{{ item.title | translate | async }}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\" far fa-chevron-right\" class=\"ax-text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n </axp-page-content>\n\n @if(vm.isDirty()) {\n <axp-page-footer class=\"--animated\">\n <axp-layout-suffix>\n <ax-button\n [class.ax-sm]=\"layoutService.isSmall()\"\n [disabled]=\"vm.isBusy() || vm.isSaving()\"\n [text]=\"t('discard') | async\"\n (onClick)=\"vm.discard()\"\n >\n </ax-button>\n <ax-button\n [class.ax-sm]=\"layoutService.isSmall()\"\n [disabled]=\"vm.isBusy() || vm.isSaving()\"\n [text]=\"t('apply') | async\"\n (onClick)=\"vm.apply()\"\n [color]=\"'secondary'\"\n >\n @if(vm.isSaving()) {\n <ax-loading></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