@operato/board 1.4.55 → 1.4.56
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/data-binding/data-binding.js +2 -0
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.js +6 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +4 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +2 -0
- package/src/modeller/property-sidebar/effects/property-event-hover.ts +7 -1
- package/src/modeller/property-sidebar/effects/property-event-tap.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.56",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"prettier --write"
|
|
149
149
|
]
|
|
150
150
|
},
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "6efbdbb21c3d45712916c7eb6ed918b1d3f25e87"
|
|
152
152
|
}
|
|
@@ -14,6 +14,8 @@ import { Properties, Scene } from '@hatiolab/things-scene'
|
|
|
14
14
|
import { EffectsSharedStyle } from './effects-shared-style.js'
|
|
15
15
|
import { convert } from './value-converter'
|
|
16
16
|
|
|
17
|
+
const SETS_ACTION = ['data-set', 'partial-data-set', 'value-set', 'partial-value-set']
|
|
18
|
+
|
|
17
19
|
export class PropertyEventHover extends LitElement {
|
|
18
20
|
static styles = [
|
|
19
21
|
EffectsSharedStyle,
|
|
@@ -84,7 +86,9 @@ export class PropertyEventHover extends LitElement {
|
|
|
84
86
|
<option value="data-toggle">toggle(true/false) target component data</option>
|
|
85
87
|
<option value="data-tristate">tristate(0/1/2) target component data</option>
|
|
86
88
|
<option value="data-set">set value to target component data</option>
|
|
89
|
+
<option value="partial-data-set">set partial value to target component data</option>
|
|
87
90
|
<option value="value-set">set value to target component value</option>
|
|
91
|
+
<option value="partial-value-set">set partial value to target component value</option>
|
|
88
92
|
<option value="mouse-cursor">change mouse cursor to target style</option>
|
|
89
93
|
</select>
|
|
90
94
|
|
|
@@ -109,7 +113,7 @@ export class PropertyEventHover extends LitElement {
|
|
|
109
113
|
)}
|
|
110
114
|
</datalist>
|
|
111
115
|
`}
|
|
112
|
-
${action
|
|
116
|
+
${SETS_ACTION.indexOf(action) != -1
|
|
113
117
|
? html`
|
|
114
118
|
<label> <ox-i18n msgid="label.value">value</ox-i18n> </label>
|
|
115
119
|
<ox-input-data value-key="value" .value=${value} custom-editor fullwidth></ox-input-data>
|
|
@@ -142,6 +146,8 @@ export class PropertyEventHover extends LitElement {
|
|
|
142
146
|
case 'data-tristate':
|
|
143
147
|
case 'data-set':
|
|
144
148
|
case 'value-set':
|
|
149
|
+
case 'partial-data-set':
|
|
150
|
+
case 'partial-value-set':
|
|
145
151
|
let ids =
|
|
146
152
|
(this.scene &&
|
|
147
153
|
this.scene.ids.map(i => {
|
|
@@ -14,6 +14,8 @@ import { scenarios } from '../../../graphql/scenario'
|
|
|
14
14
|
import { EffectsSharedStyle } from './effects-shared-style'
|
|
15
15
|
import { convert } from './value-converter'
|
|
16
16
|
|
|
17
|
+
const SETS_ACTION = ['data-set', 'partial-data-set', 'value-set', 'partial-value-set', 'start-scenario', 'run-scenario']
|
|
18
|
+
|
|
17
19
|
export class PropertyEventTap extends LitElement {
|
|
18
20
|
static styles = [EffectsSharedStyle]
|
|
19
21
|
|
|
@@ -61,7 +63,9 @@ export class PropertyEventTap extends LitElement {
|
|
|
61
63
|
<option value="data-toggle">toggle(true/false) target component data</option>
|
|
62
64
|
<option value="data-tristate">tristate(0/1/2) target component data</option>
|
|
63
65
|
<option value="data-set">set value to target component data</option>
|
|
66
|
+
<option value="partial-data-set">set partial value to target component data</option>
|
|
64
67
|
<option value="value-set">set value to target component value</option>
|
|
68
|
+
<option value="partial-value-set">set partial value to target component value</option>
|
|
65
69
|
<option value="start-scenario">start the given scenario</option>
|
|
66
70
|
<option value="run-scenario">run the given scenario</option>
|
|
67
71
|
</select>
|
|
@@ -116,7 +120,7 @@ export class PropertyEventTap extends LitElement {
|
|
|
116
120
|
: html``
|
|
117
121
|
}
|
|
118
122
|
`
|
|
119
|
-
: action
|
|
123
|
+
: SETS_ACTION.indexOf(action) != -1
|
|
120
124
|
? html`
|
|
121
125
|
<label> <ox-i18n msgid="label.value">value</ox-i18n> </label>
|
|
122
126
|
<ox-input-data value-key="value" .value=${value} custom-editor fullwidth></ox-input-data>
|