@things-factory/modeller-ui 4.0.32 → 4.0.36
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.
|
@@ -18,9 +18,13 @@ import './things-editor-value-map'
|
|
|
18
18
|
import './things-editor-value-range'
|
|
19
19
|
import './things-editor-attachment-selector'
|
|
20
20
|
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
|
+
|
|
25
|
+
import { css, html } from 'lit'
|
|
21
26
|
|
|
22
27
|
import { OxPropertyEditor } from '@operato/property-editor'
|
|
23
|
-
import { html } from 'lit'
|
|
24
28
|
|
|
25
29
|
class PropertyEditorLegend extends OxPropertyEditor {
|
|
26
30
|
static get is() {
|
|
@@ -244,7 +248,17 @@ class PropertyEditorSelect extends OxPropertyEditor {
|
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
static get styles() {
|
|
247
|
-
return [
|
|
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
|
+
]
|
|
248
262
|
}
|
|
249
263
|
|
|
250
264
|
async connectedCallback() {
|
|
@@ -266,15 +280,17 @@ class PropertyEditorSelect extends OxPropertyEditor {
|
|
|
266
280
|
}
|
|
267
281
|
|
|
268
282
|
return html`
|
|
269
|
-
<select id="editor">
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
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>
|
|
278
294
|
`
|
|
279
295
|
}
|
|
280
296
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/modeller-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.36",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -29,7 +29,9 @@
|
|
|
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/
|
|
32
|
+
"@operato/input": "^0.3.16",
|
|
33
|
+
"@operato/popup": "^0.3.16",
|
|
34
|
+
"@operato/property-editor": "^0.3.16",
|
|
33
35
|
"@polymer/iron-flex-layout": "^3.0.1",
|
|
34
36
|
"@polymer/iron-form-element-behavior": "^3.0.1",
|
|
35
37
|
"@polymer/iron-resizable-behavior": "^3.0.1",
|
|
@@ -43,9 +45,9 @@
|
|
|
43
45
|
"@polymer/paper-ripple": "^3.0.2",
|
|
44
46
|
"@polymer/paper-slider": "^3.0.1",
|
|
45
47
|
"@polymer/polymer": "^3.3.1",
|
|
46
|
-
"@things-factory/attachment-ui": "^4.0.
|
|
47
|
-
"@things-factory/font-ui": "^4.0.
|
|
48
|
-
"@things-factory/i18n-base": "^4.0.
|
|
48
|
+
"@things-factory/attachment-ui": "^4.0.36",
|
|
49
|
+
"@things-factory/font-ui": "^4.0.36",
|
|
50
|
+
"@things-factory/i18n-base": "^4.0.36",
|
|
49
51
|
"ace-builds": "^1.4.11",
|
|
50
52
|
"brace": "^0.11.1",
|
|
51
53
|
"codemirror": "^5.59.1",
|
|
@@ -57,5 +59,5 @@
|
|
|
57
59
|
"devDependencies": {
|
|
58
60
|
"@types/codemirror": "^0.0.105"
|
|
59
61
|
},
|
|
60
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "132ab9f8af8c34f73bcd81a9776769a6929e13ee"
|
|
61
63
|
}
|