@things-factory/product-ui 4.3.74 → 4.3.78
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/pages/product-list.js +16 -13
- package/package.json +9 -9
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
3
|
import './product-details-popup'
|
|
4
|
-
import _ from 'lodash'
|
|
5
4
|
|
|
6
|
-
import
|
|
7
|
-
import { CustomAlert, PageView, client, gqlContext } from '@things-factory/shell'
|
|
5
|
+
import gql from 'graphql-tag'
|
|
8
6
|
import { css, html } from 'lit'
|
|
9
|
-
import
|
|
7
|
+
import _ from 'lodash'
|
|
10
8
|
|
|
11
|
-
import { PICKING_STRATEGIES } from './constants/picking-strategy'
|
|
12
9
|
import { getCodeByName } from '@things-factory/code-base'
|
|
13
|
-
import
|
|
14
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
10
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
15
11
|
import { openImportPopUp } from '@things-factory/import-ui'
|
|
16
12
|
import { openPopup } from '@things-factory/layout-base'
|
|
13
|
+
import { client, CustomAlert, gqlContext, PageView } from '@things-factory/shell'
|
|
14
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
15
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
16
|
+
|
|
17
|
+
import { PICKING_STRATEGIES } from './constants/picking-strategy'
|
|
17
18
|
|
|
18
19
|
class ProductList extends localize(i18next)(PageView) {
|
|
19
20
|
static get properties() {
|
|
@@ -125,11 +126,13 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
125
126
|
|
|
126
127
|
async pageUpdated(changes, lifecycle) {
|
|
127
128
|
if (this.active) {
|
|
128
|
-
const productType = await
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
const [productType, packingType, uom, weightUnit, lengthUnit] = await Promise.all([
|
|
130
|
+
getCodeByName('PRODUCT_TYPES'),
|
|
131
|
+
getCodeByName('PACKING_TYPES'),
|
|
132
|
+
getCodeByName('UOM'),
|
|
133
|
+
getCodeByName('WEIGHT_UNITS'),
|
|
134
|
+
getCodeByName('LENGTH_UNITS')
|
|
135
|
+
])
|
|
133
136
|
|
|
134
137
|
this.searchFields = [
|
|
135
138
|
{
|
|
@@ -155,7 +158,7 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
155
158
|
]
|
|
156
159
|
|
|
157
160
|
this.productGristConfig = {
|
|
158
|
-
pagination: { limit: 50, pages: [
|
|
161
|
+
pagination: { limit: 50, pages: [50, 100, 200, 500] },
|
|
159
162
|
list: { fields: ['sku', 'name', 'description', 'type', 'packingType'] },
|
|
160
163
|
rows: {
|
|
161
164
|
handlers: { click: this.setProductRefCondition.bind(this) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/product-ui",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.78",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/form-ui": "^4.3.
|
|
28
|
-
"@things-factory/grist-ui": "^4.3.
|
|
29
|
-
"@things-factory/i18n-base": "^4.3.
|
|
30
|
-
"@things-factory/import-ui": "^4.3.
|
|
31
|
-
"@things-factory/layout-base": "^4.3.
|
|
32
|
-
"@things-factory/product-base": "^4.3.
|
|
33
|
-
"@things-factory/shell": "^4.3.
|
|
27
|
+
"@things-factory/form-ui": "^4.3.78",
|
|
28
|
+
"@things-factory/grist-ui": "^4.3.78",
|
|
29
|
+
"@things-factory/i18n-base": "^4.3.78",
|
|
30
|
+
"@things-factory/import-ui": "^4.3.78",
|
|
31
|
+
"@things-factory/layout-base": "^4.3.78",
|
|
32
|
+
"@things-factory/product-base": "^4.3.78",
|
|
33
|
+
"@things-factory/shell": "^4.3.78"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "90e997e892d476732961326f4731ca47b22a45bc"
|
|
36
36
|
}
|