@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.
@@ -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 { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
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 { i18next, localize } from '@things-factory/i18n-base'
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 gql from 'graphql-tag'
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 getCodeByName('PRODUCT_TYPES')
129
- const packingType = await getCodeByName('PACKING_TYPES')
130
- const uom = await getCodeByName('UOM')
131
- const weightUnit = await getCodeByName('WEIGHT_UNITS')
132
- const lengthUnit = await getCodeByName('LENGTH_UNITS')
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: [20, 50, 100, 500, 999] },
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.74",
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.74",
28
- "@things-factory/grist-ui": "^4.3.74",
29
- "@things-factory/i18n-base": "^4.3.74",
30
- "@things-factory/import-ui": "^4.3.74",
31
- "@things-factory/layout-base": "^4.3.74",
32
- "@things-factory/product-base": "^4.3.74",
33
- "@things-factory/shell": "^4.3.74"
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": "f9aee457ecca352c1b3ef6be1656ed73b98af038"
35
+ "gitHead": "90e997e892d476732961326f4731ca47b22a45bc"
36
36
  }