@things-factory/operato-mms 7.0.1-alpha.2 → 7.0.1-alpha.20
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/_index.html +2 -6
- package/client/pages/catalogue/products.js +5 -11
- package/client/pages/catalogue/warehouse-marketplace-auto-link-popup.js +5 -11
- package/client/themes/app-theme.css +3 -0
- package/client/themes/grist-theme.css +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -31
- package/views/auth-page.html +1 -0
- package/views/public/home.html +1 -0
package/_index.html
CHANGED
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
<!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
|
|
53
53
|
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
|
|
54
54
|
<link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
|
|
55
|
+
<link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
|
|
55
56
|
<style>
|
|
56
57
|
body {
|
|
57
58
|
margin: 0;
|
|
@@ -96,12 +97,7 @@
|
|
|
96
97
|
<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
|
|
97
98
|
<script src="/node_modules/web-animations-js/web-animations-next.min.js"></script>
|
|
98
99
|
<script src="/node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
|
|
99
|
-
<script
|
|
100
|
-
type="text/javascript"
|
|
101
|
-
src="//laz-g-cdn.alicdn.com/sj/securesdk/0.0.3/securesdk_lzd_v1.js"
|
|
102
|
-
id="J_secure_sdk_v2"
|
|
103
|
-
data-appkey="120961"
|
|
104
|
-
></script>
|
|
100
|
+
<script type="text/javascript" src="//laz-g-cdn.alicdn.com/sj/securesdk/0.0.3/securesdk_lzd_v1.js" id="J_secure_sdk_v2" data-appkey="120961"></script>
|
|
105
101
|
<!-- Built with love using PWA Starter Kit -->
|
|
106
102
|
</body>
|
|
107
103
|
</html>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getCodeByName } from '@things-factory/code-base'
|
|
2
2
|
import '@things-factory/form-ui'
|
|
3
3
|
import '@operato/data-grist'
|
|
4
|
+
import '@operato/oops'
|
|
4
5
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
6
|
import { openPopup } from '@operato/layout'
|
|
6
7
|
import { client, PageView } from '@things-factory/shell'
|
|
@@ -73,14 +74,9 @@ class Products extends localize(i18next)(PageView) {
|
|
|
73
74
|
|
|
74
75
|
return html`
|
|
75
76
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
76
|
-
<ox-grist
|
|
77
|
-
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
78
|
-
.config=${this.config}
|
|
79
|
-
.fetchHandler="${this._fetchProducts.bind(this)}"
|
|
80
|
-
>
|
|
81
|
-
</ox-grist>
|
|
77
|
+
<ox-grist .mode=${isMobileDevice() ? 'LIST' : 'GRID'} .config=${this.config} .fetchHandler="${this._fetchProducts.bind(this)}"> </ox-grist>
|
|
82
78
|
|
|
83
|
-
<oops-progress
|
|
79
|
+
<ox-oops-progress
|
|
84
80
|
.tag=${tag}
|
|
85
81
|
@progress=${e => {
|
|
86
82
|
this.progress = e.detail
|
|
@@ -96,7 +92,7 @@ class Products extends localize(i18next)(PageView) {
|
|
|
96
92
|
<mwc-linear-progress .progress=${progress / 100}></mwc-linear-progress>
|
|
97
93
|
<span>Synchronising products : ${progress} % (${message})</span>
|
|
98
94
|
</div>
|
|
99
|
-
</oops-progress>
|
|
95
|
+
</ox-oops-progress>
|
|
100
96
|
`
|
|
101
97
|
}
|
|
102
98
|
|
|
@@ -367,9 +363,7 @@ class Products extends localize(i18next)(PageView) {
|
|
|
367
363
|
...this._columns
|
|
368
364
|
.filter(column => column.type !== 'gutter' && column.record !== undefined && column.imex !== undefined)
|
|
369
365
|
.reduce((record, column) => {
|
|
370
|
-
record[column.imex.key] = column.imex.key
|
|
371
|
-
.split('.')
|
|
372
|
-
.reduce((obj, key) => (obj && obj[key] !== 'undefined' ? obj[key] : undefined), item)
|
|
366
|
+
record[column.imex.key] = column.imex.key.split('.').reduce((obj, key) => (obj && obj[key] !== 'undefined' ? obj[key] : undefined), item)
|
|
373
367
|
return record
|
|
374
368
|
}, {})
|
|
375
369
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
|
+
import '@operato/oops'
|
|
2
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
4
|
import { client } from '@things-factory/shell'
|
|
4
5
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -131,13 +132,9 @@ class WarehouseMarketplaceAutoLinkPopup extends localize(i18next)(LitElement) {
|
|
|
131
132
|
</ul>
|
|
132
133
|
|
|
133
134
|
<div class="button-container">
|
|
134
|
-
<mwc-button
|
|
135
|
-
raised
|
|
136
|
-
@click=${this.autoLinkWarehouseMarketplaceProduct}
|
|
137
|
-
label="${i18next.t('button.link_product')}"
|
|
138
|
-
></mwc-button>
|
|
135
|
+
<mwc-button raised @click=${this.autoLinkWarehouseMarketplaceProduct} label="${i18next.t('button.link_product')}"></mwc-button>
|
|
139
136
|
</div>
|
|
140
|
-
<oops-progress
|
|
137
|
+
<ox-oops-progress
|
|
141
138
|
.tag=${tag}
|
|
142
139
|
@progress=${e => {
|
|
143
140
|
this.progress = e.detail
|
|
@@ -152,7 +149,7 @@ class WarehouseMarketplaceAutoLinkPopup extends localize(i18next)(LitElement) {
|
|
|
152
149
|
<mwc-linear-progress .progress=${progress / 100}></mwc-linear-progress>
|
|
153
150
|
<span>Linking Warehouse Products : ${progress} % (${message})</span>
|
|
154
151
|
</div>
|
|
155
|
-
</oops-progress>
|
|
152
|
+
</ox-oops-progress>
|
|
156
153
|
`
|
|
157
154
|
}
|
|
158
155
|
|
|
@@ -178,10 +175,7 @@ class WarehouseMarketplaceAutoLinkPopup extends localize(i18next)(LitElement) {
|
|
|
178
175
|
const response = await client.query({
|
|
179
176
|
query: gql`
|
|
180
177
|
mutation ($marketplaceStoreIds: [String]!, $isCheckedSku: Boolean!) {
|
|
181
|
-
autoLinkWarehouseMarketplaceProductVariations(
|
|
182
|
-
marketplaceStoreIds: $marketplaceStoreIds
|
|
183
|
-
isCheckedSku: $isCheckedSku
|
|
184
|
-
)
|
|
178
|
+
autoLinkWarehouseMarketplaceProductVariations(marketplaceStoreIds: $marketplaceStoreIds, isCheckedSku: $isCheckedSku)
|
|
185
179
|
}
|
|
186
180
|
`,
|
|
187
181
|
variables: {
|
|
@@ -82,6 +82,9 @@ body {
|
|
|
82
82
|
--mdc-button-outline-width: 1px;
|
|
83
83
|
--mdc-button-horizontal-padding: 16px;
|
|
84
84
|
|
|
85
|
+
--md-fab-container-color: var(--primary-color);
|
|
86
|
+
--md-fab-icon-color: var(--focus-color);
|
|
87
|
+
|
|
85
88
|
/* button style */
|
|
86
89
|
--button-background-color: #fafbfc;
|
|
87
90
|
--button-background-focus-color: var(--primary-color);
|
|
@@ -143,7 +143,7 @@ body {
|
|
|
143
143
|
--record-view-footer-button-border-width: 0 0 0 1px;
|
|
144
144
|
--record-view-footer-button-font: 17px;
|
|
145
145
|
--record-view-footer-button-color: var(--theme-white-color);
|
|
146
|
-
--record-view-footer-iconbutton-size:
|
|
146
|
+
--record-view-footer-iconbutton-size: 28px;
|
|
147
147
|
--record-view-footer-focus-background: var(--primary-color);
|
|
148
148
|
|
|
149
149
|
--ox-grist-padding: var(--padding-default) var(--padding-default) 0 var(--padding-default);
|