@masterteam/work-center 0.0.99 → 0.0.100

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,217 +1,217 @@
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
- "projectDetails": "Project Details",
37
- "schema": "Schema",
38
- "publishComparison": "Comparison"
39
- },
40
- "entity": {
41
- "initiatedBy": "Initiated By",
42
- "startedAt": "Started At",
43
- "reason": "Reason",
44
- "attachments": "Attachments",
45
- "step": "Step"
46
- },
47
- "modal": {
48
- "cancel": "Cancel",
49
- "submit": "Submit",
50
- "confirmAction": "Confirm {{ action }} for this item.",
51
- "previewLevel": "Preview Level",
52
- "previewModule": "Preview {{ module }}",
53
- "loadingActions": "Loading actions...",
54
- "submitting": "Submitting...",
55
- "requestSubmitted": "Request submitted for approval.",
56
- "operationExecuted": "Operation executed successfully.",
57
- "unsupportedType": "This item type is not supported yet.",
58
- "noItemSelected": "No item selected."
59
- },
60
- "validation": {
61
- "fillRequiredFields": "Please fill in all required fields before submitting."
62
- },
63
- "actions": {
64
- "loadActionsFailed": "Failed to load item actions.",
65
- "executeFailed": "Failed to execute {{ action }}.",
66
- "validationWarningsHeader": "Validation warnings",
67
- "validationWarningsQuestion": "Do you want to acknowledge these warnings and continue?",
68
- "continueAction": "Continue",
69
- "validationBlocked": "The form has validation errors that must be fixed before this action.",
70
- "completeRequiredFields": "Fill in the required fields to enable this action."
71
- },
72
- "error": {
73
- "failedSubmit": "Failed to submit form",
74
- "failedLoadDetails": "Failed to load item details.",
75
- "itemUnavailable": "This request is no longer available. It may have been terminated or completed.",
76
- "failedLoadEscalation": "Failed to load escalation preview",
77
- "missingModuleDataId": "Task data id is missing.",
78
- "missingRecordId": "The record this action targets is missing.",
79
- "failedLoadSchedulePublish": "Failed to load the plan comparison"
80
- },
81
- "context": {
82
- "moduleFormUnavailable": "Module form context is not available for this item yet.",
83
- "moduleDiscussionUnavailable": "Discussion context is not available for this module yet.",
84
- "processFormUnavailable": "Process form context is not available for this process item yet.",
85
- "processDiscussionUnavailable": "Discussion context is not available for this process item yet.",
86
- "processPreviewUnavailable": "Process preview is not available for this process item yet.",
87
- "escalationDetailsUnavailable": "Escalation details context is not available for this item yet.",
88
- "escalationDiscussionUnavailable": "Discussion context is not available for this escalation yet.",
89
- "escalationSchemaUnavailable": "Escalation schema is not available for this item yet.",
90
- "escalationSchemaContextUnavailable": "Escalation schema context is not available for this item yet.",
91
- "requestFormUnavailable": "Process form context is not available for this process request yet.",
92
- "requestDiscussionUnavailable": "Discussion context is not available for this process request yet.",
93
- "requestPreviewUnavailable": "Process preview is not available for this process request yet."
94
- },
95
- "loading": {
96
- "escalationDetails": "Loading escalation details...",
97
- "escalationSchema": "Loading escalation schema...",
98
- "schedulePublish": "Loading the plan comparison..."
99
- },
100
- "preview": {
101
- "name": "Name",
102
- "status": "Status",
103
- "user": "User",
104
- "userOrGroup": "User / Group",
105
- "initiationDate": "Initiation Date",
106
- "actionDate": "Action Date",
107
- "start": "Start",
108
- "end": "End",
109
- "appAction": "App Action",
110
- "formStep": "Form Step",
111
- "approvalCommit": "Commit Approved Form",
112
- "approvalCommitSubtitle": "System · Locked",
113
- "initial": "Initial",
114
- "final": "Final",
115
- "loadFailed": "Failed to load process preview",
116
- "stepStatus": {
117
- "approved": "Approved",
118
- "current": "In Progress",
119
- "noAction": "No Action",
120
- "notStarted": "Not Started",
121
- "rejected": "Rejected",
122
- "resubmitted": "Resubmitted",
123
- "returned": "Returned",
124
- "terminated": "Terminated"
125
- }
126
- },
127
- "field": {
128
- "progress": "Progress",
129
- "delegatedUser": "Delegated User",
130
- "delegatedUserPlaceholder": "Search user",
131
- "reason": "Reason",
132
- "reasonPlaceholder": "Enter reason",
133
- "note": "Note",
134
- "notePlaceholder": "Enter note",
135
- "attachments": "Attachments",
136
- "uploadTitle": "Upload Attachment",
137
- "uploadDescription": "Click or drop a file to upload"
138
- },
139
- "publish": {
140
- "projectDetailsLiveNote": "Project details reflect the current record. The Comparison tab shows the schedule captured for this request.",
141
- "before": "Before",
142
- "after": "After",
143
- "neverPublished": "This project has not published a plan yet, so there is nothing to compare against. Approving publishes the plan as it currently stands.",
144
- "nothingToPublish": "The plan has not changed since it was last published.",
145
- "noSearchResults": "No rows match your search.",
146
- "searchPlaceholder": "Search by task name or changed field",
147
- "addedCount": "{{count}} added",
148
- "changedCount": "{{count}} changed",
149
- "removedCount": "{{count}} removed",
150
- "conflictCount": "{{count}} conflicting",
151
- "conflictHint": "The published plan also moved on these rows while this request was being prepared. The plan under approval was captured as-is — approving publishes the requester's version.",
152
- "publishedSideMoved": "Published side changed",
153
- "hiddenRows": "{{count}} more rows not shown. Narrow the list with search to see them.",
154
- "group": {
155
- "added": "Added",
156
- "changed": "Changed",
157
- "removed": "Removed",
158
- "conflict": "Conflicts"
159
- },
160
- "field": {
161
- "name": "Name",
162
- "type": "Type",
163
- "plannedStart": "Planned start",
164
- "plannedFinish": "Planned finish",
165
- "actualStart": "Actual start",
166
- "actualFinish": "Actual finish",
167
- "progress": "Progress",
168
- "weight": "Weight",
169
- "assignedTo": "Assigned to",
170
- "predecessors": "Predecessors",
171
- "parent": "Parent",
172
- "order": "Order",
173
- "mode": "Scheduling mode",
174
- "resources": "Resources",
175
- "details": "Details"
176
- }
177
- }
178
- },
179
- "runtimeAction": {
180
- "field": {
181
- "progress": "Progress",
182
- "delegatedUser": "Delegated User",
183
- "delegatedUserPlaceholder": "Search user",
184
- "reason": "Reason",
185
- "reasonPlaceholder": "Enter reason",
186
- "note": "Note",
187
- "notePlaceholder": "Enter note",
188
- "attachments": "Attachments",
189
- "uploadTitle": "Upload Attachment",
190
- "uploadDescription": "Click or drop a file to upload"
191
- },
192
- "modal": {
193
- "cancel": "Cancel",
194
- "confirmAction": "Confirm {{ action }} for this item."
195
- },
196
- "preview": {
197
- "name": "Name",
198
- "status": "Status",
199
- "user": "User",
200
- "userOrGroup": "User / Group",
201
- "initiationDate": "Initiation Date",
202
- "actionDate": "Action Date",
203
- "start": "Start",
204
- "end": "End",
205
- "appAction": "App Action",
206
- "formStep": "Form Step",
207
- "approvalCommit": "Commit Approved Form",
208
- "approvalCommitSubtitle": "System · Locked",
209
- "initial": "Initial",
210
- "final": "Final",
211
- "loadFailed": "Failed to load process preview"
212
- },
213
- "actions": {
214
- "loadActionsFailed": "Failed to load item actions."
215
- }
216
- }
217
- }
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
+ "projectDetails": "Project Details",
37
+ "schema": "Schema",
38
+ "publishComparison": "Comparison"
39
+ },
40
+ "entity": {
41
+ "initiatedBy": "Initiated By",
42
+ "startedAt": "Started At",
43
+ "reason": "Reason",
44
+ "attachments": "Attachments",
45
+ "step": "Step"
46
+ },
47
+ "modal": {
48
+ "cancel": "Cancel",
49
+ "submit": "Submit",
50
+ "confirmAction": "Confirm {{ action }} for this item.",
51
+ "previewLevel": "Preview Level",
52
+ "previewModule": "Preview {{ module }}",
53
+ "loadingActions": "Loading actions...",
54
+ "submitting": "Submitting...",
55
+ "requestSubmitted": "Request submitted for approval.",
56
+ "operationExecuted": "Operation executed successfully.",
57
+ "unsupportedType": "This item type is not supported yet.",
58
+ "noItemSelected": "No item selected."
59
+ },
60
+ "validation": {
61
+ "fillRequiredFields": "Please fill in all required fields before submitting."
62
+ },
63
+ "actions": {
64
+ "loadActionsFailed": "Failed to load item actions.",
65
+ "executeFailed": "Failed to execute {{ action }}.",
66
+ "validationWarningsHeader": "Validation warnings",
67
+ "validationWarningsQuestion": "Do you want to acknowledge these warnings and continue?",
68
+ "continueAction": "Continue",
69
+ "validationBlocked": "The form has validation errors that must be fixed before this action.",
70
+ "completeRequiredFields": "Fill in the required fields to enable this action."
71
+ },
72
+ "error": {
73
+ "failedSubmit": "Failed to submit form",
74
+ "failedLoadDetails": "Failed to load item details.",
75
+ "itemUnavailable": "This request is no longer available. It may have been terminated or completed.",
76
+ "failedLoadEscalation": "Failed to load escalation preview",
77
+ "missingModuleDataId": "Task data id is missing.",
78
+ "missingRecordId": "The record this action targets is missing.",
79
+ "failedLoadSchedulePublish": "Failed to load the plan comparison"
80
+ },
81
+ "context": {
82
+ "moduleFormUnavailable": "Module form context is not available for this item yet.",
83
+ "moduleDiscussionUnavailable": "Discussion context is not available for this module yet.",
84
+ "processFormUnavailable": "Process form context is not available for this process item yet.",
85
+ "processDiscussionUnavailable": "Discussion context is not available for this process item yet.",
86
+ "processPreviewUnavailable": "Process preview is not available for this process item yet.",
87
+ "escalationDetailsUnavailable": "Escalation details context is not available for this item yet.",
88
+ "escalationDiscussionUnavailable": "Discussion context is not available for this escalation yet.",
89
+ "escalationSchemaUnavailable": "Escalation schema is not available for this item yet.",
90
+ "escalationSchemaContextUnavailable": "Escalation schema context is not available for this item yet.",
91
+ "requestFormUnavailable": "Process form context is not available for this process request yet.",
92
+ "requestDiscussionUnavailable": "Discussion context is not available for this process request yet.",
93
+ "requestPreviewUnavailable": "Process preview is not available for this process request yet."
94
+ },
95
+ "loading": {
96
+ "escalationDetails": "Loading escalation details...",
97
+ "escalationSchema": "Loading escalation schema...",
98
+ "schedulePublish": "Loading the plan comparison..."
99
+ },
100
+ "preview": {
101
+ "name": "Name",
102
+ "status": "Status",
103
+ "user": "User",
104
+ "userOrGroup": "User / Group",
105
+ "initiationDate": "Initiation Date",
106
+ "actionDate": "Action Date",
107
+ "start": "Start",
108
+ "end": "End",
109
+ "appAction": "App Action",
110
+ "formStep": "Form Step",
111
+ "approvalCommit": "Commit Approved Form",
112
+ "approvalCommitSubtitle": "System · Locked",
113
+ "initial": "Initial",
114
+ "final": "Final",
115
+ "loadFailed": "Failed to load process preview",
116
+ "stepStatus": {
117
+ "approved": "Approved",
118
+ "current": "In Progress",
119
+ "noAction": "No Action",
120
+ "notStarted": "Not Started",
121
+ "rejected": "Rejected",
122
+ "resubmitted": "Resubmitted",
123
+ "returned": "Returned",
124
+ "terminated": "Terminated"
125
+ }
126
+ },
127
+ "field": {
128
+ "progress": "Progress",
129
+ "delegatedUser": "Delegated User",
130
+ "delegatedUserPlaceholder": "Search user",
131
+ "reason": "Reason",
132
+ "reasonPlaceholder": "Enter reason",
133
+ "note": "Note",
134
+ "notePlaceholder": "Enter note",
135
+ "attachments": "Attachments",
136
+ "uploadTitle": "Upload Attachment",
137
+ "uploadDescription": "Click or drop a file to upload"
138
+ },
139
+ "publish": {
140
+ "projectDetailsLiveNote": "Project details reflect the current record. The Comparison tab shows the schedule captured for this request.",
141
+ "before": "Before",
142
+ "after": "After",
143
+ "neverPublished": "This project has not published a plan yet, so there is nothing to compare against. Approving publishes the plan as it currently stands.",
144
+ "nothingToPublish": "The plan has not changed since it was last published.",
145
+ "noSearchResults": "No rows match your search.",
146
+ "searchPlaceholder": "Search by task name or changed field",
147
+ "addedCount": "{{count}} added",
148
+ "changedCount": "{{count}} changed",
149
+ "removedCount": "{{count}} removed",
150
+ "conflictCount": "{{count}} conflicting",
151
+ "conflictHint": "The published plan also moved on these rows while this request was being prepared. The plan under approval was captured as-is — approving publishes the requester's version.",
152
+ "publishedSideMoved": "Published side changed",
153
+ "hiddenRows": "{{count}} more rows not shown. Narrow the list with search to see them.",
154
+ "group": {
155
+ "added": "Added",
156
+ "changed": "Changed",
157
+ "removed": "Removed",
158
+ "conflict": "Conflicts"
159
+ },
160
+ "field": {
161
+ "name": "Name",
162
+ "type": "Type",
163
+ "plannedStart": "Planned start",
164
+ "plannedFinish": "Planned finish",
165
+ "actualStart": "Actual start",
166
+ "actualFinish": "Actual finish",
167
+ "progress": "Progress",
168
+ "weight": "Weight",
169
+ "assignedTo": "Assigned to",
170
+ "predecessors": "Predecessors",
171
+ "parent": "Parent",
172
+ "order": "Order",
173
+ "mode": "Scheduling mode",
174
+ "resources": "Resources",
175
+ "details": "Details"
176
+ }
177
+ }
178
+ },
179
+ "runtimeAction": {
180
+ "field": {
181
+ "progress": "Progress",
182
+ "delegatedUser": "Delegated User",
183
+ "delegatedUserPlaceholder": "Search user",
184
+ "reason": "Reason",
185
+ "reasonPlaceholder": "Enter reason",
186
+ "note": "Note",
187
+ "notePlaceholder": "Enter note",
188
+ "attachments": "Attachments",
189
+ "uploadTitle": "Upload Attachment",
190
+ "uploadDescription": "Click or drop a file to upload"
191
+ },
192
+ "modal": {
193
+ "cancel": "Cancel",
194
+ "confirmAction": "Confirm {{ action }} for this item."
195
+ },
196
+ "preview": {
197
+ "name": "Name",
198
+ "status": "Status",
199
+ "user": "User",
200
+ "userOrGroup": "User / Group",
201
+ "initiationDate": "Initiation Date",
202
+ "actionDate": "Action Date",
203
+ "start": "Start",
204
+ "end": "End",
205
+ "appAction": "App Action",
206
+ "formStep": "Form Step",
207
+ "approvalCommit": "Commit Approved Form",
208
+ "approvalCommitSubtitle": "System · Locked",
209
+ "initial": "Initial",
210
+ "final": "Final",
211
+ "loadFailed": "Failed to load process preview"
212
+ },
213
+ "actions": {
214
+ "loadActionsFailed": "Failed to load item actions."
215
+ }
216
+ }
217
+ }
@@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http';
3
3
  import * as i0 from '@angular/core';
4
4
  import { inject, input, computed, signal, effect, untracked, Component } from '@angular/core';
5
5
  import { TranslocoService } from '@jsverse/transloco';
6
- import { Table } from '@masterteam/components/table';
6
+ import { mtEntityColumn, MtStandardGridComponent } from '@masterteam/data-table';
7
7
  import { StructureBuilder } from '@masterteam/structure-builder';
8
8
 
9
9
  /**
@@ -329,31 +329,38 @@ class WorkCenterProcessPreview {
329
329
  loadSub;
330
330
  requestId = input(null, ...(ngDevMode ? [{ debugName: "requestId" }] : /* istanbul ignore next */ []));
331
331
  view = input('approvals', ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
332
+ rowId = (row) => row.id;
333
+ approvalsLabel = computed(() => this.transloco.translate('workCenter.preview.stepStatus'), ...(ngDevMode ? [{ debugName: "approvalsLabel" }] : /* istanbul ignore next */ []));
332
334
  approvalColumns = computed(() => [
333
335
  {
334
- key: 'stepName',
335
- label: this.transloco.translate('workCenter.preview.name'),
336
+ field: 'stepName',
337
+ headerName: this.transloco.translate('workCenter.preview.name'),
338
+ filter: 'text',
336
339
  },
337
- {
340
+ mtEntityColumn({
338
341
  key: 'status',
339
342
  label: this.transloco.translate('workCenter.preview.status'),
340
- type: 'entity',
341
- },
342
- {
343
+ viewType: 'Status',
344
+ entity: (row) => row.status,
345
+ }),
346
+ mtEntityColumn({
343
347
  key: 'user',
344
348
  label: this.transloco.translate('workCenter.preview.userOrGroup'),
345
- type: 'entity',
346
- },
347
- {
349
+ viewType: 'User',
350
+ entity: (row) => row.user,
351
+ }),
352
+ mtEntityColumn({
348
353
  key: 'createdAt',
349
354
  label: this.transloco.translate('workCenter.preview.initiationDate'),
350
- type: 'entity',
351
- },
352
- {
355
+ viewType: 'DateTime',
356
+ entity: (row) => row.createdAt,
357
+ }),
358
+ mtEntityColumn({
353
359
  key: 'actionDate',
354
360
  label: this.transloco.translate('workCenter.preview.actionDate'),
355
- type: 'entity',
356
- },
361
+ viewType: 'DateTime',
362
+ entity: (row) => row.actionDate,
363
+ }),
357
364
  ], ...(ngDevMode ? [{ debugName: "approvalColumns" }] : /* istanbul ignore next */ []));
358
365
  loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
359
366
  error = signal(null, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
@@ -365,7 +372,8 @@ class WorkCenterProcessPreview {
365
372
  currentStepIds: preview?.currentStepIds,
366
373
  resolveDisplayName: (value) => this.resolveDisplayName(value),
367
374
  });
368
- return rows.map((row) => ({
375
+ return rows.map((row, index) => ({
376
+ id: String(index),
369
377
  stepName: row.stepName,
370
378
  status: buildEntity('Status', 'Status', row.status),
371
379
  user: row.user.kind === 'text'
@@ -517,11 +525,11 @@ class WorkCenterProcessPreview {
517
525
  });
518
526
  }
519
527
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: WorkCenterProcessPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });
520
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: WorkCenterProcessPreview, isStandalone: true, selector: "mt-work-center-process-preview", inputs: { requestId: { classPropertyName: "requestId", publicName: "requestId", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (!canRenderPreview()) {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\r\n >\r\n <p class=\"max-w-md text-center text-sm text-surface-500\">\r\n Process preview is not available for this item yet.\r\n </p>\r\n </div>\r\n} @else if (loading()) {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\r\n >\r\n <p class=\"text-sm text-surface-500\">Loading process preview...</p>\r\n </div>\r\n} @else if (error()) {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-red-300 bg-red-50 p-6\"\r\n >\r\n <p class=\"max-w-md text-center text-sm text-red-600\">{{ error() }}</p>\r\n </div>\r\n} @else {\r\n @if (view() === \"schema\") {\r\n @if (hasSchema()) {\r\n <div class=\"wc-process-preview-schema h-[70vh] overflow-hidden\">\r\n <mt-structure-builder\r\n class=\"h-full\"\r\n [layoutDirection]=\"'LR'\"\r\n [readonly]=\"true\"\r\n [structureMode]=\"'workflow'\"\r\n [nodeFields]=\"previewNodeFields\"\r\n [nodes]=\"schemaNodes()\"\r\n [connections]=\"schemaConnections()\"\r\n />\r\n </div>\r\n } @else {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\r\n >\r\n <p class=\"max-w-md text-center text-sm text-surface-500\">\r\n Process steps are not available for this item yet.\r\n </p>\r\n </div>\r\n }\r\n } @else if (hasApprovals()) {\r\n <div class=\"max-h-[70vh] overflow-y-auto\">\r\n <mt-table\r\n noCard\r\n [data]=\"approvalRows()\"\r\n [columns]=\"approvalColumns()\"\r\n storageKey=\"work-center-process-preview-table\"\r\n [showFilters]=\"false\"\r\n [generalSearch]=\"false\"\r\n [clickableRows]=\"false\"\r\n />\r\n </div>\r\n } @else {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\r\n >\r\n <p class=\"max-w-md text-center text-sm text-surface-500\">\r\n Process approvals data is not available for this item yet.\r\n </p>\r\n </div>\r\n }\r\n}\r\n", styles: [":host ::ng-deep .wc-process-preview-schema .wf-detail-row{align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "component", type: StructureBuilder, selector: "mt-structure-builder", inputs: ["availableNodes", "availableNodesLabel", "nodeForm", "nodeDialogFooterConfig", "connectionForm", "connectionFormulaSchemaId", "connectionFormulaModuleId", "connectionFormulaConfig", "connectionGuard", "nodeActions", "nodeFields", "isAutoLayout", "readonly", "structureMode", "nodeStyle", "addModalType", "updateModalType", "addModalStyleClass", "updateModalStyleClass", "addModalHeader", "updateModalHeader", "appendTo", "availableTabsClass", "layoutDirection", "nodes", "connections", "nodeTemplate"], outputs: ["nodeActionsEvent", "action", "nodesChange", "connectionsChange"] }] });
528
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: WorkCenterProcessPreview, isStandalone: true, selector: "mt-work-center-process-preview", inputs: { requestId: { classPropertyName: "requestId", publicName: "requestId", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (!canRenderPreview()) {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\n >\n <p class=\"max-w-md text-center text-sm text-surface-500\">\n Process preview is not available for this item yet.\n </p>\n </div>\n} @else if (loading()) {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\n >\n <p class=\"text-sm text-surface-500\">Loading process preview...</p>\n </div>\n} @else if (error()) {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-red-300 bg-red-50 p-6\"\n >\n <p class=\"max-w-md text-center text-sm text-red-600\">{{ error() }}</p>\n </div>\n} @else {\n @if (view() === \"schema\") {\n @if (hasSchema()) {\n <div class=\"wc-process-preview-schema h-[70vh] overflow-hidden\">\n <mt-structure-builder\n class=\"h-full\"\n [layoutDirection]=\"'LR'\"\n [readonly]=\"true\"\n [structureMode]=\"'workflow'\"\n [nodeFields]=\"previewNodeFields\"\n [nodes]=\"schemaNodes()\"\n [connections]=\"schemaConnections()\"\n />\n </div>\n } @else {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\n >\n <p class=\"max-w-md text-center text-sm text-surface-500\">\n Process steps are not available for this item yet.\n </p>\n </div>\n }\n } @else if (hasApprovals()) {\n <div class=\"max-h-[70vh] overflow-y-auto\">\n <mt-standard-grid\n [rows]=\"approvalRows()\"\n [columns]=\"approvalColumns()\"\n [rowId]=\"rowId\"\n [label]=\"approvalsLabel()\"\n height=\"auto\"\n [exportName]=\"approvalsLabel()\"\n />\n </div>\n } @else {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\n >\n <p class=\"max-w-md text-center text-sm text-surface-500\">\n Process approvals data is not available for this item yet.\n </p>\n </div>\n }\n}\n", styles: [":host ::ng-deep .wc-process-preview-schema .wf-detail-row{align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MtStandardGridComponent, selector: "mt-standard-grid", inputs: ["rows", "columns", "rowId", "label", "loading", "height", "selection", "exportable", "exportName", "exportFormats", "exporter", "rowMenuItems", "server", "paged", "detail", "chartContext", "search", "emptyTitle", "emptyDescription", "view"], outputs: ["gridReady", "rowClicked", "selectionChanged", "sortChanged", "filterChanged", "paginationChanged", "rowGroupOpened", "viewChanged", "chartsChanged"] }, { kind: "component", type: StructureBuilder, selector: "mt-structure-builder", inputs: ["availableNodes", "availableNodesLabel", "nodeForm", "nodeDialogFooterConfig", "connectionForm", "connectionFormulaSchemaId", "connectionFormulaModuleId", "connectionFormulaConfig", "connectionGuard", "nodeActions", "nodeFields", "isAutoLayout", "readonly", "structureMode", "nodeStyle", "addModalType", "updateModalType", "addModalStyleClass", "updateModalStyleClass", "addModalHeader", "updateModalHeader", "appendTo", "availableTabsClass", "layoutDirection", "nodes", "connections", "nodeTemplate"], outputs: ["nodeActionsEvent", "action", "nodesChange", "connectionsChange"] }] });
521
529
  }
522
530
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: WorkCenterProcessPreview, decorators: [{
523
531
  type: Component,
524
- args: [{ selector: 'mt-work-center-process-preview', standalone: true, imports: [CommonModule, Table, StructureBuilder], template: "@if (!canRenderPreview()) {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\r\n >\r\n <p class=\"max-w-md text-center text-sm text-surface-500\">\r\n Process preview is not available for this item yet.\r\n </p>\r\n </div>\r\n} @else if (loading()) {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\r\n >\r\n <p class=\"text-sm text-surface-500\">Loading process preview...</p>\r\n </div>\r\n} @else if (error()) {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-red-300 bg-red-50 p-6\"\r\n >\r\n <p class=\"max-w-md text-center text-sm text-red-600\">{{ error() }}</p>\r\n </div>\r\n} @else {\r\n @if (view() === \"schema\") {\r\n @if (hasSchema()) {\r\n <div class=\"wc-process-preview-schema h-[70vh] overflow-hidden\">\r\n <mt-structure-builder\r\n class=\"h-full\"\r\n [layoutDirection]=\"'LR'\"\r\n [readonly]=\"true\"\r\n [structureMode]=\"'workflow'\"\r\n [nodeFields]=\"previewNodeFields\"\r\n [nodes]=\"schemaNodes()\"\r\n [connections]=\"schemaConnections()\"\r\n />\r\n </div>\r\n } @else {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\r\n >\r\n <p class=\"max-w-md text-center text-sm text-surface-500\">\r\n Process steps are not available for this item yet.\r\n </p>\r\n </div>\r\n }\r\n } @else if (hasApprovals()) {\r\n <div class=\"max-h-[70vh] overflow-y-auto\">\r\n <mt-table\r\n noCard\r\n [data]=\"approvalRows()\"\r\n [columns]=\"approvalColumns()\"\r\n storageKey=\"work-center-process-preview-table\"\r\n [showFilters]=\"false\"\r\n [generalSearch]=\"false\"\r\n [clickableRows]=\"false\"\r\n />\r\n </div>\r\n } @else {\r\n <div\r\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\r\n >\r\n <p class=\"max-w-md text-center text-sm text-surface-500\">\r\n Process approvals data is not available for this item yet.\r\n </p>\r\n </div>\r\n }\r\n}\r\n", styles: [":host ::ng-deep .wc-process-preview-schema .wf-detail-row{align-items:center}\n"] }]
532
+ args: [{ selector: 'mt-work-center-process-preview', standalone: true, imports: [CommonModule, MtStandardGridComponent, StructureBuilder], template: "@if (!canRenderPreview()) {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\n >\n <p class=\"max-w-md text-center text-sm text-surface-500\">\n Process preview is not available for this item yet.\n </p>\n </div>\n} @else if (loading()) {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\n >\n <p class=\"text-sm text-surface-500\">Loading process preview...</p>\n </div>\n} @else if (error()) {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-red-300 bg-red-50 p-6\"\n >\n <p class=\"max-w-md text-center text-sm text-red-600\">{{ error() }}</p>\n </div>\n} @else {\n @if (view() === \"schema\") {\n @if (hasSchema()) {\n <div class=\"wc-process-preview-schema h-[70vh] overflow-hidden\">\n <mt-structure-builder\n class=\"h-full\"\n [layoutDirection]=\"'LR'\"\n [readonly]=\"true\"\n [structureMode]=\"'workflow'\"\n [nodeFields]=\"previewNodeFields\"\n [nodes]=\"schemaNodes()\"\n [connections]=\"schemaConnections()\"\n />\n </div>\n } @else {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\n >\n <p class=\"max-w-md text-center text-sm text-surface-500\">\n Process steps are not available for this item yet.\n </p>\n </div>\n }\n } @else if (hasApprovals()) {\n <div class=\"max-h-[70vh] overflow-y-auto\">\n <mt-standard-grid\n [rows]=\"approvalRows()\"\n [columns]=\"approvalColumns()\"\n [rowId]=\"rowId\"\n [label]=\"approvalsLabel()\"\n height=\"auto\"\n [exportName]=\"approvalsLabel()\"\n />\n </div>\n } @else {\n <div\n class=\"flex min-h-[22rem] items-center justify-center rounded-lg border border-dashed border-surface-300 bg-surface-50 p-6\"\n >\n <p class=\"max-w-md text-center text-sm text-surface-500\">\n Process approvals data is not available for this item yet.\n </p>\n </div>\n }\n}\n", styles: [":host ::ng-deep .wc-process-preview-schema .wf-detail-row{align-items:center}\n"] }]
525
533
  }], ctorParameters: () => [], propDecorators: { requestId: [{ type: i0.Input, args: [{ isSignal: true, alias: "requestId", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }] } });
526
534
  function buildEntity(name, viewType, value) {
527
535
  return {
@@ -535,4 +543,4 @@ function buildEntity(name, viewType, value) {
535
543
  }
536
544
 
537
545
  export { WorkCenterProcessPreview };
538
- //# sourceMappingURL=masterteam-work-center-work-center-process-preview-jbm4vnuM.mjs.map
546
+ //# sourceMappingURL=masterteam-work-center-work-center-process-preview-BOWFfPh5.mjs.map