@things-factory/product-ui 4.0.34 → 4.0.38

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.
@@ -336,8 +336,8 @@ class ProductCombinationSettingsPopup extends localize(i18next)(LitElement) {
336
336
  try {
337
337
  let patches = this.productCombinationSettingGrist.dirtyData.records.map(record => {
338
338
  const qty = record.qty
339
- if (!qty || qty <= 0) {
340
- throw new Error(i18next.t('text.invalid_qty_for_item_number', { number: record.__seq__ }))
339
+ if (!qty || qty <= 0 || !Number.isSafeInteger(qty)) {
340
+ throw new Error(i18next.t('text.invalid_qty_for_item_number_x', { state: {x: record.__seq__} }))
341
341
  }
342
342
  return {
343
343
  // only existing product combination will have id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-ui",
3
- "version": "4.0.34",
3
+ "version": "4.0.38",
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.0.34",
28
- "@things-factory/grist-ui": "^4.0.34",
29
- "@things-factory/i18n-base": "^4.0.34",
30
- "@things-factory/import-ui": "^4.0.34",
31
- "@things-factory/layout-base": "^4.0.34",
32
- "@things-factory/product-base": "^4.0.34",
33
- "@things-factory/shell": "^4.0.34"
27
+ "@things-factory/form-ui": "^4.0.38",
28
+ "@things-factory/grist-ui": "^4.0.38",
29
+ "@things-factory/i18n-base": "^4.0.38",
30
+ "@things-factory/import-ui": "^4.0.38",
31
+ "@things-factory/layout-base": "^4.0.38",
32
+ "@things-factory/product-base": "^4.0.38",
33
+ "@things-factory/shell": "^4.0.38"
34
34
  },
35
- "gitHead": "b79919fd02f8388f1d40300c52a25903ad98110c"
35
+ "gitHead": "c2b2638e6efec319d4024cedc8da513d560c126e"
36
36
  }
@@ -61,7 +61,8 @@
61
61
  "text.data_import_successfully": "data import successfully",
62
62
  "text.data_restore_successfully": "data restore successfully",
63
63
  "text.invalid_bundle_qty_for_item_number": "invalid bundle qty for item number",
64
- "text.invalid_qty_for_item_number": "invalid qty for item number",
64
+ "button.check_missing_x": "check missing {state.x}",
65
+ "text.invalid_qty_for_item_number_x": "invalid qty for item #{state.x}",
65
66
  "text.there_is_nothing_to_restore": "there is nothing to restore",
66
67
  "title.combination_sets": "combination sets",
67
68
  "title.combination": "combination",
@@ -6,7 +6,7 @@
6
6
  "text.there_is_nothing_to_restore": "[ko]there is nothing to restore",
7
7
  "text.data_restore_successfully": "[ko]data restore successfully",
8
8
  "text.invalid_bundle_qty_for_item_number": "[ko] invalid bundle qty for item number",
9
- "text.invalid_qty_for_item_number": "[ko] invalid qty for item number",
9
+ "text.invalid_qty_for_item_number_x": "[ko] invalid qty for item #{state.x}",
10
10
  "button.add_new_product": "[ko]add new product",
11
11
  "button.back": "[ko]back",
12
12
  "button.cancel": "[ko]cancel",
@@ -6,7 +6,7 @@
6
6
  "text.there_is_nothing_to_restore": "[ms]there is nothing to restore",
7
7
  "text.data_restore_successfully": "[ms]data restore successfully",
8
8
  "text.invalid_bundle_qty_for_item_number": "[ms] invalid bundle qty for item number",
9
- "text.invalid_qty_for_item_number": "[ms] invalid qty for item number",
9
+ "text.invalid_qty_for_item_number_x": "[ms] invalid qty for item #{state.x}",
10
10
  "button.add_new_product": "[ms]add new product",
11
11
  "button.back": "[ms]back",
12
12
  "button.cancel": "[ms]cancel",
@@ -4,7 +4,7 @@
4
4
  "text.there_is_nothing_to_restore": "[zh]there is nothing to restore",
5
5
  "text.data_restore_successfully": "[zh]data restore successfully",
6
6
  "text.invalid_bundle_qty_for_item_number": "[zh] invalid bundle qty for item number",
7
- "text.invalid_qty_for_item_number": "[zh] invalid qty for item number",
7
+ "text.invalid_qty_for_item_number_x": "[zh] invalid qty for item #{state.x}",
8
8
 
9
9
  "button.add_new_product": "[zh]add new product",
10
10
  "button.back": "[zh]back",