@operato/process 1.1.31 → 1.1.33
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/process",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.33",
|
|
4
4
|
"description": "Webcomponent for business process modeling following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@open-wc/scoped-elements": "^2.1.3",
|
|
54
|
-
"@operato/app": "^1.1.
|
|
55
|
-
"@operato/board": "^1.1.
|
|
56
|
-
"@operato/data-grist": "^1.1.
|
|
57
|
-
"@operato/font": "^1.1.
|
|
54
|
+
"@operato/app": "^1.1.32",
|
|
55
|
+
"@operato/board": "^1.1.33",
|
|
56
|
+
"@operato/data-grist": "^1.1.32",
|
|
57
|
+
"@operato/font": "^1.1.32",
|
|
58
58
|
"@operato/graphql": "^1.1.13",
|
|
59
59
|
"@operato/i18n": "^1.1.13",
|
|
60
60
|
"@operato/input": "^1.1.31",
|
|
61
61
|
"@operato/markdown": "^1.1.28",
|
|
62
62
|
"@operato/popup": "^1.1.28",
|
|
63
|
-
"@operato/property-editor": "^1.1.
|
|
63
|
+
"@operato/property-editor": "^1.1.32",
|
|
64
64
|
"@operato/styles": "^1.1.28",
|
|
65
65
|
"@operato/utils": "^1.1.15",
|
|
66
66
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"prettier --write"
|
|
112
112
|
]
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "4971b11f50e98b3fba68786043669a351213fd8d"
|
|
115
115
|
}
|
package/src/ox-process-viewer.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { customElement, property, query, state } from 'lit/decorators.js'
|
|
|
6
6
|
|
|
7
7
|
import { Component, create, ReferenceProvider, SCENE_MODE } from '@hatiolab/things-scene'
|
|
8
8
|
import { isIOS, togglefullscreen } from '@operato/utils'
|
|
9
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
9
10
|
|
|
10
11
|
import { DataStorage } from './data-storage/data-storage.js'
|
|
11
12
|
import { DataSubscriptionProviderImpl } from './graphql/data-subscription.js'
|
|
@@ -13,91 +14,79 @@ import { runScenario, startScenario } from './graphql/scenario.js'
|
|
|
13
14
|
|
|
14
15
|
@customElement('ox-process-viewer')
|
|
15
16
|
export class OxProcessViewer extends LitElement {
|
|
16
|
-
static styles =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
static styles = [
|
|
18
|
+
ScrollbarStyles,
|
|
19
|
+
css`
|
|
20
|
+
:host {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
position: relative;
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
width: 100%; /* 전체화면보기를 위해서 필요함. */
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
26
29
|
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
#target {
|
|
31
|
+
flex: 1;
|
|
29
32
|
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
width: 100%; /* 전체화면보기를 위해서 필요함. */
|
|
34
|
+
height: 100%;
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/* navigation buttons */
|
|
37
|
-
mwc-icon {
|
|
38
|
-
z-index: 10;
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: 45%;
|
|
41
|
-
min-width: 50px;
|
|
42
|
-
width: 50px;
|
|
43
|
-
height: 50px;
|
|
44
|
-
margin: 0;
|
|
45
|
-
padding: 0;
|
|
46
|
-
color: #fff;
|
|
47
|
-
user-select: none;
|
|
48
|
-
|
|
49
|
-
--mdc-icon-size: 3em;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
mwc-icon[hidden] {
|
|
53
|
-
display: none;
|
|
54
|
-
}
|
|
36
|
+
outline: 0;
|
|
37
|
+
}
|
|
55
38
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
39
|
+
/* navigation buttons */
|
|
40
|
+
mwc-icon {
|
|
41
|
+
z-index: 10;
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 45%;
|
|
44
|
+
min-width: 50px;
|
|
45
|
+
width: 50px;
|
|
46
|
+
height: 50px;
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: 0;
|
|
49
|
+
color: #fff;
|
|
50
|
+
user-select: none;
|
|
51
|
+
|
|
52
|
+
--mdc-icon-size: 3em;
|
|
53
|
+
}
|
|
60
54
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
mwc-icon[hidden] {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
64
58
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
mwc-icon:hover {
|
|
60
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
}
|
|
68
63
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
right: 16px;
|
|
73
|
-
}
|
|
64
|
+
#prev {
|
|
65
|
+
left: 5px;
|
|
66
|
+
}
|
|
74
67
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
height: 5px;
|
|
79
|
-
}
|
|
80
|
-
::-webkit-scrollbar-track {
|
|
81
|
-
background-color: transparent;
|
|
82
|
-
}
|
|
83
|
-
::-webkit-scrollbar-thumb {
|
|
84
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
85
|
-
}
|
|
86
|
-
::-webkit-scrollbar-thumb:hover {
|
|
87
|
-
background-color: #aa866a;
|
|
88
|
-
}
|
|
68
|
+
#next {
|
|
69
|
+
right: 5px;
|
|
70
|
+
}
|
|
89
71
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
#fullscreen {
|
|
73
|
+
position: absolute;
|
|
74
|
+
bottom: 15px;
|
|
75
|
+
right: 16px;
|
|
76
|
+
}
|
|
93
77
|
|
|
94
|
-
|
|
95
|
-
mwc-fab,
|
|
96
|
-
mwc-icon {
|
|
78
|
+
[hidden] {
|
|
97
79
|
display: none;
|
|
98
80
|
}
|
|
99
|
-
|
|
100
|
-
|
|
81
|
+
|
|
82
|
+
@media print {
|
|
83
|
+
mwc-fab,
|
|
84
|
+
mwc-icon {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
`
|
|
89
|
+
]
|
|
101
90
|
|
|
102
91
|
@property({ type: String }) baseUrl: string = ''
|
|
103
92
|
@property({ type: Object }) process: any = {}
|
|
@@ -269,6 +258,13 @@ export class OxProcessViewer extends LitElement {
|
|
|
269
258
|
setupScene(scene: any) {
|
|
270
259
|
this._scene = scene
|
|
271
260
|
|
|
261
|
+
const backgroundColor = this._scene?.root.state.fillStyle
|
|
262
|
+
if (typeof backgroundColor === 'string') {
|
|
263
|
+
this.style.backgroundColor = backgroundColor
|
|
264
|
+
} else {
|
|
265
|
+
this.style.backgroundColor = 'initial'
|
|
266
|
+
}
|
|
267
|
+
|
|
272
268
|
/* scene의 기존 target을 보관한다. */
|
|
273
269
|
this._oldtarget = this._scene.target
|
|
274
270
|
|