@operato/property-editor 1.11.16 → 1.11.17
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 +9 -0
- package/dist/src/ox-property-editor-3axis.js +3 -1
- package/dist/src/ox-property-editor-3axis.js.map +1 -1
- package/dist/src/ox-property-editor-3dish.js +1 -0
- package/dist/src/ox-property-editor-3dish.js.map +1 -1
- package/dist/src/ox-property-editor-action.js +1 -0
- package/dist/src/ox-property-editor-action.js.map +1 -1
- package/dist/src/ox-property-editor-angle.js +8 -1
- package/dist/src/ox-property-editor-angle.js.map +1 -1
- package/dist/src/ox-property-editor-checkbox.js +1 -1
- package/dist/src/ox-property-editor-checkbox.js.map +1 -1
- package/dist/src/ox-property-editor-color.js +7 -1
- package/dist/src/ox-property-editor-color.js.map +1 -1
- package/dist/src/ox-property-editor-crontab.js +4 -1
- package/dist/src/ox-property-editor-crontab.js.map +1 -1
- package/dist/src/ox-property-editor-data.js +8 -1
- package/dist/src/ox-property-editor-data.js.map +1 -1
- package/dist/src/ox-property-editor-date.js +1 -1
- package/dist/src/ox-property-editor-date.js.map +1 -1
- package/dist/src/ox-property-editor-duration.js +4 -1
- package/dist/src/ox-property-editor-duration.js.map +1 -1
- package/dist/src/ox-property-editor-file.js +7 -1
- package/dist/src/ox-property-editor-file.js.map +1 -1
- package/dist/src/ox-property-editor-gradient-colorstops.js +1 -0
- package/dist/src/ox-property-editor-gradient-colorstops.js.map +1 -1
- package/dist/src/ox-property-editor-hashtags.js +7 -1
- package/dist/src/ox-property-editor-hashtags.js.map +1 -1
- package/dist/src/ox-property-editor-image.js +3 -1
- package/dist/src/ox-property-editor-image.js.map +1 -1
- package/dist/src/ox-property-editor-key-values.js +1 -0
- package/dist/src/ox-property-editor-key-values.js.map +1 -1
- package/dist/src/ox-property-editor-mass-fraction.js +1 -0
- package/dist/src/ox-property-editor-mass-fraction.js.map +1 -1
- package/dist/src/ox-property-editor-month.js +1 -1
- package/dist/src/ox-property-editor-month.js.map +1 -1
- package/dist/src/ox-property-editor-multiple-colors.js +3 -1
- package/dist/src/ox-property-editor-multiple-colors.js.map +1 -1
- package/dist/src/ox-property-editor-number.js +1 -0
- package/dist/src/ox-property-editor-number.js.map +1 -1
- package/dist/src/ox-property-editor-options.js +8 -1
- package/dist/src/ox-property-editor-options.js.map +1 -1
- package/dist/src/ox-property-editor-partition-keys.js +6 -1
- package/dist/src/ox-property-editor-partition-keys.js.map +1 -1
- package/dist/src/ox-property-editor-password.js +9 -1
- package/dist/src/ox-property-editor-password.js.map +1 -1
- package/dist/src/ox-property-editor-range.js +1 -0
- package/dist/src/ox-property-editor-range.js.map +1 -1
- package/dist/src/ox-property-editor-scene-component-id.js +6 -1
- package/dist/src/ox-property-editor-scene-component-id.js.map +1 -1
- package/dist/src/ox-property-editor-select.js +7 -1
- package/dist/src/ox-property-editor-select.js.map +1 -1
- package/dist/src/ox-property-editor-solid-colorstops.js +1 -0
- package/dist/src/ox-property-editor-solid-colorstops.js.map +1 -1
- package/dist/src/ox-property-editor-string.js +9 -1
- package/dist/src/ox-property-editor-string.js.map +1 -1
- package/dist/src/ox-property-editor-table.js +8 -1
- package/dist/src/ox-property-editor-table.js.map +1 -1
- package/dist/src/ox-property-editor-textarea.js +1 -0
- package/dist/src/ox-property-editor-textarea.js.map +1 -1
- package/dist/src/ox-property-editor-time.js +1 -1
- package/dist/src/ox-property-editor-time.js.map +1 -1
- package/dist/src/ox-property-editor-unit-number.js +1 -0
- package/dist/src/ox-property-editor-unit-number.js.map +1 -1
- package/dist/src/ox-property-editor-value-map.js +1 -0
- package/dist/src/ox-property-editor-value-map.js.map +1 -1
- package/dist/src/ox-property-editor-value-ranges.js +1 -0
- package/dist/src/ox-property-editor-value-ranges.js.map +1 -1
- package/dist/src/ox-property-editor-work-shift.js +8 -1
- package/dist/src/ox-property-editor-work-shift.js.map +1 -1
- package/dist/src/ox-property-editor.d.ts +1 -0
- package/dist/src/ox-property-editor.js +3 -0
- package/dist/src/ox-property-editor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/ox-property-editor-3axis.ts +3 -1
- package/src/ox-property-editor-3dish.ts +1 -0
- package/src/ox-property-editor-action.ts +1 -0
- package/src/ox-property-editor-angle.ts +8 -1
- package/src/ox-property-editor-checkbox.ts +1 -1
- package/src/ox-property-editor-color.ts +7 -1
- package/src/ox-property-editor-crontab.ts +4 -1
- package/src/ox-property-editor-data.ts +8 -1
- package/src/ox-property-editor-date.ts +1 -1
- package/src/ox-property-editor-duration.ts +4 -1
- package/src/ox-property-editor-file.ts +7 -1
- package/src/ox-property-editor-gradient-colorstops.ts +1 -0
- package/src/ox-property-editor-hashtags.ts +7 -1
- package/src/ox-property-editor-image.ts +3 -1
- package/src/ox-property-editor-key-values.ts +1 -0
- package/src/ox-property-editor-mass-fraction.ts +1 -0
- package/src/ox-property-editor-month.ts +1 -1
- package/src/ox-property-editor-multiple-colors.ts +3 -1
- package/src/ox-property-editor-number.ts +1 -0
- package/src/ox-property-editor-options.ts +8 -1
- package/src/ox-property-editor-partition-keys.ts +6 -1
- package/src/ox-property-editor-password.ts +9 -1
- package/src/ox-property-editor-range.ts +1 -0
- package/src/ox-property-editor-scene-component-id.ts +6 -1
- package/src/ox-property-editor-select.ts +7 -1
- package/src/ox-property-editor-solid-colorstops.ts +1 -0
- package/src/ox-property-editor-string.ts +9 -1
- package/src/ox-property-editor-table.ts +8 -1
- package/src/ox-property-editor-textarea.ts +1 -0
- package/src/ox-property-editor-time.ts +1 -1
- package/src/ox-property-editor-unit-number.ts +1 -0
- package/src/ox-property-editor-value-map.ts +1 -0
- package/src/ox-property-editor-value-ranges.ts +1 -0
- package/src/ox-property-editor-work-shift.ts +8 -1
- package/src/ox-property-editor.ts +1 -0
|
@@ -12,6 +12,8 @@ export class OxPropertyEditor3Axis extends OxPropertyEditor {
|
|
|
12
12
|
const { editor } = spec
|
|
13
13
|
const { fullwidth = true } = editor || {}
|
|
14
14
|
|
|
15
|
-
return html`
|
|
15
|
+
return html`
|
|
16
|
+
<ox-input-3axis id="editor" .value=${value} ?fullwidth=${fullwidth} ?disabled=${this.disabled}></ox-input-3axis>
|
|
17
|
+
`
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -9,6 +9,13 @@ import { PropertySpec } from './types.js'
|
|
|
9
9
|
@customElement('ox-property-editor-angle')
|
|
10
10
|
export class OxPropertyEditorAngle extends OxPropertyEditor {
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
|
-
return html`
|
|
12
|
+
return html`
|
|
13
|
+
<ox-input-angle
|
|
14
|
+
id="editor"
|
|
15
|
+
.value=${value}
|
|
16
|
+
placeholder=${spec.placeholder || ''}
|
|
17
|
+
?disabled=${this.disabled}
|
|
18
|
+
></ox-input-angle>
|
|
19
|
+
`
|
|
13
20
|
}
|
|
14
21
|
}
|
|
@@ -13,6 +13,6 @@ export class OxPropertyEditorCheckbox extends OxPropertyEditor {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
16
|
-
return html` <ox-checkbox id="editor" ?checked=${value}></ox-checkbox>`
|
|
16
|
+
return html` <ox-checkbox id="editor" ?checked=${value} ?disabled=${this.disabled}></ox-checkbox>`
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -10,7 +10,13 @@ import { PropertySpec } from './types.js'
|
|
|
10
10
|
export class OxPropertyEditorColor extends OxPropertyEditor {
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
return html`
|
|
13
|
-
<ox-input-color
|
|
13
|
+
<ox-input-color
|
|
14
|
+
id="editor"
|
|
15
|
+
.value=${value}
|
|
16
|
+
placeholder=${spec.placeholder || ''}
|
|
17
|
+
.properties=${spec.property}
|
|
18
|
+
?disabled=${this.disabled}
|
|
19
|
+
>
|
|
14
20
|
</ox-input-color>
|
|
15
21
|
`
|
|
16
22
|
}
|
|
@@ -11,6 +11,9 @@ export class OxPropertyEditorCrontab extends OxPropertyEditor {
|
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
|
-
return html`
|
|
14
|
+
return html`
|
|
15
|
+
<ox-input-crontab id="editor" .value=${value} ?fullwidth=${fullwidth} ?disabled=${this.disabled}>
|
|
16
|
+
</ox-input-crontab>
|
|
17
|
+
`
|
|
15
18
|
}
|
|
16
19
|
}
|
|
@@ -11,6 +11,13 @@ export class OxPropertyEditorData extends OxPropertyEditor {
|
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
|
-
return html`
|
|
14
|
+
return html`
|
|
15
|
+
<ox-input-data
|
|
16
|
+
id="editor"
|
|
17
|
+
.value=${value || []}
|
|
18
|
+
?fullwidth=${fullwidth}
|
|
19
|
+
?disabled=${this.disabled}
|
|
20
|
+
></ox-input-data>
|
|
21
|
+
`
|
|
15
22
|
}
|
|
16
23
|
}
|
|
@@ -7,6 +7,6 @@ import { PropertySpec } from './types.js'
|
|
|
7
7
|
@customElement('ox-property-editor-date')
|
|
8
8
|
export class OxPropertyEditorDate extends OxPropertyEditor {
|
|
9
9
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
10
|
-
return html` <input type="date" id="editor" .value=${value} /> `
|
|
10
|
+
return html` <input type="date" id="editor" .value=${value} ?disabled=${this.disabled} /> `
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -11,6 +11,9 @@ export class OxPropertyEditorDuration extends OxPropertyEditor {
|
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
|
-
return html`
|
|
14
|
+
return html`
|
|
15
|
+
<ox-input-duration id="editor" .value=${value} ?fullwidth=${fullwidth} ?disabled=${this.disabled}>
|
|
16
|
+
</ox-input-duration>
|
|
17
|
+
`
|
|
15
18
|
}
|
|
16
19
|
}
|
|
@@ -14,7 +14,13 @@ export class OxPropertyEditorFile extends OxPropertyEditor {
|
|
|
14
14
|
const { fullwidth = false } = spec.editor || {}
|
|
15
15
|
|
|
16
16
|
return html`
|
|
17
|
-
<ox-input-file
|
|
17
|
+
<ox-input-file
|
|
18
|
+
id="editor"
|
|
19
|
+
.value=${value || []}
|
|
20
|
+
?multiple=${multiple}
|
|
21
|
+
?fullwidth=${fullwidth}
|
|
22
|
+
?disabled=${this.disabled}
|
|
23
|
+
></ox-input-file>
|
|
18
24
|
`
|
|
19
25
|
}
|
|
20
26
|
}
|
|
@@ -9,7 +9,13 @@ import { PropertySpec } from './types.js'
|
|
|
9
9
|
export class OxPropertyEditorHashtags extends OxPropertyEditor {
|
|
10
10
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
11
11
|
return html`
|
|
12
|
-
<ox-input-hashtags
|
|
12
|
+
<ox-input-hashtags
|
|
13
|
+
type="text"
|
|
14
|
+
id="editor"
|
|
15
|
+
.value=${value || ''}
|
|
16
|
+
placeholder=${spec.placeholder || ''}
|
|
17
|
+
?disabled=${this.disabled}
|
|
18
|
+
>
|
|
13
19
|
</ox-input-hashtags>
|
|
14
20
|
`
|
|
15
21
|
}
|
|
@@ -15,6 +15,8 @@ export class OxPropertyEditorImage extends OxPropertyEditor {
|
|
|
15
15
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
16
16
|
const { fullwidth = false } = spec.editor || {}
|
|
17
17
|
|
|
18
|
-
return html`
|
|
18
|
+
return html`
|
|
19
|
+
<ox-input-image id="editor" .value=${value} ?fullwidth=${fullwidth} ?disabled=${this.disabled}></ox-input-image>
|
|
20
|
+
`
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -7,6 +7,6 @@ import { PropertySpec } from './types.js'
|
|
|
7
7
|
@customElement('ox-property-editor-month')
|
|
8
8
|
export class OxPropertyEditorMonth extends OxPropertyEditor {
|
|
9
9
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
10
|
-
return html` <input type="month" id="editor" .value=${value} /> `
|
|
10
|
+
return html` <input type="month" id="editor" .value=${value} ?disabled=${this.disabled} /> `
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -9,6 +9,8 @@ import { PropertySpec } from './types.js'
|
|
|
9
9
|
@customElement('ox-property-editor-multiple-colors')
|
|
10
10
|
export class OxPropertyEditorMultipleColors extends OxPropertyEditor {
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
|
-
return html`
|
|
12
|
+
return html`
|
|
13
|
+
<ox-input-multiple-colors id="editor" .value=${value} ?disabled=${this.disabled}> </ox-input-multiple-colors>
|
|
14
|
+
`
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -11,6 +11,13 @@ export class OxPropertyEditorOptions extends OxPropertyEditor {
|
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = false } = spec.editor || {}
|
|
13
13
|
|
|
14
|
-
return html`
|
|
14
|
+
return html`
|
|
15
|
+
<ox-input-options
|
|
16
|
+
id="editor"
|
|
17
|
+
.value=${value || []}
|
|
18
|
+
?fullwidth=${fullwidth}
|
|
19
|
+
?disabled=${this.disabled}
|
|
20
|
+
></ox-input-options>
|
|
21
|
+
`
|
|
15
22
|
}
|
|
16
23
|
}
|
|
@@ -12,7 +12,12 @@ export class OxPropertyEditorPartitionKeys extends OxPropertyEditor {
|
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
14
|
return html`
|
|
15
|
-
<ox-input-partition-keys
|
|
15
|
+
<ox-input-partition-keys
|
|
16
|
+
id="editor"
|
|
17
|
+
.value=${value}
|
|
18
|
+
?fullwidth=${fullwidth}
|
|
19
|
+
?disabled=${this.disabled}
|
|
20
|
+
></ox-input-partition-keys>
|
|
16
21
|
`
|
|
17
22
|
}
|
|
18
23
|
}
|
|
@@ -7,6 +7,14 @@ import { PropertySpec } from './types.js'
|
|
|
7
7
|
@customElement('ox-property-editor-password')
|
|
8
8
|
export class OxPropertyEditorPassword extends OxPropertyEditor {
|
|
9
9
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
10
|
-
return html`
|
|
10
|
+
return html`
|
|
11
|
+
<input
|
|
12
|
+
type="password"
|
|
13
|
+
id="editor"
|
|
14
|
+
.value=${value}
|
|
15
|
+
placeholder=${spec.placeholder || ''}
|
|
16
|
+
?disabled=${this.disabled}
|
|
17
|
+
/>
|
|
18
|
+
`
|
|
11
19
|
}
|
|
12
20
|
}
|
|
@@ -10,7 +10,12 @@ import { PropertySpec } from './types.js'
|
|
|
10
10
|
export class OxPropertyEditorSceneComponentId extends OxPropertyEditor {
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
return html`
|
|
13
|
-
<ox-input-scene-component-id
|
|
13
|
+
<ox-input-scene-component-id
|
|
14
|
+
id="editor"
|
|
15
|
+
.value=${value}
|
|
16
|
+
.property=${spec.property}
|
|
17
|
+
?disabled=${this.disabled}
|
|
18
|
+
></ox-input-scene-component-id>
|
|
14
19
|
`
|
|
15
20
|
}
|
|
16
21
|
}
|
|
@@ -47,7 +47,13 @@ export class OxPropertyEditorSelect extends OxPropertyEditor {
|
|
|
47
47
|
const { fullwidth = false } = spec.editor || {}
|
|
48
48
|
|
|
49
49
|
return html`
|
|
50
|
-
<ox-select
|
|
50
|
+
<ox-select
|
|
51
|
+
id="editor"
|
|
52
|
+
.value=${value}
|
|
53
|
+
placeholder=${spec.placeholder || ''}
|
|
54
|
+
?fullwidth=${fullwidth}
|
|
55
|
+
?disabled=${this.disabled}
|
|
56
|
+
>
|
|
51
57
|
<ox-popup-list with-search>
|
|
52
58
|
${options.map(
|
|
53
59
|
item => html`
|
|
@@ -7,6 +7,14 @@ import { PropertySpec } from './types.js'
|
|
|
7
7
|
@customElement('ox-property-editor-string')
|
|
8
8
|
export class OxPropertyEditorString extends OxPropertyEditor {
|
|
9
9
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
10
|
-
return html`
|
|
10
|
+
return html`
|
|
11
|
+
<input
|
|
12
|
+
type="text"
|
|
13
|
+
id="editor"
|
|
14
|
+
.value=${value || ''}
|
|
15
|
+
placeholder=${spec.placeholder || ''}
|
|
16
|
+
?disabled=${this.disabled}
|
|
17
|
+
/>
|
|
18
|
+
`
|
|
11
19
|
}
|
|
12
20
|
}
|
|
@@ -11,6 +11,13 @@ export class OxPropertyEditorString extends OxPropertyEditor {
|
|
|
11
11
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
12
12
|
const { fullwidth = true } = spec.editor || {}
|
|
13
13
|
|
|
14
|
-
return html`
|
|
14
|
+
return html`
|
|
15
|
+
<ox-input-table
|
|
16
|
+
id="editor"
|
|
17
|
+
.property=${spec.property}
|
|
18
|
+
?fullwidth=${fullwidth}
|
|
19
|
+
?disabled=${this.disabled}
|
|
20
|
+
></ox-input-table>
|
|
21
|
+
`
|
|
15
22
|
}
|
|
16
23
|
}
|
|
@@ -19,6 +19,7 @@ export class OxPropertyEditorTextArea extends OxPropertyEditor {
|
|
|
19
19
|
tab-as-space=${spec.property?.tabAsSpace || 'false'}
|
|
20
20
|
?fullwidth=${fullwidth}
|
|
21
21
|
language=${spec.property?.language || 'javascript'}
|
|
22
|
+
?disabled=${this.disabled}
|
|
22
23
|
>
|
|
23
24
|
</ox-input-code>
|
|
24
25
|
`
|
|
@@ -7,6 +7,6 @@ import { PropertySpec } from './types.js'
|
|
|
7
7
|
@customElement('ox-property-editor-time')
|
|
8
8
|
export class OxPropertyEditorTime extends OxPropertyEditor {
|
|
9
9
|
editorTemplate(value: any, spec: PropertySpec): TemplateResult {
|
|
10
|
-
return html` <input type="time" id="editor" .value=${value} /> `
|
|
10
|
+
return html` <input type="time" id="editor" .value=${value} ?disabled=${this.disabled} /> `
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -12,6 +12,13 @@ export class OxPropertyEditorWorkShift extends OxPropertyEditor {
|
|
|
12
12
|
const { editor } = spec
|
|
13
13
|
const { fullwidth = true } = editor || {}
|
|
14
14
|
|
|
15
|
-
return html`
|
|
15
|
+
return html`
|
|
16
|
+
<ox-input-work-shift
|
|
17
|
+
id="editor"
|
|
18
|
+
.value=${value}
|
|
19
|
+
?fullwidth=${fullwidth}
|
|
20
|
+
?disabled=${this.disabled}
|
|
21
|
+
></ox-input-work-shift>
|
|
22
|
+
`
|
|
16
23
|
}
|
|
17
24
|
}
|
|
@@ -127,6 +127,7 @@ export class OxPropertyEditor extends LitElement {
|
|
|
127
127
|
@property({ type: Object }) observe?: (value: any) => void
|
|
128
128
|
@property({ type: Object }) defaultValue?: any
|
|
129
129
|
@property({ type: Object }) context?: any
|
|
130
|
+
@property({ type: Boolean }) disabled?: boolean
|
|
130
131
|
|
|
131
132
|
connectedCallback() {
|
|
132
133
|
super.connectedCallback()
|