@things-factory/modeller-ui 4.0.34 → 4.0.35

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 [...OxPropertyEditor.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
+ ]
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
- ${options.map(
271
- item => html`
272
- <option value=${props._getOptionValue(item)} ?selected=${props._isSelected(props.value, item)}>
273
- ${this._getOptionDisplay(item)}
274
- </option>
275
- `
276
- )}
277
- </select>
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`&nbsp;`}
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.34",
3
+ "version": "4.0.35",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -29,9 +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/input": "^0.3.14",
33
- "@operato/popup": "^0.3.14",
34
- "@operato/property-editor": "^0.3.14",
32
+ "@operato/input": "^0.3.15",
33
+ "@operato/popup": "^0.3.15",
34
+ "@operato/property-editor": "^0.3.15",
35
35
  "@polymer/iron-flex-layout": "^3.0.1",
36
36
  "@polymer/iron-form-element-behavior": "^3.0.1",
37
37
  "@polymer/iron-resizable-behavior": "^3.0.1",
@@ -45,9 +45,9 @@
45
45
  "@polymer/paper-ripple": "^3.0.2",
46
46
  "@polymer/paper-slider": "^3.0.1",
47
47
  "@polymer/polymer": "^3.3.1",
48
- "@things-factory/attachment-ui": "^4.0.34",
49
- "@things-factory/font-ui": "^4.0.34",
50
- "@things-factory/i18n-base": "^4.0.34",
48
+ "@things-factory/attachment-ui": "^4.0.35",
49
+ "@things-factory/font-ui": "^4.0.35",
50
+ "@things-factory/i18n-base": "^4.0.35",
51
51
  "ace-builds": "^1.4.11",
52
52
  "brace": "^0.11.1",
53
53
  "codemirror": "^5.59.1",
@@ -59,5 +59,5 @@
59
59
  "devDependencies": {
60
60
  "@types/codemirror": "^0.0.105"
61
61
  },
62
- "gitHead": "b79919fd02f8388f1d40300c52a25903ad98110c"
62
+ "gitHead": "842a39426de15e808ee3aaf5972f1024afe5281f"
63
63
  }