@masterteam/work-center 0.0.69 → 0.0.71

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.
@@ -1,160 +1,160 @@
1
- {
2
- "workCenter": {
3
- "page": {
4
- "title": "Work Center",
5
- "new": "New",
6
- "create": "Create",
7
- "createGeneralTask": "Create General Task",
8
- "itemDetails": "Item Details",
9
- "records": "records"
10
- },
11
- "operator": {
12
- "Eq": "Equals",
13
- "Neq": "Not equal",
14
- "In": "In",
15
- "Contains": "Contains",
16
- "StartsWith": "Starts with",
17
- "Gt": "Greater than",
18
- "Gte": "Greater than or equal",
19
- "Lt": "Less than",
20
- "Lte": "Less than or equal",
21
- "Between": "Between",
22
- "IsNull": "Is empty",
23
- "IsNotNull": "Is not empty"
24
- },
25
- "tabs": {
26
- "details": "Details",
27
- "form": "Form",
28
- "approvals": "Approvals",
29
- "steps": "Steps",
30
- "discussion": "Discussion",
31
- "requestDetails": "Request Details",
32
- "escalationDetails": "Escalation Details",
33
- "moduleDetails": "Module Details",
34
- "levelDetails": "Level Details",
35
- "levelDetailsNamed": "{{ name }} Details",
36
- "schema": "Schema"
37
- },
38
- "entity": {
39
- "initiatedBy": "Initiated By",
40
- "startedAt": "Started At",
41
- "reason": "Reason",
42
- "attachments": "Attachments",
43
- "step": "Step"
44
- },
45
- "modal": {
46
- "cancel": "Cancel",
47
- "submit": "Submit",
48
- "confirmAction": "Confirm {{ action }} for this item.",
49
- "previewLevel": "Preview Level",
50
- "previewModule": "Preview {{ module }}",
51
- "loadingActions": "Loading actions...",
52
- "submitting": "Submitting...",
53
- "requestSubmitted": "Request submitted for approval.",
54
- "operationExecuted": "Operation executed successfully.",
55
- "unsupportedType": "This item type is not supported yet.",
56
- "noItemSelected": "No item selected."
57
- },
58
- "validation": {
59
- "fillRequiredFields": "Please fill in all required fields before submitting."
60
- },
61
- "actions": {
62
- "loadActionsFailed": "Failed to load item actions.",
63
- "executeFailed": "Failed to execute {{ action }}.",
64
- "validationWarningsHeader": "Validation warnings",
65
- "validationWarningsQuestion": "Do you want to acknowledge these warnings and continue?",
66
- "acknowledgeAndContinue": "Acknowledge and continue"
67
- },
68
- "error": {
69
- "failedSubmit": "Failed to submit form",
70
- "failedLoadDetails": "Failed to load item details.",
71
- "failedLoadEscalation": "Failed to load escalation preview",
72
- "missingModuleDataId": "Task data id is missing."
73
- },
74
- "context": {
75
- "moduleFormUnavailable": "Module form context is not available for this item yet.",
76
- "moduleDiscussionUnavailable": "Discussion context is not available for this module yet.",
77
- "processFormUnavailable": "Process form context is not available for this process item yet.",
78
- "processDiscussionUnavailable": "Discussion context is not available for this process item yet.",
79
- "processPreviewUnavailable": "Process preview is not available for this process item yet.",
80
- "escalationDetailsUnavailable": "Escalation details context is not available for this item yet.",
81
- "escalationDiscussionUnavailable": "Discussion context is not available for this escalation yet.",
82
- "escalationSchemaUnavailable": "Escalation schema is not available for this item yet.",
83
- "escalationSchemaContextUnavailable": "Escalation schema context is not available for this item yet.",
84
- "requestFormUnavailable": "Process form context is not available for this process request yet.",
85
- "requestDiscussionUnavailable": "Discussion context is not available for this process request yet.",
86
- "requestPreviewUnavailable": "Process preview is not available for this process request yet."
87
- },
88
- "loading": {
89
- "escalationDetails": "Loading escalation details...",
90
- "escalationSchema": "Loading escalation schema..."
91
- },
92
- "preview": {
93
- "name": "Name",
94
- "status": "Status",
95
- "user": "User",
96
- "userOrGroup": "User / Group",
97
- "initiationDate": "Initiation Date",
98
- "actionDate": "Action Date",
99
- "start": "Start",
100
- "end": "End",
101
- "appAction": "App Action",
102
- "formStep": "Form Step",
103
- "approvalCommit": "Commit Approved Form",
104
- "approvalCommitSubtitle": "System · Locked",
105
- "initial": "Initial",
106
- "final": "Final",
107
- "loadFailed": "Failed to load process preview"
108
- },
109
- "field": {
110
- "progress": "Progress",
111
- "delegatedUser": "Delegated User",
112
- "delegatedUserPlaceholder": "Search user",
113
- "reason": "Reason",
114
- "reasonPlaceholder": "Enter reason",
115
- "note": "Note",
116
- "notePlaceholder": "Enter note",
117
- "attachments": "Attachments",
118
- "uploadTitle": "Upload Attachment",
119
- "uploadDescription": "Click or drop a file to upload"
120
- }
121
- },
122
- "runtimeAction": {
123
- "field": {
124
- "progress": "Progress",
125
- "delegatedUser": "Delegated User",
126
- "delegatedUserPlaceholder": "Search user",
127
- "reason": "Reason",
128
- "reasonPlaceholder": "Enter reason",
129
- "note": "Note",
130
- "notePlaceholder": "Enter note",
131
- "attachments": "Attachments",
132
- "uploadTitle": "Upload Attachment",
133
- "uploadDescription": "Click or drop a file to upload"
134
- },
135
- "modal": {
136
- "cancel": "Cancel",
137
- "confirmAction": "Confirm {{ action }} for this item."
138
- },
139
- "preview": {
140
- "name": "Name",
141
- "status": "Status",
142
- "user": "User",
143
- "userOrGroup": "User / Group",
144
- "initiationDate": "Initiation Date",
145
- "actionDate": "Action Date",
146
- "start": "Start",
147
- "end": "End",
148
- "appAction": "App Action",
149
- "formStep": "Form Step",
150
- "approvalCommit": "Commit Approved Form",
151
- "approvalCommitSubtitle": "System · Locked",
152
- "initial": "Initial",
153
- "final": "Final",
154
- "loadFailed": "Failed to load process preview"
155
- },
156
- "actions": {
157
- "loadActionsFailed": "Failed to load item actions."
158
- }
159
- }
160
- }
1
+ {
2
+ "workCenter": {
3
+ "page": {
4
+ "title": "Work Center",
5
+ "new": "New",
6
+ "create": "Create",
7
+ "createGeneralTask": "Create General Task",
8
+ "itemDetails": "Item Details",
9
+ "records": "records"
10
+ },
11
+ "operator": {
12
+ "Eq": "Equals",
13
+ "Neq": "Not equal",
14
+ "In": "In",
15
+ "Contains": "Contains",
16
+ "StartsWith": "Starts with",
17
+ "Gt": "Greater than",
18
+ "Gte": "Greater than or equal",
19
+ "Lt": "Less than",
20
+ "Lte": "Less than or equal",
21
+ "Between": "Between",
22
+ "IsNull": "Is empty",
23
+ "IsNotNull": "Is not empty"
24
+ },
25
+ "tabs": {
26
+ "details": "Details",
27
+ "form": "Form",
28
+ "approvals": "Approvals",
29
+ "steps": "Steps",
30
+ "discussion": "Discussion",
31
+ "requestDetails": "Request Details",
32
+ "escalationDetails": "Escalation Details",
33
+ "moduleDetails": "Module Details",
34
+ "levelDetails": "Level Details",
35
+ "levelDetailsNamed": "{{ name }} Details",
36
+ "schema": "Schema"
37
+ },
38
+ "entity": {
39
+ "initiatedBy": "Initiated By",
40
+ "startedAt": "Started At",
41
+ "reason": "Reason",
42
+ "attachments": "Attachments",
43
+ "step": "Step"
44
+ },
45
+ "modal": {
46
+ "cancel": "Cancel",
47
+ "submit": "Submit",
48
+ "confirmAction": "Confirm {{ action }} for this item.",
49
+ "previewLevel": "Preview Level",
50
+ "previewModule": "Preview {{ module }}",
51
+ "loadingActions": "Loading actions...",
52
+ "submitting": "Submitting...",
53
+ "requestSubmitted": "Request submitted for approval.",
54
+ "operationExecuted": "Operation executed successfully.",
55
+ "unsupportedType": "This item type is not supported yet.",
56
+ "noItemSelected": "No item selected."
57
+ },
58
+ "validation": {
59
+ "fillRequiredFields": "Please fill in all required fields before submitting."
60
+ },
61
+ "actions": {
62
+ "loadActionsFailed": "Failed to load item actions.",
63
+ "executeFailed": "Failed to execute {{ action }}.",
64
+ "validationWarningsHeader": "Validation warnings",
65
+ "validationWarningsQuestion": "Do you want to acknowledge these warnings and continue?",
66
+ "acknowledgeAndContinue": "Acknowledge and continue"
67
+ },
68
+ "error": {
69
+ "failedSubmit": "Failed to submit form",
70
+ "failedLoadDetails": "Failed to load item details.",
71
+ "failedLoadEscalation": "Failed to load escalation preview",
72
+ "missingModuleDataId": "Task data id is missing."
73
+ },
74
+ "context": {
75
+ "moduleFormUnavailable": "Module form context is not available for this item yet.",
76
+ "moduleDiscussionUnavailable": "Discussion context is not available for this module yet.",
77
+ "processFormUnavailable": "Process form context is not available for this process item yet.",
78
+ "processDiscussionUnavailable": "Discussion context is not available for this process item yet.",
79
+ "processPreviewUnavailable": "Process preview is not available for this process item yet.",
80
+ "escalationDetailsUnavailable": "Escalation details context is not available for this item yet.",
81
+ "escalationDiscussionUnavailable": "Discussion context is not available for this escalation yet.",
82
+ "escalationSchemaUnavailable": "Escalation schema is not available for this item yet.",
83
+ "escalationSchemaContextUnavailable": "Escalation schema context is not available for this item yet.",
84
+ "requestFormUnavailable": "Process form context is not available for this process request yet.",
85
+ "requestDiscussionUnavailable": "Discussion context is not available for this process request yet.",
86
+ "requestPreviewUnavailable": "Process preview is not available for this process request yet."
87
+ },
88
+ "loading": {
89
+ "escalationDetails": "Loading escalation details...",
90
+ "escalationSchema": "Loading escalation schema..."
91
+ },
92
+ "preview": {
93
+ "name": "Name",
94
+ "status": "Status",
95
+ "user": "User",
96
+ "userOrGroup": "User / Group",
97
+ "initiationDate": "Initiation Date",
98
+ "actionDate": "Action Date",
99
+ "start": "Start",
100
+ "end": "End",
101
+ "appAction": "App Action",
102
+ "formStep": "Form Step",
103
+ "approvalCommit": "Commit Approved Form",
104
+ "approvalCommitSubtitle": "System · Locked",
105
+ "initial": "Initial",
106
+ "final": "Final",
107
+ "loadFailed": "Failed to load process preview"
108
+ },
109
+ "field": {
110
+ "progress": "Progress",
111
+ "delegatedUser": "Delegated User",
112
+ "delegatedUserPlaceholder": "Search user",
113
+ "reason": "Reason",
114
+ "reasonPlaceholder": "Enter reason",
115
+ "note": "Note",
116
+ "notePlaceholder": "Enter note",
117
+ "attachments": "Attachments",
118
+ "uploadTitle": "Upload Attachment",
119
+ "uploadDescription": "Click or drop a file to upload"
120
+ }
121
+ },
122
+ "runtimeAction": {
123
+ "field": {
124
+ "progress": "Progress",
125
+ "delegatedUser": "Delegated User",
126
+ "delegatedUserPlaceholder": "Search user",
127
+ "reason": "Reason",
128
+ "reasonPlaceholder": "Enter reason",
129
+ "note": "Note",
130
+ "notePlaceholder": "Enter note",
131
+ "attachments": "Attachments",
132
+ "uploadTitle": "Upload Attachment",
133
+ "uploadDescription": "Click or drop a file to upload"
134
+ },
135
+ "modal": {
136
+ "cancel": "Cancel",
137
+ "confirmAction": "Confirm {{ action }} for this item."
138
+ },
139
+ "preview": {
140
+ "name": "Name",
141
+ "status": "Status",
142
+ "user": "User",
143
+ "userOrGroup": "User / Group",
144
+ "initiationDate": "Initiation Date",
145
+ "actionDate": "Action Date",
146
+ "start": "Start",
147
+ "end": "End",
148
+ "appAction": "App Action",
149
+ "formStep": "Form Step",
150
+ "approvalCommit": "Commit Approved Form",
151
+ "approvalCommitSubtitle": "System · Locked",
152
+ "initial": "Initial",
153
+ "final": "Final",
154
+ "loadFailed": "Failed to load process preview"
155
+ },
156
+ "actions": {
157
+ "loadActionsFailed": "Failed to load item actions."
158
+ }
159
+ }
160
+ }
@@ -2288,6 +2288,7 @@ class WorkCenterProcessStepType {
2288
2288
  contextKey: `level:${levelId}`,
2289
2289
  instanceId: levelDataId,
2290
2290
  displayAreas: ['preview'],
2291
+ processRequestId: this.requestId(),
2291
2292
  };
2292
2293
  }, ...(ngDevMode ? [{ debugName: "levelDetailsConfig" }] : /* istanbul ignore next */ []));
2293
2294
  // The preview response carries the level name in its schema, so the tab is
@@ -2824,13 +2825,13 @@ class WorkCenterItemModalFooterActions {
2824
2825
  };
2825
2826
  }
2826
2827
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: WorkCenterItemModalFooterActions, deps: [], target: i0.ɵɵFactoryTarget.Component });
2827
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: WorkCenterItemModalFooterActions, isStandalone: true, selector: "mt-work-center-item-modal-footer-actions", inputs: { contextKey: { classPropertyName: "contextKey", publicName: "contextKey", isSignal: true, isRequired: false, transformFunction: null }, previewLevelTarget: { classPropertyName: "previewLevelTarget", publicName: "previewLevelTarget", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionExecuted: "actionExecuted", previewLevelSelected: "previewLevelSelected", visibilityChange: "visibilityChange" }, host: { classAttribute: "flex w-full flex-1 flex-wrap items-center justify-end gap-2" }, providers: [WorkCenterRuntimeActionExecutor], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'workCenter'\">\n @if (shouldRender()) {\n @if (error(); as error) {\n <span class=\"me-auto max-w-md whitespace-pre-line text-sm text-red-600\">\n {{ error }}\n </span>\n } @else if (loading() && !displayActions().length) {\n <span class=\"me-auto text-sm text-surface-500\">{{\n t(\"modal.loadingActions\")\n }}</span>\n }\n\n @if (previewLevelTarget(); as previewLevelTarget) {\n <mt-button\n [label]=\"previewLevelLabel(previewLevelTarget, t)\"\n severity=\"secondary\"\n variant=\"outlined\"\n [disabled]=\"loading() || !!pendingActionKey()\"\n (onClick)=\"previewLevelSelected.emit(previewLevelTarget)\"\n />\n }\n\n @for (action of displayActions(); track action.actionKey + action.url) {\n <mt-button\n [label]=\"action.label\"\n [severity]=\"action.severity\"\n [variant]=\"action.variant\"\n [disabled]=\"loading() || !!pendingActionKey()\"\n [loading]=\"pendingActionKey() === action.actionKey\"\n (onClick)=\"executeAction(action)\"\n />\n }\n }\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs"], outputs: ["onClick", "onFocus", "onBlur"] }] });
2828
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: WorkCenterItemModalFooterActions, isStandalone: true, selector: "mt-work-center-item-modal-footer-actions", inputs: { contextKey: { classPropertyName: "contextKey", publicName: "contextKey", isSignal: true, isRequired: false, transformFunction: null }, previewLevelTarget: { classPropertyName: "previewLevelTarget", publicName: "previewLevelTarget", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionExecuted: "actionExecuted", previewLevelSelected: "previewLevelSelected", visibilityChange: "visibilityChange" }, host: { classAttribute: "flex w-full flex-1 flex-wrap items-center justify-end gap-2" }, providers: [WorkCenterRuntimeActionExecutor], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'workCenter'\">\r\n @if (shouldRender()) {\r\n @if (error(); as error) {\r\n <span class=\"me-auto max-w-md whitespace-pre-line text-sm text-red-600\">\r\n {{ error }}\r\n </span>\r\n } @else if (loading() && !displayActions().length) {\r\n <span class=\"me-auto text-sm text-surface-500\">{{\r\n t(\"modal.loadingActions\")\r\n }}</span>\r\n }\r\n\r\n @if (previewLevelTarget(); as previewLevelTarget) {\r\n <mt-button\r\n [label]=\"previewLevelLabel(previewLevelTarget, t)\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n [disabled]=\"loading() || !!pendingActionKey()\"\r\n (onClick)=\"previewLevelSelected.emit(previewLevelTarget)\"\r\n />\r\n }\r\n\r\n @for (action of displayActions(); track action.actionKey + action.url) {\r\n <mt-button\r\n [label]=\"action.label\"\r\n [severity]=\"action.severity\"\r\n [variant]=\"action.variant\"\r\n [disabled]=\"loading() || !!pendingActionKey()\"\r\n [loading]=\"pendingActionKey() === action.actionKey\"\r\n (onClick)=\"executeAction(action)\"\r\n />\r\n }\r\n }\r\n</ng-container>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs"], outputs: ["onClick", "onFocus", "onBlur"] }] });
2828
2829
  }
2829
2830
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: WorkCenterItemModalFooterActions, decorators: [{
2830
2831
  type: Component,
2831
2832
  args: [{ selector: 'mt-work-center-item-modal-footer-actions', standalone: true, imports: [CommonModule, TranslocoDirective, Button], host: {
2832
2833
  class: 'flex w-full flex-1 flex-wrap items-center justify-end gap-2',
2833
- }, providers: [WorkCenterRuntimeActionExecutor], template: "<ng-container *transloco=\"let t; prefix: 'workCenter'\">\n @if (shouldRender()) {\n @if (error(); as error) {\n <span class=\"me-auto max-w-md whitespace-pre-line text-sm text-red-600\">\n {{ error }}\n </span>\n } @else if (loading() && !displayActions().length) {\n <span class=\"me-auto text-sm text-surface-500\">{{\n t(\"modal.loadingActions\")\n }}</span>\n }\n\n @if (previewLevelTarget(); as previewLevelTarget) {\n <mt-button\n [label]=\"previewLevelLabel(previewLevelTarget, t)\"\n severity=\"secondary\"\n variant=\"outlined\"\n [disabled]=\"loading() || !!pendingActionKey()\"\n (onClick)=\"previewLevelSelected.emit(previewLevelTarget)\"\n />\n }\n\n @for (action of displayActions(); track action.actionKey + action.url) {\n <mt-button\n [label]=\"action.label\"\n [severity]=\"action.severity\"\n [variant]=\"action.variant\"\n [disabled]=\"loading() || !!pendingActionKey()\"\n [loading]=\"pendingActionKey() === action.actionKey\"\n (onClick)=\"executeAction(action)\"\n />\n }\n }\n</ng-container>\n" }]
2834
+ }, providers: [WorkCenterRuntimeActionExecutor], template: "<ng-container *transloco=\"let t; prefix: 'workCenter'\">\r\n @if (shouldRender()) {\r\n @if (error(); as error) {\r\n <span class=\"me-auto max-w-md whitespace-pre-line text-sm text-red-600\">\r\n {{ error }}\r\n </span>\r\n } @else if (loading() && !displayActions().length) {\r\n <span class=\"me-auto text-sm text-surface-500\">{{\r\n t(\"modal.loadingActions\")\r\n }}</span>\r\n }\r\n\r\n @if (previewLevelTarget(); as previewLevelTarget) {\r\n <mt-button\r\n [label]=\"previewLevelLabel(previewLevelTarget, t)\"\r\n severity=\"secondary\"\r\n variant=\"outlined\"\r\n [disabled]=\"loading() || !!pendingActionKey()\"\r\n (onClick)=\"previewLevelSelected.emit(previewLevelTarget)\"\r\n />\r\n }\r\n\r\n @for (action of displayActions(); track action.actionKey + action.url) {\r\n <mt-button\r\n [label]=\"action.label\"\r\n [severity]=\"action.severity\"\r\n [variant]=\"action.variant\"\r\n [disabled]=\"loading() || !!pendingActionKey()\"\r\n [loading]=\"pendingActionKey() === action.actionKey\"\r\n (onClick)=\"executeAction(action)\"\r\n />\r\n }\r\n }\r\n</ng-container>\r\n" }]
2834
2835
  }], ctorParameters: () => [], propDecorators: { contextKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextKey", required: false }] }], previewLevelTarget: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewLevelTarget", required: false }] }], actionExecuted: [{ type: i0.Output, args: ["actionExecuted"] }], previewLevelSelected: [{ type: i0.Output, args: ["previewLevelSelected"] }], visibilityChange: [{ type: i0.Output, args: ["visibilityChange"] }] } });
2835
2836
  function normalizeMethod(value) {
2836
2837
  if (!value || typeof value !== 'string') {