@operato/board 0.3.18 → 0.3.22
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 +35 -0
- package/custom-elements.json +202 -202
- 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 +1 -0
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +8 -7
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/effects/effects.js +3 -2
- 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-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-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 +1 -0
- package/dist/src/modeller/property-sidebar/shapes/shapes.js +21 -20
- package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
- package/dist/src/modeller/property-sidebar/styles/styles.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/styles/styles.js +14 -13
- package/dist/src/modeller/property-sidebar/styles/styles.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -12
- package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +9 -8
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +8 -7
- package/src/modeller/property-sidebar/effects/effects.ts +5 -3
- package/src/modeller/property-sidebar/effects/property-animation.ts +11 -10
- 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-shadow.ts +4 -3
- package/src/modeller/property-sidebar/shapes/shapes.ts +21 -20
- package/src/modeller/property-sidebar/styles/styles.ts +14 -13
- package/yarn-error.log +0 -18355
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,14 +49,15 @@
|
|
|
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.22",
|
|
53
|
+
"@operato/graphql": "^0.3.22",
|
|
54
|
+
"@operato/i18n": "^0.3.22",
|
|
55
|
+
"@operato/input": "^0.3.22",
|
|
56
|
+
"@operato/markdown": "^0.3.22",
|
|
57
|
+
"@operato/popup": "^0.3.22",
|
|
58
|
+
"@operato/property-editor": "^0.3.22",
|
|
59
|
+
"@operato/styles": "^0.3.22",
|
|
60
|
+
"@operato/utils": "^0.3.22",
|
|
60
61
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
|
61
62
|
"@things-factory/help": "^4.0.27",
|
|
62
63
|
"@things-factory/modeller-ui": "^4.0.27",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"devDependencies": {
|
|
71
72
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
72
73
|
"@hatiolab/prettier-config": "^1.0.0",
|
|
73
|
-
"@hatiolab/things-scene": "^2.7.
|
|
74
|
+
"@hatiolab/things-scene": "^2.7.34",
|
|
74
75
|
"@material/mwc-fab": "^0.25.3",
|
|
75
76
|
"@material/mwc-icon": "^0.25.3",
|
|
76
77
|
"@open-wc/eslint-config": "^4.3.0",
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"@types/w3c-web-usb": "^1.0.5",
|
|
82
83
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
83
84
|
"@typescript-eslint/parser": "^4.33.0",
|
|
84
|
-
"@web/dev-server": "^0.1.
|
|
85
|
+
"@web/dev-server": "^0.1.29",
|
|
85
86
|
"@web/dev-server-storybook": "next",
|
|
86
87
|
"@web/test-runner": "next",
|
|
87
88
|
"concurrently": "^5.3.0",
|
|
@@ -106,5 +107,5 @@
|
|
|
106
107
|
"prettier --write"
|
|
107
108
|
]
|
|
108
109
|
},
|
|
109
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "368032e9ae07d6e82a2d7f35486f67a197db179c"
|
|
110
111
|
}
|
|
@@ -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'}>
|
|
@@ -7,6 +7,7 @@ import '@material/mwc-icon'
|
|
|
7
7
|
import '@things-factory/help'
|
|
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'
|
|
@@ -204,24 +205,24 @@ class PropertyDataBinding extends AbstractProperty {
|
|
|
204
205
|
<title-with-help topic="board-modeller/data-binding" msgid="label.identifier">identifier</title-with-help>
|
|
205
206
|
</legend>
|
|
206
207
|
<div class="property-grid">
|
|
207
|
-
<label> <i18n
|
|
208
|
+
<label> <ox-i18n msgid="label.id">ID</ox-i18n> </label>
|
|
208
209
|
<input value-key="id" .value=${value.id || ''} />
|
|
209
210
|
|
|
210
|
-
<label> <i18n
|
|
211
|
+
<label> <ox-i18n msgid="label.class">Class</ox-i18n> </label>
|
|
211
212
|
<input value-key="class" .value=${value.class || ''} />
|
|
212
213
|
|
|
213
|
-
<label> <i18n
|
|
214
|
+
<label> <ox-i18n msgid="label.template-prefix">Template Prefix</ox-i18n> </label>
|
|
214
215
|
<input value-key="templatePrefix" .value=${value.templatePrefix || ''} />
|
|
215
216
|
|
|
216
217
|
<div class="checkbox-row">
|
|
217
218
|
<input id="checkbox-ndns" type="checkbox" value-key="ndns" .checked=${value.ndns} />
|
|
218
|
-
<label for="checkbox-ndns"> <i18n
|
|
219
|
+
<label for="checkbox-ndns"> <ox-i18n msgid="label.ndns">No Data No Show</ox-i18n> </label>
|
|
219
220
|
</div>
|
|
220
221
|
|
|
221
222
|
<div class="checkbox-row">
|
|
222
223
|
<input id="checkbox-sensitive" type="checkbox" value-key="sensitive" .checked=${value.sensitive} />
|
|
223
224
|
<label for="checkbox-sensitive">
|
|
224
|
-
<i18n
|
|
225
|
+
<ox-i18n msgid="label.intent-sensitive">Intent Sensitive</ox-i18n>
|
|
225
226
|
</label>
|
|
226
227
|
</div>
|
|
227
228
|
</div>
|
|
@@ -229,7 +230,7 @@ class PropertyDataBinding extends AbstractProperty {
|
|
|
229
230
|
|
|
230
231
|
<fieldset collapsable ?collapsed=${!this._dataExpanded}>
|
|
231
232
|
<legend>
|
|
232
|
-
<i18n
|
|
233
|
+
<ox-i18n msgid="label.initial-data">initial value</ox-i18n>
|
|
233
234
|
<mwc-icon
|
|
234
235
|
@click=${() => {
|
|
235
236
|
this._dataExpanded = !this._dataExpanded
|
|
@@ -241,7 +242,7 @@ class PropertyDataBinding extends AbstractProperty {
|
|
|
241
242
|
</fieldset>
|
|
242
243
|
|
|
243
244
|
<fieldset>
|
|
244
|
-
<legend><i18n
|
|
245
|
+
<legend><ox-i18n msgid="label.data-spread">Data Spread</ox-i18n></legend>
|
|
245
246
|
<div id="tab-header">
|
|
246
247
|
<mwc-icon
|
|
247
248
|
id="tab-nav-left-button"
|
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
import './property-animations'
|
|
6
6
|
import './property-event'
|
|
7
7
|
import './property-shadow'
|
|
8
|
+
import '@operato/i18n/ox-i18n.js'
|
|
8
9
|
|
|
9
|
-
import {
|
|
10
|
+
import { html } from 'lit'
|
|
10
11
|
import { customElement, property } from 'lit/decorators.js'
|
|
11
12
|
|
|
13
|
+
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
14
|
+
|
|
12
15
|
import { AbstractProperty } from '../abstract-property'
|
|
13
16
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
14
|
-
import { html } from 'lit'
|
|
15
17
|
|
|
16
18
|
@customElement('property-effect')
|
|
17
19
|
class PropertyEffects extends AbstractProperty {
|
|
@@ -42,7 +44,7 @@ class PropertyEffects extends AbstractProperty {
|
|
|
42
44
|
</legend>
|
|
43
45
|
|
|
44
46
|
<div class="property-grid">
|
|
45
|
-
<label> <i18n
|
|
47
|
+
<label> <ox-i18n msgid="label.retention">retention</ox-i18n> </label>
|
|
46
48
|
<input type="number" value-key="retention" .value=${value.retention} placeholder="ms" />
|
|
47
49
|
</div>
|
|
48
50
|
</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}>
|
|
@@ -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``}
|
|
@@ -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
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import '@operato/input/ox-input-angle.js'
|
|
6
6
|
import '@operato/input/ox-buttons-radio.js'
|
|
7
7
|
import '@material/mwc-icon'
|
|
8
|
+
import '@operato/i18n/ox-i18n.js'
|
|
8
9
|
|
|
9
10
|
import { css, html } from 'lit'
|
|
10
11
|
import { customElement, property, state } from 'lit/decorators.js'
|
|
@@ -149,21 +150,21 @@ class PropertyShapes extends AbstractProperty {
|
|
|
149
150
|
<div class="property-grid">
|
|
150
151
|
${this._isIdentifiable(this.selected)
|
|
151
152
|
? html`
|
|
152
|
-
<label> <i18n
|
|
153
|
+
<label> <ox-i18n msgid="label.id">ID</ox-i18n> </label>
|
|
153
154
|
<input value-key="id" .value=${value.id || ''} />
|
|
154
155
|
`
|
|
155
156
|
: html``}
|
|
156
157
|
${this._isClassIdentifiable(this.selected)
|
|
157
158
|
? html`
|
|
158
|
-
<label> <i18n
|
|
159
|
+
<label> <ox-i18n msgid="label.class">Class</ox-i18n> </label>
|
|
159
160
|
<input value-key="class" .value=${value.class || ''} />
|
|
160
161
|
`
|
|
161
162
|
: html``}
|
|
162
163
|
${this._hasTextProperty(this.selected)
|
|
163
164
|
? html`
|
|
164
|
-
<label> <i18n
|
|
165
|
+
<label> <ox-i18n msgid="label.text">Text</ox-i18n> </label>
|
|
165
166
|
<input value-key="text" .value=${value.text || ''} />
|
|
166
|
-
<label> <i18n
|
|
167
|
+
<label> <ox-i18n msgid="label.text-format">Text Format</ox-i18n> </label>
|
|
167
168
|
<input value-key="textFormat" .value=${value.textFormat || ''} list="format-list" />
|
|
168
169
|
<datalist id="format-list">
|
|
169
170
|
<option value="#,###."></option>
|
|
@@ -179,10 +180,10 @@ class PropertyShapes extends AbstractProperty {
|
|
|
179
180
|
? html`
|
|
180
181
|
<div class="checkbox-row">
|
|
181
182
|
<input id="checkbox-hidden" value-key="hidden" type="checkbox" .checked=${value.hidden} />
|
|
182
|
-
<label for="checkbox-hidden"> <i18n
|
|
183
|
+
<label for="checkbox-hidden"> <ox-i18n msgid="label.item-hidden">Item Hidden</ox-i18n> </label>
|
|
183
184
|
|
|
184
185
|
<input id="checkbox-locked" value-key="locked" type="checkbox" .checked=${value.locked} />
|
|
185
|
-
<label for="checkbox-locked"> <i18n
|
|
186
|
+
<label for="checkbox-locked"> <ox-i18n msgid="label.locked">Locked</ox-i18n> </label>
|
|
186
187
|
</div>
|
|
187
188
|
`
|
|
188
189
|
: html``}
|
|
@@ -197,15 +198,15 @@ class PropertyShapes extends AbstractProperty {
|
|
|
197
198
|
</legend>
|
|
198
199
|
|
|
199
200
|
<div class="property-grid">
|
|
200
|
-
<label class="width"> <i18n
|
|
201
|
+
<label class="width"> <ox-i18n msgid="label.width">width</ox-i18n> </label>
|
|
201
202
|
<input type="number" value-key="bounds.width" .value=${this.bounds?.width} />
|
|
202
|
-
<label class="height"> <i18n
|
|
203
|
+
<label class="height"> <ox-i18n msgid="label.height">height</ox-i18n> </label>
|
|
203
204
|
<input type="number" value-key="bounds.height" .value=${this.bounds?.height} />
|
|
204
205
|
|
|
205
206
|
${this.selected.length && this.selected[0].isRootModel()
|
|
206
207
|
? html``
|
|
207
208
|
: html`
|
|
208
|
-
<label class="rotate"> <i18n
|
|
209
|
+
<label class="rotate"> <ox-i18n msgid="label.rotate">rotate</ox-i18n> </label>
|
|
209
210
|
<ox-input-angle value-key="rotation" .radian=${value.rotation}> </ox-input-angle>
|
|
210
211
|
`}
|
|
211
212
|
</div>
|
|
@@ -226,18 +227,18 @@ class PropertyShapes extends AbstractProperty {
|
|
|
226
227
|
</legend>
|
|
227
228
|
|
|
228
229
|
<div class="property-grid">
|
|
229
|
-
<label class="zPos"> <i18n
|
|
230
|
+
<label class="zPos"> <ox-i18n msgid="label.z-pos">pos. Z</ox-i18n> </label>
|
|
230
231
|
<input type="number" value-key="zPos" .value=${value.zPos} />
|
|
231
|
-
<label class="depth"> <i18n
|
|
232
|
+
<label class="depth"> <ox-i18n msgid="label.depth">depth</ox-i18n> </label>
|
|
232
233
|
<input type="number" value-key="depth" .value=${value.depth} />
|
|
233
234
|
|
|
234
|
-
<label class="rotationX"> <i18n
|
|
235
|
+
<label class="rotationX"> <ox-i18n msgid="label.rotation-x">rot. X</ox-i18n> </label>
|
|
235
236
|
<ox-input-angle value-key="rotationX" .radian=${value.rotationX}> </ox-input-angle>
|
|
236
237
|
|
|
237
|
-
<label class="rotationY"> <i18n
|
|
238
|
+
<label class="rotationY"> <ox-i18n msgid="label.rotation-y">rot. Y</ox-i18n> </label>
|
|
238
239
|
<ox-input-angle value-key="rotationY" .radian=${value.rotationY}> </ox-input-angle>
|
|
239
240
|
|
|
240
|
-
<label class="rotationZ"> <i18n
|
|
241
|
+
<label class="rotationZ"> <ox-i18n msgid="label.rotation-z">rot. Z</ox-i18n> </label>
|
|
241
242
|
<ox-input-angle value-key="rotation" .radian=${value.rotation}> </ox-input-angle>
|
|
242
243
|
</div>
|
|
243
244
|
</fieldset>
|
|
@@ -253,7 +254,7 @@ class PropertyShapes extends AbstractProperty {
|
|
|
253
254
|
</legend>
|
|
254
255
|
|
|
255
256
|
<div class="property-grid">
|
|
256
|
-
<label> <i18n
|
|
257
|
+
<label> <ox-i18n msgid="label.horizontal">horizontal</ox-i18n> </label>
|
|
257
258
|
<ox-buttons-radio value-key="textAlign" .value=${value.textAlign}>
|
|
258
259
|
<div data-value="left"></div>
|
|
259
260
|
<div data-value="center"></div>
|
|
@@ -261,7 +262,7 @@ class PropertyShapes extends AbstractProperty {
|
|
|
261
262
|
<div data-value="justify"></div>
|
|
262
263
|
</ox-buttons-radio>
|
|
263
264
|
|
|
264
|
-
<label> <i18n
|
|
265
|
+
<label> <ox-i18n msgid="label.vertical">vertical</ox-i18n> </label>
|
|
265
266
|
<ox-buttons-radio value-key="textBaseline" .value=${value.textBaseline}>
|
|
266
267
|
<div data-value="top"></div>
|
|
267
268
|
<div data-value="middle"></div>
|
|
@@ -270,10 +271,10 @@ class PropertyShapes extends AbstractProperty {
|
|
|
270
271
|
|
|
271
272
|
<div class="checkbox-row">
|
|
272
273
|
<input id="checkbox-textwrap" type="checkbox" value-key="textWrap" .checked=${value.textWrap} />
|
|
273
|
-
<label for="checkbox-textwrap"> <i18n
|
|
274
|
+
<label for="checkbox-textwrap"> <ox-i18n msgid="label.text-wrap">Text Wrap</ox-i18n> </label>
|
|
274
275
|
</div>
|
|
275
276
|
|
|
276
|
-
<label> <i18n
|
|
277
|
+
<label> <ox-i18n msgid="label.padding">padding</ox-i18n> </label>
|
|
277
278
|
<table class="box-padding">
|
|
278
279
|
<tr>
|
|
279
280
|
<td class="slide1"></td>
|
|
@@ -310,7 +311,7 @@ class PropertyShapes extends AbstractProperty {
|
|
|
310
311
|
</legend>
|
|
311
312
|
|
|
312
313
|
<div class="property-grid">
|
|
313
|
-
<label><i18n
|
|
314
|
+
<label><ox-i18n msgid="label.fit">Fit</ox-i18n></label>
|
|
314
315
|
<select value-key="fitMode" .value=${value.fitMode || 'ratio'}>
|
|
315
316
|
<option value="none">none</option>
|
|
316
317
|
<option value="ratio" selected>ratio</option>
|
|
@@ -328,7 +329,7 @@ class PropertyShapes extends AbstractProperty {
|
|
|
328
329
|
</legend>
|
|
329
330
|
|
|
330
331
|
<div class="property-grid">
|
|
331
|
-
<label class="rotate"><i18n
|
|
332
|
+
<label class="rotate"><ox-i18n msgid="label.label-rotation">Label Rotation</ox-i18n></label>
|
|
332
333
|
<select value-key="labelRotation" .value=${value.labelRotation || 'N'}>
|
|
333
334
|
<option value="N" selected>0°</option>
|
|
334
335
|
<option value="B">90°</option>
|
|
@@ -7,6 +7,7 @@ import '@things-factory/help'
|
|
|
7
7
|
import '@things-factory/modeller-ui/client/editors/things-editor-color'
|
|
8
8
|
import '@things-factory/modeller-ui/client/editors/things-editor-color-style'
|
|
9
9
|
import '@things-factory/modeller-ui/client/editors/things-editor-font-selector'
|
|
10
|
+
import '@operato/i18n/ox-i18n.js'
|
|
10
11
|
|
|
11
12
|
import { css, html } from 'lit'
|
|
12
13
|
import { customElement, property } from 'lit/decorators.js'
|
|
@@ -370,7 +371,7 @@ class PropertyStyles extends AbstractProperty {
|
|
|
370
371
|
|
|
371
372
|
<div class="property-grid">
|
|
372
373
|
<label class="property-full-label">
|
|
373
|
-
<i18n
|
|
374
|
+
<ox-i18n msgid="label.font-family">Font Family</ox-i18n>
|
|
374
375
|
</label>
|
|
375
376
|
|
|
376
377
|
<things-editor-font-selector
|
|
@@ -422,7 +423,7 @@ class PropertyStyles extends AbstractProperty {
|
|
|
422
423
|
</things-editor-color>
|
|
423
424
|
|
|
424
425
|
<label class="property-full-label">
|
|
425
|
-
<i18n
|
|
426
|
+
<ox-i18n msgid="label.line-type">line type</ox-i18n>
|
|
426
427
|
</label>
|
|
427
428
|
<paper-dropdown-menu no-label-float="true" class="property-full-input line-type solid">
|
|
428
429
|
<!-- solid는 선택된 항목 보여주기위한 class로 하위 paper-item의 class와 동일하게 -->
|
|
@@ -445,26 +446,26 @@ class PropertyStyles extends AbstractProperty {
|
|
|
445
446
|
</paper-dropdown-menu>
|
|
446
447
|
|
|
447
448
|
<label class="property-full-label">
|
|
448
|
-
<i18n
|
|
449
|
+
<ox-i18n msgid="label.cap-type">cap type</ox-i18n>
|
|
449
450
|
</label>
|
|
450
451
|
<select class="property-full-input select-content" value-key="lineCap" .value=${lineCap}>
|
|
451
|
-
<option value="butt"><i18n
|
|
452
|
-
<option value="round"><i18n
|
|
452
|
+
<option value="butt"><ox-i18n msgid="label.square">square</ox-i18n></option>
|
|
453
|
+
<option value="round"><ox-i18n msgid="label.round">round</ox-i18n></option>
|
|
453
454
|
</select>
|
|
454
455
|
|
|
455
456
|
<label class="property-full-label">
|
|
456
|
-
<i18n
|
|
457
|
+
<ox-i18n msgid="label.join-type">join type</ox-i18n>
|
|
457
458
|
</label>
|
|
458
459
|
<select class="property-full-input select-content" value-key="lineJoin" .value=${lineJoin}>
|
|
459
|
-
<option value="miter"><i18n
|
|
460
|
-
<option value="round"><i18n
|
|
461
|
-
<option value="bevel"><i18n
|
|
460
|
+
<option value="miter"><ox-i18n msgid="label.miter">miter</ox-i18n></option>
|
|
461
|
+
<option value="round"><ox-i18n msgid="label.round">round</ox-i18n></option>
|
|
462
|
+
<option value="bevel"><ox-i18n msgid="label.bevel">bevel</ox-i18n></option>
|
|
462
463
|
</select>
|
|
463
464
|
|
|
464
465
|
${this._isLine(this.selected)
|
|
465
466
|
? html`
|
|
466
467
|
<label class="property-full-label">
|
|
467
|
-
<i18n
|
|
468
|
+
<ox-i18n msgid="label.begin-type">begin type</ox-i18n>
|
|
468
469
|
</label>
|
|
469
470
|
<paper-dropdown-menu no-label-float="true" class="property-full-input arrow-type begin-no">
|
|
470
471
|
<!-- begin-no는 선택된 항목 보여주기위한 class로 하위 paper-item의 class와 동일하게 -->
|
|
@@ -485,7 +486,7 @@ class PropertyStyles extends AbstractProperty {
|
|
|
485
486
|
</paper-dropdown-menu>
|
|
486
487
|
|
|
487
488
|
<label class="property-full-label">
|
|
488
|
-
<i18n
|
|
489
|
+
<ox-i18n msgid="label.begin-size">begin size</ox-i18n>
|
|
489
490
|
</label>
|
|
490
491
|
<paper-dropdown-menu no-label-float="true" class="property-full-input arrow-type begin-size1">
|
|
491
492
|
<!-- begin-size1는 선택된 항목 보여주기위한 class로 하위 paper-item의 class와 동일하게 -->
|
|
@@ -509,7 +510,7 @@ class PropertyStyles extends AbstractProperty {
|
|
|
509
510
|
</paper-dropdown-menu>
|
|
510
511
|
|
|
511
512
|
<label class="property-full-label">
|
|
512
|
-
<i18n
|
|
513
|
+
<ox-i18n msgid="label.end-type">end type</ox-i18n>
|
|
513
514
|
</label>
|
|
514
515
|
<paper-dropdown-menu no-label-float="true" class="property-full-input arrow-type end-no">
|
|
515
516
|
<!-- end-no는 선택된 항목 보여주기위한 class로 하위 paper-item의 class와 동일하게 -->
|
|
@@ -530,7 +531,7 @@ class PropertyStyles extends AbstractProperty {
|
|
|
530
531
|
</paper-dropdown-menu>
|
|
531
532
|
|
|
532
533
|
<label class="property-full-label">
|
|
533
|
-
<i18n
|
|
534
|
+
<ox-i18n msgid="label.end-size">end size</ox-i18n>
|
|
534
535
|
</label>
|
|
535
536
|
<paper-dropdown-menu no-label-float="true" class="property-full-input arrow-type end-size1">
|
|
536
537
|
<!-- end-size1는 선택된 항목 보여주기위한 class로 하위 paper-item의 class와 동일하게 -->
|