@operato/board 0.2.49 → 0.3.1

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 (172) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/assets/images/components/audio.png +0 -0
  3. package/assets/images/components/both-arrow.png +0 -0
  4. package/assets/images/components/color-image.png +0 -0
  5. package/assets/images/components/container.png +0 -0
  6. package/assets/images/components/dash.png +0 -0
  7. package/assets/images/components/donut.png +0 -0
  8. package/assets/images/components/ellipse.png +0 -0
  9. package/assets/images/components/forklift.png +0 -0
  10. package/assets/images/components/gif-image.png +0 -0
  11. package/assets/images/components/global-reference.png +0 -0
  12. package/assets/images/components/gray-image.png +0 -0
  13. package/assets/images/components/humidity-sensor.png +0 -0
  14. package/assets/images/components/info-window.png +0 -0
  15. package/assets/images/components/line.png +0 -0
  16. package/assets/images/components/local-reference.png +0 -0
  17. package/assets/images/components/person.png +0 -0
  18. package/assets/images/components/polygon.png +0 -0
  19. package/assets/images/components/polyline.png +0 -0
  20. package/assets/images/components/popup.png +0 -0
  21. package/assets/images/components/rect.png +0 -0
  22. package/assets/images/components/single-arrow.png +0 -0
  23. package/assets/images/components/star.png +0 -0
  24. package/assets/images/components/text.png +0 -0
  25. package/assets/images/components/triangle.png +0 -0
  26. package/assets/images/icon-vtoolbar.png +0 -0
  27. package/custom-elements.json +2665 -1411
  28. package/dist/src/component/3d.d.ts +2 -0
  29. package/dist/src/component/3d.js +27 -0
  30. package/dist/src/component/3d.js.map +1 -0
  31. package/dist/src/component/chart-and-gauge.d.ts +2 -0
  32. package/dist/src/component/chart-and-gauge.js +26 -0
  33. package/dist/src/component/chart-and-gauge.js.map +1 -0
  34. package/dist/src/component/container.d.ts +2 -0
  35. package/dist/src/component/container.js +60 -0
  36. package/dist/src/component/container.js.map +1 -0
  37. package/dist/src/component/data-source.d.ts +2 -0
  38. package/dist/src/component/data-source.js +28 -0
  39. package/dist/src/component/data-source.js.map +1 -0
  40. package/dist/src/component/etc.d.ts +2 -0
  41. package/dist/src/component/etc.js +82 -0
  42. package/dist/src/component/etc.js.map +1 -0
  43. package/dist/src/component/form.d.ts +2 -0
  44. package/dist/src/component/form.js +40 -0
  45. package/dist/src/component/form.js.map +1 -0
  46. package/dist/src/component/index.d.ts +12 -0
  47. package/dist/src/component/index.js +13 -0
  48. package/dist/src/component/index.js.map +1 -0
  49. package/dist/src/component/iot.d.ts +2 -0
  50. package/dist/src/component/iot.js +50 -0
  51. package/dist/src/component/iot.js.map +1 -0
  52. package/dist/src/component/line.d.ts +2 -0
  53. package/dist/src/component/line.js +130 -0
  54. package/dist/src/component/line.js.map +1 -0
  55. package/dist/src/component/register-default-groups.d.ts +1 -0
  56. package/dist/src/component/register-default-groups.js +28 -0
  57. package/dist/src/component/register-default-groups.js.map +1 -0
  58. package/dist/src/component/shape.d.ts +2 -0
  59. package/dist/src/component/shape.js +152 -0
  60. package/dist/src/component/shape.js.map +1 -0
  61. package/dist/src/component/table.d.ts +2 -0
  62. package/dist/src/component/table.js +26 -0
  63. package/dist/src/component/table.js.map +1 -0
  64. package/dist/src/component/text-and-media.d.ts +2 -0
  65. package/dist/src/component/text-and-media.js +122 -0
  66. package/dist/src/component/text-and-media.js.map +1 -0
  67. package/dist/src/component/warehouse.d.ts +2 -0
  68. package/dist/src/component/warehouse.js +24 -0
  69. package/dist/src/component/warehouse.js.map +1 -0
  70. package/dist/src/graphql/board.d.ts +6 -0
  71. package/dist/src/graphql/board.js +130 -0
  72. package/dist/src/graphql/board.js.map +1 -0
  73. package/dist/src/graphql/favorite-board.d.ts +1 -0
  74. package/dist/src/graphql/favorite-board.js +23 -0
  75. package/dist/src/graphql/favorite-board.js.map +1 -0
  76. package/dist/src/graphql/group.d.ts +7 -0
  77. package/dist/src/graphql/group.js +125 -0
  78. package/dist/src/graphql/group.js.map +1 -0
  79. package/dist/src/graphql/index.d.ts +4 -0
  80. package/dist/src/graphql/index.js +5 -0
  81. package/dist/src/graphql/index.js.map +1 -0
  82. package/dist/src/graphql/play-group.d.ts +8 -0
  83. package/dist/src/graphql/play-group.js +173 -0
  84. package/dist/src/graphql/play-group.js.map +1 -0
  85. package/dist/src/index.d.ts +3 -0
  86. package/dist/src/index.js +3 -0
  87. package/dist/src/index.js.map +1 -1
  88. package/dist/src/modeller/component-toolbar/component-toolbar.js +56 -61
  89. package/dist/src/modeller/component-toolbar/component-toolbar.js.map +1 -1
  90. package/dist/src/modeller/component-toolbar/mode-icons.d.ts +2 -0
  91. package/dist/src/modeller/component-toolbar/mode-icons.js +86 -0
  92. package/dist/src/modeller/component-toolbar/mode-icons.js.map +1 -0
  93. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +2 -2
  94. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js +4 -5
  95. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js.map +1 -1
  96. package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -2
  97. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +3 -3
  98. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
  99. package/dist/src/modeller/property-sidebar/effects/effects.js +2 -2
  100. package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
  101. package/dist/src/modeller/property-sidebar/effects/property-animation.d.ts +1 -1
  102. package/dist/src/modeller/property-sidebar/effects/property-animation.js +2 -2
  103. package/dist/src/modeller/property-sidebar/effects/property-animation.js.map +1 -1
  104. package/dist/src/modeller/property-sidebar/effects/property-animations.js +2 -2
  105. package/dist/src/modeller/property-sidebar/effects/property-animations.js.map +1 -1
  106. package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -1
  107. package/dist/src/modeller/property-sidebar/effects/property-event-hover.js +3 -3
  108. package/dist/src/modeller/property-sidebar/effects/property-event-hover.js.map +1 -1
  109. package/dist/src/modeller/property-sidebar/effects/property-event-tap.d.ts +1 -1
  110. package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +3 -3
  111. package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
  112. package/dist/src/modeller/property-sidebar/effects/property-event.js +2 -2
  113. package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
  114. package/dist/src/modeller/property-sidebar/effects/property-shadow.js +2 -2
  115. package/dist/src/modeller/property-sidebar/effects/property-shadow.js.map +1 -1
  116. package/dist/src/modeller/property-sidebar/inspector/inspector.js +1 -1
  117. package/dist/src/modeller/property-sidebar/inspector/inspector.js.map +1 -1
  118. package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +2 -2
  119. package/dist/src/modeller/property-sidebar/shapes/shapes.js +3 -3
  120. package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
  121. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js +1 -1
  122. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js.map +1 -1
  123. package/dist/src/ox-board-list.d.ts +2 -0
  124. package/dist/src/ox-board-list.js +427 -0
  125. package/dist/src/ox-board-list.js.map +1 -0
  126. package/dist/src/ox-board-modeller.d.ts +5 -0
  127. package/dist/src/ox-board-modeller.js +32 -0
  128. package/dist/src/ox-board-modeller.js.map +1 -1
  129. package/dist/src/types.d.ts +30 -0
  130. package/dist/src/types.js.map +1 -1
  131. package/dist/tsconfig.tsbuildinfo +1 -1
  132. package/package.json +23 -10
  133. package/src/component/3d.ts +29 -0
  134. package/src/component/chart-and-gauge.ts +28 -0
  135. package/src/component/container.ts +62 -0
  136. package/src/component/data-source.ts +30 -0
  137. package/src/component/etc.ts +87 -0
  138. package/src/component/form.ts +42 -0
  139. package/src/component/index.ts +12 -0
  140. package/src/component/iot.ts +52 -0
  141. package/src/component/line.ts +132 -0
  142. package/src/component/register-default-groups.ts +28 -0
  143. package/src/component/shape.ts +154 -0
  144. package/src/component/table.ts +28 -0
  145. package/src/component/text-and-media.ts +124 -0
  146. package/src/component/warehouse.ts +26 -0
  147. package/src/graphql/board.ts +144 -0
  148. package/src/graphql/favorite-board.ts +25 -0
  149. package/src/graphql/group.ts +138 -0
  150. package/src/graphql/index.ts +4 -0
  151. package/src/graphql/play-group.ts +189 -0
  152. package/src/index.ts +5 -0
  153. package/src/modeller/component-toolbar/component-toolbar.ts +70 -63
  154. package/src/modeller/component-toolbar/mode-icons.ts +86 -0
  155. package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +5 -5
  156. package/src/modeller/property-sidebar/data-binding/data-binding.ts +5 -4
  157. package/src/modeller/property-sidebar/effects/effects.ts +2 -3
  158. package/src/modeller/property-sidebar/effects/property-animation.ts +2 -2
  159. package/src/modeller/property-sidebar/effects/property-animations.ts +2 -3
  160. package/src/modeller/property-sidebar/effects/property-event-hover.ts +4 -3
  161. package/src/modeller/property-sidebar/effects/property-event-tap.ts +4 -3
  162. package/src/modeller/property-sidebar/effects/property-event.ts +2 -3
  163. package/src/modeller/property-sidebar/effects/property-shadow.ts +2 -3
  164. package/src/modeller/property-sidebar/inspector/inspector.ts +1 -1
  165. package/src/modeller/property-sidebar/shapes/shapes.ts +3 -3
  166. package/src/modeller/property-sidebar/specifics/specific-properties-builder.ts +1 -1
  167. package/src/ox-board-list.ts +459 -0
  168. package/src/ox-board-modeller.ts +40 -0
  169. package/src/types.ts +48 -0
  170. package/tsconfig.json +1 -0
  171. package/web-dev-server.config.mjs +2 -0
  172. package/yarn-error.log +18355 -0
@@ -4,10 +4,13 @@
4
4
 
5
5
  import './component-menu'
6
6
 
7
+ import { ICON_EDIT_MODE, ICON_SHIFT_MODE } from './mode-icons'
7
8
  import { LitElement, PropertyValues, css, html } from 'lit'
8
9
  import { SCENE_MODE, Scene } from '@hatiolab/things-scene'
9
10
  import { customElement, property, query, queryAll } from 'lit/decorators.js'
10
11
 
12
+ import { ComponentGroup } from '../../types'
13
+
11
14
  @customElement('component-toolbar')
12
15
  class ComponentToolbar extends LitElement {
13
16
  static styles = [
@@ -21,7 +24,7 @@ class ComponentToolbar extends LitElement {
21
24
  background-color: var(--component-toolbar-background-color);
22
25
  }
23
26
 
24
- span {
27
+ img {
25
28
  display: flex;
26
29
  flex-direction: row;
27
30
 
@@ -31,64 +34,11 @@ class ComponentToolbar extends LitElement {
31
34
 
32
35
  border-bottom: var(--component-toolbar-border);
33
36
  margin: 0;
34
- background: url(/assets/images/icon-vtoolbar.png) -1px 0 no-repeat;
35
- }
36
-
37
- span[data-group='line'] {
38
- background-position: 50% -186px;
39
- }
40
-
41
- span[data-group='shape'] {
42
- background-position: 0px -284px;
43
- }
44
-
45
- span[data-group='textAndMedia'] {
46
- background-position: 50% -385px;
47
- }
48
-
49
- span[data-group='chartAndGauge'] {
50
- background-position: 50% -488px;
51
- }
52
-
53
- span[data-group='table'] {
54
- background-position: 50% -585px;
55
- }
56
-
57
- span[data-group='container'] {
58
- background-position: 50% -685px;
59
- }
60
-
61
- span[data-group='dataSource'] {
62
- background-position: 50% -888px;
63
- }
64
-
65
- span[data-group='IoT'] {
66
- background-position: -3px -788px;
67
- }
68
-
69
- span[data-group='3D'] {
70
- background-position: 50% -992px;
71
- }
72
-
73
- span[data-group='warehouse'] {
74
- background-position: -2px -1089px;
37
+ padding: 6px;
38
+ box-sizing: border-box;
75
39
  }
76
40
 
77
- span[data-group='form'] {
78
- background-position: -2px -1287px;
79
- }
80
-
81
- span[data-group='etc'] {
82
- background-position: -1px -1189px;
83
- }
84
-
85
- .pressed {
86
- background-position: 0 15px;
87
- }
88
-
89
- .pressed[pressed],
90
- .pressed[active] {
91
- background-position: -3px -88px;
41
+ #shift[active] {
92
42
  background-color: #beb9b3;
93
43
  }
94
44
 
@@ -106,15 +56,35 @@ class ComponentToolbar extends LitElement {
106
56
  `
107
57
  ]
108
58
 
109
- @property({ type: Array }) componentGroupList: any[] = []
59
+ @property({ type: Array }) componentGroupList: ComponentGroup[] = []
110
60
  @property({ type: String }) group?: string | null
111
61
  @property({ type: Object }) scene!: Scene
112
- @property({ type: Number }) mode: SCENE_MODE = SCENE_MODE.VIEW
62
+ @property({ type: Number }) mode: SCENE_MODE = SCENE_MODE.EDIT
113
63
 
64
+ @query('#shift') shift!: HTMLImageElement
114
65
  @query('component-menu') private menu!: HTMLElement
115
- @queryAll('[data-group]') groups!: NodeListOf<HTMLElement>
66
+ @queryAll('[data-group]') private groups!: NodeListOf<HTMLElement>
67
+
68
+ private icons: { [name: string]: string } = {}
116
69
 
117
70
  updated(changes: PropertyValues<this>) {
71
+ if (changes.has('componentGroupList')) {
72
+ const color = getComputedStyle(this, null).getPropertyValue('--primary-color')
73
+
74
+ this.icons = (this.componentGroupList || [])
75
+ .filter(group => group.templates?.length > 0)
76
+ .reduce((sum, group: ComponentGroup) => {
77
+ sum[group.name] =
78
+ 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(group.icon.replace(/{{strokeColor}}/g, color))
79
+ return sum
80
+ }, {} as { [name: string]: string })
81
+
82
+ this.icons['mode-edit'] =
83
+ 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(ICON_EDIT_MODE.replace(/{{strokeColor}}/g, color))
84
+ this.icons['mode-shift'] =
85
+ 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(ICON_SHIFT_MODE.replace(/{{strokeColor}}/g, color))
86
+ }
87
+
118
88
  if (changes.has('group')) {
119
89
  this.groups.forEach(group => {
120
90
  group.getAttribute('data-group') === this.group
@@ -127,10 +97,23 @@ class ComponentToolbar extends LitElement {
127
97
  }
128
98
 
129
99
  render() {
100
+ const componentList = this.componentGroupList || []
101
+ const modeIcon = this.icons[this.mode === SCENE_MODE.EDIT ? 'mode-edit' : 'mode-shift']
102
+
130
103
  return html`
131
- ${this.componentGroupList
104
+ <img id="shift" .src=${modeIcon} @click=${(e: MouseEvent) => this._onClickShift(e)} />
105
+
106
+ ${componentList
132
107
  .filter(group => group.templates?.length > 0)
133
- .map(item => html` <span data-group=${item.name} @click=${(e: MouseEvent) => this._onClickGroup(e)}> </span> `)}
108
+ .map(
109
+ group => html`
110
+ <img
111
+ data-group=${group.name}
112
+ @click=${(e: MouseEvent) => this._onClickGroup(e)}
113
+ .src=${this.icons[group.name]}
114
+ />
115
+ `
116
+ )}
134
117
 
135
118
  <component-menu
136
119
  tabindex="-1"
@@ -139,13 +122,37 @@ class ComponentToolbar extends LitElement {
139
122
  }}
140
123
  .scene=${this.scene}
141
124
  .group=${this.group}
142
- .groups=${this.componentGroupList}
125
+ .groups=${componentList}
143
126
  hidden
144
127
  >
145
128
  </component-menu>
146
129
  `
147
130
  }
148
131
 
132
+ _setMode(mode: SCENE_MODE) {
133
+ this.mode = mode
134
+
135
+ this.dispatchEvent(
136
+ new CustomEvent('mode-changed', {
137
+ bubbles: true,
138
+ composed: true,
139
+ detail: { value: mode }
140
+ })
141
+ )
142
+ }
143
+
144
+ _onClickShift(e: MouseEvent) {
145
+ const shift = this.shift
146
+
147
+ if (shift.hasAttribute('active')) {
148
+ shift.removeAttribute('active')
149
+ this._setMode(SCENE_MODE.EDIT)
150
+ } else {
151
+ shift.setAttribute('active', '')
152
+ this._setMode(SCENE_MODE.SHIFT)
153
+ }
154
+ }
155
+
149
156
  async _onClickGroup(e: MouseEvent) {
150
157
  var button = e.target as HTMLElement
151
158
 
@@ -0,0 +1,86 @@
1
+ export const ICON_EDIT_MODE = `
2
+ <svg
3
+ version="1.1"
4
+ id="Layer_1"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ x="0px"
8
+ y="0px"
9
+ viewBox="0 0 30 30"
10
+ style="enable-background:new 0 0 30 30;"
11
+ xml:space="preserve"
12
+ >
13
+ <style type="text/css">
14
+ .st0 {
15
+ fill: {{strokeColor}};
16
+ }
17
+ .st1 {
18
+ fill: none;
19
+ stroke: {{strokeColor}};
20
+ stroke-width: 0.75;
21
+ stroke-linejoin: round;
22
+ stroke-miterlimit: 10;
23
+ }
24
+ </style>
25
+ <g>
26
+ <polygon class="st0" points="2.7,3.9 2.7,22.8 7.8,17.2 16.1,16.9 " />
27
+ <path
28
+ class="st1"
29
+ d="M27.7,20.1L26.1,19c-0.1,0-0.2,0-0.2,0c0,0.1,0,0.2,0,0.2l1.2,0.9h-4.9v-5l0.9,1.2c0,0,0.1,0.1,0.1,0.1
30
+ c0,0,0.1,0,0.1,0c0.1,0,0.1-0.1,0-0.2l-1.1-1.6c-0.1-0.1-0.2-0.1-0.2,0L20.8,16c0,0.1,0,0.2,0,0.2s0.2,0,0.2,0l0.9-1.2v5h-5
31
+ l1.2-0.9c0.1,0,0.1-0.1,0-0.2c0-0.1-0.1-0.1-0.2,0l-1.6,1.1c0,0-0.1,0.1-0.1,0.1c0,0,0,0.1,0.1,0.1l1.6,1.1c0,0,0.1,0,0.1,0
32
+ c0,0,0.1,0,0.1-0.1c0-0.1,0-0.2,0-0.2l-1.2-0.9h5v5L21,24.2c0-0.1-0.1-0.1-0.2,0c-0.1,0-0.1,0.1,0,0.2l1.1,1.6c0,0,0.1,0.1,0.1,0.1
33
+ s0.1,0,0.1-0.1l1.1-1.6c0-0.1,0-0.2,0-0.2c-0.1,0-0.2,0-0.2,0l-0.9,1.2v-5h4.9l-1.2,0.9c-0.1,0-0.1,0.1,0,0.2c0,0,0.1,0.1,0.1,0.1
34
+ c0,0,0.1,0,0.1,0l1.6-1.1c0,0,0.1-0.1,0.1-0.1C27.7,20.2,27.7,20.1,27.7,20.1z"
35
+ />
36
+ </g>
37
+ </svg>
38
+ `
39
+
40
+ export const ICON_SHIFT_MODE = `
41
+ <svg
42
+ version="1.1"
43
+ id="Layer_1"
44
+ xmlns="http://www.w3.org/2000/svg"
45
+ xmlns:xlink="http://www.w3.org/1999/xlink"
46
+ x="0px"
47
+ y="0px"
48
+ viewBox="0 0 30 30"
49
+ style="enable-background:new 0 0 30 30;"
50
+ xml:space="preserve"
51
+ >
52
+ <style type="text/css">
53
+ .st0 {
54
+ fill-rule: evenodd;
55
+ clip-rule: evenodd;
56
+ }
57
+ .st1 {
58
+ fill: {{strokeColor}};
59
+ stroke: {{strokeColor}};
60
+ stroke-width: 0.75;
61
+ stroke-linejoin: round;
62
+ stroke-miterlimit: 10;
63
+ }
64
+ </style>
65
+ <g>
66
+ <path
67
+ class="st0"
68
+ d="M7.8,23.2c1.6,0,3.8,0,5.7,0c0.8,0,1.3-0.3,1.6-1.2c0.4-2.9,1.5-4.9,2.4-6.9s1.4-2.5,1.6-3.4
69
+ c0.1-0.5,0.2-1.6-0.4-1.9c-0.6-0.3-1.2,0.1-1.9,1.3c-0.8,1.6-1,2-1.4,2c-0.3,0-0.1-4,0-5.4c0.1-1.3-0.6-1.8-1.3-1.8
70
+ c-0.8-0.1-1.5,0.4-1.5,1.5c0,1.5-0.2,5.2-0.7,5.2c-0.4,0-0.3-4.3-0.6-6.7c-0.1-1-0.6-1.8-1.5-1.8C9.1,4.2,8.4,4.7,8.3,5.8
71
+ c-0.1,1.3,1,6.7,0.5,6.7c-0.4,0-1.4-3.3-2.3-5.1C6,6.5,5.6,6,4.6,6.4C3.9,6.7,3.5,7.6,3.8,8.5c0.5,1.2,2.7,6.8,2.2,6.8
72
+ c-0.4,0-1.4-1.4-2.7-2.1c-1.1-0.6-1.8-0.4-2.1-0.1c-0.4,0.3-0.7,1,0.9,2.8c0.6,0.6,3.1,2.3,3.7,3.2c0.7,1.3,0.6,1,0.8,2.8
73
+ C6.7,22.7,7,23.2,7.8,23.2z"
74
+ />
75
+ <path
76
+ class="st1"
77
+ d="M28.7,20.1L27.1,19c-0.1,0-0.2,0-0.2,0c0,0.1,0,0.2,0,0.2l1.2,0.9h-4.9v-5l0.9,1.2c0,0,0.1,0.1,0.1,0.1
78
+ c0,0,0.1,0,0.1,0c0.1,0,0.1-0.1,0-0.2l-1.1-1.6c-0.1-0.1-0.2-0.1-0.2,0L21.8,16c0,0.1,0,0.2,0,0.2s0.2,0,0.2,0l0.9-1.2v5h-5
79
+ l1.2-0.9c0.1,0,0.1-0.1,0-0.2c0-0.1-0.1-0.1-0.2,0l-1.6,1.1c0,0-0.1,0.1-0.1,0.1c0,0,0,0.1,0.1,0.1l1.6,1.1c0,0,0.1,0,0.1,0
80
+ c0,0,0.1,0,0.1-0.1c0-0.1,0-0.2,0-0.2l-1.2-0.9h5v5L22,24.2c0-0.1-0.1-0.1-0.2,0c-0.1,0-0.1,0.1,0,0.2l1.1,1.6c0,0,0.1,0.1,0.1,0.1
81
+ s0.1,0,0.1-0.1l1.1-1.6c0-0.1,0-0.2,0-0.2c-0.1,0-0.2,0-0.2,0l-0.9,1.2v-5h4.9l-1.2,0.9c-0.1,0-0.1,0.1,0,0.2c0,0,0.1,0.1,0.1,0.1
82
+ c0,0,0.1,0,0.1,0l1.6-1.1c0,0,0.1-0.1,0.1-0.1C28.7,20.2,28.7,20.1,28.7,20.1z"
83
+ />
84
+ </g>
85
+ </svg>
86
+ `
@@ -2,15 +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-code'
6
5
  import '@things-factory/modeller-ui/client/editors/things-editor-value-map'
7
6
  import '@things-factory/modeller-ui/client/editors/things-editor-value-range'
8
- import '@operato/input/dist/src/ox-buttons-radio'
9
- import '@operato/input/dist/src/ox-input-code'
7
+ import '@operato/input/ox-buttons-radio.js'
8
+ import '@operato/input/ox-input-code.js'
9
+
10
+ import { css, html, LitElement, PropertyValues } from 'lit'
11
+ import { customElement, property, query, state } from 'lit/decorators.js'
10
12
 
11
- import { LitElement, PropertyValues, css, html } from 'lit'
12
13
  import { Properties, Scene } from '@hatiolab/things-scene'
13
- import { customElement, property, query, state } from 'lit/decorators'
14
14
 
15
15
  export type Rule =
16
16
  | {
@@ -5,12 +5,13 @@
5
5
  import './data-binding-mapper'
6
6
  import '@material/mwc-icon'
7
7
  import '@things-factory/help'
8
- import '@operato/input/dist/src/ox-buttons-radio.js'
9
- import '@operato/input/dist/src/ox-input-data'
8
+ import '@operato/input/ox-buttons-radio.js'
9
+ import '@operato/input/ox-input-data.js'
10
+
11
+ import { css, html, PropertyValues } from 'lit'
12
+ import { customElement, property, query, state } from 'lit/decorators.js'
10
13
 
11
14
  import { Properties, Scene } from '@hatiolab/things-scene'
12
- import { PropertyValues, css, html } from 'lit'
13
- import { customElement, property, query, state } from 'lit/decorators'
14
15
 
15
16
  import { AbstractProperty } from '../abstract-property'
16
17
  import { PropertySharedStyle } from '../property-shared-style'
@@ -6,13 +6,12 @@ import './property-animations'
6
6
  import './property-event'
7
7
  import './property-shadow'
8
8
 
9
- import { html } from 'lit'
10
- import { customElement, property } from 'lit/decorators'
11
-
12
9
  import { Properties, Scene } from '@hatiolab/things-scene'
10
+ import { customElement, property } from 'lit/decorators.js'
13
11
 
14
12
  import { AbstractProperty } from '../abstract-property'
15
13
  import { PropertySharedStyle } from '../property-shared-style'
14
+ import { html } from 'lit'
16
15
 
17
16
  @customElement('property-effect')
18
17
  class PropertyEffects extends AbstractProperty {
@@ -2,10 +2,10 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@operato/input/dist/src/ox-input-angle'
5
+ import '@operato/input/ox-input-angle.js'
6
6
 
7
7
  import { html, LitElement } from 'lit'
8
- import { customElement, property } from 'lit/decorators'
8
+ import { customElement, property } from 'lit/decorators.js'
9
9
 
10
10
  import { Properties, Scene } from '@hatiolab/things-scene'
11
11
 
@@ -5,10 +5,9 @@
5
5
  import './property-animation'
6
6
  import '@material/mwc-icon'
7
7
 
8
- import { css, html, LitElement } from 'lit'
9
- import { customElement, property, state } from 'lit/decorators'
10
-
8
+ import { LitElement, css, html } from 'lit'
11
9
  import { Properties, Scene } from '@hatiolab/things-scene'
10
+ import { customElement, property, state } from 'lit/decorators.js'
12
11
 
13
12
  import { PropertySharedStyle } from '../property-shared-style'
14
13
  import { convert } from './value-converter'
@@ -2,11 +2,12 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@operato/input/dist/src/ox-input-data'
5
+ import '@operato/input/ox-input-data.js'
6
+
7
+ import { html, LitElement } from 'lit'
8
+ import { customElement, property } from 'lit/decorators.js'
6
9
 
7
- import { LitElement, html } from 'lit'
8
10
  import { Properties, Scene } from '@hatiolab/things-scene'
9
- import { customElement, property } from 'lit/decorators'
10
11
 
11
12
  import { EffectsSharedStyle } from './effects-shared-style'
12
13
  import { convert } from './value-converter'
@@ -2,11 +2,12 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@operato/input/dist/src/ox-input-data'
5
+ import '@operato/input/ox-input-data.js'
6
+
7
+ import { html, LitElement } from 'lit'
8
+ import { customElement, property } from 'lit/decorators.js'
6
9
 
7
- import { LitElement, html } from 'lit'
8
10
  import { Properties, Scene } from '@hatiolab/things-scene'
9
- import { customElement, property } from 'lit/decorators'
10
11
 
11
12
  import { EffectsSharedStyle } from './effects-shared-style'
12
13
  import { convert } from './value-converter'
@@ -5,10 +5,9 @@
5
5
  import './property-event-hover'
6
6
  import './property-event-tap'
7
7
 
8
- import { html, LitElement } from 'lit'
9
- import { customElement, property } from 'lit/decorators'
10
-
8
+ import { LitElement, html } from 'lit'
11
9
  import { Properties, Scene } from '@hatiolab/things-scene'
10
+ import { customElement, property } from 'lit/decorators.js'
12
11
 
13
12
  import { PropertySharedStyle } from '../property-shared-style'
14
13
  import { convert } from './value-converter'
@@ -4,11 +4,10 @@
4
4
 
5
5
  import '@things-factory/modeller-ui/client/editors/things-editor-color'
6
6
 
7
- import { css, html, LitElement } from 'lit'
8
- import { customElement, property } from 'lit/decorators'
7
+ import { LitElement, css, html } from 'lit'
8
+ import { customElement, property } from 'lit/decorators.js'
9
9
 
10
10
  import { Properties } from '@hatiolab/things-scene'
11
-
12
11
  import { convert } from './value-converter'
13
12
 
14
13
  /**
@@ -1,6 +1,6 @@
1
1
  import { Component, Container, Properties, Scene } from '@hatiolab/things-scene'
2
2
  import { LitElement, PropertyValues, TemplateResult, css, html } from 'lit'
3
- import { customElement, property } from 'lit/decorators'
3
+ import { customElement, property } from 'lit/decorators.js'
4
4
 
5
5
  import Sortable from 'sortablejs'
6
6
 
@@ -2,12 +2,12 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@operato/input/dist/src/ox-input-angle'
6
- import '@operato/input/dist/src/ox-buttons-radio'
5
+ import '@operato/input/ox-input-angle.js'
6
+ import '@operato/input/ox-buttons-radio.js'
7
7
  import '@material/mwc-icon'
8
8
 
9
9
  import { css, html } from 'lit'
10
- import { customElement, property, state } from 'lit/decorators'
10
+ import { customElement, property, state } from 'lit/decorators.js'
11
11
 
12
12
  import { BOUNDS, Component, Properties } from '@hatiolab/things-scene'
13
13
 
@@ -5,7 +5,7 @@
5
5
  import '@things-factory/modeller-ui/client/editors/things-editor-property'
6
6
 
7
7
  import { LitElement, PropertyValues } from 'lit'
8
- import { customElement, property } from 'lit/decorators'
8
+ import { customElement, property } from 'lit/decorators.js'
9
9
 
10
10
  import { OxPropertyEditor } from '@operato/property-editor'
11
11
  import { Properties } from '@hatiolab/things-scene'