@things-factory/product-ui 4.3.383 → 4.3.398

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.
@@ -3,29 +3,15 @@ import '@things-factory/grist-ui'
3
3
  import './product-details-popup'
4
4
 
5
5
  import gql from 'graphql-tag'
6
- import {
7
- css,
8
- html
9
- } from 'lit'
6
+ import { css, html } from 'lit'
10
7
  import _ from 'lodash'
11
8
 
12
9
  import { getCodeByName } from '@things-factory/code-base'
13
- import {
14
- i18next,
15
- localize
16
- } from '@things-factory/i18n-base'
10
+ import { i18next, localize } from '@things-factory/i18n-base'
17
11
  import { openImportPopUp } from '@things-factory/import-ui'
18
12
  import { openPopup } from '@things-factory/layout-base'
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'
13
+ import { client, CustomAlert, gqlContext, PageView } from '@things-factory/shell'
14
+ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
29
15
  import { isMobileDevice } from '@things-factory/utils'
30
16
 
31
17
  import { PICKING_STRATEGIES } from './constants/picking-strategy'
@@ -524,14 +510,6 @@ class ProductList extends localize(i18next)(PageView) {
524
510
  header: i18next.t('field.bundle_qty'),
525
511
  width: 80
526
512
  },
527
- {
528
- type: 'string',
529
- name: 'gtin',
530
- record: { editable: true },
531
- imex: { header: '*' + i18next.t('field.gtin'), key: 'gtin', width: 20, type: 'string' },
532
- header: '*' + i18next.t('field.gtin'),
533
- width: 120
534
- },
535
513
  {
536
514
  type: 'string',
537
515
  name: 'refCode',
@@ -876,7 +854,6 @@ class ProductList extends localize(i18next)(PageView) {
876
854
  brandSku
877
855
  brand
878
856
  subBrand
879
- gtin
880
857
  pickingStrategy
881
858
  commissionFee
882
859
  platformFee
@@ -959,23 +936,6 @@ class ProductList extends localize(i18next)(PageView) {
959
936
  _fieldChange(e) {
960
937
  var { after, before, column, record, row } = e.detail
961
938
 
962
- switch (column.name) {
963
- case 'gtin':
964
- if (after == '') {
965
- this.dataGrist._data.records[row].gtin = before
966
-
967
- this.data = {
968
- ...this.dataGrist._data
969
- }
970
-
971
- this.showToast('GTIN is required')
972
- }
973
-
974
- break
975
- default:
976
- break
977
- }
978
-
979
939
  if (column.record?.options?.min > after) {
980
940
  this.dataGrist._data.records[row][column.name] = before
981
941
  this.data = {
@@ -1355,7 +1315,6 @@ class ProductList extends localize(i18next)(PageView) {
1355
1315
  brandSku
1356
1316
  brand
1357
1317
  subBrand
1358
- gtin
1359
1318
  pickingStrategy
1360
1319
  commissionFee
1361
1320
  platformFee
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-ui",
3
- "version": "4.3.383",
3
+ "version": "4.3.398",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -28,8 +28,8 @@
28
28
  "@things-factory/i18n-base": "^4.3.381",
29
29
  "@things-factory/import-ui": "^4.3.381",
30
30
  "@things-factory/layout-base": "^4.3.381",
31
- "@things-factory/product-base": "^4.3.383",
31
+ "@things-factory/product-base": "^4.3.398",
32
32
  "@things-factory/shell": "^4.3.381"
33
33
  },
34
- "gitHead": "03a2cb232a8d72e1e6aca1992107b3777fe5a3e0"
34
+ "gitHead": "ccc4a07675eba5fec19a27fded4d0c56291e62e2"
35
35
  }