@operato/board 2.0.0-alpha.74 → 2.0.0-alpha.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.
- package/CHANGELOG.md +18 -0
- package/dist/src/modeller/component-toolbar/component-menu.d.ts +2 -2
- package/dist/src/modeller/component-toolbar/component-menu.js +4 -6
- package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
- package/dist/src/modeller/component-toolbar/component-toolbar.d.ts +2 -2
- package/dist/src/modeller/component-toolbar/component-toolbar.js +4 -6
- package/dist/src/modeller/component-toolbar/component-toolbar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +4 -6
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/effects/effects.js +6 -8
- package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-animations.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/effects/property-animations.js +4 -6
- package/dist/src/modeller/property-sidebar/effects/property-animations.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/effects/property-event.js +5 -7
- package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
- package/dist/src/modeller/property-sidebar/property-sidebar.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/property-sidebar.js +9 -11
- package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/specifics/specifics.js +4 -6
- package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
- package/dist/src/ox-board-modeller.d.ts +2 -2
- package/dist/src/ox-board-modeller.js +6 -8
- package/dist/src/ox-board-modeller.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/modeller/component-toolbar/component-menu.ts +3 -5
- package/src/modeller/component-toolbar/component-toolbar.ts +3 -5
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +3 -5
- package/src/modeller/property-sidebar/effects/effects.ts +5 -7
- package/src/modeller/property-sidebar/effects/property-animations.ts +3 -5
- package/src/modeller/property-sidebar/effects/property-event.ts +4 -6
- package/src/modeller/property-sidebar/property-sidebar.ts +8 -10
- package/src/modeller/property-sidebar/specifics/specifics.ts +4 -5
- package/src/ox-board-modeller.ts +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.76",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -151,5 +151,5 @@
|
|
|
151
151
|
"prettier --write"
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
|
-
"gitHead": "
|
|
154
|
+
"gitHead": "0d452ed543a4bf014634ab8107ce9b60de0aa989"
|
|
155
155
|
}
|
|
@@ -6,7 +6,7 @@ import { css, html, LitElement, PropertyValues } from 'lit'
|
|
|
6
6
|
import { property, query, state } from 'lit/decorators.js'
|
|
7
7
|
|
|
8
8
|
import { Scene } from '@hatiolab/things-scene'
|
|
9
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
9
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
10
10
|
import { ScrollbarStyles } from '@operato/styles'
|
|
11
11
|
import { i18next } from '@operato/i18n'
|
|
12
12
|
|
|
@@ -109,10 +109,8 @@ export class ComponentMenu extends ScopedElementsMixin(LitElement) {
|
|
|
109
109
|
|
|
110
110
|
@query('component-detail') detail!: HTMLElement
|
|
111
111
|
|
|
112
|
-
static
|
|
113
|
-
|
|
114
|
-
'component-detail': ComponentDetail
|
|
115
|
-
}
|
|
112
|
+
static scopedElements = {
|
|
113
|
+
'component-detail': ComponentDetail
|
|
116
114
|
}
|
|
117
115
|
|
|
118
116
|
render() {
|
|
@@ -6,7 +6,7 @@ import { css, html, LitElement, PropertyValues } from 'lit'
|
|
|
6
6
|
import { property, query, queryAll } from 'lit/decorators.js'
|
|
7
7
|
|
|
8
8
|
import { Scene, SCENE_MODE } from '@hatiolab/things-scene'
|
|
9
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
9
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
10
10
|
|
|
11
11
|
import { ComponentGroup } from '../../types'
|
|
12
12
|
import { ComponentMenu } from './component-menu.js'
|
|
@@ -110,10 +110,8 @@ export class ComponentToolbar extends ScopedElementsMixin(LitElement) {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
static
|
|
114
|
-
|
|
115
|
-
'component-menu': ComponentMenu
|
|
116
|
-
}
|
|
113
|
+
static scopedElements = {
|
|
114
|
+
'component-menu': ComponentMenu
|
|
117
115
|
}
|
|
118
116
|
|
|
119
117
|
render() {
|
|
@@ -12,7 +12,7 @@ import { css, html, PropertyValues } from 'lit'
|
|
|
12
12
|
import { property, query, state } from 'lit/decorators.js'
|
|
13
13
|
|
|
14
14
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
15
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
15
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
16
16
|
|
|
17
17
|
import { AbstractProperty } from '../abstract-property.js'
|
|
18
18
|
import { PropertySharedStyle } from '../property-shared-style.js'
|
|
@@ -195,10 +195,8 @@ export class PropertyDataBinding extends ScopedElementsMixin(AbstractProperty) {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
static
|
|
199
|
-
|
|
200
|
-
'data-binding-mapper': DataBindingMapper
|
|
201
|
-
}
|
|
198
|
+
static scopedElements = {
|
|
199
|
+
'data-binding-mapper': DataBindingMapper
|
|
202
200
|
}
|
|
203
201
|
|
|
204
202
|
render() {
|
|
@@ -9,7 +9,7 @@ import { html } from 'lit'
|
|
|
9
9
|
import { property } from 'lit/decorators.js'
|
|
10
10
|
|
|
11
11
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
12
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
12
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
13
13
|
|
|
14
14
|
import { AbstractProperty } from '../abstract-property.js'
|
|
15
15
|
import { PropertySharedStyle } from '../property-shared-style.js'
|
|
@@ -27,12 +27,10 @@ export class PropertyEffects extends ScopedElementsMixin(AbstractProperty) {
|
|
|
27
27
|
this.renderRoot.addEventListener('change', this._onValueChange.bind(this))
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
static
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'property-event': PropertyEvent
|
|
35
|
-
}
|
|
30
|
+
static scopedElements = {
|
|
31
|
+
'property-shadow': PropertyShadow,
|
|
32
|
+
'property-animations': PropertyAnimations,
|
|
33
|
+
'property-event': PropertyEvent
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
render() {
|
|
@@ -9,7 +9,7 @@ import { css, html, LitElement } from 'lit'
|
|
|
9
9
|
import { property, state } from 'lit/decorators.js'
|
|
10
10
|
|
|
11
11
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
12
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
12
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
13
13
|
|
|
14
14
|
import { PropertySharedStyle } from '../property-shared-style.js'
|
|
15
15
|
import { PropertyAnimation } from './property-animation.js'
|
|
@@ -46,10 +46,8 @@ export class PropertyAnimations extends ScopedElementsMixin(LitElement) {
|
|
|
46
46
|
this.renderRoot.addEventListener('change', this._onValueChange.bind(this))
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
static
|
|
50
|
-
|
|
51
|
-
'property-animation': PropertyAnimation
|
|
52
|
-
}
|
|
49
|
+
static scopedElements = {
|
|
50
|
+
'property-animation': PropertyAnimation
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
render() {
|
|
@@ -8,7 +8,7 @@ import { html, LitElement } from 'lit'
|
|
|
8
8
|
import { property } from 'lit/decorators.js'
|
|
9
9
|
|
|
10
10
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
11
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
11
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
12
12
|
|
|
13
13
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
14
14
|
import { PropertyEventHover } from './property-event-hover'
|
|
@@ -25,11 +25,9 @@ export class PropertyEvent extends ScopedElementsMixin(LitElement) {
|
|
|
25
25
|
this.renderRoot.addEventListener('change', this._onValueChange.bind(this))
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
static
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
'property-event-tap': PropertyEventTap
|
|
32
|
-
}
|
|
28
|
+
static scopedElements = {
|
|
29
|
+
'property-event-hover': PropertyEventHover,
|
|
30
|
+
'property-event-tap': PropertyEventTap
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
render() {
|
|
@@ -9,7 +9,7 @@ import { property } from 'lit/decorators.js'
|
|
|
9
9
|
import deepClone from 'lodash-es/cloneDeep'
|
|
10
10
|
|
|
11
11
|
import { BOUNDS, Component, Model, Scene } from '@hatiolab/things-scene'
|
|
12
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
12
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
13
13
|
import { ScrollbarStyles } from '@operato/styles'
|
|
14
14
|
|
|
15
15
|
import { PropertyDataBinding } from './data-binding/data-binding.js'
|
|
@@ -95,15 +95,13 @@ export class PropertySidebar extends ScopedElementsMixin(LitElement) {
|
|
|
95
95
|
change.has('collapsed') && this._onCollapsed(this.collapsed)
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
static
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
'scene-inspector': SceneInspector
|
|
106
|
-
}
|
|
98
|
+
static scopedElements = {
|
|
99
|
+
'property-shape': PropertyShapes,
|
|
100
|
+
'property-style': PropertyStyles,
|
|
101
|
+
'property-effect': PropertyEffects,
|
|
102
|
+
'property-specific': PropertySpecific,
|
|
103
|
+
'property-data-binding': PropertyDataBinding,
|
|
104
|
+
'scene-inspector': SceneInspector
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
render() {
|
|
@@ -8,7 +8,7 @@ import { css, html, LitElement } from 'lit'
|
|
|
8
8
|
import { property } from 'lit/decorators.js'
|
|
9
9
|
|
|
10
10
|
import { Component, Scene } from '@hatiolab/things-scene'
|
|
11
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
11
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
12
12
|
|
|
13
13
|
import { i18next } from '@operato/i18n'
|
|
14
14
|
|
|
@@ -50,11 +50,10 @@ export class PropertySpecific extends ScopedElementsMixin(LitElement) {
|
|
|
50
50
|
|
|
51
51
|
this.removeEventListener('i-need-selected', this.boundINeedSelected)
|
|
52
52
|
}
|
|
53
|
-
static
|
|
54
|
-
|
|
55
|
-
'specific-properties-builder': SpecificPropertiesBuilder
|
|
56
|
-
}
|
|
53
|
+
static scopedElements = {
|
|
54
|
+
'specific-properties-builder': SpecificPropertiesBuilder
|
|
57
55
|
}
|
|
56
|
+
|
|
58
57
|
render() {
|
|
59
58
|
const selected = this.selected && this.selected[0]
|
|
60
59
|
const value = this.value || {}
|
package/src/ox-board-modeller.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { css, html, LitElement, PropertyValues } from 'lit'
|
|
|
12
12
|
import { customElement, property, query } from 'lit/decorators.js'
|
|
13
13
|
|
|
14
14
|
import { MODE_EDIT, Scene, SCENE_MODE } from '@hatiolab/things-scene'
|
|
15
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
15
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'
|
|
16
16
|
import { OxPopup } from '@operato/popup'
|
|
17
17
|
import { isMacOS, togglefullscreen } from '@operato/utils'
|
|
18
18
|
|
|
@@ -201,12 +201,10 @@ export class BoardModeller extends ScopedElementsMixin(LitElement) {
|
|
|
201
201
|
this.style.setProperty('--url-icon-shell-inspector', `url(${ICON_SHELL_INSPECTOR})`)
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
static
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
'component-toolbar': ComponentToolbar
|
|
209
|
-
}
|
|
204
|
+
static scopedElements = {
|
|
205
|
+
'edit-toolbar': EditToolbar,
|
|
206
|
+
'property-sidebar': PropertySidebar,
|
|
207
|
+
'component-toolbar': ComponentToolbar
|
|
210
208
|
}
|
|
211
209
|
|
|
212
210
|
render() {
|