@things-factory/operato-pms 6.0.145 → 6.1.0
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/client/component/block-selector-popup.js +8 -8
- package/client/component/driver-selector-popup.js +5 -5
- package/client/component/mill-selector-popup.js +5 -5
- package/client/component/truck-selector-popup.js +5 -5
- package/client/pages/dispatchment/daily-dispatch-detail.js +6 -6
- package/client/pages/dispatchment/dispatchment-create-record.js +6 -6
- package/client/pages/dispatchment/dispatchment-list.js +5 -5
- package/client/pages/harvesting/daily-harvesting-detail.js +6 -6
- package/client/pages/harvesting/edit-harvesting-record.js +6 -6
- package/client/pages/harvesting/harvesting-create-record.js +6 -6
- package/client/pages/harvesting/harvesting-list.js +5 -5
- package/client/pages/inventory/inventory-field-bunches.js +5 -5
- package/client/pages/inventory/inventory-history-by-bunches.js +5 -5
- package/client/pages/inventory/inventory-history-by-tonnage.js +5 -5
- package/client/pages/inventory/inventory-ramp-tonnage.js +5 -5
- package/client/pages/loading/daily-loading-detail.js +6 -6
- package/client/pages/loading/edit-loading-record.js +6 -6
- package/client/pages/loading/loading-create-record.js +6 -6
- package/client/pages/loading/loading-list.js +5 -5
- package/client/pages/master/block.js +5 -5
- package/client/pages/master/company.js +5 -5
- package/client/pages/master/pop-up/block-detail-popup.js +5 -5
- package/client/pages/master/ramp.js +5 -5
- package/client/pages/master/staff.js +5 -5
- package/client/pages/master/truck.js +5 -5
- package/client/pages/report/report-daily-ffb-dispatch-and-production.js +5 -5
- package/client/pages/report/report-daily-production.js +5 -5
- package/client/pages/report/report-daily-staff-harvest.js +5 -5
- package/client/pages/report/report-ffb-tonnage-between-individual-block.js +5 -5
- package/client/pages/report/report-monthly-ffb-sale.js +5 -5
- package/client/pages/report/report-monthly-production.js +5 -5
- package/client/pages/report/report-yearly-production.js +5 -5
- package/client/themes/grist-theme-for-compatiblility.css +41 -0
- package/client/themes/grist-theme.css +198 -0
- package/client/themes/report-theme.css +47 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import '@things-factory/import-ui'
|
|
3
3
|
import '@things-factory/form-ui'
|
|
4
4
|
|
|
@@ -47,7 +47,7 @@ class BlockSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
47
47
|
display: flex;
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
ox-grist {
|
|
51
51
|
overflow-y: hidden;
|
|
52
52
|
flex: 1;
|
|
53
53
|
}
|
|
@@ -101,22 +101,22 @@ class BlockSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
101
101
|
<div class="grist-container">
|
|
102
102
|
<div class="grist">
|
|
103
103
|
<h2>${i18next.t('title.main_block')}</h2>
|
|
104
|
-
<
|
|
104
|
+
<ox-grist
|
|
105
105
|
id="block"
|
|
106
106
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
107
107
|
.config=${this.blockConfig}
|
|
108
108
|
.fetchHandler=${this.fetchMainBlock.bind(this)}
|
|
109
|
-
></
|
|
109
|
+
></ox-grist>
|
|
110
110
|
</div>
|
|
111
111
|
|
|
112
112
|
<div class="grist">
|
|
113
113
|
<h2>${i18next.t('title.sub_block')}: ${this._blockName}</h2>
|
|
114
|
-
<
|
|
114
|
+
<ox-grist
|
|
115
115
|
id="sub-block"
|
|
116
116
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
117
117
|
.config=${this.subBlockConfig}
|
|
118
118
|
.fetchHandler="${this.fetchSubBlock.bind(this)}"
|
|
119
|
-
></
|
|
119
|
+
></ox-grist>
|
|
120
120
|
</div>
|
|
121
121
|
</div>
|
|
122
122
|
|
|
@@ -222,11 +222,11 @@ class BlockSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
get blockGrist() {
|
|
225
|
-
return this.shadowRoot.querySelector('
|
|
225
|
+
return this.shadowRoot.querySelector('ox-grist#block')
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
get subBlockGrist() {
|
|
229
|
-
return this.shadowRoot.querySelector('
|
|
229
|
+
return this.shadowRoot.querySelector('ox-grist#sub-block')
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
async fetchMainBlock({ sorters = [] }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import '@things-factory/import-ui'
|
|
3
3
|
import '@things-factory/form-ui'
|
|
4
4
|
|
|
@@ -43,7 +43,7 @@ class DriverSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
43
43
|
display: flex;
|
|
44
44
|
flex: 1;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
ox-grist {
|
|
47
47
|
overflow-y: hidden;
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
@@ -91,11 +91,11 @@ class DriverSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
91
91
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${() => this.dataGrist.fetch()}></search-form>
|
|
92
92
|
|
|
93
93
|
<div class="grist">
|
|
94
|
-
<
|
|
94
|
+
<ox-grist
|
|
95
95
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
96
96
|
.config="${this.gristConfig}"
|
|
97
97
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
98
|
-
></
|
|
98
|
+
></ox-grist>
|
|
99
99
|
</div>
|
|
100
100
|
|
|
101
101
|
<div class="button-container">
|
|
@@ -176,7 +176,7 @@ class DriverSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
get dataGrist() {
|
|
179
|
-
return this.shadowRoot.querySelector('
|
|
179
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
async fetchHandler({ sorters = [] }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import '@things-factory/import-ui'
|
|
3
3
|
import '@things-factory/form-ui'
|
|
4
4
|
|
|
@@ -43,7 +43,7 @@ class MillSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
43
43
|
display: flex;
|
|
44
44
|
flex: 1;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
ox-grist {
|
|
47
47
|
overflow-y: hidden;
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
@@ -91,11 +91,11 @@ class MillSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
91
91
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${() => this.dataGrist.fetch()}></search-form>
|
|
92
92
|
|
|
93
93
|
<div class="grist">
|
|
94
|
-
<
|
|
94
|
+
<ox-grist
|
|
95
95
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
96
96
|
.config="${this.gristConfig}"
|
|
97
97
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
98
|
-
></
|
|
98
|
+
></ox-grist>
|
|
99
99
|
</div>
|
|
100
100
|
|
|
101
101
|
<div class="button-container">
|
|
@@ -158,7 +158,7 @@ class MillSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
get dataGrist() {
|
|
161
|
-
return this.shadowRoot.querySelector('
|
|
161
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
async fetchHandler({ sorters = [] }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import '@things-factory/import-ui'
|
|
3
3
|
import '@things-factory/form-ui'
|
|
4
4
|
|
|
@@ -43,7 +43,7 @@ class TruckSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
43
43
|
display: flex;
|
|
44
44
|
flex: 1;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
ox-grist {
|
|
47
47
|
overflow-y: hidden;
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
@@ -91,11 +91,11 @@ class TruckSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
91
91
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${() => this.dataGrist.fetch()}></search-form>
|
|
92
92
|
|
|
93
93
|
<div class="grist">
|
|
94
|
-
<
|
|
94
|
+
<ox-grist
|
|
95
95
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
96
96
|
.config="${this.gristConfig}"
|
|
97
97
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
98
|
-
></
|
|
98
|
+
></ox-grist>
|
|
99
99
|
</div>
|
|
100
100
|
|
|
101
101
|
<div class="button-container">
|
|
@@ -158,7 +158,7 @@ class TruckSelectorPopup extends localize(i18next)(LitElement) {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
get dataGrist() {
|
|
161
|
-
return this.shadowRoot.querySelector('
|
|
161
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
async fetchHandler({ sorters = [] }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html } from 'lit'
|
|
@@ -44,7 +44,7 @@ class DailyDispatchDetail extends localize(i18next)(PageView) {
|
|
|
44
44
|
flex: 1;
|
|
45
45
|
overflow-y: auto;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
ox-grist {
|
|
48
48
|
overflow-y: hidden;
|
|
49
49
|
flex: 1;
|
|
50
50
|
}
|
|
@@ -67,7 +67,7 @@ class DailyDispatchDetail extends localize(i18next)(PageView) {
|
|
|
67
67
|
color: var(--grist-title-icon-color);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
h2 +
|
|
70
|
+
h2 + ox-grist {
|
|
71
71
|
padding-top: var(--grist-title-with-grid-padding);
|
|
72
72
|
}
|
|
73
73
|
`
|
|
@@ -136,13 +136,13 @@ class DailyDispatchDetail extends localize(i18next)(PageView) {
|
|
|
136
136
|
<div class="grist">
|
|
137
137
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.dispatchment_from_ramp')}</h2>
|
|
138
138
|
|
|
139
|
-
<
|
|
139
|
+
<ox-grist
|
|
140
140
|
id="dispatchment-grist"
|
|
141
141
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
142
142
|
.config=${this.dispatchGristConfig}
|
|
143
143
|
.data="${this.dispatchData}"
|
|
144
144
|
@record-change="${this._onProductChangeHandler.bind(this)}"
|
|
145
|
-
></
|
|
145
|
+
></ox-grist>
|
|
146
146
|
</div>
|
|
147
147
|
</div>
|
|
148
148
|
`
|
|
@@ -158,7 +158,7 @@ class DailyDispatchDetail extends localize(i18next)(PageView) {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
get dispatchmentGrist() {
|
|
161
|
-
return this.shadowRoot.querySelector('
|
|
161
|
+
return this.shadowRoot.querySelector('ox-grist#dispatchment-grist')
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
get chitNoInput() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../component/driver-selector-popup'
|
|
2
2
|
import '../../component/truck-selector-popup'
|
|
3
3
|
import '../../component/mill-selector-popup'
|
|
4
|
-
import '@
|
|
4
|
+
import '@operato/data-grist'
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
7
|
import { css, html } from 'lit'
|
|
@@ -60,7 +60,7 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
60
60
|
flex: 1;
|
|
61
61
|
overflow-y: auto;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
ox-grist {
|
|
64
64
|
overflow-y: hidden;
|
|
65
65
|
flex: 1;
|
|
66
66
|
}
|
|
@@ -83,7 +83,7 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
83
83
|
color: var(--grist-title-icon-color);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
h2 +
|
|
86
|
+
h2 + ox-grist {
|
|
87
87
|
padding-top: var(--grist-title-with-grid-padding);
|
|
88
88
|
}
|
|
89
89
|
`
|
|
@@ -150,14 +150,14 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
150
150
|
<div class="grist">
|
|
151
151
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.dispatchment_from_ramp')}</h2>
|
|
152
152
|
|
|
153
|
-
<
|
|
153
|
+
<ox-grist
|
|
154
154
|
id="dispatchment-grist"
|
|
155
155
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
156
156
|
.config=${this.dispatchmentGristConfig}
|
|
157
157
|
.data="${this.dispatchmentData}"
|
|
158
158
|
@record-change="${this._onProductChangeHandler.bind(this)}"
|
|
159
159
|
@field-change="${this._onInventoryFieldChanged.bind(this)}"
|
|
160
|
-
></
|
|
160
|
+
></ox-grist>
|
|
161
161
|
</div>
|
|
162
162
|
</div>
|
|
163
163
|
`
|
|
@@ -168,7 +168,7 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
get dispatchmentGrist() {
|
|
171
|
-
return this.shadowRoot.querySelector('
|
|
171
|
+
return this.shadowRoot.querySelector('ox-grist#dispatchment-grist')
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
get driverInput() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
|
|
4
4
|
import gql from 'graphql-tag'
|
|
5
5
|
import { css, html } from 'lit'
|
|
@@ -32,7 +32,7 @@ class DispatchmentList extends localize(i18next)(PageView) {
|
|
|
32
32
|
overflow: visible;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
ox-grist {
|
|
36
36
|
overflow-y: auto;
|
|
37
37
|
flex: 1;
|
|
38
38
|
}
|
|
@@ -44,11 +44,11 @@ class DispatchmentList extends localize(i18next)(PageView) {
|
|
|
44
44
|
return html`
|
|
45
45
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
46
46
|
|
|
47
|
-
<
|
|
47
|
+
<ox-grist
|
|
48
48
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
49
49
|
.config=${this.config}
|
|
50
50
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
51
|
-
></
|
|
51
|
+
></ox-grist>
|
|
52
52
|
`
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -160,7 +160,7 @@ class DispatchmentList extends localize(i18next)(PageView) {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
get dataGrist() {
|
|
163
|
-
return this.shadowRoot.querySelector('
|
|
163
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
get _columns() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html } from 'lit'
|
|
@@ -43,7 +43,7 @@ class DailyHarvestingDetail extends localize(i18next)(PageView) {
|
|
|
43
43
|
flex: 1;
|
|
44
44
|
overflow-y: auto;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
ox-grist {
|
|
47
47
|
overflow-y: hidden;
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
@@ -66,7 +66,7 @@ class DailyHarvestingDetail extends localize(i18next)(PageView) {
|
|
|
66
66
|
color: var(--grist-title-icon-color);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
h2 +
|
|
69
|
+
h2 + ox-grist {
|
|
70
70
|
padding-top: var(--grist-title-with-grid-padding);
|
|
71
71
|
}
|
|
72
72
|
`
|
|
@@ -140,12 +140,12 @@ class DailyHarvestingDetail extends localize(i18next)(PageView) {
|
|
|
140
140
|
<div class="grist">
|
|
141
141
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.harvest_data')}</h2>
|
|
142
142
|
|
|
143
|
-
<
|
|
143
|
+
<ox-grist
|
|
144
144
|
id="harvest-grist"
|
|
145
145
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
146
146
|
.config=${this.harvestGristConfig}
|
|
147
147
|
.data="${this.harvestData}"
|
|
148
|
-
></
|
|
148
|
+
></ox-grist>
|
|
149
149
|
</div>
|
|
150
150
|
</div>
|
|
151
151
|
`
|
|
@@ -161,7 +161,7 @@ class DailyHarvestingDetail extends localize(i18next)(PageView) {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
get harvestGrist() {
|
|
164
|
-
return this.shadowRoot.querySelector('
|
|
164
|
+
return this.shadowRoot.querySelector('ox-grist#harvest-grist')
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
pageInitialized() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import '../../component/block-selector-popup'
|
|
3
3
|
|
|
4
4
|
import gql from 'graphql-tag'
|
|
@@ -43,7 +43,7 @@ class EditHarvestingRecord extends localize(i18next)(PageView) {
|
|
|
43
43
|
flex: 1;
|
|
44
44
|
overflow-y: auto;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
ox-grist {
|
|
47
47
|
overflow-y: hidden;
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
@@ -66,7 +66,7 @@ class EditHarvestingRecord extends localize(i18next)(PageView) {
|
|
|
66
66
|
color: var(--grist-title-icon-color);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
h2 +
|
|
69
|
+
h2 + ox-grist {
|
|
70
70
|
padding-top: var(--grist-title-with-grid-padding);
|
|
71
71
|
}
|
|
72
72
|
`
|
|
@@ -116,13 +116,13 @@ class EditHarvestingRecord extends localize(i18next)(PageView) {
|
|
|
116
116
|
<div class="grist">
|
|
117
117
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.harvest_data')}</h2>
|
|
118
118
|
|
|
119
|
-
<
|
|
119
|
+
<ox-grist
|
|
120
120
|
id="harvest-grist"
|
|
121
121
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
122
122
|
.config=${this.harvestGristConfig}
|
|
123
123
|
.data="${this.harvestData}"
|
|
124
124
|
@record-change="${this._onRecordChangeHandler.bind(this)}"
|
|
125
|
-
></
|
|
125
|
+
></ox-grist>
|
|
126
126
|
</div>
|
|
127
127
|
</div>
|
|
128
128
|
|
|
@@ -152,7 +152,7 @@ class EditHarvestingRecord extends localize(i18next)(PageView) {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
get harvestGrist() {
|
|
155
|
-
return this.shadowRoot.querySelector('
|
|
155
|
+
return this.shadowRoot.querySelector('ox-grist#harvest-grist')
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
get blockInput() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import '../../component/block-selector-popup'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
@@ -44,7 +44,7 @@ class HarvestingCreateRecord extends localize(i18next)(PageView) {
|
|
|
44
44
|
flex: 1;
|
|
45
45
|
overflow-y: auto;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
ox-grist {
|
|
48
48
|
overflow-y: hidden;
|
|
49
49
|
flex: 1;
|
|
50
50
|
}
|
|
@@ -67,7 +67,7 @@ class HarvestingCreateRecord extends localize(i18next)(PageView) {
|
|
|
67
67
|
color: var(--grist-title-icon-color);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
h2 +
|
|
70
|
+
h2 + ox-grist {
|
|
71
71
|
padding-top: var(--grist-title-with-grid-padding);
|
|
72
72
|
}
|
|
73
73
|
`
|
|
@@ -110,13 +110,13 @@ class HarvestingCreateRecord extends localize(i18next)(PageView) {
|
|
|
110
110
|
<div class="grist">
|
|
111
111
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.harvest_data')}</h2>
|
|
112
112
|
|
|
113
|
-
<
|
|
113
|
+
<ox-grist
|
|
114
114
|
id="harvest-grist"
|
|
115
115
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
116
116
|
.config=${this.harvestGristConfig}
|
|
117
117
|
.data="${this.harvestData}"
|
|
118
118
|
@record-change="${this._onRecordChangeHandler.bind(this)}"
|
|
119
|
-
></
|
|
119
|
+
></ox-grist>
|
|
120
120
|
</div>
|
|
121
121
|
</div>
|
|
122
122
|
|
|
@@ -146,7 +146,7 @@ class HarvestingCreateRecord extends localize(i18next)(PageView) {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
get harvestGrist() {
|
|
149
|
-
return this.shadowRoot.querySelector('
|
|
149
|
+
return this.shadowRoot.querySelector('ox-grist#harvest-grist')
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
get blockInput() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
|
|
4
4
|
import gql from 'graphql-tag'
|
|
5
5
|
import { css, html } from 'lit'
|
|
@@ -24,7 +24,7 @@ class HarvestingList extends localize(i18next)(PageView) {
|
|
|
24
24
|
overflow: visible;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
ox-grist {
|
|
28
28
|
overflow-y: auto;
|
|
29
29
|
flex: 1;
|
|
30
30
|
}
|
|
@@ -44,11 +44,11 @@ class HarvestingList extends localize(i18next)(PageView) {
|
|
|
44
44
|
return html`
|
|
45
45
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
46
46
|
|
|
47
|
-
<
|
|
47
|
+
<ox-grist
|
|
48
48
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
49
49
|
.config=${this.config}
|
|
50
50
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
51
|
-
></
|
|
51
|
+
></ox-grist>
|
|
52
52
|
`
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -214,7 +214,7 @@ class HarvestingList extends localize(i18next)(PageView) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
get dataGrist() {
|
|
217
|
-
return this.shadowRoot.querySelector('
|
|
217
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
async fetchHandler({ page, limit, sorters = [{ name: 'createdAt', desc: true }] }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import './inventory-history-by-bunches'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
@@ -25,7 +25,7 @@ class InventoryFieldBunches extends connect(store)(localize(i18next)(PageView))
|
|
|
25
25
|
search-form {
|
|
26
26
|
overflow: visible;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
ox-grist {
|
|
29
29
|
overflow-y: auto;
|
|
30
30
|
flex: 1;
|
|
31
31
|
}
|
|
@@ -56,7 +56,7 @@ class InventoryFieldBunches extends connect(store)(localize(i18next)(PageView))
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
get dataGrist() {
|
|
59
|
-
return this.shadowRoot.querySelector('
|
|
59
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
get searchForm() {
|
|
@@ -66,11 +66,11 @@ class InventoryFieldBunches extends connect(store)(localize(i18next)(PageView))
|
|
|
66
66
|
render() {
|
|
67
67
|
return html`
|
|
68
68
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
69
|
-
<
|
|
69
|
+
<ox-grist
|
|
70
70
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
71
71
|
.config=${this.config}
|
|
72
72
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
73
|
-
></
|
|
73
|
+
></ox-grist>
|
|
74
74
|
`
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
3
|
import { client } from '@things-factory/shell'
|
|
4
4
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -21,7 +21,7 @@ class InventoryHistoryByBunches extends localize(i18next)(LitElement) {
|
|
|
21
21
|
overflow: visible;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
ox-grist {
|
|
25
25
|
overflow-y: hidden;
|
|
26
26
|
flex: 1;
|
|
27
27
|
}
|
|
@@ -42,11 +42,11 @@ class InventoryHistoryByBunches extends localize(i18next)(LitElement) {
|
|
|
42
42
|
render() {
|
|
43
43
|
return html`
|
|
44
44
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
45
|
-
<
|
|
45
|
+
<ox-grist
|
|
46
46
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
47
47
|
.config=${this.config}
|
|
48
48
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
49
|
-
></
|
|
49
|
+
></ox-grist>
|
|
50
50
|
`
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -108,7 +108,7 @@ class InventoryHistoryByBunches extends localize(i18next)(LitElement) {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
get dataGrist() {
|
|
111
|
-
return this.shadowRoot.querySelector('
|
|
111
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
get searchForm() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
3
|
import { client } from '@things-factory/shell'
|
|
4
4
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -21,7 +21,7 @@ class InventoryHistoryByTonnage extends localize(i18next)(LitElement) {
|
|
|
21
21
|
overflow: visible;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
ox-grist {
|
|
25
25
|
overflow-y: hidden;
|
|
26
26
|
flex: 1;
|
|
27
27
|
}
|
|
@@ -41,11 +41,11 @@ class InventoryHistoryByTonnage extends localize(i18next)(LitElement) {
|
|
|
41
41
|
render() {
|
|
42
42
|
return html`
|
|
43
43
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
44
|
-
<
|
|
44
|
+
<ox-grist
|
|
45
45
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
46
46
|
.config=${this.config}
|
|
47
47
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
48
|
-
></
|
|
48
|
+
></ox-grist>
|
|
49
49
|
`
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -109,7 +109,7 @@ class InventoryHistoryByTonnage extends localize(i18next)(LitElement) {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
get dataGrist() {
|
|
112
|
-
return this.shadowRoot.querySelector('
|
|
112
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
get searchForm() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import './inventory-history-by-tonnage'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
@@ -25,7 +25,7 @@ class InventoryRampTonnage extends connect(store)(localize(i18next)(PageView)) {
|
|
|
25
25
|
search-form {
|
|
26
26
|
overflow: visible;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
ox-grist {
|
|
29
29
|
overflow-y: auto;
|
|
30
30
|
flex: 1;
|
|
31
31
|
}
|
|
@@ -56,7 +56,7 @@ class InventoryRampTonnage extends connect(store)(localize(i18next)(PageView)) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
get dataGrist() {
|
|
59
|
-
return this.shadowRoot.querySelector('
|
|
59
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
get searchForm() {
|
|
@@ -66,11 +66,11 @@ class InventoryRampTonnage extends connect(store)(localize(i18next)(PageView)) {
|
|
|
66
66
|
render() {
|
|
67
67
|
return html`
|
|
68
68
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
69
|
-
<
|
|
69
|
+
<ox-grist
|
|
70
70
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
71
71
|
.config=${this.config}
|
|
72
72
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
73
|
-
></
|
|
73
|
+
></ox-grist>
|
|
74
74
|
`
|
|
75
75
|
}
|
|
76
76
|
|