@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.
Files changed (52) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/custom-elements.json +947 -947
  3. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +1 -0
  4. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js +9 -8
  5. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js.map +1 -1
  6. package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -1
  7. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +12 -9
  8. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
  9. package/dist/src/modeller/property-sidebar/effects/effects.d.ts +2 -0
  10. package/dist/src/modeller/property-sidebar/effects/effects.js +8 -4
  11. package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
  12. package/dist/src/modeller/property-sidebar/effects/property-animation.d.ts +1 -0
  13. package/dist/src/modeller/property-sidebar/effects/property-animation.js +11 -10
  14. package/dist/src/modeller/property-sidebar/effects/property-animation.js.map +1 -1
  15. package/dist/src/modeller/property-sidebar/effects/property-animations.d.ts +1 -0
  16. package/dist/src/modeller/property-sidebar/effects/property-animations.js +5 -2
  17. package/dist/src/modeller/property-sidebar/effects/property-animations.js.map +1 -1
  18. package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -0
  19. package/dist/src/modeller/property-sidebar/effects/property-event-hover.js +6 -5
  20. package/dist/src/modeller/property-sidebar/effects/property-event-hover.js.map +1 -1
  21. package/dist/src/modeller/property-sidebar/effects/property-event-tap.d.ts +1 -0
  22. package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +5 -4
  23. package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
  24. package/dist/src/modeller/property-sidebar/effects/property-event.d.ts +1 -0
  25. package/dist/src/modeller/property-sidebar/effects/property-event.js +4 -3
  26. package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
  27. package/dist/src/modeller/property-sidebar/effects/property-shadow.d.ts +1 -0
  28. package/dist/src/modeller/property-sidebar/effects/property-shadow.js +4 -3
  29. package/dist/src/modeller/property-sidebar/effects/property-shadow.js.map +1 -1
  30. package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +2 -0
  31. package/dist/src/modeller/property-sidebar/shapes/shapes.js +30 -28
  32. package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
  33. package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +1 -1
  34. package/dist/src/modeller/property-sidebar/specifics/specifics.js +3 -3
  35. package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
  36. package/dist/src/modeller/property-sidebar/styles/styles.d.ts +2 -1
  37. package/dist/src/modeller/property-sidebar/styles/styles.js +21 -20
  38. package/dist/src/modeller/property-sidebar/styles/styles.js.map +1 -1
  39. package/dist/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +14 -14
  41. package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +9 -8
  42. package/src/modeller/property-sidebar/data-binding/data-binding.ts +12 -9
  43. package/src/modeller/property-sidebar/effects/effects.ts +10 -5
  44. package/src/modeller/property-sidebar/effects/property-animation.ts +11 -10
  45. package/src/modeller/property-sidebar/effects/property-animations.ts +7 -3
  46. package/src/modeller/property-sidebar/effects/property-event-hover.ts +6 -5
  47. package/src/modeller/property-sidebar/effects/property-event-tap.ts +5 -4
  48. package/src/modeller/property-sidebar/effects/property-event.ts +6 -4
  49. package/src/modeller/property-sidebar/effects/property-shadow.ts +4 -3
  50. package/src/modeller/property-sidebar/shapes/shapes.ts +30 -28
  51. package/src/modeller/property-sidebar/specifics/specifics.ts +5 -4
  52. package/src/modeller/property-sidebar/styles/styles.ts +21 -20
@@ -5,6 +5,8 @@
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'
9
+ import '@operato/help/ox-title-with-help.js'
8
10
 
9
11
  import { css, html } from 'lit'
10
12
  import { customElement, property, state } from 'lit/decorators.js'
@@ -149,21 +151,21 @@ class PropertyShapes extends AbstractProperty {
149
151
  <div class="property-grid">
150
152
  ${this._isIdentifiable(this.selected)
151
153
  ? html`
152
- <label> <i18n-msg msgid="label.id">ID</i18n-msg> </label>
154
+ <label> <ox-i18n msgid="label.id">ID</ox-i18n> </label>
153
155
  <input value-key="id" .value=${value.id || ''} />
154
156
  `
155
157
  : html``}
156
158
  ${this._isClassIdentifiable(this.selected)
157
159
  ? html`
158
- <label> <i18n-msg msgid="label.class">Class</i18n-msg> </label>
160
+ <label> <ox-i18n msgid="label.class">Class</ox-i18n> </label>
159
161
  <input value-key="class" .value=${value.class || ''} />
160
162
  `
161
163
  : html``}
162
164
  ${this._hasTextProperty(this.selected)
163
165
  ? html`
164
- <label> <i18n-msg msgid="label.text">Text</i18n-msg> </label>
166
+ <label> <ox-i18n msgid="label.text">Text</ox-i18n> </label>
165
167
  <input value-key="text" .value=${value.text || ''} />
166
- <label> <i18n-msg msgid="label.text-format">Text Format</i18n-msg> </label>
168
+ <label> <ox-i18n msgid="label.text-format">Text Format</ox-i18n> </label>
167
169
  <input value-key="textFormat" .value=${value.textFormat || ''} list="format-list" />
168
170
  <datalist id="format-list">
169
171
  <option value="#,###."></option>
@@ -179,10 +181,10 @@ class PropertyShapes extends AbstractProperty {
179
181
  ? html`
180
182
  <div class="checkbox-row">
181
183
  <input id="checkbox-hidden" value-key="hidden" type="checkbox" .checked=${value.hidden} />
182
- <label for="checkbox-hidden"> <i18n-msg msgid="label.item-hidden">Item Hidden</i18n-msg> </label>
184
+ <label for="checkbox-hidden"> <ox-i18n msgid="label.item-hidden">Item Hidden</ox-i18n> </label>
183
185
 
184
186
  <input id="checkbox-locked" value-key="locked" type="checkbox" .checked=${value.locked} />
185
- <label for="checkbox-locked"> <i18n-msg msgid="label.locked">Locked</i18n-msg> </label>
187
+ <label for="checkbox-locked"> <ox-i18n msgid="label.locked">Locked</ox-i18n> </label>
186
188
  </div>
187
189
  `
188
190
  : html``}
@@ -193,19 +195,19 @@ class PropertyShapes extends AbstractProperty {
193
195
  ? html`
194
196
  <fieldset class="icon-label unit ratio">
195
197
  <legend>
196
- <title-with-help topic="board-modeller/shapes/size" msgid="label.size">size</title-with-help>
198
+ <ox-title-with-help topic="board-modeller/shapes/size" msgid="label.size">size</ox-title-with-help>
197
199
  </legend>
198
200
 
199
201
  <div class="property-grid">
200
- <label class="width"> <i18n-msg msgid="label.width">width</i18n-msg> </label>
202
+ <label class="width"> <ox-i18n msgid="label.width">width</ox-i18n> </label>
201
203
  <input type="number" value-key="bounds.width" .value=${this.bounds?.width} />
202
- <label class="height"> <i18n-msg msgid="label.height">height</i18n-msg> </label>
204
+ <label class="height"> <ox-i18n msgid="label.height">height</ox-i18n> </label>
203
205
  <input type="number" value-key="bounds.height" .value=${this.bounds?.height} />
204
206
 
205
207
  ${this.selected.length && this.selected[0].isRootModel()
206
208
  ? html``
207
209
  : html`
208
- <label class="rotate"> <i18n-msg msgid="label.rotate">rotate</i18n-msg> </label>
210
+ <label class="rotate"> <ox-i18n msgid="label.rotate">rotate</ox-i18n> </label>
209
211
  <ox-input-angle value-key="rotation" .radian=${value.rotation}> </ox-input-angle>
210
212
  `}
211
213
  </div>
@@ -216,7 +218,7 @@ class PropertyShapes extends AbstractProperty {
216
218
  ? html`
217
219
  <fieldset class="icon-label unit ratio" collapsable ?collapsed=${!this._3dExpanded}>
218
220
  <legend>
219
- <title-with-help topic="board-modeller/shapes/3dish" msgid="label.3dish">3D</title-with-help>
221
+ <ox-title-with-help topic="board-modeller/shapes/3dish" msgid="label.3dish">3D</ox-title-with-help>
220
222
  <mwc-icon
221
223
  @click=${(e: Event) => {
222
224
  this._3dExpanded = !this._3dExpanded
@@ -226,18 +228,18 @@ class PropertyShapes extends AbstractProperty {
226
228
  </legend>
227
229
 
228
230
  <div class="property-grid">
229
- <label class="zPos"> <i18n-msg msgid="label.z-pos">pos. Z</i18n-msg> </label>
231
+ <label class="zPos"> <ox-i18n msgid="label.z-pos">pos. Z</ox-i18n> </label>
230
232
  <input type="number" value-key="zPos" .value=${value.zPos} />
231
- <label class="depth"> <i18n-msg msgid="label.depth">depth</i18n-msg> </label>
233
+ <label class="depth"> <ox-i18n msgid="label.depth">depth</ox-i18n> </label>
232
234
  <input type="number" value-key="depth" .value=${value.depth} />
233
235
 
234
- <label class="rotationX"> <i18n-msg msgid="label.rotation-x">rot. X</i18n-msg> </label>
236
+ <label class="rotationX"> <ox-i18n msgid="label.rotation-x">rot. X</ox-i18n> </label>
235
237
  <ox-input-angle value-key="rotationX" .radian=${value.rotationX}> </ox-input-angle>
236
238
 
237
- <label class="rotationY"> <i18n-msg msgid="label.rotation-y">rot. Y</i18n-msg> </label>
239
+ <label class="rotationY"> <ox-i18n msgid="label.rotation-y">rot. Y</ox-i18n> </label>
238
240
  <ox-input-angle value-key="rotationY" .radian=${value.rotationY}> </ox-input-angle>
239
241
 
240
- <label class="rotationZ"> <i18n-msg msgid="label.rotation-z">rot. Z</i18n-msg> </label>
242
+ <label class="rotationZ"> <ox-i18n msgid="label.rotation-z">rot. Z</ox-i18n> </label>
241
243
  <ox-input-angle value-key="rotation" .radian=${value.rotation}> </ox-input-angle>
242
244
  </div>
243
245
  </fieldset>
@@ -247,13 +249,13 @@ class PropertyShapes extends AbstractProperty {
247
249
  ? html`
248
250
  <fieldset>
249
251
  <legend>
250
- <title-with-help topic="board-modeller/shapes/text-box" msgid="label.text-box"
251
- >text box</title-with-help
252
+ <ox-title-with-help topic="board-modeller/shapes/text-box" msgid="label.text-box"
253
+ >text box</ox-title-with-help
252
254
  >
253
255
  </legend>
254
256
 
255
257
  <div class="property-grid">
256
- <label> <i18n-msg msgid="label.horizontal">horizontal</i18n-msg> </label>
258
+ <label> <ox-i18n msgid="label.horizontal">horizontal</ox-i18n> </label>
257
259
  <ox-buttons-radio value-key="textAlign" .value=${value.textAlign}>
258
260
  <div data-value="left"></div>
259
261
  <div data-value="center"></div>
@@ -261,7 +263,7 @@ class PropertyShapes extends AbstractProperty {
261
263
  <div data-value="justify"></div>
262
264
  </ox-buttons-radio>
263
265
 
264
- <label> <i18n-msg msgid="label.vertical">vertical</i18n-msg> </label>
266
+ <label> <ox-i18n msgid="label.vertical">vertical</ox-i18n> </label>
265
267
  <ox-buttons-radio value-key="textBaseline" .value=${value.textBaseline}>
266
268
  <div data-value="top"></div>
267
269
  <div data-value="middle"></div>
@@ -270,10 +272,10 @@ class PropertyShapes extends AbstractProperty {
270
272
 
271
273
  <div class="checkbox-row">
272
274
  <input id="checkbox-textwrap" type="checkbox" value-key="textWrap" .checked=${value.textWrap} />
273
- <label for="checkbox-textwrap"> <i18n-msg msgid="label.text-wrap">Text Wrap</i18n-msg> </label>
275
+ <label for="checkbox-textwrap"> <ox-i18n msgid="label.text-wrap">Text Wrap</ox-i18n> </label>
274
276
  </div>
275
277
 
276
- <label> <i18n-msg msgid="label.padding">padding</i18n-msg> </label>
278
+ <label> <ox-i18n msgid="label.padding">padding</ox-i18n> </label>
277
279
  <table class="box-padding">
278
280
  <tr>
279
281
  <td class="slide1"></td>
@@ -304,13 +306,13 @@ class PropertyShapes extends AbstractProperty {
304
306
  ? html`
305
307
  <fieldset class="icon-label">
306
308
  <legend>
307
- <title-with-help topic="board-modeller/shapes/viewer-option" msgid="label.viewer-option"
308
- >Viewer Option</title-with-help
309
+ <ox-title-with-help topic="board-modeller/shapes/viewer-option" msgid="label.viewer-option"
310
+ >Viewer Option</ox-title-with-help
309
311
  >
310
312
  </legend>
311
313
 
312
314
  <div class="property-grid">
313
- <label><i18n-msg msgid="label.fit">Fit</i18n-msg></label>
315
+ <label><ox-i18n msgid="label.fit">Fit</ox-i18n></label>
314
316
  <select value-key="fitMode" .value=${value.fitMode || 'ratio'}>
315
317
  <option value="none">none</option>
316
318
  <option value="ratio" selected>ratio</option>
@@ -322,13 +324,13 @@ class PropertyShapes extends AbstractProperty {
322
324
  </fieldset>
323
325
  <fieldset class="icon-label">
324
326
  <legend>
325
- <title-with-help topic="board-modeller/shapes/print-option" msgid="label.label-print"
326
- >Print Option</title-with-help
327
+ <ox-title-with-help topic="board-modeller/shapes/print-option" msgid="label.label-print"
328
+ >Print Option</ox-title-with-help
327
329
  >
328
330
  </legend>
329
331
 
330
332
  <div class="property-grid">
331
- <label class="rotate"><i18n-msg msgid="label.label-rotation">Label Rotation</i18n-msg></label>
333
+ <label class="rotate"><ox-i18n msgid="label.label-rotation">Label Rotation</ox-i18n></label>
332
334
  <select value-key="labelRotation" .value=${value.labelRotation || 'N'}>
333
335
  <option value="N" selected>0°</option>
334
336
  <option value="B">90°</option>
@@ -2,13 +2,14 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@things-factory/help'
5
+ import '@operato/help/ox-help-icon.js'
6
6
  import './specific-properties-builder'
7
7
 
8
- import { Component, Scene } from '@hatiolab/things-scene'
9
- import { LitElement, css, html } from 'lit'
8
+ import { css, html, LitElement } from 'lit'
10
9
  import { customElement, property } from 'lit/decorators.js'
11
10
 
11
+ import { Component, Scene } from '@hatiolab/things-scene'
12
+
12
13
  import { PropertySharedStyle } from '../property-shared-style'
13
14
 
14
15
  @customElement('property-specific')
@@ -53,7 +54,7 @@ class PropertySpecific extends LitElement {
53
54
  const value = this.value || {}
54
55
 
55
56
  return html`
56
- <label>${value.type}<help-icon .topic=${selected?.nature?.help}></help-icon></label>
57
+ <label>${value.type}<ox-help-icon .topic=${selected?.nature?.help}></ox-help-icon></label>
57
58
 
58
59
  <specific-properties-builder .value=${value} .props=${this.props} .propertyEditor=${this.propertyEditor}>
59
60
  </specific-properties-builder>
@@ -3,10 +3,11 @@
3
3
  */
4
4
 
5
5
  import '@polymer/paper-dropdown-menu/paper-dropdown-menu'
6
- import '@things-factory/help'
6
+ import '@operato/help/ox-title-with-help.js'
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'
@@ -356,21 +357,21 @@ class PropertyStyles extends AbstractProperty {
356
357
  return html`
357
358
  <fieldset>
358
359
  <legend>
359
- <title-with-help topic="board-modeller/styles/opacity" msgid="label.opacity">opacity</title-with-help>
360
+ <ox-title-with-help topic="board-modeller/styles/opacity" msgid="label.opacity">opacity</ox-title-with-help>
360
361
  </legend>
361
362
  <paper-slider min="0" max="1" step="0.1" value-key="alpha" .value=${alpha || 1} editable> </paper-slider>
362
363
  </fieldset>
363
364
 
364
365
  <fieldset>
365
366
  <legend>
366
- <title-with-help topic="board-modeller/styles/text-style" msgid="label.text-style"
367
- >text style</title-with-help
367
+ <ox-title-with-help topic="board-modeller/styles/text-style" msgid="label.text-style"
368
+ >text style</ox-title-with-help
368
369
  >
369
370
  </legend>
370
371
 
371
372
  <div class="property-grid">
372
373
  <label class="property-full-label">
373
- <i18n-msg msgid="label.font-family">Font Family</i18n-msg>
374
+ <ox-i18n msgid="label.font-family">Font Family</ox-i18n>
374
375
  </label>
375
376
 
376
377
  <things-editor-font-selector
@@ -400,8 +401,8 @@ class PropertyStyles extends AbstractProperty {
400
401
 
401
402
  <fieldset>
402
403
  <legend>
403
- <title-with-help topic="board-modeller/styles/fill-style" msgid="label.fill-style"
404
- >fill style</title-with-help
404
+ <ox-title-with-help topic="board-modeller/styles/fill-style" msgid="label.fill-style"
405
+ >fill style</ox-title-with-help
405
406
  >
406
407
  </legend>
407
408
 
@@ -410,7 +411,7 @@ class PropertyStyles extends AbstractProperty {
410
411
 
411
412
  <fieldset>
412
413
  <legend>
413
- <title-with-help msgid="label.line-style" topic="board-modeller/styles/line-style"></title-with-help>
414
+ <ox-title-with-help msgid="label.line-style" topic="board-modeller/styles/line-style"></ox-title-with-help>
414
415
  </legend>
415
416
 
416
417
  <div class="property-grid">
@@ -422,7 +423,7 @@ class PropertyStyles extends AbstractProperty {
422
423
  </things-editor-color>
423
424
 
424
425
  <label class="property-full-label">
425
- <i18n-msg msgid="label.line-type">line type</i18n-msg>
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-msg msgid="label.cap-type">cap type</i18n-msg>
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-msg msgid="label.square">square</i18n-msg></option>
452
- <option value="round"><i18n-msg msgid="label.round">round</i18n-msg></option>
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-msg msgid="label.join-type">join type</i18n-msg>
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-msg msgid="label.miter">miter</i18n-msg></option>
460
- <option value="round"><i18n-msg msgid="label.round">round</i18n-msg></option>
461
- <option value="bevel"><i18n-msg msgid="label.bevel">bevel</i18n-msg></option>
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-msg msgid="label.begin-type">begin type</i18n-msg>
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-msg msgid="label.begin-size">begin size</i18n-msg>
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-msg msgid="label.end-type">end type</i18n-msg>
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-msg msgid="label.end-size">end size</i18n-msg>
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와 동일하게 -->