@things-factory/product-ui 4.1.40 → 4.2.12
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 -4
- package/package.json +9 -9
- package/translations/en.json +5 -0
- package/translations/ko.json +21 -16
- package/translations/ms.json +17 -12
- package/translations/zh.json +17 -14
|
@@ -3,14 +3,28 @@ 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-element'
|
|
7
10
|
|
|
8
11
|
import { getCodeByName } from '@things-factory/code-base'
|
|
9
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
i18next,
|
|
14
|
+
localize
|
|
15
|
+
} from '@things-factory/i18n-base'
|
|
10
16
|
import { openImportPopUp } from '@things-factory/import-ui'
|
|
11
17
|
import { openPopup } from '@things-factory/layout-base'
|
|
12
|
-
import {
|
|
13
|
-
|
|
18
|
+
import {
|
|
19
|
+
client,
|
|
20
|
+
CustomAlert,
|
|
21
|
+
gqlContext,
|
|
22
|
+
PageView
|
|
23
|
+
} from '@things-factory/shell'
|
|
24
|
+
import {
|
|
25
|
+
CommonButtonStyles,
|
|
26
|
+
ScrollbarStyles
|
|
27
|
+
} from '@things-factory/styles'
|
|
14
28
|
import { isMobileDevice } from '@things-factory/utils'
|
|
15
29
|
|
|
16
30
|
import { PICKING_STRATEGIES } from './constants/picking-strategy'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/product-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.12",
|
|
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.
|
|
28
|
-
"@things-factory/grist-ui": "^4.
|
|
29
|
-
"@things-factory/i18n-base": "^4.
|
|
30
|
-
"@things-factory/import-ui": "^4.
|
|
31
|
-
"@things-factory/layout-base": "^4.
|
|
32
|
-
"@things-factory/product-base": "^4.
|
|
33
|
-
"@things-factory/shell": "^4.
|
|
27
|
+
"@things-factory/form-ui": "^4.2.12",
|
|
28
|
+
"@things-factory/grist-ui": "^4.2.12",
|
|
29
|
+
"@things-factory/i18n-base": "^4.2.12",
|
|
30
|
+
"@things-factory/import-ui": "^4.2.12",
|
|
31
|
+
"@things-factory/layout-base": "^4.2.12",
|
|
32
|
+
"@things-factory/product-base": "^4.2.12",
|
|
33
|
+
"@things-factory/shell": "^4.2.12"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "fea26f2ea238a3a279c7ab6427cd8aedcd68926b"
|
|
36
36
|
}
|
package/translations/en.json
CHANGED
|
@@ -62,6 +62,11 @@
|
|
|
62
62
|
"field.weight_unit": "weight unit",
|
|
63
63
|
"field.weight": "weight",
|
|
64
64
|
"field.width": "width",
|
|
65
|
+
"label.fefo": "FEFO",
|
|
66
|
+
"label.fmfo": "FMFO",
|
|
67
|
+
"label.fifo": "FIFO",
|
|
68
|
+
"label.lifo": "LIFO",
|
|
69
|
+
"label.location": "location",
|
|
65
70
|
"text.data_import_successfully": "data import successfully",
|
|
66
71
|
"text.data_restore_successfully": "data restore successfully",
|
|
67
72
|
"text.invalid_bundle_qty_for_item_number": "invalid bundle qty for item number",
|
package/translations/ko.json
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"field.picking_strategy": "[ko]picking strategy",
|
|
3
|
-
"field.require_serial_number_scanning": "[ko]require serial number scanning",
|
|
4
|
-
"field.packing_size": "[ko]packing size",
|
|
5
|
-
"field.deleted": "[ko]deleted",
|
|
6
|
-
"button.restore": "[ko]restore",
|
|
7
|
-
"text.there_is_nothing_to_restore": "[ko]there is nothing to restore",
|
|
8
|
-
"text.data_restore_successfully": "[ko]data restore successfully",
|
|
9
|
-
"text.invalid_bundle_qty_for_item_number": "[ko] invalid bundle qty for item number",
|
|
10
|
-
"text.invalid_qty_for_item_number_x": "[ko] invalid qty for item #{state.x}",
|
|
11
3
|
"button.add_new_product": "[ko]add new product",
|
|
12
4
|
"button.back": "[ko]back",
|
|
13
5
|
"button.cancel": "[ko]cancel",
|
|
14
6
|
"button.delete": "[ko]delete",
|
|
15
7
|
"button.link_product": "[ko]link product",
|
|
8
|
+
"button.restore": "[ko]restore",
|
|
16
9
|
"button.save": "[ko]save",
|
|
17
10
|
"button.sync_data": "[ko]sync data",
|
|
18
11
|
"field.aux_unit": "[ko]aux unit",
|
|
@@ -20,7 +13,7 @@
|
|
|
20
13
|
"field.brand_sku": "[ko]brand sku",
|
|
21
14
|
"field.buffer_qty": "[ko]buffer qty",
|
|
22
15
|
"field.case_depth": "[ko]case depth",
|
|
23
|
-
"field.case_gross_weight": "
|
|
16
|
+
"field.case_gross_weight": "[ko]case gross weight",
|
|
24
17
|
"field.case_gtin": "[ko]case GTIN",
|
|
25
18
|
"field.case_height": "[ko]case height",
|
|
26
19
|
"field.case_volume": "[ko]case volume",
|
|
@@ -30,13 +23,13 @@
|
|
|
30
23
|
"field.child_product_ref": "[ko]child product ref",
|
|
31
24
|
"field.child_qty": "[ko]child qty",
|
|
32
25
|
"field.cogs_account_code": "[ko]COGS account code",
|
|
33
|
-
"field.combination": "[ko]
|
|
26
|
+
"field.combination": "[ko]combination",
|
|
27
|
+
"field.deleted": "[ko]deleted",
|
|
34
28
|
"field.density": "[ko]density",
|
|
35
29
|
"field.depth": "[ko]depth",
|
|
36
30
|
"field.description": "[ko]description",
|
|
37
31
|
"field.expiration_period": "[ko]expiration Period",
|
|
38
32
|
"field.gross_weight": "g[ko]ross weight",
|
|
39
|
-
"field.nett_weight": "n[ko]ett weight",
|
|
40
33
|
"field.gtin": "[ko]GTIN",
|
|
41
34
|
"field.height": "[ko]height",
|
|
42
35
|
"field.inventory_account_code": "[ko]inventory account code",
|
|
@@ -45,11 +38,14 @@
|
|
|
45
38
|
"field.min_qty": "[ko]min qty",
|
|
46
39
|
"field.movement": "[ko]movement",
|
|
47
40
|
"field.name": "[ko]name",
|
|
41
|
+
"field.nett_weight": "n[ko]ett weight",
|
|
42
|
+
"field.packing_size": "[ko]packing size",
|
|
48
43
|
"field.packing_type": "[ko]packing type",
|
|
49
44
|
"field.product_info": "[ko]product info",
|
|
50
45
|
"field.product_ref": "[ko]product ref",
|
|
51
46
|
"field.product_set_info": "[ko]product set info",
|
|
52
|
-
"field.ref_code": "[ko]
|
|
47
|
+
"field.ref_code": "[ko]ref code",
|
|
48
|
+
"field.require_serial_number_scanning": "[ko]require serial number scanning",
|
|
53
49
|
"field.required_checking_expiry": "[ko]required checking expiry",
|
|
54
50
|
"field.require_serial_number_scanning_inbound": "[ko] require serial number scanning inbound",
|
|
55
51
|
"field.require_serial_number_scanning_outbound": "[ko] require serial number scanning outbound",
|
|
@@ -65,11 +61,20 @@
|
|
|
65
61
|
"field.weight_unit": "[ko]weight unit",
|
|
66
62
|
"field.weight": "[ko]weight",
|
|
67
63
|
"field.width": "[ko]width",
|
|
68
|
-
"
|
|
64
|
+
"label.fefo": "[ko]FEFO",
|
|
65
|
+
"label.fmfo": "[ko]FMFO",
|
|
66
|
+
"label.fifo": "[ko]FIFO",
|
|
67
|
+
"label.lifo": "[ko]LIFO",
|
|
68
|
+
"label.location": "[ko]location",
|
|
69
|
+
"text.data_restore_successfully": "[ko]data restore successfully",
|
|
70
|
+
"text.invalid_bundle_qty_for_item_number": "[ko]invalid bundle qty for item number",
|
|
71
|
+
"text.invalid_qty_for_item_number_x": "[ko]invalid qty for item #{state.x}",
|
|
72
|
+
"text.there_is_nothing_to_restore": "[ko]there is nothing to restore",
|
|
73
|
+
"title.combination_sets": "[ko]combination sets",
|
|
74
|
+
"title.combination": "[ko]combination",
|
|
75
|
+
"title.linked_products": "[ko]linked products",
|
|
69
76
|
"title.product_bundle_setting": "[ko]product bundle setting",
|
|
70
77
|
"title.product_bundle": "[ko]product bundle",
|
|
71
78
|
"title.product_set": "[ko]product set",
|
|
72
|
-
"title.product": "[ko]product"
|
|
73
|
-
"title.combination": "[ko] combination",
|
|
74
|
-
"title.combination_sets": "[ko] combination sets"
|
|
79
|
+
"title.product": "[ko]product"
|
|
75
80
|
}
|
package/translations/ms.json
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"field.picking_strategy": "[ms]picking strategy",
|
|
3
|
-
"field.require_serial_number_scanning": "[ms]require serial number scanning",
|
|
4
|
-
"field.packing_size": "[ms]packing size",
|
|
5
|
-
"field.deleted": "[ms]deleted",
|
|
6
|
-
"button.restore": "[ms]restore",
|
|
7
|
-
"text.there_is_nothing_to_restore": "[ms]there is nothing to restore",
|
|
8
|
-
"text.data_restore_successfully": "[ms]data restore successfully",
|
|
9
|
-
"text.invalid_bundle_qty_for_item_number": "[ms] invalid bundle qty for item number",
|
|
10
|
-
"text.invalid_qty_for_item_number_x": "[ms] invalid qty for item #{state.x}",
|
|
11
3
|
"button.add_new_product": "[ms]add new product",
|
|
12
4
|
"button.back": "[ms]back",
|
|
13
5
|
"button.cancel": "[ms]cancel",
|
|
14
6
|
"button.delete": "[ms]delete",
|
|
15
7
|
"button.link_product": "[ms]link product",
|
|
8
|
+
"button.restore": "[ms]restore",
|
|
16
9
|
"button.save": "[ms]save",
|
|
17
10
|
"button.sync_data": "[ms]sync data",
|
|
18
11
|
"field.aux_unit": "[ms]aux unit",
|
|
@@ -31,12 +24,12 @@
|
|
|
31
24
|
"field.child_qty": "[ms]child qty",
|
|
32
25
|
"field.cogs_account_code": "[ms]COGS account code",
|
|
33
26
|
"field.combination": "[ms] combination",
|
|
27
|
+
"field.deleted": "[ms]deleted",
|
|
34
28
|
"field.density": "[ms]density",
|
|
35
29
|
"field.depth": "[ms]depth",
|
|
36
30
|
"field.description": "[ms]description",
|
|
37
31
|
"field.expiration_period": "[ms]expiration Period",
|
|
38
32
|
"field.gross_weight": "g[ms]ross weight",
|
|
39
|
-
"field.nett_weight": "n[ms]ett weight",
|
|
40
33
|
"field.gtin": "[ms]GTIN",
|
|
41
34
|
"field.height": "[ms]height",
|
|
42
35
|
"field.inventory_account_code": "[ms]inventory account code",
|
|
@@ -45,11 +38,14 @@
|
|
|
45
38
|
"field.min_qty": "[ms]min qty",
|
|
46
39
|
"field.movement": "[ms]movement",
|
|
47
40
|
"field.name": "[ms]name",
|
|
41
|
+
"field.nett_weight": "n[ms]ett weight",
|
|
42
|
+
"field.packing_size": "[ms]packing size",
|
|
48
43
|
"field.packing_type": "[ms]packing type",
|
|
49
44
|
"field.product_info": "[ms]product info",
|
|
50
45
|
"field.product_ref": "[ms]product ref",
|
|
51
46
|
"field.product_set_info": "[ms]product set info",
|
|
52
47
|
"field.ref_code": "[ms]ref code",
|
|
48
|
+
"field.require_serial_number_scanning": "[ms]require serial number scanning",
|
|
53
49
|
"field.required_checking_expiry": "[ms]required checking expiry",
|
|
54
50
|
"field.require_serial_number_scanning_inbound": "[ms]require serial number scanning inbound",
|
|
55
51
|
"field.require_serial_number_scanning_outbound": "[ms]require serial number scanning outbound",
|
|
@@ -65,11 +61,20 @@
|
|
|
65
61
|
"field.weight_unit": "[ms]weight unit",
|
|
66
62
|
"field.weight": "[ms]weight",
|
|
67
63
|
"field.width": "[ms]width",
|
|
64
|
+
"label.fefo": "[ms]FEFO",
|
|
65
|
+
"label.fmfo": "[ms]FMFO",
|
|
66
|
+
"label.fifo": "[ms]FIFO",
|
|
67
|
+
"label.lifo": "[ms]LIFO",
|
|
68
|
+
"label.location": "[ms]location",
|
|
69
|
+
"text.data_restore_successfully": "[ms]data restore successfully",
|
|
70
|
+
"text.invalid_bundle_qty_for_item_number": "[ms] invalid bundle qty for item number",
|
|
71
|
+
"text.invalid_qty_for_item_number_x": "[ms] invalid qty for item #{state.x}",
|
|
72
|
+
"text.there_is_nothing_to_restore": "[ms]there is nothing to restore",
|
|
73
|
+
"title.combination_sets": "[ms] combination sets",
|
|
74
|
+
"title.combination": "[ms] combination",
|
|
68
75
|
"title.linked_products": "[ms] linked products",
|
|
69
76
|
"title.product_bundle_setting": "[ms]product bundle setting",
|
|
70
77
|
"title.product_bundle": "[ms]product bundle",
|
|
71
78
|
"title.product_set": "[ms]product set",
|
|
72
|
-
"title.product": "[ms]product"
|
|
73
|
-
"title.combination": "[ms] combination",
|
|
74
|
-
"title.combination_sets": "[ms] combination sets"
|
|
79
|
+
"title.product": "[ms]product"
|
|
75
80
|
}
|
package/translations/zh.json
CHANGED
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"field.picking_strategy": "[zh]picking strategy",
|
|
3
|
-
"field.require_serial_number_scanning": "[zh]require serial number scanning",
|
|
4
|
-
"button.restore": "[zh]restore",
|
|
5
|
-
"text.there_is_nothing_to_restore": "[zh]there is nothing to restore",
|
|
6
|
-
"text.data_restore_successfully": "[zh]data restore successfully",
|
|
7
|
-
"text.invalid_bundle_qty_for_item_number": "[zh] invalid bundle qty for item number",
|
|
8
|
-
"text.invalid_qty_for_item_number_x": "[zh] invalid qty for item #{state.x}",
|
|
9
|
-
|
|
10
3
|
"button.add_new_product": "[zh]add new product",
|
|
11
4
|
"button.back": "[zh]back",
|
|
12
5
|
"button.cancel": "[zh]cancel",
|
|
13
6
|
"button.delete": "[zh]delete",
|
|
14
7
|
"button.link_product": "[zh]link product",
|
|
8
|
+
"button.restore": "[zh]restore",
|
|
15
9
|
"button.save": "[zh]save",
|
|
16
10
|
"button.sync_data": "[zh]sync data",
|
|
17
|
-
|
|
18
|
-
"field.packing_size": "[zh]packing size",
|
|
19
|
-
"field.deleted": "[zh]deleted",
|
|
20
11
|
"field.aux_unit": "[zh]aux unit",
|
|
21
12
|
"field.aux_value": "[zh]aux value",
|
|
22
13
|
"field.brand_sku": "[zh]brand sku",
|
|
@@ -33,12 +24,12 @@
|
|
|
33
24
|
"field.child_qty": "[zh]child qty",
|
|
34
25
|
"field.cogs_account_code": "[zh]COGS account code",
|
|
35
26
|
"field.combination": "[zh] combination",
|
|
27
|
+
"field.deleted": "[zh]deleted",
|
|
36
28
|
"field.density": "[zh]density",
|
|
37
29
|
"field.depth": "[zh]depth",
|
|
38
30
|
"field.description": "[zh]description",
|
|
39
31
|
"field.expiration_period": "[zh]expiration Period",
|
|
40
32
|
"field.gross_weight": "[zh]gross weight",
|
|
41
|
-
"field.nett_weight": "[zh]nett weight",
|
|
42
33
|
"field.gtin": "[zh]GTIN",
|
|
43
34
|
"field.height": "[zh]height",
|
|
44
35
|
"field.inventory_account_code": "[zh]inventory account code",
|
|
@@ -47,11 +38,14 @@
|
|
|
47
38
|
"field.min_qty": "[zh]min qty",
|
|
48
39
|
"field.movement": "[zh]movement",
|
|
49
40
|
"field.name": "[zh]name",
|
|
41
|
+
"field.nett_weight": "[zh]nett weight",
|
|
42
|
+
"field.packing_size": "[zh]packing size",
|
|
50
43
|
"field.packing_type": "[zh]packing type",
|
|
51
44
|
"field.product_info": "[zh]product info",
|
|
52
45
|
"field.product_ref": "[zh]product ref",
|
|
53
46
|
"field.product_set_info": "[zh]product set info",
|
|
54
47
|
"field.ref_code": "[zh]ref code",
|
|
48
|
+
"field.require_serial_number_scanning": "[zh]require serial number scanning",
|
|
55
49
|
"field.required_checking_expiry": "[zh]required checking expiry",
|
|
56
50
|
"field.require_serial_number_scanning_inbound": "[zh]require serial number scanning inbound",
|
|
57
51
|
"field.require_serial_number_scanning_outbound": "[zh]require serial number scanning outbound",
|
|
@@ -67,11 +61,20 @@
|
|
|
67
61
|
"field.weight_unit": "[zh]weight unit",
|
|
68
62
|
"field.weight": "[zh]weight",
|
|
69
63
|
"field.width": "[zh]width",
|
|
64
|
+
"label.fefo": "[ms]FEFO",
|
|
65
|
+
"label.fmfo": "[ms]FMFO",
|
|
66
|
+
"label.fifo": "[ms]FIFO",
|
|
67
|
+
"label.lifo": "[ms]LIFO",
|
|
68
|
+
"label.location": "[ms]location",
|
|
69
|
+
"text.data_restore_successfully": "[zh]data restore successfully",
|
|
70
|
+
"text.invalid_bundle_qty_for_item_number": "[zh] invalid bundle qty for item number",
|
|
71
|
+
"text.invalid_qty_for_item_number_x": "[zh] invalid qty for item #{state.x}",
|
|
72
|
+
"text.there_is_nothing_to_restore": "[zh]there is nothing to restore",
|
|
73
|
+
"title.combination_sets": "[zh] combination sets",
|
|
74
|
+
"title.combination": "[zh] combination",
|
|
70
75
|
"title.linked_products": "[zh] linked products",
|
|
71
76
|
"title.product_bundle_setting": "[zh]product bundle setting",
|
|
72
77
|
"title.product_bundle": "[zh]product bundle",
|
|
73
78
|
"title.product_set": "[zh]product set",
|
|
74
|
-
"title.product": "[zh]product"
|
|
75
|
-
"title.combination": "[zh] combination",
|
|
76
|
-
"title.combination_sets": "[zh] combination sets"
|
|
79
|
+
"title.product": "[zh]product"
|
|
77
80
|
}
|