@things-factory/oauth2-client 10.1.302 → 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.
|
@@ -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';
|
|
@@ -56,10 +57,6 @@ let Oauth2ClientListPage = class Oauth2ClientListPage extends localize(i18next)(
|
|
|
56
57
|
{ title: i18next.t('button.save'),
|
|
57
58
|
action: this._updateOauth2Client.bind(this),
|
|
58
59
|
...CommonButtonStyles.save
|
|
59
|
-
},
|
|
60
|
-
{ title: i18next.t('button.delete'),
|
|
61
|
-
action: this._deleteOauth2Client.bind(this),
|
|
62
|
-
...CommonButtonStyles.delete
|
|
63
60
|
}
|
|
64
61
|
],
|
|
65
62
|
exportable: { name: i18next.t('title.oauth2-client list'),
|
|
@@ -73,6 +70,14 @@ let Oauth2ClientListPage = class Oauth2ClientListPage extends localize(i18next)(
|
|
|
73
70
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID');
|
|
74
71
|
return html `
|
|
75
72
|
<ox-grist class="page-fill" .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
73
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
74
|
+
<ox-assistant-selection-bar
|
|
75
|
+
slot="selection"
|
|
76
|
+
.gridOf=${() => this.grist}
|
|
77
|
+
name=${i18next.t('title.oauth2-client list')}
|
|
78
|
+
.assistant=${false}
|
|
79
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteOauth2Client() }]}
|
|
80
|
+
></ox-assistant-selection-bar>
|
|
76
81
|
<div slot="headroom" class="header">
|
|
77
82
|
<div class="filters">
|
|
78
83
|
<ox-filters-form without-search autofocus></ox-filters-form>
|
|
@@ -224,8 +229,9 @@ let Oauth2ClientListPage = class Oauth2ClientListPage extends localize(i18next)(
|
|
|
224
229
|
}
|
|
225
230
|
}
|
|
226
231
|
}
|
|
232
|
+
/* The list's own export is the rows it shows; the picked rows go out by the selection bar's 「선택 내보내기」 (ADR-0225). */
|
|
227
233
|
async exportHandler() {
|
|
228
|
-
const exportTargets = this.grist.
|
|
234
|
+
const exportTargets = this.grist.dirtyData.records;
|
|
229
235
|
const targetFieldSet = new Set(['id', 'name', 'description', 'active']);
|
|
230
236
|
return exportTargets.map(oauth2Client => {
|
|
231
237
|
let tempObj = {};
|
|
@@ -26,13 +26,13 @@ let Oauth2ClientQuery = class Oauth2ClientQuery {
|
|
|
26
26
|
return { items, total };
|
|
27
27
|
}
|
|
28
28
|
async domain(oauth2Client) {
|
|
29
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: oauth2Client.domainId });
|
|
29
|
+
return oauth2Client.domainId ? await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: oauth2Client.domainId }) : null;
|
|
30
30
|
}
|
|
31
31
|
async updater(oauth2Client) {
|
|
32
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: oauth2Client.updaterId });
|
|
32
|
+
return oauth2Client.updaterId ? await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: oauth2Client.updaterId }) : null;
|
|
33
33
|
}
|
|
34
34
|
async creator(oauth2Client) {
|
|
35
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: oauth2Client.creatorId });
|
|
35
|
+
return oauth2Client.creatorId ? await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: oauth2Client.creatorId }) : null;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
exports.Oauth2ClientQuery = Oauth2ClientQuery;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/oauth2-client",
|
|
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": [
|
|
@@ -50,10 +50,11 @@
|
|
|
50
50
|
"@operato/shell": "^10.29.69",
|
|
51
51
|
"@operato/styles": "^10.16.0",
|
|
52
52
|
"@operato/utils": "^10.0.0",
|
|
53
|
-
"@things-factory/
|
|
54
|
-
"@things-factory/
|
|
53
|
+
"@things-factory/ai-assistant": "^10.1.304",
|
|
54
|
+
"@things-factory/auth-base": "^10.1.304",
|
|
55
|
+
"@things-factory/shell": "^10.1.304",
|
|
55
56
|
"client-oauth2": "^4.3.3",
|
|
56
57
|
"clipboard": "^2.0.6"
|
|
57
58
|
},
|
|
58
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "76ce38519069ba90190d69d2a9d6c130bc981cf0"
|
|
59
60
|
}
|