@things-factory/product-ui 6.0.151 → 6.1.0

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,5 +1,5 @@
1
1
  import '@things-factory/form-ui'
2
- import '@things-factory/grist-ui'
2
+ import '@operato/data-grist'
3
3
 
4
4
  import gql from 'graphql-tag'
5
5
  import { css, html, LitElement } from 'lit'
@@ -39,7 +39,7 @@ class ProductCombinationSelectionPopup extends localize(i18next)(LitElement) {
39
39
  search-form {
40
40
  overflow: visible;
41
41
  }
42
- data-grist {
42
+ ox-grist {
43
43
  overflow-y: auto;
44
44
  flex: 1;
45
45
  }
@@ -97,7 +97,7 @@ class ProductCombinationSelectionPopup extends localize(i18next)(LitElement) {
97
97
  }
98
98
 
99
99
  get productCombinationGrist() {
100
- return this.shadowRoot.querySelector('data-grist#product_combination_grist')
100
+ return this.shadowRoot.querySelector('ox-grist#product_combination_grist')
101
101
  }
102
102
 
103
103
  render() {
@@ -114,24 +114,24 @@ class ProductCombinationSelectionPopup extends localize(i18next)(LitElement) {
114
114
  @submit=${e => this.productCombinationGrist.fetch()}
115
115
  ></search-form>
116
116
 
117
- <data-grist
117
+ <ox-grist
118
118
  id="product_combination_grist"
119
119
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
120
120
  .config=${this.productCombinationConfig}
121
121
  .data=${this.productCombinationData}
122
122
  .fetchHandler="${this.fetchHandler.bind(this)}"
123
- ></data-grist>
123
+ ></ox-grist>
124
124
 
125
125
  ${this.selectedProductCombination?.record
126
126
  ? html`<div class="header">
127
127
  <legend>${i18next.t('title.combination_sets')}</legend>
128
128
  </div>
129
- <data-grist
129
+ <ox-grist
130
130
  id="product_combination_grist"
131
131
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
132
132
  .config=${this.productCombinationSettingConfig}
133
133
  .data=${this.productCombinationSettingData}
134
- ></data-grist>`
134
+ ></ox-grist>`
135
135
  : ''}
136
136
  </div>
137
137
  </div>
@@ -1,5 +1,5 @@
1
1
  import '@things-factory/form-ui'
2
- import '@things-factory/grist-ui'
2
+ import '@operato/data-grist'
3
3
 
4
4
  import gql from 'graphql-tag'
5
5
  import { css, html, LitElement } from 'lit'
@@ -36,7 +36,7 @@ class ProductBundleLinkPopup extends localize(i18next)(LitElement) {
36
36
  search-form {
37
37
  overflow: visible;
38
38
  }
39
- data-grist {
39
+ ox-grist {
40
40
  overflow-y: auto;
41
41
  flex: 1;
42
42
  }
@@ -75,11 +75,11 @@ class ProductBundleLinkPopup extends localize(i18next)(LitElement) {
75
75
  }
76
76
 
77
77
  get productListGrist() {
78
- return this.shadowRoot.querySelector('data-grist#product_list_grist')
78
+ return this.shadowRoot.querySelector('ox-grist#product_list_grist')
79
79
  }
80
80
 
81
81
  get productBundleListGrist() {
82
- return this.shadowRoot.querySelector('data-grist#product_bundle_link_grist')
82
+ return this.shadowRoot.querySelector('ox-grist#product_bundle_link_grist')
83
83
  }
84
84
 
85
85
  render() {
@@ -94,20 +94,20 @@ class ProductBundleLinkPopup extends localize(i18next)(LitElement) {
94
94
  @submit=${e => this.productListGrist.fetch()}
95
95
  ></search-form>
96
96
 
97
- <data-grist
97
+ <ox-grist
98
98
  id="product_list_grist"
99
99
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
100
100
  .config=${this.productConfig}
101
101
  .fetchHandler=${this._fetchMyBizplaceProducts.bind(this)}
102
102
  >
103
- </data-grist>
103
+ </ox-grist>
104
104
 
105
- <data-grist
105
+ <ox-grist
106
106
  id="product_bundle_link_grist"
107
107
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
108
108
  .config=${this.productBundleConfig}
109
109
  .data=${this.productBundleData}
110
- ></data-grist>
110
+ ></ox-grist>
111
111
 
112
112
  <div class="button-container">
113
113
  <mwc-button @click=${this.linkProductBundle} raised label="${i18next.t('button.link_product')}"></mwc-button>
@@ -1,6 +1,6 @@
1
1
  import './product-bundle-link-popup'
2
2
  import '@things-factory/form-ui'
3
- import '@things-factory/grist-ui'
3
+ import '@operato/data-grist'
4
4
 
5
5
  import gql from 'graphql-tag'
6
6
  import { css, html } from 'lit'
@@ -33,7 +33,7 @@ class ProductBundleList extends localize(i18next)(PageView) {
33
33
  search-form {
34
34
  overflow: visible;
35
35
  }
36
- data-grist {
36
+ ox-grist {
37
37
  overflow-y: auto;
38
38
  flex: 1;
39
39
  }
@@ -45,12 +45,12 @@ class ProductBundleList extends localize(i18next)(PageView) {
45
45
  return html`
46
46
  <search-form .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
47
47
 
48
- <data-grist
48
+ <ox-grist
49
49
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
50
50
  .config=${this.productGristConfig}
51
51
  .data=${this.data}
52
52
  .fetchHandler="${this.fetchHandler.bind(this)}"
53
- ></data-grist>
53
+ ></ox-grist>
54
54
  `
55
55
  }
56
56
 
@@ -80,7 +80,7 @@ class ProductBundleList extends localize(i18next)(PageView) {
80
80
  }
81
81
 
82
82
  get dataGrist() {
83
- return this.shadowRoot.querySelector('data-grist')
83
+ return this.shadowRoot.querySelector('ox-grist')
84
84
  }
85
85
 
86
86
  async pageUpdated(changes, lifecycle) {
@@ -1,5 +1,5 @@
1
1
  import '@things-factory/form-ui'
2
- import '@things-factory/grist-ui'
2
+ import '@operato/data-grist'
3
3
 
4
4
  import gql from 'graphql-tag'
5
5
  import { css, html, LitElement } from 'lit'
@@ -34,7 +34,7 @@ class ProductCombinationSettingsPopup extends localize(i18next)(LitElement) {
34
34
  search-form {
35
35
  overflow: visible;
36
36
  }
37
- data-grist {
37
+ ox-grist {
38
38
  flex: 1;
39
39
  }
40
40
  .grist-container {
@@ -83,11 +83,11 @@ class ProductCombinationSettingsPopup extends localize(i18next)(LitElement) {
83
83
  }
84
84
 
85
85
  get productListGrist() {
86
- return this.shadowRoot.querySelector('data-grist#product_list_grist')
86
+ return this.shadowRoot.querySelector('ox-grist#product_list_grist')
87
87
  }
88
88
 
89
89
  get productCombinationSettingGrist() {
90
- return this.shadowRoot.querySelector('data-grist#product_combination_setting_grist')
90
+ return this.shadowRoot.querySelector('ox-grist#product_combination_setting_grist')
91
91
  }
92
92
 
93
93
  render() {
@@ -100,24 +100,24 @@ class ProductCombinationSettingsPopup extends localize(i18next)(LitElement) {
100
100
  @submit=${e => this.productListGrist.fetch()}
101
101
  ></search-form>
102
102
 
103
- <data-grist
103
+ <ox-grist
104
104
  id="product_list_grist"
105
105
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
106
106
  .config=${this.productConfig}
107
107
  .fetchHandler=${this._fetchMyBizplaceProducts.bind(this)}
108
108
  >
109
- </data-grist>
109
+ </ox-grist>
110
110
 
111
111
  <div class="header">
112
112
  <legend>${i18next.t('title.linked_products')}</legend>
113
113
  </div>
114
114
 
115
- <data-grist
115
+ <ox-grist
116
116
  id="product_combination_setting_grist"
117
117
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
118
118
  .config=${this.productCombinationSettingConfig}
119
119
  .data=${this.productCombinationSettingData}
120
- ></data-grist>
120
+ ></ox-grist>
121
121
  </div>
122
122
  </div>
123
123
 
@@ -1,5 +1,5 @@
1
1
  import '@things-factory/form-ui'
2
- import '@things-factory/grist-ui'
2
+ import '@operato/data-grist'
3
3
  import './product-combination-settings-popup'
4
4
 
5
5
  import gql from 'graphql-tag'
@@ -35,7 +35,7 @@ class ProductCombinationsPopup extends localize(i18next)(LitElement) {
35
35
  search-form {
36
36
  overflow: visible;
37
37
  }
38
- data-grist {
38
+ ox-grist {
39
39
  overflow-y: auto;
40
40
  flex: 1;
41
41
  }
@@ -93,7 +93,7 @@ class ProductCombinationsPopup extends localize(i18next)(LitElement) {
93
93
  }
94
94
 
95
95
  get productCombinationGrist() {
96
- return this.shadowRoot.querySelector('data-grist#product_combination_grist')
96
+ return this.shadowRoot.querySelector('ox-grist#product_combination_grist')
97
97
  }
98
98
 
99
99
  render() {
@@ -110,13 +110,13 @@ class ProductCombinationsPopup extends localize(i18next)(LitElement) {
110
110
  @submit=${e => this.productCombinationGrist.fetch()}
111
111
  ></search-form>
112
112
 
113
- <data-grist
113
+ <ox-grist
114
114
  id="product_combination_grist"
115
115
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
116
116
  .config=${this.productCombinationConfig}
117
117
  .data=${this.productCombinationData}
118
118
  .fetchHandler="${this.fetchHandler.bind(this)}"
119
- ></data-grist>
119
+ ></ox-grist>
120
120
 
121
121
  <div class="button-container">
122
122
  <mwc-button @click=${this.saveProductCombinations} raised label="${i18next.t('button.save')}"></mwc-button>
@@ -1,5 +1,5 @@
1
1
  import '@things-factory/form-ui'
2
- import '@things-factory/grist-ui'
2
+ import '@operato/data-grist'
3
3
  import './product-combinations-popup'
4
4
 
5
5
  import gql from 'graphql-tag'
@@ -32,7 +32,7 @@ export class ProductDetailsPopup extends localize(i18next)(LitElement) {
32
32
  search-form {
33
33
  overflow: visible;
34
34
  }
35
- data-grist {
35
+ ox-grist {
36
36
  overflow-y: auto;
37
37
  flex: 1;
38
38
  }
@@ -82,7 +82,7 @@ export class ProductDetailsPopup extends localize(i18next)(LitElement) {
82
82
  }
83
83
 
84
84
  get dataGrist() {
85
- return this.shadowRoot.querySelector('data-grist')
85
+ return this.shadowRoot.querySelector('ox-grist')
86
86
  }
87
87
 
88
88
  get buttonSave() {
@@ -91,13 +91,13 @@ export class ProductDetailsPopup extends localize(i18next)(LitElement) {
91
91
 
92
92
  render() {
93
93
  return html`
94
- <data-grist
94
+ <ox-grist
95
95
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
96
96
  .config=${this.config}
97
97
  .data=${this._data}
98
98
  .fetchHandler="${this.fetchHandler.bind(this)}"
99
99
  @field-change="${this._fieldChange.bind(this)}"
100
- ></data-grist>
100
+ ></ox-grist>
101
101
 
102
102
  <div class="button-container">
103
103
  <mwc-button
@@ -1,5 +1,5 @@
1
1
  import '@things-factory/form-ui'
2
- import '@things-factory/grist-ui'
2
+ import '@operato/data-grist'
3
3
  import './product-details-popup'
4
4
 
5
5
  import gql from 'graphql-tag'
@@ -36,7 +36,7 @@ class ProductList extends localize(i18next)(PageView) {
36
36
  search-form {
37
37
  overflow: visible;
38
38
  }
39
- data-grist {
39
+ ox-grist {
40
40
  overflow-y: auto;
41
41
  flex: 1;
42
42
  }
@@ -48,13 +48,13 @@ class ProductList extends localize(i18next)(PageView) {
48
48
  return html`
49
49
  <search-form .fields=${this.searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
50
50
 
51
- <data-grist
51
+ <ox-grist
52
52
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
53
53
  .config=${this.productGristConfig}
54
54
  .data=${this.data}
55
55
  .fetchHandler="${this.fetchHandler.bind(this)}"
56
56
  @field-change="${this._fieldChange.bind(this)}"
57
- ></data-grist>
57
+ ></ox-grist>
58
58
  `
59
59
  }
60
60
 
@@ -121,7 +121,7 @@ class ProductList extends localize(i18next)(PageView) {
121
121
  }
122
122
 
123
123
  get dataGrist() {
124
- return this.shadowRoot.querySelector('data-grist')
124
+ return this.shadowRoot.querySelector('ox-grist')
125
125
  }
126
126
 
127
127
  async pageUpdated(changes, lifecycle) {
@@ -1,6 +1,6 @@
1
1
  import { getCodeByName } from '@things-factory/code-base'
2
2
  import '@things-factory/form-ui'
3
- import '@things-factory/grist-ui'
3
+ import '@operato/data-grist'
4
4
  import { i18next, localize } from '@things-factory/i18n-base'
5
5
  import { client, CustomAlert, gqlContext } from '@things-factory/shell'
6
6
  import { ScrollbarStyles } from '@things-factory/styles'
@@ -22,7 +22,7 @@ export class ProductSetLinkPopup extends localize(i18next)(LitElement) {
22
22
  search-form {
23
23
  overflow: visible;
24
24
  }
25
- data-grist {
25
+ ox-grist {
26
26
  overflow-y: auto;
27
27
  flex: 1;
28
28
  }
@@ -54,19 +54,19 @@ export class ProductSetLinkPopup extends localize(i18next)(LitElement) {
54
54
  return html`
55
55
  <search-form .fields=${this.searchFields} @submit=${e => this.productDataGrist.fetch()}></search-form>
56
56
 
57
- <data-grist
57
+ <ox-grist
58
58
  id="product-grist"
59
59
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
60
60
  .config=${this.productGristConfig}
61
61
  .fetchHandler=${this.fetchHandler.bind(this)}
62
- ></data-grist>
62
+ ></ox-grist>
63
63
 
64
- <data-grist
64
+ <ox-grist
65
65
  id="product-link-grist"
66
66
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
67
67
  .config=${this.productLinkConfig}
68
68
  .data=${this.productLinkData}
69
- ></data-grist>
69
+ ></ox-grist>
70
70
 
71
71
  <div class="button-container">
72
72
  <mwc-button @click=${this._saveProducts} raised label="${i18next.t('button.add_new_product')}"></mwc-button>
@@ -80,11 +80,11 @@ export class ProductSetLinkPopup extends localize(i18next)(LitElement) {
80
80
  }
81
81
 
82
82
  get productDataGrist() {
83
- return this.shadowRoot.querySelector('data-grist#product-grist')
83
+ return this.shadowRoot.querySelector('ox-grist#product-grist')
84
84
  }
85
85
 
86
86
  get productLinkDataGrist() {
87
- return this.shadowRoot.querySelector('data-grist#product-link-grist')
87
+ return this.shadowRoot.querySelector('ox-grist#product-link-grist')
88
88
  }
89
89
 
90
90
  async firstUpdated() {
@@ -1,5 +1,5 @@
1
1
  import '@things-factory/form-ui'
2
- import '@things-factory/grist-ui'
2
+ import '@operato/data-grist'
3
3
  import './product-set-link-popup'
4
4
 
5
5
  import gql from 'graphql-tag'
@@ -33,7 +33,7 @@ class ProductSetList extends localize(i18next)(PageView) {
33
33
  search-form {
34
34
  overflow: visible;
35
35
  }
36
- data-grist {
36
+ ox-grist {
37
37
  overflow-y: auto;
38
38
  flex: 1;
39
39
  }
@@ -45,12 +45,12 @@ class ProductSetList extends localize(i18next)(PageView) {
45
45
  return html`
46
46
  <search-form .fields=${this.searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
47
47
 
48
- <data-grist
48
+ <ox-grist
49
49
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
50
50
  .config=${this.productSetGristConfig}
51
51
  .data=${this.data}
52
52
  .fetchHandler="${this.fetchHandler.bind(this)}"
53
- ></data-grist>
53
+ ></ox-grist>
54
54
  `
55
55
  }
56
56
 
@@ -96,7 +96,7 @@ class ProductSetList extends localize(i18next)(PageView) {
96
96
  }
97
97
 
98
98
  get dataGrist() {
99
- return this.shadowRoot.querySelector('data-grist')
99
+ return this.shadowRoot.querySelector('ox-grist')
100
100
  }
101
101
 
102
102
  async pageUpdated(changes, lifecycle) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-ui",
3
- "version": "6.0.151",
3
+ "version": "6.1.0",
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
+ "@operato/data-grist": "^1.3.5",
27
28
  "@operato/layout": "^1.0.1",
28
- "@things-factory/form-ui": "^6.0.145",
29
- "@things-factory/grist-ui": "^6.0.145",
30
- "@things-factory/i18n-base": "^6.0.145",
31
- "@things-factory/import-ui": "^6.0.145",
32
- "@things-factory/product-base": "^6.0.151",
33
- "@things-factory/shell": "^6.0.145"
29
+ "@things-factory/form-ui": "^6.1.0",
30
+ "@things-factory/i18n-base": "^6.1.0",
31
+ "@things-factory/import-ui": "^6.1.0",
32
+ "@things-factory/product-base": "^6.1.0",
33
+ "@things-factory/shell": "^6.1.0"
34
34
  },
35
- "gitHead": "aed6e532c98fff71ea56ade617de2ed68f1602d9"
35
+ "gitHead": "205ac14ff55275d948a8cc6d7c514b90d6baf6ef"
36
36
  }