@things-factory/worklist 10.1.5 → 10.1.7
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/dist-client/components/activity-approval-ribon.js +17 -2
- package/dist-client/components/activity-approval-ribon.js.map +1 -1
- package/dist-client/components/activity-instance-preview.js +5 -4
- package/dist-client/components/activity-instance-preview.js.map +1 -1
- package/dist-client/components/activity-starter-form.js +14 -10
- package/dist-client/components/activity-starter-form.js.map +1 -1
- package/dist-client/components/activity-thread-timeline.d.ts +2 -2
- package/dist-client/components/decision-slots.d.ts +118 -0
- package/dist-client/components/decision-slots.js +125 -0
- package/dist-client/components/decision-slots.js.map +1 -0
- package/dist-client/components/mutation-outcome.d.ts +57 -0
- package/dist-client/components/mutation-outcome.js +78 -0
- package/dist-client/components/mutation-outcome.js.map +1 -0
- package/dist-client/components/say-outcome.d.ts +25 -0
- package/dist-client/components/say-outcome.js +51 -0
- package/dist-client/components/say-outcome.js.map +1 -0
- package/dist-client/pages/activity/activity-list-page.js +28 -12
- package/dist-client/pages/activity/activity-list-page.js.map +1 -1
- package/dist-client/pages/activity/activity-model-item-list.js +4 -3
- package/dist-client/pages/activity/activity-model-item-list.js.map +1 -1
- package/dist-client/pages/activity/activity-page.d.ts +2 -2
- package/dist-client/pages/activity/activity-page.js +25 -21
- package/dist-client/pages/activity/activity-page.js.map +1 -1
- package/dist-client/pages/activity-approval/activity-approval-importer.js +4 -3
- package/dist-client/pages/activity-approval/activity-approval-importer.js.map +1 -1
- package/dist-client/pages/activity-approval/activity-approval-list-page.js +8 -9
- package/dist-client/pages/activity-approval/activity-approval-list-page.js.map +1 -1
- package/dist-client/pages/activity-approval/activity-approval-page.d.ts +75 -1
- package/dist-client/pages/activity-approval/activity-approval-page.js +487 -57
- package/dist-client/pages/activity-approval/activity-approval-page.js.map +1 -1
- package/dist-client/pages/activity-catalog/activity-catalog-page.d.ts +11 -0
- package/dist-client/pages/activity-catalog/activity-catalog-page.js +48 -1
- package/dist-client/pages/activity-catalog/activity-catalog-page.js.map +1 -1
- package/dist-client/pages/activity-instance/activity-instance-start-page.js +24 -18
- package/dist-client/pages/activity-instance/activity-instance-start-page.js.map +1 -1
- package/dist-client/pages/activity-instance/activity-instance-view.js +1 -0
- package/dist-client/pages/activity-instance/activity-instance-view.js.map +1 -1
- package/dist-client/pages/activity-stats/activity-stats-importer.js +4 -3
- package/dist-client/pages/activity-stats/activity-stats-importer.js.map +1 -1
- package/dist-client/pages/activity-stats/activity-stats-list-page.js +8 -9
- package/dist-client/pages/activity-stats/activity-stats-list-page.js.map +1 -1
- package/dist-client/pages/activity-template/activity-template-importer.js +4 -3
- package/dist-client/pages/activity-template/activity-template-importer.js.map +1 -1
- package/dist-client/pages/activity-template/activity-template-list-page.js +8 -9
- package/dist-client/pages/activity-template/activity-template-list-page.js.map +1 -1
- package/dist-client/pages/activity-template/activity-template-model-item-list.js +4 -3
- package/dist-client/pages/activity-template/activity-template-model-item-list.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-importer.js +4 -3
- package/dist-client/pages/activity-thread/activity-thread-importer.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-list-page.js +8 -9
- package/dist-client/pages/activity-thread/activity-thread-list-page.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-page.d.ts +1 -1
- package/dist-client/pages/activity-thread/activity-thread-page.js +22 -20
- package/dist-client/pages/activity-thread/activity-thread-page.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-view-page.d.ts +1 -1
- package/dist-client/pages/activity-thread/activity-thread-view-page.js +1 -0
- package/dist-client/pages/activity-thread/activity-thread-view-page.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-view.d.ts +1 -1
- package/dist-client/pages/installable-activity/installable-activity-list-page.d.ts +27 -0
- package/dist-client/pages/installable-activity/installable-activity-list-page.js +70 -11
- package/dist-client/pages/installable-activity/installable-activity-list-page.js.map +1 -1
- package/dist-client/pages/todo/draft-list-page.js +1 -0
- package/dist-client/pages/todo/draft-list-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/controllers/activity-approval/approval-line.d.ts +32 -0
- package/dist-server/controllers/activity-approval/approval-line.js +35 -0
- package/dist-server/controllers/activity-approval/approval-line.js.map +1 -1
- package/dist-server/controllers/activity-approval/approve.js +17 -0
- package/dist-server/controllers/activity-approval/approve.js.map +1 -1
- package/dist-server/controllers/activity-approval/reject.js +21 -1
- package/dist-server/controllers/activity-approval/reject.js.map +1 -1
- package/dist-server/controllers/activity-installation/activity-installation-controller.js +5 -9
- package/dist-server/controllers/activity-installation/activity-installation-controller.js.map +1 -1
- package/dist-server/controllers/activity-installation/installable-to-activity.d.ts +62 -0
- package/dist-server/controllers/activity-installation/installable-to-activity.js +53 -0
- package/dist-server/controllers/activity-installation/installable-to-activity.js.map +1 -0
- package/dist-server/controllers/activity-installation/registry-conflict.d.ts +32 -0
- package/dist-server/controllers/activity-installation/registry-conflict.js +21 -0
- package/dist-server/controllers/activity-installation/registry-conflict.js.map +1 -0
- package/dist-server/controllers/activity-instance/draft.js +3 -0
- package/dist-server/controllers/activity-instance/draft.js.map +1 -1
- package/dist-server/controllers/activity-instance/entitlement.d.ts +25 -0
- package/dist-server/controllers/activity-instance/entitlement.js +108 -0
- package/dist-server/controllers/activity-instance/entitlement.js.map +1 -0
- package/dist-server/controllers/activity-instance/issue.js +10 -0
- package/dist-server/controllers/activity-instance/issue.js.map +1 -1
- package/dist-server/controllers/activity-instance/pick.js +8 -0
- package/dist-server/controllers/activity-instance/pick.js.map +1 -1
- package/dist-server/service/activity/activity-decision-key-item-type.d.ts +160 -0
- package/dist-server/service/activity/activity-decision-key-item-type.js +176 -0
- package/dist-server/service/activity/activity-decision-key-item-type.js.map +1 -0
- package/dist-server/service/activity/activity-type.d.ts +3 -0
- package/dist-server/service/activity/activity-type.js +8 -0
- package/dist-server/service/activity/activity-type.js.map +1 -1
- package/dist-server/service/activity/activity.d.ts +30 -0
- package/dist-server/service/activity/activity.js +14 -0
- package/dist-server/service/activity/activity.js.map +1 -1
- package/dist-server/service/activity/decision-key-declaration.d.ts +33 -0
- package/dist-server/service/activity/decision-key-declaration.js +67 -0
- package/dist-server/service/activity/decision-key-declaration.js.map +1 -0
- package/dist-server/service/activity/{credential-guard-subscriber.d.ts → declaration-guard-subscriber.d.ts} +6 -1
- package/dist-server/service/activity/declaration-guard-subscriber.js +46 -0
- package/dist-server/service/activity/declaration-guard-subscriber.js.map +1 -0
- package/dist-server/service/activity/index.d.ts +2 -2
- package/dist-server/service/activity/index.js +2 -2
- package/dist-server/service/activity/index.js.map +1 -1
- package/dist-server/service/activity/search-key-declaration.d.ts +38 -0
- package/dist-server/service/activity/search-key-declaration.js +49 -0
- package/dist-server/service/activity/search-key-declaration.js.map +1 -0
- package/dist-server/service/activity-instance/activity-instance-mutation.js +20 -9
- package/dist-server/service/activity-instance/activity-instance-mutation.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-query.js +25 -2
- package/dist-server/service/activity-instance/activity-instance-query.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-type.js.map +1 -1
- package/dist-server/service/index.d.ts +2 -2
- package/dist-server/service/installable-activity/installable-activity-mutation.js +24 -0
- package/dist-server/service/installable-activity/installable-activity-mutation.js.map +1 -1
- package/dist-server/service/installable-activity/installable-activity.d.ts +9 -0
- package/dist-server/service/installable-activity/installable-activity.js +5 -0
- package/dist-server/service/installable-activity/installable-activity.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/translations/en.json +33 -6
- package/translations/ja.json +27 -0
- package/translations/ko.json +33 -6
- package/translations/ms.json +27 -0
- package/translations/zh.json +27 -0
- package/dist-server/service/activity/credential-guard-subscriber.js +0 -35
- package/dist-server/service/activity/credential-guard-subscriber.js.map +0 -1
package/translations/zh.json
CHANGED
|
@@ -19,8 +19,11 @@
|
|
|
19
19
|
"button.unschedule-task": "取消安排任务",
|
|
20
20
|
"error.activity not found": "未找到此任务模板({activity})。",
|
|
21
21
|
"error.activity-approval is already terminated": "此批准任务({activityApproval})已被终止({actual})。",
|
|
22
|
+
"error.activity-approval is reference only": "您在此审批中为参照人。可以留下意见,批准与驳回由审批人处理。",
|
|
22
23
|
"error.activity-approval not found": "未找到此批准任务({activityApproval})。",
|
|
23
24
|
"error.activity-approval taken by someone else": "他人已先行处理,请重新加载列表。",
|
|
25
|
+
"error.activity-instance belongs to someone else": "{id} is someone else's draft. Only the person who wrote it, or someone who manages activity instances, may edit or issue it.",
|
|
26
|
+
"error.activity-instance is addressed to another role": "{id} is addressed to another role. Someone holding that role picks it up.",
|
|
24
27
|
"error.activity-instance is already issued": "此任务({id})已被以{state}状态提出。",
|
|
25
28
|
"error.activity-instance is already terminated": "此任务({id})已以{state}状态终止。",
|
|
26
29
|
"error.activity-instance not found": "未找到此任务({activityInstance})。",
|
|
@@ -41,6 +44,7 @@
|
|
|
41
44
|
"field.approval-owner": "负责人",
|
|
42
45
|
"field.approval-subject": "事项",
|
|
43
46
|
"field.approval-submitted-at": "提交日",
|
|
47
|
+
"field.approval-view": "审批界面",
|
|
44
48
|
"field.artifact": "产物",
|
|
45
49
|
"field.assigned-at": "分配于",
|
|
46
50
|
"field.assignee": "受让人",
|
|
@@ -72,6 +76,7 @@
|
|
|
72
76
|
"field.quantifier": "定量器",
|
|
73
77
|
"field.readiness-gaps": "尚未完成的部分",
|
|
74
78
|
"field.readiness-notes": "参考",
|
|
79
|
+
"field.reason": "事由",
|
|
75
80
|
"field.release": "释放",
|
|
76
81
|
"field.report-source": "报告来源",
|
|
77
82
|
"field.report-type": "报告类型",
|
|
@@ -95,6 +100,7 @@
|
|
|
95
100
|
"field.updated-at": "更新于",
|
|
96
101
|
"field.view-source": "视图来源",
|
|
97
102
|
"field.view-type": "视图类型",
|
|
103
|
+
"field.what-is-built": "已实现的部分",
|
|
98
104
|
"field.wl-changed-at": "最近变更",
|
|
99
105
|
"field.wl-comment": "意见",
|
|
100
106
|
"field.wl-drafter": "起草人",
|
|
@@ -151,6 +157,7 @@
|
|
|
151
157
|
"label.approval-info": "审批信息",
|
|
152
158
|
"label.approval-noted": "有备注",
|
|
153
159
|
"label.approval-round-n": "第{n}次重新提交",
|
|
160
|
+
"label.current-state": "当前状态",
|
|
154
161
|
"label.days": "天",
|
|
155
162
|
"label.filter-aborted": "已中止",
|
|
156
163
|
"label.filter-deprecated": "已弃用",
|
|
@@ -179,7 +186,14 @@
|
|
|
179
186
|
"label.thread-basics": "基本信息",
|
|
180
187
|
"label.thread-info": "任务信息",
|
|
181
188
|
"label.timeline": "时间线",
|
|
189
|
+
"label.what-changes": "批准后将发生的变化",
|
|
190
|
+
"label.what-it-was-judged-from": "判断依据",
|
|
191
|
+
"label.why-approval": "提交审批的原因",
|
|
182
192
|
"label.yes": "是",
|
|
193
|
+
"text.activity-activated": "已在此域中启用 {name}。",
|
|
194
|
+
"text.activity-change-failed": "未能更改 {name} — {why}",
|
|
195
|
+
"text.activity-change-not-allowed": "您无权更改 {name}。请向管理员申请业务活动权限。",
|
|
196
|
+
"text.activity-deactivated": "已停用 {name}。此业务将不再提交。",
|
|
183
197
|
"text.activity-guide-unwritten": "此业务的说明尚未准备。",
|
|
184
198
|
"text.activity-in-use-here": "使用中",
|
|
185
199
|
"text.activity-not-in-use-here": "尚未使用",
|
|
@@ -187,15 +201,19 @@
|
|
|
187
201
|
"text.and-n-more": "还有 {n} 件",
|
|
188
202
|
"text.and-n-more-fields": "(另{n}项)",
|
|
189
203
|
"text.approval-comment-hint": "批准时可以不填意见。驳回时必须填写理由。",
|
|
204
|
+
"text.approval-is-irreversible": "批准后无法撤销。",
|
|
205
|
+
"text.approval-is-reversible": "批准后可以撤销。",
|
|
190
206
|
"text.approval-line-empty": "没有审批人",
|
|
191
207
|
"text.approval-line-steps": "{n} 级",
|
|
192
208
|
"text.approval-line-unknown": "无法读取审批线",
|
|
209
|
+
"text.approval-view-not-loaded": "无法加载此业务的审批界面。",
|
|
193
210
|
"text.approver-not-yet": "尚未确定",
|
|
194
211
|
"text.assign": "分配",
|
|
195
212
|
"text.calendar-not-loaded": "无法加载日历。此处为空并不表示您没有待办事项",
|
|
196
213
|
"text.catalog-not-loaded": "无法加载业务目录。",
|
|
197
214
|
"text.copy-failed": "无法复制",
|
|
198
215
|
"text.copy-payload": "以原始 JSON 复制此值",
|
|
216
|
+
"text.decision-keys-count": "判断项 {n} 个",
|
|
199
217
|
"text.draft": "草稿",
|
|
200
218
|
"text.due-just-passed": "刚刚超期",
|
|
201
219
|
"text.due-left-in": "剩余{span}",
|
|
@@ -209,10 +227,13 @@
|
|
|
209
227
|
"text.filter-due-hint": "{hours}小时内到期",
|
|
210
228
|
"text.filter-important-hint": "优先级 {from} 及以上",
|
|
211
229
|
"text.finished-on-this-day": "这天完成",
|
|
230
|
+
"text.generated-approval-view": "默认界面",
|
|
212
231
|
"text.group-approval-hint": "您批准或驳回后才会继续",
|
|
213
232
|
"text.group-reference-hint": "不会阻断审批。有意见可以写下来",
|
|
214
233
|
"text.handed-over-on-this-day": "没有期限。这天收到",
|
|
215
234
|
"text.installable-activities": "可安装的业务",
|
|
235
|
+
"text.it-did-not-go-through": "未能处理 — {said}",
|
|
236
|
+
"text.model-in-out": "接收值 {taking} 项 · 待填写 {giving} 项",
|
|
216
237
|
"text.no activity thread info": "无活动线程信息",
|
|
217
238
|
"text.no-activity-fields": "没有需要填写的项目",
|
|
218
239
|
"text.no-activity-fields-why": "此任务只需确认内容并提交即可完成。请查看以上信息后提交。",
|
|
@@ -224,14 +245,19 @@
|
|
|
224
245
|
"text.no-due": "无期限",
|
|
225
246
|
"text.no-installable-activity": "没有已注册的业务",
|
|
226
247
|
"text.no-installable-activity-why": "各功能注册自己的业务。",
|
|
248
|
+
"text.no-reason-given": "未填写事由。",
|
|
227
249
|
"text.no-reference-description": "知会是通知,不是审批。您不回应审批也会继续,有意见可以写下来。",
|
|
228
250
|
"text.no-reference-title": "没有知会您的事项",
|
|
229
251
|
"text.no-value": "无值",
|
|
252
|
+
"text.not-allowed-to-do-this": "您无权执行此操作。请向管理员申请。",
|
|
253
|
+
"text.own-approval-view": "专用",
|
|
230
254
|
"text.pick": "挑选",
|
|
231
255
|
"text.reference-after-decision": "决定之后写的意见",
|
|
232
256
|
"text.reference-closed-silent": "只收到通知,没有意见",
|
|
257
|
+
"text.reference-comment-hint": "您在此为参照人。仅留下意见,批准与驳回由审批人处理。",
|
|
233
258
|
"text.reference-open": "可以写意见",
|
|
234
259
|
"text.save": "保存",
|
|
260
|
+
"text.signed-out-sign-in-again": "登录已失效。请重新登录后再试。",
|
|
235
261
|
"text.task_is_approved_successfully": "任务已成功批准。",
|
|
236
262
|
"text.task_is_finished_successfully": "任务已成功完成。",
|
|
237
263
|
"text.task_is_rejected_successfully": "任务已成功拒绝。",
|
|
@@ -239,6 +265,7 @@
|
|
|
239
265
|
"text.task_is_saved_successfully": "任务已成功保存。",
|
|
240
266
|
"text.task_is_started_successfully": "任务已成功开始。",
|
|
241
267
|
"text.timeline-count": "{count}条",
|
|
268
|
+
"text.write-your-comment-as-reference": "请填写您的意见。",
|
|
242
269
|
"title.activity": "业务",
|
|
243
270
|
"title.activity application": "业务申请",
|
|
244
271
|
"title.activity approval": "业务批准",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActivityCredentialGuardSubscriber = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const activity_js_1 = require("./activity.js");
|
|
7
|
-
const credential_field_js_1 = require("./credential-field.js");
|
|
8
|
-
/**
|
|
9
|
-
* **One place, because there are five ways in.**
|
|
10
|
-
*
|
|
11
|
-
* Activities are saved by createActivity, updateActivity, multipleUpsertActivities, the importer,
|
|
12
|
-
* and installActivity. A check written at each of those is not a rule — it is five things to
|
|
13
|
-
* remember, and the sixth way in arrives without it.
|
|
14
|
-
*
|
|
15
|
-
* TypeORM's subscriber is the seam every one of them passes through. Throwing here aborts the
|
|
16
|
-
* transaction, so a refused model is never half-written.
|
|
17
|
-
*
|
|
18
|
-
* A template carrying such a field is caught here too: installActivity saves an Activity from it.
|
|
19
|
-
*/
|
|
20
|
-
let ActivityCredentialGuardSubscriber = class ActivityCredentialGuardSubscriber {
|
|
21
|
-
listenTo() {
|
|
22
|
-
return activity_js_1.Activity;
|
|
23
|
-
}
|
|
24
|
-
beforeInsert(event) {
|
|
25
|
-
(0, credential_field_js_1.assertNoCredentialField)(event.entity?.model, event.entity?.name);
|
|
26
|
-
}
|
|
27
|
-
beforeUpdate(event) {
|
|
28
|
-
(0, credential_field_js_1.assertNoCredentialField)(event.entity?.model, event.entity?.name);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.ActivityCredentialGuardSubscriber = ActivityCredentialGuardSubscriber;
|
|
32
|
-
exports.ActivityCredentialGuardSubscriber = ActivityCredentialGuardSubscriber = tslib_1.__decorate([
|
|
33
|
-
(0, typeorm_1.EventSubscriber)()
|
|
34
|
-
], ActivityCredentialGuardSubscriber);
|
|
35
|
-
//# sourceMappingURL=credential-guard-subscriber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"credential-guard-subscriber.js","sourceRoot":"","sources":["../../../server/service/activity/credential-guard-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAA8F;AAE9F,+CAAwC;AACxC,+DAA+D;AAE/D;;;;;;;;;;;GAWG;AAEI,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC5C,QAAQ;QACN,OAAO,sBAAQ,CAAA;IACjB,CAAC;IAED,YAAY,CAAC,KAA4B;QACvC,IAAA,6CAAuB,EAAC,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAClE,CAAC;IAED,YAAY,CAAC,KAA4B;QACvC,IAAA,6CAAuB,EAAE,KAAK,CAAC,MAAmB,EAAE,KAAK,EAAG,KAAK,CAAC,MAAmB,EAAE,IAAI,CAAC,CAAA;IAC9F,CAAC;CACF,CAAA;AAZY,8EAAiC;4CAAjC,iCAAiC;IAD7C,IAAA,yBAAe,GAAE;GACL,iCAAiC,CAY7C","sourcesContent":["import { EntitySubscriberInterface, EventSubscriber, InsertEvent, UpdateEvent } from 'typeorm'\n\nimport { Activity } from './activity.js'\nimport { assertNoCredentialField } from './credential-field.js'\n\n/**\n * **One place, because there are five ways in.**\n *\n * Activities are saved by createActivity, updateActivity, multipleUpsertActivities, the importer,\n * and installActivity. A check written at each of those is not a rule — it is five things to\n * remember, and the sixth way in arrives without it.\n *\n * TypeORM's subscriber is the seam every one of them passes through. Throwing here aborts the\n * transaction, so a refused model is never half-written.\n *\n * A template carrying such a field is caught here too: installActivity saves an Activity from it.\n */\n@EventSubscriber()\nexport class ActivityCredentialGuardSubscriber implements EntitySubscriberInterface<Activity> {\n listenTo() {\n return Activity\n }\n\n beforeInsert(event: InsertEvent<Activity>) {\n assertNoCredentialField(event.entity?.model, event.entity?.name)\n }\n\n beforeUpdate(event: UpdateEvent<Activity>) {\n assertNoCredentialField((event.entity as Activity)?.model, (event.entity as Activity)?.name)\n }\n}\n"]}
|