@acorex/modules 21.0.0-next.14 → 21.0.0-next.16
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/assessment-management/README.md +11 -0
- package/assessment-management/index.d.ts +122 -24
- package/common/index.d.ts +6 -1
- package/data-management/index.d.ts +67 -48
- package/document-management/index.d.ts +261 -76
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-ClgGS32i.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-HgaOIA2U.mjs} +950 -468
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-HgaOIA2U.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-column.component-UmXUT6Xn.mjs → acorex-modules-assessment-management-answers-viewer-widget-column.component-DyxE9Xec.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-column.component-UmXUT6Xn.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-column.component-DyxE9Xec.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-edit.component-vVfXtden.mjs → acorex-modules-assessment-management-answers-viewer-widget-edit.component-DC2Ep3r1.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-edit.component-vVfXtden.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-edit.component-DC2Ep3r1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-view.component-C75zxKgV.mjs → acorex-modules-assessment-management-answers-viewer-widget-view.component-iKqac5PE.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-view.component-C75zxKgV.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-view.component-iKqac5PE.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-CjhC5YAF.mjs → acorex-modules-assessment-management-assessment-case.entity-CsCMlcvF.mjs} +3 -3
- package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-CsCMlcvF.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-B_IDiEzp.mjs → acorex-modules-assessment-management-assessment-session.entity-BkNVe3FO.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-B_IDiEzp.mjs.map → acorex-modules-assessment-management-assessment-session.entity-BkNVe3FO.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-zT5u3h_s.mjs → acorex-modules-assessment-management-fill-assessment-session.command-Dgeh3E5f.mjs} +32 -33
- package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-Dgeh3E5f.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-BIXy9eut.mjs → acorex-modules-assessment-management-preview-questionnaire.command-NcZlE6DU.mjs} +24 -8
- package/fesm2022/acorex-modules-assessment-management-preview-questionnaire.command-NcZlE6DU.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-BWYLXvCp.mjs → acorex-modules-assessment-management-question-bank-item.entity-vNxSmJuv.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-BWYLXvCp.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-vNxSmJuv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-edit.component-3wVcKQGE.mjs → acorex-modules-assessment-management-questionnaire-builder-edit.component-CbfHOFT1.mjs} +20 -4
- package/fesm2022/acorex-modules-assessment-management-questionnaire-builder-edit.component-CbfHOFT1.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-view.component-meuUo7Vx.mjs → acorex-modules-assessment-management-questionnaire-builder-view.component-DDqDjzwH.mjs} +3 -3
- package/fesm2022/acorex-modules-assessment-management-questionnaire-builder-view.component-DDqDjzwH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder.component-CGgUUkOY.mjs → acorex-modules-assessment-management-questionnaire-builder.component-BOnwdWj7.mjs} +11 -5
- package/fesm2022/acorex-modules-assessment-management-questionnaire-builder.component-BOnwdWj7.mjs.map +1 -0
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-BX8Q2Kfn.mjs +392 -0
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-BX8Q2Kfn.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer.service-D3k3J93r.mjs → acorex-modules-assessment-management-questionnaire-viewer.service-CSdVNxV2.mjs} +21 -6
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer.service-CSdVNxV2.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-C8sX0d_p.mjs → acorex-modules-assessment-management-questionnaire.entity-DFQIvlza.mjs} +138 -23
- package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-DFQIvlza.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-Czq7cj9R.mjs → acorex-modules-assessment-management-view-session-answers.command-CMmE72Kt.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-Czq7cj9R.mjs.map → acorex-modules-assessment-management-view-session-answers.command-CMmE72Kt.mjs.map} +1 -1
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DHSmTid9.mjs → acorex-modules-auth-acorex-modules-auth-CZuDhBx5.mjs} +15 -15
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-CZuDhBx5.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BgnYEXEl.mjs → acorex-modules-auth-app-chooser.component-DJE47I8p.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BgnYEXEl.mjs.map → acorex-modules-auth-app-chooser.component-DJE47I8p.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-BvhI4dAz.mjs → acorex-modules-auth-login.module-CI_lkyb7.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-BvhI4dAz.mjs.map → acorex-modules-auth-login.module-CI_lkyb7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-D4zZR1Gr.mjs → acorex-modules-auth-master.layout-CdY380qS.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-D4zZR1Gr.mjs.map → acorex-modules-auth-master.layout-CdY380qS.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-DniYj9Tx.mjs → acorex-modules-auth-oauth-callback.component-BvPk9b3e.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-DniYj9Tx.mjs.map → acorex-modules-auth-oauth-callback.component-BvPk9b3e.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-mvQ4KY3g.mjs → acorex-modules-auth-password.component-CefISnvd.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-mvQ4KY3g.mjs.map → acorex-modules-auth-password.component-CefISnvd.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CZkZAj32.mjs → acorex-modules-auth-password.component-Dw_v_EFQ.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-CZkZAj32.mjs.map → acorex-modules-auth-password.component-Dw_v_EFQ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-6Ulmk7si.mjs → acorex-modules-auth-routes-CwcJHbAi.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-6Ulmk7si.mjs.map → acorex-modules-auth-routes-CwcJHbAi.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-3OkOSTkm.mjs → acorex-modules-auth-tenant-chooser.component-DFhTYEDt.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-3OkOSTkm.mjs.map → acorex-modules-auth-tenant-chooser.component-DFhTYEDt.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-DtrVmYAu.mjs → acorex-modules-auth-two-factor.module-BOZB6sLo.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-DtrVmYAu.mjs.map → acorex-modules-auth-two-factor.module-BOZB6sLo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-Co18_D9H.mjs → acorex-modules-auth-user-sessions.component-BnrnXg4G.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-user-sessions.component-Co18_D9H.mjs.map → acorex-modules-auth-user-sessions.component-BnrnXg4G.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-calendar-management.mjs +4 -3
- package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-common.mjs +35 -29
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +333 -342
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +2716 -527
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-yGvT9kSL.mjs +381 -0
- package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-yGvT9kSL.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-CviI9xJC.mjs → acorex-modules-human-capital-management-leave-request.entity-BDSyXKSF.mjs} +2 -2
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-BDSyXKSF.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-CY81Nohl.mjs → acorex-modules-human-capital-management-leave-type.entity-YitcNesR.mjs} +6 -2
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-YitcNesR.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management.mjs +696 -351
- package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-locale-management.mjs +11 -2
- package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-BRVfUYiM.mjs → acorex-modules-settings-management-acorex-modules-settings-management-Dpjfgmg9.mjs} +6 -6
- package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-BRVfUYiM.mjs.map → acorex-modules-settings-management-acorex-modules-settings-management-Dpjfgmg9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-WSxrvAsV.mjs → acorex-modules-settings-management-permission-definition.provider-nYV8iDwJ.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-WSxrvAsV.mjs.map → acorex-modules-settings-management-permission-definition.provider-nYV8iDwJ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-MYnJYUxE.mjs → acorex-modules-settings-management-setting-page.component-B1lhCtl_.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-MYnJYUxE.mjs.map → acorex-modules-settings-management-setting-page.component-B1lhCtl_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-Cq80snth.mjs → acorex-modules-settings-management-setting-view.component-CAX1kFy2.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-Cq80snth.mjs.map → acorex-modules-settings-management-setting-view.component-CAX1kFy2.mjs.map} +1 -1
- package/fesm2022/acorex-modules-settings-management.mjs +1 -1
- package/fesm2022/acorex-modules-system-insight.mjs +4 -3
- package/fesm2022/acorex-modules-system-insight.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-B_S373L-.mjs → acorex-modules-task-management-task-board.page-CuP9U1h8.mjs} +60 -53
- package/fesm2022/acorex-modules-task-management-task-board.page-CuP9U1h8.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +11 -39
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-cartable-page.component-Bso0XRkJ.mjs +296 -0
- package/fesm2022/acorex-modules-workflow-management-cartable-page.component-Bso0XRkJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-index-xB36g4F1.mjs +469 -0
- package/fesm2022/acorex-modules-workflow-management-index-xB36g4F1.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +2507 -681
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/human-capital-management/index.d.ts +79 -19
- package/package.json +16 -16
- package/task-management/index.d.ts +1 -12
- package/workflow-management/index.d.ts +265 -220
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-ClgGS32i.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-CjhC5YAF.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-zT5u3h_s.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-preview-questionnaire.command-BIXy9eut.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-builder-edit.component-3wVcKQGE.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-builder-view.component-meuUo7Vx.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-builder.component-CGgUUkOY.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-kVnWtedV.mjs +0 -416
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-kVnWtedV.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer.service-D3k3J93r.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-C8sX0d_p.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-DHSmTid9.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-CviI9xJC.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-CY81Nohl.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-B_S373L-.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-BbBEPTBa.mjs +0 -258
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-BbBEPTBa.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-nJMBL0qt.mjs +0 -371
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-nJMBL0qt.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Pso0oRN5.mjs +0 -313
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Pso0oRN5.mjs.map +0 -1
|
@@ -218,23 +218,26 @@ const AXPWidgetsList = {
|
|
|
218
218
|
// },
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
+
const DEFAULT_ARCHIVE_FIELD_NAME = 'isArchived';
|
|
222
|
+
//#endregion
|
|
221
223
|
const archivePlugin = {
|
|
222
224
|
name: 'archive',
|
|
223
225
|
order: 65,
|
|
224
|
-
apply: (ctx) => {
|
|
226
|
+
apply: (ctx, options) => {
|
|
225
227
|
ensureListActions(ctx);
|
|
226
|
-
|
|
228
|
+
const fieldName = options?.fieldName ?? DEFAULT_ARCHIVE_FIELD_NAME;
|
|
229
|
+
//#region ---- Add Archive Field Property ----
|
|
227
230
|
// Ensure settings group exists
|
|
228
231
|
const groupId = 'settings';
|
|
229
232
|
const groups = ctx.groups.list() ?? [];
|
|
230
233
|
if (!groups.some((g) => g.id === groupId)) {
|
|
231
234
|
ctx.groups.add({ id: groupId, title: '@general:terms.interface.settings' });
|
|
232
235
|
}
|
|
233
|
-
// Add
|
|
236
|
+
// Add archive property if it doesn't exist
|
|
234
237
|
const props = ctx.properties.list();
|
|
235
|
-
if (!props.some((p) => p.name ===
|
|
238
|
+
if (!props.some((p) => p.name === fieldName)) {
|
|
236
239
|
ctx.properties.add({
|
|
237
|
-
name:
|
|
240
|
+
name: fieldName,
|
|
238
241
|
title: '@general:terms.status.states.is-archived',
|
|
239
242
|
groupId,
|
|
240
243
|
schema: {
|
|
@@ -261,11 +264,11 @@ const archivePlugin = {
|
|
|
261
264
|
}
|
|
262
265
|
});
|
|
263
266
|
}
|
|
264
|
-
// Add
|
|
267
|
+
// Add archive field to columns for list view
|
|
265
268
|
const columns = ctx.columns.list() ?? [];
|
|
266
|
-
if (!columns.some((c) => c.name ===
|
|
269
|
+
if (!columns.some((c) => c.name === fieldName)) {
|
|
267
270
|
ctx.columns.add({
|
|
268
|
-
name:
|
|
271
|
+
name: fieldName,
|
|
269
272
|
title: '@general:terms.status.states.is-active',
|
|
270
273
|
width: 100,
|
|
271
274
|
sortable: true,
|
|
@@ -294,7 +297,7 @@ const archivePlugin = {
|
|
|
294
297
|
priority: 'secondary',
|
|
295
298
|
type: 'archive',
|
|
296
299
|
scope: AXPEntityCommandScope.Individual,
|
|
297
|
-
hidden: `{{ context.eval("
|
|
300
|
+
hidden: `{{ context.eval("${fieldName}") }}`,
|
|
298
301
|
});
|
|
299
302
|
}
|
|
300
303
|
// Add restore archive action to list view
|
|
@@ -311,7 +314,7 @@ const archivePlugin = {
|
|
|
311
314
|
priority: 'secondary',
|
|
312
315
|
type: 'update',
|
|
313
316
|
scope: AXPEntityCommandScope.Individual,
|
|
314
|
-
hidden: `{{ !context.eval("
|
|
317
|
+
hidden: `{{ !context.eval("${fieldName}") }}`,
|
|
315
318
|
});
|
|
316
319
|
}
|
|
317
320
|
// Add bulk archive action to list view
|
|
@@ -359,7 +362,7 @@ const archivePlugin = {
|
|
|
359
362
|
priority: 'secondary',
|
|
360
363
|
type: 'archive',
|
|
361
364
|
scope: AXPEntityCommandScope.Individual,
|
|
362
|
-
hidden: `{{ context.eval("
|
|
365
|
+
hidden: `{{ context.eval("${fieldName}") }}`,
|
|
363
366
|
});
|
|
364
367
|
}
|
|
365
368
|
// Add restore archive action to single view
|
|
@@ -376,7 +379,7 @@ const archivePlugin = {
|
|
|
376
379
|
priority: 'secondary',
|
|
377
380
|
type: 'update',
|
|
378
381
|
scope: AXPEntityCommandScope.Individual,
|
|
379
|
-
hidden: `{{ !context.eval("
|
|
382
|
+
hidden: `{{ !context.eval("${fieldName}") }}`,
|
|
380
383
|
});
|
|
381
384
|
}
|
|
382
385
|
return i;
|
|
@@ -392,7 +395,7 @@ const archivePlugin = {
|
|
|
392
395
|
next.views.push(createQueryView('archived', '@general:terms.status.states.is-archived', false, {
|
|
393
396
|
conditions: [
|
|
394
397
|
{
|
|
395
|
-
name:
|
|
398
|
+
name: fieldName,
|
|
396
399
|
operator: { type: 'equal' },
|
|
397
400
|
value: true,
|
|
398
401
|
hidden: true
|
|
@@ -1405,7 +1408,7 @@ class AXPAuditInfoColumnComponent extends AXPColumnWidgetComponent {
|
|
|
1405
1408
|
});
|
|
1406
1409
|
}
|
|
1407
1410
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXPAuditInfoColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1408
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: AXPAuditInfoColumnComponent, isStandalone: true, selector: "axp-audit-info-column", inputs: { rawValue: "rawValue", rowData: "rowData" }, viewQueries: [{ propertyName: "infoButton", first: true, predicate: ["infoButton"], descendants: true, isSignal: true }, { propertyName: "infoPopover", first: true, predicate: ["infoPopover"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-items-center ax-gap-1.5\">\n @if (hasAuditInfo()) {\n <div class=\"ax-flex ax-items-center ax-gap-1.5 ax-cursor-pointer hover:ax-opacity-80 ax-transition-opacity\"\n (click)=\"showInfo()\" [title]=\"displayText()\" #infoButton>\n <i class=\"fa-light fa-calendar-circle-exclamation\"></i>\n <span class=\"ax-text-xs \" [dir]=\"'ltr'\">{{ displayDate() }}</span>\n </div>\n } @else {\n <span class=\"ax-text-muted\">---</span>\n }\n</div>\n\n<!-- Audit Info Popover -->\n<ax-popover [openOn]=\"'manual'\" #infoPopover (openChange)=\"onPopoverOpenChange($event)\" [adaptivityEnabled]=\"true\">\n <div class=\"ax-lightest-surface ax-border ax-rounded-lg ax-shadow-lg ax-p-3 ax-min-w-[280px]\">\n <div class=\"ax-mb-3 ax-pb-2 ax-border-b\">\n <h3 class=\"ax-text-sm ax-font-semibold\">\n {{ '@general:terms.audit.section-title' | translate | async }}\n </h3>\n </div>\n <div class=\"ax-space-y-2.5\">\n <!-- Created -->\n @if (createdEvent()) {\n <div>\n <div class=\"ax-text-xs ax-mb-1 ax-font-semibold\">\n {{ '@general:terms.audit.created' | translate | async }}\n </div>\n <div class=\"ax-text-xs ax-space-y-0.5\">\n @if (createdEvent()?.at) {\n <div>\n <span [dir]=\"'ltr'\">{{ formatDate(createdEvent()?.at) }}</span>\n @if (createdEvent()?.by) {\n <span class=\"ax-text-muted\"> \u2022 {{ formatUser(createdEvent()?.by) }}</span>\n }\n </div>\n }\n @if (createdEvent()?.reason) {\n <div class=\"ax-text-muted\">{{ createdEvent()?.reason }}</div>\n }\n </div>\n </div>\n }\n\n <!-- Updated -->\n @if (updatedEvent()) {\n <div>\n <div class=\"ax-text-xs ax-mb-1 ax-font-semibold\">\n {{ '@general:terms.audit.updated' | translate | async }}\n </div>\n <div class=\"ax-text-xs ax-space-y-0.5\">\n @if (updatedEvent()?.at) {\n <div>\n <span [dir]=\"'ltr'\">{{ formatDate(updatedEvent()?.at) }}</span>\n @if (updatedEvent()?.by) {\n <span class=\"ax-text-muted\"> \u2022 {{ formatUser(updatedEvent()?.by) }}</span>\n }\n </div>\n }\n @if (updatedEvent()?.reason) {\n <div class=\"ax-text-muted\">{{ updatedEvent()?.reason }}</div>\n }\n </div>\n </div>\n }\n\n <!-- Deleted -->\n @if (deletedEvent()) {\n <div>\n <div class=\"ax-text-xs ax-text-muted ax-mb-1 ax-font-semibold\">\n {{ '@general:terms.audit.deleted' | translate | async }}\n </div>\n <div class=\"ax-text-xs ax-space-y-0.5\">\n @if (deletedEvent()?.at) {\n <div>\n <span [dir]=\"'ltr'\">{{ formatDate(deletedEvent()?.at) }}</span>\n @if (deletedEvent()?.by) {\n <span class=\"ax-text-muted\"> \u2022 {{ formatUser(deletedEvent()?.by) }}</span>\n }\n </div>\n }\n @if (deletedEvent()?.reason) {\n <div class=\"ax-text-muted\">{{ deletedEvent()?.reason }}</div>\n }\n </div>\n </div>\n }\n </div>\n @if (hasHistoryPlugin()) {\n <div class=\"ax-mt-3 ax-pt-3 ax-border-t ax-sm\">\n <ax-button [text]=\"'@general:terms.audit.history' | translate | async\" (click)=\"showHistory()\" class=\"ax-w-full\">\n </ax-button>\n </div>\n }\n </div>\n</ax-popover>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["width", "
|
|
1411
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: AXPAuditInfoColumnComponent, isStandalone: true, selector: "axp-audit-info-column", inputs: { rawValue: "rawValue", rowData: "rowData" }, viewQueries: [{ propertyName: "infoButton", first: true, predicate: ["infoButton"], descendants: true, isSignal: true }, { propertyName: "infoPopover", first: true, predicate: ["infoPopover"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-items-center ax-gap-1.5\">\n @if (hasAuditInfo()) {\n <div class=\"ax-flex ax-items-center ax-gap-1.5 ax-cursor-pointer hover:ax-opacity-80 ax-transition-opacity\"\n (click)=\"showInfo()\" [title]=\"displayText()\" #infoButton>\n <i class=\"fa-light fa-calendar-circle-exclamation\"></i>\n <span class=\"ax-text-xs \" [dir]=\"'ltr'\">{{ displayDate() }}</span>\n </div>\n } @else {\n <span class=\"ax-text-muted\">---</span>\n }\n</div>\n\n<!-- Audit Info Popover -->\n<ax-popover [openOn]=\"'manual'\" #infoPopover (openChange)=\"onPopoverOpenChange($event)\" [adaptivityEnabled]=\"true\">\n <div class=\"ax-lightest-surface ax-border ax-rounded-lg ax-shadow-lg ax-p-3 ax-min-w-[280px]\">\n <div class=\"ax-mb-3 ax-pb-2 ax-border-b\">\n <h3 class=\"ax-text-sm ax-font-semibold\">\n {{ '@general:terms.audit.section-title' | translate | async }}\n </h3>\n </div>\n <div class=\"ax-space-y-2.5\">\n <!-- Created -->\n @if (createdEvent()) {\n <div>\n <div class=\"ax-text-xs ax-mb-1 ax-font-semibold\">\n {{ '@general:terms.audit.created' | translate | async }}\n </div>\n <div class=\"ax-text-xs ax-space-y-0.5\">\n @if (createdEvent()?.at) {\n <div>\n <span [dir]=\"'ltr'\">{{ formatDate(createdEvent()?.at) }}</span>\n @if (createdEvent()?.by) {\n <span class=\"ax-text-muted\"> \u2022 {{ formatUser(createdEvent()?.by) }}</span>\n }\n </div>\n }\n @if (createdEvent()?.reason) {\n <div class=\"ax-text-muted\">{{ createdEvent()?.reason }}</div>\n }\n </div>\n </div>\n }\n\n <!-- Updated -->\n @if (updatedEvent()) {\n <div>\n <div class=\"ax-text-xs ax-mb-1 ax-font-semibold\">\n {{ '@general:terms.audit.updated' | translate | async }}\n </div>\n <div class=\"ax-text-xs ax-space-y-0.5\">\n @if (updatedEvent()?.at) {\n <div>\n <span [dir]=\"'ltr'\">{{ formatDate(updatedEvent()?.at) }}</span>\n @if (updatedEvent()?.by) {\n <span class=\"ax-text-muted\"> \u2022 {{ formatUser(updatedEvent()?.by) }}</span>\n }\n </div>\n }\n @if (updatedEvent()?.reason) {\n <div class=\"ax-text-muted\">{{ updatedEvent()?.reason }}</div>\n }\n </div>\n </div>\n }\n\n <!-- Deleted -->\n @if (deletedEvent()) {\n <div>\n <div class=\"ax-text-xs ax-text-muted ax-mb-1 ax-font-semibold\">\n {{ '@general:terms.audit.deleted' | translate | async }}\n </div>\n <div class=\"ax-text-xs ax-space-y-0.5\">\n @if (deletedEvent()?.at) {\n <div>\n <span [dir]=\"'ltr'\">{{ formatDate(deletedEvent()?.at) }}</span>\n @if (deletedEvent()?.by) {\n <span class=\"ax-text-muted\"> \u2022 {{ formatUser(deletedEvent()?.by) }}</span>\n }\n </div>\n }\n @if (deletedEvent()?.reason) {\n <div class=\"ax-text-muted\">{{ deletedEvent()?.reason }}</div>\n }\n </div>\n </div>\n }\n </div>\n @if (hasHistoryPlugin()) {\n <div class=\"ax-mt-3 ax-pt-3 ax-border-t ax-sm\">\n <ax-button [text]=\"'@general:terms.audit.history' | translate | async\" (click)=\"showHistory()\" class=\"ax-w-full\">\n </ax-button>\n </div>\n }\n </div>\n</ax-popover>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "repositionOnScroll", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1409
1412
|
}
|
|
1410
1413
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXPAuditInfoColumnComponent, decorators: [{
|
|
1411
1414
|
type: Component,
|
|
@@ -3120,23 +3123,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3120
3123
|
}]
|
|
3121
3124
|
}] });
|
|
3122
3125
|
|
|
3126
|
+
const DEFAULT_DISABLE_FIELD_NAME = 'isDisabled';
|
|
3127
|
+
//#endregion
|
|
3123
3128
|
const disablePlugin = {
|
|
3124
3129
|
name: 'disable',
|
|
3125
3130
|
order: 70,
|
|
3126
|
-
apply: (ctx) => {
|
|
3131
|
+
apply: (ctx, options) => {
|
|
3127
3132
|
ensureListActions(ctx);
|
|
3128
|
-
|
|
3133
|
+
const fieldName = options?.fieldName ?? DEFAULT_DISABLE_FIELD_NAME;
|
|
3134
|
+
//#region ---- Add Disable Field Property ----
|
|
3129
3135
|
// Ensure settings group exists
|
|
3130
3136
|
const groupId = 'settings';
|
|
3131
3137
|
const groups = ctx.groups.list() ?? [];
|
|
3132
3138
|
if (!groups.some((g) => g.id === groupId)) {
|
|
3133
3139
|
ctx.groups.add({ id: groupId, title: '@general:terms.interface.settings' });
|
|
3134
3140
|
}
|
|
3135
|
-
// Add
|
|
3141
|
+
// Add disable field property if it doesn't exist
|
|
3136
3142
|
const props = ctx.properties.list();
|
|
3137
|
-
if (!props.some((p) => p.name ===
|
|
3143
|
+
if (!props.some((p) => p.name === fieldName)) {
|
|
3138
3144
|
ctx.properties.add({
|
|
3139
|
-
name:
|
|
3145
|
+
name: fieldName,
|
|
3140
3146
|
title: '@general:terms.status.states.is-disabled',
|
|
3141
3147
|
groupId,
|
|
3142
3148
|
schema: {
|
|
@@ -3165,11 +3171,11 @@ const disablePlugin = {
|
|
|
3165
3171
|
},
|
|
3166
3172
|
});
|
|
3167
3173
|
}
|
|
3168
|
-
// Add
|
|
3174
|
+
// Add disable field to columns for list view
|
|
3169
3175
|
const columns = ctx.columns.list() ?? [];
|
|
3170
|
-
if (!columns.some((c) => c.name ===
|
|
3176
|
+
if (!columns.some((c) => c.name === fieldName)) {
|
|
3171
3177
|
ctx.columns.add({
|
|
3172
|
-
name:
|
|
3178
|
+
name: fieldName,
|
|
3173
3179
|
title: '@general:terms.status.states.is-enabled',
|
|
3174
3180
|
width: 100,
|
|
3175
3181
|
sortable: true,
|
|
@@ -3199,7 +3205,7 @@ const disablePlugin = {
|
|
|
3199
3205
|
type: 'disable',
|
|
3200
3206
|
icon: 'fa-light fa-ban',
|
|
3201
3207
|
scope: AXPEntityCommandScope.Individual,
|
|
3202
|
-
hidden: `{{ context.eval("
|
|
3208
|
+
hidden: `{{ context.eval("${fieldName}") }}`,
|
|
3203
3209
|
});
|
|
3204
3210
|
}
|
|
3205
3211
|
// Add enable action to list view
|
|
@@ -3217,7 +3223,7 @@ const disablePlugin = {
|
|
|
3217
3223
|
type: 'enable',
|
|
3218
3224
|
icon: 'fa-light fa-check',
|
|
3219
3225
|
scope: AXPEntityCommandScope.Individual,
|
|
3220
|
-
hidden: `{{ !context.eval("
|
|
3226
|
+
hidden: `{{ !context.eval("${fieldName}") }}`,
|
|
3221
3227
|
});
|
|
3222
3228
|
}
|
|
3223
3229
|
// Add bulk disable action to list view
|
|
@@ -3268,7 +3274,7 @@ const disablePlugin = {
|
|
|
3268
3274
|
type: 'disable',
|
|
3269
3275
|
icon: 'fa-light fa-ban',
|
|
3270
3276
|
scope: AXPEntityCommandScope.Individual,
|
|
3271
|
-
hidden: `{{ context.eval("
|
|
3277
|
+
hidden: `{{ context.eval("${fieldName}") }}`,
|
|
3272
3278
|
});
|
|
3273
3279
|
}
|
|
3274
3280
|
// Add enable action to single view
|
|
@@ -3286,7 +3292,7 @@ const disablePlugin = {
|
|
|
3286
3292
|
type: 'enable',
|
|
3287
3293
|
icon: 'fa-light fa-check',
|
|
3288
3294
|
scope: AXPEntityCommandScope.Individual,
|
|
3289
|
-
hidden: `{{ !context.eval("
|
|
3295
|
+
hidden: `{{ !context.eval("${fieldName}") }}`,
|
|
3290
3296
|
});
|
|
3291
3297
|
}
|
|
3292
3298
|
return i;
|
|
@@ -3303,9 +3309,9 @@ const disablePlugin = {
|
|
|
3303
3309
|
if (!sections.some((s) => s.id === groupId)) {
|
|
3304
3310
|
sections.push({ id: groupId, order: 150 });
|
|
3305
3311
|
}
|
|
3306
|
-
if (!properties.some((p) => p.name ===
|
|
3312
|
+
if (!properties.some((p) => p.name === fieldName)) {
|
|
3307
3313
|
properties.push({
|
|
3308
|
-
name:
|
|
3314
|
+
name: fieldName,
|
|
3309
3315
|
layout: {
|
|
3310
3316
|
positions: { lg: { colSpan: 6, order: 95 } },
|
|
3311
3317
|
},
|
|
@@ -3336,7 +3342,7 @@ const disablePlugin = {
|
|
|
3336
3342
|
next.views.push(createQueryView('disabled', '@general:terms.status.states.is-disabled', false, {
|
|
3337
3343
|
conditions: [
|
|
3338
3344
|
{
|
|
3339
|
-
name:
|
|
3345
|
+
name: fieldName,
|
|
3340
3346
|
operator: { type: 'equal' },
|
|
3341
3347
|
value: true,
|
|
3342
3348
|
hidden: true,
|