@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.
Files changed (101) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/src/ox-property-editor-action.d.ts +2 -1
  3. package/dist/src/ox-property-editor-action.js.map +1 -1
  4. package/dist/src/ox-property-editor-angle.d.ts +2 -1
  5. package/dist/src/ox-property-editor-angle.js.map +1 -1
  6. package/dist/src/ox-property-editor-checkbox.d.ts +2 -1
  7. package/dist/src/ox-property-editor-checkbox.js.map +1 -1
  8. package/dist/src/ox-property-editor-color.d.ts +2 -1
  9. package/dist/src/ox-property-editor-color.js.map +1 -1
  10. package/dist/src/ox-property-editor-crontab.d.ts +2 -1
  11. package/dist/src/ox-property-editor-crontab.js.map +1 -1
  12. package/dist/src/ox-property-editor-data.d.ts +2 -1
  13. package/dist/src/ox-property-editor-data.js.map +1 -1
  14. package/dist/src/ox-property-editor-date.d.ts +2 -1
  15. package/dist/src/ox-property-editor-date.js.map +1 -1
  16. package/dist/src/ox-property-editor-duration.d.ts +2 -1
  17. package/dist/src/ox-property-editor-duration.js.map +1 -1
  18. package/dist/src/ox-property-editor-file.d.ts +2 -1
  19. package/dist/src/ox-property-editor-file.js.map +1 -1
  20. package/dist/src/ox-property-editor-gradient-colorstops.d.ts +2 -1
  21. package/dist/src/ox-property-editor-gradient-colorstops.js.map +1 -1
  22. package/dist/src/ox-property-editor-hashtags.d.ts +2 -1
  23. package/dist/src/ox-property-editor-hashtags.js.map +1 -1
  24. package/dist/src/ox-property-editor-image.d.ts +2 -1
  25. package/dist/src/ox-property-editor-image.js.map +1 -1
  26. package/dist/src/ox-property-editor-key-values.d.ts +2 -1
  27. package/dist/src/ox-property-editor-key-values.js.map +1 -1
  28. package/dist/src/ox-property-editor-legend.d.ts +2 -1
  29. package/dist/src/ox-property-editor-legend.js.map +1 -1
  30. package/dist/src/ox-property-editor-mass-fraction.d.ts +2 -1
  31. package/dist/src/ox-property-editor-mass-fraction.js.map +1 -1
  32. package/dist/src/ox-property-editor-multiple-colors.d.ts +2 -1
  33. package/dist/src/ox-property-editor-multiple-colors.js.map +1 -1
  34. package/dist/src/ox-property-editor-number.d.ts +2 -1
  35. package/dist/src/ox-property-editor-number.js.map +1 -1
  36. package/dist/src/ox-property-editor-options.d.ts +2 -1
  37. package/dist/src/ox-property-editor-options.js.map +1 -1
  38. package/dist/src/ox-property-editor-partition-keys.d.ts +2 -1
  39. package/dist/src/ox-property-editor-partition-keys.js.map +1 -1
  40. package/dist/src/ox-property-editor-password.d.ts +2 -1
  41. package/dist/src/ox-property-editor-password.js.map +1 -1
  42. package/dist/src/ox-property-editor-range.d.ts +2 -1
  43. package/dist/src/ox-property-editor-range.js.map +1 -1
  44. package/dist/src/ox-property-editor-scene-component-id.d.ts +2 -1
  45. package/dist/src/ox-property-editor-scene-component-id.js.map +1 -1
  46. package/dist/src/ox-property-editor-select.d.ts +2 -2
  47. package/dist/src/ox-property-editor-select.js +1 -1
  48. package/dist/src/ox-property-editor-select.js.map +1 -1
  49. package/dist/src/ox-property-editor-solid-colorstops.d.ts +2 -1
  50. package/dist/src/ox-property-editor-solid-colorstops.js.map +1 -1
  51. package/dist/src/ox-property-editor-string.d.ts +2 -1
  52. package/dist/src/ox-property-editor-string.js.map +1 -1
  53. package/dist/src/ox-property-editor-table.d.ts +2 -1
  54. package/dist/src/ox-property-editor-table.js.map +1 -1
  55. package/dist/src/ox-property-editor-textarea.d.ts +2 -1
  56. package/dist/src/ox-property-editor-textarea.js.map +1 -1
  57. package/dist/src/ox-property-editor-unit-number.d.ts +2 -1
  58. package/dist/src/ox-property-editor-unit-number.js.map +1 -1
  59. package/dist/src/ox-property-editor-value-map.d.ts +2 -1
  60. package/dist/src/ox-property-editor-value-map.js.map +1 -1
  61. package/dist/src/ox-property-editor-value-ranges.d.ts +2 -1
  62. package/dist/src/ox-property-editor-value-ranges.js.map +1 -1
  63. package/dist/src/ox-property-editor-work-shift.d.ts +2 -1
  64. package/dist/src/ox-property-editor-work-shift.js.map +1 -1
  65. package/dist/src/ox-property-editor.d.ts +1 -1
  66. package/dist/src/ox-property-editor.js +1 -1
  67. package/dist/src/ox-property-editor.js.map +1 -1
  68. package/dist/tsconfig.tsbuildinfo +1 -1
  69. package/package.json +2 -2
  70. package/src/ox-property-editor-action.ts +2 -2
  71. package/src/ox-property-editor-angle.ts +2 -2
  72. package/src/ox-property-editor-checkbox.ts +2 -2
  73. package/src/ox-property-editor-color.ts +2 -2
  74. package/src/ox-property-editor-crontab.ts +2 -2
  75. package/src/ox-property-editor-data.ts +2 -2
  76. package/src/ox-property-editor-date.ts +2 -2
  77. package/src/ox-property-editor-duration.ts +2 -2
  78. package/src/ox-property-editor-file.ts +2 -2
  79. package/src/ox-property-editor-gradient-colorstops.ts +2 -2
  80. package/src/ox-property-editor-hashtags.ts +2 -2
  81. package/src/ox-property-editor-image.ts +2 -2
  82. package/src/ox-property-editor-key-values.ts +2 -2
  83. package/src/ox-property-editor-legend.ts +2 -2
  84. package/src/ox-property-editor-mass-fraction.ts +2 -2
  85. package/src/ox-property-editor-multiple-colors.ts +2 -2
  86. package/src/ox-property-editor-number.ts +2 -2
  87. package/src/ox-property-editor-options.ts +2 -2
  88. package/src/ox-property-editor-partition-keys.ts +2 -2
  89. package/src/ox-property-editor-password.ts +2 -2
  90. package/src/ox-property-editor-range.ts +2 -2
  91. package/src/ox-property-editor-scene-component-id.ts +2 -2
  92. package/src/ox-property-editor-select.ts +3 -3
  93. package/src/ox-property-editor-solid-colorstops.ts +2 -2
  94. package/src/ox-property-editor-string.ts +2 -2
  95. package/src/ox-property-editor-table.ts +2 -2
  96. package/src/ox-property-editor-textarea.ts +2 -2
  97. package/src/ox-property-editor-unit-number.ts +2 -2
  98. package/src/ox-property-editor-value-map.ts +2 -2
  99. package/src/ox-property-editor-value-ranges.ts +2 -2
  100. package/src/ox-property-editor-work-shift.ts +2 -2
  101. 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<1> {
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 = deepClone(this.value)
174
+ this.value = this.makeup(this.value)
175
175
  this.__by_me = false
176
176
  }
177
177