@operato/property-editor 1.1.74 → 1.1.76
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 +18 -0
- package/dist/src/ox-property-editor-action.d.ts +2 -1
- package/dist/src/ox-property-editor-action.js.map +1 -1
- package/dist/src/ox-property-editor-angle.d.ts +2 -1
- package/dist/src/ox-property-editor-angle.js.map +1 -1
- package/dist/src/ox-property-editor-checkbox.d.ts +2 -1
- package/dist/src/ox-property-editor-checkbox.js.map +1 -1
- package/dist/src/ox-property-editor-color.d.ts +2 -1
- package/dist/src/ox-property-editor-color.js.map +1 -1
- package/dist/src/ox-property-editor-crontab.d.ts +2 -1
- package/dist/src/ox-property-editor-crontab.js.map +1 -1
- package/dist/src/ox-property-editor-data.d.ts +2 -1
- package/dist/src/ox-property-editor-data.js.map +1 -1
- package/dist/src/ox-property-editor-date.d.ts +2 -1
- package/dist/src/ox-property-editor-date.js.map +1 -1
- package/dist/src/ox-property-editor-duration.d.ts +2 -1
- package/dist/src/ox-property-editor-duration.js.map +1 -1
- package/dist/src/ox-property-editor-file.d.ts +2 -1
- package/dist/src/ox-property-editor-file.js.map +1 -1
- package/dist/src/ox-property-editor-gradient-colorstops.d.ts +2 -1
- package/dist/src/ox-property-editor-gradient-colorstops.js.map +1 -1
- package/dist/src/ox-property-editor-hashtags.d.ts +2 -1
- package/dist/src/ox-property-editor-hashtags.js.map +1 -1
- package/dist/src/ox-property-editor-image.d.ts +2 -1
- package/dist/src/ox-property-editor-image.js.map +1 -1
- package/dist/src/ox-property-editor-key-values.d.ts +2 -1
- package/dist/src/ox-property-editor-key-values.js.map +1 -1
- package/dist/src/ox-property-editor-legend.d.ts +2 -1
- package/dist/src/ox-property-editor-legend.js.map +1 -1
- package/dist/src/ox-property-editor-mass-fraction.d.ts +2 -1
- package/dist/src/ox-property-editor-mass-fraction.js.map +1 -1
- package/dist/src/ox-property-editor-multiple-colors.d.ts +2 -1
- package/dist/src/ox-property-editor-multiple-colors.js.map +1 -1
- package/dist/src/ox-property-editor-number.d.ts +2 -1
- package/dist/src/ox-property-editor-number.js.map +1 -1
- package/dist/src/ox-property-editor-options.d.ts +2 -1
- package/dist/src/ox-property-editor-options.js.map +1 -1
- package/dist/src/ox-property-editor-partition-keys.d.ts +2 -1
- package/dist/src/ox-property-editor-partition-keys.js.map +1 -1
- package/dist/src/ox-property-editor-password.d.ts +2 -1
- package/dist/src/ox-property-editor-password.js.map +1 -1
- package/dist/src/ox-property-editor-range.d.ts +2 -1
- package/dist/src/ox-property-editor-range.js.map +1 -1
- package/dist/src/ox-property-editor-scene-component-id.d.ts +2 -1
- package/dist/src/ox-property-editor-scene-component-id.js.map +1 -1
- package/dist/src/ox-property-editor-select.d.ts +2 -2
- package/dist/src/ox-property-editor-select.js +1 -1
- package/dist/src/ox-property-editor-select.js.map +1 -1
- package/dist/src/ox-property-editor-solid-colorstops.d.ts +2 -1
- package/dist/src/ox-property-editor-solid-colorstops.js.map +1 -1
- package/dist/src/ox-property-editor-string.d.ts +2 -1
- package/dist/src/ox-property-editor-string.js.map +1 -1
- package/dist/src/ox-property-editor-table.d.ts +2 -1
- package/dist/src/ox-property-editor-table.js.map +1 -1
- package/dist/src/ox-property-editor-textarea.d.ts +2 -1
- package/dist/src/ox-property-editor-textarea.js.map +1 -1
- package/dist/src/ox-property-editor-unit-number.d.ts +2 -1
- package/dist/src/ox-property-editor-unit-number.js.map +1 -1
- package/dist/src/ox-property-editor-value-map.d.ts +2 -1
- package/dist/src/ox-property-editor-value-map.js.map +1 -1
- package/dist/src/ox-property-editor-value-ranges.d.ts +2 -1
- package/dist/src/ox-property-editor-value-ranges.js.map +1 -1
- package/dist/src/ox-property-editor-work-shift.d.ts +2 -1
- package/dist/src/ox-property-editor-work-shift.js.map +1 -1
- package/dist/src/ox-property-editor.d.ts +1 -1
- package/dist/src/ox-property-editor.js +1 -1
- package/dist/src/ox-property-editor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/ox-property-editor-action.ts +2 -2
- package/src/ox-property-editor-angle.ts +2 -2
- package/src/ox-property-editor-checkbox.ts +2 -2
- package/src/ox-property-editor-color.ts +2 -2
- package/src/ox-property-editor-crontab.ts +2 -2
- package/src/ox-property-editor-data.ts +2 -2
- package/src/ox-property-editor-date.ts +2 -2
- package/src/ox-property-editor-duration.ts +2 -2
- package/src/ox-property-editor-file.ts +2 -2
- package/src/ox-property-editor-gradient-colorstops.ts +2 -2
- package/src/ox-property-editor-hashtags.ts +2 -2
- package/src/ox-property-editor-image.ts +2 -2
- package/src/ox-property-editor-key-values.ts +2 -2
- package/src/ox-property-editor-legend.ts +2 -2
- package/src/ox-property-editor-mass-fraction.ts +2 -2
- package/src/ox-property-editor-multiple-colors.ts +2 -2
- package/src/ox-property-editor-number.ts +2 -2
- package/src/ox-property-editor-options.ts +2 -2
- package/src/ox-property-editor-partition-keys.ts +2 -2
- package/src/ox-property-editor-password.ts +2 -2
- package/src/ox-property-editor-range.ts +2 -2
- package/src/ox-property-editor-scene-component-id.ts +2 -2
- package/src/ox-property-editor-select.ts +3 -3
- package/src/ox-property-editor-solid-colorstops.ts +2 -2
- package/src/ox-property-editor-string.ts +2 -2
- package/src/ox-property-editor-table.ts +2 -2
- package/src/ox-property-editor-textarea.ts +2 -2
- package/src/ox-property-editor-unit-number.ts +2 -2
- package/src/ox-property-editor-value-map.ts +2 -2
- package/src/ox-property-editor-value-ranges.ts +2 -2
- package/src/ox-property-editor-work-shift.ts +2 -2
- package/src/ox-property-editor.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
1
|
+
import { html, TemplateResult } from 'lit'
|
|
2
2
|
import { customElement } from 'lit/decorators.js'
|
|
3
3
|
import '@operato/input/ox-input-hashtags.js'
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ import { PropertySpec } from './types.js'
|
|
|
7
7
|
|
|
8
8
|
@customElement('ox-property-editor-hashtags')
|
|
9
9
|
export class OxPropertyEditorHashtags extends OxPropertyEditor {
|
|
10
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
10
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
11
11
|
return html`
|
|
12
12
|
<ox-input-hashtags type="text" id="editor" .value=${value || ''} placeholder=${spec.placeholder || ''}>
|
|
13
13
|
</ox-input-hashtags>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-image.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -12,7 +12,7 @@ export class OxPropertyEditorImage extends OxPropertyEditor {
|
|
|
12
12
|
return v
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
15
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
16
16
|
const { fullwidth = false } = spec.editor || {}
|
|
17
17
|
|
|
18
18
|
return html` <ox-input-image id="editor" .value=${value} ?fullwidth=${fullwidth}></ox-input-image> `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-key-values.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-key-values')
|
|
10
10
|
export class OxPropertyEditorKeyValues extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { options } = spec.property || {}
|
|
13
13
|
const { fullwidth = true } = spec.editor || {}
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
1
|
+
import { html, TemplateResult } from 'lit'
|
|
2
2
|
import { customElement } from 'lit/decorators.js'
|
|
3
3
|
|
|
4
4
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -6,7 +6,7 @@ import { PropertySpec } from './types.js'
|
|
|
6
6
|
|
|
7
7
|
@customElement('ox-property-editor-legend')
|
|
8
8
|
export class OxPropertyEditorLegend extends OxPropertyEditor {
|
|
9
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
9
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
10
10
|
return html` <legend>${spec.property.label}</legend> `
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-mass-fraction.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-mass-fraction')
|
|
10
10
|
export class OxPropertyEditorMassFraction extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { defaultValue } = spec.property || {}
|
|
13
13
|
const { fullwidth = true } = spec.editor || {}
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-multiple-colors.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-multiple-colors')
|
|
10
10
|
export class OxPropertyEditorMultipleColors extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
return html` <ox-input-multiple-colors id="editor" .value=${value}> </ox-input-multiple-colors> `
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
1
|
+
import { html, TemplateResult } from 'lit'
|
|
2
2
|
import { customElement } from 'lit/decorators.js'
|
|
3
3
|
|
|
4
4
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -10,7 +10,7 @@ export class OxPropertyEditorNumber extends OxPropertyEditor {
|
|
|
10
10
|
return Number(v)
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
13
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
14
14
|
const { step, min, max } = spec.property || {}
|
|
15
15
|
|
|
16
16
|
return html`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-options.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-options')
|
|
10
10
|
export class OxPropertyEditorOptions extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = false } = spec.editor || {}
|
|
13
13
|
|
|
14
14
|
return html` <ox-input-options id="editor" .value=${value || []} ?fullwidth=${fullwidth}></ox-input-options> `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-partition-keys.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-partition-keys')
|
|
10
10
|
export class OxPropertyEditorPartitionKeys extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
14
|
return html`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
1
|
+
import { html, TemplateResult } from 'lit'
|
|
2
2
|
import { customElement } from 'lit/decorators.js'
|
|
3
3
|
|
|
4
4
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -6,7 +6,7 @@ import { PropertySpec } from './types.js'
|
|
|
6
6
|
|
|
7
7
|
@customElement('ox-property-editor-password')
|
|
8
8
|
export class OxPropertyEditorPassword extends OxPropertyEditor {
|
|
9
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
9
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
10
10
|
return html` <input type="password" id="editor" .value=${value} placeholder=${spec.placeholder || ''} /> `
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-range.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-range')
|
|
10
10
|
export class OxPropertyEditorRange extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { step, min, max } = spec.property || {}
|
|
13
13
|
const { fullwidth = false } = spec.editor || {}
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-scene-component-id.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-scene-component-id')
|
|
10
10
|
export class OxPropertyEditorSceneComponentId extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
return html`
|
|
13
13
|
<ox-input-scene-component-id id="editor" .value=${value} .property=${spec.property}></ox-input-scene-component-id>
|
|
14
14
|
`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@operato/input/ox-select.js'
|
|
2
2
|
import '@operato/popup/ox-popup-list.js'
|
|
3
3
|
|
|
4
|
-
import { css, html, LitElement } from 'lit'
|
|
4
|
+
import { css, html, LitElement, TemplateResult } from 'lit'
|
|
5
5
|
import { customElement, query } from 'lit/decorators.js'
|
|
6
6
|
|
|
7
7
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -39,7 +39,7 @@ export class OxPropertyEditorSelect extends OxPropertyEditor {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
42
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
43
43
|
var options = spec.property?.options as Option[]
|
|
44
44
|
if (!(options instanceof Array)) {
|
|
45
45
|
options = []
|
|
@@ -47,7 +47,7 @@ export class OxPropertyEditorSelect extends OxPropertyEditor {
|
|
|
47
47
|
const { fullwidth = false } = spec.editor || {}
|
|
48
48
|
|
|
49
49
|
return html`
|
|
50
|
-
<ox-select id="editor" .value=${value} placeholder=${spec.placeholder} ?fullwidth=${fullwidth}>
|
|
50
|
+
<ox-select id="editor" .value=${value} placeholder=${spec.placeholder || ''} ?fullwidth=${fullwidth}>
|
|
51
51
|
<ox-popup-list with-search>
|
|
52
52
|
${options.map(
|
|
53
53
|
item => html`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-color-stops.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-solid-colorstops')
|
|
10
10
|
export class OxPropertyEditorSolidColorStops extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
14
|
return html`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
1
|
+
import { html, TemplateResult } from 'lit'
|
|
2
2
|
import { customElement } from 'lit/decorators.js'
|
|
3
3
|
|
|
4
4
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -6,7 +6,7 @@ import { PropertySpec } from './types.js'
|
|
|
6
6
|
|
|
7
7
|
@customElement('ox-property-editor-string')
|
|
8
8
|
export class OxPropertyEditorString extends OxPropertyEditor {
|
|
9
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
9
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
10
10
|
return html` <input type="text" id="editor" .value=${value || ''} placeholder=${spec.placeholder || ''} /> `
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-table.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-table')
|
|
10
10
|
export class OxPropertyEditorString extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
14
|
return html` <ox-input-table id="editor" .property=${spec.property} ?fullwidth=${fullwidth}></ox-input-table> `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-code.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-textarea')
|
|
10
10
|
export class OxPropertyEditorTextArea extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
14
|
return html`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-unit-number.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -12,7 +12,7 @@ export class OxPropertyEditorNumberUnit extends OxPropertyEditor {
|
|
|
12
12
|
return Number(v)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
15
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
16
16
|
const { step, min, max, unit, userUnit } = spec.property || {}
|
|
17
17
|
|
|
18
18
|
return html`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-value-map.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-value-map')
|
|
10
10
|
export class OxPropertyEditorValueMap extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { property } = spec
|
|
13
13
|
const valuetype = property?.valuetype || 'string'
|
|
14
14
|
/* IMPLEMENT-ME valuetype 에 editor를 전달할 수 있는 기능 개발 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-value-ranges.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-value-ranges')
|
|
10
10
|
export class OxPropertyEditorValueRanges extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { property } = spec
|
|
13
13
|
const valuetype = property?.valuetype || 'string'
|
|
14
14
|
/* IMPLEMENT-ME valuetype 에 editor를 전달할 수 있는 기능 개발 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@operato/input/ox-input-work-shift.js'
|
|
2
2
|
|
|
3
|
-
import { html } from 'lit'
|
|
3
|
+
import { html, TemplateResult } from 'lit'
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxPropertyEditor } from './ox-property-editor.js'
|
|
@@ -8,7 +8,7 @@ import { PropertySpec } from './types.js'
|
|
|
8
8
|
|
|
9
9
|
@customElement('ox-property-editor-work-shift')
|
|
10
10
|
export class OxPropertyEditorWorkShift extends OxPropertyEditor {
|
|
11
|
-
editorTemplate(value: any, spec: PropertySpec) {
|
|
11
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { editor } = spec
|
|
13
13
|
const { fullwidth = true } = editor || {}
|
|
14
14
|
|
|
@@ -131,7 +131,7 @@ export class OxPropertyEditor extends LitElement {
|
|
|
131
131
|
this.renderRoot.addEventListener('change', this._valueChanged.bind(this))
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
editorTemplate(value: any, spec: PropertySpec): TemplateResult
|
|
134
|
+
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
135
135
|
return html``
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -171,7 +171,7 @@ export class OxPropertyEditor extends LitElement {
|
|
|
171
171
|
|
|
172
172
|
if (changedProperties.has('value')) {
|
|
173
173
|
this.__by_me = true
|
|
174
|
-
this.value =
|
|
174
|
+
this.value = this.makeup(this.value)
|
|
175
175
|
this.__by_me = false
|
|
176
176
|
}
|
|
177
177
|
|