@operato/property-editor 1.0.0-beta.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +359 -0
- package/demo/index.html +19 -5
- package/dist/src/ox-properties-dynamic-view.js +14 -10
- package/dist/src/ox-properties-dynamic-view.js.map +1 -1
- package/dist/src/ox-property-editor-angle.d.ts +2 -1
- package/dist/src/ox-property-editor-angle.js +4 -6
- package/dist/src/ox-property-editor-angle.js.map +1 -1
- package/dist/src/ox-property-editor-checkbox.d.ts +2 -1
- package/dist/src/ox-property-editor-checkbox.js +4 -4
- package/dist/src/ox-property-editor-checkbox.js.map +1 -1
- package/dist/src/ox-property-editor-color.d.ts +2 -1
- package/dist/src/ox-property-editor-color.js +4 -9
- package/dist/src/ox-property-editor-color.js.map +1 -1
- package/dist/src/ox-property-editor-crontab.d.ts +2 -1
- package/dist/src/ox-property-editor-crontab.js +3 -2
- package/dist/src/ox-property-editor-crontab.js.map +1 -1
- package/dist/src/ox-property-editor-data.d.ts +2 -1
- package/dist/src/ox-property-editor-data.js +5 -4
- package/dist/src/ox-property-editor-data.js.map +1 -1
- package/dist/src/ox-property-editor-date.d.ts +2 -1
- package/dist/src/ox-property-editor-date.js +4 -4
- package/dist/src/ox-property-editor-date.js.map +1 -1
- package/dist/src/ox-property-editor-duration.d.ts +6 -0
- package/dist/src/ox-property-editor-duration.js +16 -0
- package/dist/src/ox-property-editor-duration.js.map +1 -0
- package/dist/src/ox-property-editor-file.d.ts +2 -1
- package/dist/src/ox-property-editor-file.js +8 -5
- package/dist/src/ox-property-editor-file.js.map +1 -1
- package/dist/src/ox-property-editor-gradient-colorstops.d.ts +2 -1
- package/dist/src/ox-property-editor-gradient-colorstops.js +8 -7
- package/dist/src/ox-property-editor-gradient-colorstops.js.map +1 -1
- package/dist/src/ox-property-editor-image.d.ts +2 -1
- package/dist/src/ox-property-editor-image.js +5 -4
- package/dist/src/ox-property-editor-image.js.map +1 -1
- package/dist/src/ox-property-editor-key-values.d.ts +6 -0
- package/dist/src/ox-property-editor-key-values.js +24 -0
- package/dist/src/ox-property-editor-key-values.js.map +1 -0
- package/dist/src/ox-property-editor-legend.d.ts +2 -1
- package/dist/src/ox-property-editor-legend.js +4 -4
- package/dist/src/ox-property-editor-legend.js.map +1 -1
- package/dist/src/ox-property-editor-multiple-colors.d.ts +2 -1
- package/dist/src/ox-property-editor-multiple-colors.js +4 -4
- package/dist/src/ox-property-editor-multiple-colors.js.map +1 -1
- package/dist/src/ox-property-editor-number.d.ts +2 -1
- package/dist/src/ox-property-editor-number.js +6 -6
- package/dist/src/ox-property-editor-number.js.map +1 -1
- package/dist/src/ox-property-editor-options.d.ts +2 -1
- package/dist/src/ox-property-editor-options.js +5 -4
- package/dist/src/ox-property-editor-options.js.map +1 -1
- package/dist/src/ox-property-editor-partition-keys.d.ts +6 -0
- package/dist/src/ox-property-editor-partition-keys.js +18 -0
- package/dist/src/ox-property-editor-partition-keys.js.map +1 -0
- package/dist/src/ox-property-editor-password.d.ts +2 -1
- package/dist/src/ox-property-editor-password.js +4 -4
- package/dist/src/ox-property-editor-password.js.map +1 -1
- package/dist/src/ox-property-editor-range.d.ts +2 -1
- package/dist/src/ox-property-editor-range.js +13 -5
- package/dist/src/ox-property-editor-range.js.map +1 -1
- package/dist/src/ox-property-editor-scene-component-id.d.ts +2 -1
- package/dist/src/ox-property-editor-scene-component-id.js +4 -8
- package/dist/src/ox-property-editor-scene-component-id.js.map +1 -1
- package/dist/src/ox-property-editor-select.d.ts +4 -1
- package/dist/src/ox-property-editor-select.js +11 -5
- package/dist/src/ox-property-editor-select.js.map +1 -1
- package/dist/src/ox-property-editor-solid-colorstops.d.ts +2 -1
- package/dist/src/ox-property-editor-solid-colorstops.js +8 -7
- package/dist/src/ox-property-editor-solid-colorstops.js.map +1 -1
- package/dist/src/ox-property-editor-string.d.ts +2 -1
- package/dist/src/ox-property-editor-string.js +4 -4
- package/dist/src/ox-property-editor-string.js.map +1 -1
- package/dist/src/ox-property-editor-table.d.ts +2 -1
- package/dist/src/ox-property-editor-table.js +5 -4
- package/dist/src/ox-property-editor-table.js.map +1 -1
- package/dist/src/ox-property-editor-textarea.d.ts +2 -1
- package/dist/src/ox-property-editor-textarea.js +9 -8
- package/dist/src/ox-property-editor-textarea.js.map +1 -1
- package/dist/src/ox-property-editor-value-map.d.ts +2 -1
- package/dist/src/ox-property-editor-value-map.js +11 -5
- package/dist/src/ox-property-editor-value-map.js.map +1 -1
- package/dist/src/ox-property-editor-value-ranges.d.ts +2 -1
- package/dist/src/ox-property-editor-value-ranges.js +9 -3
- package/dist/src/ox-property-editor-value-ranges.js.map +1 -1
- package/dist/src/ox-property-editor-work-shift.d.ts +3 -2
- package/dist/src/ox-property-editor-work-shift.js +8 -7
- package/dist/src/ox-property-editor-work-shift.js.map +1 -1
- package/dist/src/ox-property-editor.d.ts +8 -6
- package/dist/src/ox-property-editor.js +60 -7
- package/dist/src/ox-property-editor.js.map +1 -1
- package/dist/src/types.d.ts +5 -0
- package/dist/src/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -11
- package/src/ox-properties-dynamic-view.ts +15 -10
- package/src/ox-property-editor-angle.ts +6 -6
- package/src/ox-property-editor-checkbox.ts +6 -4
- package/src/ox-property-editor-color.ts +6 -9
- package/src/ox-property-editor-crontab.ts +5 -2
- package/src/ox-property-editor-data.ts +8 -4
- package/src/ox-property-editor-date.ts +6 -4
- package/src/ox-property-editor-duration.ts +16 -0
- package/src/ox-property-editor-file.ts +11 -5
- package/src/ox-property-editor-gradient-colorstops.ts +11 -7
- package/src/ox-property-editor-image.ts +9 -4
- package/src/ox-property-editor-key-values.ts +24 -0
- package/src/ox-property-editor-legend.ts +6 -4
- package/src/ox-property-editor-multiple-colors.ts +6 -4
- package/src/ox-property-editor-number.ts +8 -6
- package/src/ox-property-editor-options.ts +8 -4
- package/src/ox-property-editor-partition-keys.ts +18 -0
- package/src/ox-property-editor-password.ts +6 -4
- package/src/ox-property-editor-range.ts +15 -5
- package/src/ox-property-editor-scene-component-id.ts +6 -8
- package/src/ox-property-editor-select.ts +12 -6
- package/src/ox-property-editor-solid-colorstops.ts +11 -7
- package/src/ox-property-editor-string.ts +6 -4
- package/src/ox-property-editor-table.ts +8 -4
- package/src/ox-property-editor-textarea.ts +12 -8
- package/src/ox-property-editor-value-map.ts +13 -5
- package/src/ox-property-editor-value-ranges.ts +10 -3
- package/src/ox-property-editor-work-shift.ts +6 -4
- package/src/ox-property-editor.ts +59 -10
- package/src/types.ts +6 -0
- package/yarn-error.log +0 -18150
|
@@ -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
|
-
|
|
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,
|
|
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=${
|
|
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,
|
|
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 } =
|
|
10
|
-
|
|
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,
|
|
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=${
|
|
13
|
-
.min=${
|
|
14
|
-
.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,
|
|
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
|
-
|
|
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,
|
|
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>${
|
|
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,
|
|
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=${
|
|
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,
|
|
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 } =
|
|
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=${
|
|
16
|
-
.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,
|
|
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
|
-
|
|
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,
|
|
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=${
|
|
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,
|
|
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 } =
|
|
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
|
|
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,
|
|
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
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ox-property-editor-scene-component-id.js","sourceRoot":"","sources":["../../src/ox-property-editor-scene-component-id.ts"],"names":[],"mappings":";AAAA,OAAO,+CAA+C,CAAA;AAEtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ox-property-editor-scene-component-id.js","sourceRoot":"","sources":["../../src/ox-property-editor-scene-component-id.ts"],"names":[],"mappings":";AAAA,OAAO,+CAA+C,CAAA;AAEtD,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,gCAAgC,GAA7C,MAAa,gCAAiC,SAAQ,gBAAgB;IACpE,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,OAAO,IAAI,CAAA;wDACyC,KAAK,cAAc,IAAI,CAAC,QAAQ;KACnF,CAAA;IACH,CAAC;CACF,CAAA;AANY,gCAAgC;IAD5C,aAAa,CAAC,uCAAuC,CAAC;GAC1C,gCAAgC,CAM5C;SANY,gCAAgC","sourcesContent":["import '@operato/input/ox-input-scene-component-id.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-scene-component-id')\nexport class OxPropertyEditorSceneComponentId extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n return html`\n <ox-input-scene-component-id id=\"editor\" .value=${value} .property=${spec.property}></ox-input-scene-component-id>\n `\n }\n}\n"]}
|