@operato/process 1.4.36 → 1.4.38

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.4.36",
3
+ "version": "1.4.38",
4
4
  "description": "Webcomponent for business process modeling following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "main": "dist/src/index.js",
@@ -68,16 +68,16 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@open-wc/scoped-elements": "^2.1.3",
71
- "@operato/app": "^1.4.36",
72
- "@operato/board": "^1.4.36",
73
- "@operato/data-grist": "^1.4.36",
74
- "@operato/font": "^1.4.36",
71
+ "@operato/app": "^1.4.38",
72
+ "@operato/board": "^1.4.38",
73
+ "@operato/data-grist": "^1.4.38",
74
+ "@operato/font": "^1.4.38",
75
75
  "@operato/graphql": "^1.4.20",
76
76
  "@operato/i18n": "^1.4.36",
77
- "@operato/input": "^1.4.36",
77
+ "@operato/input": "^1.4.38",
78
78
  "@operato/markdown": "^1.4.11",
79
79
  "@operato/popup": "^1.4.32",
80
- "@operato/property-editor": "^1.4.36",
80
+ "@operato/property-editor": "^1.4.38",
81
81
  "@operato/styles": "^1.4.11",
82
82
  "@operato/utils": "^1.4.28",
83
83
  "@polymer/paper-dropdown-menu": "^3.2.0",
@@ -128,5 +128,5 @@
128
128
  "prettier --write"
129
129
  ]
130
130
  },
131
- "gitHead": "6ee63479eb63ac9f99644a0318fbd92c07aef81b"
131
+ "gitHead": "ab65899391ca75dc3831dd7e139efbc9efd06d1d"
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
- ? html`
195
- <fieldset class="icon-label unit ratio">
196
- <legend>
197
- <ox-title-with-help topic="process-modeller/shapes/size" msgid="label.size">size</ox-title-with-help>
198
- </legend>
199
-
200
- <div class="property-grid">
201
- <label class="width"> <ox-i18n msgid="label.width">width</ox-i18n> </label>
202
- <input type="number" value-key="bounds.width" .value=${this.bounds?.width} />
203
- <label class="height"> <ox-i18n msgid="label.height">height</ox-i18n> </label>
204
- <input type="number" value-key="bounds.height" .value=${this.bounds?.height} />
205
-
206
- ${this.selected.length && this.selected[0].isRootModel()
207
- ? html``
208
- : html`
209
- <label class="rotate"> <ox-i18n msgid="label.rotate">rotate</ox-i18n> </label>
210
- <ox-input-angle value-key="rotation" .value=${value.rotation}> </ox-input-angle>
211
- `}
212
- </div>
213
- </fieldset>
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`