@operato/property-editor 1.0.0-beta.8 → 1.0.1

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 (122) hide show
  1. package/CHANGELOG.md +375 -0
  2. package/demo/index.html +19 -5
  3. package/dist/src/ox-properties-dynamic-view.js +14 -10
  4. package/dist/src/ox-properties-dynamic-view.js.map +1 -1
  5. package/dist/src/ox-property-editor-angle.d.ts +2 -1
  6. package/dist/src/ox-property-editor-angle.js +4 -6
  7. package/dist/src/ox-property-editor-angle.js.map +1 -1
  8. package/dist/src/ox-property-editor-checkbox.d.ts +2 -1
  9. package/dist/src/ox-property-editor-checkbox.js +4 -4
  10. package/dist/src/ox-property-editor-checkbox.js.map +1 -1
  11. package/dist/src/ox-property-editor-color.d.ts +2 -1
  12. package/dist/src/ox-property-editor-color.js +4 -9
  13. package/dist/src/ox-property-editor-color.js.map +1 -1
  14. package/dist/src/ox-property-editor-crontab.d.ts +2 -1
  15. package/dist/src/ox-property-editor-crontab.js +3 -2
  16. package/dist/src/ox-property-editor-crontab.js.map +1 -1
  17. package/dist/src/ox-property-editor-data.d.ts +2 -1
  18. package/dist/src/ox-property-editor-data.js +5 -4
  19. package/dist/src/ox-property-editor-data.js.map +1 -1
  20. package/dist/src/ox-property-editor-date.d.ts +2 -1
  21. package/dist/src/ox-property-editor-date.js +4 -4
  22. package/dist/src/ox-property-editor-date.js.map +1 -1
  23. package/dist/src/ox-property-editor-duration.d.ts +6 -0
  24. package/dist/src/ox-property-editor-duration.js +16 -0
  25. package/dist/src/ox-property-editor-duration.js.map +1 -0
  26. package/dist/src/ox-property-editor-file.d.ts +2 -1
  27. package/dist/src/ox-property-editor-file.js +8 -5
  28. package/dist/src/ox-property-editor-file.js.map +1 -1
  29. package/dist/src/ox-property-editor-gradient-colorstops.d.ts +2 -1
  30. package/dist/src/ox-property-editor-gradient-colorstops.js +8 -7
  31. package/dist/src/ox-property-editor-gradient-colorstops.js.map +1 -1
  32. package/dist/src/ox-property-editor-image.d.ts +2 -1
  33. package/dist/src/ox-property-editor-image.js +5 -4
  34. package/dist/src/ox-property-editor-image.js.map +1 -1
  35. package/dist/src/ox-property-editor-key-values.d.ts +6 -0
  36. package/dist/src/ox-property-editor-key-values.js +24 -0
  37. package/dist/src/ox-property-editor-key-values.js.map +1 -0
  38. package/dist/src/ox-property-editor-legend.d.ts +2 -1
  39. package/dist/src/ox-property-editor-legend.js +4 -4
  40. package/dist/src/ox-property-editor-legend.js.map +1 -1
  41. package/dist/src/ox-property-editor-multiple-colors.d.ts +2 -1
  42. package/dist/src/ox-property-editor-multiple-colors.js +4 -4
  43. package/dist/src/ox-property-editor-multiple-colors.js.map +1 -1
  44. package/dist/src/ox-property-editor-number.d.ts +2 -1
  45. package/dist/src/ox-property-editor-number.js +6 -6
  46. package/dist/src/ox-property-editor-number.js.map +1 -1
  47. package/dist/src/ox-property-editor-options.d.ts +2 -1
  48. package/dist/src/ox-property-editor-options.js +5 -4
  49. package/dist/src/ox-property-editor-options.js.map +1 -1
  50. package/dist/src/ox-property-editor-partition-keys.d.ts +6 -0
  51. package/dist/src/ox-property-editor-partition-keys.js +18 -0
  52. package/dist/src/ox-property-editor-partition-keys.js.map +1 -0
  53. package/dist/src/ox-property-editor-password.d.ts +2 -1
  54. package/dist/src/ox-property-editor-password.js +4 -4
  55. package/dist/src/ox-property-editor-password.js.map +1 -1
  56. package/dist/src/ox-property-editor-range.d.ts +2 -1
  57. package/dist/src/ox-property-editor-range.js +13 -5
  58. package/dist/src/ox-property-editor-range.js.map +1 -1
  59. package/dist/src/ox-property-editor-scene-component-id.d.ts +2 -1
  60. package/dist/src/ox-property-editor-scene-component-id.js +4 -8
  61. package/dist/src/ox-property-editor-scene-component-id.js.map +1 -1
  62. package/dist/src/ox-property-editor-select.d.ts +4 -1
  63. package/dist/src/ox-property-editor-select.js +11 -5
  64. package/dist/src/ox-property-editor-select.js.map +1 -1
  65. package/dist/src/ox-property-editor-solid-colorstops.d.ts +2 -1
  66. package/dist/src/ox-property-editor-solid-colorstops.js +8 -7
  67. package/dist/src/ox-property-editor-solid-colorstops.js.map +1 -1
  68. package/dist/src/ox-property-editor-string.d.ts +2 -1
  69. package/dist/src/ox-property-editor-string.js +4 -4
  70. package/dist/src/ox-property-editor-string.js.map +1 -1
  71. package/dist/src/ox-property-editor-table.d.ts +2 -1
  72. package/dist/src/ox-property-editor-table.js +5 -4
  73. package/dist/src/ox-property-editor-table.js.map +1 -1
  74. package/dist/src/ox-property-editor-textarea.d.ts +2 -1
  75. package/dist/src/ox-property-editor-textarea.js +9 -8
  76. package/dist/src/ox-property-editor-textarea.js.map +1 -1
  77. package/dist/src/ox-property-editor-value-map.d.ts +2 -1
  78. package/dist/src/ox-property-editor-value-map.js +11 -5
  79. package/dist/src/ox-property-editor-value-map.js.map +1 -1
  80. package/dist/src/ox-property-editor-value-ranges.d.ts +2 -1
  81. package/dist/src/ox-property-editor-value-ranges.js +9 -3
  82. package/dist/src/ox-property-editor-value-ranges.js.map +1 -1
  83. package/dist/src/ox-property-editor-work-shift.d.ts +3 -2
  84. package/dist/src/ox-property-editor-work-shift.js +8 -7
  85. package/dist/src/ox-property-editor-work-shift.js.map +1 -1
  86. package/dist/src/ox-property-editor.d.ts +8 -6
  87. package/dist/src/ox-property-editor.js +60 -7
  88. package/dist/src/ox-property-editor.js.map +1 -1
  89. package/dist/src/types.d.ts +5 -0
  90. package/dist/src/types.js.map +1 -1
  91. package/dist/tsconfig.tsbuildinfo +1 -1
  92. package/package.json +14 -11
  93. package/src/ox-properties-dynamic-view.ts +15 -10
  94. package/src/ox-property-editor-angle.ts +6 -6
  95. package/src/ox-property-editor-checkbox.ts +6 -4
  96. package/src/ox-property-editor-color.ts +6 -9
  97. package/src/ox-property-editor-crontab.ts +5 -2
  98. package/src/ox-property-editor-data.ts +8 -4
  99. package/src/ox-property-editor-date.ts +6 -4
  100. package/src/ox-property-editor-duration.ts +16 -0
  101. package/src/ox-property-editor-file.ts +11 -5
  102. package/src/ox-property-editor-gradient-colorstops.ts +11 -7
  103. package/src/ox-property-editor-image.ts +9 -4
  104. package/src/ox-property-editor-key-values.ts +24 -0
  105. package/src/ox-property-editor-legend.ts +6 -4
  106. package/src/ox-property-editor-multiple-colors.ts +6 -4
  107. package/src/ox-property-editor-number.ts +8 -6
  108. package/src/ox-property-editor-options.ts +8 -4
  109. package/src/ox-property-editor-partition-keys.ts +18 -0
  110. package/src/ox-property-editor-password.ts +6 -4
  111. package/src/ox-property-editor-range.ts +15 -5
  112. package/src/ox-property-editor-scene-component-id.ts +6 -8
  113. package/src/ox-property-editor-select.ts +12 -6
  114. package/src/ox-property-editor-solid-colorstops.ts +11 -7
  115. package/src/ox-property-editor-string.ts +6 -4
  116. package/src/ox-property-editor-table.ts +8 -4
  117. package/src/ox-property-editor-textarea.ts +12 -8
  118. package/src/ox-property-editor-value-map.ts +13 -5
  119. package/src/ox-property-editor-value-ranges.ts +10 -3
  120. package/src/ox-property-editor-work-shift.ts +6 -4
  121. package/src/ox-property-editor.ts +59 -10
  122. package/src/types.ts +6 -0
@@ -4,8 +4,9 @@ import { html } from 'lit';
4
4
  import { customElement } from 'lit/decorators.js';
5
5
  import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorCrontab = class OxPropertyEditorCrontab extends OxPropertyEditor {
7
- editorTemplate() {
8
- return html ` <ox-input-crontab id="editor" .value=${this.value} fullwidth> </ox-input-crontab> `;
7
+ editorTemplate(value, spec) {
8
+ const { fullwidth = true } = spec.editor || {};
9
+ return html ` <ox-input-crontab id="editor" .value=${value} ?fullwidth=${fullwidth}> </ox-input-crontab> `;
9
10
  }
10
11
  };
11
12
  OxPropertyEditorCrontab = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-crontab.js","sourceRoot":"","sources":["../../src/ox-property-editor-crontab.ts"],"names":[],"mappings":";AAAA,OAAO,oCAAoC,CAAA;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAG1D,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,cAAc;QACZ,OAAO,IAAI,CAAA,yCAAyC,IAAI,CAAC,KAAK,kCAAkC,CAAA;IAClG,CAAC;CACF,CAAA;AAJY,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAInC;SAJY,uBAAuB","sourcesContent":["import '@operato/input/ox-input-crontab.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\n\n@customElement('ox-property-editor-crontab')\nexport class OxPropertyEditorCrontab extends OxPropertyEditor {\n editorTemplate() {\n return html` <ox-input-crontab id=\"editor\" .value=${this.value} fullwidth> </ox-input-crontab> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-crontab.js","sourceRoot":"","sources":["../../src/ox-property-editor-crontab.ts"],"names":[],"mappings":";AAAA,OAAO,oCAAoC,CAAA;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA,yCAAyC,KAAK,eAAe,SAAS,wBAAwB,CAAA;IAC3G,CAAC;CACF,CAAA;AANY,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAMnC;SANY,uBAAuB","sourcesContent":["import '@operato/input/ox-input-crontab.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-crontab')\nexport class OxPropertyEditorCrontab extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n const { fullwidth = true } = spec.editor || {}\n\n return html` <ox-input-crontab id=\"editor\" .value=${value} ?fullwidth=${fullwidth}> </ox-input-crontab> `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import '@operato/input/ox-input-data.js';
2
2
  import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
3
4
  export declare class OxPropertyEditorData extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,11 +1,12 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@operato/input/ox-input-data.js';
3
- import { OxPropertyEditor } from './ox-property-editor.js';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorData = class OxPropertyEditorData extends OxPropertyEditor {
7
- editorTemplate() {
8
- return html ` <ox-input-data id="editor" .value=${this.value || []} fullwidth></ox-input-data> `;
7
+ editorTemplate(value, spec) {
8
+ const { fullwidth = true } = spec.editor || {};
9
+ return html ` <ox-input-data id="editor" .value=${value || []} ?fullwidth=${fullwidth}></ox-input-data> `;
9
10
  }
10
11
  };
11
12
  OxPropertyEditorData = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-data.js","sourceRoot":"","sources":["../../src/ox-property-editor-data.ts"],"names":[],"mappings":";AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,gBAAgB;IACxD,cAAc;QACZ,OAAO,IAAI,CAAA,sCAAsC,IAAI,CAAC,KAAK,IAAI,EAAE,8BAA8B,CAAA;IACjG,CAAC;CACF,CAAA;AAJY,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAIhC;SAJY,oBAAoB","sourcesContent":["import '@operato/input/ox-input-data.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-data')\nexport class OxPropertyEditorData extends OxPropertyEditor {\n editorTemplate() {\n return html` <ox-input-data id=\"editor\" .value=${this.value || []} fullwidth></ox-input-data> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-data.js","sourceRoot":"","sources":["../../src/ox-property-editor-data.ts"],"names":[],"mappings":";AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,gBAAgB;IACxD,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA,sCAAsC,KAAK,IAAI,EAAE,eAAe,SAAS,oBAAoB,CAAA;IAC1G,CAAC;CACF,CAAA;AANY,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAMhC;SANY,oBAAoB","sourcesContent":["import '@operato/input/ox-input-data.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-data')\nexport class OxPropertyEditorData extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n const { fullwidth = true } = spec.editor || {}\n\n return html` <ox-input-data id=\"editor\" .value=${value || []} ?fullwidth=${fullwidth}></ox-input-data> `\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { OxPropertyEditor } from './ox-property-editor.js';
2
+ import { PropertySpec } from './types.js';
2
3
  export declare class OxPropertyEditorDate extends OxPropertyEditor {
3
- editorTemplate(): import("lit-html").TemplateResult<1>;
4
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
4
5
  }
@@ -1,10 +1,10 @@
1
1
  import { __decorate } from "tslib";
2
- import { OxPropertyEditor } from './ox-property-editor.js';
3
- import { customElement } from 'lit/decorators.js';
4
2
  import { html } from 'lit';
3
+ import { customElement } from 'lit/decorators.js';
4
+ import { OxPropertyEditor } from './ox-property-editor.js';
5
5
  let OxPropertyEditorDate = class OxPropertyEditorDate extends OxPropertyEditor {
6
- editorTemplate() {
7
- return html ` <input type="date" id="editor" .value=${this.value} /> `;
6
+ editorTemplate(value, spec) {
7
+ return html ` <input type="date" id="editor" .value=${value} /> `;
8
8
  }
9
9
  };
10
10
  OxPropertyEditorDate = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-date.js","sourceRoot":"","sources":["../../src/ox-property-editor-date.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,gBAAgB;IACxD,cAAc;QACZ,OAAO,IAAI,CAAA,0CAA0C,IAAI,CAAC,KAAK,MAAM,CAAA;IACvE,CAAC;CACF,CAAA;AAJY,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAIhC;SAJY,oBAAoB","sourcesContent":["import { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-date')\nexport class OxPropertyEditorDate extends OxPropertyEditor {\n editorTemplate() {\n return html` <input type=\"date\" id=\"editor\" .value=${this.value} /> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-date.js","sourceRoot":"","sources":["../../src/ox-property-editor-date.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,gBAAgB;IACxD,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,OAAO,IAAI,CAAA,0CAA0C,KAAK,MAAM,CAAA;IAClE,CAAC;CACF,CAAA;AAJY,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAIhC;SAJY,oBAAoB","sourcesContent":["import { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-date')\nexport class OxPropertyEditorDate extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n return html` <input type=\"date\" id=\"editor\" .value=${value} /> `\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import '@operato/input/ox-input-duration.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
4
+ export declare class OxPropertyEditorDuration extends OxPropertyEditor {
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
6
+ }
@@ -0,0 +1,16 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-duration.js';
3
+ import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
+ let OxPropertyEditorDuration = class OxPropertyEditorDuration extends OxPropertyEditor {
7
+ editorTemplate(value, spec) {
8
+ const { fullwidth = true } = spec.editor || {};
9
+ return html ` <ox-input-duration id="editor" .value=${value} ?fullwidth=${fullwidth}> </ox-input-duration> `;
10
+ }
11
+ };
12
+ OxPropertyEditorDuration = __decorate([
13
+ customElement('ox-property-editor-duration')
14
+ ], OxPropertyEditorDuration);
15
+ export { OxPropertyEditorDuration };
16
+ //# sourceMappingURL=ox-property-editor-duration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-property-editor-duration.js","sourceRoot":"","sources":["../../src/ox-property-editor-duration.ts"],"names":[],"mappings":";AAAA,OAAO,qCAAqC,CAAA;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA,0CAA0C,KAAK,eAAe,SAAS,yBAAyB,CAAA;IAC7G,CAAC;CACF,CAAA;AANY,wBAAwB;IADpC,aAAa,CAAC,6BAA6B,CAAC;GAChC,wBAAwB,CAMpC;SANY,wBAAwB","sourcesContent":["import '@operato/input/ox-input-duration.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-duration')\nexport class OxPropertyEditorDuration extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n const { fullwidth = true } = spec.editor || {}\n\n return html` <ox-input-duration id=\"editor\" .value=${value} ?fullwidth=${fullwidth}> </ox-input-duration> `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import '@operato/input/ox-input-file.js';
2
2
  import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
3
4
  export declare class OxPropertyEditorFile extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,13 +1,16 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@operato/input/ox-input-file.js';
3
- import { OxPropertyEditor } from './ox-property-editor.js';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorFile = class OxPropertyEditorFile extends OxPropertyEditor {
7
7
  // TODO file change event 처리
8
- editorTemplate() {
9
- const { multiple = false } = this.property || {};
10
- return html ` <ox-input-file id="editor" .value=${this.value || []} ?multiple=${multiple}></ox-input-file> `;
8
+ editorTemplate(value, spec) {
9
+ const { multiple = false } = spec.property || {};
10
+ const { fullwidth = false } = spec.editor || {};
11
+ return html `
12
+ <ox-input-file id="editor" .value=${value || []} ?multiple=${multiple} ?fullwidth=${fullwidth}></ox-input-file>
13
+ `;
11
14
  }
12
15
  };
13
16
  OxPropertyEditorFile = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-file.js","sourceRoot":"","sources":["../../src/ox-property-editor-file.ts"],"names":[],"mappings":";AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,gBAAgB;IACxD,4BAA4B;IAC5B,cAAc;QACZ,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;QAChD,OAAO,IAAI,CAAA,sCAAsC,IAAI,CAAC,KAAK,IAAI,EAAE,cAAc,QAAQ,oBAAoB,CAAA;IAC7G,CAAC;CACF,CAAA;AANY,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAMhC;SANY,oBAAoB","sourcesContent":["import '@operato/input/ox-input-file.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-file')\nexport class OxPropertyEditorFile extends OxPropertyEditor {\n // TODO file change event 처리\n editorTemplate() {\n const { multiple = false } = this.property || {}\n return html` <ox-input-file id=\"editor\" .value=${this.value || []} ?multiple=${multiple}></ox-input-file> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-file.js","sourceRoot":"","sources":["../../src/ox-property-editor-file.ts"],"names":[],"mappings":";AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,gBAAgB;IACxD,4BAA4B;IAC5B,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;QAChD,MAAM,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE/C,OAAO,IAAI,CAAA;0CAC2B,KAAK,IAAI,EAAE,cAAc,QAAQ,eAAe,SAAS;KAC9F,CAAA;IACH,CAAC;CACF,CAAA;AAVY,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAUhC;SAVY,oBAAoB","sourcesContent":["import '@operato/input/ox-input-file.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-file')\nexport class OxPropertyEditorFile extends OxPropertyEditor {\n // TODO file change event 처리\n editorTemplate(value: any, spec: PropertySpec) {\n const { multiple = false } = spec.property || {}\n const { fullwidth = false } = spec.editor || {}\n\n return html`\n <ox-input-file id=\"editor\" .value=${value || []} ?multiple=${multiple} ?fullwidth=${fullwidth}></ox-input-file>\n `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import '@operato/input/ox-input-color-stops.js';
2
2
  import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
3
4
  export declare class OxPropertyEditorGradientColorStops extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,18 +1,19 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@operato/input/ox-input-color-stops.js';
3
- import { OxPropertyEditor } from './ox-property-editor.js';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorGradientColorStops = class OxPropertyEditorGradientColorStops extends OxPropertyEditor {
7
- editorTemplate() {
7
+ editorTemplate(value, spec) {
8
+ const { fullwidth = true } = spec.editor || {};
8
9
  return html `
9
10
  <ox-input-color-stops
10
11
  id="editor"
11
12
  type="gradient"
12
- .value=${this.value}
13
- .min=${this.property && this.property.min}
14
- .max=${this.property && this.property.max}
15
- fullwidth
13
+ .value=${value}
14
+ .min=${spec.property && spec.property.min}
15
+ .max=${spec.property && spec.property.max}
16
+ ?fullwidth=${fullwidth}
16
17
  >
17
18
  </ox-input-color-stops>
18
19
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-gradient-colorstops.js","sourceRoot":"","sources":["../../src/ox-property-editor-gradient-colorstops.ts"],"names":[],"mappings":";AAAA,OAAO,wCAAwC,CAAA;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,gBAAgB;IACtE,cAAc;QACZ,OAAO,IAAI,CAAA;;;;iBAIE,IAAI,CAAC,KAAK;eACZ,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG;eAClC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG;;;;KAI5C,CAAA;IACH,CAAC;CACF,CAAA;AAdY,kCAAkC;IAD9C,aAAa,CAAC,wCAAwC,CAAC;GAC3C,kCAAkC,CAc9C;SAdY,kCAAkC","sourcesContent":["import '@operato/input/ox-input-color-stops.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-gradient-colorstops')\nexport class OxPropertyEditorGradientColorStops extends OxPropertyEditor {\n editorTemplate() {\n return html`\n <ox-input-color-stops\n id=\"editor\"\n type=\"gradient\"\n .value=${this.value}\n .min=${this.property && this.property.min}\n .max=${this.property && this.property.max}\n fullwidth\n >\n </ox-input-color-stops>\n `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-gradient-colorstops.js","sourceRoot":"","sources":["../../src/ox-property-editor-gradient-colorstops.ts"],"names":[],"mappings":";AAAA,OAAO,wCAAwC,CAAA;AAE/C,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,gBAAgB;IACtE,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA;;;;iBAIE,KAAK;eACP,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG;eAClC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG;qBAC5B,SAAS;;;KAGzB,CAAA;IACH,CAAC;CACF,CAAA;AAhBY,kCAAkC;IAD9C,aAAa,CAAC,wCAAwC,CAAC;GAC3C,kCAAkC,CAgB9C;SAhBY,kCAAkC","sourcesContent":["import '@operato/input/ox-input-color-stops.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-gradient-colorstops')\nexport class OxPropertyEditorGradientColorStops extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n const { fullwidth = true } = spec.editor || {}\n\n return html`\n <ox-input-color-stops\n id=\"editor\"\n type=\"gradient\"\n .value=${value}\n .min=${spec.property && spec.property.min}\n .max=${spec.property && spec.property.max}\n ?fullwidth=${fullwidth}\n >\n </ox-input-color-stops>\n `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import '@operato/input/ox-input-image.js';
2
2
  import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
3
4
  export declare class OxPropertyEditorImage extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,12 +1,13 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@operato/input/ox-input-image.js';
3
- import { OxPropertyEditor } from './ox-property-editor.js';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorImage = class OxPropertyEditorImage extends OxPropertyEditor {
7
7
  // TODO image change event 처리
8
- editorTemplate() {
9
- return html ` <ox-input-image id="editor" .value=${this.value}></ox-input-image> `;
8
+ editorTemplate(value, spec) {
9
+ const { fullwidth = false } = spec.editor || {};
10
+ return html ` <ox-input-image id="editor" .value=${value} ?fullwidth=${fullwidth}></ox-input-image> `;
10
11
  }
11
12
  };
12
13
  OxPropertyEditorImage = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-image.js","sourceRoot":"","sources":["../../src/ox-property-editor-image.ts"],"names":[],"mappings":";AAAA,OAAO,kCAAkC,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,gBAAgB;IACzD,6BAA6B;IAC7B,cAAc;QACZ,OAAO,IAAI,CAAA,uCAAuC,IAAI,CAAC,KAAK,qBAAqB,CAAA;IACnF,CAAC;CACF,CAAA;AALY,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CAKjC;SALY,qBAAqB","sourcesContent":["import '@operato/input/ox-input-image.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-image')\nexport class OxPropertyEditorImage extends OxPropertyEditor {\n // TODO image change event 처리\n editorTemplate() {\n return html` <ox-input-image id=\"editor\" .value=${this.value}></ox-input-image> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-image.js","sourceRoot":"","sources":["../../src/ox-property-editor-image.ts"],"names":[],"mappings":";AAAA,OAAO,kCAAkC,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,gBAAgB;IACzD,6BAA6B;IAE7B,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE/C,OAAO,IAAI,CAAA,uCAAuC,KAAK,eAAe,SAAS,qBAAqB,CAAA;IACtG,CAAC;CACF,CAAA;AARY,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CAQjC;SARY,qBAAqB","sourcesContent":["import '@operato/input/ox-input-image.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-image')\nexport class OxPropertyEditorImage extends OxPropertyEditor {\n // TODO image change event 처리\n\n editorTemplate(value: any, spec: PropertySpec) {\n const { fullwidth = false } = spec.editor || {}\n\n return html` <ox-input-image id=\"editor\" .value=${value} ?fullwidth=${fullwidth}></ox-input-image> `\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import '@operato/input/ox-input-key-values.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
4
+ export declare class OxPropertyEditorKeyValues extends OxPropertyEditor {
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
6
+ }
@@ -0,0 +1,24 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-key-values.js';
3
+ import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
+ let OxPropertyEditorKeyValues = class OxPropertyEditorKeyValues extends OxPropertyEditor {
7
+ editorTemplate(value, spec) {
8
+ const { options } = spec.property || {};
9
+ const { fullwidth = true } = spec.editor || {};
10
+ return html `
11
+ <ox-input-key-values
12
+ id="editor"
13
+ .value=${value}
14
+ .options=${options}
15
+ ?fullwidth=${fullwidth}
16
+ ></ox-input-key-values>
17
+ `;
18
+ }
19
+ };
20
+ OxPropertyEditorKeyValues = __decorate([
21
+ customElement('ox-property-editor-key-values')
22
+ ], OxPropertyEditorKeyValues);
23
+ export { OxPropertyEditorKeyValues };
24
+ //# sourceMappingURL=ox-property-editor-key-values.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-property-editor-key-values.js","sourceRoot":"","sources":["../../src/ox-property-editor-key-values.ts"],"names":[],"mappings":";AAAA,OAAO,uCAAuC,CAAA;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,gBAAgB;IAC7D,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;QACvC,MAAM,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA;;;iBAGE,KAAK;mBACH,OAAO;qBACL,SAAS;;KAEzB,CAAA;IACH,CAAC;CACF,CAAA;AAdY,yBAAyB;IADrC,aAAa,CAAC,+BAA+B,CAAC;GAClC,yBAAyB,CAcrC;SAdY,yBAAyB","sourcesContent":["import '@operato/input/ox-input-key-values.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-key-values')\nexport class OxPropertyEditorKeyValues extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n const { options } = spec.property || {}\n const { fullwidth = true } = spec.editor || {}\n\n return html`\n <ox-input-key-values\n id=\"editor\"\n .value=${value}\n .options=${options}\n ?fullwidth=${fullwidth}\n ></ox-input-key-values>\n `\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { OxPropertyEditor } from './ox-property-editor.js';
2
+ import { PropertySpec } from './types.js';
2
3
  export declare class OxPropertyEditorLegend extends OxPropertyEditor {
3
- editorTemplate(): import("lit-html").TemplateResult<1>;
4
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
4
5
  }
@@ -1,10 +1,10 @@
1
1
  import { __decorate } from "tslib";
2
- import { OxPropertyEditor } from './ox-property-editor.js';
3
- import { customElement } from 'lit/decorators.js';
4
2
  import { html } from 'lit';
3
+ import { customElement } from 'lit/decorators.js';
4
+ import { OxPropertyEditor } from './ox-property-editor.js';
5
5
  let OxPropertyEditorLegend = class OxPropertyEditorLegend extends OxPropertyEditor {
6
- editorTemplate() {
7
- return html ` <legend>${this.property.label}</legend> `;
6
+ editorTemplate(value, spec) {
7
+ return html ` <legend>${spec.property.label}</legend> `;
8
8
  }
9
9
  };
10
10
  OxPropertyEditorLegend = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-legend.js","sourceRoot":"","sources":["../../src/ox-property-editor-legend.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,gBAAgB;IAC1D,cAAc;QACZ,OAAO,IAAI,CAAA,YAAY,IAAI,CAAC,QAAQ,CAAC,KAAK,YAAY,CAAA;IACxD,CAAC;CACF,CAAA;AAJY,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CAIlC;SAJY,sBAAsB","sourcesContent":["import { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-legend')\nexport class OxPropertyEditorLegend extends OxPropertyEditor {\n editorTemplate() {\n return html` <legend>${this.property.label}</legend> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-legend.js","sourceRoot":"","sources":["../../src/ox-property-editor-legend.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,gBAAgB;IAC1D,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,OAAO,IAAI,CAAA,YAAY,IAAI,CAAC,QAAQ,CAAC,KAAK,YAAY,CAAA;IACxD,CAAC;CACF,CAAA;AAJY,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CAIlC;SAJY,sBAAsB","sourcesContent":["import { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-legend')\nexport class OxPropertyEditorLegend extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n return html` <legend>${spec.property.label}</legend> `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import '@operato/input/ox-input-multiple-colors.js';
2
2
  import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
3
4
  export declare class OxPropertyEditorMultipleColors extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,11 +1,11 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@operato/input/ox-input-multiple-colors.js';
3
- import { OxPropertyEditor } from './ox-property-editor.js';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorMultipleColors = class OxPropertyEditorMultipleColors extends OxPropertyEditor {
7
- editorTemplate() {
8
- return html ` <ox-input-multiple-colors id="editor" .value=${this.value}> </ox-input-multiple-colors> `;
7
+ editorTemplate(value, spec) {
8
+ return html ` <ox-input-multiple-colors id="editor" .value=${value}> </ox-input-multiple-colors> `;
9
9
  }
10
10
  };
11
11
  OxPropertyEditorMultipleColors = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-multiple-colors.js","sourceRoot":"","sources":["../../src/ox-property-editor-multiple-colors.ts"],"names":[],"mappings":";AAAA,OAAO,4CAA4C,CAAA;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,8BAA8B,GAA3C,MAAa,8BAA+B,SAAQ,gBAAgB;IAClE,cAAc;QACZ,OAAO,IAAI,CAAA,iDAAiD,IAAI,CAAC,KAAK,gCAAgC,CAAA;IACxG,CAAC;CACF,CAAA;AAJY,8BAA8B;IAD1C,aAAa,CAAC,oCAAoC,CAAC;GACvC,8BAA8B,CAI1C;SAJY,8BAA8B","sourcesContent":["import '@operato/input/ox-input-multiple-colors.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-multiple-colors')\nexport class OxPropertyEditorMultipleColors extends OxPropertyEditor {\n editorTemplate() {\n return html` <ox-input-multiple-colors id=\"editor\" .value=${this.value}> </ox-input-multiple-colors> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-multiple-colors.js","sourceRoot":"","sources":["../../src/ox-property-editor-multiple-colors.ts"],"names":[],"mappings":";AAAA,OAAO,4CAA4C,CAAA;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,8BAA8B,GAA3C,MAAa,8BAA+B,SAAQ,gBAAgB;IAClE,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,OAAO,IAAI,CAAA,iDAAiD,KAAK,gCAAgC,CAAA;IACnG,CAAC;CACF,CAAA;AAJY,8BAA8B;IAD1C,aAAa,CAAC,oCAAoC,CAAC;GACvC,8BAA8B,CAI1C;SAJY,8BAA8B","sourcesContent":["import '@operato/input/ox-input-multiple-colors.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-multiple-colors')\nexport class OxPropertyEditorMultipleColors extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n return html` <ox-input-multiple-colors id=\"editor\" .value=${value}> </ox-input-multiple-colors> `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import { OxPropertyEditor } from './ox-property-editor.js';
2
+ import { PropertySpec } from './types.js';
2
3
  export declare class OxPropertyEditorNumber extends OxPropertyEditor {
3
4
  makeup(v: string): number;
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,19 +1,19 @@
1
1
  import { __decorate } from "tslib";
2
- import { OxPropertyEditor } from './ox-property-editor.js';
3
- import { customElement } from 'lit/decorators.js';
4
2
  import { html } from 'lit';
3
+ import { customElement } from 'lit/decorators.js';
4
+ import { OxPropertyEditor } from './ox-property-editor.js';
5
5
  let OxPropertyEditorNumber = class OxPropertyEditorNumber extends OxPropertyEditor {
6
6
  makeup(v) {
7
7
  return Number(v);
8
8
  }
9
- editorTemplate() {
10
- const { step, min, max } = this.property || {};
9
+ editorTemplate(value, spec) {
10
+ const { step, min, max } = spec.property || {};
11
11
  return html `
12
12
  <input
13
13
  id="editor"
14
14
  type="number"
15
- placeholder=${this.placeholder || ''}
16
- .value=${this.value}
15
+ placeholder=${spec.placeholder || ''}
16
+ .value=${value}
17
17
  .step=${step}
18
18
  .min=${min}
19
19
  .max=${max}
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-number.js","sourceRoot":"","sources":["../../src/ox-property-editor-number.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,gBAAgB;IACjD,MAAM,CAAC,CAAS;QACvB,OAAO,MAAM,CAAC,CAAC,CAAC,CAAA;IAClB,CAAC;IAED,cAAc;QACZ,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA;;;;sBAIO,IAAI,CAAC,WAAW,IAAI,EAAE;iBAC3B,IAAI,CAAC,KAAK;gBACX,IAAI;eACL,GAAG;eACH,GAAG;;KAEb,CAAA;IACH,CAAC;CACF,CAAA;AApBY,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CAoBlC;SApBY,sBAAsB","sourcesContent":["import { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-number')\nexport class OxPropertyEditorNumber extends OxPropertyEditor {\n override makeup(v: string) {\n return Number(v)\n }\n\n editorTemplate() {\n const { step, min, max } = this.property || {}\n\n return html`\n <input\n id=\"editor\"\n type=\"number\"\n placeholder=${this.placeholder || ''}\n .value=${this.value}\n .step=${step}\n .min=${min}\n .max=${max}\n />\n `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-number.js","sourceRoot":"","sources":["../../src/ox-property-editor-number.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,gBAAgB;IACjD,MAAM,CAAC,CAAS;QACvB,OAAO,MAAM,CAAC,CAAC,CAAC,CAAA;IAClB,CAAC;IAED,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA;;;;sBAIO,IAAI,CAAC,WAAW,IAAI,EAAE;iBAC3B,KAAK;gBACN,IAAI;eACL,GAAG;eACH,GAAG;;KAEb,CAAA;IACH,CAAC;CACF,CAAA;AApBY,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CAoBlC;SApBY,sBAAsB","sourcesContent":["import { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-number')\nexport class OxPropertyEditorNumber extends OxPropertyEditor {\n override makeup(v: string) {\n return Number(v)\n }\n\n editorTemplate(value: any, spec: PropertySpec) {\n const { step, min, max } = spec.property || {}\n\n return html`\n <input\n id=\"editor\"\n type=\"number\"\n placeholder=${spec.placeholder || ''}\n .value=${value}\n .step=${step}\n .min=${min}\n .max=${max}\n />\n `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import '@operato/input/ox-input-options.js';
2
2
  import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
3
4
  export declare class OxPropertyEditorOptions extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,11 +1,12 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@operato/input/ox-input-options.js';
3
- import { OxPropertyEditor } from './ox-property-editor.js';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorOptions = class OxPropertyEditorOptions extends OxPropertyEditor {
7
- editorTemplate() {
8
- return html ` <ox-input-options id="editor" .value=${this.value || []}></ox-input-options> `;
7
+ editorTemplate(value, spec) {
8
+ const { fullwidth = false } = spec.editor || {};
9
+ return html ` <ox-input-options id="editor" .value=${value || []} ?fullwidth=${fullwidth}></ox-input-options> `;
9
10
  }
10
11
  };
11
12
  OxPropertyEditorOptions = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-options.js","sourceRoot":"","sources":["../../src/ox-property-editor-options.ts"],"names":[],"mappings":";AAAA,OAAO,oCAAoC,CAAA;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,cAAc;QACZ,OAAO,IAAI,CAAA,yCAAyC,IAAI,CAAC,KAAK,IAAI,EAAE,uBAAuB,CAAA;IAC7F,CAAC;CACF,CAAA;AAJY,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAInC;SAJY,uBAAuB","sourcesContent":["import '@operato/input/ox-input-options.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-options')\nexport class OxPropertyEditorOptions extends OxPropertyEditor {\n editorTemplate() {\n return html` <ox-input-options id=\"editor\" .value=${this.value || []}></ox-input-options> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-options.js","sourceRoot":"","sources":["../../src/ox-property-editor-options.ts"],"names":[],"mappings":";AAAA,OAAO,oCAAoC,CAAA;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE/C,OAAO,IAAI,CAAA,yCAAyC,KAAK,IAAI,EAAE,eAAe,SAAS,uBAAuB,CAAA;IAChH,CAAC;CACF,CAAA;AANY,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAMnC;SANY,uBAAuB","sourcesContent":["import '@operato/input/ox-input-options.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-options')\nexport class OxPropertyEditorOptions extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n const { fullwidth = false } = spec.editor || {}\n\n return html` <ox-input-options id=\"editor\" .value=${value || []} ?fullwidth=${fullwidth}></ox-input-options> `\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import '@operato/input/ox-input-partition-keys.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
4
+ export declare class OxPropertyEditorPartitionKeys extends OxPropertyEditor {
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
6
+ }
@@ -0,0 +1,18 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-partition-keys.js';
3
+ import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
+ let OxPropertyEditorPartitionKeys = class OxPropertyEditorPartitionKeys extends OxPropertyEditor {
7
+ editorTemplate(value, spec) {
8
+ const { fullwidth = true } = spec.editor || {};
9
+ return html `
10
+ <ox-input-partition-keys id="editor" .value=${value} ?fullwidth=${fullwidth}></ox-input-partition-keys>
11
+ `;
12
+ }
13
+ };
14
+ OxPropertyEditorPartitionKeys = __decorate([
15
+ customElement('ox-property-editor-partition-keys')
16
+ ], OxPropertyEditorPartitionKeys);
17
+ export { OxPropertyEditorPartitionKeys };
18
+ //# sourceMappingURL=ox-property-editor-partition-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-property-editor-partition-keys.js","sourceRoot":"","sources":["../../src/ox-property-editor-partition-keys.ts"],"names":[],"mappings":";AAAA,OAAO,2CAA2C,CAAA;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,6BAA6B,GAA1C,MAAa,6BAA8B,SAAQ,gBAAgB;IACjE,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA;oDACqC,KAAK,eAAe,SAAS;KAC5E,CAAA;IACH,CAAC;CACF,CAAA;AARY,6BAA6B;IADzC,aAAa,CAAC,mCAAmC,CAAC;GACtC,6BAA6B,CAQzC;SARY,6BAA6B","sourcesContent":["import '@operato/input/ox-input-partition-keys.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-partition-keys')\nexport class OxPropertyEditorPartitionKeys extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n const { fullwidth = true } = spec.editor || {}\n\n return html`\n <ox-input-partition-keys id=\"editor\" .value=${value} ?fullwidth=${fullwidth}></ox-input-partition-keys>\n `\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { OxPropertyEditor } from './ox-property-editor.js';
2
+ import { PropertySpec } from './types.js';
2
3
  export declare class OxPropertyEditorPassword extends OxPropertyEditor {
3
- editorTemplate(): import("lit-html").TemplateResult<1>;
4
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
4
5
  }
@@ -1,10 +1,10 @@
1
1
  import { __decorate } from "tslib";
2
- import { OxPropertyEditor } from './ox-property-editor.js';
3
- import { customElement } from 'lit/decorators.js';
4
2
  import { html } from 'lit';
3
+ import { customElement } from 'lit/decorators.js';
4
+ import { OxPropertyEditor } from './ox-property-editor.js';
5
5
  let OxPropertyEditorPassword = class OxPropertyEditorPassword extends OxPropertyEditor {
6
- editorTemplate() {
7
- return html ` <input type="password" id="editor" .value=${this.value} placeholder=${this.placeholder || ''} /> `;
6
+ editorTemplate(value, spec) {
7
+ return html ` <input type="password" id="editor" .value=${value} placeholder=${spec.placeholder || ''} /> `;
8
8
  }
9
9
  };
10
10
  OxPropertyEditorPassword = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-password.js","sourceRoot":"","sources":["../../src/ox-property-editor-password.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,cAAc;QACZ,OAAO,IAAI,CAAA,8CAA8C,IAAI,CAAC,KAAK,gBAAgB,IAAI,CAAC,WAAW,IAAI,EAAE,MAAM,CAAA;IACjH,CAAC;CACF,CAAA;AAJY,wBAAwB;IADpC,aAAa,CAAC,6BAA6B,CAAC;GAChC,wBAAwB,CAIpC;SAJY,wBAAwB","sourcesContent":["import { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-password')\nexport class OxPropertyEditorPassword extends OxPropertyEditor {\n editorTemplate() {\n return html` <input type=\"password\" id=\"editor\" .value=${this.value} placeholder=${this.placeholder || ''} /> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-password.js","sourceRoot":"","sources":["../../src/ox-property-editor-password.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,OAAO,IAAI,CAAA,8CAA8C,KAAK,gBAAgB,IAAI,CAAC,WAAW,IAAI,EAAE,MAAM,CAAA;IAC5G,CAAC;CACF,CAAA;AAJY,wBAAwB;IADpC,aAAa,CAAC,6BAA6B,CAAC;GAChC,wBAAwB,CAIpC;SAJY,wBAAwB","sourcesContent":["import { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-password')\nexport class OxPropertyEditorPassword extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n return html` <input type=\"password\" id=\"editor\" .value=${value} placeholder=${spec.placeholder || ''} /> `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import '@operato/input/ox-input-range.js';
2
2
  import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
3
4
  export declare class OxPropertyEditorRange extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,13 +1,21 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@operato/input/ox-input-range.js';
3
- import { OxPropertyEditor } from './ox-property-editor.js';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorRange = class OxPropertyEditorRange extends OxPropertyEditor {
7
- editorTemplate() {
8
- const { step, min, max } = this.property || {};
7
+ editorTemplate(value, spec) {
8
+ const { step, min, max } = spec.property || {};
9
+ const { fullwidth = false } = spec.editor || {};
9
10
  return html `
10
- <ox-input-range id="editor" .value=${this.value} .step=${step} .min=${min} .max=${max}></ox-input-range>
11
+ <ox-input-range
12
+ id="editor"
13
+ .value=${value}
14
+ .step=${step}
15
+ .min=${min}
16
+ .max=${max}
17
+ ?fullwidth=${fullwidth}
18
+ ></ox-input-range>
11
19
  `;
12
20
  }
13
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-range.js","sourceRoot":"","sources":["../../src/ox-property-editor-range.ts"],"names":[],"mappings":";AAAA,OAAO,kCAAkC,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,gBAAgB;IACzD,cAAc;QACZ,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;QAE9C,OAAO,IAAI,CAAA;2CAC4B,IAAI,CAAC,KAAK,UAAU,IAAI,SAAS,GAAG,SAAS,GAAG;KACtF,CAAA;IACH,CAAC;CACF,CAAA;AARY,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CAQjC;SARY,qBAAqB","sourcesContent":["import '@operato/input/ox-input-range.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-range')\nexport class OxPropertyEditorRange extends OxPropertyEditor {\n editorTemplate() {\n const { step, min, max } = this.property || {}\n\n return html`\n <ox-input-range id=\"editor\" .value=${this.value} .step=${step} .min=${min} .max=${max}></ox-input-range>\n `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-range.js","sourceRoot":"","sources":["../../src/ox-property-editor-range.ts"],"names":[],"mappings":";AAAA,OAAO,kCAAkC,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,gBAAgB;IACzD,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;QAC9C,MAAM,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAE/C,OAAO,IAAI,CAAA;;;iBAGE,KAAK;gBACN,IAAI;eACL,GAAG;eACH,GAAG;qBACG,SAAS;;KAEzB,CAAA;IACH,CAAC;CACF,CAAA;AAhBY,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CAgBjC;SAhBY,qBAAqB","sourcesContent":["import '@operato/input/ox-input-range.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n@customElement('ox-property-editor-range')\nexport class OxPropertyEditorRange extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n const { step, min, max } = spec.property || {}\n const { fullwidth = false } = spec.editor || {}\n\n return html`\n <ox-input-range\n id=\"editor\"\n .value=${value}\n .step=${step}\n .min=${min}\n .max=${max}\n ?fullwidth=${fullwidth}\n ></ox-input-range>\n `\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import '@operato/input/ox-input-scene-component-id.js';
2
2
  import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { PropertySpec } from './types.js';
3
4
  export declare class OxPropertyEditorSceneComponentId extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
6
  }
@@ -1,16 +1,12 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '@operato/input/ox-input-scene-component-id.js';
3
- import { OxPropertyEditor } from './ox-property-editor.js';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
6
  let OxPropertyEditorSceneComponentId = class OxPropertyEditorSceneComponentId extends OxPropertyEditor {
7
- editorTemplate() {
7
+ editorTemplate(value, spec) {
8
8
  return html `
9
- <ox-input-scene-component-id
10
- id="editor"
11
- .value=${this.value}
12
- .property=${this.property}
13
- ></ox-input-scene-component-id>
9
+ <ox-input-scene-component-id id="editor" .value=${value} .property=${spec.property}></ox-input-scene-component-id>
14
10
  `;
15
11
  }
16
12
  };