@operato/board 0.2.47 → 0.2.48
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 +19 -0
- package/custom-elements.json +1554 -1494
- package/dist/src/modeller/component-toolbar/component-detail.d.ts +4 -0
- package/dist/src/modeller/component-toolbar/component-detail.js +56 -0
- package/dist/src/modeller/component-toolbar/component-detail.js.map +1 -0
- package/dist/src/modeller/component-toolbar/component-menu.d.ts +1 -1
- package/dist/src/modeller/component-toolbar/component-menu.js +57 -11
- package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
- package/dist/src/modeller/component-toolbar/component-toolbar.js +21 -27
- package/dist/src/modeller/component-toolbar/component-toolbar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js +6 -5
- 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 +2 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.js +3 -2
- 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 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +3 -2
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
- package/dist/src/modeller/property-sidebar/inspector/inspector.d.ts +1 -1
- package/dist/src/ox-board-modeller.d.ts +1 -1
- package/dist/src/ox-board-modeller.js +4 -3
- package/dist/src/ox-board-modeller.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/modeller/component-toolbar/component-detail.ts +53 -0
- package/src/modeller/component-toolbar/component-menu.ts +60 -12
- package/src/modeller/component-toolbar/component-toolbar.ts +23 -31
- package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +7 -7
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +4 -4
- package/src/modeller/property-sidebar/effects/property-event-hover.ts +4 -3
- package/src/modeller/property-sidebar/effects/property-event-tap.ts +4 -3
- package/src/ox-board-modeller.ts +9 -8
- package/yarn-error.log +18355 -0
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { customElement, property } from 'lit/decorators'
|
|
5
|
+
import '@operato/input/dist/src/ox-input-data'
|
|
7
6
|
|
|
7
|
+
import { LitElement, html } from 'lit'
|
|
8
8
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
9
|
+
import { customElement, property } from 'lit/decorators'
|
|
9
10
|
|
|
10
11
|
import { EffectsSharedStyle } from './effects-shared-style'
|
|
11
12
|
import { convert } from './value-converter'
|
|
@@ -66,7 +67,7 @@ class PropertyEventHover extends LitElement {
|
|
|
66
67
|
${action == 'data-set' || action == 'value-set'
|
|
67
68
|
? html`
|
|
68
69
|
<label> <i18n-msg msgid="label.value">value</i18n-msg> </label>
|
|
69
|
-
<
|
|
70
|
+
<ox-input-data value-key="value" .value=${value} custom-editor fullwidth></ox-input-data>
|
|
70
71
|
`
|
|
71
72
|
: html``}
|
|
72
73
|
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { customElement, property } from 'lit/decorators'
|
|
5
|
+
import '@operato/input/dist/src/ox-input-data'
|
|
7
6
|
|
|
7
|
+
import { LitElement, html } from 'lit'
|
|
8
8
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
9
|
+
import { customElement, property } from 'lit/decorators'
|
|
9
10
|
|
|
10
11
|
import { EffectsSharedStyle } from './effects-shared-style'
|
|
11
12
|
import { convert } from './value-converter'
|
|
@@ -66,7 +67,7 @@ class PropertyEventTap extends LitElement {
|
|
|
66
67
|
${action == 'data-set' || action == 'value-set'
|
|
67
68
|
? html`
|
|
68
69
|
<label> <i18n-msg msgid="label.value">value</i18n-msg> </label>
|
|
69
|
-
<
|
|
70
|
+
<ox-input-data value-key="value" .value=${value} custom-editor fullwidth></ox-input-data>
|
|
70
71
|
`
|
|
71
72
|
: html``}
|
|
72
73
|
`
|
package/src/ox-board-modeller.ts
CHANGED
|
@@ -6,13 +6,14 @@ import './modeller/edit-toolbar'
|
|
|
6
6
|
import '@hatiolab/things-scene'
|
|
7
7
|
import './ox-board-viewer'
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { customElement, property, query
|
|
9
|
+
import { saveAs } from 'file-saver'
|
|
10
|
+
import { css, html, LitElement } from 'lit'
|
|
11
|
+
import { customElement, property, query } from 'lit/decorators.js'
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { Scene, SCENE_MODE } from '@hatiolab/things-scene'
|
|
14
14
|
import { OxPopup } from '@operato/popup'
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
import { EditToolbar } from './modeller/edit-toolbar'
|
|
16
17
|
import { togglefullscreen } from './utils/fullscreen'
|
|
17
18
|
|
|
18
19
|
const isMacOS = navigator.userAgent.indexOf('Mac') != -1
|
|
@@ -47,6 +48,7 @@ export class BoardModeller extends LitElement {
|
|
|
47
48
|
|
|
48
49
|
property-sidebar {
|
|
49
50
|
grid-area: propertybar;
|
|
51
|
+
overflow: hidden;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
#scene-wrap {
|
|
@@ -105,9 +107,9 @@ export class BoardModeller extends LitElement {
|
|
|
105
107
|
@property({ type: Array }) propertyEditor: any[] = []
|
|
106
108
|
|
|
107
109
|
@query('edit-toolbar') private editToolbar!: EditToolbar
|
|
108
|
-
|
|
110
|
+
|
|
109
111
|
private group: string = ''
|
|
110
|
-
private shortcutHandler
|
|
112
|
+
private shortcutHandler?: (e: KeyboardEvent) => void
|
|
111
113
|
|
|
112
114
|
constructor() {
|
|
113
115
|
super()
|
|
@@ -274,7 +276,6 @@ export class BoardModeller extends LitElement {
|
|
|
274
276
|
}
|
|
275
277
|
|
|
276
278
|
bindShortcutEvent() {
|
|
277
|
-
|
|
278
279
|
// TODO: Global Hotkey에 대한 정의를 edit-toolbar에서 가져올 수 있도록 수정해야 함.
|
|
279
280
|
const GLOBAL_HOTKEYS = ['Digit1', 'Digit2', 'F11', 'KeyD', 'KeyP', 'KeyS']
|
|
280
281
|
|