@operato/board 0.3.20 → 0.3.26
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 +51 -0
- package/custom-elements.json +947 -947
- package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js +9 -8
- package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js.map +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +12 -9
- 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 -0
- package/dist/src/modeller/property-sidebar/effects/effects.js +8 -4
- package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-animation.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/effects/property-animation.js +11 -10
- package/dist/src/modeller/property-sidebar/effects/property-animation.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-animations.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/effects/property-animations.js +5 -2
- package/dist/src/modeller/property-sidebar/effects/property-animations.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.js +6 -5
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +5 -4
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/effects/property-event.js +4 -3
- package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-shadow.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/effects/property-shadow.js +4 -3
- package/dist/src/modeller/property-sidebar/effects/property-shadow.js.map +1 -1
- package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +2 -0
- package/dist/src/modeller/property-sidebar/shapes/shapes.js +30 -28
- package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.js +3 -3
- package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
- package/dist/src/modeller/property-sidebar/styles/styles.d.ts +2 -1
- package/dist/src/modeller/property-sidebar/styles/styles.js +21 -20
- package/dist/src/modeller/property-sidebar/styles/styles.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -14
- package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +9 -8
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +12 -9
- package/src/modeller/property-sidebar/effects/effects.ts +10 -5
- package/src/modeller/property-sidebar/effects/property-animation.ts +11 -10
- package/src/modeller/property-sidebar/effects/property-animations.ts +7 -3
- package/src/modeller/property-sidebar/effects/property-event-hover.ts +6 -5
- package/src/modeller/property-sidebar/effects/property-event-tap.ts +5 -4
- package/src/modeller/property-sidebar/effects/property-event.ts +6 -4
- package/src/modeller/property-sidebar/effects/property-shadow.ts +4 -3
- package/src/modeller/property-sidebar/shapes/shapes.ts +30 -28
- package/src/modeller/property-sidebar/specifics/specifics.ts +5 -4
- package/src/modeller/property-sidebar/styles/styles.ts +21 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
"storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@operato/data-grist": "^0.3.
|
|
53
|
-
"@operato/graphql": "^0.3.
|
|
54
|
-
"@operato/
|
|
55
|
-
"@operato/
|
|
56
|
-
"@operato/
|
|
57
|
-
"@operato/
|
|
58
|
-
"@operato/
|
|
59
|
-
"@operato/
|
|
52
|
+
"@operato/data-grist": "^0.3.26",
|
|
53
|
+
"@operato/graphql": "^0.3.26",
|
|
54
|
+
"@operato/i18n": "^0.3.26",
|
|
55
|
+
"@operato/input": "^0.3.26",
|
|
56
|
+
"@operato/markdown": "^0.3.26",
|
|
57
|
+
"@operato/popup": "^0.3.26",
|
|
58
|
+
"@operato/property-editor": "^0.3.26",
|
|
59
|
+
"@operato/styles": "^0.3.26",
|
|
60
|
+
"@operato/utils": "^0.3.26",
|
|
60
61
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
|
61
|
-
"@things-factory/
|
|
62
|
-
"@things-factory/modeller-ui": "^4.0.27",
|
|
62
|
+
"@things-factory/modeller-ui": "^4.0.41",
|
|
63
63
|
"@types/file-saver": "^2.0.4",
|
|
64
64
|
"@types/sortablejs": "^1.10.7",
|
|
65
65
|
"file-saver": "^2.0.5",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
72
72
|
"@hatiolab/prettier-config": "^1.0.0",
|
|
73
|
-
"@hatiolab/things-scene": "^2.7.
|
|
73
|
+
"@hatiolab/things-scene": "^2.7.34",
|
|
74
74
|
"@material/mwc-fab": "^0.25.3",
|
|
75
75
|
"@material/mwc-icon": "^0.25.3",
|
|
76
76
|
"@open-wc/eslint-config": "^4.3.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@types/w3c-web-usb": "^1.0.5",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
83
83
|
"@typescript-eslint/parser": "^4.33.0",
|
|
84
|
-
"@web/dev-server": "^0.1.
|
|
84
|
+
"@web/dev-server": "^0.1.29",
|
|
85
85
|
"@web/dev-server-storybook": "next",
|
|
86
86
|
"@web/test-runner": "next",
|
|
87
87
|
"concurrently": "^5.3.0",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"prettier --write"
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "45a8d381255eb8691cf1e22101741b0674284e01"
|
|
110
110
|
}
|
|
@@ -6,6 +6,7 @@ import '@things-factory/modeller-ui/client/editors/things-editor-value-map'
|
|
|
6
6
|
import '@things-factory/modeller-ui/client/editors/things-editor-value-range'
|
|
7
7
|
import '@operato/input/ox-buttons-radio.js'
|
|
8
8
|
import '@operato/input/ox-input-code.js'
|
|
9
|
+
import '@operato/i18n/ox-i18n.js'
|
|
9
10
|
|
|
10
11
|
import { css, html, LitElement, PropertyValues } from 'lit'
|
|
11
12
|
import { customElement, property, query, state } from 'lit/decorators.js'
|
|
@@ -174,7 +175,7 @@ export default class DataBindingMapper extends LitElement {
|
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
return html`
|
|
177
|
-
<label for="accessor-input"> <i18n
|
|
178
|
+
<label for="accessor-input"> <ox-i18n msgid="label.accessor">accessor</ox-i18n> </label>
|
|
178
179
|
<input
|
|
179
180
|
id="accessor-input"
|
|
180
181
|
value-key="accessor"
|
|
@@ -183,7 +184,7 @@ export default class DataBindingMapper extends LitElement {
|
|
|
183
184
|
.value=${mapping.accessor || ''}
|
|
184
185
|
/>
|
|
185
186
|
|
|
186
|
-
<label for="target-input"> <i18n
|
|
187
|
+
<label for="target-input"> <ox-i18n msgid="label.target">target</ox-i18n> </label>
|
|
187
188
|
<input
|
|
188
189
|
id="target-input"
|
|
189
190
|
type="text"
|
|
@@ -203,19 +204,19 @@ export default class DataBindingMapper extends LitElement {
|
|
|
203
204
|
: html``}
|
|
204
205
|
</datalist>
|
|
205
206
|
|
|
206
|
-
<label for="property-input"> <i18n
|
|
207
|
+
<label for="property-input"> <ox-i18n msgid="label.property">property</ox-i18n> </label>
|
|
207
208
|
<select id="property-input" value-key="property" .value=${mapping.property}>
|
|
208
209
|
${this.properties.map(
|
|
209
210
|
item => html` <option .value=${item.name} ?selected=${item.name == mapping.property}>${item.label}</option> `
|
|
210
211
|
)}
|
|
211
212
|
</select>
|
|
212
213
|
|
|
213
|
-
<label> <i18n
|
|
214
|
+
<label> <ox-i18n msgid="label.rule-type">rule type</ox-i18n> </label>
|
|
214
215
|
<ox-buttons-radio .value=${mapping.rule} @change=${(e: Event) => this._onChangeRule(e)}>
|
|
215
|
-
<div data-value="value"><i18n
|
|
216
|
-
<div data-value="map"><i18n
|
|
217
|
-
<div data-value="range"><i18n
|
|
218
|
-
<div data-value="eval"><i18n
|
|
216
|
+
<div data-value="value"><ox-i18n msgid="label.value"></ox-i18n></div>
|
|
217
|
+
<div data-value="map"><ox-i18n msgid="label.map"></ox-i18n></div>
|
|
218
|
+
<div data-value="range"><ox-i18n msgid="label.range"></ox-i18n></div>
|
|
219
|
+
<div data-value="eval"><ox-i18n msgid="label.eval"></ox-i18n></div>
|
|
219
220
|
</ox-buttons-radio>
|
|
220
221
|
|
|
221
222
|
<div rule-editors class="content" ?hidden=${mapping.rule == 'value'}>
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import './data-binding-mapper'
|
|
6
6
|
import '@material/mwc-icon'
|
|
7
|
-
import '@
|
|
7
|
+
import '@operato/help/ox-title-with-help.js'
|
|
8
8
|
import '@operato/input/ox-buttons-radio.js'
|
|
9
9
|
import '@operato/input/ox-input-data.js'
|
|
10
|
+
import '@operato/i18n/ox-i18n.js'
|
|
10
11
|
|
|
11
12
|
import { css, html, PropertyValues } from 'lit'
|
|
12
13
|
import { customElement, property, query, state } from 'lit/decorators.js'
|
|
@@ -201,27 +202,29 @@ class PropertyDataBinding extends AbstractProperty {
|
|
|
201
202
|
return html`
|
|
202
203
|
<fieldset>
|
|
203
204
|
<legend>
|
|
204
|
-
<title-with-help topic="board-modeller/data-binding" msgid="label.identifier"
|
|
205
|
+
<ox-title-with-help topic="board-modeller/data-binding" msgid="label.identifier"
|
|
206
|
+
>identifier</ox-title-with-help
|
|
207
|
+
>
|
|
205
208
|
</legend>
|
|
206
209
|
<div class="property-grid">
|
|
207
|
-
<label> <i18n
|
|
210
|
+
<label> <ox-i18n msgid="label.id">ID</ox-i18n> </label>
|
|
208
211
|
<input value-key="id" .value=${value.id || ''} />
|
|
209
212
|
|
|
210
|
-
<label> <i18n
|
|
213
|
+
<label> <ox-i18n msgid="label.class">Class</ox-i18n> </label>
|
|
211
214
|
<input value-key="class" .value=${value.class || ''} />
|
|
212
215
|
|
|
213
|
-
<label> <i18n
|
|
216
|
+
<label> <ox-i18n msgid="label.template-prefix">Template Prefix</ox-i18n> </label>
|
|
214
217
|
<input value-key="templatePrefix" .value=${value.templatePrefix || ''} />
|
|
215
218
|
|
|
216
219
|
<div class="checkbox-row">
|
|
217
220
|
<input id="checkbox-ndns" type="checkbox" value-key="ndns" .checked=${value.ndns} />
|
|
218
|
-
<label for="checkbox-ndns"> <i18n
|
|
221
|
+
<label for="checkbox-ndns"> <ox-i18n msgid="label.ndns">No Data No Show</ox-i18n> </label>
|
|
219
222
|
</div>
|
|
220
223
|
|
|
221
224
|
<div class="checkbox-row">
|
|
222
225
|
<input id="checkbox-sensitive" type="checkbox" value-key="sensitive" .checked=${value.sensitive} />
|
|
223
226
|
<label for="checkbox-sensitive">
|
|
224
|
-
<i18n
|
|
227
|
+
<ox-i18n msgid="label.intent-sensitive">Intent Sensitive</ox-i18n>
|
|
225
228
|
</label>
|
|
226
229
|
</div>
|
|
227
230
|
</div>
|
|
@@ -229,7 +232,7 @@ class PropertyDataBinding extends AbstractProperty {
|
|
|
229
232
|
|
|
230
233
|
<fieldset collapsable ?collapsed=${!this._dataExpanded}>
|
|
231
234
|
<legend>
|
|
232
|
-
<i18n
|
|
235
|
+
<ox-i18n msgid="label.initial-data">initial value</ox-i18n>
|
|
233
236
|
<mwc-icon
|
|
234
237
|
@click=${() => {
|
|
235
238
|
this._dataExpanded = !this._dataExpanded
|
|
@@ -241,7 +244,7 @@ class PropertyDataBinding extends AbstractProperty {
|
|
|
241
244
|
</fieldset>
|
|
242
245
|
|
|
243
246
|
<fieldset>
|
|
244
|
-
<legend><i18n
|
|
247
|
+
<legend><ox-i18n msgid="label.data-spread">Data Spread</ox-i18n></legend>
|
|
245
248
|
<div id="tab-header">
|
|
246
249
|
<mwc-icon
|
|
247
250
|
id="tab-nav-left-button"
|
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
import './property-animations'
|
|
6
6
|
import './property-event'
|
|
7
7
|
import './property-shadow'
|
|
8
|
+
import '@operato/i18n/ox-i18n.js'
|
|
9
|
+
import '@operato/help/ox-title-with-help.js'
|
|
8
10
|
|
|
9
|
-
import {
|
|
11
|
+
import { html } from 'lit'
|
|
10
12
|
import { customElement, property } from 'lit/decorators.js'
|
|
11
13
|
|
|
14
|
+
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
15
|
+
|
|
12
16
|
import { AbstractProperty } from '../abstract-property'
|
|
13
17
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
14
|
-
import { html } from 'lit'
|
|
15
18
|
|
|
16
19
|
@customElement('property-effect')
|
|
17
20
|
class PropertyEffects extends AbstractProperty {
|
|
@@ -30,7 +33,7 @@ class PropertyEffects extends AbstractProperty {
|
|
|
30
33
|
return html`
|
|
31
34
|
<fieldset>
|
|
32
35
|
<legend>
|
|
33
|
-
<title-with-help topic="board-modeller/effects/shadow" msgid="label.shadow">shadow</title-with-help>
|
|
36
|
+
<ox-title-with-help topic="board-modeller/effects/shadow" msgid="label.shadow">shadow</ox-title-with-help>
|
|
34
37
|
</legend>
|
|
35
38
|
|
|
36
39
|
<property-shadow value-key="shadow" .value=${value.shadow || {}}> </property-shadow>
|
|
@@ -38,11 +41,13 @@ class PropertyEffects extends AbstractProperty {
|
|
|
38
41
|
|
|
39
42
|
<fieldset>
|
|
40
43
|
<legend>
|
|
41
|
-
<title-with-help topic="board-modeller/effects/retention" msgid="label.retention"
|
|
44
|
+
<ox-title-with-help topic="board-modeller/effects/retention" msgid="label.retention"
|
|
45
|
+
>retention</ox-title-with-help
|
|
46
|
+
>
|
|
42
47
|
</legend>
|
|
43
48
|
|
|
44
49
|
<div class="property-grid">
|
|
45
|
-
<label> <i18n
|
|
50
|
+
<label> <ox-i18n msgid="label.retention">retention</ox-i18n> </label>
|
|
46
51
|
<input type="number" value-key="retention" .value=${value.retention} placeholder="ms" />
|
|
47
52
|
</div>
|
|
48
53
|
</fieldset>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import '@operato/input/ox-input-angle.js'
|
|
6
|
+
import '@operato/i18n/ox-i18n.js'
|
|
6
7
|
|
|
7
8
|
import { html, LitElement } from 'lit'
|
|
8
9
|
import { customElement, property } from 'lit/decorators.js'
|
|
@@ -47,45 +48,45 @@ export default class PropertyAnimation extends LitElement {
|
|
|
47
48
|
<option value="outline">Outline</option>
|
|
48
49
|
</select>
|
|
49
50
|
|
|
50
|
-
<label> <i18n
|
|
51
|
+
<label> <ox-i18n msgid="label.waiting-time">waiting time</ox-i18n> </label>
|
|
51
52
|
<input type="number" value-key="delay" .value=${value.delay} placeholder="ms" />
|
|
52
53
|
|
|
53
|
-
<label> <i18n
|
|
54
|
+
<label> <ox-i18n msgid="label.duration">duration</ox-i18n> </label>
|
|
54
55
|
<input type="number" value-key="duration" .value=${value.duration} placeholder="ms" />
|
|
55
56
|
|
|
56
57
|
${value.type == 'rotation' || value.type == 'vibration'
|
|
57
58
|
? html`
|
|
58
|
-
<label> <i18n
|
|
59
|
+
<label> <ox-i18n msgid="label.theta">theta</ox-i18n> </label>
|
|
59
60
|
<ox-input-angle value-key="theta" .radian=${value.theta}> </ox-input-angle>
|
|
60
61
|
`
|
|
61
62
|
: html``}
|
|
62
63
|
${value.type == 'heartbeat'
|
|
63
64
|
? html`
|
|
64
|
-
<label> <i18n
|
|
65
|
+
<label> <ox-i18n msgid="label.scale">scale</ox-i18n> </label>
|
|
65
66
|
<input type="number" value-key="scale" .value=${value.scale} />
|
|
66
67
|
`
|
|
67
68
|
: html``}
|
|
68
69
|
${value.type == 'moving'
|
|
69
70
|
? html`
|
|
70
|
-
<label> <i18n
|
|
71
|
+
<label> <ox-i18n msgid="label.x-axes">X-axes</ox-i18n> </label>
|
|
71
72
|
<input type="number" value-key="x" .value=${value.x} />
|
|
72
73
|
|
|
73
|
-
<label> <i18n
|
|
74
|
+
<label> <ox-i18n msgid="label.y-axes">Y-axes</ox-i18n> </label>
|
|
74
75
|
<input type="number" value-key="y" .value=${value.y} />
|
|
75
76
|
`
|
|
76
77
|
: html``}
|
|
77
78
|
${value.type == 'fade'
|
|
78
79
|
? html`
|
|
79
|
-
<label> <i18n
|
|
80
|
+
<label> <ox-i18n msgid="label.start-alpha">start alpha</ox-i18n> </label>
|
|
80
81
|
<input type="number" value-key="startAlpha" .value=${value.startAlpha} />
|
|
81
82
|
|
|
82
|
-
<label> <i18n
|
|
83
|
+
<label> <ox-i18n msgid="label.end-alpha">end alpha</ox-i18n> </label>
|
|
83
84
|
<input type="number" value-key="endAlpha" .value=${value.endAlpha} />
|
|
84
85
|
`
|
|
85
86
|
: html``}
|
|
86
87
|
${value.type == 'outline'
|
|
87
88
|
? html`
|
|
88
|
-
<label> <i18n
|
|
89
|
+
<label> <ox-i18n msgid="label.target">target</ox-i18n> </label>
|
|
89
90
|
<input value-key="rideOn" .value=${value.rideOn || ''} list="target-list" />
|
|
90
91
|
<datalist id="target-list">
|
|
91
92
|
${this.scene!.ids.map(info => info.key).map(id => html` <option value=${id}></option> `)}
|
|
@@ -94,7 +95,7 @@ export default class PropertyAnimation extends LitElement {
|
|
|
94
95
|
: html``}
|
|
95
96
|
|
|
96
97
|
<input id="checkbox-repeat" value-key="repeat" type="checkbox" .checked=${value.repeat} />
|
|
97
|
-
<label for="checkbox-repeat" class="checkbox-label"> <i18n
|
|
98
|
+
<label for="checkbox-repeat" class="checkbox-label"> <ox-i18n msgid="label.repeat">repeat</ox-i18n> </label>
|
|
98
99
|
|
|
99
100
|
<label>delta</label>
|
|
100
101
|
<select value-key="delta" .value=${value.delta}>
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import './property-animation'
|
|
6
6
|
import '@material/mwc-icon'
|
|
7
|
+
import '@operato/help/ox-title-with-help.js'
|
|
7
8
|
|
|
8
|
-
import {
|
|
9
|
-
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
9
|
+
import { css, html, LitElement } from 'lit'
|
|
10
10
|
import { customElement, property, state } from 'lit/decorators.js'
|
|
11
11
|
|
|
12
|
+
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
13
|
+
|
|
12
14
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
13
15
|
import { convert } from './value-converter'
|
|
14
16
|
|
|
@@ -50,7 +52,9 @@ class PropertyAnimations extends LitElement {
|
|
|
50
52
|
return html`
|
|
51
53
|
<fieldset collapsable ?collapsed=${!this._expanded}>
|
|
52
54
|
<legend>
|
|
53
|
-
<title-with-help topic="board-modeller/effects/animation" msgid="label.animation"
|
|
55
|
+
<ox-title-with-help topic="board-modeller/effects/animation" msgid="label.animation"
|
|
56
|
+
>animation</ox-title-with-help
|
|
57
|
+
>
|
|
54
58
|
<mwc-icon
|
|
55
59
|
@click=${() => {
|
|
56
60
|
this._expanded = !this._expanded
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import '@operato/input/ox-input-data.js'
|
|
6
|
+
import '@operato/i18n/ox-i18n.js'
|
|
6
7
|
|
|
7
8
|
import { html, LitElement } from 'lit'
|
|
8
9
|
import { customElement, property } from 'lit/decorators.js'
|
|
@@ -29,10 +30,10 @@ class PropertyEventHover extends LitElement {
|
|
|
29
30
|
return html`
|
|
30
31
|
<input id="checkbox-emphasize" type="checkbox" value-key="emphasize" .checked=${emphasize} />
|
|
31
32
|
<label for="checkbox-emphasize" class="checkbox-label">
|
|
32
|
-
<i18n
|
|
33
|
+
<ox-i18n msgid="label.emphasize">emphasize</ox-i18n>
|
|
33
34
|
</label>
|
|
34
35
|
|
|
35
|
-
<label> <i18n
|
|
36
|
+
<label> <ox-i18n msgid="label.action">action</ox-i18n> </label>
|
|
36
37
|
<select id="tap-select" value-key="action" .value=${action || ''}>
|
|
37
38
|
<option value=""></option>
|
|
38
39
|
<option value="popup">popup target board</option>
|
|
@@ -43,7 +44,7 @@ class PropertyEventHover extends LitElement {
|
|
|
43
44
|
<option value="value-set">set value to target component value</option>
|
|
44
45
|
</select>
|
|
45
46
|
|
|
46
|
-
<label> <i18n
|
|
47
|
+
<label> <ox-i18n msgid="label.target">target</ox-i18n> </label>
|
|
47
48
|
|
|
48
49
|
${action == 'popup'
|
|
49
50
|
? html`
|
|
@@ -67,14 +68,14 @@ class PropertyEventHover extends LitElement {
|
|
|
67
68
|
`}
|
|
68
69
|
${action == 'data-set' || action == 'value-set'
|
|
69
70
|
? html`
|
|
70
|
-
<label> <i18n
|
|
71
|
+
<label> <ox-i18n msgid="label.value">value</ox-i18n> </label>
|
|
71
72
|
<ox-input-data value-key="value" .value=${value} custom-editor fullwidth></ox-input-data>
|
|
72
73
|
`
|
|
73
74
|
: html``}
|
|
74
75
|
|
|
75
76
|
<input id="checkbox-restore" type="checkbox" value-key="restore" .checked=${restore} />
|
|
76
77
|
<label for="checkbox-restore" class="checkbox-label">
|
|
77
|
-
<i18n
|
|
78
|
+
<ox-i18n msgid="label.restore-on-leave">restore on leave</ox-i18n>
|
|
78
79
|
</label>
|
|
79
80
|
`
|
|
80
81
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import '@operato/input/ox-input-data.js'
|
|
6
|
+
import '@operato/i18n/ox-i18n.js'
|
|
6
7
|
|
|
7
8
|
import { html, LitElement } from 'lit'
|
|
8
9
|
import { customElement, property } from 'lit/decorators.js'
|
|
@@ -28,9 +29,9 @@ class PropertyEventTap extends LitElement {
|
|
|
28
29
|
|
|
29
30
|
return html`
|
|
30
31
|
<input id="checkbox-pressed" type="checkbox" value-key="pressed" .checked=${pressed} />
|
|
31
|
-
<label for="checkbox-pressed" class="checkbox-label"> <i18n
|
|
32
|
+
<label for="checkbox-pressed" class="checkbox-label"> <ox-i18n msgid="label.pressed">pressed</ox-i18n> </label>
|
|
32
33
|
|
|
33
|
-
<label> <i18n
|
|
34
|
+
<label> <ox-i18n msgid="label.action">action</ox-i18n> </label>
|
|
34
35
|
<select id="tap-select" value-key="action" .value=${action || ''}>
|
|
35
36
|
<option value=""></option>
|
|
36
37
|
<option value="goto">go to target board</option>
|
|
@@ -48,7 +49,7 @@ class PropertyEventTap extends LitElement {
|
|
|
48
49
|
<option value="value-set">set value to target component value</option>
|
|
49
50
|
</select>
|
|
50
51
|
|
|
51
|
-
<label> <i18n
|
|
52
|
+
<label> <ox-i18n msgid="label.target">target</ox-i18n> </label>
|
|
52
53
|
|
|
53
54
|
${action == 'goto' || action == 'popup'
|
|
54
55
|
? html`
|
|
@@ -67,7 +68,7 @@ class PropertyEventTap extends LitElement {
|
|
|
67
68
|
`}
|
|
68
69
|
${action == 'data-set' || action == 'value-set'
|
|
69
70
|
? html`
|
|
70
|
-
<label> <i18n
|
|
71
|
+
<label> <ox-i18n msgid="label.value">value</ox-i18n> </label>
|
|
71
72
|
<ox-input-data value-key="value" .value=${value} custom-editor fullwidth></ox-input-data>
|
|
72
73
|
`
|
|
73
74
|
: html``}
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import './property-event-hover'
|
|
6
6
|
import './property-event-tap'
|
|
7
|
+
import '@operato/help/ox-title-with-help.js'
|
|
7
8
|
|
|
8
|
-
import {
|
|
9
|
-
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
9
|
+
import { html, LitElement } from 'lit'
|
|
10
10
|
import { customElement, property } from 'lit/decorators.js'
|
|
11
11
|
|
|
12
|
+
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
13
|
+
|
|
12
14
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
13
15
|
import { convert } from './value-converter'
|
|
14
16
|
|
|
@@ -29,7 +31,7 @@ class PropertyEvent extends LitElement {
|
|
|
29
31
|
return html`
|
|
30
32
|
<fieldset>
|
|
31
33
|
<legend>
|
|
32
|
-
<title-with-help msgid="label.hover-event" topic="board-modeller/effects/hover-event"></title-with-help>
|
|
34
|
+
<ox-title-with-help msgid="label.hover-event" topic="board-modeller/effects/hover-event"></ox-title-with-help>
|
|
33
35
|
</legend>
|
|
34
36
|
|
|
35
37
|
<property-event-hover value-key="hover" .scene=${this.scene} .value=${value.hover || {}}>
|
|
@@ -38,7 +40,7 @@ class PropertyEvent extends LitElement {
|
|
|
38
40
|
|
|
39
41
|
<fieldset>
|
|
40
42
|
<legend>
|
|
41
|
-
<title-with-help msgid="label.tap-event" topic="board-modeller/effects/tap-event"></title-with-help>
|
|
43
|
+
<ox-title-with-help msgid="label.tap-event" topic="board-modeller/effects/tap-event"></ox-title-with-help>
|
|
42
44
|
</legend>
|
|
43
45
|
|
|
44
46
|
<property-event-tap value-key="tap" .scene=${this.scene} .value=${value.tap || {}}> </property-event-tap>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import '@things-factory/modeller-ui/client/editors/things-editor-color'
|
|
6
|
+
import '@operato/i18n/ox-i18n.js'
|
|
6
7
|
|
|
7
8
|
import { css, html, LitElement } from 'lit'
|
|
8
9
|
import { customElement, property } from 'lit/decorators.js'
|
|
@@ -78,15 +79,15 @@ export default class PropertyShadow extends LitElement {
|
|
|
78
79
|
const value = this.value || {}
|
|
79
80
|
|
|
80
81
|
return html`
|
|
81
|
-
<label> <i18n
|
|
82
|
+
<label> <ox-i18n msgid="label.shadowOffsetX">offset-X</ox-i18n> </label>
|
|
82
83
|
|
|
83
84
|
<input type="number" value-key="left" .value=${value.left} />
|
|
84
85
|
|
|
85
|
-
<label> <i18n
|
|
86
|
+
<label> <ox-i18n msgid="label.shadowOffsetY">offset-Y</ox-i18n> </label>
|
|
86
87
|
|
|
87
88
|
<input type="number" value-key="top" .value=${value.top} />
|
|
88
89
|
|
|
89
|
-
<label> <i18n
|
|
90
|
+
<label> <ox-i18n msgid="label.shadowSize">Size</ox-i18n> </label>
|
|
90
91
|
|
|
91
92
|
<input type="number" value-key="blurSize" .value=${value.blurSize} />
|
|
92
93
|
|