@things-factory/process 10.1.303 → 10.1.304
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/pages/event/event-list-page.d.ts +1 -0
- package/dist-client/pages/event/event-list-page.js +11 -5
- package/dist-client/pages/gateway/gateway-list-page.d.ts +1 -0
- package/dist-client/pages/gateway/gateway-list-page.js +11 -5
- package/dist-client/pages/process/process-list-page.d.ts +1 -0
- package/dist-client/pages/process/process-list-page.js +11 -5
- package/dist-client/pages/process-instance/process-instance-list-page.d.ts +1 -0
- package/dist-client/pages/process-instance/process-instance-list-page.js +11 -5
- package/dist-client/pages/process-thread/process-thread-list-page.d.ts +1 -0
- package/dist-client/pages/process-thread/process-thread-list-page.js +11 -5
- package/dist-server/service/process/process-query.js +3 -3
- package/dist-server/service/process-instance/process-instance-query.js +1 -1
- package/dist-server/service/process-thread/process-thread-query.js +2 -2
- package/package.json +8 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import '@operato/data-grist';
|
|
3
|
+
import '@things-factory/ai-assistant/dist-client/index.js';
|
|
3
4
|
import { CommonButtonStyles, CommonHeaderStyles, CommonGristStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles';
|
|
4
5
|
import { PageView } from '@operato/shell';
|
|
5
6
|
import { css, html } from 'lit';
|
|
@@ -53,10 +54,6 @@ let EventListPage = class EventListPage extends localize(i18next)(ScopedElements
|
|
|
53
54
|
{ title: i18next.t('button.save'),
|
|
54
55
|
action: this._updateEvent.bind(this),
|
|
55
56
|
...CommonButtonStyles.save
|
|
56
|
-
},
|
|
57
|
-
{ title: i18next.t('button.delete'),
|
|
58
|
-
action: this._deleteEvent.bind(this),
|
|
59
|
-
...CommonButtonStyles.delete
|
|
60
57
|
}
|
|
61
58
|
],
|
|
62
59
|
exportable: { name: i18next.t('title.event list'),
|
|
@@ -69,6 +66,14 @@ let EventListPage = class EventListPage extends localize(i18next)(ScopedElements
|
|
|
69
66
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
|
|
70
67
|
return html `
|
|
71
68
|
<ox-grist class="page-fill" .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
69
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
70
|
+
<ox-assistant-selection-bar
|
|
71
|
+
slot="selection"
|
|
72
|
+
.gridOf=${() => this.grist}
|
|
73
|
+
name=${i18next.t('title.event list')}
|
|
74
|
+
.assistant=${false}
|
|
75
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteEvent() }]}
|
|
76
|
+
></ox-assistant-selection-bar>
|
|
72
77
|
<div slot="headroom" class="header">
|
|
73
78
|
<div class="filters">
|
|
74
79
|
<ox-filters-form without-search autofocus></ox-filters-form>
|
|
@@ -215,8 +220,9 @@ let EventListPage = class EventListPage extends localize(i18next)(ScopedElements
|
|
|
215
220
|
}
|
|
216
221
|
}
|
|
217
222
|
}
|
|
223
|
+
/* The list's own export is the rows it shows; the picked rows go out by the selection bar's 「선택 내보내기」 (ADR-0225). */
|
|
218
224
|
async exportHandler() {
|
|
219
|
-
const exportTargets = this.grist.
|
|
225
|
+
const exportTargets = this.grist.dirtyData.records;
|
|
220
226
|
const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
|
|
221
227
|
return exportTargets.map(event => {
|
|
222
228
|
let tempObj = {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import '@operato/data-grist';
|
|
3
|
+
import '@things-factory/ai-assistant/dist-client/index.js';
|
|
3
4
|
import { CommonButtonStyles, CommonHeaderStyles, CommonGristStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles';
|
|
4
5
|
import { PageView } from '@operato/shell';
|
|
5
6
|
import { css, html } from 'lit';
|
|
@@ -53,10 +54,6 @@ let GatewayListPage = class GatewayListPage extends localize(i18next)(ScopedElem
|
|
|
53
54
|
{ title: i18next.t('button.save'),
|
|
54
55
|
action: this._updateGateway.bind(this),
|
|
55
56
|
...CommonButtonStyles.save
|
|
56
|
-
},
|
|
57
|
-
{ title: i18next.t('button.delete'),
|
|
58
|
-
action: this._deleteGateway.bind(this),
|
|
59
|
-
...CommonButtonStyles.delete
|
|
60
57
|
}
|
|
61
58
|
],
|
|
62
59
|
exportable: { name: i18next.t('title.gateway list'),
|
|
@@ -69,6 +66,14 @@ let GatewayListPage = class GatewayListPage extends localize(i18next)(ScopedElem
|
|
|
69
66
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
|
|
70
67
|
return html `
|
|
71
68
|
<ox-grist class="page-fill" .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
69
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
70
|
+
<ox-assistant-selection-bar
|
|
71
|
+
slot="selection"
|
|
72
|
+
.gridOf=${() => this.grist}
|
|
73
|
+
name=${i18next.t('title.gateway list')}
|
|
74
|
+
.assistant=${false}
|
|
75
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteGateway() }]}
|
|
76
|
+
></ox-assistant-selection-bar>
|
|
72
77
|
<div slot="headroom" class="header">
|
|
73
78
|
<div class="filters">
|
|
74
79
|
<ox-filters-form without-search autofocus></ox-filters-form>
|
|
@@ -215,8 +220,9 @@ let GatewayListPage = class GatewayListPage extends localize(i18next)(ScopedElem
|
|
|
215
220
|
}
|
|
216
221
|
}
|
|
217
222
|
}
|
|
223
|
+
/* The list's own export is the rows it shows; the picked rows go out by the selection bar's 「선택 내보내기」 (ADR-0225). */
|
|
218
224
|
async exportHandler() {
|
|
219
|
-
const exportTargets = this.grist.
|
|
225
|
+
const exportTargets = this.grist.dirtyData.records;
|
|
220
226
|
const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
|
|
221
227
|
return exportTargets.map(gateway => {
|
|
222
228
|
let tempObj = {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import '@operato/data-grist';
|
|
3
|
+
import '@things-factory/ai-assistant/dist-client/index.js';
|
|
3
4
|
import { CommonButtonStyles, CommonHeaderStyles, CommonGristStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles';
|
|
4
5
|
import { PageView } from '@operato/shell';
|
|
5
6
|
import { css, html } from 'lit';
|
|
@@ -53,10 +54,6 @@ let ProcessListPage = class ProcessListPage extends localize(i18next)(ScopedElem
|
|
|
53
54
|
{ title: i18next.t('button.save'),
|
|
54
55
|
action: this._updateProcess.bind(this),
|
|
55
56
|
...CommonButtonStyles.save
|
|
56
|
-
},
|
|
57
|
-
{ title: i18next.t('button.delete'),
|
|
58
|
-
action: this._deleteProcess.bind(this),
|
|
59
|
-
...CommonButtonStyles.delete
|
|
60
57
|
}
|
|
61
58
|
],
|
|
62
59
|
exportable: { name: i18next.t('title.process list'),
|
|
@@ -69,6 +66,14 @@ let ProcessListPage = class ProcessListPage extends localize(i18next)(ScopedElem
|
|
|
69
66
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
|
|
70
67
|
return html `
|
|
71
68
|
<ox-grist class="page-fill" .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
69
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
70
|
+
<ox-assistant-selection-bar
|
|
71
|
+
slot="selection"
|
|
72
|
+
.gridOf=${() => this.grist}
|
|
73
|
+
name=${i18next.t('title.process list')}
|
|
74
|
+
.assistant=${false}
|
|
75
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteProcess() }]}
|
|
76
|
+
></ox-assistant-selection-bar>
|
|
72
77
|
<div slot="headroom" class="header">
|
|
73
78
|
<div class="filters">
|
|
74
79
|
<ox-filters-form without-search autofocus></ox-filters-form>
|
|
@@ -215,8 +220,9 @@ let ProcessListPage = class ProcessListPage extends localize(i18next)(ScopedElem
|
|
|
215
220
|
}
|
|
216
221
|
}
|
|
217
222
|
}
|
|
223
|
+
/* The list's own export is the rows it shows; the picked rows go out by the selection bar's 「선택 내보내기」 (ADR-0225). */
|
|
218
224
|
async exportHandler() {
|
|
219
|
-
const exportTargets = this.grist.
|
|
225
|
+
const exportTargets = this.grist.dirtyData.records;
|
|
220
226
|
const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
|
|
221
227
|
return exportTargets.map(process => {
|
|
222
228
|
let tempObj = {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import '@operato/data-grist';
|
|
3
|
+
import '@things-factory/ai-assistant/dist-client/index.js';
|
|
3
4
|
import { CommonButtonStyles, CommonHeaderStyles, CommonGristStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles';
|
|
4
5
|
import { PageView } from '@operato/shell';
|
|
5
6
|
import { css, html } from 'lit';
|
|
@@ -53,10 +54,6 @@ let ProcessInstanceListPage = class ProcessInstanceListPage extends localize(i18
|
|
|
53
54
|
{ title: i18next.t('button.save'),
|
|
54
55
|
action: this._updateProcessInstance.bind(this),
|
|
55
56
|
...CommonButtonStyles.save
|
|
56
|
-
},
|
|
57
|
-
{ title: i18next.t('button.delete'),
|
|
58
|
-
action: this._deleteProcessInstance.bind(this),
|
|
59
|
-
...CommonButtonStyles.delete
|
|
60
57
|
}
|
|
61
58
|
],
|
|
62
59
|
exportable: { name: i18next.t('title.process-instance list'),
|
|
@@ -69,6 +66,14 @@ let ProcessInstanceListPage = class ProcessInstanceListPage extends localize(i18
|
|
|
69
66
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
|
|
70
67
|
return html `
|
|
71
68
|
<ox-grist class="page-fill" .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
69
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
70
|
+
<ox-assistant-selection-bar
|
|
71
|
+
slot="selection"
|
|
72
|
+
.gridOf=${() => this.grist}
|
|
73
|
+
name=${i18next.t('title.process-instance list')}
|
|
74
|
+
.assistant=${false}
|
|
75
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteProcessInstance() }]}
|
|
76
|
+
></ox-assistant-selection-bar>
|
|
72
77
|
<div slot="headroom" class="header">
|
|
73
78
|
<div class="filters">
|
|
74
79
|
<ox-filters-form without-search autofocus></ox-filters-form>
|
|
@@ -215,8 +220,9 @@ let ProcessInstanceListPage = class ProcessInstanceListPage extends localize(i18
|
|
|
215
220
|
}
|
|
216
221
|
}
|
|
217
222
|
}
|
|
223
|
+
/* The list's own export is the rows it shows; the picked rows go out by the selection bar's 「선택 내보내기」 (ADR-0225). */
|
|
218
224
|
async exportHandler() {
|
|
219
|
-
const exportTargets = this.grist.
|
|
225
|
+
const exportTargets = this.grist.dirtyData.records;
|
|
220
226
|
const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
|
|
221
227
|
return exportTargets.map(processInstance => {
|
|
222
228
|
let tempObj = {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import '@operato/data-grist';
|
|
3
|
+
import '@things-factory/ai-assistant/dist-client/index.js';
|
|
3
4
|
import { CommonButtonStyles, CommonHeaderStyles, CommonGristStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles';
|
|
4
5
|
import { PageView } from '@operato/shell';
|
|
5
6
|
import { css, html } from 'lit';
|
|
@@ -53,10 +54,6 @@ let ProcessThreadListPage = class ProcessThreadListPage extends localize(i18next
|
|
|
53
54
|
{ title: i18next.t('button.save'),
|
|
54
55
|
action: this._updateProcessThread.bind(this),
|
|
55
56
|
...CommonButtonStyles.save
|
|
56
|
-
},
|
|
57
|
-
{ title: i18next.t('button.delete'),
|
|
58
|
-
action: this._deleteProcessThread.bind(this),
|
|
59
|
-
...CommonButtonStyles.delete
|
|
60
57
|
}
|
|
61
58
|
],
|
|
62
59
|
exportable: { name: i18next.t('title.process-thread list'),
|
|
@@ -69,6 +66,14 @@ let ProcessThreadListPage = class ProcessThreadListPage extends localize(i18next
|
|
|
69
66
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
|
|
70
67
|
return html `
|
|
71
68
|
<ox-grist class="page-fill" .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
69
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
70
|
+
<ox-assistant-selection-bar
|
|
71
|
+
slot="selection"
|
|
72
|
+
.gridOf=${() => this.grist}
|
|
73
|
+
name=${i18next.t('title.process-thread list')}
|
|
74
|
+
.assistant=${false}
|
|
75
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteProcessThread() }]}
|
|
76
|
+
></ox-assistant-selection-bar>
|
|
72
77
|
<div slot="headroom" class="header">
|
|
73
78
|
<div class="filters">
|
|
74
79
|
<ox-filters-form without-search autofocus></ox-filters-form>
|
|
@@ -215,8 +220,9 @@ let ProcessThreadListPage = class ProcessThreadListPage extends localize(i18next
|
|
|
215
220
|
}
|
|
216
221
|
}
|
|
217
222
|
}
|
|
223
|
+
/* The list's own export is the rows it shows; the picked rows go out by the selection bar's 「선택 내보내기」 (ADR-0225). */
|
|
218
224
|
async exportHandler() {
|
|
219
|
-
const exportTargets = this.grist.
|
|
225
|
+
const exportTargets = this.grist.dirtyData.records;
|
|
220
226
|
const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
|
|
221
227
|
return exportTargets.map(processThread => {
|
|
222
228
|
let tempObj = {};
|
|
@@ -73,13 +73,13 @@ let ProcessQuery = class ProcessQuery {
|
|
|
73
73
|
return attachment?.fullpath;
|
|
74
74
|
}
|
|
75
75
|
async domain(process) {
|
|
76
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: process.domainId });
|
|
76
|
+
return process.domainId ? await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: process.domainId }) : null;
|
|
77
77
|
}
|
|
78
78
|
async updater(process) {
|
|
79
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: process.updaterId });
|
|
79
|
+
return process.updaterId ? await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: process.updaterId }) : null;
|
|
80
80
|
}
|
|
81
81
|
async creator(process) {
|
|
82
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: process.creatorId });
|
|
82
|
+
return process.creatorId ? await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: process.creatorId }) : null;
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
exports.ProcessQuery = ProcessQuery;
|
|
@@ -81,7 +81,7 @@ let ProcessInstanceQuery = class ProcessInstanceQuery {
|
|
|
81
81
|
return attachment?.fullpath;
|
|
82
82
|
}
|
|
83
83
|
async domain(processInstance) {
|
|
84
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: processInstance.domainId });
|
|
84
|
+
return processInstance.domainId ? await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: processInstance.domainId }) : null;
|
|
85
85
|
}
|
|
86
86
|
async updater(processInstance) {
|
|
87
87
|
return processInstance.updaterId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: processInstance.updaterId }));
|
|
@@ -27,10 +27,10 @@ let ProcessThreadQuery = class ProcessThreadQuery {
|
|
|
27
27
|
return { items, total };
|
|
28
28
|
}
|
|
29
29
|
async processInstance(processThread) {
|
|
30
|
-
return await (0, shell_1.getRepository)(process_instance_1.ProcessInstance).findOneBy({ id: processThread.processInstanceId });
|
|
30
|
+
return processThread.processInstanceId ? await (0, shell_1.getRepository)(process_instance_1.ProcessInstance).findOneBy({ id: processThread.processInstanceId }) : null;
|
|
31
31
|
}
|
|
32
32
|
async domain(processThread) {
|
|
33
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: processThread.domainId });
|
|
33
|
+
return processThread.domainId ? await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: processThread.domainId }) : null;
|
|
34
34
|
}
|
|
35
35
|
async updater(processThread) {
|
|
36
36
|
return processThread.updaterId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: processThread.updaterId }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/process",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.304",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"files": [
|
|
@@ -49,11 +49,12 @@
|
|
|
49
49
|
"@operato/grist-editor": "^10.0.0",
|
|
50
50
|
"@operato/popup": "^10.0.0",
|
|
51
51
|
"@operato/shell": "^10.0.0",
|
|
52
|
-
"@things-factory/
|
|
53
|
-
"@things-factory/
|
|
54
|
-
"@things-factory/
|
|
55
|
-
"@things-factory/
|
|
56
|
-
"@things-factory/
|
|
52
|
+
"@things-factory/ai-assistant": "^10.1.304",
|
|
53
|
+
"@things-factory/attachment-base": "^10.1.304",
|
|
54
|
+
"@things-factory/auth-base": "^10.1.304",
|
|
55
|
+
"@things-factory/context-ui": "^10.1.304",
|
|
56
|
+
"@things-factory/scheduler-client": "^10.1.304",
|
|
57
|
+
"@things-factory/shell": "^10.1.304"
|
|
57
58
|
},
|
|
58
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "76ce38519069ba90190d69d2a9d6c130bc981cf0"
|
|
59
60
|
}
|