@operato/board 1.0.0-alpha.2 → 1.0.0-alpha.20

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 (31) hide show
  1. package/CHANGELOG.md +151 -0
  2. package/dist/src/modeller/property-sidebar/abstract-property.js +0 -3
  3. package/dist/src/modeller/property-sidebar/abstract-property.js.map +1 -1
  4. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +2 -2
  5. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js +7 -7
  6. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js.map +1 -1
  7. package/dist/src/modeller/property-sidebar/effects/effects-shared-style.js +2 -2
  8. package/dist/src/modeller/property-sidebar/effects/effects-shared-style.js.map +1 -1
  9. package/dist/src/modeller/property-sidebar/effects/property-shadow.d.ts +1 -1
  10. package/dist/src/modeller/property-sidebar/effects/property-shadow.js +4 -4
  11. package/dist/src/modeller/property-sidebar/effects/property-shadow.js.map +1 -1
  12. package/dist/src/modeller/property-sidebar/effects/value-converter.js +0 -2
  13. package/dist/src/modeller/property-sidebar/effects/value-converter.js.map +1 -1
  14. package/dist/src/modeller/property-sidebar/property-shared-style.js +1 -1
  15. package/dist/src/modeller/property-sidebar/property-shared-style.js.map +1 -1
  16. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.d.ts +1 -1
  17. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js +2 -2
  18. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js.map +1 -1
  19. package/dist/src/modeller/property-sidebar/styles/styles.d.ts +3 -3
  20. package/dist/src/modeller/property-sidebar/styles/styles.js +8 -10
  21. package/dist/src/modeller/property-sidebar/styles/styles.js.map +1 -1
  22. package/dist/tsconfig.tsbuildinfo +1 -1
  23. package/package.json +13 -12
  24. package/src/modeller/property-sidebar/abstract-property.ts +0 -4
  25. package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +8 -9
  26. package/src/modeller/property-sidebar/effects/effects-shared-style.ts +2 -2
  27. package/src/modeller/property-sidebar/effects/property-shadow.ts +4 -5
  28. package/src/modeller/property-sidebar/effects/value-converter.ts +0 -3
  29. package/src/modeller/property-sidebar/property-shared-style.ts +1 -1
  30. package/src/modeller/property-sidebar/specifics/specific-properties-builder.ts +3 -3
  31. package/src/modeller/property-sidebar/styles/styles.ts +9 -12
@@ -26,10 +26,6 @@ export class AbstractProperty extends LitElement {
26
26
  var value
27
27
 
28
28
  switch (element.tagName) {
29
- case 'THINGS-EDITOR-ANGLE-INPUT':
30
- value = Number((element as any).radian) || 0
31
- break
32
-
33
29
  case 'INPUT':
34
30
  switch ((element as any).type) {
35
31
  case 'checkbox':
@@ -2,16 +2,15 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@things-factory/modeller-ui/client/editors/things-editor-value-map'
6
- import '@things-factory/modeller-ui/client/editors/things-editor-value-range'
5
+ import '@operato/input/ox-input-value-map.js'
6
+ import '@operato/input/ox-input-value-ranges.js'
7
7
  import '@operato/input/ox-buttons-radio.js'
8
8
  import '@operato/input/ox-input-code.js'
9
9
  import '@operato/i18n/ox-i18n.js'
10
10
 
11
- import { css, html, LitElement, PropertyValues } from 'lit'
12
- import { customElement, property, query, state } from 'lit/decorators.js'
13
-
11
+ import { LitElement, PropertyValues, css, html } from 'lit'
14
12
  import { Properties, Scene } from '@hatiolab/things-scene'
13
+ import { customElement, property, query, state } from 'lit/decorators.js'
15
14
 
16
15
  export type Rule =
17
16
  | {
@@ -220,21 +219,21 @@ export default class DataBindingMapper extends LitElement {
220
219
  </ox-buttons-radio>
221
220
 
222
221
  <div rule-editors class="content" ?hidden=${mapping.rule == 'value'}>
223
- <things-editor-value-map
222
+ <ox-input-value-map
224
223
  value-key="map"
225
224
  .value=${this.rule.map || {}}
226
225
  .valuetype=${this._valuetype(mapping.property!)}
227
226
  ?active=${mapping.rule == 'map'}
228
227
  >
229
- </things-editor-value-map>
228
+ </ox-input-value-map>
230
229
 
231
- <things-editor-value-range
230
+ <ox-input-value-ranges
232
231
  value-key="range"
233
232
  .value=${this.rule.range || []}
234
233
  .valuetype=${this._valuetype(mapping.property!)}
235
234
  ?active=${mapping.rule == 'range'}
236
235
  >
237
- </things-editor-value-range>
236
+ </ox-input-value-ranges>
238
237
 
239
238
  <ox-input-code
240
239
  value-key="eval"
@@ -29,7 +29,7 @@ export const EffectsSharedStyle = css`
29
29
  input,
30
30
  select,
31
31
  ox-input-angle,
32
- things-editor-color,
32
+ ox-input-color,
33
33
  [custom-editor] {
34
34
  grid-column: span 7;
35
35
  }
@@ -37,7 +37,7 @@ export const EffectsSharedStyle = css`
37
37
  input,
38
38
  select,
39
39
  ox-input-angle input,
40
- things-editor-color input,
40
+ ox-input-color input,
41
41
  [custom-editor] input {
42
42
  border: var(--property-sidebar-fieldset-border);
43
43
  }
@@ -2,14 +2,13 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@things-factory/modeller-ui/client/editors/things-editor-color'
6
5
  import '@operato/i18n/ox-i18n.js'
6
+ import '@operato/input/ox-input-color.js'
7
7
 
8
- import { css, html, LitElement } from 'lit'
8
+ import { LitElement, css, html } from 'lit'
9
9
  import { customElement, property } from 'lit/decorators.js'
10
10
 
11
11
  import { Properties } from '@hatiolab/things-scene'
12
-
13
12
  import { convert } from './value-converter'
14
13
 
15
14
  /**
@@ -48,7 +47,7 @@ export default class PropertyShadow extends LitElement {
48
47
  }
49
48
 
50
49
  input[type='number'],
51
- things-editor-color {
50
+ ox-input-color {
52
51
  grid-column: span 7;
53
52
  }
54
53
  input[type='number'] {
@@ -93,7 +92,7 @@ export default class PropertyShadow extends LitElement {
93
92
 
94
93
  <label class="icon-only-label color"></label>
95
94
 
96
- <things-editor-color value-key="color" .value=${value.color}> </things-editor-color>
95
+ <ox-input-color value-key="color" .value=${value.color}> </ox-input-color>
97
96
  `
98
97
  }
99
98
 
@@ -1,8 +1,5 @@
1
1
  export function convert(element: any) {
2
2
  switch (element.tagName) {
3
- case 'THINGS-EDITOR-ANGLE-INPUT':
4
- return Number(element.radian) || 0
5
-
6
3
  case 'INPUT':
7
4
  switch (element.type) {
8
5
  case 'checkbox':
@@ -52,7 +52,7 @@ export const PropertySharedStyle = css`
52
52
  .property-grid > select,
53
53
  .property-grid > ox-input-angle,
54
54
  .property-grid > ox-buttons-radio,
55
- .property-grid > things-editor-color,
55
+ .property-grid > ox-input-color,
56
56
  [custom-editor] {
57
57
  grid-column: span 7;
58
58
  align-self: stretch;
@@ -2,13 +2,13 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@things-factory/modeller-ui/client/editors/things-editor-property'
5
+ import '@operato/app/property-editor.js' /* for registering property editors */
6
6
 
7
- import { html, LitElement, PropertyValues } from 'lit'
7
+ import { LitElement, PropertyValues, html } from 'lit'
8
8
  import { customElement, property } from 'lit/decorators.js'
9
9
 
10
- import { Properties } from '@hatiolab/things-scene'
11
10
  import { OxPropertyEditor } from '@operato/property-editor'
11
+ import { Properties } from '@hatiolab/things-scene'
12
12
 
13
13
  /**
14
14
  모든 에디터들은 change 이벤트를 지원해야 한다. 또한, 모든 에디터들은 value속성에 값을 가져야 한다.
@@ -4,17 +4,16 @@
4
4
 
5
5
  import '@polymer/paper-dropdown-menu/paper-dropdown-menu'
6
6
  import '@operato/help/ox-title-with-help.js'
7
- import '@things-factory/modeller-ui/client/editors/things-editor-color'
8
- import '@things-factory/modeller-ui/client/editors/things-editor-color-style'
9
- import '@things-factory/modeller-ui/client/editors/things-editor-font-selector'
7
+ import '@operato/input/ox-input-color.js'
8
+ import '@operato/app/input/ox-input-fill-style.js'
9
+ import '@operato/font/ox-font-selector.js'
10
10
  import '@operato/i18n/ox-i18n.js'
11
11
 
12
12
  import { css, html } from 'lit'
13
13
  import { customElement, property } from 'lit/decorators.js'
14
14
 
15
- import { Component } from '@hatiolab/things-scene'
16
-
17
15
  import { AbstractProperty } from '../abstract-property'
16
+ import { Component } from '@hatiolab/things-scene'
18
17
  import { PropertySharedStyle } from '../property-shared-style'
19
18
 
20
19
  @customElement('property-style')
@@ -374,12 +373,12 @@ class PropertyStyles extends AbstractProperty {
374
373
  <ox-i18n msgid="label.font-family">Font Family</ox-i18n>
375
374
  </label>
376
375
 
377
- <things-editor-font-selector
376
+ <ox-font-selector
378
377
  value-key="fontFamily"
379
378
  .value=${fontFamily}
380
379
  class="property-full-input"
381
380
  custom-editor
382
- ></things-editor-font-selector>
381
+ ></ox-font-selector>
383
382
 
384
383
  <label class="property-half-label icon-only-label font-size"></label>
385
384
  <input type="number" value-key="fontSize" .value=${fontSize} class="property-half-input" />
@@ -388,8 +387,7 @@ class PropertyStyles extends AbstractProperty {
388
387
  <input type="number" value-key="lineHeight" .value=${lineHeight} class="property-half-input" />
389
388
 
390
389
  <label class="property-half-label icon-only-label color"></label>
391
- <things-editor-color value-key="fontColor" .value=${fontColor} class="property-half-input">
392
- </things-editor-color>
390
+ <ox-input-color value-key="fontColor" .value=${fontColor} class="property-half-input"> </ox-input-color>
393
391
 
394
392
  <label class="property-half-label"></label>
395
393
  <div class="property-half-input btn-group">
@@ -406,7 +404,7 @@ class PropertyStyles extends AbstractProperty {
406
404
  >
407
405
  </legend>
408
406
 
409
- <things-editor-color-style value-key="fillStyle" .value=${fillStyle}> </things-editor-color-style>
407
+ <ox-input-fill-style value-key="fillStyle" .value=${fillStyle}> </ox-input-fill-style>
410
408
  </fieldset>
411
409
 
412
410
  <fieldset>
@@ -419,8 +417,7 @@ class PropertyStyles extends AbstractProperty {
419
417
  <input type="number" value-key="lineWidth" .value=${lineWidth} class="property-half-input" />
420
418
 
421
419
  <label class="property-half-label icon-only-label color"></label>
422
- <things-editor-color value-key="strokeStyle" .value=${strokeStyle} class="property-half-input">
423
- </things-editor-color>
420
+ <ox-input-color value-key="strokeStyle" .value=${strokeStyle} class="property-half-input"> </ox-input-color>
424
421
 
425
422
  <label class="property-full-label">
426
423
  <ox-i18n msgid="label.line-type">line type</ox-i18n>