@acorex-platform/module-assessment-management-client 0.0.57 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-assessment-management-client-acorex-platform-module-assessment-management-client-juxXq2pM.mjs → acorex-platform-module-assessment-management-client-acorex-platform-module-assessment-management-client-sm_OxV_k.mjs} +1472 -160
- package/fesm2022/acorex-platform-module-assessment-management-client-acorex-platform-module-assessment-management-client-sm_OxV_k.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-assessment-management-client-assessment-voice.commands-CaElbuNh.mjs → acorex-platform-module-assessment-management-client-assessment-voice.commands-6Hw6NQgS.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-assessment-voice.commands-CaElbuNh.mjs.map → acorex-platform-module-assessment-management-client-assessment-voice.commands-6Hw6NQgS.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-questionnaire.mjs +1 -11
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-questionnaire.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-template.mjs +1 -78
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entities-template.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-DYpWu3Vx.mjs → acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-DDCy1T4t.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-DYpWu3Vx.mjs.map → acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-DDCy1T4t.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-case.entity-CUctZ-0K.mjs → acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-case.entity-DXJp2k3o.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-case.entity-CUctZ-0K.mjs.map → acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-case.entity-DXJp2k3o.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-session.entity-C2JJw_JJ.mjs → acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-session.entity-Q7-5toSQ.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-session.entity-C2JJw_JJ.mjs.map → acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-session.entity-Q7-5toSQ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-question-bank-item.entity-D3y_rWUI.mjs → acorex-platform-module-assessment-management-client-contracts-entity-catalog-question-bank-item.entity-CPEpSSlP.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-question-bank-item.entity-D3y_rWUI.mjs.map → acorex-platform-module-assessment-management-client-contracts-entity-catalog-question-bank-item.entity-CPEpSSlP.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-questionnaire.entity-CVz5W0fF.mjs → acorex-platform-module-assessment-management-client-contracts-entity-catalog-questionnaire.entity-DOG7yHv-.mjs} +3 -13
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-questionnaire.entity-DOG7yHv-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-assessment-management-client-contracts-entity-catalog-template.entity-C01AW5NW.mjs → acorex-platform-module-assessment-management-client-contracts-entity-catalog-template.entity-BeYGYRb7.mjs} +3 -80
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-template.entity-BeYGYRb7.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts.mjs +33 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-fill-assessment-session.command-CMIq-DDl.mjs → acorex-platform-module-assessment-management-client-fill-assessment-session.command-BOzXBvS2.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-fill-assessment-session.command-CMIq-DDl.mjs.map → acorex-platform-module-assessment-management-client-fill-assessment-session.command-BOzXBvS2.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-form-template-viewer-edit.component-BlGBTznW.mjs +112 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-form-template-viewer-edit.component-BlGBTznW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-assessment-management-client-form-template-viewer-popup.component-COZcUPEj.mjs → acorex-platform-module-assessment-management-client-form-template-viewer-popup.component-BU6YLe8q.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-assessment-management-client-form-template-viewer-popup.component-COZcUPEj.mjs.map → acorex-platform-module-assessment-management-client-form-template-viewer-popup.component-BU6YLe8q.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-form-template-viewer.service-CvSRpoos.mjs → acorex-platform-module-assessment-management-client-form-template-viewer.service-CZre8wPB.mjs} +15 -11
- package/fesm2022/acorex-platform-module-assessment-management-client-form-template-viewer.service-CZre8wPB.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-index-BmODQqQ4.mjs +68 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-index-BmODQqQ4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-assessment-management-client-open-form-template.command-CmR-xFHE.mjs → acorex-platform-module-assessment-management-client-open-form-template.command-C9BMiyDb.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-assessment-management-client-open-form-template.command-CmR-xFHE.mjs.map → acorex-platform-module-assessment-management-client-open-form-template.command-C9BMiyDb.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-preview-form-template.command-BEzE0620.mjs → acorex-platform-module-assessment-management-client-preview-form-template.command-L5NxVqdE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-preview-form-template.command-BEzE0620.mjs.map → acorex-platform-module-assessment-management-client-preview-form-template.command-L5NxVqdE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-preview-question.command-BGT8qB1_.mjs → acorex-platform-module-assessment-management-client-preview-question.command-7GuqlVX4.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-preview-question.command-BGT8qB1_.mjs.map → acorex-platform-module-assessment-management-client-preview-question.command-7GuqlVX4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-preview-questionnaire.command-duK7Tjjp.mjs → acorex-platform-module-assessment-management-client-preview-questionnaire.command-ChtB6q9D.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-preview-questionnaire.command-duK7Tjjp.mjs.map → acorex-platform-module-assessment-management-client-preview-questionnaire.command-ChtB6q9D.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-question-bank-interface-editor-widget-edit.component-B7_G_C5B.mjs → acorex-platform-module-assessment-management-client-question-bank-interface-editor-widget-edit.component-Iwdbc86Q.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-assessment-management-client-question-bank-interface-editor-widget-edit.component-B7_G_C5B.mjs.map → acorex-platform-module-assessment-management-client-question-bank-interface-editor-widget-edit.component-Iwdbc86Q.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-questionnaire-questions-editor-edit.component-Q6Wu81xW.mjs +69 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-questionnaire-questions-editor-edit.component-Q6Wu81xW.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-questionnaire-viewer-edit.component-CaKML07K.mjs +78 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-questionnaire-viewer-edit.component-CaKML07K.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-assessment-management-client-questionnaire-viewer-popup.component-daQL4OD_.mjs → acorex-platform-module-assessment-management-client-questionnaire-viewer-popup.component-xDX86cTn.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-assessment-management-client-questionnaire-viewer-popup.component-daQL4OD_.mjs.map → acorex-platform-module-assessment-management-client-questionnaire-viewer-popup.component-xDX86cTn.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-related-content-viewer-page-component.provider-CiMERtrE.mjs +26 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-related-content-viewer-page-component.provider-CiMERtrE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-related-content-viewer-page.component-CI9AlM58.mjs +315 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-related-content-viewer-page.component-CI9AlM58.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-assessment-management-client-review-assessment-session.command-CPeFh1m7.mjs → acorex-platform-module-assessment-management-client-review-assessment-session.command-CfqUtmMt.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-review-assessment-session.command-CPeFh1m7.mjs.map → acorex-platform-module-assessment-management-client-review-assessment-session.command-CfqUtmMt.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-show-form-template-viewer-popup.command-BZxwRr8J.mjs +117 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-show-form-template-viewer-popup.command-BZxwRr8J.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-show-questionnaire-questions-popup.command-hrtJQmvG.mjs +129 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-show-questionnaire-questions-popup.command-hrtJQmvG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-show-questionnaire-viewer-popup.command-CMUmrNac.mjs +120 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-show-questionnaire-viewer-popup.command-CMUmrNac.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-assessment-management-client-template-picker.component-D_UCdFOH.mjs → acorex-platform-module-assessment-management-client-template-picker.component-DzboI7GV.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-assessment-management-client-template-picker.component-D_UCdFOH.mjs.map → acorex-platform-module-assessment-management-client-template-picker.component-DzboI7GV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-assessment-management-client-template-widget-edit.component-DERabYdH.mjs → acorex-platform-module-assessment-management-client-template-widget-edit.component-BhW_Wn7N.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-template-widget-edit.component-DERabYdH.mjs.map → acorex-platform-module-assessment-management-client-template-widget-edit.component-BhW_Wn7N.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-cell-type-widget-edit.component-Dkaw3T8R.mjs +90 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-cell-type-widget-edit.component-Dkaw3T8R.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-grid.component-BCRIENMA.mjs +77 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-grid.component-BCRIENMA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-schema-widget-edit.component-CFu_CQ91.mjs +236 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-schema-widget-edit.component-CFu_CQ91.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-widget-column.component-B3Lx7yuD.mjs +50 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-widget-column.component-B3Lx7yuD.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-widget-edit.component-DdC83GV8.mjs +81 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-widget-edit.component-DdC83GV8.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-widget-view.component-OQZIzcjG.mjs +30 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet-widget-view.component-OQZIzcjG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet.util-CPbgWk5E.mjs +423 -0
- package/fesm2022/acorex-platform-module-assessment-management-client-test-sheet.util-CPbgWk5E.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-assessment-management-client-view-session-answers.command-DjJajIkL.mjs → acorex-platform-module-assessment-management-client-view-session-answers.command-YoUUyJ4j.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-assessment-management-client-view-session-answers.command-DjJajIkL.mjs.map → acorex-platform-module-assessment-management-client-view-session-answers.command-YoUUyJ4j.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-assessment-management-client.mjs +1 -1
- package/i18n/en-AU/assessment-management.json +69 -0
- package/i18n/en-AU/form-template-management.json +8 -0
- package/i18n/en-US/assessment-management.json +69 -0
- package/i18n/en-US/form-template-management.json +8 -0
- package/i18n/fa-IR/assessment-management.json +69 -0
- package/i18n/fa-IR/form-template-management.json +8 -0
- package/package.json +3 -3
- package/types/acorex-platform-module-assessment-management-client-contracts.d.ts +23 -3
- package/types/acorex-platform-module-assessment-management-client.d.ts +10 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-acorex-platform-module-assessment-management-client-juxXq2pM.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-questionnaire.entity-CVz5W0fF.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog-template.entity-C01AW5NW.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-assessment-management-client-form-template-viewer.service-CvSRpoos.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { AXPEntityCommandScope, createAllQueryView, createQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
3
|
import { a as assessmentPrePostProperties, Q as QUESTIONNAIRE_OUTCOMES_PAGE_COMPONENT_KEY } from './acorex-platform-module-assessment-management-client-contracts-entity-catalog-assessment-pre-post.properties-DX_nB0QM.mjs';
|
|
4
|
-
import { R as RootConfig } from './acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-
|
|
4
|
+
import { R as RootConfig } from './acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-DDCy1T4t.mjs';
|
|
5
5
|
|
|
6
6
|
const AXMFormTemplateTypes = {
|
|
7
7
|
Form: {
|
|
@@ -44,6 +44,7 @@ async function factoryTemplate() {
|
|
|
44
44
|
{ name: 'category' },
|
|
45
45
|
{ name: 'clone' },
|
|
46
46
|
{ name: 'archive' },
|
|
47
|
+
{ name: 'form-template', options: { display: 'section' } },
|
|
47
48
|
],
|
|
48
49
|
module: RootConfig.module.name,
|
|
49
50
|
name: RootConfig.entities.template.name,
|
|
@@ -227,14 +228,6 @@ async function factoryTemplate() {
|
|
|
227
228
|
{
|
|
228
229
|
id: 'basic-info',
|
|
229
230
|
},
|
|
230
|
-
{
|
|
231
|
-
id: 'template-content',
|
|
232
|
-
layout: {
|
|
233
|
-
label: {
|
|
234
|
-
visible: true,
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
231
|
{ id: 'pre-questionnaire' },
|
|
239
232
|
{ id: 'post-questionnaire' },
|
|
240
233
|
],
|
|
@@ -272,20 +265,6 @@ async function factoryTemplate() {
|
|
|
272
265
|
},
|
|
273
266
|
},
|
|
274
267
|
},
|
|
275
|
-
{
|
|
276
|
-
name: 'template',
|
|
277
|
-
layout: {
|
|
278
|
-
label: {
|
|
279
|
-
visible: false,
|
|
280
|
-
},
|
|
281
|
-
positions: {
|
|
282
|
-
lg: {
|
|
283
|
-
colSpan: 12,
|
|
284
|
-
order: 4,
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
},
|
|
289
268
|
{ name: 'pre', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
290
269
|
{ name: 'post', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 6 } } } },
|
|
291
270
|
],
|
|
@@ -295,14 +274,6 @@ async function factoryTemplate() {
|
|
|
295
274
|
{
|
|
296
275
|
id: 'basic-info',
|
|
297
276
|
},
|
|
298
|
-
{
|
|
299
|
-
id: 'template-content',
|
|
300
|
-
layout: {
|
|
301
|
-
label: {
|
|
302
|
-
visible: true,
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
277
|
{ id: 'pre-questionnaire' },
|
|
307
278
|
{ id: 'post-questionnaire' },
|
|
308
279
|
],
|
|
@@ -340,20 +311,6 @@ async function factoryTemplate() {
|
|
|
340
311
|
},
|
|
341
312
|
},
|
|
342
313
|
},
|
|
343
|
-
{
|
|
344
|
-
name: 'template',
|
|
345
|
-
layout: {
|
|
346
|
-
label: {
|
|
347
|
-
visible: false,
|
|
348
|
-
},
|
|
349
|
-
positions: {
|
|
350
|
-
lg: {
|
|
351
|
-
colSpan: 12,
|
|
352
|
-
order: 4,
|
|
353
|
-
},
|
|
354
|
-
},
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
314
|
{ name: 'pre', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
358
315
|
{ name: 'post', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 6 } } } },
|
|
359
316
|
],
|
|
@@ -371,19 +328,6 @@ async function factoryTemplate() {
|
|
|
371
328
|
},
|
|
372
329
|
},
|
|
373
330
|
},
|
|
374
|
-
{
|
|
375
|
-
id: 'template-content',
|
|
376
|
-
layout: {
|
|
377
|
-
label: {
|
|
378
|
-
visible: false,
|
|
379
|
-
},
|
|
380
|
-
positions: {
|
|
381
|
-
lg: {
|
|
382
|
-
colSpan: 12,
|
|
383
|
-
},
|
|
384
|
-
},
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
331
|
{ id: 'pre-questionnaire', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
388
332
|
{ id: 'post-questionnaire', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
389
333
|
],
|
|
@@ -421,20 +365,6 @@ async function factoryTemplate() {
|
|
|
421
365
|
},
|
|
422
366
|
},
|
|
423
367
|
},
|
|
424
|
-
{
|
|
425
|
-
name: 'template',
|
|
426
|
-
layout: {
|
|
427
|
-
label: {
|
|
428
|
-
visible: false,
|
|
429
|
-
},
|
|
430
|
-
positions: {
|
|
431
|
-
lg: {
|
|
432
|
-
colSpan: 12,
|
|
433
|
-
order: 4,
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
},
|
|
438
368
|
{ name: 'pre', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
439
369
|
{ name: 'post', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 6 } } } },
|
|
440
370
|
],
|
|
@@ -446,13 +376,6 @@ async function factoryTemplate() {
|
|
|
446
376
|
list: {
|
|
447
377
|
actions: [
|
|
448
378
|
...entityMasterCrudActions(),
|
|
449
|
-
{
|
|
450
|
-
title: '@general:actions.configuration.design.title',
|
|
451
|
-
command: 'design-form-template',
|
|
452
|
-
priority: 'primary',
|
|
453
|
-
type: 'design',
|
|
454
|
-
scope: AXPEntityCommandScope.Individual,
|
|
455
|
-
},
|
|
456
379
|
previewAction,
|
|
457
380
|
],
|
|
458
381
|
views: [
|
|
@@ -490,4 +413,4 @@ async function factoryTemplate() {
|
|
|
490
413
|
}
|
|
491
414
|
|
|
492
415
|
export { factoryTemplate };
|
|
493
|
-
//# sourceMappingURL=acorex-platform-module-assessment-management-client-contracts-entity-catalog-template.entity-
|
|
416
|
+
//# sourceMappingURL=acorex-platform-module-assessment-management-client-contracts-entity-catalog-template.entity-BeYGYRb7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-assessment-management-client-contracts-entity-catalog-template.entity-BeYGYRb7.mjs","sources":["../../../../libs/modules/assessment-management/contracts/src/entities/template/template.types.ts","../../../../libs/modules/assessment-management/contracts/src/entities/template/template.entity.ts"],"sourcesContent":["import { AXPEntityCreateDto, AXPEntityDetailDto, AXPEntityListItemDto, AXPEntityUpdateDto } from '@acorex-platform/framework-shared/entity';\nimport type { AssessmentOutcomesValue, AssessmentPostContent, AssessmentPreContent } from '../../assessment-outcome.types';\n\nexport interface AXMFormTemplateTypeOption {\n id: number;\n title: string;\n}\n\nexport const AXMFormTemplateTypes = {\n Form: {\n id: 10,\n title: '@form-template-management:templates.entities.template.fields.type.options.form',\n } satisfies AXMFormTemplateTypeOption,\n Widget: {\n id: 20,\n title: '@form-template-management:templates.entities.template.fields.type.options.widget',\n } satisfies AXMFormTemplateTypeOption,\n Report: {\n id: 30,\n title: '@form-template-management:templates.entities.template.fields.type.options.report',\n } satisfies AXMFormTemplateTypeOption,\n};\n\nexport type AXMFormTemplateType = (typeof AXMFormTemplateTypes)[keyof typeof AXMFormTemplateTypes];\n\nexport interface AXMCreateFormTemplateDto extends AXPEntityCreateDto {\n code: string;\n title: string;\n description?: string;\n template?: string | null;\n type: AXMFormTemplateTypeOption;\n categoryIds: string[];\n pre?: AssessmentPreContent;\n post?: AssessmentPostContent;\n outcomes?: AssessmentOutcomesValue;\n}\n\nexport interface AXMUpdateFormTemplateDto extends AXPEntityUpdateDto<string> {\n title: string;\n description?: string;\n type: AXMFormTemplateTypeOption;\n template?: string;\n categoryIds: string[];\n pre?: AssessmentPreContent;\n post?: AssessmentPostContent;\n outcomes?: AssessmentOutcomesValue;\n}\n\nexport interface AXMFormTemplateDetailDto extends AXPEntityDetailDto<string> {\n title: string;\n description?: string;\n type: AXMFormTemplateTypeOption;\n template: string | null;\n categoryIds: string[];\n categories: { id: string, title: string }[];\n pre?: AssessmentPreContent;\n post?: AssessmentPostContent;\n outcomes?: AssessmentOutcomesValue;\n}\n\nexport interface AXMFormTemplateListItemDto extends AXPEntityListItemDto<string> {\n title: string;\n description?: string;\n type: AXMFormTemplateTypeOption;\n categoryIds: string[];\n categories: { id: string, title: string }[];\n}\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityAction, AXPEntityCommandScope, createAllQueryView, createQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { assessmentPrePostProperties } from '../../assessment-pre-post.properties';\nimport { QUESTIONNAIRE_OUTCOMES_PAGE_COMPONENT_KEY } from '../../QUESTIONNAIRE_OUTCOMES_PAGE_COMPONENT_KEY';\nimport { RootConfig } from '../../root-config';\nimport { AXMFormTemplateTypes } from './template.types';\n\n\nexport async function factoryTemplate(): Promise<AXPEntity | null> {\n const i18n = 'form-template-management';\n\n const previewAction: AXPEntityAction = {\n title: `@${i18n}:templates.entities.template.actions.preview.title`,\n command: {\n name: `${RootConfig.module.name}.${RootConfig.entities.template.name}:Preview`,\n options: {\n templateId: '{{ context.eval(\"id\") }}',\n templateTitle: '{{ context.eval(\"title\", { pipes: [\"translate\"] }) }}',\n },\n },\n priority: 'primary',\n type: 'action',\n icon: 'fa-light fa-eye',\n scope: AXPEntityCommandScope.Individual,\n };\n\n const entityDef: AXPEntity = {\n plugins: [\n { name: 'identifier', options: { field: 'code', rule: 'form-template' } },\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n // { name: 'comments' },\n { name: 'category' },\n { name: 'clone' },\n { name: 'archive' },\n { name: 'form-template', options: { display: 'section' } },\n ],\n module: RootConfig.module.name,\n name: RootConfig.entities.template.name,\n title: RootConfig.entities.template.title,\n icon: RootConfig.entities.template.icon,\n searchTags: [\n 'form-template',\n 'template',\n 'templates',\n 'form-designer',\n 'widget',\n 'dynamic-form',\n 'layout-design',\n 'form-builder',\n 'قالب',\n 'قالبها',\n 'قالب فرم',\n 'مدیریت قالب فرم',\n 'طراح فرم',\n ],\n formats: {\n individual: '@form-template-management:templates.entities.template.title',\n plural: '@form-template-management:templates.terms.templates',\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n\n relatedEntities: [],\n pages: [\n {\n componentKey: QUESTIONNAIRE_OUTCOMES_PAGE_COMPONENT_KEY,\n field: 'outcomes',\n title: '@assessment-management:questionnaires.entities.questionnaire.fields.outcomes.title',\n icon: 'fa-light fa-calculator',\n layout: { order: 2, position: 'after' },\n appearOn: { create: true, update: true },\n options: {\n entity: RootConfig.entities.template.source,\n },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@general:terms.interface.basic-info',\n },\n {\n id: 'template-content',\n title: `@${i18n}:designer.terms.designer`,\n },\n {\n id: 'pre-questionnaire',\n title: `@${i18n}:templates.entities.template.groups.pre-form`,\n },\n {\n id: 'post-questionnaire',\n title: `@${i18n}:templates.entities.template.groups.post-form`,\n },\n ],\n properties: [\n {\n name: 'code',\n title: `@general:terms.common.code`,\n groupId: 'basic-info',\n options: {\n filter: {\n inline: { enabled: true },\n advance: { enabled: true }\n },\n sort: {\n enabled: true,\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n filter: {\n inline: { enabled: true },\n advance: { enabled: true }\n },\n sort: {\n enabled: true,\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n {\n rule: 'minLength',\n options: {\n value: 3,\n },\n },\n {\n rule: 'maxLength',\n options: {\n value: 50,\n },\n },\n ],\n },\n {\n name: 'type',\n title: '@general:terms.common.type',\n groupId: 'basic-info',\n options: {\n filter: {\n inline: { enabled: true },\n advance: { enabled: true }\n },\n sort: {\n enabled: true,\n },\n },\n schema: {\n dataType: 'string',\n defaultValue: AXMFormTemplateTypes.Form,\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'id',\n textField: 'title',\n dataSource: [AXMFormTemplateTypes.Form, AXMFormTemplateTypes.Widget],\n multiple: false,\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'template',\n title: `@${i18n}:templates.entities.template.fields.template.title`,\n groupId: 'template-content',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Templates.Designer,\n },\n },\n },\n ...assessmentPrePostProperties({\n preTitleKey: `@${i18n}:templates.entities.template.groups.pre-form`,\n postTitleKey: `@${i18n}:templates.entities.template.groups.post-form`,\n }),\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'type' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'basic-info',\n },\n { id: 'pre-questionnaire' },\n { id: 'post-questionnaire' },\n ],\n properties: [\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 1,\n },\n },\n },\n },\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 2,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 3,\n },\n },\n },\n },\n { name: 'pre', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'post', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 6 } } } },\n ],\n },\n update: {\n sections: [\n {\n id: 'basic-info',\n },\n { id: 'pre-questionnaire' },\n { id: 'post-questionnaire' },\n ],\n properties: [\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 1,\n },\n },\n },\n },\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 2,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 3,\n },\n },\n },\n },\n { name: 'pre', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'post', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 6 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'basic-info',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n { id: 'pre-questionnaire', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'post-questionnaire', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 1,\n },\n },\n },\n },\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 2,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n order: 3,\n },\n },\n },\n },\n { name: 'pre', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'post', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 6 } } } },\n ],\n actions: [\n ...entityMasterRecordActions(),\n previewAction,\n ],\n },\n list: {\n actions: [\n ...entityMasterCrudActions(),\n previewAction,\n ],\n views: [\n createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),\n createQueryView('forms', `@${i18n}:templates.menus.forms.title`, true, {\n conditions: [\n {\n name: 'type.id',\n operator: {\n type: 'equal',\n },\n value: 10,\n hidden: true,\n },\n ],\n }),\n createQueryView('widgets', `@${i18n}:templates.menus.widgets.title`, true, {\n conditions: [\n {\n name: 'type.id',\n operator: {\n type: 'equal',\n },\n value: 20,\n hidden: true,\n },\n ],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;;AAQO,MAAM,oBAAoB,GAAG;AAClC,IAAA,IAAI,EAAE;AACJ,QAAA,EAAE,EAAE,EAAE;AACN,QAAA,KAAK,EAAE,gFAAgF;AACpD,KAAA;AACrC,IA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,UAAU,EAAE;AACV,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,QAAQ,EAAE;AACR,wCAAA,IAAI,EAAE,OAAO;AACd,qCAAA;AACD,oCAAA,KAAK,EAAE,EAAE;AACT,oCAAA,MAAM,EAAE,IAAI;AACb,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
|
package/fesm2022/acorex-platform-module-assessment-management-client-contracts-entity-catalog.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as assessmentManagementLocalEntityCatalog } from './acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-
|
|
1
|
+
export { a as assessmentManagementLocalEntityCatalog } from './acorex-platform-module-assessment-management-client-contracts-entity-catalog-acorex-platform-module-assessment-management-client-contracts-entity-catalog-DDCy1T4t.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-assessment-management-client-contracts-entity-catalog.mjs.map
|
|
@@ -99,6 +99,38 @@ const QUESTIONNAIRE_QUESTIONS_PAGE_COMPONENT_KEY = 'questionnaire-questions-page
|
|
|
99
99
|
//#region ---- Imports ----
|
|
100
100
|
//#endregion
|
|
101
101
|
|
|
102
|
+
/** Width choices for a question placed in a questionnaire. Values are columns in the 12-column row. */
|
|
103
|
+
const QUESTIONNAIRE_ITEM_COL_SPANS = [12, 6, 4, 3, 2];
|
|
104
|
+
const QUESTIONNAIRE_ITEM_COL_SPAN_SET = new Set(QUESTIONNAIRE_ITEM_COL_SPANS);
|
|
105
|
+
/**
|
|
106
|
+
* Column width stored on the questionnaire item. Omitted means full width.
|
|
107
|
+
* This is not a question-bank field.
|
|
108
|
+
*/
|
|
109
|
+
function readQuestionnaireItemColSpan(item) {
|
|
110
|
+
return coerceQuestionnaireItemColSpan(item?.layout?.positions?.lg?.colSpan) ?? 12;
|
|
111
|
+
}
|
|
112
|
+
/** Persist only a narrower width. Full width stays omitted so existing questionnaires are unchanged. */
|
|
113
|
+
function questionnaireItemLayoutOverride(value) {
|
|
114
|
+
const colSpan = coerceQuestionnaireItemColSpan(value);
|
|
115
|
+
if (colSpan == null || colSpan === 12) {
|
|
116
|
+
return undefined;
|
|
117
|
+
}
|
|
118
|
+
return { positions: { lg: { colSpan } } };
|
|
119
|
+
}
|
|
120
|
+
/** Accepts a number, numeric string, or select row `{ id }`. */
|
|
121
|
+
function coerceQuestionnaireItemColSpan(value) {
|
|
122
|
+
if (typeof value === 'number' && QUESTIONNAIRE_ITEM_COL_SPAN_SET.has(value)) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
if (typeof value === 'string' && /^\d+$/.test(value)) {
|
|
126
|
+
return coerceQuestionnaireItemColSpan(Number(value));
|
|
127
|
+
}
|
|
128
|
+
if (value && typeof value === 'object' && 'id' in value) {
|
|
129
|
+
return coerceQuestionnaireItemColSpan(value.id);
|
|
130
|
+
}
|
|
131
|
+
return undefined;
|
|
132
|
+
}
|
|
133
|
+
|
|
102
134
|
//#region ---- Questionnaire print settings ----
|
|
103
135
|
const DEFAULT_QUESTIONNAIRE_PRINT_SETTINGS = {
|
|
104
136
|
paperSize: 'A4',
|
|
@@ -1259,5 +1291,5 @@ const AXMFormTemplateTypes = {
|
|
|
1259
1291
|
* Generated bundle index. Do not edit.
|
|
1260
1292
|
*/
|
|
1261
1293
|
|
|
1262
|
-
export { ASSESSMENT_PRINT_CONTENT_WIDTH_MM, ASSESSMENT_PRINT_HTML_GZIP_ENCODING, ASSESSMENT_PRINT_PAGE_FORMAT, AXMAssessmentManagementFeatureKeys, AXMAssessmentManagementPermissionKeys, AXMFormTemplateTypes, AXM_ASSESSMENT_PRINT_MERGE_KEYS, AXM_ASSESSMENT_SESSION_PREVIEW_PDF_CLIENT_COMMAND_KEY, AXM_ASSESSMENT_SESSION_PREVIEW_PDF_COMMAND_KEY, AXPAssessmentManagementMenuKeys, AXPContentDocumentsPermissionKeys, AXPFormTemplateManagementMenuKeys, AXPFormTemplateManagementPermissionKeys, AXPFormTemplateSettings, AXPSafetyRiskPermissionKeys, AssessmentManagementManifest, DEFAULT_POST_QUESTIONNAIRE_CONFIG, DEFAULT_PRE_QUESTIONNAIRE_CONFIG, DEFAULT_QUESTIONNAIRE_ENTITY_DISPLAY, DEFAULT_QUESTIONNAIRE_ENTITY_PRINT, DEFAULT_QUESTIONNAIRE_OUTCOMES, DEFAULT_QUESTIONNAIRE_PRINT_SETTINGS, DEFAULT_QUESTION_COMMENT_CONFIG, DEFAULT_QUESTION_HINT_CONFIG, PRINT_PAGE_LETTERHEAD_BOTTOM_MARGIN_MM, PRINT_PAGE_LETTERHEAD_TOP_MARGIN_MM, PRINT_PAGE_SIDE_MARGIN_MM, QUESTIONNAIRE_OUTCOMES_PAGE_COMPONENT_KEY, QUESTIONNAIRE_QUESTIONS_PAGE_COMPONENT_KEY, RootConfig, applyQuestionnairePrintHeader, buildQuestionnairePrintBodyHtml, buildQuestionnairePrintHeaderRegion, buildQuestionnaireQuestionCardHtml, buildQuestionnaireSessionBodyHtml, commentConfigForEditForm, diffQuestionCommentOverride, diffQuestionHintOverride, escapePrintDocumentText, extractPrintDocumentBodyHtml, findDuplicateOutcomeNames, flattenQuestionnaireOutcomeItems, formatPrintAnswerText, getQuestionAnswerCommentStoragePath, getQuestionCommentVisibilityFlag, isQuestionnaireOutcomeDisplayColorHex, matchesQuestionnaireOutcomeDisplayRule, mergeQuestionCommentConfig, mergeQuestionHintForViewer, minifyPrintHtml, normalizeCompletionMode, normalizePrintOrientation, normalizePrintPaperSize, normalizePrintWatermark, normalizeQuestionCommentConfig, normalizeQuestionHintConfig, normalizeQuestionHintFromEntityRow, normalizeQuestionHintMode, normalizeQuestionnaireOutcomeDisplayRules, normalizeQuestionnaireOutcomesValue, normalizeValidationStrategy, normalizeViewMode, parseQuestionHintPartialFromRecord, parseQuestionnaireOutcomeDisplayColor, readHintFieldsFromRecord, resolvePrintContentWidthMm, resolvePrintLetterheadPdfMargin, resolvePrintPaging, resolvePrintPdfPageOptions, resolvePrintPlainText, resolvePrintSettings, toDisplaySettings, toPrePostConfig, toPrintSettings, wrapPrintDocument };
|
|
1294
|
+
export { ASSESSMENT_PRINT_CONTENT_WIDTH_MM, ASSESSMENT_PRINT_HTML_GZIP_ENCODING, ASSESSMENT_PRINT_PAGE_FORMAT, AXMAssessmentManagementFeatureKeys, AXMAssessmentManagementPermissionKeys, AXMFormTemplateTypes, AXM_ASSESSMENT_PRINT_MERGE_KEYS, AXM_ASSESSMENT_SESSION_PREVIEW_PDF_CLIENT_COMMAND_KEY, AXM_ASSESSMENT_SESSION_PREVIEW_PDF_COMMAND_KEY, AXPAssessmentManagementMenuKeys, AXPContentDocumentsPermissionKeys, AXPFormTemplateManagementMenuKeys, AXPFormTemplateManagementPermissionKeys, AXPFormTemplateSettings, AXPSafetyRiskPermissionKeys, AssessmentManagementManifest, DEFAULT_POST_QUESTIONNAIRE_CONFIG, DEFAULT_PRE_QUESTIONNAIRE_CONFIG, DEFAULT_QUESTIONNAIRE_ENTITY_DISPLAY, DEFAULT_QUESTIONNAIRE_ENTITY_PRINT, DEFAULT_QUESTIONNAIRE_OUTCOMES, DEFAULT_QUESTIONNAIRE_PRINT_SETTINGS, DEFAULT_QUESTION_COMMENT_CONFIG, DEFAULT_QUESTION_HINT_CONFIG, PRINT_PAGE_LETTERHEAD_BOTTOM_MARGIN_MM, PRINT_PAGE_LETTERHEAD_TOP_MARGIN_MM, PRINT_PAGE_SIDE_MARGIN_MM, QUESTIONNAIRE_ITEM_COL_SPANS, QUESTIONNAIRE_OUTCOMES_PAGE_COMPONENT_KEY, QUESTIONNAIRE_QUESTIONS_PAGE_COMPONENT_KEY, RootConfig, applyQuestionnairePrintHeader, buildQuestionnairePrintBodyHtml, buildQuestionnairePrintHeaderRegion, buildQuestionnaireQuestionCardHtml, buildQuestionnaireSessionBodyHtml, coerceQuestionnaireItemColSpan, commentConfigForEditForm, diffQuestionCommentOverride, diffQuestionHintOverride, escapePrintDocumentText, extractPrintDocumentBodyHtml, findDuplicateOutcomeNames, flattenQuestionnaireOutcomeItems, formatPrintAnswerText, getQuestionAnswerCommentStoragePath, getQuestionCommentVisibilityFlag, isQuestionnaireOutcomeDisplayColorHex, matchesQuestionnaireOutcomeDisplayRule, mergeQuestionCommentConfig, mergeQuestionHintForViewer, minifyPrintHtml, normalizeCompletionMode, normalizePrintOrientation, normalizePrintPaperSize, normalizePrintWatermark, normalizeQuestionCommentConfig, normalizeQuestionHintConfig, normalizeQuestionHintFromEntityRow, normalizeQuestionHintMode, normalizeQuestionnaireOutcomeDisplayRules, normalizeQuestionnaireOutcomesValue, normalizeValidationStrategy, normalizeViewMode, parseQuestionHintPartialFromRecord, parseQuestionnaireOutcomeDisplayColor, questionnaireItemLayoutOverride, readHintFieldsFromRecord, readQuestionnaireItemColSpan, resolvePrintContentWidthMm, resolvePrintLetterheadPdfMargin, resolvePrintPaging, resolvePrintPdfPageOptions, resolvePrintPlainText, resolvePrintSettings, toDisplaySettings, toPrePostConfig, toPrintSettings, wrapPrintDocument };
|
|
1263
1295
|
//# sourceMappingURL=acorex-platform-module-assessment-management-client-contracts.mjs.map
|