@things-factory/product-ui 4.3.318 → 4.3.341
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 +18 -19
- package/package.json +2 -2
|
@@ -3,15 +3,29 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import './product-details-popup'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
css,
|
|
8
|
+
html
|
|
9
|
+
} from 'lit'
|
|
7
10
|
import _ from 'lodash'
|
|
8
11
|
|
|
9
12
|
import { getCodeByName } from '@things-factory/code-base'
|
|
10
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
i18next,
|
|
15
|
+
localize
|
|
16
|
+
} from '@things-factory/i18n-base'
|
|
11
17
|
import { openImportPopUp } from '@things-factory/import-ui'
|
|
12
18
|
import { openPopup } from '@things-factory/layout-base'
|
|
13
|
-
import {
|
|
14
|
-
|
|
19
|
+
import {
|
|
20
|
+
client,
|
|
21
|
+
CustomAlert,
|
|
22
|
+
gqlContext,
|
|
23
|
+
PageView
|
|
24
|
+
} from '@things-factory/shell'
|
|
25
|
+
import {
|
|
26
|
+
CommonButtonStyles,
|
|
27
|
+
ScrollbarStyles
|
|
28
|
+
} from '@things-factory/styles'
|
|
15
29
|
import { isMobileDevice } from '@things-factory/utils'
|
|
16
30
|
|
|
17
31
|
import { PICKING_STRATEGIES } from './constants/picking-strategy'
|
|
@@ -422,20 +436,6 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
422
436
|
sortable: true,
|
|
423
437
|
width: 140
|
|
424
438
|
},
|
|
425
|
-
{
|
|
426
|
-
type: 'integer',
|
|
427
|
-
name: 'productShelfLife',
|
|
428
|
-
record: { editable: true, options: { min: 0 } },
|
|
429
|
-
imex: {
|
|
430
|
-
header: i18next.t('field.product_shelf_life'),
|
|
431
|
-
key: 'productShelfLife',
|
|
432
|
-
width: 30,
|
|
433
|
-
type: 'integer'
|
|
434
|
-
},
|
|
435
|
-
header: i18next.t('field.product_shelf_life'),
|
|
436
|
-
sortable: true,
|
|
437
|
-
width: 140
|
|
438
|
-
},
|
|
439
439
|
{
|
|
440
440
|
type: 'boolean',
|
|
441
441
|
name: 'isRequiredCheckExpiry',
|
|
@@ -1403,7 +1403,6 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
1403
1403
|
const pds = product.productDetails.map(pd => {
|
|
1404
1404
|
return {
|
|
1405
1405
|
...product,
|
|
1406
|
-
name: pd.name,
|
|
1407
1406
|
packingType: pd.packingType,
|
|
1408
1407
|
uom: pd.uom,
|
|
1409
1408
|
uomValue: pd.uomValue,
|
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.341",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@things-factory/product-base": "^4.3.318",
|
|
32
32
|
"@things-factory/shell": "^4.3.281"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "d4232dc2a4c5dede0df1b75bd2aa462577c03578"
|
|
35
35
|
}
|