@things-factory/modeller-ui 5.0.0-alpha.5 → 5.0.0-alpha.6
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/client/bootstrap.js +22 -26
- package/client/editors/things-editor-layout/things-card-layout.js +1 -1
- package/client/editors/things-editor-property.js +1 -546
- package/package.json +15 -14
- package/client/editors/paper-color-picker/paper-color-circle.js +0 -466
- package/client/editors/paper-color-picker/paper-color-input.js +0 -266
- package/client/editors/paper-color-picker/paper-color-picker.js +0 -584
- package/client/editors/things-editor-3dish.js +0 -164
- package/client/editors/things-editor-angle-input.js +0 -69
- package/client/editors/things-editor-attachment-selector.js +0 -110
- package/client/editors/things-editor-buttons-radio.js +0 -93
- package/client/editors/things-editor-code.js +0 -152
- package/client/editors/things-editor-color-stops.js +0 -499
- package/client/editors/things-editor-color-style.js +0 -345
- package/client/editors/things-editor-color.js +0 -313
- package/client/editors/things-editor-data.js +0 -152
- package/client/editors/things-editor-gradient.js +0 -335
- package/client/editors/things-editor-graphql.js +0 -173
- package/client/editors/things-editor-id.js +0 -85
- package/client/editors/things-editor-multiple-color.js +0 -132
- package/client/editors/things-editor-options.js +0 -156
- package/client/editors/things-editor-pattern.js +0 -161
- package/client/editors/things-editor-property-styles.js +0 -71
- package/client/editors/things-editor-range-input.js +0 -166
- package/client/editors/things-editor-script.js +0 -213
- package/client/editors/things-editor-stack.js +0 -107
- package/client/editors/things-editor-table.js +0 -376
- package/client/editors/things-editor-value-map.js +0 -290
- package/client/editors/things-editor-value-range.js +0 -292
package/client/bootstrap.js
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
import { OxPropertyEditor } from '@operato/property-editor'
|
|
2
|
+
import '@operato/property-editor/ox-property-editor-legend.js'
|
|
3
|
+
import '@operato/property-editor/ox-property-editor-number.js'
|
|
4
|
+
import '@operato/property-editor/ox-property-editor-password.js'
|
|
5
|
+
import '@operato/property-editor/ox-property-editor-angle.js'
|
|
6
|
+
import '@operato/property-editor/ox-property-editor-string.js'
|
|
7
|
+
import '@operato/property-editor/ox-property-editor-data.js'
|
|
8
|
+
import '@operato/property-editor/ox-property-editor-date.js'
|
|
9
|
+
import '@operato/property-editor/ox-property-editor-checkbox.js'
|
|
10
|
+
import '@operato/property-editor/ox-property-editor-options.js'
|
|
11
|
+
import '@operato/property-editor/ox-property-editor-select.js'
|
|
12
|
+
import '@operato/property-editor/ox-property-editor-scene-component-id.js'
|
|
13
|
+
import '@operato/property-editor/ox-property-editor-color.js'
|
|
14
|
+
import '@operato/property-editor/ox-property-editor-multiple-colors.js'
|
|
15
|
+
import '@operato/property-editor/ox-property-editor-solid-colorstops.js'
|
|
16
|
+
import '@operato/property-editor/ox-property-editor-gradient-colorstops.js'
|
|
17
|
+
import '@operato/property-editor/ox-property-editor-gradient-colorstops.js'
|
|
18
|
+
import '@operato/property-editor/ox-property-editor-textarea.js'
|
|
19
|
+
import '@operato/property-editor/ox-property-editor-table.js'
|
|
20
|
+
import '@operato/property-editor/ox-property-editor-value-map.js'
|
|
21
|
+
import '@operato/property-editor/ox-property-editor-value-ranges.js'
|
|
22
|
+
import '@operato/attachment/ox-property-editor-attachment-selector.js'
|
|
23
|
+
import '@operato/app/property-editor/ox-property-editor-graphql.js'
|
|
2
24
|
|
|
3
25
|
export default function bootstrap() {
|
|
4
26
|
OxPropertyEditor.register({
|
|
5
|
-
legend: 'property-editor-legend',
|
|
6
|
-
number: 'property-editor-number',
|
|
7
|
-
password: 'property-editor-password',
|
|
8
|
-
angle: 'property-editor-angle',
|
|
9
|
-
string: 'property-editor-string',
|
|
10
|
-
textarea: 'property-editor-textarea',
|
|
11
|
-
javascript: 'property-editor-textarea',
|
|
12
|
-
graphql: 'property-editor-graphql',
|
|
13
|
-
data: 'property-editor-data',
|
|
14
|
-
checkbox: 'property-editor-checkbox',
|
|
15
|
-
boolean: 'property-editor-checkbox',
|
|
16
|
-
select: 'property-editor-select',
|
|
17
|
-
color: 'property-editor-color',
|
|
18
|
-
'solid-color-stops': 'property-editor-solid-colorstops',
|
|
19
|
-
'gradient-color-stops': 'property-editor-gradient-colorstops',
|
|
20
|
-
'multiple-color': 'property-editor-multiple-color',
|
|
21
|
-
'editor-table': 'property-editor-table',
|
|
22
|
-
'id-input': 'property-editor-id',
|
|
23
|
-
'range-input': 'property-editor-range-input',
|
|
24
|
-
options: 'property-editor-options',
|
|
25
|
-
date: 'property-editor-date',
|
|
26
|
-
map: 'property-editor-value-map',
|
|
27
|
-
range: 'property-editor-value-range',
|
|
28
|
-
'attachment-selector': 'property-editor-attachment-selector',
|
|
29
|
-
'gltf-selector': 'property-editor-attachment-selector',
|
|
30
|
-
'image-selector': 'property-editor-image-selector',
|
|
31
27
|
'font-selector': 'property-editor-font-selector'
|
|
32
28
|
})
|
|
33
29
|
}
|
|
@@ -45,7 +45,7 @@ class ThingsCardLayout extends LitElement {
|
|
|
45
45
|
render() {
|
|
46
46
|
return html`
|
|
47
47
|
<label>active index</label>
|
|
48
|
-
<input type="number" value-key="activeIndex" .value=${this.activeIndex}
|
|
48
|
+
<input type="number" value-key="activeIndex" .value=${this.activeIndex} />
|
|
49
49
|
`
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -2,557 +2,12 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import '@things-factory/i18n-base'
|
|
6
|
-
import './things-editor-angle-input'
|
|
7
|
-
import './things-editor-range-input'
|
|
8
|
-
import './things-editor-code'
|
|
9
|
-
import './things-editor-graphql'
|
|
10
|
-
import './things-editor-data'
|
|
11
|
-
import './things-editor-color'
|
|
12
|
-
import './things-editor-color-stops'
|
|
13
|
-
import './things-editor-id'
|
|
14
|
-
import './things-editor-multiple-color'
|
|
15
|
-
import './things-editor-options'
|
|
16
|
-
import './things-editor-table'
|
|
17
|
-
import './things-editor-value-map'
|
|
18
|
-
import './things-editor-value-range'
|
|
19
|
-
import './things-editor-attachment-selector'
|
|
20
5
|
import './things-editor-font-selector'
|
|
21
|
-
import '@operato/input/ox-select.js'
|
|
22
|
-
import '@operato/input/ox-checkbox.js'
|
|
23
|
-
import '@operato/popup/ox-popup-list.js'
|
|
24
6
|
|
|
25
|
-
import {
|
|
7
|
+
import { html } from 'lit'
|
|
26
8
|
|
|
27
9
|
import { OxPropertyEditor } from '@operato/property-editor'
|
|
28
10
|
|
|
29
|
-
class PropertyEditorLegend extends OxPropertyEditor {
|
|
30
|
-
static get is() {
|
|
31
|
-
return 'property-editor-legend'
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
static get styles() {
|
|
35
|
-
return [...OxPropertyEditor.styles]
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
editorTemplate(props) {
|
|
39
|
-
return html` <legend>${props.property.label}</legend> `
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
customElements.define(PropertyEditorLegend.is, PropertyEditorLegend)
|
|
44
|
-
|
|
45
|
-
class PropertyEditorNumber extends OxPropertyEditor {
|
|
46
|
-
static get is() {
|
|
47
|
-
return 'property-editor-number'
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static get styles() {
|
|
51
|
-
return [...OxPropertyEditor.styles]
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
editorTemplate(props) {
|
|
55
|
-
return html`
|
|
56
|
-
<input
|
|
57
|
-
id="editor"
|
|
58
|
-
type="number"
|
|
59
|
-
placeholder=${props.placeholder || ''}
|
|
60
|
-
.value=${props.value}
|
|
61
|
-
.step=${props.property && props.property.step}
|
|
62
|
-
.min=${props.property && props.property.min}
|
|
63
|
-
.max=${props.property && props.property.max}
|
|
64
|
-
@focus=${e => {
|
|
65
|
-
var el = e.currentTarget
|
|
66
|
-
el.lastValidValue = el.value
|
|
67
|
-
}}
|
|
68
|
-
@input=${e => {
|
|
69
|
-
var el = e.currentTarget
|
|
70
|
-
var validity = el.checkValidity()
|
|
71
|
-
if (validity) el.lastValidValue = el.value
|
|
72
|
-
else el.value = el.lastValidValue || ''
|
|
73
|
-
}}
|
|
74
|
-
@blur=${e => {
|
|
75
|
-
var el = e.currentTarget
|
|
76
|
-
delete el.lastValidValue
|
|
77
|
-
}}
|
|
78
|
-
/>
|
|
79
|
-
`
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
customElements.define(PropertyEditorNumber.is, PropertyEditorNumber)
|
|
84
|
-
|
|
85
|
-
class PropertyEditorRangeInput extends OxPropertyEditor {
|
|
86
|
-
static get is() {
|
|
87
|
-
return 'property-editor-range-input'
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
static get styles() {
|
|
91
|
-
return [...OxPropertyEditor.styles]
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
editorTemplate(props) {
|
|
95
|
-
return html`
|
|
96
|
-
<things-editor-range-input
|
|
97
|
-
id="editor"
|
|
98
|
-
.value=${props.value}
|
|
99
|
-
.step=${props.property && props.property.step}
|
|
100
|
-
.min=${props.property && props.property.min}
|
|
101
|
-
.max=${props.property && props.property.max}
|
|
102
|
-
></things-editor-range-input>
|
|
103
|
-
`
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
customElements.define(PropertyEditorRangeInput.is, PropertyEditorRangeInput)
|
|
108
|
-
|
|
109
|
-
class PropertyEditorAngle extends OxPropertyEditor {
|
|
110
|
-
static get is() {
|
|
111
|
-
return 'property-editor-angle'
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
static get styles() {
|
|
115
|
-
return [...OxPropertyEditor.styles]
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
get valueProperty() {
|
|
119
|
-
return 'radian'
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
editorTemplate(props) {
|
|
123
|
-
return html`
|
|
124
|
-
<things-editor-angle-input
|
|
125
|
-
id="editor"
|
|
126
|
-
.radian=${props.value}
|
|
127
|
-
placeholder=${props.placeholder || ''}
|
|
128
|
-
></things-editor-angle-input>
|
|
129
|
-
`
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
customElements.define(PropertyEditorAngle.is, PropertyEditorAngle)
|
|
134
|
-
|
|
135
|
-
class PropertyEditorString extends OxPropertyEditor {
|
|
136
|
-
static get is() {
|
|
137
|
-
return 'property-editor-string'
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
static get styles() {
|
|
141
|
-
return [...OxPropertyEditor.styles]
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
editorTemplate(props) {
|
|
145
|
-
return html` <input type="text" id="editor" .value=${props.value} placeholder=${props.placeholder || ''} /> `
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
customElements.define(PropertyEditorString.is, PropertyEditorString)
|
|
150
|
-
|
|
151
|
-
class PropertyEditorPassword extends OxPropertyEditor {
|
|
152
|
-
static get is() {
|
|
153
|
-
return 'property-editor-password'
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
static get styles() {
|
|
157
|
-
return [...OxPropertyEditor.styles]
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
editorTemplate(props) {
|
|
161
|
-
return html` <input type="password" id="editor" .value=${props.value} placeholder=${props.placeholder || ''} /> `
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
customElements.define(PropertyEditorPassword.is, PropertyEditorPassword)
|
|
166
|
-
|
|
167
|
-
class PropertyEditorTextArea extends OxPropertyEditor {
|
|
168
|
-
static get is() {
|
|
169
|
-
return 'property-editor-textarea'
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
static get styles() {
|
|
173
|
-
return [...OxPropertyEditor.styles]
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
editorTemplate(props) {
|
|
177
|
-
return html`
|
|
178
|
-
<things-editor-code
|
|
179
|
-
id="editor"
|
|
180
|
-
.value=${props.value}
|
|
181
|
-
mode="${props.property?.mode || ''}"
|
|
182
|
-
tab-size="${props.property?.tabSize || ''}"
|
|
183
|
-
tab-as-space="${props.property?.tabAsSpace || 'false'}"
|
|
184
|
-
fullwidth
|
|
185
|
-
>
|
|
186
|
-
</things-editor-code>
|
|
187
|
-
`
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
customElements.define(PropertyEditorTextArea.is, PropertyEditorTextArea)
|
|
192
|
-
|
|
193
|
-
class PropertyEditorGraphQL extends OxPropertyEditor {
|
|
194
|
-
static get is() {
|
|
195
|
-
return 'property-editor-graphql'
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
static get styles() {
|
|
199
|
-
return [...OxPropertyEditor.styles]
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
editorTemplate(props) {
|
|
203
|
-
return html` <things-editor-graphql id="editor" .value=${props.value} fullwidth> </things-editor-graphql> `
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
customElements.define(PropertyEditorGraphQL.is, PropertyEditorGraphQL)
|
|
208
|
-
|
|
209
|
-
class PropertyEditorData extends OxPropertyEditor {
|
|
210
|
-
static get is() {
|
|
211
|
-
return 'property-editor-data'
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
static get styles() {
|
|
215
|
-
return [...OxPropertyEditor.styles]
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
editorTemplate(props) {
|
|
219
|
-
return html` <things-editor-data id="editor" .value=${props.value} fullwidth> </things-editor-data> `
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
customElements.define(PropertyEditorData.is, PropertyEditorData)
|
|
224
|
-
|
|
225
|
-
class PropertyEditorCheckbox extends OxPropertyEditor {
|
|
226
|
-
static get is() {
|
|
227
|
-
return 'property-editor-checkbox'
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
static get styles() {
|
|
231
|
-
return [...OxPropertyEditor.styles]
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
get valueProperty() {
|
|
235
|
-
return 'checked'
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
editorTemplate(props) {
|
|
239
|
-
return html` <input type="checkbox" id="editor" .checked=${props.value} placeholder=${props.placeholder || ''} /> `
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
customElements.define(PropertyEditorCheckbox.is, PropertyEditorCheckbox)
|
|
244
|
-
|
|
245
|
-
class PropertyEditorSelect extends OxPropertyEditor {
|
|
246
|
-
static get is() {
|
|
247
|
-
return 'property-editor-select'
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
static get styles() {
|
|
251
|
-
return [
|
|
252
|
-
...OxPropertyEditor.styles,
|
|
253
|
-
css`
|
|
254
|
-
ox-select {
|
|
255
|
-
background-color: var(--theme-white-color);
|
|
256
|
-
padding: 1px 2px;
|
|
257
|
-
color: var(--theme-black-color);
|
|
258
|
-
font-size: 13.5px;
|
|
259
|
-
}
|
|
260
|
-
`
|
|
261
|
-
]
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
async connectedCallback() {
|
|
265
|
-
super.connectedCallback()
|
|
266
|
-
|
|
267
|
-
var options = this.property?.options
|
|
268
|
-
if (typeof options === 'function') {
|
|
269
|
-
this.property = {
|
|
270
|
-
...this.property,
|
|
271
|
-
options: await options.apply(this)
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
editorTemplate(props) {
|
|
277
|
-
var options = props.property?.options
|
|
278
|
-
if (!(options instanceof Array)) {
|
|
279
|
-
options = []
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
return html`
|
|
283
|
-
<ox-select id="editor" .value=${props.value} placeholder="${props.placeholder}">
|
|
284
|
-
<ox-popup-list with-search>
|
|
285
|
-
${options.map(
|
|
286
|
-
item => html`
|
|
287
|
-
<div option value=${props._getOptionValue(item)} ?selected=${props._isSelected(props.value, item)}>
|
|
288
|
-
${this._getOptionDisplay(item) || html` `}
|
|
289
|
-
</div>
|
|
290
|
-
`
|
|
291
|
-
)}
|
|
292
|
-
</ox-popup-list>
|
|
293
|
-
</ox-select>
|
|
294
|
-
`
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
_getOptionValue(item) {
|
|
298
|
-
if (typeof item == 'string') return item
|
|
299
|
-
|
|
300
|
-
return item.value
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
_getOptionDisplay(item) {
|
|
304
|
-
if (typeof item == 'string') return item
|
|
305
|
-
|
|
306
|
-
return item.display
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
_isSelected(value, item) {
|
|
310
|
-
return value == this._getOptionValue(item)
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
customElements.define(PropertyEditorSelect.is, PropertyEditorSelect)
|
|
315
|
-
|
|
316
|
-
class PropertyEditorColor extends OxPropertyEditor {
|
|
317
|
-
static get is() {
|
|
318
|
-
return 'property-editor-color'
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
static get styles() {
|
|
322
|
-
return [...OxPropertyEditor.styles]
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
editorTemplate(props) {
|
|
326
|
-
return html`
|
|
327
|
-
<things-editor-color
|
|
328
|
-
id="editor"
|
|
329
|
-
.value=${props.value}
|
|
330
|
-
placeholder=${props.placeholder || ''}
|
|
331
|
-
.properties=${props.property}
|
|
332
|
-
></things-editor-color>
|
|
333
|
-
`
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
customElements.define(PropertyEditorColor.is, PropertyEditorColor)
|
|
338
|
-
|
|
339
|
-
class PropertyEditorSolidColorStops extends OxPropertyEditor {
|
|
340
|
-
static get is() {
|
|
341
|
-
return 'property-editor-solid-colorstops'
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
static get styles() {
|
|
345
|
-
return [...OxPropertyEditor.styles]
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
editorTemplate(props) {
|
|
349
|
-
return html`
|
|
350
|
-
<things-editor-color-stops
|
|
351
|
-
id="editor"
|
|
352
|
-
type="solid"
|
|
353
|
-
.value=${props.value}
|
|
354
|
-
.min=${props.property && props.property.min}
|
|
355
|
-
.max=${props.property && props.property.max}
|
|
356
|
-
fullwidth
|
|
357
|
-
>
|
|
358
|
-
</things-editor-color-stops>
|
|
359
|
-
`
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
customElements.define(PropertyEditorSolidColorStops.is, PropertyEditorSolidColorStops)
|
|
364
|
-
|
|
365
|
-
class PropertyEditorGradientColorStops extends OxPropertyEditor {
|
|
366
|
-
static get is() {
|
|
367
|
-
return 'property-editor-gradient-colorstops'
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
static get styles() {
|
|
371
|
-
return [...OxPropertyEditor.styles]
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
editorTemplate(props) {
|
|
375
|
-
return html`
|
|
376
|
-
<things-editor-color-stops
|
|
377
|
-
id="editor"
|
|
378
|
-
type="gradient"
|
|
379
|
-
.value=${props.value}
|
|
380
|
-
.min=${props.property && props.property.min}
|
|
381
|
-
.max=${props.property && props.property.max}
|
|
382
|
-
fullwidth
|
|
383
|
-
>
|
|
384
|
-
</things-editor-color-stops>
|
|
385
|
-
`
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
customElements.define(PropertyEditorGradientColorStops.is, PropertyEditorGradientColorStops)
|
|
390
|
-
|
|
391
|
-
class PropertyEditorMultipleColor extends OxPropertyEditor {
|
|
392
|
-
static get is() {
|
|
393
|
-
return 'property-editor-multiple-color'
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
static get styles() {
|
|
397
|
-
return [...OxPropertyEditor.styles]
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
get valueProperty() {
|
|
401
|
-
return 'values'
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
editorTemplate(props) {
|
|
405
|
-
return html` <things-editor-multiple-color id="editor" .values=${props.value}></things-editor-multiple-color> `
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
customElements.define(PropertyEditorMultipleColor.is, PropertyEditorMultipleColor)
|
|
410
|
-
|
|
411
|
-
class PropertyEditorDate extends OxPropertyEditor {
|
|
412
|
-
static get is() {
|
|
413
|
-
return 'property-editor-date'
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
static get styles() {
|
|
417
|
-
return [...OxPropertyEditor.styles]
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
editorTemplate(props) {
|
|
421
|
-
return html` <input type="date" id="editor" .value=${props.value} /> `
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
customElements.define(PropertyEditorDate.is, PropertyEditorDate)
|
|
426
|
-
|
|
427
|
-
class PropertyEditorOptions extends OxPropertyEditor {
|
|
428
|
-
static get is() {
|
|
429
|
-
return 'property-editor-options'
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
static get styles() {
|
|
433
|
-
return [...OxPropertyEditor.styles]
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
get valueProperty() {
|
|
437
|
-
return 'options'
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
editorTemplate(props) {
|
|
441
|
-
return html` <things-editor-options id="editor" .options=${props.value} fullwidth></things-editor-options> `
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
customElements.define(PropertyEditorOptions.is, PropertyEditorOptions)
|
|
446
|
-
|
|
447
|
-
class PropertyEditorTable extends OxPropertyEditor {
|
|
448
|
-
static get is() {
|
|
449
|
-
return 'property-editor-table'
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
static get styles() {
|
|
453
|
-
return [...OxPropertyEditor.styles]
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
editorTemplate(props) {
|
|
457
|
-
return html` <things-editor-table id="editor" .property=${props.property} fullwidth></things-editor-table> `
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
customElements.define(PropertyEditorTable.is, PropertyEditorTable)
|
|
462
|
-
|
|
463
|
-
class PropertyEditorId extends OxPropertyEditor {
|
|
464
|
-
static get is() {
|
|
465
|
-
return 'property-editor-id'
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
static get styles() {
|
|
469
|
-
return [...OxPropertyEditor.styles]
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
editorTemplate(props) {
|
|
473
|
-
return html` <things-editor-id id="editor" .value=${props.value} .property=${props.property}></things-editor-id> `
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
customElements.define(PropertyEditorId.is, PropertyEditorId)
|
|
478
|
-
|
|
479
|
-
class PropertyEditorValueMap extends OxPropertyEditor {
|
|
480
|
-
static get styles() {
|
|
481
|
-
return [...OxPropertyEditor.styles]
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
editorTemplate(props) {
|
|
485
|
-
const { value, property } = props
|
|
486
|
-
const valuetype = property?.valuetype || 'string'
|
|
487
|
-
/* IMPLEMENT-ME valuetype 에 editor를 전달할 수 있는 기능 개발 */
|
|
488
|
-
|
|
489
|
-
return html`
|
|
490
|
-
<things-editor-value-map id="editor" .valuetype=${valuetype} .value=${value} fullwidth></things-editor-value-map>
|
|
491
|
-
`
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
customElements.define('property-editor-value-map', PropertyEditorValueMap)
|
|
496
|
-
|
|
497
|
-
class PropertyEditorValueRange extends OxPropertyEditor {
|
|
498
|
-
static get styles() {
|
|
499
|
-
return [...OxPropertyEditor.styles]
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
editorTemplate(props) {
|
|
503
|
-
const { value, property } = props
|
|
504
|
-
const valuetype = property?.valuetype || 'string'
|
|
505
|
-
/* IMPLEMENT-ME valuetype 에 editor를 전달할 수 있는 기능 개발 */
|
|
506
|
-
|
|
507
|
-
return html`
|
|
508
|
-
<things-editor-value-range
|
|
509
|
-
id="editor"
|
|
510
|
-
.valuetype=${valuetype}
|
|
511
|
-
.value=${value}
|
|
512
|
-
fullwidth
|
|
513
|
-
></things-editor-value-range>
|
|
514
|
-
`
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
customElements.define('property-editor-value-range', PropertyEditorValueRange)
|
|
519
|
-
|
|
520
|
-
class PropertyEditorAttachmentSelector extends OxPropertyEditor {
|
|
521
|
-
static get styles() {
|
|
522
|
-
return [...OxPropertyEditor.styles]
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
editorTemplate(props) {
|
|
526
|
-
return html`
|
|
527
|
-
<things-editor-attachment-selector
|
|
528
|
-
id="editor"
|
|
529
|
-
.value=${props.value}
|
|
530
|
-
.properties=${props.property}
|
|
531
|
-
></things-editor-attachment-selector>
|
|
532
|
-
`
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
customElements.define('property-editor-attachment-selector', PropertyEditorAttachmentSelector)
|
|
537
|
-
|
|
538
|
-
class PropertyEditorImageSelector extends OxPropertyEditor {
|
|
539
|
-
static get styles() {
|
|
540
|
-
return [...OxPropertyEditor.styles]
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
editorTemplate(props) {
|
|
544
|
-
return html`
|
|
545
|
-
<things-editor-attachment-selector
|
|
546
|
-
id="editor"
|
|
547
|
-
.value=${props.value}
|
|
548
|
-
.properties=${Object.assign({ category: 'image' }, props)}
|
|
549
|
-
></things-editor-attachment-selector>
|
|
550
|
-
`
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
customElements.define('property-editor-image-selector', PropertyEditorImageSelector)
|
|
555
|
-
|
|
556
11
|
class PropertyEditorFontSelector extends OxPropertyEditor {
|
|
557
12
|
static get styles() {
|
|
558
13
|
return [...OxPropertyEditor.styles]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/modeller-ui",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.6",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -29,14 +29,15 @@
|
|
|
29
29
|
"@graphql-tools/url-loader": "^7.2.0",
|
|
30
30
|
"@graphql-tools/wrap": "^8.1.1",
|
|
31
31
|
"@material/mwc-icon": "^0.25.3",
|
|
32
|
-
"@operato/
|
|
33
|
-
"@operato/
|
|
34
|
-
"@operato/
|
|
35
|
-
"@operato/
|
|
36
|
-
"@operato/
|
|
37
|
-
"@operato/
|
|
38
|
-
"@operato/
|
|
39
|
-
"@operato/
|
|
32
|
+
"@operato/attachment": "1.0.0-alpha.14",
|
|
33
|
+
"@operato/graphql": "1.0.0-alpha.14",
|
|
34
|
+
"@operato/help": "1.0.0-alpha.14",
|
|
35
|
+
"@operato/input": "1.0.0-alpha.14",
|
|
36
|
+
"@operato/layout": "1.0.0-alpha.14",
|
|
37
|
+
"@operato/popup": "1.0.0-alpha.14",
|
|
38
|
+
"@operato/property-editor": "1.0.0-alpha.14",
|
|
39
|
+
"@operato/shell": "1.0.0-alpha.14",
|
|
40
|
+
"@operato/utils": "1.0.0-alpha.14",
|
|
40
41
|
"@polymer/iron-flex-layout": "^3.0.1",
|
|
41
42
|
"@polymer/iron-form-element-behavior": "^3.0.1",
|
|
42
43
|
"@polymer/iron-resizable-behavior": "^3.0.1",
|
|
@@ -49,10 +50,10 @@
|
|
|
49
50
|
"@polymer/paper-listbox": "^3.0.1",
|
|
50
51
|
"@polymer/paper-ripple": "^3.0.2",
|
|
51
52
|
"@polymer/paper-slider": "^3.0.1",
|
|
52
|
-
"@polymer/polymer": "^3.
|
|
53
|
-
"@things-factory/attachment-ui": "^5.0.0-alpha.
|
|
54
|
-
"@things-factory/font-ui": "^5.0.0-alpha.
|
|
55
|
-
"@things-factory/i18n-base": "^5.0.0-alpha.
|
|
53
|
+
"@polymer/polymer": "^3.4.1",
|
|
54
|
+
"@things-factory/attachment-ui": "^5.0.0-alpha.6",
|
|
55
|
+
"@things-factory/font-ui": "^5.0.0-alpha.6",
|
|
56
|
+
"@things-factory/i18n-base": "^5.0.0-alpha.6",
|
|
56
57
|
"ace-builds": "^1.4.11",
|
|
57
58
|
"brace": "^0.11.1",
|
|
58
59
|
"codemirror": "^5.59.1",
|
|
@@ -64,5 +65,5 @@
|
|
|
64
65
|
"devDependencies": {
|
|
65
66
|
"@types/codemirror": "^0.0.105"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "72544163ae4a11a4d34cda016f4a28a3207806ae"
|
|
68
69
|
}
|