@acorex/modules 20.7.9 → 20.7.11

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 (121) hide show
  1. package/assessment-management/index.d.ts +266 -1
  2. package/common/index.d.ts +1 -1
  3. package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-5peOXPDz.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-ClgGS32i.mjs} +846 -24
  4. package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-ClgGS32i.mjs.map +1 -0
  5. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-column.component-D6KO7up6.mjs → acorex-modules-assessment-management-answers-viewer-widget-column.component-UmXUT6Xn.mjs} +2 -2
  6. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-column.component-D6KO7up6.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-column.component-UmXUT6Xn.mjs.map} +1 -1
  7. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-edit.component-C4NilFjL.mjs → acorex-modules-assessment-management-answers-viewer-widget-edit.component-vVfXtden.mjs} +2 -2
  8. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-edit.component-C4NilFjL.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-edit.component-vVfXtden.mjs.map} +1 -1
  9. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-view.component-DtHvmJQD.mjs → acorex-modules-assessment-management-answers-viewer-widget-view.component-C75zxKgV.mjs} +2 -2
  10. package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-view.component-DtHvmJQD.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-view.component-C75zxKgV.mjs.map} +1 -1
  11. package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-BDRkvtin.mjs → acorex-modules-assessment-management-assessment-case.entity-CjhC5YAF.mjs} +3 -2
  12. package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-CjhC5YAF.mjs.map +1 -0
  13. package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-MLP74IAt.mjs → acorex-modules-assessment-management-assessment-session.entity-B_IDiEzp.mjs} +2 -2
  14. package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-MLP74IAt.mjs.map → acorex-modules-assessment-management-assessment-session.entity-B_IDiEzp.mjs.map} +1 -1
  15. package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-wtCw3l5I.mjs → acorex-modules-assessment-management-fill-assessment-session.command-zT5u3h_s.mjs} +40 -6
  16. package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-zT5u3h_s.mjs.map +1 -0
  17. package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-Cm7cniSG.mjs → acorex-modules-assessment-management-preview-questionnaire.command-BIXy9eut.mjs} +4 -4
  18. package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-Cm7cniSG.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-BIXy9eut.mjs.map} +1 -1
  19. package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-BIGQMXEc.mjs → acorex-modules-assessment-management-question-bank-item.entity-BWYLXvCp.mjs} +2 -2
  20. package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-BIGQMXEc.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-BWYLXvCp.mjs.map} +1 -1
  21. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-edit.component-BxN8kxpu.mjs → acorex-modules-assessment-management-questionnaire-builder-edit.component-3wVcKQGE.mjs} +2 -2
  22. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-edit.component-BxN8kxpu.mjs.map → acorex-modules-assessment-management-questionnaire-builder-edit.component-3wVcKQGE.mjs.map} +1 -1
  23. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-view.component-CHA00XC0.mjs → acorex-modules-assessment-management-questionnaire-builder-view.component-meuUo7Vx.mjs} +2 -2
  24. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-view.component-CHA00XC0.mjs.map → acorex-modules-assessment-management-questionnaire-builder-view.component-meuUo7Vx.mjs.map} +1 -1
  25. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder.component-C-AX1MiC.mjs → acorex-modules-assessment-management-questionnaire-builder.component-CGgUUkOY.mjs} +3 -3
  26. package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder.component-C-AX1MiC.mjs.map → acorex-modules-assessment-management-questionnaire-builder.component-CGgUUkOY.mjs.map} +1 -1
  27. package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-BY8YfBf1.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-kVnWtedV.mjs} +2 -2
  28. package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-BY8YfBf1.mjs.map → acorex-modules-assessment-management-questionnaire-viewer-popup.component-kVnWtedV.mjs.map} +1 -1
  29. package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer.service-ktXkCzVb.mjs → acorex-modules-assessment-management-questionnaire-viewer.service-D3k3J93r.mjs} +2 -2
  30. package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer.service-ktXkCzVb.mjs.map → acorex-modules-assessment-management-questionnaire-viewer.service-D3k3J93r.mjs.map} +1 -1
  31. package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-C2soGbpn.mjs → acorex-modules-assessment-management-questionnaire.entity-C8sX0d_p.mjs} +2 -2
  32. package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-C2soGbpn.mjs.map → acorex-modules-assessment-management-questionnaire.entity-C8sX0d_p.mjs.map} +1 -1
  33. package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-RvdyXryB.mjs → acorex-modules-assessment-management-view-session-answers.command-Czq7cj9R.mjs} +3 -3
  34. package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-RvdyXryB.mjs.map → acorex-modules-assessment-management-view-session-answers.command-Czq7cj9R.mjs.map} +1 -1
  35. package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
  36. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-Dg9sg98-.mjs → acorex-modules-auth-acorex-modules-auth-IIyirCLb.mjs} +14 -14
  37. package/fesm2022/acorex-modules-auth-acorex-modules-auth-IIyirCLb.mjs.map +1 -0
  38. package/fesm2022/{acorex-modules-auth-app-chooser.component-Dr8EZ7ZX.mjs → acorex-modules-auth-app-chooser.component-BGLW8Qtn.mjs} +2 -2
  39. package/fesm2022/{acorex-modules-auth-app-chooser.component-Dr8EZ7ZX.mjs.map → acorex-modules-auth-app-chooser.component-BGLW8Qtn.mjs.map} +1 -1
  40. package/fesm2022/{acorex-modules-auth-login.module-C7Rt6tLk.mjs → acorex-modules-auth-login.module-uUQkWCgY.mjs} +4 -4
  41. package/fesm2022/{acorex-modules-auth-login.module-C7Rt6tLk.mjs.map → acorex-modules-auth-login.module-uUQkWCgY.mjs.map} +1 -1
  42. package/fesm2022/{acorex-modules-auth-master.layout-CgD5kk65.mjs → acorex-modules-auth-master.layout-XkwT3Slv.mjs} +2 -2
  43. package/fesm2022/{acorex-modules-auth-master.layout-CgD5kk65.mjs.map → acorex-modules-auth-master.layout-XkwT3Slv.mjs.map} +1 -1
  44. package/fesm2022/{acorex-modules-auth-oauth-callback.component-CuGIGBVO.mjs → acorex-modules-auth-oauth-callback.component-C0p17V1b.mjs} +2 -2
  45. package/fesm2022/{acorex-modules-auth-oauth-callback.component-CuGIGBVO.mjs.map → acorex-modules-auth-oauth-callback.component-C0p17V1b.mjs.map} +1 -1
  46. package/fesm2022/{acorex-modules-auth-password.component-DmohsIxt.mjs → acorex-modules-auth-password.component-CaH-OaIv.mjs} +4 -4
  47. package/fesm2022/acorex-modules-auth-password.component-CaH-OaIv.mjs.map +1 -0
  48. package/fesm2022/{acorex-modules-auth-password.component-C6TCAUm4.mjs → acorex-modules-auth-password.component-DDFOsrkt.mjs} +3 -3
  49. package/fesm2022/acorex-modules-auth-password.component-DDFOsrkt.mjs.map +1 -0
  50. package/fesm2022/{acorex-modules-auth-routes-C3162bwa.mjs → acorex-modules-auth-routes-Cik9Y3RJ.mjs} +2 -2
  51. package/fesm2022/{acorex-modules-auth-routes-C3162bwa.mjs.map → acorex-modules-auth-routes-Cik9Y3RJ.mjs.map} +1 -1
  52. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-Ce-n3WC9.mjs → acorex-modules-auth-tenant-chooser.component-B9VJd12P.mjs} +2 -2
  53. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-Ce-n3WC9.mjs.map → acorex-modules-auth-tenant-chooser.component-B9VJd12P.mjs.map} +1 -1
  54. package/fesm2022/{acorex-modules-auth-two-factor.module-B2nPzX-3.mjs → acorex-modules-auth-two-factor.module-D1TKyIXZ.mjs} +2 -2
  55. package/fesm2022/{acorex-modules-auth-two-factor.module-B2nPzX-3.mjs.map → acorex-modules-auth-two-factor.module-D1TKyIXZ.mjs.map} +1 -1
  56. package/fesm2022/{acorex-modules-auth-user-sessions.component-wVKJ2KIm.mjs → acorex-modules-auth-user-sessions.component-MZJramlf.mjs} +2 -2
  57. package/fesm2022/{acorex-modules-auth-user-sessions.component-wVKJ2KIm.mjs.map → acorex-modules-auth-user-sessions.component-MZJramlf.mjs.map} +1 -1
  58. package/fesm2022/acorex-modules-auth.mjs +1 -1
  59. package/fesm2022/acorex-modules-business-core.mjs +1 -1
  60. package/fesm2022/acorex-modules-business-core.mjs.map +1 -1
  61. package/fesm2022/acorex-modules-calendar-management-datasource.provider-C_iazC89.mjs +95 -0
  62. package/fesm2022/acorex-modules-calendar-management-datasource.provider-C_iazC89.mjs.map +1 -0
  63. package/fesm2022/acorex-modules-calendar-management.mjs +68 -33
  64. package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
  65. package/fesm2022/acorex-modules-common.mjs +25 -17
  66. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  67. package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
  68. package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
  69. package/fesm2022/acorex-modules-data-management.mjs +387 -12
  70. package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
  71. package/fesm2022/{acorex-modules-document-management-link-dialog.component-Civ7UZb8.mjs → acorex-modules-document-management-link-dialog.component-F1DkJ4Ns.mjs} +2 -2
  72. package/fesm2022/acorex-modules-document-management-link-dialog.component-F1DkJ4Ns.mjs.map +1 -0
  73. package/fesm2022/{acorex-modules-document-management-share-dialog.component-BwUZShJg.mjs → acorex-modules-document-management-share-dialog.component-BV2JJmED.mjs} +2 -2
  74. package/fesm2022/acorex-modules-document-management-share-dialog.component-BV2JJmED.mjs.map +1 -0
  75. package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-BMiCmb1k.mjs → acorex-modules-document-management-share-email-dialog.component-Dn-j0ETn.mjs} +2 -2
  76. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-Dn-j0ETn.mjs.map +1 -0
  77. package/fesm2022/acorex-modules-document-management.mjs +3 -3
  78. package/fesm2022/acorex-modules-financial-core-data-source.provider-Do4rvgy4.mjs +73 -0
  79. package/fesm2022/acorex-modules-financial-core-data-source.provider-Do4rvgy4.mjs.map +1 -0
  80. package/fesm2022/acorex-modules-financial-core.mjs +4 -2
  81. package/fesm2022/acorex-modules-financial-core.mjs.map +1 -1
  82. package/fesm2022/acorex-modules-form-template-management.mjs +37 -405
  83. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
  84. package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-CydmGF5Q.mjs → acorex-modules-help-desk-acorex-modules-help-desk-Clea9Hhv.mjs} +3 -3
  85. package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-CydmGF5Q.mjs.map → acorex-modules-help-desk-acorex-modules-help-desk-Clea9Hhv.mjs.map} +1 -1
  86. package/fesm2022/{acorex-modules-help-desk-capture-screen.component-Bsq1FJId.mjs → acorex-modules-help-desk-capture-screen.component-CiQv__MW.mjs} +2 -2
  87. package/fesm2022/{acorex-modules-help-desk-capture-screen.component-Bsq1FJId.mjs.map → acorex-modules-help-desk-capture-screen.component-CiQv__MW.mjs.map} +1 -1
  88. package/fesm2022/acorex-modules-help-desk.mjs +1 -1
  89. package/fesm2022/acorex-modules-locale-management.mjs +13 -355
  90. package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
  91. package/fesm2022/acorex-modules-location-management.mjs +140 -6
  92. package/fesm2022/acorex-modules-location-management.mjs.map +1 -1
  93. package/fesm2022/acorex-modules-measurement-core.mjs +1 -1
  94. package/fesm2022/acorex-modules-measurement-core.mjs.map +1 -1
  95. package/fesm2022/acorex-modules-notification-management.mjs +1 -1
  96. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  97. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DVkP3JKC.mjs → acorex-modules-platform-management-acorex-modules-platform-management-BAIx0BJe.mjs} +3 -3
  98. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DVkP3JKC.mjs.map → acorex-modules-platform-management-acorex-modules-platform-management-BAIx0BJe.mjs.map} +1 -1
  99. package/fesm2022/{acorex-modules-platform-management-menu-list.component-C_mdsuRc.mjs → acorex-modules-platform-management-menu-list.component-BxGLun0f.mjs} +2 -2
  100. package/fesm2022/{acorex-modules-platform-management-menu-list.component-C_mdsuRc.mjs.map → acorex-modules-platform-management-menu-list.component-BxGLun0f.mjs.map} +1 -1
  101. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  102. package/fesm2022/{acorex-modules-product-catalog-product.entity-CuTXUcc1.mjs → acorex-modules-product-catalog-product.entity-BXDh4Wlu.mjs} +10 -2
  103. package/fesm2022/acorex-modules-product-catalog-product.entity-BXDh4Wlu.mjs.map +1 -0
  104. package/fesm2022/acorex-modules-product-catalog.mjs +1 -1
  105. package/fesm2022/{acorex-modules-task-management-task-board.page-BUp5SQ7b.mjs → acorex-modules-task-management-task-board.page-Cgxdk78j.mjs} +3 -3
  106. package/fesm2022/acorex-modules-task-management-task-board.page-Cgxdk78j.mjs.map +1 -0
  107. package/fesm2022/acorex-modules-task-management.mjs +1 -1
  108. package/form-template-management/index.d.ts +2 -12
  109. package/locale-management/index.d.ts +3 -23
  110. package/package.json +2 -2
  111. package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-5peOXPDz.mjs.map +0 -1
  112. package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-BDRkvtin.mjs.map +0 -1
  113. package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-wtCw3l5I.mjs.map +0 -1
  114. package/fesm2022/acorex-modules-auth-acorex-modules-auth-Dg9sg98-.mjs.map +0 -1
  115. package/fesm2022/acorex-modules-auth-password.component-C6TCAUm4.mjs.map +0 -1
  116. package/fesm2022/acorex-modules-auth-password.component-DmohsIxt.mjs.map +0 -1
  117. package/fesm2022/acorex-modules-document-management-link-dialog.component-Civ7UZb8.mjs.map +0 -1
  118. package/fesm2022/acorex-modules-document-management-share-dialog.component-BwUZShJg.mjs.map +0 -1
  119. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-BMiCmb1k.mjs.map +0 -1
  120. package/fesm2022/acorex-modules-product-catalog-product.entity-CuTXUcc1.mjs.map +0 -1
  121. package/fesm2022/acorex-modules-task-management-task-board.page-BUp5SQ7b.mjs.map +0 -1
@@ -4,7 +4,7 @@ import { AXPDesignerConnector, AXPDesignerService, AXPWidgetDesignerRendererDire
4
4
  import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_BEHAVIOR_PROPERTY_GROUP, AXPWidgetsModule } from '@acorex/platform/layout/widgets';
5
5
  import * as i2$1 from '@acorex/platform/workflow';
6
6
  import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
7
- import { AXPDataGenerator, AXPBroadcastEventService, AXP_MODULE_MANIFEST_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER } from '@acorex/platform/core';
7
+ import { AXPDataGenerator, AXPBroadcastEventService, AXP_MODULE_MANIFEST_PROVIDER } from '@acorex/platform/core';
8
8
  import { AXPEntityService, AXMEntityCrudServiceImpl, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
9
9
  import { AXPSearchCommandProvider, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
10
10
  import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
@@ -13,11 +13,10 @@ import { Injectable, inject, Injector, NgModule, InjectionToken, computed, signa
13
13
  import { ROUTES } from '@angular/router';
14
14
  import * as i3 from '@acorex/core/translation';
15
15
  import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
16
+ import { get, sortBy } from 'lodash-es';
16
17
  import * as i2 from '@angular/common';
17
18
  import { CommonModule } from '@angular/common';
18
- import { sortBy, get } from 'lodash-es';
19
19
  import { AXPopupService } from '@acorex/components/popup';
20
- import { AXDataSource } from '@acorex/cdk/common';
21
20
  import { AXPTemplateViewerService } from '@acorex/platform/layout/components';
22
21
  import { AXP_IDENTIFIER_RULES } from '@acorex/modules/identifier-management';
23
22
 
@@ -312,6 +311,40 @@ const AXMFormTemplateTypes = {
312
311
  Report: { id: 30, title: 'Report Template' },
313
312
  };
314
313
 
314
+ class AXPTemplateWidgetProviderImpl {
315
+ constructor() {
316
+ this.service = inject(AXMFormTemplateManagementTemplateEntityService);
317
+ }
318
+ async items(query) {
319
+ const result = (await this.service.query(query)).items.map((c) => ({
320
+ id: c.id,
321
+ title: c.title,
322
+ group: {
323
+ name: c.categoryIds[0],
324
+ order: 2,
325
+ title: get(c, 'category.title') ?? 'Custom',
326
+ },
327
+ description: c.description,
328
+ }));
329
+ return result;
330
+ }
331
+ async get(id) {
332
+ const item = await this.service.getOne(id);
333
+ if (item) {
334
+ const document = JSON.parse(item.template);
335
+ const page = document?.children?.[0];
336
+ return {
337
+ id: item.id,
338
+ nodes: page?.children ?? [],
339
+ title: item.title,
340
+ };
341
+ }
342
+ else {
343
+ throw Error('Invalid Id');
344
+ }
345
+ }
346
+ }
347
+
315
348
  class AXPDesignerConnectorImpl extends AXPDesignerConnector {
316
349
  constructor() {
317
350
  super(...arguments);
@@ -813,363 +846,6 @@ const AXPTemplateDesignerWidget = {
813
846
  }
814
847
  };
815
848
 
816
- class AXMQuestionnaireDataSourceDefinition {
817
- constructor() {
818
- //#region ---- Yes/No Options ----
819
- this.yesNoOptions = {
820
- name: 'yes-no-options',
821
- title: '@questionnaire:datasources.yes-no-options.title',
822
- columns: [
823
- {
824
- name: 'value',
825
- title: '@questionnaire:datasources.yes-no-options.columns.value.title',
826
- type: AXPWidgetsCatalog.text,
827
- datatype: 'string',
828
- },
829
- {
830
- name: 'title',
831
- title: '@questionnaire:datasources.yes-no-options.columns.title.title',
832
- type: AXPWidgetsCatalog.text,
833
- datatype: 'string',
834
- },
835
- ],
836
- filters: [],
837
- textField: { name: 'title', title: '@questionnaire:datasources.yes-no-options.columns.title.title' },
838
- valueField: { name: 'value', title: '@questionnaire:datasources.yes-no-options.columns.value.title' },
839
- samples: [
840
- { value: 'yes', title: '@questionnaire:datasources.yes-no-options.samples.yes' },
841
- { value: 'no', title: '@questionnaire:datasources.yes-no-options.samples.no' },
842
- ],
843
- source: () => {
844
- return new AXDataSource({
845
- pageSize: 10,
846
- key: 'value',
847
- load: async () => {
848
- return {
849
- items: [
850
- { value: 'yes', title: '@questionnaire:datasources.yes-no-options.samples.yes' },
851
- { value: 'no', title: '@questionnaire:datasources.yes-no-options.samples.no' },
852
- ],
853
- total: 2,
854
- };
855
- },
856
- byKey: async (key) => {
857
- const items = [
858
- { value: 'yes', title: '@questionnaire:datasources.yes-no-options.samples.yes' },
859
- { value: 'no', title: '@questionnaire:datasources.yes-no-options.samples.no' },
860
- ];
861
- return items.find(item => item.value === key);
862
- },
863
- });
864
- },
865
- };
866
- //#endregion
867
- //#region ---- Rating Scale Options ----
868
- this.ratingScaleOptions = {
869
- name: 'rating-scale-options',
870
- title: '@questionnaire:datasources.rating-scale-options.title',
871
- columns: [
872
- {
873
- name: 'value',
874
- title: '@questionnaire:datasources.rating-scale-options.columns.value.title',
875
- type: AXPWidgetsCatalog.text,
876
- datatype: 'number',
877
- },
878
- {
879
- name: 'title',
880
- title: '@questionnaire:datasources.rating-scale-options.columns.title.title',
881
- type: AXPWidgetsCatalog.text,
882
- datatype: 'string',
883
- },
884
- {
885
- name: 'description',
886
- title: '@questionnaire:datasources.rating-scale-options.columns.description.title',
887
- type: AXPWidgetsCatalog.text,
888
- datatype: 'string',
889
- },
890
- ],
891
- filters: [],
892
- textField: { name: 'title', title: '@questionnaire:datasources.rating-scale-options.columns.title.title' },
893
- valueField: { name: 'value', title: '@questionnaire:datasources.rating-scale-options.columns.value.title' },
894
- samples: [
895
- { value: 1, title: '@questionnaire:datasources.rating-scale-options.samples.1', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.1' },
896
- { value: 2, title: '@questionnaire:datasources.rating-scale-options.samples.2', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.2' },
897
- { value: 3, title: '@questionnaire:datasources.rating-scale-options.samples.3', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.3' },
898
- { value: 4, title: '@questionnaire:datasources.rating-scale-options.samples.4', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.4' },
899
- { value: 5, title: '@questionnaire:datasources.rating-scale-options.samples.5', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.5' },
900
- ],
901
- source: () => {
902
- return new AXDataSource({
903
- pageSize: 10,
904
- key: 'value',
905
- load: async () => {
906
- return {
907
- items: [
908
- { value: 1, title: '@questionnaire:datasources.rating-scale-options.samples.1', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.1' },
909
- { value: 2, title: '@questionnaire:datasources.rating-scale-options.samples.2', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.2' },
910
- { value: 3, title: '@questionnaire:datasources.rating-scale-options.samples.3', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.3' },
911
- { value: 4, title: '@questionnaire:datasources.rating-scale-options.samples.4', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.4' },
912
- { value: 5, title: '@questionnaire:datasources.rating-scale-options.samples.5', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.5' },
913
- ],
914
- total: 5,
915
- };
916
- },
917
- byKey: async (key) => {
918
- const items = [
919
- { value: 1, title: '@questionnaire:datasources.rating-scale-options.samples.1', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.1' },
920
- { value: 2, title: '@questionnaire:datasources.rating-scale-options.samples.2', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.2' },
921
- { value: 3, title: '@questionnaire:datasources.rating-scale-options.samples.3', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.3' },
922
- { value: 4, title: '@questionnaire:datasources.rating-scale-options.samples.4', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.4' },
923
- { value: 5, title: '@questionnaire:datasources.rating-scale-options.samples.5', description: '@questionnaire:datasources.rating-scale-options.samples.descriptions.5' },
924
- ];
925
- return items.find(item => item.value === key);
926
- },
927
- });
928
- },
929
- };
930
- //#endregion
931
- //#region ---- Agreement Scale Options ----
932
- this.agreementScaleOptions = {
933
- name: 'agreement-scale-options',
934
- title: '@questionnaire:datasources.agreement-scale-options.title',
935
- columns: [
936
- {
937
- name: 'value',
938
- title: '@questionnaire:datasources.agreement-scale-options.columns.value.title',
939
- type: AXPWidgetsCatalog.text,
940
- datatype: 'string',
941
- },
942
- {
943
- name: 'title',
944
- title: '@questionnaire:datasources.agreement-scale-options.columns.title.title',
945
- type: AXPWidgetsCatalog.text,
946
- datatype: 'string',
947
- },
948
- ],
949
- filters: [],
950
- textField: { name: 'title', title: '@questionnaire:datasources.agreement-scale-options.columns.title.title' },
951
- valueField: { name: 'value', title: '@questionnaire:datasources.agreement-scale-options.columns.value.title' },
952
- samples: [
953
- { value: 'strongly-disagree', title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-disagree' },
954
- { value: 'disagree', title: '@questionnaire:datasources.agreement-scale-options.samples.disagree' },
955
- { value: 'neutral', title: '@questionnaire:datasources.agreement-scale-options.samples.neutral' },
956
- { value: 'agree', title: '@questionnaire:datasources.agreement-scale-options.samples.agree' },
957
- { value: 'strongly-agree', title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-agree' },
958
- ],
959
- source: () => {
960
- return new AXDataSource({
961
- pageSize: 10,
962
- key: 'value',
963
- load: async () => {
964
- return {
965
- items: [
966
- { value: 'strongly-disagree', title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-disagree' },
967
- { value: 'disagree', title: '@questionnaire:datasources.agreement-scale-options.samples.disagree' },
968
- { value: 'neutral', title: '@questionnaire:datasources.agreement-scale-options.samples.neutral' },
969
- { value: 'agree', title: '@questionnaire:datasources.agreement-scale-options.samples.agree' },
970
- { value: 'strongly-agree', title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-agree' },
971
- ],
972
- total: 5,
973
- };
974
- },
975
- byKey: async (key) => {
976
- const items = [
977
- { value: 'strongly-disagree', title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-disagree' },
978
- { value: 'disagree', title: '@questionnaire:datasources.agreement-scale-options.samples.disagree' },
979
- { value: 'neutral', title: '@questionnaire:datasources.agreement-scale-options.samples.neutral' },
980
- { value: 'agree', title: '@questionnaire:datasources.agreement-scale-options.samples.agree' },
981
- { value: 'strongly-agree', title: '@questionnaire:datasources.agreement-scale-options.samples.strongly-agree' },
982
- ];
983
- return items.find(item => item.value === key);
984
- },
985
- });
986
- },
987
- };
988
- //#endregion
989
- //#region ---- Frequency Options ----
990
- this.frequencyOptions = {
991
- name: 'frequency-options',
992
- title: '@questionnaire:datasources.frequency-options.title',
993
- columns: [
994
- {
995
- name: 'value',
996
- title: '@questionnaire:datasources.frequency-options.columns.value.title',
997
- type: AXPWidgetsCatalog.text,
998
- datatype: 'string',
999
- },
1000
- {
1001
- name: 'title',
1002
- title: '@questionnaire:datasources.frequency-options.columns.title.title',
1003
- type: AXPWidgetsCatalog.text,
1004
- datatype: 'string',
1005
- },
1006
- ],
1007
- filters: [],
1008
- textField: { name: 'title', title: '@questionnaire:datasources.frequency-options.columns.title.title' },
1009
- valueField: { name: 'value', title: '@questionnaire:datasources.frequency-options.columns.value.title' },
1010
- samples: [
1011
- { value: 'never', title: '@questionnaire:datasources.frequency-options.samples.never' },
1012
- { value: 'rarely', title: '@questionnaire:datasources.frequency-options.samples.rarely' },
1013
- { value: 'sometimes', title: '@questionnaire:datasources.frequency-options.samples.sometimes' },
1014
- { value: 'often', title: '@questionnaire:datasources.frequency-options.samples.often' },
1015
- { value: 'always', title: '@questionnaire:datasources.frequency-options.samples.always' },
1016
- ],
1017
- source: () => {
1018
- return new AXDataSource({
1019
- pageSize: 10,
1020
- key: 'value',
1021
- load: async () => {
1022
- return {
1023
- items: [
1024
- { value: 'never', title: '@questionnaire:datasources.frequency-options.samples.never' },
1025
- { value: 'rarely', title: '@questionnaire:datasources.frequency-options.samples.rarely' },
1026
- { value: 'sometimes', title: '@questionnaire:datasources.frequency-options.samples.sometimes' },
1027
- { value: 'often', title: '@questionnaire:datasources.frequency-options.samples.often' },
1028
- { value: 'always', title: '@questionnaire:datasources.frequency-options.samples.always' },
1029
- ],
1030
- total: 5,
1031
- };
1032
- },
1033
- byKey: async (key) => {
1034
- const items = [
1035
- { value: 'never', title: '@questionnaire:datasources.frequency-options.samples.never' },
1036
- { value: 'rarely', title: '@questionnaire:datasources.frequency-options.samples.rarely' },
1037
- { value: 'sometimes', title: '@questionnaire:datasources.frequency-options.samples.sometimes' },
1038
- { value: 'often', title: '@questionnaire:datasources.frequency-options.samples.often' },
1039
- { value: 'always', title: '@questionnaire:datasources.frequency-options.samples.always' },
1040
- ];
1041
- return items.find(item => item.value === key);
1042
- },
1043
- });
1044
- },
1045
- };
1046
- //#endregion
1047
- //#region ---- Satisfaction Options ----
1048
- this.satisfactionOptions = {
1049
- name: 'satisfaction-options',
1050
- title: '@questionnaire:datasources.satisfaction-options.title',
1051
- columns: [
1052
- {
1053
- name: 'value',
1054
- title: '@questionnaire:datasources.satisfaction-options.columns.value.title',
1055
- type: AXPWidgetsCatalog.text,
1056
- datatype: 'string',
1057
- },
1058
- {
1059
- name: 'title',
1060
- title: '@questionnaire:datasources.satisfaction-options.columns.title.title',
1061
- type: AXPWidgetsCatalog.text,
1062
- datatype: 'string',
1063
- },
1064
- ],
1065
- filters: [],
1066
- textField: { name: 'title', title: '@questionnaire:datasources.satisfaction-options.columns.title.title' },
1067
- valueField: { name: 'value', title: '@questionnaire:datasources.satisfaction-options.columns.value.title' },
1068
- samples: [
1069
- { value: 'very-dissatisfied', title: '@questionnaire:datasources.satisfaction-options.samples.very-dissatisfied' },
1070
- { value: 'dissatisfied', title: '@questionnaire:datasources.satisfaction-options.samples.dissatisfied' },
1071
- { value: 'neutral', title: '@questionnaire:datasources.satisfaction-options.samples.neutral' },
1072
- { value: 'satisfied', title: '@questionnaire:datasources.satisfaction-options.samples.satisfied' },
1073
- { value: 'very-satisfied', title: '@questionnaire:datasources.satisfaction-options.samples.very-satisfied' },
1074
- ],
1075
- source: () => {
1076
- return new AXDataSource({
1077
- pageSize: 10,
1078
- key: 'value',
1079
- load: async () => {
1080
- return {
1081
- items: [
1082
- { value: 'very-dissatisfied', title: '@questionnaire:datasources.satisfaction-options.samples.very-dissatisfied' },
1083
- { value: 'dissatisfied', title: '@questionnaire:datasources.satisfaction-options.samples.dissatisfied' },
1084
- { value: 'neutral', title: '@questionnaire:datasources.satisfaction-options.samples.neutral' },
1085
- { value: 'satisfied', title: '@questionnaire:datasources.satisfaction-options.samples.satisfied' },
1086
- { value: 'very-satisfied', title: '@questionnaire:datasources.satisfaction-options.samples.very-satisfied' },
1087
- ],
1088
- total: 5,
1089
- };
1090
- },
1091
- byKey: async (key) => {
1092
- const items = [
1093
- { value: 'very-dissatisfied', title: '@questionnaire:datasources.satisfaction-options.samples.very-dissatisfied' },
1094
- { value: 'dissatisfied', title: '@questionnaire:datasources.satisfaction-options.samples.dissatisfied' },
1095
- { value: 'neutral', title: '@questionnaire:datasources.satisfaction-options.samples.neutral' },
1096
- { value: 'satisfied', title: '@questionnaire:datasources.satisfaction-options.samples.satisfied' },
1097
- { value: 'very-satisfied', title: '@questionnaire:datasources.satisfaction-options.samples.very-satisfied' },
1098
- ];
1099
- return items.find(item => item.value === key);
1100
- },
1101
- });
1102
- },
1103
- };
1104
- //#endregion
1105
- //#region ---- Priority Options ----
1106
- this.priorityOptions = {
1107
- name: 'priority-options',
1108
- title: '@questionnaire:datasources.priority-options.title',
1109
- columns: [
1110
- {
1111
- name: 'value',
1112
- title: '@questionnaire:datasources.priority-options.columns.value.title',
1113
- type: AXPWidgetsCatalog.text,
1114
- datatype: 'string',
1115
- },
1116
- {
1117
- name: 'title',
1118
- title: '@questionnaire:datasources.priority-options.columns.title.title',
1119
- type: AXPWidgetsCatalog.text,
1120
- datatype: 'string',
1121
- },
1122
- ],
1123
- filters: [],
1124
- textField: { name: 'title', title: '@questionnaire:datasources.priority-options.columns.title.title' },
1125
- valueField: { name: 'value', title: '@questionnaire:datasources.priority-options.columns.value.title' },
1126
- samples: [
1127
- { value: 'low', title: '@questionnaire:datasources.priority-options.samples.low' },
1128
- { value: 'medium', title: '@questionnaire:datasources.priority-options.samples.medium' },
1129
- { value: 'high', title: '@questionnaire:datasources.priority-options.samples.high' },
1130
- { value: 'critical', title: '@questionnaire:datasources.priority-options.samples.critical' },
1131
- ],
1132
- source: () => {
1133
- return new AXDataSource({
1134
- pageSize: 10,
1135
- key: 'value',
1136
- load: async () => {
1137
- return {
1138
- items: [
1139
- { value: 'low', title: '@questionnaire:datasources.priority-options.samples.low' },
1140
- { value: 'medium', title: '@questionnaire:datasources.priority-options.samples.medium' },
1141
- { value: 'high', title: '@questionnaire:datasources.priority-options.samples.high' },
1142
- { value: 'critical', title: '@questionnaire:datasources.priority-options.samples.critical' },
1143
- ],
1144
- total: 4,
1145
- };
1146
- },
1147
- byKey: async (key) => {
1148
- const items = [
1149
- { value: 'low', title: '@questionnaire:datasources.priority-options.samples.low' },
1150
- { value: 'medium', title: '@questionnaire:datasources.priority-options.samples.medium' },
1151
- { value: 'high', title: '@questionnaire:datasources.priority-options.samples.high' },
1152
- { value: 'critical', title: '@questionnaire:datasources.priority-options.samples.critical' },
1153
- ];
1154
- return items.find(item => item.value === key);
1155
- },
1156
- });
1157
- },
1158
- };
1159
- }
1160
- //#endregion
1161
- async items() {
1162
- return [
1163
- this.yesNoOptions,
1164
- this.ratingScaleOptions,
1165
- this.agreementScaleOptions,
1166
- this.frequencyOptions,
1167
- this.satisfactionOptions,
1168
- this.priorityOptions,
1169
- ];
1170
- }
1171
- }
1172
-
1173
849
  /**
1174
850
  * Show Form Activity - Displays a form dialog using Layout Builder.
1175
851
  *
@@ -1516,40 +1192,6 @@ class AXMQuestionnaireDataSourceDefinition {
1516
1192
  // }
1517
1193
  // }
1518
1194
 
1519
- class AXPTemplateWidgetProviderImpl {
1520
- constructor() {
1521
- this.service = inject(AXMFormTemplateManagementTemplateEntityService);
1522
- }
1523
- async items(query) {
1524
- const result = (await this.service.query(query)).items.map((c) => ({
1525
- id: c.id,
1526
- title: c.title,
1527
- group: {
1528
- name: c.categoryIds[0],
1529
- order: 2,
1530
- title: get(c, 'category.title') ?? 'Custom',
1531
- },
1532
- description: c.description,
1533
- }));
1534
- return result;
1535
- }
1536
- async get(id) {
1537
- const item = await this.service.getOne(id);
1538
- if (item) {
1539
- const document = JSON.parse(item.template);
1540
- const page = document?.children?.[0];
1541
- return {
1542
- id: item.id,
1543
- nodes: page?.children ?? [],
1544
- title: item.title,
1545
- };
1546
- }
1547
- else {
1548
- throw Error('Invalid Id');
1549
- }
1550
- }
1551
- }
1552
-
1553
1195
  class AXPFormTemplateViewerConnector {
1554
1196
  }
1555
1197
  class AXPFormTemplateViewerConnectorImpl extends AXPFormTemplateViewerConnector {
@@ -1813,11 +1455,6 @@ class AXMFormTemplateManagementModule {
1813
1455
  useClass: AXMSearchCommandProvider,
1814
1456
  multi: true,
1815
1457
  },
1816
- {
1817
- provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1818
- useClass: AXMQuestionnaireDataSourceDefinition,
1819
- multi: true,
1820
- },
1821
1458
  ], imports: [AXPWidgetsModule,
1822
1459
  AXMFormTemplateManagementTemplateEntityModule,
1823
1460
  AXPWidgetCoreModule.forChild({
@@ -1929,11 +1566,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1929
1566
  useClass: AXMSearchCommandProvider,
1930
1567
  multi: true,
1931
1568
  },
1932
- {
1933
- provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
1934
- useClass: AXMQuestionnaireDataSourceDefinition,
1935
- multi: true,
1936
- },
1937
1569
  ],
1938
1570
  }]
1939
1571
  }] });
@@ -1942,5 +1574,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1942
1574
  * Generated bundle index. Do not edit.
1943
1575
  */
1944
1576
 
1945
- export { AXMCreateFormTemplateWorkflow, AXMDesignFormTemplateWorkflow, AXMFormTemplateManagementModule, AXMFormTemplateManagementTemplateEntityModule, AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl, AXMFormTemplateTypes, AXMQuestionnaireDataSourceDefinition, AXPDesignerConnectorImpl, AXPFormTemplateManagementPermissionKeys, AXPTemplateDesignerWidget, AXPTemplateDesignerWidgetViewComponent, AXPTemplateWidget, AXPTemplateWidgetDesignerComponent, AXPTemplateWidgetProviderService, AXPTemplateWidgetViewComponent, AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU, AXP_TEMPLATE_WIDGET_PROVIDER, RootConfig };
1577
+ export { AXMCreateFormTemplateWorkflow, AXMDesignFormTemplateWorkflow, AXMFormTemplateManagementModule, AXMFormTemplateManagementTemplateEntityModule, AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl, AXMFormTemplateTypes, AXPDesignerConnectorImpl, AXPFormTemplateManagementPermissionKeys, AXPTemplateDesignerWidget, AXPTemplateDesignerWidgetViewComponent, AXPTemplateWidget, AXPTemplateWidgetDesignerComponent, AXPTemplateWidgetProviderService, AXPTemplateWidgetViewComponent, AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU, AXP_TEMPLATE_WIDGET_PROVIDER, RootConfig };
1946
1578
  //# sourceMappingURL=acorex-modules-form-template-management.mjs.map