@things-factory/biz-ui 10.1.303 → 10.1.314
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 '@things-factory/form-ui'
|
|
2
2
|
import '@operato/data-grist'
|
|
3
|
+
import '@things-factory/ai-assistant/dist-client/index.js'
|
|
3
4
|
import { i18next, localize } from '@operato/i18n'
|
|
4
5
|
import { openImportPopUp } from '@things-factory/import-ui'
|
|
5
6
|
import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
|
|
@@ -37,10 +38,19 @@ class BizplaceList extends localize(i18next)(PageView) {
|
|
|
37
38
|
<search-form .fields="${this.searchFields}" @submit="${e => this.dataGrist.fetch()}"></search-form>
|
|
38
39
|
|
|
39
40
|
<ox-grist class="page-fill"
|
|
40
|
-
.mode="${isMobileDevice() ? '
|
|
41
|
+
.mode="${isMobileDevice() ? 'CARD' : 'GRID'}"
|
|
41
42
|
.config="${this.config}"
|
|
42
43
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
43
|
-
|
|
44
|
+
>
|
|
45
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
46
|
+
<ox-assistant-selection-bar
|
|
47
|
+
slot="selection"
|
|
48
|
+
.gridOf=${() => this.dataGrist}
|
|
49
|
+
name=${i18next.t('title.bizplace')}
|
|
50
|
+
.assistant=${false}
|
|
51
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteBizplaces() }]}
|
|
52
|
+
></ox-assistant-selection-bar>
|
|
53
|
+
</ox-grist>
|
|
44
54
|
`
|
|
45
55
|
}
|
|
46
56
|
|
|
@@ -52,11 +62,6 @@ class BizplaceList extends localize(i18next)(PageView) {
|
|
|
52
62
|
title: i18next.t('button.save'),
|
|
53
63
|
action: () => this._saveBizplaces(this.dataGrist.exportPatchList({ flagName: 'cuFlag' })),
|
|
54
64
|
...CommonButtonStyles.save
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
title: i18next.t('button.delete'),
|
|
58
|
-
action: this._deleteBizplaces.bind(this),
|
|
59
|
-
...CommonButtonStyles.delete
|
|
60
65
|
}
|
|
61
66
|
],
|
|
62
67
|
exportable: {
|
|
@@ -118,6 +123,8 @@ class BizplaceList extends localize(i18next)(PageView) {
|
|
|
118
123
|
]
|
|
119
124
|
|
|
120
125
|
this.config = {
|
|
126
|
+
/* On a phone: the place and its address, then the status and the last change - each with its name. */
|
|
127
|
+
list: { fields: ['name', 'address'], details: ['status', 'updatedAt'], labeled: true },
|
|
121
128
|
rows: { selectable: { multiple: true } },
|
|
122
129
|
columns: [
|
|
123
130
|
{ type: 'gutter', gutterName: 'dirty' },
|
|
@@ -315,13 +322,9 @@ class BizplaceList extends localize(i18next)(PageView) {
|
|
|
315
322
|
}
|
|
316
323
|
}
|
|
317
324
|
|
|
325
|
+
/* The list's own export is the rows it shows; the picked rows go out by the selection bar's 「선택 내보내기」 (ADR-0225). */
|
|
318
326
|
_exportableData() {
|
|
319
|
-
let records =
|
|
320
|
-
if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
|
|
321
|
-
records = this.dataGrist.selected
|
|
322
|
-
} else {
|
|
323
|
-
records = this.dataGrist.data.records
|
|
324
|
-
}
|
|
327
|
+
let records = this.dataGrist.data.records
|
|
325
328
|
|
|
326
329
|
var headerSetting = this.dataGrist._config.columns
|
|
327
330
|
.filter(column => column.type !== 'gutter' && column.record !== undefined && column.imex !== undefined)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getCodeByName } from '@things-factory/code-base'
|
|
2
2
|
import '@things-factory/form-ui'
|
|
3
3
|
import '@operato/data-grist'
|
|
4
|
+
import '@things-factory/ai-assistant/dist-client/index.js'
|
|
4
5
|
import { i18next, localize } from '@operato/i18n'
|
|
5
6
|
import { openImportPopUp } from '@things-factory/import-ui'
|
|
6
7
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
@@ -37,10 +38,18 @@ class CompanyList extends localize(i18next)(PageView) {
|
|
|
37
38
|
<search-form .fields="${this.searchFields}" @submit="${() => this.dataGrist.fetch()}"></search-form>
|
|
38
39
|
|
|
39
40
|
<ox-grist class="page-fill"
|
|
40
|
-
.mode="${isMobileDevice() ? '
|
|
41
|
+
.mode="${isMobileDevice() ? 'CARD' : 'GRID'}"
|
|
41
42
|
.config="${this.config}"
|
|
42
43
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
43
44
|
>
|
|
45
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
46
|
+
<ox-assistant-selection-bar
|
|
47
|
+
slot="selection"
|
|
48
|
+
.gridOf=${() => this.dataGrist}
|
|
49
|
+
name=${i18next.t('title.company')}
|
|
50
|
+
.assistant=${false}
|
|
51
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this._deleteCompanies() }]}
|
|
52
|
+
></ox-assistant-selection-bar>
|
|
44
53
|
</ox-grist>
|
|
45
54
|
`
|
|
46
55
|
}
|
|
@@ -53,11 +62,6 @@ class CompanyList extends localize(i18next)(PageView) {
|
|
|
53
62
|
title: i18next.t('button.save'),
|
|
54
63
|
action: () => this._saveCompanies(this.dataGrist.exportPatchList({ flagName: 'cuFlag' })),
|
|
55
64
|
...CommonButtonStyles.save
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
title: i18next.t('button.delete'),
|
|
59
|
-
action: this._deleteCompanies.bind(this),
|
|
60
|
-
...CommonButtonStyles.delete
|
|
61
65
|
}
|
|
62
66
|
],
|
|
63
67
|
exportable: {
|
|
@@ -121,6 +125,8 @@ class CompanyList extends localize(i18next)(PageView) {
|
|
|
121
125
|
]
|
|
122
126
|
|
|
123
127
|
this.config = {
|
|
128
|
+
/* On a phone: the company and its registration number, then the status, the country and the last change - each with its name. */
|
|
129
|
+
list: { fields: ['name', 'brn'], details: ['status', 'countryCode', 'updatedAt'], labeled: true },
|
|
124
130
|
rows: { selectable: { multiple: true } },
|
|
125
131
|
columns: [
|
|
126
132
|
{ type: 'gutter', gutterName: 'dirty' },
|
|
@@ -336,13 +342,9 @@ class CompanyList extends localize(i18next)(PageView) {
|
|
|
336
342
|
}
|
|
337
343
|
}
|
|
338
344
|
|
|
345
|
+
/* The list's own export is the rows it shows; the picked rows go out by the selection bar's 「선택 내보내기」 (ADR-0225). */
|
|
339
346
|
_exportableData() {
|
|
340
|
-
let records =
|
|
341
|
-
if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
|
|
342
|
-
records = this.dataGrist.selected
|
|
343
|
-
} else {
|
|
344
|
-
records = this.dataGrist.data.records
|
|
345
|
-
}
|
|
347
|
+
let records = this.dataGrist.data.records
|
|
346
348
|
// data structure // { // header: {headerName, fieldName, type = string, arrData = []} // data: [{fieldName: value}] // }
|
|
347
349
|
|
|
348
350
|
var headerSetting = this.dataGrist._config.columns
|
|
@@ -34,7 +34,7 @@ class PartnerList extends localize(i18next)(PageView) {
|
|
|
34
34
|
<search-form .fields=${this.searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
35
35
|
|
|
36
36
|
<ox-grist class="page-fill"
|
|
37
|
-
.mode=${isMobileDevice() ? '
|
|
37
|
+
.mode=${isMobileDevice() ? 'CARD' : 'GRID'}
|
|
38
38
|
.config=${this.config}
|
|
39
39
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
40
40
|
></ox-grist>
|
|
@@ -72,6 +72,8 @@ class PartnerList extends localize(i18next)(PageView) {
|
|
|
72
72
|
]
|
|
73
73
|
|
|
74
74
|
this.config = {
|
|
75
|
+
/* On a phone: the partner and the kind of partnership, then who asked and who approved and when - each with its name. */
|
|
76
|
+
list: { fields: ['partnerBizplace', 'type'], details: ['requester', 'requestedAt', 'approver', 'approvedAt'], labeled: true },
|
|
75
77
|
columns: [
|
|
76
78
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
77
79
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/biz-ui",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.314",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -42,12 +42,13 @@
|
|
|
42
42
|
"@operato/data-grist": "^10.29.69",
|
|
43
43
|
"@operato/layout": "^10.0.0",
|
|
44
44
|
"@operato/styles": "^10.0.0",
|
|
45
|
-
"@things-factory/
|
|
46
|
-
"@things-factory/
|
|
45
|
+
"@things-factory/ai-assistant": "^10.1.314",
|
|
46
|
+
"@things-factory/biz-base": "^10.1.314",
|
|
47
|
+
"@things-factory/code-base": "^10.1.314",
|
|
47
48
|
"@things-factory/form-ui": "^10.1.281",
|
|
48
|
-
"@things-factory/i18n-base": "^10.1.
|
|
49
|
-
"@things-factory/import-ui": "^10.1.
|
|
50
|
-
"@things-factory/shell": "^10.1.
|
|
49
|
+
"@things-factory/i18n-base": "^10.1.314",
|
|
50
|
+
"@things-factory/import-ui": "^10.1.314",
|
|
51
|
+
"@things-factory/shell": "^10.1.304"
|
|
51
52
|
},
|
|
52
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "8d74df0a0618131ff17309638a6aa0affbd4c77d"
|
|
53
54
|
}
|