@operato/board 1.4.74 → 1.4.76

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/board",
3
- "version": "1.4.74",
3
+ "version": "1.4.76",
4
4
  "description": "Webcomponent for board following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "main": "dist/src/index.js",
@@ -88,16 +88,16 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@open-wc/scoped-elements": "^2.0.0-next.6",
91
- "@operato/app": "^1.4.64",
91
+ "@operato/app": "^1.4.76",
92
92
  "@operato/data-grist": "^1.4.64",
93
- "@operato/font": "^1.4.64",
94
- "@operato/graphql": "^1.4.64",
93
+ "@operato/font": "^1.4.76",
94
+ "@operato/graphql": "^1.4.76",
95
95
  "@operato/i18n": "^1.4.64",
96
96
  "@operato/input": "^1.4.64",
97
- "@operato/layout": "^1.4.64",
97
+ "@operato/layout": "^1.4.76",
98
98
  "@operato/markdown": "^1.4.64",
99
99
  "@operato/popup": "^1.4.64",
100
- "@operato/property-editor": "^1.4.64",
100
+ "@operato/property-editor": "^1.4.76",
101
101
  "@operato/styles": "^1.4.64",
102
102
  "@operato/utils": "^1.4.64",
103
103
  "@polymer/paper-dropdown-menu": "^3.2.0",
@@ -148,5 +148,5 @@
148
148
  "prettier --write"
149
149
  ]
150
150
  },
151
- "gitHead": "efb08a7edf07c1a1a2a87135436168f1c9065cc0"
151
+ "gitHead": "bfd768b684aaaeb5bf92aee141666110cba64b2a"
152
152
  }
@@ -172,7 +172,7 @@ export const style = css`
172
172
  }
173
173
 
174
174
  #databind-copy {
175
- background-position-y: -692px;
175
+ background-position-y: -1692px;
176
176
  }
177
177
 
178
178
  #context-menu {
@@ -10,7 +10,7 @@ import { saveAs } from 'file-saver'
10
10
  import { css, html, LitElement, PropertyValues } from 'lit'
11
11
  import { customElement, property, query } from 'lit/decorators.js'
12
12
 
13
- import { Scene, SCENE_MODE } from '@hatiolab/things-scene'
13
+ import { MODE_EDIT, Scene, SCENE_MODE } from '@hatiolab/things-scene'
14
14
  import { ScopedElementsMixin } from '@open-wc/scoped-elements'
15
15
  import { OxPopup } from '@operato/popup'
16
16
  import { isMacOS, togglefullscreen } from '@operato/utils'
@@ -299,22 +299,13 @@ export class BoardModeller extends ScopedElementsMixin(LitElement) {
299
299
  }
300
300
 
301
301
  disconnectedCallback(): void {
302
- if (this.scene) {
303
- this.scene.stopStylePasteMode()
304
- this.scene.stopDatabindPasteMode()
305
- }
306
-
307
302
  super.disconnectedCallback()
308
303
  this.unbindShortcutEvent()
309
304
  }
310
305
 
311
306
  updated(changes: PropertyValues<this>) {
312
- if (changes.has('scene')) {
313
- const old = changes.get('scene')
314
- if (old) {
315
- old.stopStylePasteMode()
316
- old.stopDatabindPasteMode()
317
- }
307
+ if (changes.has('scene') && this.scene) {
308
+ this.scene.mode = MODE_EDIT
318
309
  }
319
310
  }
320
311