@operato/process 1.4.36 → 1.4.37
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/CHANGELOG.md +9 -0
- package/dist/src/modeller/property-sidebar/property-sidebar.js +3 -1
- package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/shapes/shapes.js +21 -20
- package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/modeller/property-sidebar/property-sidebar.ts +3 -1
- package/src/modeller/property-sidebar/shapes/shapes.ts +26 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/process",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.37",
|
|
4
4
|
"description": "Webcomponent for business process modeling following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@open-wc/scoped-elements": "^2.1.3",
|
|
71
71
|
"@operato/app": "^1.4.36",
|
|
72
|
-
"@operato/board": "^1.4.
|
|
72
|
+
"@operato/board": "^1.4.37",
|
|
73
73
|
"@operato/data-grist": "^1.4.36",
|
|
74
74
|
"@operato/font": "^1.4.36",
|
|
75
75
|
"@operato/graphql": "^1.4.20",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"prettier --write"
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "aaf6dbbf793ff79a1739db07e2356598baa22770"
|
|
132
132
|
}
|
|
@@ -218,10 +218,12 @@ export class PropertySidebar extends ScopedElementsMixin(LitElement) {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
_onChangedByScene() {
|
|
221
|
-
if (this.propertyTarget)
|
|
221
|
+
if (this.propertyTarget) {
|
|
222
222
|
this.model = {
|
|
223
223
|
...this.propertyTarget.model
|
|
224
224
|
}
|
|
225
|
+
this._setBounds(this.propertyTarget.bounds)
|
|
226
|
+
}
|
|
225
227
|
}
|
|
226
228
|
|
|
227
229
|
_setPropertyTargetAsDefault() {
|
|
@@ -10,6 +10,7 @@ import '@operato/help/ox-title-with-help.js'
|
|
|
10
10
|
|
|
11
11
|
import { css, html } from 'lit'
|
|
12
12
|
import { property, state } from 'lit/decorators.js'
|
|
13
|
+
import { keyed } from 'lit/directives/keyed.js'
|
|
13
14
|
|
|
14
15
|
import { BOUNDS, Component, Properties } from '@hatiolab/things-scene'
|
|
15
16
|
|
|
@@ -144,6 +145,7 @@ export class PropertyShapes extends AbstractProperty {
|
|
|
144
145
|
|
|
145
146
|
render() {
|
|
146
147
|
const value = this.value || {}
|
|
148
|
+
const { width, height } = this.bounds || {}
|
|
147
149
|
|
|
148
150
|
return html`
|
|
149
151
|
<fieldset>
|
|
@@ -191,27 +193,30 @@ export class PropertyShapes extends AbstractProperty {
|
|
|
191
193
|
</fieldset>
|
|
192
194
|
|
|
193
195
|
${!this._isLine(this.selected)
|
|
194
|
-
?
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
<
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
196
|
+
? keyed(
|
|
197
|
+
this.selected,
|
|
198
|
+
html`
|
|
199
|
+
<fieldset class="icon-label unit ratio">
|
|
200
|
+
<legend>
|
|
201
|
+
<ox-title-with-help topic="process-modeller/shapes/size" msgid="label.size">size</ox-title-with-help>
|
|
202
|
+
</legend>
|
|
203
|
+
|
|
204
|
+
<div class="property-grid">
|
|
205
|
+
<label class="width"> <ox-i18n msgid="label.width">width</ox-i18n> </label>
|
|
206
|
+
<input type="number" value-key="bounds.width" .value=${String(width)} />
|
|
207
|
+
<label class="height"> <ox-i18n msgid="label.height">height</ox-i18n> </label>
|
|
208
|
+
<input type="number" value-key="bounds.height" .value=${String(height)} />
|
|
209
|
+
|
|
210
|
+
${this.selected.length && this.selected[0].isRootModel()
|
|
211
|
+
? html``
|
|
212
|
+
: html`
|
|
213
|
+
<label class="rotate"> <ox-i18n msgid="label.rotate">rotate</ox-i18n> </label>
|
|
214
|
+
<ox-input-angle value-key="rotation" .value=${value.rotation}> </ox-input-angle>
|
|
215
|
+
`}
|
|
216
|
+
</div>
|
|
217
|
+
</fieldset>
|
|
218
|
+
`
|
|
219
|
+
)
|
|
215
220
|
: html``}
|
|
216
221
|
${this._is3dish(this.selected)
|
|
217
222
|
? html`
|