@things-factory/operato-mms 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.
- package/client/pages/catalogue/products.js +5 -5
- package/client/pages/catalogue/warehouse-marketplace-auto-link-popup.js +1 -1
- package/client/pages/catalogue/warehouse-marketplace-link-popup.js +7 -7
- package/client/pages/catalogue/warehouse-products.js +5 -5
- package/client/pages/catalogue-variation/product-variations.js +5 -5
- package/client/pages/inventory/inventory-by-product.js +5 -5
- package/client/pages/order/logistics/batch-init-popup.js +5 -5
- package/client/pages/order/logistics/branch-logistics-popup.js +5 -5
- package/client/pages/order/logistics/lazada-order-init-batch-popup.js +5 -5
- package/client/pages/order/logistics/order-init-popup.js +2 -2
- package/client/pages/order/logistics/order-items.js +5 -5
- package/client/pages/order/logistics/order-shipping-items.js +5 -5
- package/client/pages/order/logistics/order-shipping.js +2 -2
- package/client/pages/order/logistics/pickup-logistics-popup.js +8 -8
- package/client/pages/order/logistics/request-ro-popup.js +4 -4
- package/client/pages/order/logistics/shopee-order-init-batch-popup.js +5 -5
- package/client/pages/order/order-by-store.js +5 -5
- package/client/pages/order/select-datetime-popup.js +1 -1
- package/client/pages/promotions/create-new-promotion.js +5 -5
- package/client/pages/promotions/promotions.js +4 -4
- package/client/pages/reports/sales-by-platform/lazada-sales-report.js +5 -5
- package/client/pages/reports/sales-by-platform/shopee-sales-report.js +5 -5
- package/client/pages/stock-replenishment/create-stock-replenishment.js +6 -6
- package/client/pages/stock-replenishment/stock-replenishment-detail.js +6 -6
- package/client/pages/stock-replenishment/stock-replenishment-list.js +6 -6
- package/client/themes/grist-theme-for-compatiblility.css +41 -0
- package/client/themes/grist-theme.css +198 -0
- package/client/themes/report-theme.css +47 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCodeByName } from '@things-factory/code-base'
|
|
2
2
|
import '@things-factory/form-ui'
|
|
3
|
-
import '@
|
|
3
|
+
import '@operato/data-grist'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { openPopup } from '@things-factory/layout-base'
|
|
6
6
|
import { client, PageView } from '@things-factory/shell'
|
|
@@ -26,7 +26,7 @@ class Products extends localize(i18next)(PageView) {
|
|
|
26
26
|
overflow: visible;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
ox-grist {
|
|
30
30
|
overflow-y: auto;
|
|
31
31
|
flex: 1;
|
|
32
32
|
}
|
|
@@ -73,12 +73,12 @@ class Products extends localize(i18next)(PageView) {
|
|
|
73
73
|
|
|
74
74
|
return html`
|
|
75
75
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
76
|
-
<
|
|
76
|
+
<ox-grist
|
|
77
77
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
78
78
|
.config=${this.config}
|
|
79
79
|
.fetchHandler="${this._fetchProducts.bind(this)}"
|
|
80
80
|
>
|
|
81
|
-
</
|
|
81
|
+
</ox-grist>
|
|
82
82
|
|
|
83
83
|
<oops-progress
|
|
84
84
|
.tag=${tag}
|
|
@@ -192,7 +192,7 @@ class Products extends localize(i18next)(PageView) {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
get dataGrist() {
|
|
195
|
-
return this.shadowRoot.querySelector('
|
|
195
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
get _columns() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client, CustomAlert, gqlContext } from '@things-factory/shell'
|
|
5
5
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -33,7 +33,7 @@ class WarehouseMarketplaceLinkPopup extends localize(i18next)(LitElement) {
|
|
|
33
33
|
search-form {
|
|
34
34
|
overflow: visible;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
ox-grist {
|
|
37
37
|
overflow-y: auto;
|
|
38
38
|
flex: 1;
|
|
39
39
|
}
|
|
@@ -72,7 +72,7 @@ class WarehouseMarketplaceLinkPopup extends localize(i18next)(LitElement) {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
get dataGrist() {
|
|
75
|
-
return this.shadowRoot.querySelector('
|
|
75
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
render() {
|
|
@@ -82,20 +82,20 @@ class WarehouseMarketplaceLinkPopup extends localize(i18next)(LitElement) {
|
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
<search-form id="search-form" .fields=${this.searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
85
|
-
<
|
|
85
|
+
<ox-grist
|
|
86
86
|
id="marketplace-product-variation-grist"
|
|
87
87
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
88
88
|
.config=${this.config}
|
|
89
89
|
.fetchHandler="${this._fetchMarketplaceProductVariations.bind(this)}"
|
|
90
90
|
>
|
|
91
|
-
</
|
|
91
|
+
</ox-grist>
|
|
92
92
|
|
|
93
|
-
<
|
|
93
|
+
<ox-grist
|
|
94
94
|
id="warehouse-product-link-grist"
|
|
95
95
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
96
96
|
.config=${this.warehouseProductLinkConfig}
|
|
97
97
|
.data=${this.warehouseProductLinkData}
|
|
98
|
-
></
|
|
98
|
+
></ox-grist>
|
|
99
99
|
|
|
100
100
|
<div class="button-container">
|
|
101
101
|
<mwc-button
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { openPopup } from '@things-factory/layout-base'
|
|
5
5
|
import { client, PageView } from '@things-factory/shell'
|
|
@@ -26,7 +26,7 @@ class WarehouseProducts extends localize(i18next)(PageView) {
|
|
|
26
26
|
overflow: visible;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
ox-grist {
|
|
30
30
|
overflow-y: auto;
|
|
31
31
|
flex: 1;
|
|
32
32
|
}
|
|
@@ -63,12 +63,12 @@ class WarehouseProducts extends localize(i18next)(PageView) {
|
|
|
63
63
|
render() {
|
|
64
64
|
return html`
|
|
65
65
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
66
|
-
<
|
|
66
|
+
<ox-grist
|
|
67
67
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
68
68
|
.config=${this.config}
|
|
69
69
|
.fetchHandler="${this._fetchProducts.bind(this)}"
|
|
70
70
|
>
|
|
71
|
-
</
|
|
71
|
+
</ox-grist>
|
|
72
72
|
`
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -106,7 +106,7 @@ class WarehouseProducts extends localize(i18next)(PageView) {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
get dataGrist() {
|
|
109
|
-
return this.shadowRoot.querySelector('
|
|
109
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
get gristConfig() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
|
|
4
4
|
import gql from 'graphql-tag'
|
|
5
5
|
import { css, html } from 'lit'
|
|
@@ -24,7 +24,7 @@ class ProductVariations extends localize(i18next)(PageView) {
|
|
|
24
24
|
overflow: visible;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
ox-grist {
|
|
28
28
|
overflow-y: auto;
|
|
29
29
|
flex: 1;
|
|
30
30
|
}
|
|
@@ -61,12 +61,12 @@ class ProductVariations extends localize(i18next)(PageView) {
|
|
|
61
61
|
render() {
|
|
62
62
|
return html`
|
|
63
63
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
64
|
-
<
|
|
64
|
+
<ox-grist
|
|
65
65
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
66
66
|
.config=${this.config}
|
|
67
67
|
.fetchHandler="${this._fetchProducts.bind(this)}"
|
|
68
68
|
>
|
|
69
|
-
</
|
|
69
|
+
</ox-grist>
|
|
70
70
|
`
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -271,7 +271,7 @@ class ProductVariations extends localize(i18next)(PageView) {
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
get dataGrist() {
|
|
274
|
-
return this.shadowRoot.querySelector('
|
|
274
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
get _columns() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
|
|
4
4
|
import gql from 'graphql-tag'
|
|
5
5
|
import { css, html } from 'lit'
|
|
@@ -24,7 +24,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
24
24
|
overflow: visible;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
ox-grist {
|
|
28
28
|
overflow-y: auto;
|
|
29
29
|
flex: 1;
|
|
30
30
|
}
|
|
@@ -59,12 +59,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
59
59
|
render() {
|
|
60
60
|
return html`
|
|
61
61
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
62
|
-
<
|
|
62
|
+
<ox-grist
|
|
63
63
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
64
64
|
.config=${this.config}
|
|
65
65
|
.fetchHandler="${this._fetchProducts.bind(this)}"
|
|
66
66
|
>
|
|
67
|
-
</
|
|
67
|
+
</ox-grist>
|
|
68
68
|
`
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -102,7 +102,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
get dataGrist() {
|
|
105
|
-
return this.shadowRoot.querySelector('
|
|
105
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
get gristConfig() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html, LitElement } from 'lit'
|
|
@@ -42,7 +42,7 @@ class BatchInitPopup extends localize(i18next)(LitElement) {
|
|
|
42
42
|
flex: 1;
|
|
43
43
|
overflow-y: auto;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
ox-grist {
|
|
46
46
|
overflow-y: hidden;
|
|
47
47
|
flex: 1;
|
|
48
48
|
}
|
|
@@ -86,12 +86,12 @@ class BatchInitPopup extends localize(i18next)(LitElement) {
|
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
88
|
<div class="grist">
|
|
89
|
-
<
|
|
89
|
+
<ox-grist
|
|
90
90
|
id="grist"
|
|
91
91
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
92
92
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
93
93
|
.config=${this.config}
|
|
94
|
-
></
|
|
94
|
+
></ox-grist>
|
|
95
95
|
<div class="button-container">
|
|
96
96
|
<mwc-button
|
|
97
97
|
@click="${this.splitOrders.bind(this)}"
|
|
@@ -113,7 +113,7 @@ class BatchInitPopup extends localize(i18next)(LitElement) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
get dataGrist() {
|
|
116
|
-
return this.shadowRoot.querySelector('
|
|
116
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
get shippingProviderInput() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import '@things-factory/form-ui'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client } from '@things-factory/shell'
|
|
@@ -38,7 +38,7 @@ class BranchLogisticsPopup extends localize(i18next)(LitElement) {
|
|
|
38
38
|
display: flex;
|
|
39
39
|
flex: 1;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
ox-grist {
|
|
42
42
|
overflow-y: hidden;
|
|
43
43
|
flex: 1;
|
|
44
44
|
}
|
|
@@ -67,12 +67,12 @@ class BranchLogisticsPopup extends localize(i18next)(LitElement) {
|
|
|
67
67
|
<div class="grist-container">
|
|
68
68
|
<div class="grist">
|
|
69
69
|
<h2>${i18next.t('label.branch_info')}</h2>
|
|
70
|
-
<
|
|
70
|
+
<ox-grist
|
|
71
71
|
id="logisticsBranch"
|
|
72
72
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
73
73
|
.config=${this.branchConfig}
|
|
74
74
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
75
|
-
></
|
|
75
|
+
></ox-grist>
|
|
76
76
|
</div>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
@@ -164,7 +164,7 @@ class BranchLogisticsPopup extends localize(i18next)(LitElement) {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
get logisticsBranchGrist() {
|
|
167
|
-
return this.shadowRoot.querySelector('
|
|
167
|
+
return this.shadowRoot.querySelector('ox-grist#logisticsBranch')
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
async fetchHandler() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html, LitElement } from 'lit'
|
|
@@ -45,7 +45,7 @@ class LazadaOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
45
45
|
flex: 1;
|
|
46
46
|
overflow-y: auto;
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
ox-grist {
|
|
49
49
|
overflow-y: hidden;
|
|
50
50
|
flex: 1;
|
|
51
51
|
}
|
|
@@ -87,13 +87,13 @@ class LazadaOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
87
87
|
</div>
|
|
88
88
|
|
|
89
89
|
<div class="grist">
|
|
90
|
-
<
|
|
90
|
+
<ox-grist
|
|
91
91
|
id="grist"
|
|
92
92
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
93
93
|
.config=${this.config}
|
|
94
94
|
.data="${this.data}"
|
|
95
95
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
96
|
-
></
|
|
96
|
+
></ox-grist>
|
|
97
97
|
</div>
|
|
98
98
|
<div class="button-container">
|
|
99
99
|
<mwc-button
|
|
@@ -115,7 +115,7 @@ class LazadaOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
get grist() {
|
|
118
|
-
return this.shadowRoot.querySelector('
|
|
118
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
get addressSelect() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/component-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import './order-items'
|
|
4
4
|
import './order-shipping'
|
|
5
5
|
|
|
@@ -36,7 +36,7 @@ class OrderInitPopup extends localize(i18next)(LitElement) {
|
|
|
36
36
|
flex: 1;
|
|
37
37
|
overflow-y: auto;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
ox-grist {
|
|
40
40
|
overflow-y: hidden;
|
|
41
41
|
flex: 1;
|
|
42
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@things-factory/component-ui'
|
|
2
2
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
3
|
-
import '@
|
|
3
|
+
import '@operato/data-grist'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { isMobileDevice } from '@things-factory/utils'
|
|
6
6
|
import { css, html, LitElement } from 'lit'
|
|
@@ -32,7 +32,7 @@ class OrderItems extends localize(i18next)(LitElement) {
|
|
|
32
32
|
flex: 1;
|
|
33
33
|
overflow-y: auto;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
ox-grist {
|
|
36
36
|
overflow-y: hidden;
|
|
37
37
|
flex: 1;
|
|
38
38
|
}
|
|
@@ -50,19 +50,19 @@ class OrderItems extends localize(i18next)(LitElement) {
|
|
|
50
50
|
render() {
|
|
51
51
|
return html`
|
|
52
52
|
<div class="grist">
|
|
53
|
-
<
|
|
53
|
+
<ox-grist
|
|
54
54
|
id="grist"
|
|
55
55
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
56
56
|
.config=${this.config}
|
|
57
57
|
.data="${this.data}"
|
|
58
58
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
59
|
-
></
|
|
59
|
+
></ox-grist>
|
|
60
60
|
</div>
|
|
61
61
|
`
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
get grist() {
|
|
65
|
-
return this.shadowRoot.querySelector('
|
|
65
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
async firstUpdated() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/component-ui'
|
|
2
|
-
import '@
|
|
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 OrderShippingItems extends localize(i18next)(LitElement) {
|
|
|
39
39
|
flex: 1;
|
|
40
40
|
overflow-y: auto;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
ox-grist {
|
|
43
43
|
overflow-y: hidden;
|
|
44
44
|
flex: 1;
|
|
45
45
|
}
|
|
@@ -202,13 +202,13 @@ class OrderShippingItems extends localize(i18next)(LitElement) {
|
|
|
202
202
|
</form>
|
|
203
203
|
|
|
204
204
|
<div class="grist">
|
|
205
|
-
<
|
|
205
|
+
<ox-grist
|
|
206
206
|
id="grist"
|
|
207
207
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
208
208
|
.config=${this.config}
|
|
209
209
|
.data="${this.data}"
|
|
210
210
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
211
|
-
></
|
|
211
|
+
></ox-grist>
|
|
212
212
|
</div>
|
|
213
213
|
`
|
|
214
214
|
}
|
|
@@ -218,7 +218,7 @@ class OrderShippingItems extends localize(i18next)(LitElement) {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
get grist() {
|
|
221
|
-
return this.shadowRoot.querySelector('
|
|
221
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
firstUpdated() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/component-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import './order-shipping-items'
|
|
4
4
|
|
|
5
5
|
import { css, html, LitElement } from 'lit'
|
|
@@ -35,7 +35,7 @@ class OrderShipping extends localize(i18next)(LitElement) {
|
|
|
35
35
|
flex: 1;
|
|
36
36
|
overflow-y: auto;
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
ox-grist {
|
|
39
39
|
overflow-y: hidden;
|
|
40
40
|
flex: 1;
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import '@things-factory/form-ui'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client } from '@things-factory/shell'
|
|
@@ -41,7 +41,7 @@ class PickupLogisticsPopup extends localize(i18next)(LitElement) {
|
|
|
41
41
|
display: flex;
|
|
42
42
|
flex: 1;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
ox-grist {
|
|
45
45
|
overflow-y: hidden;
|
|
46
46
|
flex: 1;
|
|
47
47
|
}
|
|
@@ -70,23 +70,23 @@ class PickupLogisticsPopup extends localize(i18next)(LitElement) {
|
|
|
70
70
|
<div class="grist-container">
|
|
71
71
|
<div class="grist">
|
|
72
72
|
<h2>${i18next.t('label.address_info')}</h2>
|
|
73
|
-
<
|
|
73
|
+
<ox-grist
|
|
74
74
|
id="logisticsPickup"
|
|
75
75
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
76
76
|
.config=${this.pickupConfig}
|
|
77
77
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
78
78
|
@select-record-change=${e => this.fetchTimeSlot(e.detail.records)}
|
|
79
|
-
></
|
|
79
|
+
></ox-grist>
|
|
80
80
|
</div>
|
|
81
81
|
|
|
82
82
|
<div class="grist">
|
|
83
83
|
<h2>${i18next.t('label.timeslot_info')}</h2>
|
|
84
|
-
<
|
|
84
|
+
<ox-grist
|
|
85
85
|
id="timeslotPickup"
|
|
86
86
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
87
87
|
.config=${this.timeSlotConfig}
|
|
88
88
|
.data="${this.timeSlotData}"
|
|
89
|
-
></
|
|
89
|
+
></ox-grist>
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
92
|
|
|
@@ -212,11 +212,11 @@ class PickupLogisticsPopup extends localize(i18next)(LitElement) {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
get logisticsPickupGrist() {
|
|
215
|
-
return this.shadowRoot.querySelector('
|
|
215
|
+
return this.shadowRoot.querySelector('ox-grist#logisticsPickup')
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
get timeslotPickupGrist() {
|
|
219
|
-
return this.shadowRoot.querySelector('
|
|
219
|
+
return this.shadowRoot.querySelector('ox-grist#timeslotPickup')
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
async fetchHandler() {
|
|
@@ -35,7 +35,7 @@ class RequestROPopup extends LitElement {
|
|
|
35
35
|
background-color: var(--button-container-background);
|
|
36
36
|
height: var(--button-container-height);
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
ox-grist {
|
|
39
39
|
overflow-y: auto;
|
|
40
40
|
flex: 1;
|
|
41
41
|
}
|
|
@@ -72,7 +72,7 @@ class RequestROPopup extends LitElement {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
get dataGrist() {
|
|
75
|
-
return this.shadowRoot.querySelector('
|
|
75
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
get searchForm() {
|
|
@@ -99,12 +99,12 @@ class RequestROPopup extends LitElement {
|
|
|
99
99
|
this.dataGrist.fetch()}></search-form>
|
|
100
100
|
|
|
101
101
|
<div class="grist">
|
|
102
|
-
<
|
|
102
|
+
<ox-grist
|
|
103
103
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
104
104
|
.config=${this.config}
|
|
105
105
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
106
106
|
>
|
|
107
|
-
</
|
|
107
|
+
</ox-grist>
|
|
108
108
|
</div>
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html, LitElement } from 'lit'
|
|
@@ -57,7 +57,7 @@ class ShopeeOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
57
57
|
flex: 1;
|
|
58
58
|
overflow-y: auto;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
ox-grist {
|
|
61
61
|
overflow-y: hidden;
|
|
62
62
|
flex: 1;
|
|
63
63
|
}
|
|
@@ -124,13 +124,13 @@ class ShopeeOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
124
124
|
: ''}
|
|
125
125
|
|
|
126
126
|
<div class="grist">
|
|
127
|
-
<
|
|
127
|
+
<ox-grist
|
|
128
128
|
id="grist"
|
|
129
129
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
130
130
|
.config=${this.config}
|
|
131
131
|
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
132
132
|
@field-change="${this._onFieldChangeHandler.bind(this)}"
|
|
133
|
-
></
|
|
133
|
+
></ox-grist>
|
|
134
134
|
</div>
|
|
135
135
|
|
|
136
136
|
<div class="button-container">
|
|
@@ -153,7 +153,7 @@ class ShopeeOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
get grist() {
|
|
156
|
-
return this.shadowRoot.querySelector('
|
|
156
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
get addressSelect() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import './select-datetime-popup'
|
|
4
4
|
import './logistics/order-init-popup'
|
|
5
5
|
import './logistics/shopee-order-init-batch-popup'
|
|
@@ -47,7 +47,7 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
47
47
|
overflow: visible;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
ox-grist {
|
|
51
51
|
overflow-y: auto;
|
|
52
52
|
flex: 1;
|
|
53
53
|
}
|
|
@@ -135,12 +135,12 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
135
135
|
render() {
|
|
136
136
|
return html`
|
|
137
137
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
138
|
-
<
|
|
138
|
+
<ox-grist
|
|
139
139
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
140
140
|
.config=${this.config}
|
|
141
141
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
142
142
|
>
|
|
143
|
-
</
|
|
143
|
+
</ox-grist>
|
|
144
144
|
`
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -378,7 +378,7 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
get dataGrist() {
|
|
381
|
-
return this.shadowRoot.querySelector('
|
|
381
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
get _columns() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client, CustomAlert } from '@things-factory/shell'
|
|
5
5
|
import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
|
|
@@ -30,7 +30,7 @@ class createNewPromotion extends localize(i18next)(LitElement) {
|
|
|
30
30
|
flex: 1;
|
|
31
31
|
overflow-y: auto;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
ox-grist {
|
|
34
34
|
overflow-y: hidden;
|
|
35
35
|
flex: 1;
|
|
36
36
|
}
|
|
@@ -88,12 +88,12 @@ class createNewPromotion extends localize(i18next)(LitElement) {
|
|
|
88
88
|
return html`
|
|
89
89
|
<!-- <search-form id="search-form" .fields=${this._searchFields} @submit=${e =>
|
|
90
90
|
this.dataGrist.fetch()}></search-form> -->
|
|
91
|
-
<!-- <
|
|
91
|
+
<!-- <ox-grist
|
|
92
92
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
93
93
|
.config=${this.config}
|
|
94
94
|
.fetchHandler=""
|
|
95
95
|
>
|
|
96
|
-
</
|
|
96
|
+
</ox-grist> -->
|
|
97
97
|
`
|
|
98
98
|
}
|
|
99
99
|
async pageInitialized() {
|
|
@@ -202,7 +202,7 @@ class createNewPromotion extends localize(i18next)(LitElement) {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
get dataGrist() {
|
|
205
|
-
return this.shadowRoot.querySelector('
|
|
205
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
get _columns() {
|