@things-factory/work-shift 5.0.0-alpha.24 → 5.0.0-alpha.27
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/work-shift.js +12 -2
- package/package.json +5 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '@operato/input/ox-input-work-shift.js'
|
|
2
2
|
|
|
3
3
|
import { PageView, store } from '@things-factory/shell'
|
|
4
|
+
import { css, html } from 'lit-element'
|
|
4
5
|
|
|
5
6
|
import { CommonButtonStyles } from '@operato/styles'
|
|
6
7
|
import { client } from '@operato/graphql'
|
|
7
8
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
8
9
|
import gql from 'graphql-tag'
|
|
9
|
-
import { html } from 'lit-element'
|
|
10
10
|
import { i18next } from '@operato/i18n'
|
|
11
11
|
|
|
12
12
|
class WorkShift extends connect(store)(PageView) {
|
|
@@ -16,6 +16,16 @@ class WorkShift extends connect(store)(PageView) {
|
|
|
16
16
|
this.workShifts = []
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
static get styles() {
|
|
20
|
+
return css`
|
|
21
|
+
:host {
|
|
22
|
+
background-color: var(--main-section-background-color);
|
|
23
|
+
padding: var(--padding-wide);
|
|
24
|
+
overflow: auto;
|
|
25
|
+
}
|
|
26
|
+
`
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
static get properties() {
|
|
20
30
|
return {
|
|
21
31
|
workShifts: Object
|
|
@@ -38,7 +48,7 @@ class WorkShift extends connect(store)(PageView) {
|
|
|
38
48
|
|
|
39
49
|
render() {
|
|
40
50
|
return html`
|
|
41
|
-
<h2
|
|
51
|
+
<h2>${i18next.t('title.work-shift')}</h2>
|
|
42
52
|
<ox-input-work-shift .value=${this.workShifts}></ox-input-work-shift>
|
|
43
53
|
`
|
|
44
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/work-shift",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.27",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/auth-base": "^5.0.0-alpha.
|
|
28
|
-
"@things-factory/env": "^5.0.0-alpha.
|
|
29
|
-
"@things-factory/shell": "^5.0.0-alpha.
|
|
27
|
+
"@things-factory/auth-base": "^5.0.0-alpha.27",
|
|
28
|
+
"@things-factory/env": "^5.0.0-alpha.27",
|
|
29
|
+
"@things-factory/shell": "^5.0.0-alpha.27"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "57962482d2b5a5aaba07d7477f3f35938d6e66b8"
|
|
32
32
|
}
|