@acorex-platform/module-task-management-client 1.0.2 → 2.0.0-beta.1
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-task-management-client-acorex-platform-module-task-management-client-dfiarGtJ.mjs +2846 -0
- package/fesm2022/acorex-platform-module-task-management-client-acorex-platform-module-task-management-client-dfiarGtJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-type.mjs +148 -51
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task.mjs +38 -1265
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-acorex-platform-module-task-management-client-contracts-entity-catalog-DoR58GWa.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-acorex-platform-module-task-management-client-contracts-entity-catalog-CtNTQX14.mjs} +51 -11
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-acorex-platform-module-task-management-client-contracts-entity-catalog-CtNTQX14.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-assignment.entity--TP_F87Y.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-task-assignment.entity-N_I7YGSn.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-assignment.entity--TP_F87Y.mjs.map → acorex-platform-module-task-management-client-contracts-entity-catalog-task-assignment.entity-N_I7YGSn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-checklist-item.entity-sGrb0ZaR.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-task-checklist-item.entity-4zrBmfHs.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-checklist-item.entity-sGrb0ZaR.mjs.map → acorex-platform-module-task-management-client-contracts-entity-catalog-task-checklist-item.entity-4zrBmfHs.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-context.entity-CLQw9kqg.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-task-context.entity-B7nZyTo9.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-context.entity-CLQw9kqg.mjs.map → acorex-platform-module-task-management-client-contracts-entity-catalog-task-context.entity-B7nZyTo9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-dependency.entity-Ce9NZlK_.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-task-dependency.entity-Kc0FDDhp.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-dependency.entity-Ce9NZlK_.mjs.map → acorex-platform-module-task-management-client-contracts-entity-catalog-task-dependency.entity-Kc0FDDhp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-status.entity-DKx2UHiz.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-task-status.entity-CKmd8udh.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-status.entity-DKx2UHiz.mjs.map → acorex-platform-module-task-management-client-contracts-entity-catalog-task-status.entity-CKmd8udh.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-template.entity-CKY04iyS.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-task-template.entity-DhBEzoof.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-template.entity-CKY04iyS.mjs.map → acorex-platform-module-task-management-client-contracts-entity-catalog-task-template.entity-DhBEzoof.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-task-type.entity-BGKWiqU8.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-task-type.entity-Ckuv9ei1.mjs} +150 -53
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-type.entity-Ckuv9ei1.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task.entity-BN0r7MWY.mjs +46 -0
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task.entity-BN0r7MWY.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-time-log.entity-Gne51DLu.mjs → acorex-platform-module-task-management-client-contracts-entity-catalog-time-log.entity-D1jG-qG1.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-task-management-client-contracts-entity-catalog-time-log.entity-Gne51DLu.mjs.map → acorex-platform-module-task-management-client-contracts-entity-catalog-time-log.entity-D1jG-qG1.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-task-management-client-contracts.mjs +251 -30
- package/fesm2022/acorex-platform-module-task-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-task-management-client-create-subject-task.command-o5rIB4lp.mjs +25 -0
- package/fesm2022/acorex-platform-module-task-management-client-create-subject-task.command-o5rIB4lp.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-create-task-type.command-4VzqIkIc.mjs +46 -0
- package/fesm2022/acorex-platform-module-task-management-client-create-task-type.command-4VzqIkIc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-task-management-client-list-task-board-assignees.query-CENurmLO.mjs → acorex-platform-module-task-management-client-list-task-board-assignees.query-BcNFYozj.mjs} +27 -7
- package/fesm2022/acorex-platform-module-task-management-client-list-task-board-assignees.query-BcNFYozj.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-task-management-client-list-task-board-reporters.query-C3NAYa9b.mjs → acorex-platform-module-task-management-client-list-task-board-reporters.query-A0sbGwlB.mjs} +14 -4
- package/fesm2022/acorex-platform-module-task-management-client-list-task-board-reporters.query-A0sbGwlB.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-task-management-client-list-task-types.query-DQ2MnsAK.mjs → acorex-platform-module-task-management-client-list-task-types.query-CZHSliWt.mjs} +20 -10
- package/fesm2022/acorex-platform-module-task-management-client-list-task-types.query-CZHSliWt.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-open-task-workspace.command-1BlMwoWF.mjs +29 -0
- package/fesm2022/acorex-platform-module-task-management-client-open-task-workspace.command-1BlMwoWF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-personal-task.command-BubXfozR.mjs +257 -0
- package/fesm2022/acorex-platform-module-task-management-client-personal-task.command-BubXfozR.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-task-board-lookup-search.util-il-mNHxd.mjs +42 -0
- package/fesm2022/acorex-platform-module-task-management-client-task-board-lookup-search.util-il-mNHxd.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-task-entity-record.command-BCL_Ctpw.mjs +65 -0
- package/fesm2022/acorex-platform-module-task-management-client-task-entity-record.command-BCL_Ctpw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-task-lifecycle-popup.component-AxJHpj55.mjs +175 -0
- package/fesm2022/acorex-platform-module-task-management-client-task-lifecycle-popup.component-AxJHpj55.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client-task-workspace.popup-Cz8Hrp3r.mjs +220 -0
- package/fesm2022/acorex-platform-module-task-management-client-task-workspace.popup-Cz8Hrp3r.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-task-management-client.mjs +1 -1
- package/i18n/en-AU/task-management.json +222 -5
- package/i18n/en-US/task-management.json +222 -5
- package/i18n/fa-IR/task-management.json +223 -6
- package/package.json +4 -3
- package/types/acorex-platform-module-task-management-client-contracts-entities-task.d.ts +2 -1
- package/types/acorex-platform-module-task-management-client-contracts.d.ts +442 -46
- package/types/acorex-platform-module-task-management-client.d.ts +311 -742
- package/fesm2022/acorex-platform-module-task-management-client-acorex-platform-module-task-management-client-INIEvacu.mjs +0 -4457
- package/fesm2022/acorex-platform-module-task-management-client-acorex-platform-module-task-management-client-INIEvacu.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-acorex-platform-module-task-management-client-contracts-entity-catalog-DoR58GWa.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-type.entity-BGKWiqU8.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task.entity-CiKg52ey.mjs +0 -1273
- package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task.entity-CiKg52ey.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-task-management-client-list-task-board-assignees.query-CENurmLO.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-task-management-client-list-task-board-reporters.query-C3NAYa9b.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-task-management-client-list-task-types.query-DQ2MnsAK.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-task-management-client-start-task-flow.command-CR1JXr5r.mjs +0 -114
- package/fesm2022/acorex-platform-module-task-management-client-start-task-flow.command-CR1JXr5r.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-task-management-client-task-board.page-xzDabJXk.mjs +0 -2744
- package/fesm2022/acorex-platform-module-task-management-client-task-board.page-xzDabJXk.mjs.map +0 -1
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, ChangeDetectionStrategy, Component, signal } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { AsyncPipe } from '@angular/common';
|
|
6
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
|
7
|
+
import * as i2$1 from '@acorex/components/button';
|
|
8
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
9
|
+
import * as i3$1 from '@acorex/components/decorators';
|
|
10
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
11
|
+
import * as i3 from '@acorex/components/text-area';
|
|
12
|
+
import { AXTextAreaModule } from '@acorex/components/text-area';
|
|
13
|
+
import * as i2$2 from '@acorex/core/translation';
|
|
14
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
15
|
+
import * as i2 from '@acorex/components/text-box';
|
|
16
|
+
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
17
|
+
import * as i4 from '@acorex/components/number-box';
|
|
18
|
+
import { AXNumberBoxModule } from '@acorex/components/number-box';
|
|
19
|
+
import * as i5 from '@acorex/components/check-box';
|
|
20
|
+
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
|
21
|
+
import * as i6 from '@acorex/components/label';
|
|
22
|
+
import { AXLabelModule } from '@acorex/components/label';
|
|
23
|
+
import { j as taskCompletionResult, d as taskActionErrorKey } from './acorex-platform-module-task-management-client-acorex-platform-module-task-management-client-dfiarGtJ.mjs';
|
|
24
|
+
|
|
25
|
+
/** ACoreX inputs for the server's bounded primitive schema projection. */
|
|
26
|
+
class AXMTaskSchemaFieldsComponent {
|
|
27
|
+
constructor() {
|
|
28
|
+
this.fields = input([], /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "fields" }] : /* istanbul ignore next */ []));
|
|
30
|
+
this.values = input.required(/* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
|
|
32
|
+
this.disabled = input(false, /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTaskSchemaFieldsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMTaskSchemaFieldsComponent, isStandalone: true, selector: "axm-task-schema-fields", inputs: { fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `<div class="flex flex-col gap-4">
|
|
37
|
+
@for (field of fields(); track field.name) {
|
|
38
|
+
@if (field.type === 'boolean') {
|
|
39
|
+
<ax-check-box [(ngModel)]="values()[field.name]" [disabled]="disabled()">
|
|
40
|
+
<ax-label>{{ field.title }}{{ field.required ? ' *' : '' }}</ax-label>
|
|
41
|
+
</ax-check-box>
|
|
42
|
+
} @else {
|
|
43
|
+
<label class="flex flex-col gap-2">{{ field.title }}{{ field.required ? ' *' : '' }}
|
|
44
|
+
@if (field.choices) {
|
|
45
|
+
<select class="border rounded p-2" [attr.aria-label]="field.title" [(ngModel)]="values()[field.name]" [disabled]="disabled()">
|
|
46
|
+
<option [ngValue]="undefined">—</option>
|
|
47
|
+
@for (choice of field.choices; track choice) { <option [ngValue]="choice">{{ choice }}</option> }
|
|
48
|
+
</select>
|
|
49
|
+
} @else if (field.type === 'number' || field.type === 'integer') {
|
|
50
|
+
<ax-number-box [(ngModel)]="values()[field.name]" [disabled]="disabled()"></ax-number-box>
|
|
51
|
+
} @else if ((field.maxLength ?? 0) > 500) {
|
|
52
|
+
<ax-text-area [(ngModel)]="values()[field.name]" [maxLength]="field.maxLength!" [rows]="3" [disabled]="disabled()"></ax-text-area>
|
|
53
|
+
} @else {
|
|
54
|
+
<ax-text-box [(ngModel)]="values()[field.name]" [maxLength]="field.maxLength ?? 4000" [disabled]="disabled()"></ax-text-box>
|
|
55
|
+
}
|
|
56
|
+
</label>
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { kind: "ngmodule", type: AXTextAreaModule }, { kind: "component", type: i3.AXTextAreaComponent, selector: "ax-text-area", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "placeholder", "maxLength", "look", "rows", "allowResize", "showCounter", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXNumberBoxModule }, { kind: "component", type: i4.AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "minValue", "maxValue", "showSpinButtons", "thousandsSeparator", "decimals", "changeOnScroll", "step"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "thousandsSeparatorChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i5.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i6.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTaskSchemaFieldsComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ selector: 'axm-task-schema-fields', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
64
|
+
imports: [FormsModule, AXTextBoxModule, AXTextAreaModule, AXNumberBoxModule, AXCheckBoxModule, AXLabelModule],
|
|
65
|
+
template: `<div class="flex flex-col gap-4">
|
|
66
|
+
@for (field of fields(); track field.name) {
|
|
67
|
+
@if (field.type === 'boolean') {
|
|
68
|
+
<ax-check-box [(ngModel)]="values()[field.name]" [disabled]="disabled()">
|
|
69
|
+
<ax-label>{{ field.title }}{{ field.required ? ' *' : '' }}</ax-label>
|
|
70
|
+
</ax-check-box>
|
|
71
|
+
} @else {
|
|
72
|
+
<label class="flex flex-col gap-2">{{ field.title }}{{ field.required ? ' *' : '' }}
|
|
73
|
+
@if (field.choices) {
|
|
74
|
+
<select class="border rounded p-2" [attr.aria-label]="field.title" [(ngModel)]="values()[field.name]" [disabled]="disabled()">
|
|
75
|
+
<option [ngValue]="undefined">—</option>
|
|
76
|
+
@for (choice of field.choices; track choice) { <option [ngValue]="choice">{{ choice }}</option> }
|
|
77
|
+
</select>
|
|
78
|
+
} @else if (field.type === 'number' || field.type === 'integer') {
|
|
79
|
+
<ax-number-box [(ngModel)]="values()[field.name]" [disabled]="disabled()"></ax-number-box>
|
|
80
|
+
} @else if ((field.maxLength ?? 0) > 500) {
|
|
81
|
+
<ax-text-area [(ngModel)]="values()[field.name]" [maxLength]="field.maxLength!" [rows]="3" [disabled]="disabled()"></ax-text-area>
|
|
82
|
+
} @else {
|
|
83
|
+
<ax-text-box [(ngModel)]="values()[field.name]" [maxLength]="field.maxLength ?? 4000" [disabled]="disabled()"></ax-text-box>
|
|
84
|
+
}
|
|
85
|
+
</label>
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
</div>`,
|
|
89
|
+
}]
|
|
90
|
+
}], propDecorators: { fields: [{ type: i0.Input, args: [{ isSignal: true, alias: "fields", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
91
|
+
|
|
92
|
+
class AXMTaskLifecyclePopupComponent extends AXBasePageComponent {
|
|
93
|
+
constructor() {
|
|
94
|
+
super(...arguments);
|
|
95
|
+
this.taskTitle = '';
|
|
96
|
+
this.reason = '';
|
|
97
|
+
this.values = Object.create(null);
|
|
98
|
+
this.busy = signal(false, /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []));
|
|
100
|
+
this.errorKey = signal('', /* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [{ debugName: "errorKey" }] : /* istanbul ignore next */ []));
|
|
102
|
+
}
|
|
103
|
+
ngOnInit() {
|
|
104
|
+
for (const field of this.action.resultFields ?? [])
|
|
105
|
+
if (field.type === 'boolean' && field.required)
|
|
106
|
+
this.values[field.name] = false;
|
|
107
|
+
}
|
|
108
|
+
async save() {
|
|
109
|
+
if (this.busy())
|
|
110
|
+
return;
|
|
111
|
+
this.busy.set(true);
|
|
112
|
+
this.errorKey.set('');
|
|
113
|
+
try {
|
|
114
|
+
if (this.action.action === 'cancel' && (!this.reason.trim() || this.reason.trim().length > 2000))
|
|
115
|
+
throw { code: 'validation_failed' };
|
|
116
|
+
const payload = this.action.action === 'cancel' ? { reason: this.reason.trim() } : this.action.action === 'complete' ? { result: taskCompletionResult(this.action.resultFields ?? [], this.values) } : {};
|
|
117
|
+
const result = await this.submit(payload);
|
|
118
|
+
this.close({ saved: true, result });
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
this.errorKey.set(taskActionErrorKey(error));
|
|
122
|
+
}
|
|
123
|
+
finally {
|
|
124
|
+
this.busy.set(false);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTaskLifecyclePopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
128
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMTaskLifecyclePopupComponent, isStandalone: true, selector: "axm-task-lifecycle-popup", usesInheritance: true, ngImport: i0, template: `
|
|
129
|
+
<div class="p-4 flex flex-col gap-4" [attr.aria-busy]="busy()">
|
|
130
|
+
<p>{{ taskTitle }}</p>
|
|
131
|
+
<p>{{ '@task-management:task-board.action-confirm' | translate | async }}</p>
|
|
132
|
+
@if (action.action === 'cancel') {
|
|
133
|
+
<label class="flex flex-col gap-2">{{ '@task-management:task-board.cancellation-reason' | translate | async }} *
|
|
134
|
+
<ax-text-area [(ngModel)]="reason" [maxLength]="2000" [disabled]="busy()" [rows]="3"></ax-text-area>
|
|
135
|
+
</label>
|
|
136
|
+
}
|
|
137
|
+
<axm-task-schema-fields [fields]="action.resultFields ?? []" [values]="values" [disabled]="busy()"></axm-task-schema-fields>
|
|
138
|
+
@if (errorKey()) { <p role="alert">{{ errorKey() | translate | async }}</p> }
|
|
139
|
+
</div>
|
|
140
|
+
<ax-footer><ax-suffix>
|
|
141
|
+
<ax-button look="outline" [disabled]="busy()" [text]="('@general:actions.close.title' | translate | async)!" (onClick)="close()"></ax-button>
|
|
142
|
+
<ax-button look="solid" [color]="action.action === 'cancel' ? 'danger' : 'primary'" [disabled]="busy()"
|
|
143
|
+
[text]="(('@task-management:task-board.actions.' + action.action) | translate | async)!" (onClick)="save()"></ax-button>
|
|
144
|
+
</ax-suffix></ax-footer>
|
|
145
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTextAreaModule }, { kind: "component", type: i3.AXTextAreaComponent, selector: "ax-text-area", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "placeholder", "maxLength", "look", "rows", "allowResize", "showCounter", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "component", type: AXMTaskSchemaFieldsComponent, selector: "axm-task-schema-fields", inputs: ["fields", "values", "disabled"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i2$2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
146
|
+
}
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTaskLifecyclePopupComponent, decorators: [{
|
|
148
|
+
type: Component,
|
|
149
|
+
args: [{
|
|
150
|
+
selector: 'axm-task-lifecycle-popup',
|
|
151
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
152
|
+
imports: [FormsModule, AsyncPipe, AXButtonModule, AXDecoratorModule, AXTextAreaModule, AXMTaskSchemaFieldsComponent, AXTranslationModule],
|
|
153
|
+
template: `
|
|
154
|
+
<div class="p-4 flex flex-col gap-4" [attr.aria-busy]="busy()">
|
|
155
|
+
<p>{{ taskTitle }}</p>
|
|
156
|
+
<p>{{ '@task-management:task-board.action-confirm' | translate | async }}</p>
|
|
157
|
+
@if (action.action === 'cancel') {
|
|
158
|
+
<label class="flex flex-col gap-2">{{ '@task-management:task-board.cancellation-reason' | translate | async }} *
|
|
159
|
+
<ax-text-area [(ngModel)]="reason" [maxLength]="2000" [disabled]="busy()" [rows]="3"></ax-text-area>
|
|
160
|
+
</label>
|
|
161
|
+
}
|
|
162
|
+
<axm-task-schema-fields [fields]="action.resultFields ?? []" [values]="values" [disabled]="busy()"></axm-task-schema-fields>
|
|
163
|
+
@if (errorKey()) { <p role="alert">{{ errorKey() | translate | async }}</p> }
|
|
164
|
+
</div>
|
|
165
|
+
<ax-footer><ax-suffix>
|
|
166
|
+
<ax-button look="outline" [disabled]="busy()" [text]="('@general:actions.close.title' | translate | async)!" (onClick)="close()"></ax-button>
|
|
167
|
+
<ax-button look="solid" [color]="action.action === 'cancel' ? 'danger' : 'primary'" [disabled]="busy()"
|
|
168
|
+
[text]="(('@task-management:task-board.actions.' + action.action) | translate | async)!" (onClick)="save()"></ax-button>
|
|
169
|
+
</ax-suffix></ax-footer>
|
|
170
|
+
`,
|
|
171
|
+
}]
|
|
172
|
+
}] });
|
|
173
|
+
|
|
174
|
+
export { AXMTaskLifecyclePopupComponent };
|
|
175
|
+
//# sourceMappingURL=acorex-platform-module-task-management-client-task-lifecycle-popup.component-AxJHpj55.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-task-management-client-task-lifecycle-popup.component-AxJHpj55.mjs","sources":["../../../../libs/modules/task-management/client/src/lib/features/task-board/task-schema-fields.component.ts","../../../../libs/modules/task-management/client/src/lib/features/task-board/task-lifecycle-popup.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTextAreaModule } from '@acorex/components/text-area';\nimport { AXNumberBoxModule } from '@acorex/components/number-box';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXLabelModule } from '@acorex/components/label';\nimport type { AXPTaskResultField } from '@acorex-platform/module-task-management-client/contracts';\n\n/** ACoreX inputs for the server's bounded primitive schema projection. */\n@Component({ selector: 'axm-task-schema-fields', changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [FormsModule, AXTextBoxModule, AXTextAreaModule, AXNumberBoxModule, AXCheckBoxModule, AXLabelModule],\n template: `<div class=\"flex flex-col gap-4\">\n @for (field of fields(); track field.name) {\n @if (field.type === 'boolean') {\n <ax-check-box [(ngModel)]=\"values()[field.name]\" [disabled]=\"disabled()\">\n <ax-label>{{ field.title }}{{ field.required ? ' *' : '' }}</ax-label>\n </ax-check-box>\n } @else {\n <label class=\"flex flex-col gap-2\">{{ field.title }}{{ field.required ? ' *' : '' }}\n @if (field.choices) {\n <select class=\"border rounded p-2\" [attr.aria-label]=\"field.title\" [(ngModel)]=\"values()[field.name]\" [disabled]=\"disabled()\">\n <option [ngValue]=\"undefined\">—</option>\n @for (choice of field.choices; track choice) { <option [ngValue]=\"choice\">{{ choice }}</option> }\n </select>\n } @else if (field.type === 'number' || field.type === 'integer') {\n <ax-number-box [(ngModel)]=\"values()[field.name]\" [disabled]=\"disabled()\"></ax-number-box>\n } @else if ((field.maxLength ?? 0) > 500) {\n <ax-text-area [(ngModel)]=\"values()[field.name]\" [maxLength]=\"field.maxLength!\" [rows]=\"3\" [disabled]=\"disabled()\"></ax-text-area>\n } @else {\n <ax-text-box [(ngModel)]=\"values()[field.name]\" [maxLength]=\"field.maxLength ?? 4000\" [disabled]=\"disabled()\"></ax-text-box>\n }\n </label>\n }\n }\n </div>`,\n})\nexport class AXMTaskSchemaFieldsComponent {\n fields = input<AXPTaskResultField[]>([]);\n values = input.required<Record<string, unknown>>();\n disabled = input(false);\n}\n","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AsyncPipe } from '@angular/common';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTextAreaModule } from '@acorex/components/text-area';\nimport { AXNumberBoxModule } from '@acorex/components/number-box';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport type { AXPTaskAvailableAction, AXPTaskCommandResult } from '@acorex-platform/module-task-management-client/contracts';\nimport { AXMTaskSchemaFieldsComponent } from './task-schema-fields.component';\nimport { taskActionErrorKey, taskCompletionResult } from './task-lifecycle-ui.util';\n\n@Component({\n selector: 'axm-task-lifecycle-popup',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [FormsModule, AsyncPipe, AXButtonModule, AXDecoratorModule, AXTextAreaModule, AXMTaskSchemaFieldsComponent, AXTranslationModule],\n template: `\n <div class=\"p-4 flex flex-col gap-4\" [attr.aria-busy]=\"busy()\">\n <p>{{ taskTitle }}</p>\n <p>{{ '@task-management:task-board.action-confirm' | translate | async }}</p>\n @if (action.action === 'cancel') {\n <label class=\"flex flex-col gap-2\">{{ '@task-management:task-board.cancellation-reason' | translate | async }} *\n <ax-text-area [(ngModel)]=\"reason\" [maxLength]=\"2000\" [disabled]=\"busy()\" [rows]=\"3\"></ax-text-area>\n </label>\n }\n <axm-task-schema-fields [fields]=\"action.resultFields ?? []\" [values]=\"values\" [disabled]=\"busy()\"></axm-task-schema-fields>\n @if (errorKey()) { <p role=\"alert\">{{ errorKey() | translate | async }}</p> }\n </div>\n <ax-footer><ax-suffix>\n <ax-button look=\"outline\" [disabled]=\"busy()\" [text]=\"('@general:actions.close.title' | translate | async)!\" (onClick)=\"close()\"></ax-button>\n <ax-button look=\"solid\" [color]=\"action.action === 'cancel' ? 'danger' : 'primary'\" [disabled]=\"busy()\"\n [text]=\"(('@task-management:task-board.actions.' + action.action) | translate | async)!\" (onClick)=\"save()\"></ax-button>\n </ax-suffix></ax-footer>\n `,\n})\nexport class AXMTaskLifecyclePopupComponent extends AXBasePageComponent {\n taskTitle = '';\n action!: AXPTaskAvailableAction;\n submit!: (payload: { reason?: string; result?: Record<string, unknown> }) => Promise<AXPTaskCommandResult>;\n reason = '';\n values: Record<string, unknown> = Object.create(null);\n protected readonly busy = signal(false);\n protected readonly errorKey = signal('');\n override ngOnInit(): void {\n for (const field of this.action.resultFields ?? []) if (field.type === 'boolean' && field.required) this.values[field.name] = false;\n }\n protected async save(): Promise<void> {\n if (this.busy()) return;\n this.busy.set(true);\n this.errorKey.set('');\n try {\n if (this.action.action === 'cancel' && (!this.reason.trim() || this.reason.trim().length > 2000)) throw { code: 'validation_failed' };\n const payload = this.action.action === 'cancel' ? { reason: this.reason.trim() } : this.action.action === 'complete' ? { result: taskCompletionResult(this.action.resultFields ?? [], this.values) } : {};\n const result = await this.submit(payload);\n this.close({ saved: true, result });\n } catch (error) { this.errorKey.set(taskActionErrorKey(error)); }\n finally { this.busy.set(false); }\n }\n}\n"],"names":["i2","i3","i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AASA;MA4Ba,4BAA4B,CAAA;AA3BzC,IAAA,WAAA,GAAA;QA4BE,IAAA,CAAA,MAAM,GAAG,KAAK,CAAuB,EAAE;mF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AAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,aAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,SAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,4BAA4B,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAjH,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAoBrB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAvB1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;oBACpC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,mBAAmB,CAAC;AACzI,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;AAiBT,EAAA,CAAA;AACF,iBAAA;;;"}
|
package/fesm2022/acorex-platform-module-task-management-client-task-workspace.popup-Cz8Hrp3r.mjs
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import * as i2 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
|
4
|
+
import { AXCalendarService } from '@acorex/core/date-time';
|
|
5
|
+
import { AXLocaleService } from '@acorex/core/locale';
|
|
6
|
+
import * as i2$1 from '@acorex/core/translation';
|
|
7
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
8
|
+
import { AXPLayoutRendererComponent } from '@acorex-platform/framework-client/layout/builder';
|
|
9
|
+
import { AXPWorkBoardPreferencesService, AXPUserCardService, AXPUserAvatarComponent, AXPUserCardDirective, AXPWorkBoardBadgeComponent } from '@acorex-platform/framework-client/layout/components';
|
|
10
|
+
import { DOCUMENT, NgComponentOutlet, AsyncPipe } from '@angular/common';
|
|
11
|
+
import * as i0 from '@angular/core';
|
|
12
|
+
import { inject, viewChild, DestroyRef, Injector, signal, afterNextRender, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
13
|
+
import { A as AXP_TASK_WORKSPACE_CONTENT, a as AXPTaskWorkspaceBridge, t as taskWorkspaceDueState } from './acorex-platform-module-task-management-client-acorex-platform-module-task-management-client-dfiarGtJ.mjs';
|
|
14
|
+
|
|
15
|
+
function taskWorkspaceActionDisabled(action, contentState, pending) {
|
|
16
|
+
return action.name !== 'cancel' && (pending || (contentState !== null && contentState !== 'ready'));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#region ----- Imports -----
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region ----- Workspace popup -----
|
|
22
|
+
const STEPPED_WORKSPACE_MEDIA = '(max-width: 1024px), (max-width: 1440px) and (hover: none) and (pointer: coarse)';
|
|
23
|
+
class AXMTaskWorkspacePopupComponent extends AXBasePageComponent {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
//#region ----- Services & Dependencies -----
|
|
27
|
+
this.providers = inject(AXP_TASK_WORKSPACE_CONTENT, { optional: true }) ?? [];
|
|
28
|
+
this.bridge = inject(AXPTaskWorkspaceBridge);
|
|
29
|
+
this.calendar = inject(AXCalendarService);
|
|
30
|
+
this.locale = inject(AXLocaleService);
|
|
31
|
+
this.preferences = inject(AXPWorkBoardPreferencesService);
|
|
32
|
+
this.userCards = inject(AXPUserCardService);
|
|
33
|
+
this.layoutRenderer = viewChild(AXPLayoutRendererComponent, /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "layoutRenderer" }] : /* istanbul ignore next */ []));
|
|
35
|
+
this.document = inject(DOCUMENT);
|
|
36
|
+
this.destroyRef = inject(DestroyRef);
|
|
37
|
+
this.injector = inject(Injector);
|
|
38
|
+
this.closed = false;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region ----- Popup inputs -----
|
|
41
|
+
this.summary = null;
|
|
42
|
+
this.messageKey = null;
|
|
43
|
+
this.reportError = () => undefined;
|
|
44
|
+
this.content = null;
|
|
45
|
+
this.layout = null;
|
|
46
|
+
this.actions = [];
|
|
47
|
+
this.stepped = false;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region ----- State Signals -----
|
|
50
|
+
this.contentComponent = signal(null, /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "contentComponent" }] : /* istanbul ignore next */ []));
|
|
52
|
+
this.contentInputs = signal({}, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "contentInputs" }] : /* istanbul ignore next */ []));
|
|
54
|
+
this.contentError = this.bridge.errorKey;
|
|
55
|
+
this.actionError = signal(null, /* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [{ debugName: "actionError" }] : /* istanbul ignore next */ []));
|
|
57
|
+
this.actionPending = signal(false, /* @ts-ignore */
|
|
58
|
+
...(ngDevMode ? [{ debugName: "actionPending" }] : /* istanbul ignore next */ []));
|
|
59
|
+
this.contentState = this.bridge.state;
|
|
60
|
+
this.compact = signal(false, /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []));
|
|
62
|
+
this.activeStep = signal(0, /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "activeStep" }] : /* istanbul ignore next */ []));
|
|
64
|
+
this.stepLabels = [
|
|
65
|
+
'@task-management:workspace.steps.details',
|
|
66
|
+
'@task-management:workspace.steps.content',
|
|
67
|
+
'@task-management:workspace.steps.actions',
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region ----- Lifecycle -----
|
|
72
|
+
ngOnInit() {
|
|
73
|
+
this.bridge.bind((result) => this.complete(result), this.reportError);
|
|
74
|
+
if (this.stepped) {
|
|
75
|
+
const media = this.document.defaultView?.matchMedia(STEPPED_WORKSPACE_MEDIA);
|
|
76
|
+
if (media) {
|
|
77
|
+
this.compact.set(media.matches);
|
|
78
|
+
const onChange = (event) => this.compact.set(event.matches);
|
|
79
|
+
media.addEventListener('change', onChange);
|
|
80
|
+
this.destroyRef.onDestroy(() => media.removeEventListener('change', onChange));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
void this.loadContent();
|
|
84
|
+
}
|
|
85
|
+
formatWhen(value) {
|
|
86
|
+
if (!value) {
|
|
87
|
+
return '';
|
|
88
|
+
}
|
|
89
|
+
const date = new Date(value);
|
|
90
|
+
if (!Number.isFinite(date.getTime())) {
|
|
91
|
+
return '';
|
|
92
|
+
}
|
|
93
|
+
return this.calendar.format(date, 'DD/MM/YYYY HH:mm', {
|
|
94
|
+
locale: this.locale.activeProfile().calendar.system,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
dueState() {
|
|
98
|
+
return taskWorkspaceDueState(this.summary?.dueAt, this.summary?.status, Date.now(), this.preferences.preferences().warningDays);
|
|
99
|
+
}
|
|
100
|
+
dueColor() {
|
|
101
|
+
const state = this.dueState();
|
|
102
|
+
if (state === 'overdue') {
|
|
103
|
+
return 'light-dark(rgba(var(--ax-sys-color-danger-800)), rgba(var(--ax-sys-color-danger-300)))';
|
|
104
|
+
}
|
|
105
|
+
if (state === 'due-soon') {
|
|
106
|
+
return 'rgba(var(--ax-sys-color-warning-600))';
|
|
107
|
+
}
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
dueLabelKey() {
|
|
111
|
+
const state = this.dueState();
|
|
112
|
+
if (state === 'overdue') {
|
|
113
|
+
return '@general:work-board.feed.overdue';
|
|
114
|
+
}
|
|
115
|
+
if (state === 'due-soon') {
|
|
116
|
+
return '@general:work-board.feed.due-soon';
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
openUserCard(event, userId) {
|
|
121
|
+
event.preventDefault();
|
|
122
|
+
event.stopPropagation();
|
|
123
|
+
void this.userCards.show(event.currentTarget, userId);
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region ----- Event Handlers -----
|
|
127
|
+
cancel() {
|
|
128
|
+
this.complete({ cancelled: true, errorKey: this.contentError() ?? undefined });
|
|
129
|
+
}
|
|
130
|
+
showStep(step, panel) {
|
|
131
|
+
this.activeStep.set(step);
|
|
132
|
+
afterNextRender(() => panel.focus({ preventScroll: true }), { injector: this.injector });
|
|
133
|
+
}
|
|
134
|
+
actionDisabled(action) {
|
|
135
|
+
if (taskWorkspaceActionDisabled(action, this.content ? this.bridge.state() : null, this.actionPending()))
|
|
136
|
+
return true;
|
|
137
|
+
if (!this.compact() || action.name !== 'sign')
|
|
138
|
+
return false;
|
|
139
|
+
const signature = this.layoutValues()['signature'];
|
|
140
|
+
return typeof signature !== 'string' || !signature.trim().startsWith('data:image/');
|
|
141
|
+
}
|
|
142
|
+
async runAction(action) {
|
|
143
|
+
if (action.name === 'cancel') {
|
|
144
|
+
this.cancel();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (this.closed || this.actionDisabled(action))
|
|
148
|
+
return;
|
|
149
|
+
this.actionPending.set(true);
|
|
150
|
+
this.actionError.set(null);
|
|
151
|
+
try {
|
|
152
|
+
if (action.validate && !(await this.layoutRenderer()?.validate())?.result) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (this.closed || (this.content && this.bridge.state() !== 'ready'))
|
|
156
|
+
return;
|
|
157
|
+
const values = this.layoutValues();
|
|
158
|
+
if (action.requirePaths?.some(path => typeof values[path] !== 'string' || !values[path].trim())) {
|
|
159
|
+
this.actionError.set(action.requiredMessageKey ?? '@general:messages.generic.error.description');
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
this.complete({ cancelled: false, action: action.name, values, content: this.bridge.data() });
|
|
163
|
+
}
|
|
164
|
+
catch {
|
|
165
|
+
this.actionError.set('@general:messages.generic.error.description');
|
|
166
|
+
}
|
|
167
|
+
finally {
|
|
168
|
+
this.actionPending.set(false);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region ----- Content -----
|
|
173
|
+
async loadContent() {
|
|
174
|
+
const ref = this.content;
|
|
175
|
+
if (!ref)
|
|
176
|
+
return;
|
|
177
|
+
const provider = this.providers.find((item) => item.name === ref.provider);
|
|
178
|
+
if (!provider) {
|
|
179
|
+
this.bridge.fail('@task-management:workspace.provider-missing');
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
try {
|
|
183
|
+
const component = await provider.load();
|
|
184
|
+
this.contentInputs.set(ref.inputs ?? {});
|
|
185
|
+
this.contentComponent.set(component);
|
|
186
|
+
}
|
|
187
|
+
catch {
|
|
188
|
+
this.bridge.fail('@task-management:workspace.provider-missing');
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
layoutValues() {
|
|
192
|
+
const context = this.layoutRenderer()?.getContext();
|
|
193
|
+
return context && typeof context === 'object' ? context : {};
|
|
194
|
+
}
|
|
195
|
+
complete(result) {
|
|
196
|
+
if (this.closed) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
this.closed = true;
|
|
200
|
+
this.close(result);
|
|
201
|
+
}
|
|
202
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTaskWorkspacePopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
203
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMTaskWorkspacePopupComponent, isStandalone: true, selector: "axm-task-workspace", providers: [AXPTaskWorkspaceBridge], viewQueries: [{ propertyName: "layoutRenderer", first: true, predicate: AXPLayoutRendererComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"axm-task-workspace flex h-full min-h-0 w-full flex-col\"\n [class.axm-task-workspace--compact]=\"compact()\" [attr.data-workspace-step]=\"activeStep()\">\n @if (compact()) {\n <ol class=\"axm-task-steps\" role=\"list\" [attr.aria-label]=\"'@task-management:workspace.steps.label' | translate | async\">\n @for (key of stepLabels; track key; let index = $index) {\n <li [attr.aria-current]=\"activeStep() === index ? 'step' : null\" [class.axm-task-step-visited]=\"index < activeStep()\">\n <span class=\"axm-task-step-number\" aria-hidden=\"true\">{{ index < activeStep() ? '\u2713' : index + 1 }}</span>\n <span class=\"axm-task-step-label\">{{ key | translate | async }}</span>\n </li>\n }\n </ol>\n }\n <div class=\"axm-task-panels flex min-h-0 flex-1 rtl:flex-row-reverse\">\n <!-- ----- Task facts and the action form stay beside the content ----- -->\n <aside class=\"axm-task-sidebar flex h-full min-h-0 w-80 shrink-0 flex-col border-r border-surface\"\n [attr.inert]=\"compact() && activeStep() === 1 ? '' : null\">\n <div class=\"axm-task-sidebar-scroll flex min-h-0 flex-1 flex-col gap-4 overflow-auto p-4\">\n <section #taskDetails class=\"axm-task-details flex flex-col gap-4\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 0 ? '' : null\">\n @if (compact()) {\n <h2 class=\"text-lg font-semibold\">{{ stepLabels[0] | translate | async }}</h2>\n }\n @if (messageKey; as key) {\n <p>{{ key | translate | async }}</p>\n }\n @if (summary; as task) {\n <!-- ----- Status, people and dates use the task board presentation ----- -->\n <dl class=\"axm-task-facts\">\n @if (compact() && task.code) {\n <div>\n <dt>{{ '@general:terms.common.code' | translate | async }}</dt>\n <dd dir=\"ltr\">{{ task.code }}</dd>\n </div>\n }\n @if (task.status) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.status' | translate | async }}</dt>\n <dd>\n <axm-task-board-badge kind=\"status\" [value]=\"task.status\" [label]=\"(task.statusKey | translate | async) || undefined\" />\n </dd>\n </div>\n }\n @if (task.assignee) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.assignee' | translate | async }}</dt>\n <dd>\n @if (task.assigneeId; as userId) {\n <!-- ----- Assignee opens the same user card as the board ----- -->\n <button type=\"button\" class=\"axm-task-person\" [axpUserCard]=\"userId\" (keydown.enter)=\"openUserCard($event, userId)\" (keydown.space)=\"openUserCard($event, userId)\">\n <axp-user-avatar [userId]=\"userId\" [displayName]=\"task.assignee\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.assignee }}</span>\n </button>\n }\n <!-- ----- Initials stay visible when the person has no id ----- -->\n @else {\n <span class=\"axm-task-person\">\n <axp-user-avatar [displayName]=\"task.assignee\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.assignee }}</span>\n </span>\n }\n </dd>\n </div>\n }\n @if (task.reporter) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.reporter' | translate | async }}</dt>\n <dd>\n @if (task.reporterId; as userId) {\n <!-- ----- Reporter opens the same user card as the board ----- -->\n <button type=\"button\" class=\"axm-task-person\" [axpUserCard]=\"userId\" (keydown.enter)=\"openUserCard($event, userId)\" (keydown.space)=\"openUserCard($event, userId)\">\n <axp-user-avatar [userId]=\"userId\" [displayName]=\"task.reporter\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.reporter }}</span>\n </button>\n }\n <!-- ----- Initials stay visible when the person has no id ----- -->\n @else {\n <span class=\"axm-task-person\">\n <axp-user-avatar [displayName]=\"task.reporter\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.reporter }}</span>\n </span>\n }\n </dd>\n </div>\n }\n @if (task.createdAt) {\n <div>\n <dt>{{ '@task-management:workspace.created' | translate | async }}</dt>\n <dd class=\"axm-task-due\">\n <i class=\"fa-light fa-calendar\" aria-hidden=\"true\"></i>\n <span>{{ formatWhen(task.createdAt) }}</span>\n </dd>\n </div>\n }\n @if (task.dueAt) {\n <div>\n <dt>{{ '@task-management:task-board.grid-headers.due-date' | translate | async }}</dt>\n <dd class=\"axm-task-due\" [class.task-due--alert]=\"!!dueState()\" [style.--task-due-text]=\"dueColor()\" [attr.data-due-status]=\"dueState()\">\n <i class=\"fa-light fa-calendar\" aria-hidden=\"true\"></i>\n <span>\n {{ formatWhen(task.dueAt) }}\n @if (dueLabelKey(); as key) {\n <!-- ----- Overdue or due-soon uses the board label ----- -->\n <small class=\"task-due__label\">{{ key | translate | async }}</small>\n }\n </span>\n </dd>\n </div>\n }\n @if (task.priority) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.priority' | translate | async }}</dt>\n <dd>\n <axm-task-board-badge kind=\"priority\" [value]=\"task.priority\" />\n </dd>\n </div>\n }\n </dl>\n }\n </section>\n\n <section #taskActions class=\"axm-task-action-fields flex flex-col gap-4\" [hidden]=\"!layout && !actionError()\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 2 ? '' : null\">\n @if (compact()) {\n <h2 class=\"text-lg font-semibold\">{{ stepLabels[2] | translate | async }}</h2>\n }\n @if (layout) {\n <axp-layout-renderer [layout]=\"layout\" mode=\"edit\"></axp-layout-renderer>\n }\n @if (actionError(); as key) {\n <span class=\"axm-task-error\" role=\"alert\">{{ key | translate | async }}</span>\n }\n </section>\n </div>\n\n <!-- ----- Step actions stay pinned. Content that owns Submit leaves this footer empty. ----- -->\n @if (actions.length) {\n <div class=\"axm-task-actions flex shrink-0 justify-end gap-2 border-t border-surface p-4\"\n [attr.inert]=\"compact() && activeStep() !== 2 ? '' : null\">\n @if (compact()) {\n <ax-button class=\"axm-task-step-back\" look=\"outline\" color=\"default\"\n [text]=\"'@general:actions.back.title' | translate | async\"\n (onClick)=\"showStep(1, taskContent)\" />\n }\n @for (action of actions; track action.name) {\n <ax-button\n [look]=\"action.look || 'solid'\"\n [color]=\"action.color || 'primary'\"\n [text]=\"(action.title | translate | async) ?? ''\"\n [disabled]=\"actionDisabled(action)\"\n (onClick)=\"runAction(action)\"\n ></ax-button>\n }\n </div>\n }\n </aside>\n\n <!-- ----- Questionnaire, form, or another registered subject ----- -->\n <div #taskContent class=\"axm-task-content flex min-w-0 flex-1 flex-col overflow-hidden\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 1 ? '' : null\"\n [attr.role]=\"compact() ? 'region' : null\"\n [attr.aria-label]=\"compact() ? (stepLabels[1] | translate | async) : null\">\n @if (contentError(); as key) {\n <p class=\"p-4 text-sm\" role=\"alert\">{{ key | translate | async }}</p>\n }\n @if (contentComponent(); as component) {\n <div class=\"axm-task-content-host\">\n <ng-container *ngComponentOutlet=\"component; inputs: contentInputs()\"></ng-container>\n </div>\n }\n </div>\n </div>\n @if (compact()) {\n <div class=\"axm-task-navigation flex shrink-0 justify-end gap-2 border-t border-surface p-4\"\n [attr.inert]=\"activeStep() === 2 ? '' : null\">\n @if (activeStep() === 0) {\n <ax-button look=\"solid\" color=\"primary\"\n [text]=\"'@task-management:workspace.steps.view-document' | translate | async\"\n (onClick)=\"showStep(1, taskContent)\" />\n } @else {\n <ax-button class=\"axm-task-step-back\" look=\"outline\" color=\"default\"\n [text]=\"'@general:actions.back.title' | translate | async\"\n (onClick)=\"showStep(0, taskDetails)\" />\n <ax-button look=\"solid\" color=\"primary\" [disabled]=\"contentState() !== 'ready'\"\n [text]=\"'@task-management:workspace.steps.continue-to-sign-off' | translate | async\"\n (onClick)=\"showStep(2, taskActions)\" />\n }\n </div>\n }\n</div>\n", styles: ["axm-task-workspace{display:block;height:100%;min-height:0}axm-task-workspace .axm-task-facts{display:flex;flex-direction:column;gap:12px;margin:0}axm-task-workspace .axm-task-facts dt{font-size:.75rem;line-height:1.4;color:rgba(var(--ax-sys-color-on-lightest-surface),.5)}axm-task-workspace .axm-task-facts dd{margin:2px 0 0}axm-task-workspace .axm-task-person{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:start}axm-task-workspace button.axm-task-person{cursor:pointer}axm-task-workspace .axm-task-due{display:inline-flex;align-items:flex-start;gap:6px}axm-task-workspace .task-due--alert{color:var(--task-due-text)}axm-task-workspace .task-due__label{display:block;margin-block-start:2px;font-size:.6875rem;line-height:1.5;font-weight:400}axm-task-workspace .axm-task-error{color:light-dark(rgba(var(--ax-sys-color-danger-700)),rgba(var(--ax-sys-color-danger-300)));font-size:.75rem}axm-task-workspace .axm-task-content{min-height:0}axm-task-workspace .axm-task-content-host{display:flex;flex-direction:column;flex:1;min-height:0}axm-task-workspace .axm-task-details:empty{display:none}.axm-task-workspace-overlay.ax-overlay-centered>.ax-overlay-content{width:100%!important;height:100%}axm-task-workspace .axm-task-workspace--compact{display:grid;grid-template:auto minmax(0,1fr) auto / minmax(0,1fr)}axm-task-workspace .axm-task-workspace--compact .axm-task-steps{grid-area:1 / 1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex-shrink:0;gap:8px;list-style:none;margin:0;padding:12px 16px;border-block-end:1px solid rgba(var(--ax-sys-color-border-default))}axm-task-workspace .axm-task-workspace--compact .axm-task-steps li{--task-step-background: rgba(var(--ax-sys-color-border-default));--task-step-text: rgba(var(--ax-sys-color-on-lighter-surface));display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;text-align:center;font-size:.875rem}axm-task-workspace .axm-task-workspace--compact .axm-task-step-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:var(--task-step-background);color:var(--task-step-text);font-weight:600}axm-task-workspace .axm-task-workspace--compact .axm-task-steps .axm-task-step-visited{--task-step-background: rgba(var(--ax-sys-color-primary-surface));--task-step-text: rgba(var(--ax-sys-color-on-primary-surface))}axm-task-workspace .axm-task-workspace--compact .axm-task-steps [aria-current=step]{--task-step-background: rgba(var(--ax-sys-color-primary-lighter-surface));--task-step-text: rgba(var(--ax-sys-color-on-primary-lighter-surface));font-weight:700}axm-task-workspace .axm-task-workspace--compact .axm-task-panels,axm-task-workspace .axm-task-workspace--compact .axm-task-sidebar{display:contents}axm-task-workspace .axm-task-workspace--compact .axm-task-sidebar-scroll{grid-area:2 / 1;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);gap:0;padding:0;overflow:hidden}axm-task-workspace .axm-task-workspace--compact .axm-task-content{grid-area:2 / 1}axm-task-workspace .axm-task-workspace--compact .axm-task-details,axm-task-workspace .axm-task-workspace--compact .axm-task-action-fields{grid-area:1 / 1;justify-self:center;width:min(100%,42rem);min-width:0;overflow-y:auto;padding:16px}axm-task-workspace .axm-task-workspace--compact .axm-task-action-fields axp-signature-pad-widget-edit :is(ax-paint-view,canvas.ax-canvas-element,ax-image){block-size:clamp(12rem,36dvh,24rem)}axm-task-workspace .axm-task-workspace--compact .axm-task-sidebar[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-content[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-details[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-action-fields[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-navigation[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-actions[inert]{visibility:hidden}axm-task-workspace .axm-task-workspace--compact .axm-task-facts>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-block-end:1px solid rgba(var(--ax-sys-color-border-default))}axm-task-workspace .axm-task-workspace--compact .axm-task-facts dd{text-align:end;overflow-wrap:anywhere}axm-task-workspace .axm-task-workspace--compact .axm-task-navigation,axm-task-workspace .axm-task-workspace--compact .axm-task-actions{grid-area:3 / 1;flex-wrap:wrap;padding:10px 16px}axm-task-workspace .axm-task-workspace--compact .axm-task-step-back{margin-inline-end:auto}axm-task-workspace .axm-task-workspace--compact .axm-task-content axp-table-widget-view>table:not(.axp-responsive-table):has(>colgroup>col:nth-child(4)){min-inline-size:36rem}@media(max-width:600px),(max-height:599px)and (hover:none)and (pointer:coarse){axm-task-workspace .axm-task-workspace--compact .axm-task-steps{padding-block:7px 8px;gap:5px}axm-task-workspace .axm-task-workspace--compact .axm-task-steps li{height:5px;border-radius:3px;background:var(--task-step-background)}axm-task-workspace .axm-task-workspace--compact .axm-task-step-number{display:none}axm-task-workspace .axm-task-workspace--compact .axm-task-step-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPLayoutRendererComponent, selector: "axp-layout-renderer", inputs: ["layout", "context", "look", "mode", "reveal"], outputs: ["contextChange", "contextInitiated", "validityChange", "revealed"] }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "directive", type: AXPUserCardDirective, selector: "[axpUserCard]", inputs: ["axpUserCard", "axpUserCardDisabled", "axpUserCardTrigger"] }, { kind: "component", type: AXPWorkBoardBadgeComponent, selector: "axm-task-board-badge", inputs: ["kind", "value", "color", "icon", "label"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
204
|
+
}
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTaskWorkspacePopupComponent, decorators: [{
|
|
206
|
+
type: Component,
|
|
207
|
+
args: [{ selector: 'axm-task-workspace', changeDetection: ChangeDetectionStrategy.OnPush, providers: [AXPTaskWorkspaceBridge], encapsulation: ViewEncapsulation.None, imports: [
|
|
208
|
+
AsyncPipe,
|
|
209
|
+
NgComponentOutlet,
|
|
210
|
+
AXButtonModule,
|
|
211
|
+
AXTranslationModule,
|
|
212
|
+
AXPLayoutRendererComponent,
|
|
213
|
+
AXPUserAvatarComponent,
|
|
214
|
+
AXPUserCardDirective,
|
|
215
|
+
AXPWorkBoardBadgeComponent,
|
|
216
|
+
], template: "<div class=\"axm-task-workspace flex h-full min-h-0 w-full flex-col\"\n [class.axm-task-workspace--compact]=\"compact()\" [attr.data-workspace-step]=\"activeStep()\">\n @if (compact()) {\n <ol class=\"axm-task-steps\" role=\"list\" [attr.aria-label]=\"'@task-management:workspace.steps.label' | translate | async\">\n @for (key of stepLabels; track key; let index = $index) {\n <li [attr.aria-current]=\"activeStep() === index ? 'step' : null\" [class.axm-task-step-visited]=\"index < activeStep()\">\n <span class=\"axm-task-step-number\" aria-hidden=\"true\">{{ index < activeStep() ? '\u2713' : index + 1 }}</span>\n <span class=\"axm-task-step-label\">{{ key | translate | async }}</span>\n </li>\n }\n </ol>\n }\n <div class=\"axm-task-panels flex min-h-0 flex-1 rtl:flex-row-reverse\">\n <!-- ----- Task facts and the action form stay beside the content ----- -->\n <aside class=\"axm-task-sidebar flex h-full min-h-0 w-80 shrink-0 flex-col border-r border-surface\"\n [attr.inert]=\"compact() && activeStep() === 1 ? '' : null\">\n <div class=\"axm-task-sidebar-scroll flex min-h-0 flex-1 flex-col gap-4 overflow-auto p-4\">\n <section #taskDetails class=\"axm-task-details flex flex-col gap-4\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 0 ? '' : null\">\n @if (compact()) {\n <h2 class=\"text-lg font-semibold\">{{ stepLabels[0] | translate | async }}</h2>\n }\n @if (messageKey; as key) {\n <p>{{ key | translate | async }}</p>\n }\n @if (summary; as task) {\n <!-- ----- Status, people and dates use the task board presentation ----- -->\n <dl class=\"axm-task-facts\">\n @if (compact() && task.code) {\n <div>\n <dt>{{ '@general:terms.common.code' | translate | async }}</dt>\n <dd dir=\"ltr\">{{ task.code }}</dd>\n </div>\n }\n @if (task.status) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.status' | translate | async }}</dt>\n <dd>\n <axm-task-board-badge kind=\"status\" [value]=\"task.status\" [label]=\"(task.statusKey | translate | async) || undefined\" />\n </dd>\n </div>\n }\n @if (task.assignee) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.assignee' | translate | async }}</dt>\n <dd>\n @if (task.assigneeId; as userId) {\n <!-- ----- Assignee opens the same user card as the board ----- -->\n <button type=\"button\" class=\"axm-task-person\" [axpUserCard]=\"userId\" (keydown.enter)=\"openUserCard($event, userId)\" (keydown.space)=\"openUserCard($event, userId)\">\n <axp-user-avatar [userId]=\"userId\" [displayName]=\"task.assignee\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.assignee }}</span>\n </button>\n }\n <!-- ----- Initials stay visible when the person has no id ----- -->\n @else {\n <span class=\"axm-task-person\">\n <axp-user-avatar [displayName]=\"task.assignee\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.assignee }}</span>\n </span>\n }\n </dd>\n </div>\n }\n @if (task.reporter) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.reporter' | translate | async }}</dt>\n <dd>\n @if (task.reporterId; as userId) {\n <!-- ----- Reporter opens the same user card as the board ----- -->\n <button type=\"button\" class=\"axm-task-person\" [axpUserCard]=\"userId\" (keydown.enter)=\"openUserCard($event, userId)\" (keydown.space)=\"openUserCard($event, userId)\">\n <axp-user-avatar [userId]=\"userId\" [displayName]=\"task.reporter\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.reporter }}</span>\n </button>\n }\n <!-- ----- Initials stay visible when the person has no id ----- -->\n @else {\n <span class=\"axm-task-person\">\n <axp-user-avatar [displayName]=\"task.reporter\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.reporter }}</span>\n </span>\n }\n </dd>\n </div>\n }\n @if (task.createdAt) {\n <div>\n <dt>{{ '@task-management:workspace.created' | translate | async }}</dt>\n <dd class=\"axm-task-due\">\n <i class=\"fa-light fa-calendar\" aria-hidden=\"true\"></i>\n <span>{{ formatWhen(task.createdAt) }}</span>\n </dd>\n </div>\n }\n @if (task.dueAt) {\n <div>\n <dt>{{ '@task-management:task-board.grid-headers.due-date' | translate | async }}</dt>\n <dd class=\"axm-task-due\" [class.task-due--alert]=\"!!dueState()\" [style.--task-due-text]=\"dueColor()\" [attr.data-due-status]=\"dueState()\">\n <i class=\"fa-light fa-calendar\" aria-hidden=\"true\"></i>\n <span>\n {{ formatWhen(task.dueAt) }}\n @if (dueLabelKey(); as key) {\n <!-- ----- Overdue or due-soon uses the board label ----- -->\n <small class=\"task-due__label\">{{ key | translate | async }}</small>\n }\n </span>\n </dd>\n </div>\n }\n @if (task.priority) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.priority' | translate | async }}</dt>\n <dd>\n <axm-task-board-badge kind=\"priority\" [value]=\"task.priority\" />\n </dd>\n </div>\n }\n </dl>\n }\n </section>\n\n <section #taskActions class=\"axm-task-action-fields flex flex-col gap-4\" [hidden]=\"!layout && !actionError()\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 2 ? '' : null\">\n @if (compact()) {\n <h2 class=\"text-lg font-semibold\">{{ stepLabels[2] | translate | async }}</h2>\n }\n @if (layout) {\n <axp-layout-renderer [layout]=\"layout\" mode=\"edit\"></axp-layout-renderer>\n }\n @if (actionError(); as key) {\n <span class=\"axm-task-error\" role=\"alert\">{{ key | translate | async }}</span>\n }\n </section>\n </div>\n\n <!-- ----- Step actions stay pinned. Content that owns Submit leaves this footer empty. ----- -->\n @if (actions.length) {\n <div class=\"axm-task-actions flex shrink-0 justify-end gap-2 border-t border-surface p-4\"\n [attr.inert]=\"compact() && activeStep() !== 2 ? '' : null\">\n @if (compact()) {\n <ax-button class=\"axm-task-step-back\" look=\"outline\" color=\"default\"\n [text]=\"'@general:actions.back.title' | translate | async\"\n (onClick)=\"showStep(1, taskContent)\" />\n }\n @for (action of actions; track action.name) {\n <ax-button\n [look]=\"action.look || 'solid'\"\n [color]=\"action.color || 'primary'\"\n [text]=\"(action.title | translate | async) ?? ''\"\n [disabled]=\"actionDisabled(action)\"\n (onClick)=\"runAction(action)\"\n ></ax-button>\n }\n </div>\n }\n </aside>\n\n <!-- ----- Questionnaire, form, or another registered subject ----- -->\n <div #taskContent class=\"axm-task-content flex min-w-0 flex-1 flex-col overflow-hidden\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 1 ? '' : null\"\n [attr.role]=\"compact() ? 'region' : null\"\n [attr.aria-label]=\"compact() ? (stepLabels[1] | translate | async) : null\">\n @if (contentError(); as key) {\n <p class=\"p-4 text-sm\" role=\"alert\">{{ key | translate | async }}</p>\n }\n @if (contentComponent(); as component) {\n <div class=\"axm-task-content-host\">\n <ng-container *ngComponentOutlet=\"component; inputs: contentInputs()\"></ng-container>\n </div>\n }\n </div>\n </div>\n @if (compact()) {\n <div class=\"axm-task-navigation flex shrink-0 justify-end gap-2 border-t border-surface p-4\"\n [attr.inert]=\"activeStep() === 2 ? '' : null\">\n @if (activeStep() === 0) {\n <ax-button look=\"solid\" color=\"primary\"\n [text]=\"'@task-management:workspace.steps.view-document' | translate | async\"\n (onClick)=\"showStep(1, taskContent)\" />\n } @else {\n <ax-button class=\"axm-task-step-back\" look=\"outline\" color=\"default\"\n [text]=\"'@general:actions.back.title' | translate | async\"\n (onClick)=\"showStep(0, taskDetails)\" />\n <ax-button look=\"solid\" color=\"primary\" [disabled]=\"contentState() !== 'ready'\"\n [text]=\"'@task-management:workspace.steps.continue-to-sign-off' | translate | async\"\n (onClick)=\"showStep(2, taskActions)\" />\n }\n </div>\n }\n</div>\n", styles: ["axm-task-workspace{display:block;height:100%;min-height:0}axm-task-workspace .axm-task-facts{display:flex;flex-direction:column;gap:12px;margin:0}axm-task-workspace .axm-task-facts dt{font-size:.75rem;line-height:1.4;color:rgba(var(--ax-sys-color-on-lightest-surface),.5)}axm-task-workspace .axm-task-facts dd{margin:2px 0 0}axm-task-workspace .axm-task-person{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:start}axm-task-workspace button.axm-task-person{cursor:pointer}axm-task-workspace .axm-task-due{display:inline-flex;align-items:flex-start;gap:6px}axm-task-workspace .task-due--alert{color:var(--task-due-text)}axm-task-workspace .task-due__label{display:block;margin-block-start:2px;font-size:.6875rem;line-height:1.5;font-weight:400}axm-task-workspace .axm-task-error{color:light-dark(rgba(var(--ax-sys-color-danger-700)),rgba(var(--ax-sys-color-danger-300)));font-size:.75rem}axm-task-workspace .axm-task-content{min-height:0}axm-task-workspace .axm-task-content-host{display:flex;flex-direction:column;flex:1;min-height:0}axm-task-workspace .axm-task-details:empty{display:none}.axm-task-workspace-overlay.ax-overlay-centered>.ax-overlay-content{width:100%!important;height:100%}axm-task-workspace .axm-task-workspace--compact{display:grid;grid-template:auto minmax(0,1fr) auto / minmax(0,1fr)}axm-task-workspace .axm-task-workspace--compact .axm-task-steps{grid-area:1 / 1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex-shrink:0;gap:8px;list-style:none;margin:0;padding:12px 16px;border-block-end:1px solid rgba(var(--ax-sys-color-border-default))}axm-task-workspace .axm-task-workspace--compact .axm-task-steps li{--task-step-background: rgba(var(--ax-sys-color-border-default));--task-step-text: rgba(var(--ax-sys-color-on-lighter-surface));display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;text-align:center;font-size:.875rem}axm-task-workspace .axm-task-workspace--compact .axm-task-step-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:var(--task-step-background);color:var(--task-step-text);font-weight:600}axm-task-workspace .axm-task-workspace--compact .axm-task-steps .axm-task-step-visited{--task-step-background: rgba(var(--ax-sys-color-primary-surface));--task-step-text: rgba(var(--ax-sys-color-on-primary-surface))}axm-task-workspace .axm-task-workspace--compact .axm-task-steps [aria-current=step]{--task-step-background: rgba(var(--ax-sys-color-primary-lighter-surface));--task-step-text: rgba(var(--ax-sys-color-on-primary-lighter-surface));font-weight:700}axm-task-workspace .axm-task-workspace--compact .axm-task-panels,axm-task-workspace .axm-task-workspace--compact .axm-task-sidebar{display:contents}axm-task-workspace .axm-task-workspace--compact .axm-task-sidebar-scroll{grid-area:2 / 1;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);gap:0;padding:0;overflow:hidden}axm-task-workspace .axm-task-workspace--compact .axm-task-content{grid-area:2 / 1}axm-task-workspace .axm-task-workspace--compact .axm-task-details,axm-task-workspace .axm-task-workspace--compact .axm-task-action-fields{grid-area:1 / 1;justify-self:center;width:min(100%,42rem);min-width:0;overflow-y:auto;padding:16px}axm-task-workspace .axm-task-workspace--compact .axm-task-action-fields axp-signature-pad-widget-edit :is(ax-paint-view,canvas.ax-canvas-element,ax-image){block-size:clamp(12rem,36dvh,24rem)}axm-task-workspace .axm-task-workspace--compact .axm-task-sidebar[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-content[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-details[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-action-fields[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-navigation[inert],axm-task-workspace .axm-task-workspace--compact .axm-task-actions[inert]{visibility:hidden}axm-task-workspace .axm-task-workspace--compact .axm-task-facts>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-block-end:1px solid rgba(var(--ax-sys-color-border-default))}axm-task-workspace .axm-task-workspace--compact .axm-task-facts dd{text-align:end;overflow-wrap:anywhere}axm-task-workspace .axm-task-workspace--compact .axm-task-navigation,axm-task-workspace .axm-task-workspace--compact .axm-task-actions{grid-area:3 / 1;flex-wrap:wrap;padding:10px 16px}axm-task-workspace .axm-task-workspace--compact .axm-task-step-back{margin-inline-end:auto}axm-task-workspace .axm-task-workspace--compact .axm-task-content axp-table-widget-view>table:not(.axp-responsive-table):has(>colgroup>col:nth-child(4)){min-inline-size:36rem}@media(max-width:600px),(max-height:599px)and (hover:none)and (pointer:coarse){axm-task-workspace .axm-task-workspace--compact .axm-task-steps{padding-block:7px 8px;gap:5px}axm-task-workspace .axm-task-workspace--compact .axm-task-steps li{height:5px;border-radius:3px;background:var(--task-step-background)}axm-task-workspace .axm-task-workspace--compact .axm-task-step-number{display:none}axm-task-workspace .axm-task-workspace--compact .axm-task-step-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}\n"] }]
|
|
217
|
+
}], propDecorators: { layoutRenderer: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXPLayoutRendererComponent), { isSignal: true }] }] } });
|
|
218
|
+
|
|
219
|
+
export { AXMTaskWorkspacePopupComponent };
|
|
220
|
+
//# sourceMappingURL=acorex-platform-module-task-management-client-task-workspace.popup-Cz8Hrp3r.mjs.map
|
package/fesm2022/acorex-platform-module-task-management-client-task-workspace.popup-Cz8Hrp3r.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-task-management-client-task-workspace.popup-Cz8Hrp3r.mjs","sources":["../../../../libs/modules/task-management/client/src/lib/features/task-workspace/task-workspace-action.util.ts","../../../../libs/modules/task-management/client/src/lib/features/task-workspace/task-workspace.popup.ts","../../../../libs/modules/task-management/client/src/lib/features/task-workspace/task-workspace.popup.html"],"sourcesContent":["import type { AXPTaskWorkspaceAction, AXPTaskWorkspaceContentState } from './task-workspace.types';\n\nexport function taskWorkspaceActionDisabled(\n action: Pick<AXPTaskWorkspaceAction, 'name'>,\n contentState: AXPTaskWorkspaceContentState | null,\n pending: boolean,\n): boolean {\n return action.name !== 'cancel' && (pending || (contentState !== null && contentState !== 'ready'));\n}\n","//#region ----- Imports -----\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXCalendarService } from '@acorex/core/date-time';\nimport { AXLocaleService } from '@acorex/core/locale';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPLayoutRendererComponent } from '@acorex-platform/framework-client/layout/builder';\nimport {\n AXPUserAvatarComponent,\n AXPUserCardDirective,\n AXPUserCardService,\n AXPWorkBoardBadgeComponent,\n AXPWorkBoardPreferencesService,\n} from '@acorex-platform/framework-client/layout/components';\nimport type { AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { AsyncPipe, DOCUMENT, NgComponentOutlet } from '@angular/common';\nimport { afterNextRender, ChangeDetectionStrategy, Component, DestroyRef, inject, Injector, signal, type Type, viewChild, ViewEncapsulation } from '@angular/core';\n\nimport { AXPTaskWorkspaceBridge } from './task-workspace.bridge';\nimport { taskWorkspaceActionDisabled } from './task-workspace-action.util';\nimport { taskWorkspaceDueState } from './task-workspace.summary';\nimport { AXP_TASK_WORKSPACE_CONTENT } from './task-workspace.token';\nimport type {\n AXPTaskWorkspaceAction,\n AXPTaskWorkspaceContentRef,\n AXPTaskWorkspaceResult,\n AXMTaskWorkspaceSummary,\n} from './task-workspace.types';\n\n//#endregion\n\n//#region ----- Workspace popup -----\n\nconst STEPPED_WORKSPACE_MEDIA = '(max-width: 1024px), (max-width: 1440px) and (hover: none) and (pointer: coarse)';\n\n@Component({\n selector: 'axm-task-workspace',\n templateUrl: './task-workspace.popup.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [AXPTaskWorkspaceBridge],\n styleUrl: './task-workspace.popup.css',\n encapsulation: ViewEncapsulation.None,\n imports: [\n AsyncPipe,\n NgComponentOutlet,\n AXButtonModule,\n AXTranslationModule,\n AXPLayoutRendererComponent,\n AXPUserAvatarComponent,\n AXPUserCardDirective,\n AXPWorkBoardBadgeComponent,\n ],\n})\nexport class AXMTaskWorkspacePopupComponent extends AXBasePageComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly providers = inject(AXP_TASK_WORKSPACE_CONTENT, { optional: true }) ?? [];\n private readonly bridge = inject(AXPTaskWorkspaceBridge);\n private readonly calendar = inject(AXCalendarService);\n private readonly locale = inject(AXLocaleService);\n private readonly preferences = inject(AXPWorkBoardPreferencesService);\n private readonly userCards = inject(AXPUserCardService);\n private readonly layoutRenderer = viewChild(AXPLayoutRendererComponent);\n private readonly document = inject(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n private closed = false;\n\n //#endregion\n\n //#region ----- Popup inputs -----\n\n summary: AXMTaskWorkspaceSummary | null = null;\n messageKey: string | null = null;\n reportError: (key: string | null) => void = () => undefined;\n content: AXPTaskWorkspaceContentRef | null = null;\n layout: AXPWidgetNode | null = null;\n actions: AXPTaskWorkspaceAction[] = [];\n stepped = false;\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly contentComponent = signal<Type<unknown> | null>(null);\n protected readonly contentInputs = signal<Record<string, unknown>>({});\n protected readonly contentError = this.bridge.errorKey;\n protected readonly actionError = signal<string | null>(null);\n protected readonly actionPending = signal(false);\n protected readonly contentState = this.bridge.state;\n protected readonly compact = signal(false);\n protected readonly activeStep = signal<0 | 1 | 2>(0);\n protected readonly stepLabels = [\n '@task-management:workspace.steps.details',\n '@task-management:workspace.steps.content',\n '@task-management:workspace.steps.actions',\n ];\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n override ngOnInit(): void {\n this.bridge.bind((result) => this.complete(result), this.reportError);\n if (this.stepped) {\n const media = this.document.defaultView?.matchMedia(STEPPED_WORKSPACE_MEDIA);\n if (media) {\n this.compact.set(media.matches);\n const onChange = (event: MediaQueryListEvent) => this.compact.set(event.matches);\n media.addEventListener('change', onChange);\n this.destroyRef.onDestroy(() => media.removeEventListener('change', onChange));\n }\n }\n void this.loadContent();\n }\n\n protected formatWhen(value: string | undefined): string {\n if (!value) {\n return '';\n }\n const date = new Date(value);\n if (!Number.isFinite(date.getTime())) {\n return '';\n }\n return this.calendar.format(date, 'DD/MM/YYYY HH:mm', {\n locale: this.locale.activeProfile().calendar.system,\n });\n }\n\n protected dueState(): 'overdue' | 'due-soon' | null {\n return taskWorkspaceDueState(\n this.summary?.dueAt,\n this.summary?.status,\n Date.now(),\n this.preferences.preferences().warningDays,\n );\n }\n\n protected dueColor(): string | null {\n const state = this.dueState();\n if (state === 'overdue') {\n return 'light-dark(rgba(var(--ax-sys-color-danger-800)), rgba(var(--ax-sys-color-danger-300)))';\n }\n if (state === 'due-soon') {\n return 'rgba(var(--ax-sys-color-warning-600))';\n }\n return null;\n }\n\n protected dueLabelKey(): string | null {\n const state = this.dueState();\n if (state === 'overdue') {\n return '@general:work-board.feed.overdue';\n }\n if (state === 'due-soon') {\n return '@general:work-board.feed.due-soon';\n }\n return null;\n }\n\n protected openUserCard(event: Event, userId: string): void {\n event.preventDefault();\n event.stopPropagation();\n void this.userCards.show(event.currentTarget as HTMLElement, userId);\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected cancel(): void {\n this.complete({ cancelled: true, errorKey: this.contentError() ?? undefined });\n }\n\n protected showStep(step: 0 | 1 | 2, panel: HTMLElement): void {\n this.activeStep.set(step);\n afterNextRender(() => panel.focus({ preventScroll: true }), { injector: this.injector });\n }\n\n protected actionDisabled(action: AXPTaskWorkspaceAction): boolean {\n if (taskWorkspaceActionDisabled(action, this.content ? this.bridge.state() : null, this.actionPending())) return true;\n if (!this.compact() || action.name !== 'sign') return false;\n const signature = this.layoutValues()['signature'];\n return typeof signature !== 'string' || !signature.trim().startsWith('data:image/');\n }\n\n protected async runAction(action: AXPTaskWorkspaceAction): Promise<void> {\n if (action.name === 'cancel') {\n this.cancel();\n return;\n }\n if (this.closed || this.actionDisabled(action)) return;\n this.actionPending.set(true);\n this.actionError.set(null);\n try {\n if (action.validate && !(await this.layoutRenderer()?.validate())?.result) {\n return;\n }\n if (this.closed || (this.content && this.bridge.state() !== 'ready')) return;\n const values = this.layoutValues();\n if (action.requirePaths?.some(path => typeof values[path] !== 'string' || !(values[path] as string).trim())) {\n this.actionError.set(action.requiredMessageKey ?? '@general:messages.generic.error.description');\n return;\n }\n this.complete({ cancelled: false, action: action.name, values, content: this.bridge.data() });\n } catch {\n this.actionError.set('@general:messages.generic.error.description');\n } finally {\n this.actionPending.set(false);\n }\n }\n\n //#endregion\n\n //#region ----- Content -----\n\n private async loadContent(): Promise<void> {\n const ref = this.content;\n if (!ref) return;\n const provider = this.providers.find((item) => item.name === ref.provider);\n if (!provider) {\n this.bridge.fail('@task-management:workspace.provider-missing');\n return;\n }\n try {\n const component = await provider.load();\n this.contentInputs.set(ref.inputs ?? {});\n this.contentComponent.set(component);\n } catch {\n this.bridge.fail('@task-management:workspace.provider-missing');\n }\n }\n\n private layoutValues(): Record<string, unknown> {\n const context = this.layoutRenderer()?.getContext();\n return context && typeof context === 'object' ? context as Record<string, unknown> : {};\n }\n\n private complete(result: AXPTaskWorkspaceResult): void {\n if (this.closed) {\n return;\n }\n this.closed = true;\n this.close(result);\n }\n\n //#endregion\n}\n\n//#endregion\n","<div class=\"axm-task-workspace flex h-full min-h-0 w-full flex-col\"\n [class.axm-task-workspace--compact]=\"compact()\" [attr.data-workspace-step]=\"activeStep()\">\n @if (compact()) {\n <ol class=\"axm-task-steps\" role=\"list\" [attr.aria-label]=\"'@task-management:workspace.steps.label' | translate | async\">\n @for (key of stepLabels; track key; let index = $index) {\n <li [attr.aria-current]=\"activeStep() === index ? 'step' : null\" [class.axm-task-step-visited]=\"index < activeStep()\">\n <span class=\"axm-task-step-number\" aria-hidden=\"true\">{{ index < activeStep() ? '✓' : index + 1 }}</span>\n <span class=\"axm-task-step-label\">{{ key | translate | async }}</span>\n </li>\n }\n </ol>\n }\n <div class=\"axm-task-panels flex min-h-0 flex-1 rtl:flex-row-reverse\">\n <!-- ----- Task facts and the action form stay beside the content ----- -->\n <aside class=\"axm-task-sidebar flex h-full min-h-0 w-80 shrink-0 flex-col border-r border-surface\"\n [attr.inert]=\"compact() && activeStep() === 1 ? '' : null\">\n <div class=\"axm-task-sidebar-scroll flex min-h-0 flex-1 flex-col gap-4 overflow-auto p-4\">\n <section #taskDetails class=\"axm-task-details flex flex-col gap-4\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 0 ? '' : null\">\n @if (compact()) {\n <h2 class=\"text-lg font-semibold\">{{ stepLabels[0] | translate | async }}</h2>\n }\n @if (messageKey; as key) {\n <p>{{ key | translate | async }}</p>\n }\n @if (summary; as task) {\n <!-- ----- Status, people and dates use the task board presentation ----- -->\n <dl class=\"axm-task-facts\">\n @if (compact() && task.code) {\n <div>\n <dt>{{ '@general:terms.common.code' | translate | async }}</dt>\n <dd dir=\"ltr\">{{ task.code }}</dd>\n </div>\n }\n @if (task.status) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.status' | translate | async }}</dt>\n <dd>\n <axm-task-board-badge kind=\"status\" [value]=\"task.status\" [label]=\"(task.statusKey | translate | async) || undefined\" />\n </dd>\n </div>\n }\n @if (task.assignee) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.assignee' | translate | async }}</dt>\n <dd>\n @if (task.assigneeId; as userId) {\n <!-- ----- Assignee opens the same user card as the board ----- -->\n <button type=\"button\" class=\"axm-task-person\" [axpUserCard]=\"userId\" (keydown.enter)=\"openUserCard($event, userId)\" (keydown.space)=\"openUserCard($event, userId)\">\n <axp-user-avatar [userId]=\"userId\" [displayName]=\"task.assignee\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.assignee }}</span>\n </button>\n }\n <!-- ----- Initials stay visible when the person has no id ----- -->\n @else {\n <span class=\"axm-task-person\">\n <axp-user-avatar [displayName]=\"task.assignee\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.assignee }}</span>\n </span>\n }\n </dd>\n </div>\n }\n @if (task.reporter) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.reporter' | translate | async }}</dt>\n <dd>\n @if (task.reporterId; as userId) {\n <!-- ----- Reporter opens the same user card as the board ----- -->\n <button type=\"button\" class=\"axm-task-person\" [axpUserCard]=\"userId\" (keydown.enter)=\"openUserCard($event, userId)\" (keydown.space)=\"openUserCard($event, userId)\">\n <axp-user-avatar [userId]=\"userId\" [displayName]=\"task.reporter\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.reporter }}</span>\n </button>\n }\n <!-- ----- Initials stay visible when the person has no id ----- -->\n @else {\n <span class=\"axm-task-person\">\n <axp-user-avatar [displayName]=\"task.reporter\" [size]=\"28\" [showPresence]=\"false\" aria-hidden=\"true\" />\n <span>{{ task.reporter }}</span>\n </span>\n }\n </dd>\n </div>\n }\n @if (task.createdAt) {\n <div>\n <dt>{{ '@task-management:workspace.created' | translate | async }}</dt>\n <dd class=\"axm-task-due\">\n <i class=\"fa-light fa-calendar\" aria-hidden=\"true\"></i>\n <span>{{ formatWhen(task.createdAt) }}</span>\n </dd>\n </div>\n }\n @if (task.dueAt) {\n <div>\n <dt>{{ '@task-management:task-board.grid-headers.due-date' | translate | async }}</dt>\n <dd class=\"axm-task-due\" [class.task-due--alert]=\"!!dueState()\" [style.--task-due-text]=\"dueColor()\" [attr.data-due-status]=\"dueState()\">\n <i class=\"fa-light fa-calendar\" aria-hidden=\"true\"></i>\n <span>\n {{ formatWhen(task.dueAt) }}\n @if (dueLabelKey(); as key) {\n <!-- ----- Overdue or due-soon uses the board label ----- -->\n <small class=\"task-due__label\">{{ key | translate | async }}</small>\n }\n </span>\n </dd>\n </div>\n }\n @if (task.priority) {\n <div>\n <dt>{{ '@task-management:task-board.detail-panel.priority' | translate | async }}</dt>\n <dd>\n <axm-task-board-badge kind=\"priority\" [value]=\"task.priority\" />\n </dd>\n </div>\n }\n </dl>\n }\n </section>\n\n <section #taskActions class=\"axm-task-action-fields flex flex-col gap-4\" [hidden]=\"!layout && !actionError()\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 2 ? '' : null\">\n @if (compact()) {\n <h2 class=\"text-lg font-semibold\">{{ stepLabels[2] | translate | async }}</h2>\n }\n @if (layout) {\n <axp-layout-renderer [layout]=\"layout\" mode=\"edit\"></axp-layout-renderer>\n }\n @if (actionError(); as key) {\n <span class=\"axm-task-error\" role=\"alert\">{{ key | translate | async }}</span>\n }\n </section>\n </div>\n\n <!-- ----- Step actions stay pinned. Content that owns Submit leaves this footer empty. ----- -->\n @if (actions.length) {\n <div class=\"axm-task-actions flex shrink-0 justify-end gap-2 border-t border-surface p-4\"\n [attr.inert]=\"compact() && activeStep() !== 2 ? '' : null\">\n @if (compact()) {\n <ax-button class=\"axm-task-step-back\" look=\"outline\" color=\"default\"\n [text]=\"'@general:actions.back.title' | translate | async\"\n (onClick)=\"showStep(1, taskContent)\" />\n }\n @for (action of actions; track action.name) {\n <ax-button\n [look]=\"action.look || 'solid'\"\n [color]=\"action.color || 'primary'\"\n [text]=\"(action.title | translate | async) ?? ''\"\n [disabled]=\"actionDisabled(action)\"\n (onClick)=\"runAction(action)\"\n ></ax-button>\n }\n </div>\n }\n </aside>\n\n <!-- ----- Questionnaire, form, or another registered subject ----- -->\n <div #taskContent class=\"axm-task-content flex min-w-0 flex-1 flex-col overflow-hidden\"\n [attr.tabindex]=\"compact() ? -1 : null\" [attr.inert]=\"compact() && activeStep() !== 1 ? '' : null\"\n [attr.role]=\"compact() ? 'region' : null\"\n [attr.aria-label]=\"compact() ? (stepLabels[1] | translate | async) : null\">\n @if (contentError(); as key) {\n <p class=\"p-4 text-sm\" role=\"alert\">{{ key | translate | async }}</p>\n }\n @if (contentComponent(); as component) {\n <div class=\"axm-task-content-host\">\n <ng-container *ngComponentOutlet=\"component; inputs: contentInputs()\"></ng-container>\n </div>\n }\n </div>\n </div>\n @if (compact()) {\n <div class=\"axm-task-navigation flex shrink-0 justify-end gap-2 border-t border-surface p-4\"\n [attr.inert]=\"activeStep() === 2 ? '' : null\">\n @if (activeStep() === 0) {\n <ax-button look=\"solid\" color=\"primary\"\n [text]=\"'@task-management:workspace.steps.view-document' | translate | async\"\n (onClick)=\"showStep(1, taskContent)\" />\n } @else {\n <ax-button class=\"axm-task-step-back\" look=\"outline\" color=\"default\"\n [text]=\"'@general:actions.back.title' | translate | async\"\n (onClick)=\"showStep(0, taskDetails)\" />\n <ax-button look=\"solid\" color=\"primary\" [disabled]=\"contentState() !== 'ready'\"\n [text]=\"'@task-management:workspace.steps.continue-to-sign-off' | translate | async\"\n (onClick)=\"showStep(2, taskActions)\" />\n }\n </div>\n }\n</div>\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;SAEgB,2BAA2B,CACzC,MAA4C,EAC5C,YAAiD,EACjD,OAAgB,EAAA;AAEhB,IAAA,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,KAAK,OAAO,KAAK,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,OAAO,CAAC,CAAC;AACrG;;ACRA;AA8BA;AAEA;AAEA,MAAM,uBAAuB,GAAG,kFAAkF;AAoB5G,MAAO,8BAA+B,SAAQ,mBAAmB,CAAA;AAlBvE,IAAA,WAAA,GAAA;;;AAqBmB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE;AACxE,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACvC,QAAA,IAA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,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAUA,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAlB1C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,EAAA,eAAA,EAEb,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,sBAAsB,CAAC,EAAA,aAAA,EAEpB,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B;wBACP,SAAS;wBACT,iBAAiB;wBACjB,cAAc;wBACd,mBAAmB;wBACnB,0BAA0B;wBAC1B,sBAAsB;wBACtB,oBAAoB;wBACpB,0BAA0B;AAC3B,qBAAA,EAAA,QAAA,EAAA,g3TAAA,EAAA,MAAA,EAAA,CAAA,qsKAAA,CAAA,EAAA;gGAW2C,0BAA0B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { k as AXMSearchCommandProvider, l as AXMSettingProvider, m as AXMTaskManagementMenuProvider, n as AXMTaskManagementModule, i as AXMTaskWorkspaceService, o as AXPTaskBoardModule, p as AXPTaskBoardShortcut, q as AXPTaskBoardShortcutViewComponent, r as AXPTaskBoardWidget, s as AXPTaskBoardWidgetViewComponent, u as AXPTaskManagementEntityTaskProvider, a as AXPTaskWorkspaceBridge, v as AXP_TASK_BOARD_DIMENSIONS, w as AXP_TASK_BOARD_SHORTCUT_DIMENSIONS, x as AXP_TASK_MANAGEMENT_DASHBOARD_SUB_BOARD, y as AXP_TASK_MANAGEMENT_DASHBOARD_SUB_SHORTCUT, z as AXP_TASK_MANAGEMENT_DASHBOARD_WIDGET_CATEGORY, A as AXP_TASK_WORKSPACE_CONTENT, B as AXP_TASK_WORKSPACE_STEPPED_TYPES, R as RESET_TASK_BOARD_FILTERS_ASSIGN_TO_CURRENT_USER_COMMAND_KEY, C as ResetTaskBoardFiltersAssignToCurrentUserCommand, D as buildTaskBoardShortcutWidget, E as buildTaskBoardWidget, F as taskBoardApiInput } from './acorex-platform-module-task-management-client-acorex-platform-module-task-management-client-dfiarGtJ.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-task-management-client.mjs.map
|