@operato/property-editor 0.4.3 → 0.4.6

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 (81) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/src/ox-properties-dynamic-view.d.ts +4 -0
  3. package/dist/src/ox-properties-dynamic-view.js +122 -0
  4. package/dist/src/ox-properties-dynamic-view.js.map +1 -0
  5. package/dist/src/ox-property-editor-angle.d.ts +5 -0
  6. package/dist/src/ox-property-editor-angle.js +17 -0
  7. package/dist/src/ox-property-editor-angle.js.map +1 -0
  8. package/dist/src/ox-property-editor-checkbox.d.ts +6 -0
  9. package/dist/src/ox-property-editor-checkbox.js +18 -0
  10. package/dist/src/ox-property-editor-checkbox.js.map +1 -0
  11. package/dist/src/ox-property-editor-color.d.ts +5 -0
  12. package/dist/src/ox-property-editor-color.js +23 -0
  13. package/dist/src/ox-property-editor-color.js.map +1 -0
  14. package/dist/src/ox-property-editor-crontab.d.ts +5 -0
  15. package/dist/src/ox-property-editor-crontab.js +15 -0
  16. package/dist/src/ox-property-editor-crontab.js.map +1 -0
  17. package/dist/src/ox-property-editor-data.d.ts +5 -0
  18. package/dist/src/ox-property-editor-data.js +15 -0
  19. package/dist/src/ox-property-editor-data.js.map +1 -0
  20. package/dist/src/ox-property-editor-date.d.ts +4 -0
  21. package/dist/src/ox-property-editor-date.js +14 -0
  22. package/dist/src/ox-property-editor-date.js.map +1 -0
  23. package/dist/src/ox-property-editor-file.d.ts +5 -0
  24. package/dist/src/ox-property-editor-file.js +17 -0
  25. package/dist/src/ox-property-editor-file.js.map +1 -0
  26. package/dist/src/ox-property-editor-gradient-colorstops.d.ts +5 -0
  27. package/dist/src/ox-property-editor-gradient-colorstops.js +25 -0
  28. package/dist/src/ox-property-editor-gradient-colorstops.js.map +1 -0
  29. package/dist/src/ox-property-editor-image.d.ts +5 -0
  30. package/dist/src/ox-property-editor-image.js +16 -0
  31. package/dist/src/ox-property-editor-image.js.map +1 -0
  32. package/dist/src/ox-property-editor-legend.d.ts +4 -0
  33. package/dist/src/ox-property-editor-legend.js +14 -0
  34. package/dist/src/ox-property-editor-legend.js.map +1 -0
  35. package/dist/src/ox-property-editor-multiple-colors.d.ts +5 -0
  36. package/dist/src/ox-property-editor-multiple-colors.js +15 -0
  37. package/dist/src/ox-property-editor-multiple-colors.js.map +1 -0
  38. package/dist/src/ox-property-editor-number.d.ts +5 -0
  39. package/dist/src/ox-property-editor-number.js +28 -0
  40. package/dist/src/ox-property-editor-number.js.map +1 -0
  41. package/dist/src/ox-property-editor-options.d.ts +5 -0
  42. package/dist/src/ox-property-editor-options.js +15 -0
  43. package/dist/src/ox-property-editor-options.js.map +1 -0
  44. package/dist/src/ox-property-editor-password.d.ts +4 -0
  45. package/dist/src/ox-property-editor-password.js +14 -0
  46. package/dist/src/ox-property-editor-password.js.map +1 -0
  47. package/dist/src/ox-property-editor-range.d.ts +5 -0
  48. package/dist/src/ox-property-editor-range.js +18 -0
  49. package/dist/src/ox-property-editor-range.js.map +1 -0
  50. package/dist/src/ox-property-editor-scene-component-id.d.ts +5 -0
  51. package/dist/src/ox-property-editor-scene-component-id.js +21 -0
  52. package/dist/src/ox-property-editor-scene-component-id.js.map +1 -0
  53. package/dist/src/ox-property-editor-select.d.ts +16 -0
  54. package/dist/src/ox-property-editor-select.js +66 -0
  55. package/dist/src/ox-property-editor-select.js.map +1 -0
  56. package/dist/src/ox-property-editor-solid-colorstops.d.ts +5 -0
  57. package/dist/src/ox-property-editor-solid-colorstops.js +25 -0
  58. package/dist/src/ox-property-editor-solid-colorstops.js.map +1 -0
  59. package/dist/src/ox-property-editor-string.d.ts +4 -0
  60. package/dist/src/ox-property-editor-string.js +14 -0
  61. package/dist/src/ox-property-editor-string.js.map +1 -0
  62. package/dist/src/ox-property-editor-table.d.ts +5 -0
  63. package/dist/src/ox-property-editor-table.js +15 -0
  64. package/dist/src/ox-property-editor-table.js.map +1 -0
  65. package/dist/src/ox-property-editor-textarea.d.ts +5 -0
  66. package/dist/src/ox-property-editor-textarea.js +26 -0
  67. package/dist/src/ox-property-editor-textarea.js.map +1 -0
  68. package/dist/src/ox-property-editor-value-map.d.ts +5 -0
  69. package/dist/src/ox-property-editor-value-map.js +20 -0
  70. package/dist/src/ox-property-editor-value-map.js.map +1 -0
  71. package/dist/src/ox-property-editor-value-ranges.d.ts +5 -0
  72. package/dist/src/ox-property-editor-value-ranges.js +20 -0
  73. package/dist/src/ox-property-editor-value-ranges.js.map +1 -0
  74. package/dist/src/ox-property-editor-work-shift.d.ts +5 -0
  75. package/dist/src/ox-property-editor-work-shift.js +16 -0
  76. package/dist/src/ox-property-editor-work-shift.js.map +1 -0
  77. package/dist/src/types.d.ts +8 -0
  78. package/dist/src/types.js +2 -0
  79. package/dist/src/types.js.map +1 -0
  80. package/dist/tsconfig.tsbuildinfo +1 -1
  81. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [0.4.6](https://github.com/hatiolab/operato/compare/v0.4.5...v0.4.6) (2022-04-22)
7
+
8
+
9
+ ### :bug: Bug Fix
10
+
11
+ * @hatiolab/things-scene@2.8.2 ([0a750d6](https://github.com/hatiolab/operato/commit/0a750d6fb1b572525e8c3efe7b2a97ee90996e40))
12
+
13
+
14
+
15
+ ### [0.4.5](https://github.com/hatiolab/operato/compare/v0.4.4...v0.4.5) (2022-04-22)
16
+
17
+ **Note:** Version bump only for package @operato/property-editor
18
+
19
+
20
+
21
+
22
+
23
+ ### [0.4.4](https://github.com/hatiolab/operato/compare/v0.4.3...v0.4.4) (2022-04-22)
24
+
25
+ **Note:** Version bump only for package @operato/property-editor
26
+
27
+
28
+
29
+
30
+
6
31
  ### [0.4.3](https://github.com/hatiolab/operato/compare/v0.4.2...v0.4.3) (2022-03-06)
7
32
 
8
33
  **Note:** Version bump only for package @operato/property-editor
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @license Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ export {};
@@ -0,0 +1,122 @@
1
+ /**
2
+ * @license Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import { __decorate } from "tslib";
5
+ import { LitElement, html } from 'lit';
6
+ import { customElement, property } from 'lit/decorators.js';
7
+ import { OxPropertyEditor } from './ox-property-editor.js';
8
+ /**
9
+ 모든 에디터들은 change 이벤트를 지원해야 한다. 또한, 모든 에디터들은 value속성에 값을 가져야 한다.
10
+
11
+ Example:
12
+
13
+ <ox-properties-dynamic-view value="{{value}}">
14
+ <label>Center X</label>
15
+ <input type="number" .value="${value.cx}">
16
+ <label>Width</label>
17
+ <input type="number" .value="${value.width}">
18
+ </ox-properties-dynamic-view>
19
+ */
20
+ const DEFAULT_VALUE = {
21
+ legend: '',
22
+ number: 0,
23
+ angle: 0,
24
+ string: '',
25
+ password: '',
26
+ textarea: '',
27
+ checkbox: false,
28
+ select: '',
29
+ color: '#000000',
30
+ 'solidcolor-stops': null,
31
+ 'gradientcolor-stops': null,
32
+ 'gltf-selector': '',
33
+ 'image-selector': '',
34
+ multiplecolor: null,
35
+ editortable: null,
36
+ imageselector: '',
37
+ options: null,
38
+ date: null
39
+ };
40
+ let OxPropertiesDynamicView = class OxPropertiesDynamicView extends LitElement {
41
+ constructor() {
42
+ super(...arguments);
43
+ this.value = {};
44
+ }
45
+ render() {
46
+ return html `<slot></slot>`;
47
+ }
48
+ firstUpdated() {
49
+ this.addEventListener('change', this._onValueChanged.bind(this));
50
+ }
51
+ updated(changes) {
52
+ changes.has('props') && this._onPropsChanged(this.props || []);
53
+ changes.has('value') && this._setValues();
54
+ }
55
+ _onPropsChanged(props) {
56
+ const specs = this.props || [];
57
+ this.textContent = '';
58
+ specs.forEach(spec => {
59
+ let elementType = OxPropertyEditor.getEditor(spec.type);
60
+ if (!elementType) {
61
+ console.warn('Property Editor not defined', spec.type);
62
+ return;
63
+ }
64
+ let element = document.createElement(elementType);
65
+ element.label = spec.label;
66
+ element.type = spec.type;
67
+ element.placeholder = spec.placeholder;
68
+ element.setAttribute('name', spec.name);
69
+ if (spec.observe) {
70
+ element.observe = spec.observe;
71
+ }
72
+ element.property = spec.property;
73
+ element.setAttribute('property-editor', 'true');
74
+ this.appendChild(element);
75
+ });
76
+ }
77
+ _setValues() {
78
+ this.value &&
79
+ Array.from(this.querySelectorAll('[name]')).forEach(prop => {
80
+ const editor = prop;
81
+ const name = editor.getAttribute('name');
82
+ var value = this.value[name];
83
+ if (value === undefined) {
84
+ value = DEFAULT_VALUE[editor.type];
85
+ }
86
+ editor.value = value;
87
+ editor.observe && editor.observe.call(prop, editor.value);
88
+ });
89
+ }
90
+ _onValueChanged(e) {
91
+ e.stopPropagation();
92
+ var target = e.target;
93
+ const editor = target.closest('[property-editor]');
94
+ var name = editor.getAttribute('name');
95
+ if (!name) {
96
+ return;
97
+ }
98
+ if (this.value) {
99
+ this.value[name] = editor.value;
100
+ }
101
+ else {
102
+ this.value = {
103
+ [name]: editor.value
104
+ };
105
+ }
106
+ this.dispatchEvent(new CustomEvent('property-change', {
107
+ bubbles: true,
108
+ composed: true,
109
+ detail: this.value
110
+ }));
111
+ }
112
+ };
113
+ __decorate([
114
+ property({ type: Object })
115
+ ], OxPropertiesDynamicView.prototype, "value", void 0);
116
+ __decorate([
117
+ property({ type: Array })
118
+ ], OxPropertiesDynamicView.prototype, "props", void 0);
119
+ OxPropertiesDynamicView = __decorate([
120
+ customElement('ox-properties-dynamic-view')
121
+ ], OxPropertiesDynamicView);
122
+ //# sourceMappingURL=ox-properties-dynamic-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-properties-dynamic-view.js","sourceRoot":"","sources":["../../src/ox-properties-dynamic-view.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,EAAE,UAAU,EAAkB,IAAI,EAAE,MAAM,KAAK,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ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} from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\nimport { OxPropertyEditor } from './ox-property-editor.js'\nimport { PropertySpec } from './types.js'\n\n/**\n모든 에디터들은 change 이벤트를 지원해야 한다. 또한, 모든 에디터들은 value속성에 값을 가져야 한다.\n\nExample:\n\n <ox-properties-dynamic-view value=\"{{value}}\">\n <label>Center X</label>\n <input type=\"number\" .value=\"${value.cx}\">\n <label>Width</label>\n <input type=\"number\" .value=\"${value.width}\">\n </ox-properties-dynamic-view>\n*/\n\nconst DEFAULT_VALUE = {\n legend: '',\n number: 0,\n angle: 0,\n string: '',\n password: '',\n textarea: '',\n checkbox: false,\n select: '',\n color: '#000000',\n 'solidcolor-stops': null,\n 'gradientcolor-stops': null,\n 'gltf-selector': '',\n 'image-selector': '',\n multiplecolor: null,\n editortable: null,\n imageselector: '',\n options: null,\n date: null\n}\n\n@customElement('ox-properties-dynamic-view')\nclass OxPropertiesDynamicView extends LitElement {\n @property({ type: Object }) value: { [name: string]: any } = {}\n @property({ type: Array }) props?: PropertySpec[]\n\n render() {\n return html`<slot></slot>`\n }\n\n firstUpdated() {\n this.addEventListener('change', this._onValueChanged.bind(this))\n }\n\n updated(changes: PropertyValues<this>) {\n changes.has('props') && this._onPropsChanged(this.props || [])\n changes.has('value') && this._setValues()\n }\n\n _onPropsChanged(props: PropertySpec[]) {\n const specs = this.props || []\n\n this.textContent = ''\n specs.forEach(spec => {\n let elementType = OxPropertyEditor.getEditor(spec.type)\n if (!elementType) {\n console.warn('Property Editor not defined', spec.type)\n return\n }\n let element = document.createElement(elementType) as OxPropertyEditor\n\n element.label = spec.label\n element.type = spec.type\n element.placeholder = spec.placeholder\n element.setAttribute('name', spec.name)\n\n if (spec.observe) {\n element.observe = spec.observe\n }\n element.property = spec.property\n element.setAttribute('property-editor', 'true')\n\n this.appendChild(element)\n })\n }\n\n _setValues() {\n this.value &&\n Array.from(this.querySelectorAll('[name]')).forEach(prop => {\n const editor = prop as OxPropertyEditor\n const name = editor.getAttribute('name')\n\n var value = this.value[name!]\n if (value === undefined) {\n value = (DEFAULT_VALUE as any)[editor.type]\n }\n\n editor.value = value\n editor.observe && editor.observe.call(prop, editor.value)\n })\n }\n\n _onValueChanged(e: Event) {\n e.stopPropagation()\n var target = e.target as Element\n\n const editor = target.closest('[property-editor]') as OxPropertyEditor\n\n var name = editor.getAttribute('name')\n if (!name) {\n return\n }\n\n if (this.value) {\n this.value[name] = editor.value\n } else {\n this.value = {\n [name]: editor.value\n }\n }\n\n this.dispatchEvent(\n new CustomEvent('property-change', {\n bubbles: true,\n composed: true,\n detail: this.value\n })\n )\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-angle.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorAngle extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,17 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-angle.js';
3
+ import { OxPropertyEditor } from './ox-property-editor.js';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { html } from 'lit';
6
+ let OxPropertyEditorAngle = class OxPropertyEditorAngle extends OxPropertyEditor {
7
+ editorTemplate() {
8
+ return html `
9
+ <ox-input-angle id="editor" .radian=${this.value} placeholder=${this.placeholder || ''}></ox-input-angle>
10
+ `;
11
+ }
12
+ };
13
+ OxPropertyEditorAngle = __decorate([
14
+ customElement('ox-property-editor-angle')
15
+ ], OxPropertyEditorAngle);
16
+ export { OxPropertyEditorAngle };
17
+ //# sourceMappingURL=ox-property-editor-angle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-property-editor-angle.js","sourceRoot":"","sources":["../../src/ox-property-editor-angle.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,OAAO,IAAI,CAAA;4CAC6B,IAAI,CAAC,KAAK,gBAAgB,IAAI,CAAC,WAAW,IAAI,EAAE;KACvF,CAAA;IACH,CAAC;CACF,CAAA;AANY,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CAMjC;SANY,qBAAqB","sourcesContent":["import '@operato/input/ox-input-angle.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-angle')\nexport class OxPropertyEditorAngle extends OxPropertyEditor {\n editorTemplate() {\n return html`\n <ox-input-angle id=\"editor\" .radian=${this.value} placeholder=${this.placeholder || ''}></ox-input-angle>\n `\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import '@operato/input/ox-checkbox.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorCheckbox extends OxPropertyEditor {
4
+ get valueProperty(): string;
5
+ editorTemplate(): import("lit-html").TemplateResult<1>;
6
+ }
@@ -0,0 +1,18 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-checkbox.js';
3
+ import { OxPropertyEditor } from './ox-property-editor.js';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { html } from 'lit';
6
+ let OxPropertyEditorCheckbox = class OxPropertyEditorCheckbox extends OxPropertyEditor {
7
+ get valueProperty() {
8
+ return 'checked';
9
+ }
10
+ editorTemplate() {
11
+ return html ` <ox-checkbox id="editor" ?checked=${this.value}></ox-checkbox>`;
12
+ }
13
+ };
14
+ OxPropertyEditorCheckbox = __decorate([
15
+ customElement('ox-property-editor-checkbox')
16
+ ], OxPropertyEditorCheckbox);
17
+ export { OxPropertyEditorCheckbox };
18
+ //# sourceMappingURL=ox-property-editor-checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-property-editor-checkbox.js","sourceRoot":"","sources":["../../src/ox-property-editor-checkbox.ts"],"names":[],"mappings":";AAAA,OAAO,+BAA+B,CAAA;AAEtC,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,IAAI,aAAa;QACf,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAA,sCAAsC,IAAI,CAAC,KAAK,iBAAiB,CAAA;IAC9E,CAAC;CACF,CAAA;AARY,wBAAwB;IADpC,aAAa,CAAC,6BAA6B,CAAC;GAChC,wBAAwB,CAQpC;SARY,wBAAwB","sourcesContent":["import '@operato/input/ox-checkbox.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-checkbox')\nexport class OxPropertyEditorCheckbox extends OxPropertyEditor {\n get valueProperty() {\n return 'checked'\n }\n\n editorTemplate() {\n return html` <ox-checkbox id=\"editor\" ?checked=${this.value}></ox-checkbox>`\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-color.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorColor extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,23 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-color.js';
3
+ import { OxPropertyEditor } from './ox-property-editor.js';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { html } from 'lit';
6
+ let OxPropertyEditorColor = class OxPropertyEditorColor extends OxPropertyEditor {
7
+ editorTemplate() {
8
+ return html `
9
+ <ox-input-color
10
+ id="editor"
11
+ .value=${this.value}
12
+ placeholder=${this.placeholder || ''}
13
+ .properties=${this.property}
14
+ >
15
+ </ox-input-color>
16
+ `;
17
+ }
18
+ };
19
+ OxPropertyEditorColor = __decorate([
20
+ customElement('ox-property-editor-color')
21
+ ], OxPropertyEditorColor);
22
+ export { OxPropertyEditorColor };
23
+ //# sourceMappingURL=ox-property-editor-color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-property-editor-color.js","sourceRoot":"","sources":["../../src/ox-property-editor-color.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,OAAO,IAAI,CAAA;;;iBAGE,IAAI,CAAC,KAAK;sBACL,IAAI,CAAC,WAAW,IAAI,EAAE;sBACtB,IAAI,CAAC,QAAQ;;;KAG9B,CAAA;IACH,CAAC;CACF,CAAA;AAZY,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CAYjC;SAZY,qBAAqB","sourcesContent":["import '@operato/input/ox-input-color.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-color')\nexport class OxPropertyEditorColor extends OxPropertyEditor {\n editorTemplate() {\n return html`\n <ox-input-color\n id=\"editor\"\n .value=${this.value}\n placeholder=${this.placeholder || ''}\n .properties=${this.property}\n >\n </ox-input-color>\n `\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-crontab.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorCrontab extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,15 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-crontab.js';
3
+ import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from './ox-property-editor.js';
6
+ let OxPropertyEditorCrontab = class OxPropertyEditorCrontab extends OxPropertyEditor {
7
+ editorTemplate() {
8
+ return html ` <ox-input-crontab id="editor" .value=${this.value} fullwidth> </ox-input-crontab> `;
9
+ }
10
+ };
11
+ OxPropertyEditorCrontab = __decorate([
12
+ customElement('ox-property-editor-crontab')
13
+ ], OxPropertyEditorCrontab);
14
+ export { OxPropertyEditorCrontab };
15
+ //# sourceMappingURL=ox-property-editor-crontab.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-data.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorData extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,15 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-data.js';
3
+ import { OxPropertyEditor } from './ox-property-editor.js';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { html } from 'lit';
6
+ let OxPropertyEditorData = class OxPropertyEditorData extends OxPropertyEditor {
7
+ editorTemplate() {
8
+ return html ` <ox-input-data id="editor" .value=${this.value || []} fullwidth></ox-input-data> `;
9
+ }
10
+ };
11
+ OxPropertyEditorData = __decorate([
12
+ customElement('ox-property-editor-data')
13
+ ], OxPropertyEditorData);
14
+ export { OxPropertyEditorData };
15
+ //# sourceMappingURL=ox-property-editor-data.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,4 @@
1
+ import { OxPropertyEditor } from './ox-property-editor.js';
2
+ export declare class OxPropertyEditorDate extends OxPropertyEditor {
3
+ editorTemplate(): import("lit-html").TemplateResult<1>;
4
+ }
@@ -0,0 +1,14 @@
1
+ import { __decorate } from "tslib";
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { customElement } from 'lit/decorators.js';
4
+ import { html } from 'lit';
5
+ let OxPropertyEditorDate = class OxPropertyEditorDate extends OxPropertyEditor {
6
+ editorTemplate() {
7
+ return html ` <input type="date" id="editor" .value=${this.value} /> `;
8
+ }
9
+ };
10
+ OxPropertyEditorDate = __decorate([
11
+ customElement('ox-property-editor-date')
12
+ ], OxPropertyEditorDate);
13
+ export { OxPropertyEditorDate };
14
+ //# sourceMappingURL=ox-property-editor-date.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-file.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorFile extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,17 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-file.js';
3
+ import { OxPropertyEditor } from './ox-property-editor.js';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { html } from 'lit';
6
+ let OxPropertyEditorFile = class OxPropertyEditorFile extends OxPropertyEditor {
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> `;
11
+ }
12
+ };
13
+ OxPropertyEditorFile = __decorate([
14
+ customElement('ox-property-editor-file')
15
+ ], OxPropertyEditorFile);
16
+ export { OxPropertyEditorFile };
17
+ //# sourceMappingURL=ox-property-editor-file.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-color-stops.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorGradientColorStops extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,25 @@
1
+ import { __decorate } from "tslib";
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
+ import { html } from 'lit';
6
+ let OxPropertyEditorGradientColorStops = class OxPropertyEditorGradientColorStops extends OxPropertyEditor {
7
+ editorTemplate() {
8
+ return html `
9
+ <ox-input-color-stops
10
+ id="editor"
11
+ type="gradient"
12
+ .value=${this.value}
13
+ .min=${this.property && this.property.min}
14
+ .max=${this.property && this.property.max}
15
+ fullwidth
16
+ >
17
+ </ox-input-color-stops>
18
+ `;
19
+ }
20
+ };
21
+ OxPropertyEditorGradientColorStops = __decorate([
22
+ customElement('ox-property-editor-gradient-colorstops')
23
+ ], OxPropertyEditorGradientColorStops);
24
+ export { OxPropertyEditorGradientColorStops };
25
+ //# sourceMappingURL=ox-property-editor-gradient-colorstops.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-image.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorImage extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,16 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-image.js';
3
+ import { OxPropertyEditor } from './ox-property-editor.js';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { html } from 'lit';
6
+ let OxPropertyEditorImage = class OxPropertyEditorImage extends OxPropertyEditor {
7
+ // TODO image change event 처리
8
+ editorTemplate() {
9
+ return html ` <ox-input-image id="editor" .value=${this.value}></ox-input-image> `;
10
+ }
11
+ };
12
+ OxPropertyEditorImage = __decorate([
13
+ customElement('ox-property-editor-image')
14
+ ], OxPropertyEditorImage);
15
+ export { OxPropertyEditorImage };
16
+ //# sourceMappingURL=ox-property-editor-image.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,4 @@
1
+ import { OxPropertyEditor } from './ox-property-editor.js';
2
+ export declare class OxPropertyEditorLegend extends OxPropertyEditor {
3
+ editorTemplate(): import("lit-html").TemplateResult<1>;
4
+ }
@@ -0,0 +1,14 @@
1
+ import { __decorate } from "tslib";
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { customElement } from 'lit/decorators.js';
4
+ import { html } from 'lit';
5
+ let OxPropertyEditorLegend = class OxPropertyEditorLegend extends OxPropertyEditor {
6
+ editorTemplate() {
7
+ return html ` <legend>${this.property.label}</legend> `;
8
+ }
9
+ };
10
+ OxPropertyEditorLegend = __decorate([
11
+ customElement('ox-property-editor-legend')
12
+ ], OxPropertyEditorLegend);
13
+ export { OxPropertyEditorLegend };
14
+ //# sourceMappingURL=ox-property-editor-legend.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-multiple-colors.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorMultipleColors extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,15 @@
1
+ import { __decorate } from "tslib";
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
+ import { html } from 'lit';
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> `;
9
+ }
10
+ };
11
+ OxPropertyEditorMultipleColors = __decorate([
12
+ customElement('ox-property-editor-multiple-colors')
13
+ ], OxPropertyEditorMultipleColors);
14
+ export { OxPropertyEditorMultipleColors };
15
+ //# sourceMappingURL=ox-property-editor-multiple-colors.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import { OxPropertyEditor } from './ox-property-editor.js';
2
+ export declare class OxPropertyEditorNumber extends OxPropertyEditor {
3
+ makeup(v: string): number;
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,28 @@
1
+ import { __decorate } from "tslib";
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { customElement } from 'lit/decorators.js';
4
+ import { html } from 'lit';
5
+ let OxPropertyEditorNumber = class OxPropertyEditorNumber extends OxPropertyEditor {
6
+ makeup(v) {
7
+ return Number(v);
8
+ }
9
+ editorTemplate() {
10
+ const { step, min, max } = this.property || {};
11
+ return html `
12
+ <input
13
+ id="editor"
14
+ type="number"
15
+ placeholder=${this.placeholder || ''}
16
+ .value=${this.value}
17
+ .step=${step}
18
+ .min=${min}
19
+ .max=${max}
20
+ />
21
+ `;
22
+ }
23
+ };
24
+ OxPropertyEditorNumber = __decorate([
25
+ customElement('ox-property-editor-number')
26
+ ], OxPropertyEditorNumber);
27
+ export { OxPropertyEditorNumber };
28
+ //# sourceMappingURL=ox-property-editor-number.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-options.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorOptions extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,15 @@
1
+ import { __decorate } from "tslib";
2
+ import '@operato/input/ox-input-options.js';
3
+ import { OxPropertyEditor } from './ox-property-editor.js';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { html } from 'lit';
6
+ let OxPropertyEditorOptions = class OxPropertyEditorOptions extends OxPropertyEditor {
7
+ editorTemplate() {
8
+ return html ` <ox-input-options id="editor" .value=${this.value || []}></ox-input-options> `;
9
+ }
10
+ };
11
+ OxPropertyEditorOptions = __decorate([
12
+ customElement('ox-property-editor-options')
13
+ ], OxPropertyEditorOptions);
14
+ export { OxPropertyEditorOptions };
15
+ //# sourceMappingURL=ox-property-editor-options.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,4 @@
1
+ import { OxPropertyEditor } from './ox-property-editor.js';
2
+ export declare class OxPropertyEditorPassword extends OxPropertyEditor {
3
+ editorTemplate(): import("lit-html").TemplateResult<1>;
4
+ }
@@ -0,0 +1,14 @@
1
+ import { __decorate } from "tslib";
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ import { customElement } from 'lit/decorators.js';
4
+ import { html } from 'lit';
5
+ let OxPropertyEditorPassword = class OxPropertyEditorPassword extends OxPropertyEditor {
6
+ editorTemplate() {
7
+ return html ` <input type="password" id="editor" .value=${this.value} placeholder=${this.placeholder || ''} /> `;
8
+ }
9
+ };
10
+ OxPropertyEditorPassword = __decorate([
11
+ customElement('ox-property-editor-password')
12
+ ], OxPropertyEditorPassword);
13
+ export { OxPropertyEditorPassword };
14
+ //# sourceMappingURL=ox-property-editor-password.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import '@operato/input/ox-input-range.js';
2
+ import { OxPropertyEditor } from './ox-property-editor.js';
3
+ export declare class OxPropertyEditorRange extends OxPropertyEditor {
4
+ editorTemplate(): import("lit-html").TemplateResult<1>;
5
+ }