@things-factory/warehouse-ui 6.0.150 → 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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client } from '@things-factory/shell'
|
|
5
5
|
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -34,7 +34,7 @@ export class BufferLocationSelector extends localize(i18next)(LitElement) {
|
|
|
34
34
|
display: flex;
|
|
35
35
|
flex: 1;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
ox-grist {
|
|
38
38
|
overflow-y: hidden;
|
|
39
39
|
flex: 1;
|
|
40
40
|
}
|
|
@@ -96,22 +96,22 @@ export class BufferLocationSelector extends localize(i18next)(LitElement) {
|
|
|
96
96
|
<div class="grist-container">
|
|
97
97
|
<div class="grist">
|
|
98
98
|
<h2>${i18next.t('title.warehouse')}</h2>
|
|
99
|
-
<
|
|
99
|
+
<ox-grist
|
|
100
100
|
id="warehouse"
|
|
101
101
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
102
102
|
.config=${this.warehouseConfig}
|
|
103
103
|
.fetchHandler=${this.fetchWarehouses.bind(this)}
|
|
104
|
-
></
|
|
104
|
+
></ox-grist>
|
|
105
105
|
</div>
|
|
106
106
|
|
|
107
107
|
<div class="grist">
|
|
108
108
|
<h2>${i18next.t('title.warehouse_name')}: ${this._warehouseName}</h2>
|
|
109
|
-
<
|
|
109
|
+
<ox-grist
|
|
110
110
|
id="location"
|
|
111
111
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
112
112
|
.config=${this.locationConfig}
|
|
113
113
|
.fetchHandler="${this.fetchLocations.bind(this)}"
|
|
114
|
-
></
|
|
114
|
+
></ox-grist>
|
|
115
115
|
</div>
|
|
116
116
|
</div>
|
|
117
117
|
|
|
@@ -250,11 +250,11 @@ export class BufferLocationSelector extends localize(i18next)(LitElement) {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
get warehouseGrist() {
|
|
253
|
-
return this.shadowRoot.querySelector('
|
|
253
|
+
return this.shadowRoot.querySelector('ox-grist#warehouse')
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
get locationGrist() {
|
|
257
|
-
return this.shadowRoot.querySelector('
|
|
257
|
+
return this.shadowRoot.querySelector('ox-grist#location')
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
async fetchWarehouses({ page, limit, sorters = [] }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCodeByName } from '@things-factory/code-base'
|
|
2
2
|
import '@things-factory/form-ui'
|
|
3
3
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
4
|
-
import '@
|
|
4
|
+
import '@operato/data-grist'
|
|
5
5
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
6
6
|
import { client, CustomAlert } from '@things-factory/shell'
|
|
7
7
|
import { sleep, isMobileDevice } from '@things-factory/utils'
|
|
@@ -110,7 +110,7 @@ export class GenerateLocationList extends localize(i18next)(LitElement) {
|
|
|
110
110
|
height: 220px;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.location-formatting
|
|
113
|
+
.location-formatting ox-grist {
|
|
114
114
|
background-color: white;
|
|
115
115
|
padding: 0px 15px 0px 15px;
|
|
116
116
|
overflow-y: hidden;
|
|
@@ -134,7 +134,7 @@ export class GenerateLocationList extends localize(i18next)(LitElement) {
|
|
|
134
134
|
font-size: var(--grist-title-icon-size);
|
|
135
135
|
color: var(--grist-title-icon-color);
|
|
136
136
|
}
|
|
137
|
-
h2 +
|
|
137
|
+
h2 + ox-grist {
|
|
138
138
|
padding-top: var(--grist-title-with-grid-padding);
|
|
139
139
|
}
|
|
140
140
|
.location-formatting .button-container {
|
|
@@ -282,17 +282,17 @@ export class GenerateLocationList extends localize(i18next)(LitElement) {
|
|
|
282
282
|
|
|
283
283
|
<div class="grist">
|
|
284
284
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.generator')}</h2>
|
|
285
|
-
<
|
|
285
|
+
<ox-grist
|
|
286
286
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
287
287
|
.config=${this._generatorConfig}
|
|
288
288
|
.data=${this.data}
|
|
289
289
|
@record-change="${this._onChangeHandler.bind(this)}"
|
|
290
|
-
></
|
|
290
|
+
></ox-grist>
|
|
291
291
|
</div>
|
|
292
292
|
|
|
293
293
|
<div class="grist">
|
|
294
294
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.preview')}</h2>
|
|
295
|
-
<
|
|
295
|
+
<ox-grist
|
|
296
296
|
id="preview_grist"
|
|
297
297
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
298
298
|
.config=${this._previewConfig}
|
|
@@ -300,7 +300,7 @@ export class GenerateLocationList extends localize(i18next)(LitElement) {
|
|
|
300
300
|
@limit-changed=${e => {
|
|
301
301
|
this.limit = e.detail
|
|
302
302
|
}}
|
|
303
|
-
></
|
|
303
|
+
></ox-grist>
|
|
304
304
|
</div>
|
|
305
305
|
|
|
306
306
|
<div class="button-container">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import './generate-location-list'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
@@ -30,7 +30,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
|
|
|
30
30
|
search-form {
|
|
31
31
|
overflow: visible;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
ox-grist {
|
|
34
34
|
overflow-y: auto;
|
|
35
35
|
flex: 1;
|
|
36
36
|
}
|
|
@@ -51,12 +51,12 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
|
|
|
51
51
|
return html`
|
|
52
52
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
53
53
|
|
|
54
|
-
<
|
|
54
|
+
<ox-grist
|
|
55
55
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
56
56
|
.config=${this.config}
|
|
57
57
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
58
58
|
@select-record-change=${e => (this._selectedRecords = e.detail.selectedRecords)}
|
|
59
|
-
></
|
|
59
|
+
></ox-grist>
|
|
60
60
|
`
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -111,7 +111,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
get dataGrist() {
|
|
114
|
-
return this.shadowRoot.querySelector('
|
|
114
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
pageUpdated(_changes, lifecycle) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCodeByName } from '@things-factory/code-base'
|
|
2
2
|
import '@things-factory/form-ui'
|
|
3
|
-
import '@
|
|
3
|
+
import '@operato/data-grist'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { openImportPopUp } from '@things-factory/import-ui'
|
|
6
6
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
@@ -24,7 +24,7 @@ class WarehouseList extends localize(i18next)(PageView) {
|
|
|
24
24
|
search-form {
|
|
25
25
|
overflow: visible;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
ox-grist {
|
|
28
28
|
overflow-y: auto;
|
|
29
29
|
flex: 1;
|
|
30
30
|
}
|
|
@@ -44,11 +44,11 @@ class WarehouseList 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
|
|
|
@@ -91,7 +91,7 @@ class WarehouseList extends localize(i18next)(PageView) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
get dataGrist() {
|
|
94
|
-
return this.shadowRoot.querySelector('
|
|
94
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
async pageInitialized() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/warehouse-ui",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@things-factory/
|
|
29
|
-
"@things-factory/
|
|
30
|
-
"@things-factory/
|
|
31
|
-
"@things-factory/i18n-base": "^6.0
|
|
32
|
-
"@things-factory/import-ui": "^6.0
|
|
33
|
-
"@things-factory/layout-base": "^6.0
|
|
34
|
-
"@things-factory/shell": "^6.0
|
|
35
|
-
"@things-factory/warehouse-base": "^6.0
|
|
27
|
+
"@operato/data-grist": "^1.3.5",
|
|
28
|
+
"@things-factory/barcode-base": "^6.1.0",
|
|
29
|
+
"@things-factory/code-base": "^6.1.0",
|
|
30
|
+
"@things-factory/form-ui": "^6.1.0",
|
|
31
|
+
"@things-factory/i18n-base": "^6.1.0",
|
|
32
|
+
"@things-factory/import-ui": "^6.1.0",
|
|
33
|
+
"@things-factory/layout-base": "^6.1.0",
|
|
34
|
+
"@things-factory/shell": "^6.1.0",
|
|
35
|
+
"@things-factory/warehouse-base": "^6.1.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "205ac14ff55275d948a8cc6d7c514b90d6baf6ef"
|
|
38
38
|
}
|