@things-factory/operato-wms 7.0.1-alpha.3 → 7.0.1-alpha.31
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 +1 -0
- package/client/bootstrap.js +2 -2
- package/client/pages/components/partner-selector.js +7 -14
- package/client/pages/inbound/carton-label-popup.js +7 -12
- package/client/pages/inbound/pallet-label-popup.js +7 -14
- package/client/pages/order/reverse-kitting-order/reverse-kitting-pallet-label-popup.js +5 -7
- package/client/themes/app-theme.css +15 -2
- package/client/themes/grist-theme.css +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -39
- 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;
|
package/client/bootstrap.js
CHANGED
|
@@ -99,7 +99,7 @@ export default async function bootstrap() {
|
|
|
99
99
|
store.dispatch({
|
|
100
100
|
type: ADD_MORENDA,
|
|
101
101
|
morenda: {
|
|
102
|
-
icon: html` <
|
|
102
|
+
icon: html` <md-icon>settings</md-icon> `,
|
|
103
103
|
name: html` <ox-i18n msgid="label.setting"></ox-i18n> `,
|
|
104
104
|
action: () => {
|
|
105
105
|
navigate('setting')
|
|
@@ -126,7 +126,7 @@ export default async function bootstrap() {
|
|
|
126
126
|
store.dispatch({
|
|
127
127
|
type: ADD_MORENDA,
|
|
128
128
|
morenda: {
|
|
129
|
-
icon: html`<
|
|
129
|
+
icon: html`<md-icon>help</md-icon>`,
|
|
130
130
|
name: html`<ox-i18n msgid="text.help"></ox-i18n>`,
|
|
131
131
|
action: () => {
|
|
132
132
|
navigate('help')
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import '@material/
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
2
3
|
import '@things-factory/form-ui'
|
|
3
4
|
import '@operato/data-grist'
|
|
4
5
|
|
|
@@ -8,10 +9,12 @@ import { css, html, LitElement } from 'lit'
|
|
|
8
9
|
import { i18next } from '@things-factory/i18n-base'
|
|
9
10
|
import { client } from '@things-factory/shell'
|
|
10
11
|
import { isMobileDevice } from '@things-factory/utils'
|
|
12
|
+
import { ButtonContainerStyles } from '@operato/styles'
|
|
11
13
|
|
|
12
14
|
class PartnerSelector extends LitElement {
|
|
13
15
|
static get styles() {
|
|
14
16
|
return [
|
|
17
|
+
ButtonContainerStyles,
|
|
15
18
|
css`
|
|
16
19
|
:host {
|
|
17
20
|
display: flex;
|
|
@@ -19,16 +22,10 @@ class PartnerSelector extends LitElement {
|
|
|
19
22
|
overflow: hidden;
|
|
20
23
|
background-color: white;
|
|
21
24
|
}
|
|
25
|
+
|
|
22
26
|
ox-grist {
|
|
23
27
|
flex: 1;
|
|
24
28
|
}
|
|
25
|
-
.button-container {
|
|
26
|
-
padding: var(--button-container-padding);
|
|
27
|
-
margin: var(--button-container-margin);
|
|
28
|
-
text-align: var(--button-container-align);
|
|
29
|
-
background-color: var(--button-container-background);
|
|
30
|
-
height: var(--button-container-height);
|
|
31
|
-
}
|
|
32
29
|
`
|
|
33
30
|
]
|
|
34
31
|
}
|
|
@@ -45,14 +42,10 @@ class PartnerSelector extends LitElement {
|
|
|
45
42
|
return html`
|
|
46
43
|
<search-form id="search-form" .fields=${this.searchFields} @submit=${() => this.dataGrist.fetch()}></search-form>
|
|
47
44
|
|
|
48
|
-
<ox-grist
|
|
49
|
-
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
50
|
-
.config=${this.config}
|
|
51
|
-
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
52
|
-
></ox-grist>
|
|
45
|
+
<ox-grist .mode=${isMobileDevice() ? 'LIST' : 'GRID'} .config=${this.config} .fetchHandler="${this.fetchHandler.bind(this)}"></ox-grist>
|
|
53
46
|
|
|
54
47
|
<div class="button-container">
|
|
55
|
-
<
|
|
48
|
+
<button @click="${this.select.bind(this)}"><md-icon>select_check_box</md-icon>${i18next.t('button.select')}</button>
|
|
56
49
|
</div>
|
|
57
50
|
`
|
|
58
51
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import { DirectPrinter } from '@things-factory/barcode-base'
|
|
2
4
|
import { SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
3
5
|
import '@operato/data-grist'
|
|
@@ -6,6 +8,8 @@ import { client, store } from '@things-factory/shell'
|
|
|
6
8
|
import gql from 'graphql-tag'
|
|
7
9
|
import { css, html, LitElement } from 'lit'
|
|
8
10
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
11
|
+
import { ButtonContainerStyles } from '@operato/styles'
|
|
12
|
+
|
|
9
13
|
import { CARTON_LABEL_SETTING_KEY } from '../constants'
|
|
10
14
|
|
|
11
15
|
class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
@@ -18,6 +22,7 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
18
22
|
|
|
19
23
|
static get styles() {
|
|
20
24
|
return [
|
|
25
|
+
ButtonContainerStyles,
|
|
21
26
|
SingleColumnFormStyles,
|
|
22
27
|
css`
|
|
23
28
|
:host {
|
|
@@ -27,17 +32,6 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
27
32
|
overflow-x: overlay;
|
|
28
33
|
background-color: var(--main-section-background-color);
|
|
29
34
|
}
|
|
30
|
-
.button-container {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
height: 100vh;
|
|
34
|
-
height: 100dvh;
|
|
35
|
-
justify-content: space-evenly;
|
|
36
|
-
padding: 0 20px;
|
|
37
|
-
margin: var(--button-container-margin);
|
|
38
|
-
text-align: var(--button-container-align);
|
|
39
|
-
background-color: var(--button-container-background);
|
|
40
|
-
}
|
|
41
35
|
`
|
|
42
36
|
]
|
|
43
37
|
}
|
|
@@ -50,8 +44,9 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
50
44
|
<input name="printQty" type="number" min="1" />
|
|
51
45
|
</fieldset>
|
|
52
46
|
</form>
|
|
47
|
+
|
|
53
48
|
<div class="button-container">
|
|
54
|
-
<
|
|
49
|
+
<button @click=${this._printLabel.bind(this)}><md-icon>print</md-icon>${i18next.t('button.print')}</button>
|
|
55
50
|
</div>
|
|
56
51
|
`
|
|
57
52
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
1
2
|
import '@operato/data-grist'
|
|
2
3
|
|
|
3
4
|
import gql from 'graphql-tag'
|
|
@@ -8,6 +9,7 @@ import { DirectPrinter } from '@things-factory/barcode-base'
|
|
|
8
9
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
10
|
import { client, store } from '@things-factory/shell'
|
|
10
11
|
import { isMobileDevice } from '@things-factory/utils'
|
|
12
|
+
import { ButtonContainerStyles } from '@operato/styles'
|
|
11
13
|
|
|
12
14
|
import { PALLET_LABEL_SETTING_KEY } from '../constants'
|
|
13
15
|
|
|
@@ -23,6 +25,7 @@ class PalletLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
23
25
|
|
|
24
26
|
static get styles() {
|
|
25
27
|
return [
|
|
28
|
+
ButtonContainerStyles,
|
|
26
29
|
css`
|
|
27
30
|
:host {
|
|
28
31
|
padding: 10px;
|
|
@@ -31,6 +34,7 @@ class PalletLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
31
34
|
overflow-x: overlay;
|
|
32
35
|
background-color: var(--main-section-background-color);
|
|
33
36
|
}
|
|
37
|
+
|
|
34
38
|
.grist {
|
|
35
39
|
background-color: var(--main-section-background-color);
|
|
36
40
|
display: flex;
|
|
@@ -38,17 +42,11 @@ class PalletLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
38
42
|
flex: 1;
|
|
39
43
|
overflow-y: auto;
|
|
40
44
|
}
|
|
45
|
+
|
|
41
46
|
ox-grist {
|
|
42
47
|
overflow-y: hidden;
|
|
43
48
|
flex: 1;
|
|
44
49
|
}
|
|
45
|
-
.button-container {
|
|
46
|
-
padding: var(--button-container-padding);
|
|
47
|
-
margin: var(--button-container-margin);
|
|
48
|
-
text-align: var(--button-container-align);
|
|
49
|
-
background-color: var(--button-container-background);
|
|
50
|
-
height: var(--button-container-height);
|
|
51
|
-
}
|
|
52
50
|
`
|
|
53
51
|
]
|
|
54
52
|
}
|
|
@@ -97,16 +95,11 @@ class PalletLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
97
95
|
render() {
|
|
98
96
|
return html`
|
|
99
97
|
<div class="grist">
|
|
100
|
-
<ox-grist
|
|
101
|
-
id="grist"
|
|
102
|
-
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
103
|
-
.config=${this.config}
|
|
104
|
-
.data="${this.data}"
|
|
105
|
-
></ox-grist>
|
|
98
|
+
<ox-grist id="grist" .mode=${isMobileDevice() ? 'LIST' : 'GRID'} .config=${this.config} .data="${this.data}"></ox-grist>
|
|
106
99
|
</div>
|
|
107
100
|
|
|
108
101
|
<div class="button-container">
|
|
109
|
-
<
|
|
102
|
+
<button @click=${this._printLabel.bind(this)}><md-icon>print</md-icon>${i18next.t('button.print')}</button>
|
|
110
103
|
</div>
|
|
111
104
|
`
|
|
112
105
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
1
2
|
import '@operato/data-grist'
|
|
2
3
|
|
|
3
4
|
import gql from 'graphql-tag'
|
|
@@ -8,6 +9,7 @@ import { DirectPrinter } from '@things-factory/barcode-base'
|
|
|
8
9
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
10
|
import { client, store } from '@things-factory/shell'
|
|
10
11
|
import { isMobileDevice } from '@things-factory/utils'
|
|
12
|
+
import { ButtonContainerStyles } from '@operato/styles'
|
|
11
13
|
|
|
12
14
|
import { PALLET_LABEL_SETTING_KEY } from '../../constants'
|
|
13
15
|
|
|
@@ -23,6 +25,7 @@ class ReverseKittingPalletLabelPopup extends connect(store)(localize(i18next)(Li
|
|
|
23
25
|
|
|
24
26
|
static get styles() {
|
|
25
27
|
return [
|
|
28
|
+
ButtonContainerStyles,
|
|
26
29
|
css`
|
|
27
30
|
:host {
|
|
28
31
|
padding: 10px;
|
|
@@ -97,16 +100,11 @@ class ReverseKittingPalletLabelPopup extends connect(store)(localize(i18next)(Li
|
|
|
97
100
|
render() {
|
|
98
101
|
return html`
|
|
99
102
|
<div class="grist">
|
|
100
|
-
<ox-grist
|
|
101
|
-
id="grist"
|
|
102
|
-
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
103
|
-
.config=${this.config}
|
|
104
|
-
.data="${this.data}"
|
|
105
|
-
></ox-grist>
|
|
103
|
+
<ox-grist id="grist" .mode=${isMobileDevice() ? 'LIST' : 'GRID'} .config=${this.config} .data="${this.data}"></ox-grist>
|
|
106
104
|
</div>
|
|
107
105
|
|
|
108
106
|
<div class="button-container">
|
|
109
|
-
<
|
|
107
|
+
<button @click=${this._printLabel.bind(this)}><md-icon>print</md-icon>${i18next.t('button.print')}</button>
|
|
110
108
|
</div>
|
|
111
109
|
`
|
|
112
110
|
}
|
|
@@ -83,17 +83,30 @@ body {
|
|
|
83
83
|
--mdc-danger-button-outline-color: var(--status-danger-color);
|
|
84
84
|
--mdc-button-outline-width: 1px;
|
|
85
85
|
--mdc-button-horizontal-padding: 16px;
|
|
86
|
+
|
|
87
|
+
--md-fab-container-color: var(--primary-color);
|
|
88
|
+
--md-fab-icon-color: var(--focus-color);
|
|
86
89
|
--mdc-text-field-fill-color: transparent
|
|
87
90
|
|
|
91
|
+
--md-theme-on-primary: var(--theme-white-color);
|
|
92
|
+
--md-theme-primary: var(--secondary-text-color);
|
|
93
|
+
--md-theme-on-secondary: var(--theme-white-color);
|
|
94
|
+
--md-theme-secondary: var(--primary-color);
|
|
95
|
+
--md-button-outline-color: var(--primary-color);
|
|
96
|
+
--md-danger-button-primary-color: var(--status-danger-color);
|
|
97
|
+
--md-danger-button-outline-color: var(--status-danger-color);
|
|
98
|
+
--md-button-outline-width: 1px;
|
|
99
|
+
--md-button-horizontal-padding: 16px;
|
|
100
|
+
|
|
88
101
|
/* button style */
|
|
89
102
|
--button-background-color: #fafbfc;
|
|
90
103
|
--button-background-focus-color: var(--primary-color);
|
|
91
104
|
--button-border: var(--border-dark-color);
|
|
92
105
|
--button-border-radius: var(--border-radius);
|
|
93
106
|
--button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
|
|
94
|
-
--button-padding: var(--padding-
|
|
107
|
+
--button-padding: calc(var(--padding-narrow)*1.5) var(--padding-wide);
|
|
95
108
|
--button-color: var(--secondary-color);
|
|
96
|
-
--button-font:
|
|
109
|
+
--button-font: 600 var(--fontsize-default) var(--theme-font);
|
|
97
110
|
--button-text-transform: capitalize;
|
|
98
111
|
|
|
99
112
|
--button-active-background-color: var(--status-success-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);
|