@things-factory/operato-mms 7.0.1-alpha.4 → 7.0.1-alpha.40
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/bootstrap.js +6 -8
- 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 +16 -3
- package/client/themes/grist-theme.css +3 -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>
|
package/client/bootstrap.js
CHANGED
|
@@ -60,7 +60,7 @@ export default async function bootstrap() {
|
|
|
60
60
|
store.dispatch({
|
|
61
61
|
type: ADD_MORENDA,
|
|
62
62
|
morenda: {
|
|
63
|
-
icon: html` <
|
|
63
|
+
icon: html` <md-icon>settings</md-icon> `,
|
|
64
64
|
name: html` <ox-i18n msgid="label.setting"></ox-i18n> `,
|
|
65
65
|
action: () => {
|
|
66
66
|
navigate('setting')
|
|
@@ -69,13 +69,11 @@ export default async function bootstrap() {
|
|
|
69
69
|
})
|
|
70
70
|
|
|
71
71
|
/* add addon-menu management page morenda */
|
|
72
|
-
if (
|
|
73
|
-
await hasPrivilege({ privilege: 'mutation', category: 'menu', domainOwnerGranted: true, superUserGranted: true })
|
|
74
|
-
) {
|
|
72
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'menu', domainOwnerGranted: true, superUserGranted: true })) {
|
|
75
73
|
store.dispatch({
|
|
76
74
|
type: ADD_MORENDA,
|
|
77
75
|
morenda: {
|
|
78
|
-
icon: html` <
|
|
76
|
+
icon: html` <md-icon>view_list</md-icon> `,
|
|
79
77
|
name: html` <ox-i18n msgid="text.addon-menu management"></ox-i18n> `,
|
|
80
78
|
action: () => {
|
|
81
79
|
navigate('addon-menu-setting')
|
|
@@ -104,7 +102,7 @@ export default async function bootstrap() {
|
|
|
104
102
|
store.dispatch({
|
|
105
103
|
type: ADD_MORENDA,
|
|
106
104
|
morenda: {
|
|
107
|
-
icon: html` <
|
|
105
|
+
icon: html` <md-icon>help</md-icon> `,
|
|
108
106
|
name: html` <ox-i18n msgid="text.help"></ox-i18n> `,
|
|
109
107
|
action: () => {
|
|
110
108
|
navigate('help')
|
|
@@ -143,7 +141,7 @@ export default async function bootstrap() {
|
|
|
143
141
|
store.dispatch({
|
|
144
142
|
type: ADD_MORENDA,
|
|
145
143
|
morenda: {
|
|
146
|
-
icon: html` <
|
|
144
|
+
icon: html` <md-icon>device_hub</md-icon> `,
|
|
147
145
|
name: html` <ox-i18n msgid="text.connection"></ox-i18n> `,
|
|
148
146
|
action: () => {
|
|
149
147
|
navigate('connection')
|
|
@@ -154,7 +152,7 @@ export default async function bootstrap() {
|
|
|
154
152
|
store.dispatch({
|
|
155
153
|
type: ADD_MORENDA,
|
|
156
154
|
morenda: {
|
|
157
|
-
icon: html` <
|
|
155
|
+
icon: html` <md-icon>format_list_numbered</md-icon> `,
|
|
158
156
|
name: html` <ox-i18n msgid="text.scenario"></ox-i18n> `,
|
|
159
157
|
action: () => {
|
|
160
158
|
navigate('scenario')
|
|
@@ -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,15 +82,28 @@ 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
|
+
|
|
88
|
+
--md-theme-on-primary: var(--theme-white-color);
|
|
89
|
+
--md-theme-primary: var(--secondary-text-color);
|
|
90
|
+
--md-theme-on-secondary: var(--theme-white-color);
|
|
91
|
+
--md-theme-secondary: var(--primary-color);
|
|
92
|
+
--md-button-outline-color: var(--primary-color);
|
|
93
|
+
--md-danger-button-primary-color: var(--status-danger-color);
|
|
94
|
+
--md-danger-button-outline-color: var(--status-danger-color);
|
|
95
|
+
--md-button-outline-width: 1px;
|
|
96
|
+
--md-button-horizontal-padding: 16px;
|
|
97
|
+
|
|
85
98
|
/* button style */
|
|
86
99
|
--button-background-color: #fafbfc;
|
|
87
100
|
--button-background-focus-color: var(--primary-color);
|
|
88
101
|
--button-border: var(--border-dark-color);
|
|
89
102
|
--button-border-radius: var(--border-radius);
|
|
90
103
|
--button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
|
|
91
|
-
--button-padding: var(--padding-
|
|
104
|
+
--button-padding: calc(var(--padding-narrow) * 1.5) var(--padding-wide);
|
|
92
105
|
--button-color: var(--secondary-color);
|
|
93
|
-
--button-font:
|
|
106
|
+
--button-font: 600 var(--fontsize-default) var(--theme-font);
|
|
94
107
|
--button-text-transform: capitalize;
|
|
95
108
|
|
|
96
109
|
--button-active-background-color: var(--status-success-color);
|
|
@@ -134,7 +147,7 @@ body {
|
|
|
134
147
|
--label-color: var(--secondary-color);
|
|
135
148
|
--label-text-transform: capitalize;
|
|
136
149
|
--input-margin: var(--margin-narrow) 0;
|
|
137
|
-
--input-padding:
|
|
150
|
+
--input-padding: 6px 2px;
|
|
138
151
|
--input-min-width: 200px;
|
|
139
152
|
--input-font: normal var(--fontsize-default) var(--theme-font);
|
|
140
153
|
--input-hint-font: normal var(--fontsize-small) var(--theme-font);
|
|
@@ -36,6 +36,8 @@ body {
|
|
|
36
36
|
--grid-header-filter-title-font: normal 12px var(--theme-font);
|
|
37
37
|
--grid-header-filter-title-icon-color: var(--primary-color);
|
|
38
38
|
|
|
39
|
+
--grid-body-bottom-border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
|
|
40
|
+
|
|
39
41
|
--grid-gutter-padding: var(--padding-default) 0;
|
|
40
42
|
|
|
41
43
|
--grid-record-background-color: var(--theme-white-color);
|
|
@@ -143,7 +145,7 @@ body {
|
|
|
143
145
|
--record-view-footer-button-border-width: 0 0 0 1px;
|
|
144
146
|
--record-view-footer-button-font: 17px;
|
|
145
147
|
--record-view-footer-button-color: var(--theme-white-color);
|
|
146
|
-
--record-view-footer-iconbutton-size:
|
|
148
|
+
--record-view-footer-iconbutton-size: 28px;
|
|
147
149
|
--record-view-footer-focus-background: var(--primary-color);
|
|
148
150
|
|
|
149
151
|
--ox-grist-padding: var(--padding-default) var(--padding-default) 0 var(--padding-default);
|