@acorex-platform/module-assessment-management-client 0.0.30 → 0.0.33

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 (49) hide show
  1. package/fesm2022/{acorex-platform-module-assessment-management-client-acorex-platform-module-assessment-management-client-jljmsqNu.mjs → acorex-platform-module-assessment-management-client-acorex-platform-module-assessment-management-client-YfOwCCLz.mjs} +37 -36
  2. package/fesm2022/acorex-platform-module-assessment-management-client-acorex-platform-module-assessment-management-client-YfOwCCLz.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-assessment-management-client-assessment-voice.commands-CduVfWQ-.mjs → acorex-platform-module-assessment-management-client-assessment-voice.commands-CZjFuIsF.mjs} +2 -2
  4. package/fesm2022/{acorex-platform-module-assessment-management-client-assessment-voice.commands-CduVfWQ-.mjs.map → acorex-platform-module-assessment-management-client-assessment-voice.commands-CZjFuIsF.mjs.map} +1 -1
  5. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-assessment-case.mjs +302 -0
  6. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-assessment-case.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-assessment-session.mjs +327 -0
  8. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-assessment-session.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-question-bank-item.mjs +531 -0
  10. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-question-bank-item.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-questionnaire.mjs +1134 -0
  12. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-questionnaire.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-B8PJe3IJ.mjs +73 -0
  14. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-B8PJe3IJ.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-case.entity-DcRzvfKO.mjs +251 -0
  16. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-case.entity-DcRzvfKO.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-session.entity-Y0FU8X-e.mjs +276 -0
  18. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-session.entity-Y0FU8X-e.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-question-bank-item.entity-CT913OrX.mjs +480 -0
  20. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-question-bank-item.entity-CT913OrX.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-questionnaire.entity-C4hxiPTX.mjs +1083 -0
  22. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-questionnaire.entity-C4hxiPTX.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog.mjs +2 -0
  24. package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog.mjs.map +1 -0
  25. package/fesm2022/{acorex-platform-module-assessment-management-client-fill-assessment-session.command-VF80DWQf.mjs → acorex-platform-module-assessment-management-client-fill-assessment-session.command-DUo0Jy0W.mjs} +2 -2
  26. package/fesm2022/{acorex-platform-module-assessment-management-client-fill-assessment-session.command-VF80DWQf.mjs.map → acorex-platform-module-assessment-management-client-fill-assessment-session.command-DUo0Jy0W.mjs.map} +1 -1
  27. package/fesm2022/acorex-platform-module-assessment-management-client-local-entities.mjs +32 -0
  28. package/fesm2022/acorex-platform-module-assessment-management-client-local-entities.mjs.map +1 -0
  29. package/fesm2022/{acorex-platform-module-assessment-management-client-preview-question.command-C1ODQxDn.mjs → acorex-platform-module-assessment-management-client-preview-question.command-BR3YNIEg.mjs} +2 -2
  30. package/fesm2022/{acorex-platform-module-assessment-management-client-preview-question.command-C1ODQxDn.mjs.map → acorex-platform-module-assessment-management-client-preview-question.command-BR3YNIEg.mjs.map} +1 -1
  31. package/fesm2022/{acorex-platform-module-assessment-management-client-preview-questionnaire.command-DBm7ve4w.mjs → acorex-platform-module-assessment-management-client-preview-questionnaire.command-D9Y57_r2.mjs} +2 -2
  32. package/fesm2022/{acorex-platform-module-assessment-management-client-preview-questionnaire.command-DBm7ve4w.mjs.map → acorex-platform-module-assessment-management-client-preview-questionnaire.command-D9Y57_r2.mjs.map} +1 -1
  33. package/fesm2022/{acorex-platform-module-assessment-management-client-question-bank-interface-editor-widget-edit.component-Bbl-efrl.mjs → acorex-platform-module-assessment-management-client-question-bank-interface-editor-widget-edit.component-BqIo3Zhp.mjs} +2 -2
  34. package/fesm2022/{acorex-platform-module-assessment-management-client-question-bank-interface-editor-widget-edit.component-Bbl-efrl.mjs.map → acorex-platform-module-assessment-management-client-question-bank-interface-editor-widget-edit.component-BqIo3Zhp.mjs.map} +1 -1
  35. package/fesm2022/{acorex-platform-module-assessment-management-client-questionnaire-viewer-popup.component-Djcfg0dv.mjs → acorex-platform-module-assessment-management-client-questionnaire-viewer-popup.component-EEBL0x9K.mjs} +2 -2
  36. package/fesm2022/{acorex-platform-module-assessment-management-client-questionnaire-viewer-popup.component-Djcfg0dv.mjs.map → acorex-platform-module-assessment-management-client-questionnaire-viewer-popup.component-EEBL0x9K.mjs.map} +1 -1
  37. package/fesm2022/{acorex-platform-module-assessment-management-client-review-assessment-session.command-CZ96KQ-l.mjs → acorex-platform-module-assessment-management-client-review-assessment-session.command-Bobavgnt.mjs} +2 -2
  38. package/fesm2022/{acorex-platform-module-assessment-management-client-review-assessment-session.command-CZ96KQ-l.mjs.map → acorex-platform-module-assessment-management-client-review-assessment-session.command-Bobavgnt.mjs.map} +1 -1
  39. package/fesm2022/{acorex-platform-module-assessment-management-client-view-session-answers.command-CCzJoJ4p.mjs → acorex-platform-module-assessment-management-client-view-session-answers.command-DPfg8ioy.mjs} +2 -2
  40. package/fesm2022/{acorex-platform-module-assessment-management-client-view-session-answers.command-CCzJoJ4p.mjs.map → acorex-platform-module-assessment-management-client-view-session-answers.command-DPfg8ioy.mjs.map} +1 -1
  41. package/fesm2022/acorex-platform-module-assessment-management-client.mjs +1 -1
  42. package/package.json +27 -2
  43. package/types/acorex-platform-module-assessment-management-client-contracts-entities-assessment-case.d.ts +5 -0
  44. package/types/acorex-platform-module-assessment-management-client-contracts-entities-assessment-session.d.ts +5 -0
  45. package/types/acorex-platform-module-assessment-management-client-contracts-entities-question-bank-item.d.ts +5 -0
  46. package/types/acorex-platform-module-assessment-management-client-contracts-entities-questionnaire.d.ts +5 -0
  47. package/types/acorex-platform-module-assessment-management-client-contracts-entity-catalog.d.ts +10 -0
  48. package/types/acorex-platform-module-assessment-management-client-local-entities.d.ts +12 -0
  49. package/fesm2022/acorex-platform-module-assessment-management-client-acorex-platform-module-assessment-management-client-jljmsqNu.mjs.map +0 -1
@@ -0,0 +1,1134 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, createQueryView, AXPEntityCommandScope, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { AXM_TEXT_TEMPLATE_KIND, AXM_TEXT_TEMPLATE_IDS } from '@acorex-platform/module-content-management-client/contracts';
4
+
5
+ /** Component key for the questionnaire Outcomes page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */
6
+ const QUESTIONNAIRE_OUTCOMES_PAGE_COMPONENT_KEY = 'questionnaire-outcomes-page';
7
+
8
+ /** Component key for the questionnaire Questions page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */
9
+ const QUESTIONNAIRE_QUESTIONS_PAGE_COMPONENT_KEY = 'questionnaire-questions-page';
10
+
11
+ //#region ---- Root Configuration ----
12
+ const config = { i18n: 'assessment-management', module: 'AssessmentManagement' };
13
+ const RootConfig = {
14
+ config,
15
+ module: {
16
+ module: 'assessment-management',
17
+ route: 'assessment-management',
18
+ name: 'AssessmentManagement',
19
+ title: '@assessment-management:module.title',
20
+ icon: 'fa-light fa-clipboard-list-check',
21
+ },
22
+ entities: {
23
+ questionBankItem: {
24
+ name: 'QuestionBankItem',
25
+ title: '@assessment-management:question-bank.entities.question-bank-item.title',
26
+ titlePlural: '@assessment-management:question-bank.entities.question-bank-item.plural',
27
+ icon: 'fa-light fa-question-circle',
28
+ },
29
+ questionnaire: {
30
+ name: 'Questionnaire',
31
+ title: '@assessment-management:questionnaires.entities.questionnaire.title',
32
+ titlePlural: '@assessment-management:questionnaires.entities.questionnaire.plural',
33
+ icon: 'fa-light fa-clipboard-list',
34
+ },
35
+ assessmentCase: {
36
+ name: 'AssessmentCase',
37
+ title: '@assessment-management:cases.entities.assessment-case.title',
38
+ titlePlural: '@assessment-management:cases.entities.assessment-case.plural',
39
+ icon: 'fa-light fa-briefcase',
40
+ },
41
+ assessmentSession: {
42
+ name: 'AssessmentSession',
43
+ title: '@assessment-management:sessions.entities.assessment-session.title',
44
+ titlePlural: '@assessment-management:sessions.entities.assessment-session.plural',
45
+ icon: 'fa-light fa-clipboard-check',
46
+ },
47
+ },
48
+ queries: {
49
+ dashboard: {
50
+ overdueAssessmentsKpi: `${config.module}:Dashboard:OverdueAssessmentsKpi`,
51
+ pendingAssessmentsKpi: `${config.module}:Dashboard:PendingAssessmentsKpi`,
52
+ myAssessmentsKpi: `${config.module}:Dashboard:MyAssessmentsKpi`,
53
+ assessmentsWeekLine: `${config.module}:Dashboard:AssessmentsWeekLine`,
54
+ },
55
+ },
56
+ };
57
+ //#endregion
58
+
59
+ //#endregion
60
+ //#region ---- Entity Factory ----
61
+ async function factoryQuestionnaire() {
62
+ const entityDef = {
63
+ module: RootConfig.module.name,
64
+ name: RootConfig.entities.questionnaire.name,
65
+ title: RootConfig.entities.questionnaire.title,
66
+ icon: RootConfig.entities.questionnaire.icon,
67
+ plugins: [
68
+ { name: 'history' },
69
+ { name: 'category' },
70
+ { name: 'catalog-scope' },
71
+ { name: 'lock' },
72
+ { name: 'archive' },
73
+ { name: 'clone' },
74
+ { name: 'attachments', options: { display: 'page' } },
75
+ {
76
+ name: 'automation',
77
+ options: {
78
+ title: '@assessment-management:questionnaires.entities.questionnaire.related-entities.automations.title',
79
+ layoutType: 'page-list',
80
+ position: 'after',
81
+ order: 2,
82
+ icon: 'fa-light fa-bolt',
83
+ },
84
+ },
85
+ ],
86
+ formats: {
87
+ individual: RootConfig.entities.questionnaire.title,
88
+ plural: RootConfig.entities.questionnaire.titlePlural,
89
+ searchResult: {
90
+ title: '{{ title }}',
91
+ description: '{{ type }}',
92
+ },
93
+ },
94
+ pages: [
95
+ {
96
+ componentKey: QUESTIONNAIRE_QUESTIONS_PAGE_COMPONENT_KEY,
97
+ field: 'questions',
98
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.questions.title',
99
+ icon: 'fa-light fa-list-check',
100
+ layout: { order: 1, position: 'after' },
101
+ appearOn: { create: true, update: true },
102
+ },
103
+ {
104
+ componentKey: QUESTIONNAIRE_OUTCOMES_PAGE_COMPONENT_KEY,
105
+ field: 'outcomes',
106
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.outcomes.title',
107
+ icon: 'fa-light fa-calculator',
108
+ layout: { order: 2, position: 'after' },
109
+ appearOn: { create: true, update: true },
110
+ },
111
+ ],
112
+ groups: [
113
+ { id: 'basic-info', title: '@general:terms.interface.basic-info' },
114
+ { id: 'questions', title: '@assessment-management:questionnaires.entities.questionnaire.groups.questions' },
115
+ {
116
+ id: 'pre-questionnaire',
117
+ title: '@assessment-management:questionnaires.entities.questionnaire.groups.pre-questionnaire',
118
+ },
119
+ {
120
+ id: 'post-questionnaire',
121
+ title: '@assessment-management:questionnaires.entities.questionnaire.groups.post-questionnaire',
122
+ },
123
+ {
124
+ id: 'display',
125
+ title: '@assessment-management:questionnaires.entities.questionnaire.groups.display',
126
+ },
127
+ {
128
+ id: 'print',
129
+ title: '@assessment-management:questionnaires.entities.questionnaire.groups.print',
130
+ },
131
+ ],
132
+ properties: [
133
+ {
134
+ name: 'id',
135
+ title: 'ID',
136
+ groupId: 'basic-info',
137
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
138
+ },
139
+ {
140
+ name: 'title',
141
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.title.title',
142
+ groupId: 'basic-info',
143
+ options: {
144
+ sort: { enabled: true },
145
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
146
+ },
147
+ schema: {
148
+ dataType: 'string',
149
+ interface: {
150
+ type: AXPWidgetsList.Editors.TextBox,
151
+ options: { placeholder: 'Questionnaire title...' },
152
+ },
153
+ },
154
+ validations: [{ rule: 'required' }],
155
+ },
156
+ {
157
+ name: 'type',
158
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.type.title',
159
+ groupId: 'basic-info',
160
+ options: {
161
+ sort: { enabled: true },
162
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
163
+ },
164
+ schema: {
165
+ dataType: 'string',
166
+ defaultValue: 'questionnaire',
167
+ interface: {
168
+ type: AXPWidgetsList.Editors.SelectBox,
169
+ options: {
170
+ valueField: 'id',
171
+ dataSource: [
172
+ {
173
+ id: 'questionnaire',
174
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.questionnaire',
175
+ },
176
+ {
177
+ id: 'survey',
178
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.survey',
179
+ },
180
+ {
181
+ id: 'checklist',
182
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.checklist',
183
+ },
184
+ {
185
+ id: 'test',
186
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.test',
187
+ },
188
+ {
189
+ id: 'evaluation',
190
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.evaluation',
191
+ },
192
+ ],
193
+ },
194
+ },
195
+ },
196
+ validations: [{ rule: 'required' }],
197
+ },
198
+ {
199
+ name: 'description',
200
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.description.title',
201
+ groupId: 'basic-info',
202
+ options: {
203
+ sort: { enabled: false },
204
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
205
+ },
206
+ schema: {
207
+ dataType: 'string',
208
+ interface: {
209
+ type: AXPWidgetsList.Editors.LargeTextBox,
210
+ options: { rows: 3 },
211
+ },
212
+ },
213
+ },
214
+ {
215
+ name: 'pre',
216
+ title: '@assessment-management:questionnaires.entities.questionnaire.groups.pre-questionnaire',
217
+ groupId: 'pre-questionnaire',
218
+ options: {
219
+ sort: { enabled: false },
220
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
221
+ },
222
+ schema: {
223
+ dataType: 'object',
224
+ nullable: true,
225
+ defaultValue: { enabled: false },
226
+ interface: {
227
+ type: AXPWidgetsList.Layouts.GridLayout,
228
+ mode: 'edit',
229
+ options: {
230
+ grid: {
231
+ default: {
232
+ columns: 12,
233
+ gap: '1rem',
234
+ },
235
+ },
236
+ },
237
+ children: [
238
+ {
239
+ type: AXPWidgetsList.Layouts.GridItemLayout,
240
+ mode: 'edit',
241
+ options: { colSpan: 12 },
242
+ children: [
243
+ {
244
+ type: AXPWidgetsList.Layouts.FormField,
245
+ mode: 'edit',
246
+ options: {
247
+ label: '@assessment-management:questionnaires.entities.questionnaire.fields.pre-enabled.title',
248
+ showLabel: true,
249
+ },
250
+ children: [
251
+ {
252
+ type: AXPWidgetsList.Editors.ToggleSwitch,
253
+ path: 'pre.enabled',
254
+ mode: 'edit',
255
+ options: {
256
+ description: '@assessment-management:questionnaires.entities.questionnaire.fields.pre-enabled.description',
257
+ },
258
+ },
259
+ ],
260
+ },
261
+ ],
262
+ },
263
+ {
264
+ type: AXPWidgetsList.Layouts.GridItemLayout,
265
+ mode: 'edit',
266
+ options: {
267
+ colSpan: 12,
268
+ visible: `{{ context.eval('pre.enabled') === true }}`,
269
+ },
270
+ children: [
271
+ {
272
+ type: AXPWidgetsList.Layouts.FormField,
273
+ mode: 'edit',
274
+ options: {
275
+ label: '@assessment-management:questionnaires.entities.questionnaire.fields.pre-content.title',
276
+ showLabel: true,
277
+ },
278
+ children: [
279
+ {
280
+ type: AXPWidgetsList.Editors.RichText,
281
+ path: 'pre.content',
282
+ mode: 'edit',
283
+ options: {
284
+ placeholder: '@assessment-management:questionnaires.entities.questionnaire.fields.pre-content.placeholder',
285
+ },
286
+ },
287
+ ],
288
+ },
289
+ ],
290
+ },
291
+ ],
292
+ },
293
+ },
294
+ },
295
+ {
296
+ name: 'post',
297
+ title: '@assessment-management:questionnaires.entities.questionnaire.groups.post-questionnaire',
298
+ groupId: 'post-questionnaire',
299
+ options: {
300
+ sort: { enabled: false },
301
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
302
+ },
303
+ schema: {
304
+ dataType: 'object',
305
+ nullable: true,
306
+ defaultValue: { reviewEnabled: false, summaryEnabled: false, showOutcomeResults: false },
307
+ interface: {
308
+ type: AXPWidgetsList.Layouts.GridLayout,
309
+ mode: 'edit',
310
+ options: {
311
+ grid: {
312
+ default: {
313
+ columns: 12,
314
+ gap: '1rem',
315
+ },
316
+ },
317
+ },
318
+ children: [
319
+ {
320
+ type: AXPWidgetsList.Layouts.GridItemLayout,
321
+ mode: 'edit',
322
+ options: { colSpan: 4 },
323
+ children: [
324
+ {
325
+ type: AXPWidgetsList.Layouts.FormField,
326
+ mode: 'edit',
327
+ options: {
328
+ label: '@assessment-management:questionnaires.entities.questionnaire.fields.post-review-enabled.title',
329
+ showLabel: true,
330
+ },
331
+ children: [
332
+ {
333
+ type: AXPWidgetsList.Editors.ToggleSwitch,
334
+ path: 'post.reviewEnabled',
335
+ mode: 'edit',
336
+ options: {
337
+ description: '@assessment-management:questionnaires.entities.questionnaire.fields.post-review-enabled.description',
338
+ },
339
+ },
340
+ ],
341
+ },
342
+ ],
343
+ },
344
+ {
345
+ type: AXPWidgetsList.Layouts.GridItemLayout,
346
+ mode: 'edit',
347
+ options: { colSpan: 4 },
348
+ children: [
349
+ {
350
+ type: AXPWidgetsList.Layouts.FormField,
351
+ mode: 'edit',
352
+ options: {
353
+ label: '@assessment-management:questionnaires.entities.questionnaire.fields.post-summary-enabled.title',
354
+ showLabel: true,
355
+ },
356
+ children: [
357
+ {
358
+ type: AXPWidgetsList.Editors.ToggleSwitch,
359
+ path: 'post.summaryEnabled',
360
+ mode: 'edit',
361
+ options: {
362
+ description: '@assessment-management:questionnaires.entities.questionnaire.fields.post-summary-enabled.description',
363
+ },
364
+ },
365
+ ],
366
+ },
367
+ ],
368
+ },
369
+ {
370
+ type: AXPWidgetsList.Layouts.GridItemLayout,
371
+ mode: 'edit',
372
+ options: { colSpan: 4 },
373
+ children: [
374
+ {
375
+ type: AXPWidgetsList.Layouts.FormField,
376
+ mode: 'edit',
377
+ options: {
378
+ label: '@assessment-management:questionnaires.entities.questionnaire.fields.post-show-outcome-results.title',
379
+ showLabel: true,
380
+ },
381
+ children: [
382
+ {
383
+ type: AXPWidgetsList.Editors.ToggleSwitch,
384
+ path: 'post.showOutcomeResults',
385
+ mode: 'edit',
386
+ options: {
387
+ description: '@assessment-management:questionnaires.entities.questionnaire.fields.post-show-outcome-results.description',
388
+ },
389
+ },
390
+ ],
391
+ },
392
+ ],
393
+ },
394
+ {
395
+ type: AXPWidgetsList.Layouts.GridItemLayout,
396
+ mode: 'edit',
397
+ options: {
398
+ colSpan: 12,
399
+ visible: `{{ context.eval('post.summaryEnabled') === true }}`,
400
+ },
401
+ children: [
402
+ {
403
+ type: AXPWidgetsList.Layouts.FormField,
404
+ mode: 'edit',
405
+ options: {
406
+ label: '@assessment-management:questionnaires.entities.questionnaire.fields.post-summary-content.title',
407
+ showLabel: true,
408
+ },
409
+ children: [
410
+ {
411
+ type: AXPWidgetsList.Editors.RichText,
412
+ path: 'post.summaryContent',
413
+ mode: 'edit',
414
+ options: {
415
+ placeholder: '@assessment-management:questionnaires.entities.questionnaire.fields.post-summary-content.placeholder',
416
+ },
417
+ },
418
+ ],
419
+ },
420
+ ],
421
+ },
422
+ ],
423
+ },
424
+ },
425
+ },
426
+ {
427
+ name: 'display',
428
+ title: '@assessment-management:questionnaires.entities.questionnaire.groups.display',
429
+ groupId: 'display',
430
+ options: {
431
+ sort: { enabled: false },
432
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
433
+ },
434
+ schema: {
435
+ dataType: 'object',
436
+ nullable: true,
437
+ defaultValue: {
438
+ viewMode: 'single-page',
439
+ showProgressBar: true,
440
+ showTimer: false,
441
+ showQuestionNumbers: true,
442
+ validationStrategy: 'step',
443
+ completionMode: 'submit-only',
444
+ },
445
+ interface: {
446
+ type: AXPWidgetsList.Layouts.GridLayout,
447
+ mode: 'edit',
448
+ options: {
449
+ grid: {
450
+ default: {
451
+ columns: 12,
452
+ gap: '1rem',
453
+ },
454
+ },
455
+ },
456
+ children: [
457
+ {
458
+ type: AXPWidgetsList.Layouts.GridItemLayout,
459
+ mode: 'edit',
460
+ options: { colSpan: 6 },
461
+ children: [
462
+ {
463
+ type: AXPWidgetsList.Layouts.FormField,
464
+ mode: 'edit',
465
+ options: {
466
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.view-mode.title',
467
+ showLabel: true,
468
+ },
469
+ children: [
470
+ {
471
+ type: AXPWidgetsList.Editors.SelectBox,
472
+ path: 'display.viewMode',
473
+ mode: 'edit',
474
+ options: {
475
+ valueField: 'id',
476
+ textField: 'title',
477
+ dataSource: [
478
+ {
479
+ id: 'single-page',
480
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.view-mode.options.single-page',
481
+ },
482
+ {
483
+ id: 'page-per-group',
484
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.view-mode.options.page-per-group',
485
+ },
486
+ {
487
+ id: 'page-per-question',
488
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.view-mode.options.page-per-question',
489
+ },
490
+ {
491
+ id: 'side-menu',
492
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.view-mode.options.side-menu',
493
+ },
494
+ ],
495
+ },
496
+ },
497
+ ],
498
+ },
499
+ ],
500
+ },
501
+ {
502
+ type: AXPWidgetsList.Layouts.GridItemLayout,
503
+ mode: 'edit',
504
+ options: { colSpan: 6 },
505
+ children: [
506
+ {
507
+ type: AXPWidgetsList.Layouts.FormField,
508
+ mode: 'edit',
509
+ options: {
510
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.validation-strategy.title',
511
+ showLabel: true,
512
+ },
513
+ children: [
514
+ {
515
+ type: AXPWidgetsList.Editors.SelectBox,
516
+ path: 'display.validationStrategy',
517
+ mode: 'edit',
518
+ options: {
519
+ valueField: 'id',
520
+ textField: 'title',
521
+ dataSource: [
522
+ {
523
+ id: 'step',
524
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.validation-strategy.options.step',
525
+ },
526
+ {
527
+ id: 'end',
528
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.validation-strategy.options.end',
529
+ },
530
+ ],
531
+ },
532
+ },
533
+ ],
534
+ },
535
+ ],
536
+ },
537
+ {
538
+ type: AXPWidgetsList.Layouts.GridItemLayout,
539
+ mode: 'edit',
540
+ options: { colSpan: 4 },
541
+ children: [
542
+ {
543
+ type: AXPWidgetsList.Layouts.FormField,
544
+ mode: 'edit',
545
+ options: {
546
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.show-progress-bar.title',
547
+ showLabel: true,
548
+ },
549
+ children: [
550
+ {
551
+ type: AXPWidgetsList.Editors.ToggleSwitch,
552
+ path: 'display.showProgressBar',
553
+ mode: 'edit',
554
+ },
555
+ ],
556
+ },
557
+ ],
558
+ },
559
+ {
560
+ type: AXPWidgetsList.Layouts.GridItemLayout,
561
+ mode: 'edit',
562
+ options: { colSpan: 4 },
563
+ children: [
564
+ {
565
+ type: AXPWidgetsList.Layouts.FormField,
566
+ mode: 'edit',
567
+ options: {
568
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.show-timer.title',
569
+ showLabel: true,
570
+ },
571
+ children: [
572
+ {
573
+ type: AXPWidgetsList.Editors.ToggleSwitch,
574
+ path: 'display.showTimer',
575
+ mode: 'edit',
576
+ },
577
+ ],
578
+ },
579
+ ],
580
+ },
581
+ {
582
+ type: AXPWidgetsList.Layouts.GridItemLayout,
583
+ mode: 'edit',
584
+ options: { colSpan: 4 },
585
+ children: [
586
+ {
587
+ type: AXPWidgetsList.Layouts.FormField,
588
+ mode: 'edit',
589
+ options: {
590
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.show-question-numbers.title',
591
+ showLabel: true,
592
+ },
593
+ children: [
594
+ {
595
+ type: AXPWidgetsList.Editors.ToggleSwitch,
596
+ path: 'display.showQuestionNumbers',
597
+ mode: 'edit',
598
+ },
599
+ ],
600
+ },
601
+ ],
602
+ },
603
+ {
604
+ type: AXPWidgetsList.Layouts.GridItemLayout,
605
+ mode: 'edit',
606
+ options: { colSpan: 6 },
607
+ children: [
608
+ {
609
+ type: AXPWidgetsList.Layouts.FormField,
610
+ mode: 'edit',
611
+ options: {
612
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.completion-mode.title',
613
+ showLabel: true,
614
+ },
615
+ children: [
616
+ {
617
+ type: AXPWidgetsList.Editors.SelectBox,
618
+ path: 'display.completionMode',
619
+ mode: 'edit',
620
+ options: {
621
+ valueField: 'id',
622
+ textField: 'title',
623
+ dataSource: [
624
+ {
625
+ id: 'submit-only',
626
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.completion-mode.options.submit-only',
627
+ },
628
+ {
629
+ id: 'save-and-continue',
630
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.completion-mode.options.save-and-continue',
631
+ },
632
+ ],
633
+ },
634
+ },
635
+ ],
636
+ },
637
+ ],
638
+ },
639
+ ],
640
+ },
641
+ },
642
+ },
643
+ {
644
+ name: 'printTemplateId',
645
+ title: '@assessment-management:questionnaires.entities.questionnaire.fields.print-template-id.title',
646
+ groupId: 'print',
647
+ options: {
648
+ sort: { enabled: false },
649
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
650
+ },
651
+ schema: {
652
+ dataType: 'string',
653
+ nullable: true,
654
+ defaultValue: AXM_TEXT_TEMPLATE_IDS.questionnairePrint,
655
+ interface: {
656
+ type: AXPWidgetsList.Editors.LookupBox,
657
+ options: {
658
+ entity: 'ContentManagement.TextTemplate',
659
+ textField: 'title',
660
+ valueField: 'id',
661
+ look: 'select',
662
+ columns: ['title', 'kind'],
663
+ filter: {
664
+ logic: 'and',
665
+ filters: [
666
+ {
667
+ field: 'kind',
668
+ operator: { type: 'equal' },
669
+ value: AXM_TEXT_TEMPLATE_KIND.Content,
670
+ },
671
+ ],
672
+ },
673
+ },
674
+ },
675
+ },
676
+ },
677
+ {
678
+ name: 'print',
679
+ title: '@assessment-management:questionnaires.entities.questionnaire.groups.print',
680
+ groupId: 'print',
681
+ options: {
682
+ sort: { enabled: false },
683
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
684
+ },
685
+ schema: {
686
+ dataType: 'object',
687
+ nullable: true,
688
+ defaultValue: {
689
+ paperSize: 'A4',
690
+ orientation: 'portrait',
691
+ watermark: '',
692
+ showQuestionNumbers: true,
693
+ showWelcomeScreen: false,
694
+ showSummaryAfterSubmit: false,
695
+ showOutcomeResults: false,
696
+ showUnansweredQuestions: true,
697
+ showComments: true,
698
+ showAttachments: true,
699
+ showHints: true,
700
+ showNotes: true,
701
+ },
702
+ interface: {
703
+ type: AXPWidgetsList.Layouts.GridLayout,
704
+ mode: 'edit',
705
+ options: {
706
+ grid: {
707
+ default: {
708
+ columns: 12,
709
+ gap: '1rem',
710
+ },
711
+ },
712
+ },
713
+ children: [
714
+ {
715
+ type: AXPWidgetsList.Layouts.GridItemLayout,
716
+ mode: 'edit',
717
+ options: { colSpan: 6 },
718
+ children: [
719
+ {
720
+ type: AXPWidgetsList.Layouts.FormField,
721
+ mode: 'edit',
722
+ options: {
723
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-paper-size.title',
724
+ showLabel: true,
725
+ },
726
+ children: [
727
+ {
728
+ type: AXPWidgetsList.Editors.SelectBox,
729
+ path: 'print.paperSize',
730
+ mode: 'edit',
731
+ options: {
732
+ valueField: 'id',
733
+ textField: 'title',
734
+ dataSource: [
735
+ {
736
+ id: 'A4',
737
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-paper-size.options.a4',
738
+ },
739
+ {
740
+ id: 'Letter',
741
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-paper-size.options.letter',
742
+ },
743
+ {
744
+ id: 'Legal',
745
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-paper-size.options.legal',
746
+ },
747
+ ],
748
+ },
749
+ },
750
+ ],
751
+ },
752
+ ],
753
+ },
754
+ {
755
+ type: AXPWidgetsList.Layouts.GridItemLayout,
756
+ mode: 'edit',
757
+ options: { colSpan: 6 },
758
+ children: [
759
+ {
760
+ type: AXPWidgetsList.Layouts.FormField,
761
+ mode: 'edit',
762
+ options: {
763
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-orientation.title',
764
+ showLabel: true,
765
+ },
766
+ children: [
767
+ {
768
+ type: AXPWidgetsList.Editors.SelectBox,
769
+ path: 'print.orientation',
770
+ mode: 'edit',
771
+ options: {
772
+ valueField: 'id',
773
+ textField: 'title',
774
+ dataSource: [
775
+ {
776
+ id: 'portrait',
777
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-orientation.options.portrait',
778
+ },
779
+ {
780
+ id: 'landscape',
781
+ title: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-orientation.options.landscape',
782
+ },
783
+ ],
784
+ },
785
+ },
786
+ ],
787
+ },
788
+ ],
789
+ },
790
+ {
791
+ type: AXPWidgetsList.Layouts.GridItemLayout,
792
+ mode: 'edit',
793
+ options: { colSpan: 12 },
794
+ children: [
795
+ {
796
+ type: AXPWidgetsList.Layouts.FormField,
797
+ mode: 'edit',
798
+ options: {
799
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-watermark.title',
800
+ showLabel: true,
801
+ },
802
+ children: [
803
+ {
804
+ type: AXPWidgetsList.Editors.TextBox,
805
+ path: 'print.watermark',
806
+ mode: 'edit',
807
+ options: {
808
+ placeholder: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-watermark.placeholder',
809
+ },
810
+ },
811
+ ],
812
+ },
813
+ ],
814
+ },
815
+ {
816
+ type: AXPWidgetsList.Layouts.GridItemLayout,
817
+ mode: 'edit',
818
+ options: { colSpan: 4 },
819
+ children: [
820
+ {
821
+ type: AXPWidgetsList.Layouts.FormField,
822
+ mode: 'edit',
823
+ options: {
824
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-show-welcome-screen.title',
825
+ showLabel: true,
826
+ },
827
+ children: [
828
+ {
829
+ type: AXPWidgetsList.Editors.ToggleSwitch,
830
+ path: 'print.showWelcomeScreen',
831
+ mode: 'edit',
832
+ },
833
+ ],
834
+ },
835
+ ],
836
+ },
837
+ {
838
+ type: AXPWidgetsList.Layouts.GridItemLayout,
839
+ mode: 'edit',
840
+ options: { colSpan: 4 },
841
+ children: [
842
+ {
843
+ type: AXPWidgetsList.Layouts.FormField,
844
+ mode: 'edit',
845
+ options: {
846
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-show-summary-after-submit.title',
847
+ showLabel: true,
848
+ },
849
+ children: [
850
+ {
851
+ type: AXPWidgetsList.Editors.ToggleSwitch,
852
+ path: 'print.showSummaryAfterSubmit',
853
+ mode: 'edit',
854
+ },
855
+ ],
856
+ },
857
+ ],
858
+ },
859
+ {
860
+ type: AXPWidgetsList.Layouts.GridItemLayout,
861
+ mode: 'edit',
862
+ options: { colSpan: 4 },
863
+ children: [
864
+ {
865
+ type: AXPWidgetsList.Layouts.FormField,
866
+ mode: 'edit',
867
+ options: {
868
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-show-outcome-results.title',
869
+ showLabel: true,
870
+ },
871
+ children: [
872
+ {
873
+ type: AXPWidgetsList.Editors.ToggleSwitch,
874
+ path: 'print.showOutcomeResults',
875
+ mode: 'edit',
876
+ },
877
+ ],
878
+ },
879
+ ],
880
+ },
881
+ {
882
+ type: AXPWidgetsList.Layouts.GridItemLayout,
883
+ mode: 'edit',
884
+ options: { colSpan: 4 },
885
+ children: [
886
+ {
887
+ type: AXPWidgetsList.Layouts.FormField,
888
+ mode: 'edit',
889
+ options: {
890
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.show-question-numbers.title',
891
+ showLabel: true,
892
+ },
893
+ children: [
894
+ {
895
+ type: AXPWidgetsList.Editors.ToggleSwitch,
896
+ path: 'print.showQuestionNumbers',
897
+ mode: 'edit',
898
+ },
899
+ ],
900
+ },
901
+ ],
902
+ },
903
+ {
904
+ type: AXPWidgetsList.Layouts.GridItemLayout,
905
+ mode: 'edit',
906
+ options: { colSpan: 4 },
907
+ children: [
908
+ {
909
+ type: AXPWidgetsList.Layouts.FormField,
910
+ mode: 'edit',
911
+ options: {
912
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-show-unanswered-questions.title',
913
+ showLabel: true,
914
+ },
915
+ children: [
916
+ {
917
+ type: AXPWidgetsList.Editors.ToggleSwitch,
918
+ path: 'print.showUnansweredQuestions',
919
+ mode: 'edit',
920
+ },
921
+ ],
922
+ },
923
+ ],
924
+ },
925
+ {
926
+ type: AXPWidgetsList.Layouts.GridItemLayout,
927
+ mode: 'edit',
928
+ options: { colSpan: 4 },
929
+ children: [
930
+ {
931
+ type: AXPWidgetsList.Layouts.FormField,
932
+ mode: 'edit',
933
+ options: {
934
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-show-comments.title',
935
+ showLabel: true,
936
+ },
937
+ children: [
938
+ {
939
+ type: AXPWidgetsList.Editors.ToggleSwitch,
940
+ path: 'print.showComments',
941
+ mode: 'edit',
942
+ },
943
+ ],
944
+ },
945
+ ],
946
+ },
947
+ {
948
+ type: AXPWidgetsList.Layouts.GridItemLayout,
949
+ mode: 'edit',
950
+ options: { colSpan: 4 },
951
+ children: [
952
+ {
953
+ type: AXPWidgetsList.Layouts.FormField,
954
+ mode: 'edit',
955
+ options: {
956
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-show-attachments.title',
957
+ showLabel: true,
958
+ },
959
+ children: [
960
+ {
961
+ type: AXPWidgetsList.Editors.ToggleSwitch,
962
+ path: 'print.showAttachments',
963
+ mode: 'edit',
964
+ },
965
+ ],
966
+ },
967
+ ],
968
+ },
969
+ {
970
+ type: AXPWidgetsList.Layouts.GridItemLayout,
971
+ mode: 'edit',
972
+ options: { colSpan: 4 },
973
+ children: [
974
+ {
975
+ type: AXPWidgetsList.Layouts.FormField,
976
+ mode: 'edit',
977
+ options: {
978
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-show-hints.title',
979
+ showLabel: true,
980
+ },
981
+ children: [
982
+ {
983
+ type: AXPWidgetsList.Editors.ToggleSwitch,
984
+ path: 'print.showHints',
985
+ mode: 'edit',
986
+ },
987
+ ],
988
+ },
989
+ ],
990
+ },
991
+ {
992
+ type: AXPWidgetsList.Layouts.GridItemLayout,
993
+ mode: 'edit',
994
+ options: { colSpan: 4 },
995
+ children: [
996
+ {
997
+ type: AXPWidgetsList.Layouts.FormField,
998
+ mode: 'edit',
999
+ options: {
1000
+ label: '@assessment-management:questionnaires.components.questionnaire-viewer.fields.print-show-notes.title',
1001
+ showLabel: true,
1002
+ },
1003
+ children: [
1004
+ {
1005
+ type: AXPWidgetsList.Editors.ToggleSwitch,
1006
+ path: 'print.showNotes',
1007
+ mode: 'edit',
1008
+ },
1009
+ ],
1010
+ },
1011
+ ],
1012
+ },
1013
+ ],
1014
+ },
1015
+ },
1016
+ },
1017
+ ],
1018
+ columns: [{ name: 'title' }, { name: 'description' }, { name: 'type' }],
1019
+ interfaces: {
1020
+ master: {
1021
+ create: {
1022
+ sections: [{ id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } }],
1023
+ properties: [
1024
+ { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },
1025
+ { name: 'type', layout: { positions: { lg: { colSpan: 12 } } } },
1026
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
1027
+ ],
1028
+ },
1029
+ update: {
1030
+ sections: [
1031
+ { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
1032
+ { id: 'pre-questionnaire', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
1033
+ { id: 'post-questionnaire', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
1034
+ { id: 'display', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
1035
+ { id: 'print', order: 5, layout: { positions: { lg: { colSpan: 12 } } } },
1036
+ ],
1037
+ properties: [
1038
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
1039
+ { name: 'type', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
1040
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
1041
+ { name: 'pre', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },
1042
+ { name: 'post', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 5 } } } },
1043
+ { name: 'display', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 6 } } } },
1044
+ { name: 'printTemplateId', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },
1045
+ { name: 'print', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 8 } } } },
1046
+ ],
1047
+ },
1048
+ single: {
1049
+ title: '{{title}}',
1050
+ sections: [
1051
+ { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
1052
+ { id: 'pre-questionnaire', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
1053
+ { id: 'post-questionnaire', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
1054
+ { id: 'display', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
1055
+ { id: 'print', order: 5, layout: { positions: { lg: { colSpan: 12 } } } },
1056
+ ],
1057
+ properties: [
1058
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
1059
+ { name: 'type', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
1060
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
1061
+ { name: 'pre', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },
1062
+ { name: 'post', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 5 } } } },
1063
+ { name: 'display', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 6 } } } },
1064
+ { name: 'printTemplateId', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },
1065
+ { name: 'print', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 8 } } } },
1066
+ ],
1067
+ actions: [
1068
+ ...entityMasterRecordActions(),
1069
+ {
1070
+ title: '@assessment-management:questionnaires.entities.questionnaire.actions.preview.title',
1071
+ command: {
1072
+ name: `${RootConfig.module.name}.${RootConfig.entities.questionnaire.name}:Preview`,
1073
+ options: {
1074
+ questionnaireId: '{{ context.eval("id") }}',
1075
+ questionnaireTitle: '{{ context.eval("title", { pipes: ["translate"] }) }}',
1076
+ },
1077
+ },
1078
+ priority: 'primary',
1079
+ type: 'action',
1080
+ icon: 'fa-light fa-eye',
1081
+ scope: AXPEntityCommandScope.Individual,
1082
+ },
1083
+ ],
1084
+ },
1085
+ list: {
1086
+ actions: [
1087
+ ...entityMasterCrudActions(),
1088
+ {
1089
+ title: '@assessment-management:questionnaires.entities.questionnaire.actions.preview.title',
1090
+ command: {
1091
+ name: `${RootConfig.module.name}.${RootConfig.entities.questionnaire.name}:Preview`,
1092
+ options: {
1093
+ questionnaireId: '{{ context.eval("id") }}',
1094
+ questionnaireTitle: '{{ context.eval("title", { pipes: ["translate"] }) }}',
1095
+ },
1096
+ },
1097
+ priority: 'primary',
1098
+ type: 'action',
1099
+ icon: 'fa-light fa-eye',
1100
+ scope: AXPEntityCommandScope.Individual,
1101
+ },
1102
+ ],
1103
+ views: [
1104
+ createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
1105
+ createQueryView('questionnaire', '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.questionnaire', true, {
1106
+ conditions: [{ name: 'type', operator: { type: 'equal' }, value: 'questionnaire' }],
1107
+ }),
1108
+ createQueryView('survey', '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.survey', true, {
1109
+ conditions: [{ name: 'type', operator: { type: 'equal' }, value: 'survey' }],
1110
+ }),
1111
+ createQueryView('checklist', '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.checklist', true, {
1112
+ conditions: [{ name: 'type', operator: { type: 'equal' }, value: 'checklist' }],
1113
+ }),
1114
+ createQueryView('test', '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.test', true, {
1115
+ conditions: [{ name: 'type', operator: { type: 'equal' }, value: 'test' }],
1116
+ }),
1117
+ createQueryView('evaluation', '@assessment-management:questionnaires.entities.questionnaire.fields.type.options.evaluation', true, {
1118
+ conditions: [{ name: 'type', operator: { type: 'equal' }, value: 'evaluation' }],
1119
+ }),
1120
+ ],
1121
+ },
1122
+ },
1123
+ },
1124
+ };
1125
+ return entityDef;
1126
+ }
1127
+ //#endregion
1128
+
1129
+ /**
1130
+ * Generated bundle index. Do not edit.
1131
+ */
1132
+
1133
+ export { factoryQuestionnaire };
1134
+ //# sourceMappingURL=acorex-platform-module-assessment-management-client-contracts-entities-questionnaire.mjs.map