@things-factory/warehouse-ui 6.0.151 → 6.1.1

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 '@things-factory/grist-ui'
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
- data-grist {
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
- <data-grist
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
- ></data-grist>
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
- <data-grist
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
- ></data-grist>
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('data-grist#warehouse')
253
+ return this.shadowRoot.querySelector('ox-grist#warehouse')
254
254
  }
255
255
 
256
256
  get locationGrist() {
257
- return this.shadowRoot.querySelector('data-grist#location')
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 '@things-factory/grist-ui'
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 data-grist {
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 + data-grist {
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
- <data-grist
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
- ></data-grist>
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
- <data-grist
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
- ></data-grist>
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 '@things-factory/grist-ui'
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
- data-grist {
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
- <data-grist
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
- ></data-grist>
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('data-grist')
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 '@things-factory/grist-ui'
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
- data-grist {
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
- <data-grist
47
+ <ox-grist
48
48
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
49
49
  .config=${this.config}
50
50
  .fetchHandler="${this.fetchHandler.bind(this)}"
51
- ></data-grist>
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('data-grist')
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.151",
3
+ "version": "6.1.1",
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
- "@things-factory/barcode-base": "^6.0.145",
28
- "@things-factory/code-base": "^6.0.145",
29
- "@things-factory/form-ui": "^6.0.145",
30
- "@things-factory/grist-ui": "^6.0.145",
31
- "@things-factory/i18n-base": "^6.0.145",
32
- "@things-factory/import-ui": "^6.0.145",
33
- "@things-factory/layout-base": "^6.0.145",
34
- "@things-factory/shell": "^6.0.145",
35
- "@things-factory/warehouse-base": "^6.0.151"
27
+ "@operato/data-grist": "^1.3.5",
28
+ "@things-factory/barcode-base": "^6.1.1",
29
+ "@things-factory/code-base": "^6.1.1",
30
+ "@things-factory/form-ui": "^6.1.0",
31
+ "@things-factory/i18n-base": "^6.1.1",
32
+ "@things-factory/import-ui": "^6.1.1",
33
+ "@things-factory/layout-base": "^6.1.1",
34
+ "@things-factory/shell": "^6.1.1",
35
+ "@things-factory/warehouse-base": "^6.1.1"
36
36
  },
37
- "gitHead": "aed6e532c98fff71ea56ade617de2ed68f1602d9"
37
+ "gitHead": "6db355e12ac7580863fe1a0f4b6d6258b2cadead"
38
38
  }