@operato/board 1.4.63 → 1.4.65
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.65",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -88,18 +88,18 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@open-wc/scoped-elements": "^2.0.0-next.6",
|
|
91
|
-
"@operato/app": "^1.4.
|
|
92
|
-
"@operato/data-grist": "^1.4.
|
|
93
|
-
"@operato/font": "^1.4.
|
|
94
|
-
"@operato/graphql": "^1.4.
|
|
95
|
-
"@operato/i18n": "^1.4.
|
|
96
|
-
"@operato/input": "^1.4.
|
|
97
|
-
"@operato/layout": "^1.4.
|
|
98
|
-
"@operato/markdown": "^1.4.
|
|
99
|
-
"@operato/popup": "^1.4.
|
|
100
|
-
"@operato/property-editor": "^1.4.
|
|
101
|
-
"@operato/styles": "^1.4.
|
|
102
|
-
"@operato/utils": "^1.4.
|
|
91
|
+
"@operato/app": "^1.4.64",
|
|
92
|
+
"@operato/data-grist": "^1.4.64",
|
|
93
|
+
"@operato/font": "^1.4.64",
|
|
94
|
+
"@operato/graphql": "^1.4.64",
|
|
95
|
+
"@operato/i18n": "^1.4.64",
|
|
96
|
+
"@operato/input": "^1.4.64",
|
|
97
|
+
"@operato/layout": "^1.4.64",
|
|
98
|
+
"@operato/markdown": "^1.4.64",
|
|
99
|
+
"@operato/popup": "^1.4.64",
|
|
100
|
+
"@operato/property-editor": "^1.4.64",
|
|
101
|
+
"@operato/styles": "^1.4.64",
|
|
102
|
+
"@operato/utils": "^1.4.64",
|
|
103
103
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
|
104
104
|
"@types/file-saver": "^2.0.4",
|
|
105
105
|
"@types/sortablejs": "^1.10.7",
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"prettier --write"
|
|
149
149
|
]
|
|
150
150
|
},
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "eea35f6a0315df6ecbb2da37bf8374224a577aba"
|
|
152
152
|
}
|
package/src/ox-board-player.ts
CHANGED
|
@@ -17,6 +17,7 @@ const DEFAULT_PLAYLIST = String('__default__')
|
|
|
17
17
|
export class BoardPlayer extends LitElement {
|
|
18
18
|
static styles = style
|
|
19
19
|
|
|
20
|
+
@property({ type: String }) playlist: string = DEFAULT_PLAYLIST
|
|
20
21
|
@property({ type: Array }) boards: Array<any> = []
|
|
21
22
|
@property({ type: Number }) playtime = 30
|
|
22
23
|
@property({ type: Number }) columns = 1
|
|
@@ -67,7 +68,7 @@ export class BoardPlayer extends LitElement {
|
|
|
67
68
|
.value=${String(this.playtime)}
|
|
68
69
|
@change=${(e: Event) => {
|
|
69
70
|
this.playtime = Number((e.target as HTMLInputElement).value)
|
|
70
|
-
this.playlistStorage.save(
|
|
71
|
+
this.playlistStorage.save(this.playlist, {
|
|
71
72
|
playtime: this.playtime,
|
|
72
73
|
columns: this.columns,
|
|
73
74
|
rows: this.rows
|
|
@@ -82,7 +83,7 @@ export class BoardPlayer extends LitElement {
|
|
|
82
83
|
.value=${String(this.rows)}
|
|
83
84
|
@change=${(e: Event) => {
|
|
84
85
|
this.rows = Number((e.target as HTMLInputElement).value)
|
|
85
|
-
this.playlistStorage.save(
|
|
86
|
+
this.playlistStorage.save(this.playlist, {
|
|
86
87
|
playtime: this.playtime,
|
|
87
88
|
columns: this.columns,
|
|
88
89
|
rows: this.rows
|
|
@@ -96,7 +97,7 @@ export class BoardPlayer extends LitElement {
|
|
|
96
97
|
.value=${String(this.columns)}
|
|
97
98
|
@change=${(e: Event) => {
|
|
98
99
|
this.columns = Number((e.target as HTMLInputElement).value)
|
|
99
|
-
this.playlistStorage.save(
|
|
100
|
+
this.playlistStorage.save(this.playlist, {
|
|
100
101
|
playtime: this.playtime,
|
|
101
102
|
columns: this.columns,
|
|
102
103
|
rows: this.rows
|
|
@@ -123,7 +124,7 @@ export class BoardPlayer extends LitElement {
|
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
async firstUpdated() {
|
|
126
|
-
const setting = await this.playlistStorage.load(
|
|
127
|
+
const setting = await this.playlistStorage.load(this.playlist)
|
|
127
128
|
|
|
128
129
|
if (setting) {
|
|
129
130
|
const { playtime = 30, columns = 1, rows = 1 } = setting || {}
|