@operato/board 1.4.52 → 1.4.54
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/property-sidebar/effects/property-animation.js +12 -1
- package/dist/src/modeller/property-sidebar/effects/property-animation.js.map +1 -1
- package/dist/src/selector/ox-board-selector.js +3 -2
- package/dist/src/selector/ox-board-selector.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/modeller/property-sidebar/effects/property-animation.ts +12 -2
- package/src/selector/ox-board-selector.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.54",
|
|
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": "783bec574847b8b6d40bf3173a68167781ca849d"
|
|
152
152
|
}
|
|
@@ -6,7 +6,7 @@ import '@operato/input/ox-input-angle.js'
|
|
|
6
6
|
import '@operato/i18n/ox-i18n.js'
|
|
7
7
|
|
|
8
8
|
import { html, LitElement } from 'lit'
|
|
9
|
-
import { property } from 'lit/decorators.js'
|
|
9
|
+
import { property, query } from 'lit/decorators.js'
|
|
10
10
|
|
|
11
11
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
12
12
|
|
|
@@ -53,7 +53,7 @@ export class PropertyAnimation extends LitElement {
|
|
|
53
53
|
<label> <ox-i18n msgid="label.duration">duration</ox-i18n> </label>
|
|
54
54
|
<input type="number" value-key="duration" .value=${value.duration} placeholder="ms" />
|
|
55
55
|
|
|
56
|
-
<label> <ox-i18n msgid="label.interval">interval</ox-i18n> </label>
|
|
56
|
+
<label> <ox-i18n msgid="label.animation-interval">interval</ox-i18n> </label>
|
|
57
57
|
<input type="number" value-key="interval" .value=${value.interval} placeholder="ms" />
|
|
58
58
|
|
|
59
59
|
${value.type == 'rotation' || value.type == 'vibration'
|
|
@@ -99,6 +99,16 @@ export class PropertyAnimation extends LitElement {
|
|
|
99
99
|
<input id="checkbox-repeat" value-key="repeat" type="checkbox" .checked=${value.repeat} />
|
|
100
100
|
<label for="checkbox-repeat" class="checkbox-label"> <ox-i18n msgid="label.repeat">repeat</ox-i18n> </label>
|
|
101
101
|
|
|
102
|
+
<input
|
|
103
|
+
id="checkbox-autoplay"
|
|
104
|
+
value-key="autoplay"
|
|
105
|
+
type="checkbox"
|
|
106
|
+
.checked=${value.autoplay || (value.autoplay ?? true)}
|
|
107
|
+
/>
|
|
108
|
+
<label for="checkbox-autoplay" class="checkbox-label">
|
|
109
|
+
<ox-i18n msgid="label.autoplay">autoplay</ox-i18n>
|
|
110
|
+
</label>
|
|
111
|
+
|
|
102
112
|
<label>delta</label>
|
|
103
113
|
<select value-key="delta" .value=${value.delta}>
|
|
104
114
|
<option value="linear">linear</option>
|
|
@@ -320,8 +320,9 @@ export class BoardSelector extends InfiniteScrollable(localize(i18next)(LitEleme
|
|
|
320
320
|
|
|
321
321
|
async createBoard(name: string, description: string, groupId: string) {
|
|
322
322
|
var model = JSON.stringify({
|
|
323
|
-
width:
|
|
324
|
-
height:
|
|
323
|
+
width: 1200,
|
|
324
|
+
height: 800,
|
|
325
|
+
fillStyle: 'white'
|
|
325
326
|
})
|
|
326
327
|
|
|
327
328
|
const response = await client.mutate({
|