@operato/property-editor 1.0.24 → 1.0.28

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 CHANGED
@@ -3,6 +3,23 @@
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
+ ### [1.0.28](https://github.com/hatiolab/operato/compare/v1.0.27...v1.0.28) (2022-10-16)
7
+
8
+ **Note:** Version bump only for package @operato/property-editor
9
+
10
+
11
+
12
+
13
+
14
+ ### [1.0.25](https://github.com/hatiolab/operato/compare/v1.0.24...v1.0.25) (2022-10-10)
15
+
16
+
17
+ ### :bug: Bug Fix
18
+
19
+ * ox-property-editor ([9f9a751](https://github.com/hatiolab/operato/commit/9f9a751a737545001b5548b5c453f38c1387f074))
20
+
21
+
22
+
6
23
  ### [1.0.24](https://github.com/hatiolab/operato/compare/v1.0.23...v1.0.24) (2022-09-30)
7
24
 
8
25
  **Note:** Version bump only for package @operato/property-editor
package/demo/index.html CHANGED
@@ -59,7 +59,7 @@
59
59
  OxPropertyEditor.register({
60
60
  legend: 'ox-property-editor-legend',
61
61
  number: 'ox-property-editor-number',
62
- 'number-unit': 'ox-property-editor-unit-number',
62
+ 'unit-number': 'ox-property-editor-unit-number',
63
63
  slider: 'ox-property-editor-range',
64
64
  password: 'ox-property-editor-password',
65
65
  angle: 'ox-property-editor-angle',
@@ -120,7 +120,7 @@
120
120
  name: 'N#'
121
121
  },
122
122
  {
123
- type: 'number-unit',
123
+ type: 'unit-number',
124
124
  label: 'NU',
125
125
  name: 'NU',
126
126
  property: {
@@ -56,7 +56,7 @@ let OxPropertiesDynamicView = class OxPropertiesDynamicView extends LitElement {
56
56
  const specs = this.props || [];
57
57
  this.textContent = '';
58
58
  specs.forEach(spec => {
59
- const { label, type, name, placeholder, editor, quantifier, observe, property } = spec;
59
+ const { label, type, name, placeholder, editor, quantifier, observe, property, defaultValue } = spec;
60
60
  let elementType = OxPropertyEditor.getEditor(type);
61
61
  if (!elementType) {
62
62
  console.warn('Property Editor not defined', type);
@@ -70,6 +70,7 @@ let OxPropertiesDynamicView = class OxPropertiesDynamicView extends LitElement {
70
70
  element.setAttribute('name', name);
71
71
  element.editor = editor;
72
72
  element.quantifier = quantifier;
73
+ element.defaultValue = defaultValue;
73
74
  if (observe) {
74
75
  element.observe = observe;
75
76
  }
@@ -85,7 +86,7 @@ let OxPropertiesDynamicView = class OxPropertiesDynamicView extends LitElement {
85
86
  const name = editor.getAttribute('name');
86
87
  var value = this.value[name];
87
88
  if (value === undefined) {
88
- value = DEFAULT_VALUE[editor.type];
89
+ value = editor.defaultValue !== undefined ? editor.defaultValue : DEFAULT_VALUE[editor.type];
89
90
  }
90
91
  editor.value = value;
91
92
  editor.observe && editor.observe.call(prop, editor.value);
@@ -1 +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,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAG1D;;;;;;;;;;;EAWE;AAEF,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,SAAS;IAChB,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,IAAI;IAC3B,eAAe,EAAE,EAAE;IACnB,gBAAgB,EAAE,EAAE;IACpB,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI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,MAAiB,CAAA;QAEhC,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAqB,CAAA;QAEtE,IAAI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;QACtC,IAAI,CAAC,IAAI,EAAE;YACT,OAAM;SACP;QAED,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAA;SAChC;aAAM;YACL,IAAI,CAAC,KAAK,GAAG;gBACX,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK;aACrB,CAAA;SACF;QAED,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,iBAAiB,EAAE;YACjC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC,CACH,CAAA;IACH,CAAC;CACF,CAAA;AA3F6B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sDAAoC;AACpC;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;sDAAuB;AAF7C,uBAAuB;IAD5B,aAAa,CAAC,4BAA4B,CAAC;GACtC,uBAAuB,CA4F5B","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { html, LitElement, PropertyValues } 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 const { label, type, name, placeholder, editor, quantifier, observe, property } = spec\n\n let elementType = OxPropertyEditor.getEditor(type)\n if (!elementType) {\n console.warn('Property Editor not defined', type)\n return\n }\n let element = document.createElement(elementType) as OxPropertyEditor\n\n element.label = label\n element.type = type\n element.placeholder = placeholder\n element.name = name\n element.setAttribute('name', name)\n element.editor = editor\n element.quantifier = quantifier\n\n if (observe) {\n element.observe = observe\n }\n element.property = 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"]}
1
+ {"version":3,"file":"ox-properties-dynamic-view.js","sourceRoot":"","sources":["../../src/ox-properties-dynamic-view.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAG1D;;;;;;;;;;;EAWE;AAEF,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,SAAS;IAChB,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,IAAI;IAC3B,eAAe,EAAE,EAAE;IACnB,gBAAgB,EAAE,EAAE;IACpB,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,EAAE;IACjB,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,IAAI;CACX,CAAA;AAGD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU;IAAhD;;QAC8B,UAAK,GAA4B,EAAE,CAAA;IA4FjE,CAAC;IAzFC,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAA;IAC5B,CAAC;IAED,YAAY;QACV,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAClE,CAAC;IAED,OAAO,CAAC,OAA6B;QACnC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC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aAAM;YACL,IAAI,CAAC,KAAK,GAAG;gBACX,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK;aACrB,CAAA;SACF;QAED,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,iBAAiB,EAAE;YACjC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC,CACH,CAAA;IACH,CAAC;CACF,CAAA;AA5F6B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sDAAoC;AACpC;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;sDAAuB;AAF7C,uBAAuB;IAD5B,aAAa,CAAC,4BAA4B,CAAC;GACtC,uBAAuB,CA6F5B","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { html, LitElement, PropertyValues } 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 const { label, type, name, placeholder, editor, quantifier, observe, property, defaultValue } = spec\n\n let elementType = OxPropertyEditor.getEditor(type)\n if (!elementType) {\n console.warn('Property Editor not defined', type)\n return\n }\n let element = document.createElement(elementType) as OxPropertyEditor\n\n element.label = label\n element.type = type\n element.placeholder = placeholder\n element.name = name\n element.setAttribute('name', name)\n element.editor = editor\n element.quantifier = quantifier\n element.defaultValue = defaultValue\n\n if (observe) {\n element.observe = observe\n }\n element.property = 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 = editor.defaultValue !== undefined ? editor.defaultValue : (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"]}
@@ -20,6 +20,7 @@ export declare class OxPropertyEditor extends LitElement {
20
20
  host: any;
21
21
  quantifier?: [min: number, max: number];
22
22
  observe?: (value: any) => void;
23
+ defaultValue?: any;
23
24
  connectedCallback(): void;
24
25
  editorTemplate(value: any, spec: PropertySpec): TemplateResult<1>;
25
26
  render(): TemplateResult<1>;
@@ -26,7 +26,8 @@ export class OxPropertyEditor extends LitElement {
26
26
  }
27
27
  render() {
28
28
  var _a;
29
- const { value, quantifier } = this;
29
+ const { defaultValue } = this;
30
+ const { value = defaultValue, quantifier } = this;
30
31
  const [min = 1, max = 1] = quantifier || [1, 1];
31
32
  return html `
32
33
  ${max <= 1
@@ -214,6 +215,9 @@ __decorate([
214
215
  __decorate([
215
216
  property({ type: Object })
216
217
  ], OxPropertyEditor.prototype, "observe", void 0);
218
+ __decorate([
219
+ property({ type: Object })
220
+ ], OxPropertyEditor.prototype, "defaultValue", void 0);
217
221
  __decorate([
218
222
  state()
219
223
  ], OxPropertyEditor.prototype, "__by_me", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor.js","sourceRoot":"","sources":["../../src/ox-property-editor.ts"],"names":[],"mappings":";AAAA,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAI3C,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAAhD;;QAmH6B,eAAU,GAAgC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAuClE,YAAO,GAAG,KAAK,CAAA;IAmD1B,CAAC;IA1MQ,MAAM,CAAC,QAAQ,CAAC,KAAiC;QACtD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAChC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;QAC/C,CAAC,CAAC,CAAA;IACJ,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,IAAY;QAClC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC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QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAA+B;AAsCjD;IAAR,KAAK,EAAE;iDAAgB","sourcesContent":["import '@operato/i18n/ox-i18n.js'\n\nimport { css, html, LitElement, TemplateResult } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport deepClone from 'lodash-es/cloneDeep'\n\nimport { EditorProperty, PropertySpec } from './types'\n\nexport class OxPropertyEditor extends LitElement {\n static registry: { [type: string]: string } = {}\n\n public static register(types: { [type: string]: string }) {\n Object.keys(types).forEach(type => {\n OxPropertyEditor.registry[type] = types[type]\n })\n }\n\n public static getEditor(type: string): string {\n return OxPropertyEditor.registry[type]\n }\n\n static styles = [\n css`\n :host {\n margin: 5px;\n\n display: grid;\n grid-template-columns: repeat(10, 1fr);\n grid-gap: 5px;\n grid-auto-rows: minmax(24px, auto);\n\n align-items: center;\n\n color: var(--property-sidebar-fieldset-legend-color);\n }\n\n :host > * {\n box-sizing: border-box;\n\n grid-column: span 7;\n order: 2;\n\n align-self: stretch;\n }\n\n :host > label {\n grid-column: span 3;\n order: 1;\n\n text-align: right;\n\n font: var(--label-font);\n text-transform: capitalize;\n\n align-self: center;\n }\n\n :host > input[type='checkbox'] ~ label,\n :host > ox-checkbox ~ label {\n grid-column: span 6;\n order: 2;\n\n text-align: left;\n }\n\n select,\n ox-select,\n input:not([type='checkbox']) {\n border: 1px solid rgba(0, 0, 0, 0.2);\n }\n\n :host > legend {\n grid-column: 1 / -1;\n\n display: inline-block;\n\n text-align: left;\n text-transform: capitalize;\n }\n\n :host > [fullwidth] {\n grid-column: 1 / -1;\n }\n\n :host > input[type='checkbox'],\n :host > ox-checkbox {\n grid-column: span 4;\n order: 1;\n\n justify-self: end;\n align-self: center;\n }\n\n ox-input-code,\n ox-input-data {\n height: 300px;\n }\n\n :host > div {\n display: flex;\n flex-direction: column;\n gap: 3px;\n }\n\n div[data-index] {\n display: flex;\n min-height: 24px;\n }\n\n div[data-index] > * {\n flex: 1;\n }\n `\n ]\n\n @property({ type: Object }) value: any\n @property({ type: String }) type!: string\n @property({ type: String, attribute: true, reflect: true }) name!: string\n @property({ type: String }) label!: string\n @property({ type: String }) placeholder?: string\n @property({ type: Object }) property?: any\n @property({ type: Object }) editor?: EditorProperty\n @property({ type: Object }) host: any\n @property({ type: Array }) quantifier?: [min: number, max: number] = [1, 1]\n @property({ type: Object }) observe?: (value: any) => void\n\n connectedCallback() {\n super.connectedCallback()\n\n this.renderRoot.addEventListener('change', this._valueChanged.bind(this))\n }\n\n editorTemplate(value: any, spec: PropertySpec): TemplateResult<1> {\n return html``\n }\n\n render() {\n const { value, quantifier } = this\n const [min = 1, max = 1] = quantifier || [1, 1]\n\n return html`\n ${max <= 1\n ? this.editorTemplate(value, this)\n : html`\n <div ?fullwidth=${this.editor?.fullwidth}>\n ${new Array(max)\n .fill('')\n .map(\n (_, idx) => html` <div editor data-index=${idx}>${this.editorTemplate(value?.[idx], this)}</div> `\n )}\n </div>\n `}\n ${this.label\n ? html`\n <label for=\"editor\">\n <ox-i18n msgid=${this._computeLabelId(this.label)}>${this.label}</ox-i18n>\n </label>\n `\n : html``}\n `\n }\n\n @state() __by_me = false\n\n shouldUpdate(changedProperties: any) {\n if (this.__by_me) {\n return false\n }\n\n if (changedProperties.has('value')) {\n this.__by_me = true\n this.value = deepClone(this.value)\n this.__by_me = false\n }\n\n return true\n }\n\n get valueProperty() {\n return 'value'\n }\n\n makeup(v: any) {\n return deepClone(v)\n }\n\n _computeLabelId(label: string) {\n if (label.indexOf('label.') >= 0) return label\n\n return 'label.' + label\n }\n\n _valueChanged(e: Event) {\n e.stopPropagation()\n const editor = e.target as HTMLInputElement\n\n const [min = 1, max = 1] = this.quantifier || []\n const value = this.makeup((editor as any)[this.valueProperty])\n\n if (max > 1) {\n const index = Number(editor.closest('[data-index]')?.getAttribute('data-index'))\n var array: any[] = this.value instanceof Array ? [...this.value] : []\n array[index] = value\n this.value = array\n } else {\n this.value = value\n }\n\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n\n if (!this.observe) return\n this.observe.call(this, this.value)\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor.js","sourceRoot":"","sources":["../../src/ox-property-editor.ts"],"names":[],"mappings":";AAAA,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAI3C,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAAhD;;QAmH6B,eAAU,GAAgC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAyClE,YAAO,GAAG,KAAK,CAAA;IAmD1B,CAAC;IA5MQ,MAAM,CAAC,QAAQ,CAAC,KAAiC;QACtD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAChC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;QAC/C,CAAC,CAAC,CAAA;IACJ,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,IAAY;QAClC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IACxC,CAAC;IA4GD,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAA;QAEzB,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAC3E,CAAC;IAED,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,OAAO,IAAI,CAAA,EAAE,CAAA;IACf,CAAC;IAED,MAAM;;QACJ,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;QAC7B,MAAM,EAAE,KAAK,GAAG,YAAY,EAAE,UAAU,EA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C;;AA7MM,yBAAQ,GAA+B,EAAE,CAAA;AAYzC,uBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0FF;CACF,CAAA;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAW;AACV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CAAc;AACmB;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAc;AAC7C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAe;AACd;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAe;AACd;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAAwB;AACvB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CAAU;AACV;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;oDAAiD;AAC/C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAA+B;AAC9B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sDAAmB;AAuCrC;IAAR,KAAK,EAAE;iDAAgB","sourcesContent":["import '@operato/i18n/ox-i18n.js'\n\nimport { css, html, LitElement, TemplateResult } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport deepClone from 'lodash-es/cloneDeep'\n\nimport { EditorProperty, PropertySpec } from './types'\n\nexport class OxPropertyEditor extends LitElement {\n static registry: { [type: string]: string } = {}\n\n public static register(types: { [type: string]: string }) {\n Object.keys(types).forEach(type => {\n OxPropertyEditor.registry[type] = types[type]\n })\n }\n\n public static getEditor(type: string): string {\n return OxPropertyEditor.registry[type]\n }\n\n static styles = [\n css`\n :host {\n margin: 5px;\n\n display: grid;\n grid-template-columns: repeat(10, 1fr);\n grid-gap: 5px;\n grid-auto-rows: minmax(24px, auto);\n\n align-items: center;\n\n color: var(--property-sidebar-fieldset-legend-color);\n }\n\n :host > * {\n box-sizing: border-box;\n\n grid-column: span 7;\n order: 2;\n\n align-self: stretch;\n }\n\n :host > label {\n grid-column: span 3;\n order: 1;\n\n text-align: right;\n\n font: var(--label-font);\n text-transform: capitalize;\n\n align-self: center;\n }\n\n :host > input[type='checkbox'] ~ label,\n :host > ox-checkbox ~ label {\n grid-column: span 6;\n order: 2;\n\n text-align: left;\n }\n\n select,\n ox-select,\n input:not([type='checkbox']) {\n border: 1px solid rgba(0, 0, 0, 0.2);\n }\n\n :host > legend {\n grid-column: 1 / -1;\n\n display: inline-block;\n\n text-align: left;\n text-transform: capitalize;\n }\n\n :host > [fullwidth] {\n grid-column: 1 / -1;\n }\n\n :host > input[type='checkbox'],\n :host > ox-checkbox {\n grid-column: span 4;\n order: 1;\n\n justify-self: end;\n align-self: center;\n }\n\n ox-input-code,\n ox-input-data {\n height: 300px;\n }\n\n :host > div {\n display: flex;\n flex-direction: column;\n gap: 3px;\n }\n\n div[data-index] {\n display: flex;\n min-height: 24px;\n }\n\n div[data-index] > * {\n flex: 1;\n }\n `\n ]\n\n @property({ type: Object }) value: any\n @property({ type: String }) type!: string\n @property({ type: String, attribute: true, reflect: true }) name!: string\n @property({ type: String }) label!: string\n @property({ type: String }) placeholder?: string\n @property({ type: Object }) property?: any\n @property({ type: Object }) editor?: EditorProperty\n @property({ type: Object }) host: any\n @property({ type: Array }) quantifier?: [min: number, max: number] = [1, 1]\n @property({ type: Object }) observe?: (value: any) => void\n @property({ type: Object }) defaultValue?: any\n\n connectedCallback() {\n super.connectedCallback()\n\n this.renderRoot.addEventListener('change', this._valueChanged.bind(this))\n }\n\n editorTemplate(value: any, spec: PropertySpec): TemplateResult<1> {\n return html``\n }\n\n render() {\n const { defaultValue } = this\n const { value = defaultValue, quantifier } = this\n const [min = 1, max = 1] = quantifier || [1, 1]\n\n return html`\n ${max <= 1\n ? this.editorTemplate(value, this)\n : html`\n <div ?fullwidth=${this.editor?.fullwidth}>\n ${new Array(max)\n .fill('')\n .map(\n (_, idx) => html` <div editor data-index=${idx}>${this.editorTemplate(value?.[idx], this)}</div> `\n )}\n </div>\n `}\n ${this.label\n ? html`\n <label for=\"editor\">\n <ox-i18n msgid=${this._computeLabelId(this.label)}>${this.label}</ox-i18n>\n </label>\n `\n : html``}\n `\n }\n\n @state() __by_me = false\n\n shouldUpdate(changedProperties: any) {\n if (this.__by_me) {\n return false\n }\n\n if (changedProperties.has('value')) {\n this.__by_me = true\n this.value = deepClone(this.value)\n this.__by_me = false\n }\n\n return true\n }\n\n get valueProperty() {\n return 'value'\n }\n\n makeup(v: any) {\n return deepClone(v)\n }\n\n _computeLabelId(label: string) {\n if (label.indexOf('label.') >= 0) return label\n\n return 'label.' + label\n }\n\n _valueChanged(e: Event) {\n e.stopPropagation()\n const editor = e.target as HTMLInputElement\n\n const [min = 1, max = 1] = this.quantifier || []\n const value = this.makeup((editor as any)[this.valueProperty])\n\n if (max > 1) {\n const index = Number(editor.closest('[data-index]')?.getAttribute('data-index'))\n var array: any[] = this.value instanceof Array ? [...this.value] : []\n array[index] = value\n this.value = array\n } else {\n this.value = value\n }\n\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n\n if (!this.observe) return\n this.observe.call(this, this.value)\n }\n}\n"]}
@@ -10,4 +10,5 @@ export declare type PropertySpec = {
10
10
  editor?: EditorProperty;
11
11
  quantifier?: [min: number, max: number];
12
12
  observe?: (value: any) => void;
13
+ defaultValue?: any;
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["export type EditorProperty = {\n fullwidth?: boolean\n}\n\nexport type PropertySpec = {\n type: string\n label: string\n name: string\n placeholder?: string\n property?: any\n editor?: EditorProperty\n quantifier?: [min: number, max: number]\n observe?: (value: any) => void\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["export type EditorProperty = {\n fullwidth?: boolean\n}\n\nexport type PropertySpec = {\n type: string\n label: string\n name: string\n placeholder?: string\n property?: any\n editor?: EditorProperty\n quantifier?: [min: number, max: number]\n observe?: (value: any) => void\n defaultValue?: any\n}\n"]}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../@types/global/index.d.ts","../../../node_modules/tslib/tslib.d.ts","../src/types.ts","../../../node_modules/@lit/reactive-element/css-tag.d.ts","../../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/@types/trusted-types/index.d.ts","../../../node_modules/lit-html/directive.d.ts","../../../node_modules/lit-html/lit-html.d.ts","../../../node_modules/lit-element/lit-element.d.ts","../../../node_modules/lit/index.d.ts","../../i18n/dist/src/ox-i18n.d.ts","../../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../../node_modules/lit/decorators.d.ts","../../../node_modules/@types/lodash/common/common.d.ts","../../../node_modules/@types/lodash/common/array.d.ts","../../../node_modules/@types/lodash/common/collection.d.ts","../../../node_modules/@types/lodash/common/date.d.ts","../../../node_modules/@types/lodash/common/function.d.ts","../../../node_modules/@types/lodash/common/lang.d.ts","../../../node_modules/@types/lodash/common/math.d.ts","../../../node_modules/@types/lodash/common/number.d.ts","../../../node_modules/@types/lodash/common/object.d.ts","../../../node_modules/@types/lodash/common/seq.d.ts","../../../node_modules/@types/lodash/common/string.d.ts","../../../node_modules/@types/lodash/common/util.d.ts","../../../node_modules/@types/lodash/index.d.ts","../../../node_modules/@types/lodash-es/clonedeep.d.ts","../src/ox-property-editor.ts","../src/index.ts","../src/ox-properties-dynamic-view.ts","../src/ox-property-editor-angle.ts","../src/ox-property-editor-checkbox.ts","../src/ox-property-editor-color.ts","../src/ox-property-editor-crontab.ts","../src/ox-property-editor-data.ts","../src/ox-property-editor-date.ts","../src/ox-property-editor-duration.ts","../src/ox-property-editor-file.ts","../src/ox-property-editor-gradient-colorstops.ts","../src/ox-property-editor-image.ts","../src/ox-property-editor-key-values.ts","../src/ox-property-editor-legend.ts","../src/ox-property-editor-multiple-colors.ts","../src/ox-property-editor-number.ts","../src/ox-property-editor-options.ts","../src/ox-property-editor-partition-keys.ts","../src/ox-property-editor-password.ts","../src/ox-property-editor-range.ts","../src/ox-property-editor-scene-component-id.ts","../../../node_modules/@material/mwc-icon/mwc-icon.d.ts","../../popup/dist/src/ox-popup.d.ts","../../popup/dist/src/ox-popup-list.d.ts","../src/ox-property-editor-select.ts","../src/ox-property-editor-solid-colorstops.ts","../src/ox-property-editor-string.ts","../src/ox-property-editor-table.ts","../src/ox-property-editor-textarea.ts","../src/ox-property-editor-unit-number.ts","../src/ox-property-editor-value-map.ts","../src/ox-property-editor-value-ranges.ts","../src/ox-property-editor-work-shift.ts","../stories/index.stories.ts","../../../node_modules/@types/node/ts4.8/assert.d.ts","../../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../../node_modules/@types/node/ts4.8/globals.d.ts","../../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../../node_modules/@types/node/ts4.8/buffer.d.ts","../../../node_modules/@types/node/ts4.8/child_process.d.ts","../../../node_modules/@types/node/ts4.8/cluster.d.ts","../../../node_modules/@types/node/ts4.8/console.d.ts","../../../node_modules/@types/node/ts4.8/constants.d.ts","../../../node_modules/@types/node/ts4.8/crypto.d.ts","../../../node_modules/@types/node/ts4.8/dgram.d.ts","../../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../../node_modules/@types/node/ts4.8/dns.d.ts","../../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../../node_modules/@types/node/ts4.8/domain.d.ts","../../../node_modules/@types/node/ts4.8/events.d.ts","../../../node_modules/@types/node/ts4.8/fs.d.ts","../../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../../node_modules/@types/node/ts4.8/http.d.ts","../../../node_modules/@types/node/ts4.8/http2.d.ts","../../../node_modules/@types/node/ts4.8/https.d.ts","../../../node_modules/@types/node/ts4.8/inspector.d.ts","../../../node_modules/@types/node/ts4.8/module.d.ts","../../../node_modules/@types/node/ts4.8/net.d.ts","../../../node_modules/@types/node/ts4.8/os.d.ts","../../../node_modules/@types/node/ts4.8/path.d.ts","../../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../../node_modules/@types/node/ts4.8/process.d.ts","../../../node_modules/@types/node/ts4.8/punycode.d.ts","../../../node_modules/@types/node/ts4.8/querystring.d.ts","../../../node_modules/@types/node/ts4.8/readline.d.ts","../../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../../node_modules/@types/node/ts4.8/repl.d.ts","../../../node_modules/@types/node/ts4.8/stream.d.ts","../../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../../node_modules/@types/node/ts4.8/test.d.ts","../../../node_modules/@types/node/ts4.8/timers.d.ts","../../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../../node_modules/@types/node/ts4.8/tls.d.ts","../../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../../node_modules/@types/node/ts4.8/tty.d.ts","../../../node_modules/@types/node/ts4.8/url.d.ts","../../../node_modules/@types/node/ts4.8/util.d.ts","../../../node_modules/@types/node/ts4.8/v8.d.ts","../../../node_modules/@types/node/ts4.8/vm.d.ts","../../../node_modules/@types/node/ts4.8/wasi.d.ts","../../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../../node_modules/@types/node/ts4.8/zlib.d.ts","../../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../../node_modules/@types/node/ts4.8/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"b5c159239c33d1bcb3d7ca8d24cf9ba1b1579aab80e70fbb0029e374880f2470","14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e",{"version":"c579d1bb79f7ce7256fe95f38906df5b8aaa37e15d337944d529beb14060a347","signature":"7a286c7ce1f424de104823da3c89ebe10847fb084b98f55e175040ffefb727d1"},"52dd370c807255c61765347fc90a9bee3c522b8744dc222714e2bf6b5be3a823","1e5743b25a63fd34ffbae89adcbf248ee17db6ed08d90079ffa93803c3e80d2a","13bb750b495c48fd60d7b5e09f65d4a7b010ab7e09a8943a6d54511e7d184f84","2fcd2d22b1f30555e785105597cd8f57ed50300e213c4f1bbca6ae149f782c38",{"version":"bb4248c7f953233ac52332088fac897d62b82be07244e551d87c5049600b6cf7","affectsGlobalScope":true},"3f30c6b57bf5eb7a7d4298506b78b18d428a39a409e1eadd93a3fdd0299d2687","19926529d718864dd255640a05f1b7b87fad1ac5791a4092ea00a83713b6a77b","eba7cf33380cc3a3cf614faf67300e14d0bdff9ea6c5cd6f4b040b1756a48ab1","f07a77a7fb1d49aa2b61cb68bf712a083487acd7130d20223a83de03af0c257d","29dca1b5f0cac95b675f86c7846f9d587ed47cc46609dd00d152bcb37683b069","241000969e5367a9a9b9a4f57963e54e5a012c9d89c273526c0115650a7b9e5f","ac388c7c7a262213a3700451bc921e382a93fb27c0252c34ccf03540b4ce044b","097a7e3badfd1c4b35f72aa0f722f5714a4f6a84e53fca5a79dcfebbfc5e718d","fb0107c83e2e0e75b77dacd0c3c6c3ab6844e98dce2a8f858c6f0a57c12136a6","0a478dcb6e6bd8a5d871165659c79cee7b8c3b7a87289118d22e1a04d171e252","e385eb01000d045ea07cea09c488f66e051709a9ac460bf271623f9984e0c419","bf69beba89702c85d84546269e0d4e8b128d32e26b314ee9b501b0b32c82490b","46f3a421b048670d16a3c02589261f17c1cea687f2602eed31e1335b53aed785","4bcb813ea56182beaaab1e8274524eb9f1449b0d8e79efc4a0399de09e43f816","c784eab1cf838d9d6527bce3d9f2d373145606666b68f7610291a7adf6e6bda9","f0380f581cb015778c0fe51e95b5b7f6dae237280654558469b2486c1572268a","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","7a79ca84e4370ed2e1afaa99ff7d25194901916b7672e977d16f77af3b71342f","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"7e7a817c8ec57035b2b74df8d5dbcc376a4a60ad870b27ec35463536158e1156",{"version":"78a2c3c7cd5d10ce39e5e4c6894e0b26a1e21f9ad7c5963ac2e85bb58b7c64f1","signature":"fbda38155a615eafbfd0b5d5165ebb91873084ca1bff6f865aaaec11f0ca2395"},{"version":"df492e3eef69529602938c05f86513c9213d6ab231a2239437eee25eb26913c5","signature":"4b19ef22586a488de7412e25b5490ace2562e86cfdb3e1c9a22cad11ecb9fd5e"},{"version":"da6b7cb53eeec68185d1f730cae25438d2930ec1c719257ddeae405c2631445f","signature":"0b98ae9c19957b68eb6c1ddada4c52b03b74c4729b51c6dc1e3300869fe66d2a"},{"version":"7d66461d92513be2502e8317651ec1a34dbf8fc08c3e65df71699c7bf4bdf6e5","signature":"7e24cdcd52da5988a3bd71aa6b26f82e040de5d839ed690340c061aa74b1f778"},{"version":"0ccfe10d8b7047d0e9452b9cb28b50b615e62b169312403126c6828d179201ad","signature":"f1fb1d52a7b08065addbc211620b8feda77a3a905e5f341642925a0f14d39be4"},{"version":"13d239fa8cc5f14f6ce1618100f8e88a78aac61633d82fd37d8bb6d37911e062","signature":"b3d9b03fe28b8450bdb21047deb7d83678813bf5e4a169a95d1e78eb4582a7eb"},{"version":"5eb0a0132beca7a6474688b4c64c0ff52d3ff9b7d922c7dc2676b4205aba001b","signature":"f3ba008564abe5d2bb2d30ae1f29ef2f48211caa55505091c25867bc5424feb1"},{"version":"8bf148e1eed9eb57d57815a290cdf15a3ffe617afea5c871d8fdff4fed0a84da","signature":"eee7edaa8002fe8c5ee407c052338f8f4b189f1f0c2824471e94e0c0795aefc9"},{"version":"bcafd4a57c498a71b24423995a8766b489622b830d045dd316ecef3833cf41a1","signature":"3e311191555e46727e888bc5594d376838677de4ce0c9d223f8e89222dfc8ee2"},{"version":"d59754d4d060448d928929ec69ec27a0dd1bb75531bb254fc2ac812818ad231e","signature":"91fc91f84195a5e4c17e997b8b2366e4d535ef8cacdd00628d271a159a3a6332"},{"version":"90fa07c6c8f1a5646bf18d18005c30d259132a26b7d8768b93cb0001bd4445c1","signature":"fade1b511a9d69a3667f73e45c366639f9a2d522d789990fa077de8627211207"},{"version":"95c3fdf5f55541a483648d6682896d1c8d500f0701b7cc4a7e012d52d0719e32","signature":"1298ad04dcd98724e88bfb864d92a5f73079b358a7ad035dfb5aba6ed4cab34d"},{"version":"018cc08f818e70ffe0430fa4a4a2670000057037820ff8582fb7a50c453d4b10","signature":"c1a50f41b1ecc7c5b0c0440cef5a9b02017b2d8d65e967b4848d4235ef388ca0"},{"version":"3de7c198ac3592e446ce74a48f40c741e726b7962ef7a1b5337a8d2be8f6eb40","signature":"1d0b0af759eb582d766e2d7eeac7a8b38d104bdf8ef0b433fa3b4701d4e67d4a"},{"version":"6785ad8186bb23bb9e45066cc83abb2a24746992ae57f722256acde1b2c5811e","signature":"804a136527333540b2d1e4292c1489b2e504bd1b0adbe599e7aae3a32ee4a302"},{"version":"ea7c2ddddd7216ea63238c660e8c4549c3fe2f057178fbfbb90e2928e94dda00","signature":"5addf8e7d4491132b82a58e19659d80b71bff4157e1c59266427eee6c726c17d"},{"version":"caa86039282caeabcdad573fde62455c35e3fdfb6dafb769339104840ffa0a4f","signature":"7426d224ec42b6104cf1e9ba5b8147692e95aca5127ccf7078b74f6d9cd3f95e"},{"version":"d360a35be91a68f4f88a28cbec45e7d879fbd395b0f3c6ca274cf713671730cc","signature":"f5f67f0e7c1fbd0170b0de95f9d160be0741e1020d70ac2e02990c22477d752b"},{"version":"e125872da428e93ab2945578c202f4d37d028a8fbfc885b8ac69def5a248656a","signature":"87c3ae8b3b3763b2096e1732c834060610bc38229170b6e959503f1bd98c2c60"},{"version":"a06d21bb71b367ef36057a78dafc33d416ecdb136fa3b15e0011e324fa5eae99","signature":"853bfdb49ebcc453b03c126819ea3b0cdadf6ce6f0e86e2070d22ef79b0d0415"},{"version":"6a0485791002a3817cee80cb661988c2bc9ce8f3db63d447d7058664997e2c68","signature":"bd4f9acb582a72afe04af3914fd8eb0c6a034fafad9976a068b6999b7bb5f912"},{"version":"31cf0d2b12dee360034cf07747f454b4773d857aca00db6eeb515e10c7a1514a","signature":"e2ac3a7ccd84d51547e12b78a25626b2626fe21636f560e52a08717e79d90847"},{"version":"27b285e901600242883d62a5fff9f5d262c6fa128b6e6c6963f981f2630a957e","affectsGlobalScope":true},"b19e95136dd01ce850d7f05e05d594afecc4510fd1b44cdc049e4b7ce4d18e35","415ae3a9be423d2db81b7e16a6c053c83d3f83b1af03a2827aea3de084b70742",{"version":"52e73b3dc9a042db7cb3db69aecfd96c5c6f51a835bbf099fe7a8b5b8991e398","signature":"8b887fc903f35b99d0aa0da67df53989fdfbd6c7187789c8e97e4a2ac33b39fe"},{"version":"eafa6cf0472fa7292e482e57ad178287aea199458f9815d1ec2e4c4ee2e550b8","signature":"bf5ea5edbb7e7895da3ae8d25d35e86b9b406927e47b4be43d9d66bd70cd4929"},{"version":"8013ac2265a72f83a944f87419f357ca81f26c9656ec5037a54f4feb13b335a9","signature":"e563033c6901f9b182d2e95ee4cb6e02539d2f404c1a316ecae32890ef14a492"},{"version":"e4c66018c97a34db02def25d0209f9e3273919bb81fb00e3f23c009dddfce21d","signature":"9541b2d7a466469c006848fe4e500b9ad642899afa38516c95c9fcc8f43856f2"},{"version":"52b49c20f48033727a18dc05d763c17b28e854965c39a61b613303b4a3e2cf73","signature":"70c3ad8915bd124c56e3c5c753e629bbf112b74be928b66d13572e2977c32915"},{"version":"1d51232a6b025efbd86d12d09c5c2b34b4771b7820c7f2bee5189c12c91811aa","signature":"b8737f369b320e80e9047efca46acbcbe44c628bfa9c38f181e5614f07f4a3cb"},{"version":"b7a0d8389598869b8e5e18c6dbc7d6d396675f79f5eae1937ac570dcfd85388f","signature":"fc372f17ecc177ec4954811b01cb8aa096843bf0930b58a9514dcdca67053adf"},{"version":"ba963f7933142176caee882228fb64fdfc173f33948e36de0e2f19cae70301e5","signature":"ba11306f099975ce6481fd752e9ec22581adb79db2ad5ba92461d7141f4ea8cb"},{"version":"6fb39c67f6ec2512e4738757f2ab4b4d09a25d8f6fe4a6571083674c7776342b","signature":"ab524c4219548aa047bca1e628ae5e5e6ed5c415e7d866f5cb5ece4a099457ea"},{"version":"82a33aaf265ee049bb894e2e290d5a63502e60d88e6095fc9c01beaecc5d7bd0","signature":"5d1ee58eb621675b1f122df567f3634cf3a11c7f07b45edaa5684ce90ff333d5"},"9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"002d6d5f044365b3fbfba0ba9be3bb57cac09b81547c8df4b0795755d2081d90","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","c4cfc9a6e2ebb8bc8c0e2392dfc4056993ced3b35069ebf132ac18ca7a562881","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"bae4ea23beb8397755b935cb84d3cdc6cdb0b1b4a329b90de9fc6c8774d71994","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","df36874d9e56aff601e921c4b3971d37cf66d14f6455935ce821e6cad13b1823","3c135ff5bda0355f6b52a10ea931736ec7c5a80b7fb8772019054e0eaa0fd6b6","1abb206a4ecd13b21536b677d7d5f66e0d7316f0d44610197cfcc5776f78884a","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"76527127c8b749bee5977408861ce3ee56ec19ddcea8704c628f98ca610283e6","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b68bd7bef90dab08b1866a9fee24f03d9fee10bcb3f587b074e96e61abf6d3f0","cb4f3f03480e1727eae46400606cecaa97f550186ff8fa909ebc00db4180531b",{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","556bf5c36deb62cffa1bf697c1789fe008ec82db0273025001db66732714e9d9","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","0830071706fa0e477fb5e95f0955cc1062b5948b146b7d4e03a126f12ad6085f",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2d526e6f21d8cc66ac11ada32874e95ae88d870c6c9d3d9d4e03b1d1f9ad7b8e","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","d2ec52f565f0570e90b659811347bd689f8c6039b11eaaccd0f243759d46da6e","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ecd8eb2ed2ea3f7e17ae00a2ce61db2c199e6e3944f6ff4a02de85c1a98e38eb",{"version":"5f186a758a616c107c70e8918db4630d063bd782f22e6e0b17573b125765b40b","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5,"useDefineForClassFields":false},"fileIdsList":[[160],[47,160],[55,160],[47,55,160],[47,55,63,160],[45,46,160],[53,160],[78,160],[66,68,69,70,71,72,73,74,75,76,77,78,160],[66,67,69,70,71,72,73,74,75,76,77,78,160],[67,68,69,70,71,72,73,74,75,76,77,78,160],[66,67,68,70,71,72,73,74,75,76,77,78,160],[66,67,68,69,71,72,73,74,75,76,77,78,160],[66,67,68,69,70,72,73,74,75,76,77,78,160],[66,67,68,69,70,71,73,74,75,76,77,78,160],[66,67,68,69,70,71,72,74,75,76,77,78,160],[66,67,68,69,70,71,72,73,75,76,77,78,160],[66,67,68,69,70,71,72,73,74,76,77,78,160],[66,67,68,69,70,71,72,73,74,75,77,78,160],[66,67,68,69,70,71,72,73,74,75,76,78,160],[66,67,68,69,70,71,72,73,74,75,76,77,160],[115,160],[118,160],[119,124,160],[120,130,131,138,148,159,160],[120,121,130,138,160],[122,160],[123,124,131,139,160],[124,148,156,160],[125,127,130,138,160],[126,160],[127,128,160],[129,130,160],[130,160],[130,131,132,148,159,160],[130,131,132,148,151,160],[160,164],[133,138,148,159,160],[130,131,133,134,138,148,156,159,160],[133,135,148,156,159,160],[115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166],[130,136,160],[137,159,160],[127,130,138,148,160],[139,160],[140,160],[118,141,160],[142,158,160,164],[143,160],[144,160],[130,145,146,160],[145,147,160,162],[130,148,149,150,151,160],[148,150,160],[148,149,160],[151,160],[152,160],[130,154,155,160],[154,155,160],[124,138,148,156,160],[157,160],[138,158,160],[119,133,144,159,160],[124,160],[148,160,161],[160,162],[160,163],[119,124,130,132,141,148,159,160,162,164],[148,160,165],[48,160],[47,51,160],[51,160],[49,50,160],[56,57,58,59,60,61,62,63,64,160],[47,51,52,160],[51,53,160],[51,53,102,103,160],[43,44,80,160],[43,44,53,65,80,160],[43,44,53,65,80,104,160],[43,44,53,54,65,79,160],[43,160],[43,53,160],[44,80],[44,51,80],[44,51,53,80,104],[44,53,54],[53]],"referencedMap":[[45,1],[55,2],[56,3],[59,4],[57,4],[61,4],[64,5],[63,1],[62,4],[60,4],[58,3],[46,1],[47,6],[102,7],[79,8],[67,9],[68,10],[66,11],[69,12],[70,13],[71,14],[72,15],[73,16],[74,17],[75,18],[76,19],[77,20],[78,21],[168,1],[115,22],[116,22],[118,23],[119,24],[120,25],[121,26],[122,27],[123,28],[124,29],[125,30],[126,31],[127,32],[128,32],[129,33],[130,34],[131,35],[132,36],[117,37],[166,1],[133,38],[134,39],[135,40],[167,41],[136,42],[137,43],[138,44],[139,45],[140,46],[141,47],[142,48],[143,49],[144,50],[145,51],[146,51],[147,52],[148,53],[150,54],[149,55],[151,56],[152,57],[153,1],[154,58],[155,59],[156,60],[157,61],[158,62],[159,63],[160,64],[161,65],[162,66],[163,67],[164,68],[165,69],[49,70],[48,1],[52,71],[50,72],[51,73],[65,74],[53,75],[43,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[54,76],[104,77],[103,76],[42,1],[81,78],[82,79],[83,79],[84,79],[85,79],[86,79],[87,79],[88,79],[89,79],[90,79],[91,79],[92,79],[93,79],[94,79],[95,79],[96,79],[97,79],[98,79],[99,79],[100,79],[101,79],[105,80],[106,79],[107,79],[108,79],[109,79],[110,79],[111,79],[112,79],[113,79],[80,81],[44,82],[114,83]],"exportedModulesMap":[[45,1],[55,2],[56,3],[59,4],[57,4],[61,4],[64,5],[63,1],[62,4],[60,4],[58,3],[46,1],[47,6],[102,7],[79,8],[67,9],[68,10],[66,11],[69,12],[70,13],[71,14],[72,15],[73,16],[74,17],[75,18],[76,19],[77,20],[78,21],[168,1],[115,22],[116,22],[118,23],[119,24],[120,25],[121,26],[122,27],[123,28],[124,29],[125,30],[126,31],[127,32],[128,32],[129,33],[130,34],[131,35],[132,36],[117,37],[166,1],[133,38],[134,39],[135,40],[167,41],[136,42],[137,43],[138,44],[139,45],[140,46],[141,47],[142,48],[143,49],[144,50],[145,51],[146,51],[147,52],[148,53],[150,54],[149,55],[151,56],[152,57],[153,1],[154,58],[155,59],[156,60],[157,61],[158,62],[159,63],[160,64],[161,65],[162,66],[163,67],[164,68],[165,69],[49,70],[48,1],[52,71],[50,72],[51,73],[65,74],[53,75],[43,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[54,76],[104,77],[103,76],[42,1],[81,84],[83,85],[84,85],[85,85],[86,85],[87,85],[88,85],[89,85],[90,85],[91,85],[92,85],[93,85],[94,85],[95,85],[96,85],[97,85],[98,85],[99,85],[100,85],[101,85],[105,86],[106,85],[107,85],[108,85],[109,85],[110,85],[111,85],[112,85],[113,85],[80,87],[114,88]],"semanticDiagnosticsPerFile":[45,55,56,59,57,61,64,63,62,60,58,46,47,102,79,67,68,66,69,70,71,72,73,74,75,76,77,78,168,115,116,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,117,166,133,134,135,167,136,137,138,139,140,141,142,143,144,145,146,147,148,150,149,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,49,48,52,50,51,65,53,43,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,34,39,40,35,36,37,38,1,41,54,104,103,42,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,105,106,107,108,109,110,111,112,113,80,44,114]},"version":"4.8.4"}
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../@types/global/index.d.ts","../../../node_modules/tslib/tslib.d.ts","../src/types.ts","../../../node_modules/@lit/reactive-element/css-tag.d.ts","../../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/@types/trusted-types/index.d.ts","../../../node_modules/lit-html/directive.d.ts","../../../node_modules/lit-html/lit-html.d.ts","../../../node_modules/lit-element/lit-element.d.ts","../../../node_modules/lit/index.d.ts","../../i18n/dist/src/ox-i18n.d.ts","../../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../../node_modules/lit/decorators.d.ts","../../../node_modules/@types/lodash/common/common.d.ts","../../../node_modules/@types/lodash/common/array.d.ts","../../../node_modules/@types/lodash/common/collection.d.ts","../../../node_modules/@types/lodash/common/date.d.ts","../../../node_modules/@types/lodash/common/function.d.ts","../../../node_modules/@types/lodash/common/lang.d.ts","../../../node_modules/@types/lodash/common/math.d.ts","../../../node_modules/@types/lodash/common/number.d.ts","../../../node_modules/@types/lodash/common/object.d.ts","../../../node_modules/@types/lodash/common/seq.d.ts","../../../node_modules/@types/lodash/common/string.d.ts","../../../node_modules/@types/lodash/common/util.d.ts","../../../node_modules/@types/lodash/index.d.ts","../../../node_modules/@types/lodash-es/clonedeep.d.ts","../src/ox-property-editor.ts","../src/index.ts","../src/ox-properties-dynamic-view.ts","../src/ox-property-editor-angle.ts","../src/ox-property-editor-checkbox.ts","../src/ox-property-editor-color.ts","../src/ox-property-editor-crontab.ts","../src/ox-property-editor-data.ts","../src/ox-property-editor-date.ts","../src/ox-property-editor-duration.ts","../src/ox-property-editor-file.ts","../src/ox-property-editor-gradient-colorstops.ts","../src/ox-property-editor-image.ts","../src/ox-property-editor-key-values.ts","../src/ox-property-editor-legend.ts","../src/ox-property-editor-multiple-colors.ts","../src/ox-property-editor-number.ts","../src/ox-property-editor-options.ts","../src/ox-property-editor-partition-keys.ts","../src/ox-property-editor-password.ts","../src/ox-property-editor-range.ts","../src/ox-property-editor-scene-component-id.ts","../../../node_modules/@material/mwc-icon/mwc-icon.d.ts","../../popup/dist/src/ox-popup.d.ts","../../popup/dist/src/ox-popup-list.d.ts","../src/ox-property-editor-select.ts","../src/ox-property-editor-solid-colorstops.ts","../src/ox-property-editor-string.ts","../src/ox-property-editor-table.ts","../src/ox-property-editor-textarea.ts","../src/ox-property-editor-unit-number.ts","../src/ox-property-editor-value-map.ts","../src/ox-property-editor-value-ranges.ts","../src/ox-property-editor-work-shift.ts","../stories/index.stories.ts","../../../node_modules/@types/node/ts4.8/assert.d.ts","../../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../../node_modules/@types/node/ts4.8/globals.d.ts","../../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../../node_modules/@types/node/ts4.8/buffer.d.ts","../../../node_modules/@types/node/ts4.8/child_process.d.ts","../../../node_modules/@types/node/ts4.8/cluster.d.ts","../../../node_modules/@types/node/ts4.8/console.d.ts","../../../node_modules/@types/node/ts4.8/constants.d.ts","../../../node_modules/@types/node/ts4.8/crypto.d.ts","../../../node_modules/@types/node/ts4.8/dgram.d.ts","../../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../../node_modules/@types/node/ts4.8/dns.d.ts","../../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../../node_modules/@types/node/ts4.8/domain.d.ts","../../../node_modules/@types/node/ts4.8/events.d.ts","../../../node_modules/@types/node/ts4.8/fs.d.ts","../../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../../node_modules/@types/node/ts4.8/http.d.ts","../../../node_modules/@types/node/ts4.8/http2.d.ts","../../../node_modules/@types/node/ts4.8/https.d.ts","../../../node_modules/@types/node/ts4.8/inspector.d.ts","../../../node_modules/@types/node/ts4.8/module.d.ts","../../../node_modules/@types/node/ts4.8/net.d.ts","../../../node_modules/@types/node/ts4.8/os.d.ts","../../../node_modules/@types/node/ts4.8/path.d.ts","../../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../../node_modules/@types/node/ts4.8/process.d.ts","../../../node_modules/@types/node/ts4.8/punycode.d.ts","../../../node_modules/@types/node/ts4.8/querystring.d.ts","../../../node_modules/@types/node/ts4.8/readline.d.ts","../../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../../node_modules/@types/node/ts4.8/repl.d.ts","../../../node_modules/@types/node/ts4.8/stream.d.ts","../../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../../node_modules/@types/node/ts4.8/test.d.ts","../../../node_modules/@types/node/ts4.8/timers.d.ts","../../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../../node_modules/@types/node/ts4.8/tls.d.ts","../../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../../node_modules/@types/node/ts4.8/tty.d.ts","../../../node_modules/@types/node/ts4.8/url.d.ts","../../../node_modules/@types/node/ts4.8/util.d.ts","../../../node_modules/@types/node/ts4.8/v8.d.ts","../../../node_modules/@types/node/ts4.8/vm.d.ts","../../../node_modules/@types/node/ts4.8/wasi.d.ts","../../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../../node_modules/@types/node/ts4.8/zlib.d.ts","../../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../../node_modules/@types/node/ts4.8/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"b5c159239c33d1bcb3d7ca8d24cf9ba1b1579aab80e70fbb0029e374880f2470","14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e",{"version":"abd1e79fcd1c7b9bbc4d012e36b41ecbe7d1302db1e101ba5ac1fdd32a8d7e9c","signature":"98750877e0292735cff3a1d9a64ae7160ebdc7973b63f500ec931e5b67103189"},"52dd370c807255c61765347fc90a9bee3c522b8744dc222714e2bf6b5be3a823","1e5743b25a63fd34ffbae89adcbf248ee17db6ed08d90079ffa93803c3e80d2a","13bb750b495c48fd60d7b5e09f65d4a7b010ab7e09a8943a6d54511e7d184f84","2fcd2d22b1f30555e785105597cd8f57ed50300e213c4f1bbca6ae149f782c38",{"version":"bb4248c7f953233ac52332088fac897d62b82be07244e551d87c5049600b6cf7","affectsGlobalScope":true},"3f30c6b57bf5eb7a7d4298506b78b18d428a39a409e1eadd93a3fdd0299d2687","19926529d718864dd255640a05f1b7b87fad1ac5791a4092ea00a83713b6a77b","eba7cf33380cc3a3cf614faf67300e14d0bdff9ea6c5cd6f4b040b1756a48ab1","f07a77a7fb1d49aa2b61cb68bf712a083487acd7130d20223a83de03af0c257d","29dca1b5f0cac95b675f86c7846f9d587ed47cc46609dd00d152bcb37683b069","241000969e5367a9a9b9a4f57963e54e5a012c9d89c273526c0115650a7b9e5f","ac388c7c7a262213a3700451bc921e382a93fb27c0252c34ccf03540b4ce044b","097a7e3badfd1c4b35f72aa0f722f5714a4f6a84e53fca5a79dcfebbfc5e718d","fb0107c83e2e0e75b77dacd0c3c6c3ab6844e98dce2a8f858c6f0a57c12136a6","0a478dcb6e6bd8a5d871165659c79cee7b8c3b7a87289118d22e1a04d171e252","e385eb01000d045ea07cea09c488f66e051709a9ac460bf271623f9984e0c419","bf69beba89702c85d84546269e0d4e8b128d32e26b314ee9b501b0b32c82490b","46f3a421b048670d16a3c02589261f17c1cea687f2602eed31e1335b53aed785","4bcb813ea56182beaaab1e8274524eb9f1449b0d8e79efc4a0399de09e43f816","c784eab1cf838d9d6527bce3d9f2d373145606666b68f7610291a7adf6e6bda9","f0380f581cb015778c0fe51e95b5b7f6dae237280654558469b2486c1572268a","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","7a79ca84e4370ed2e1afaa99ff7d25194901916b7672e977d16f77af3b71342f","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"7e7a817c8ec57035b2b74df8d5dbcc376a4a60ad870b27ec35463536158e1156",{"version":"d37180519ed5789b75a98073e726892e09640ec8b805ffd2e99f14434becbc8e","signature":"43a01da5bcf0279000f91b0f73342885d9cb23c96e60e7e1699822714af92124"},{"version":"df492e3eef69529602938c05f86513c9213d6ab231a2239437eee25eb26913c5","signature":"4b19ef22586a488de7412e25b5490ace2562e86cfdb3e1c9a22cad11ecb9fd5e"},{"version":"e6f61d8c04fc8cc0d3b869e955aa78941fbccb9b5c09f1ff3a238af2355c1e5e","signature":"0b98ae9c19957b68eb6c1ddada4c52b03b74c4729b51c6dc1e3300869fe66d2a"},{"version":"7d66461d92513be2502e8317651ec1a34dbf8fc08c3e65df71699c7bf4bdf6e5","signature":"7e24cdcd52da5988a3bd71aa6b26f82e040de5d839ed690340c061aa74b1f778"},{"version":"0ccfe10d8b7047d0e9452b9cb28b50b615e62b169312403126c6828d179201ad","signature":"f1fb1d52a7b08065addbc211620b8feda77a3a905e5f341642925a0f14d39be4"},{"version":"13d239fa8cc5f14f6ce1618100f8e88a78aac61633d82fd37d8bb6d37911e062","signature":"b3d9b03fe28b8450bdb21047deb7d83678813bf5e4a169a95d1e78eb4582a7eb"},{"version":"5eb0a0132beca7a6474688b4c64c0ff52d3ff9b7d922c7dc2676b4205aba001b","signature":"f3ba008564abe5d2bb2d30ae1f29ef2f48211caa55505091c25867bc5424feb1"},{"version":"8bf148e1eed9eb57d57815a290cdf15a3ffe617afea5c871d8fdff4fed0a84da","signature":"eee7edaa8002fe8c5ee407c052338f8f4b189f1f0c2824471e94e0c0795aefc9"},{"version":"bcafd4a57c498a71b24423995a8766b489622b830d045dd316ecef3833cf41a1","signature":"3e311191555e46727e888bc5594d376838677de4ce0c9d223f8e89222dfc8ee2"},{"version":"d59754d4d060448d928929ec69ec27a0dd1bb75531bb254fc2ac812818ad231e","signature":"91fc91f84195a5e4c17e997b8b2366e4d535ef8cacdd00628d271a159a3a6332"},{"version":"90fa07c6c8f1a5646bf18d18005c30d259132a26b7d8768b93cb0001bd4445c1","signature":"fade1b511a9d69a3667f73e45c366639f9a2d522d789990fa077de8627211207"},{"version":"95c3fdf5f55541a483648d6682896d1c8d500f0701b7cc4a7e012d52d0719e32","signature":"1298ad04dcd98724e88bfb864d92a5f73079b358a7ad035dfb5aba6ed4cab34d"},{"version":"018cc08f818e70ffe0430fa4a4a2670000057037820ff8582fb7a50c453d4b10","signature":"c1a50f41b1ecc7c5b0c0440cef5a9b02017b2d8d65e967b4848d4235ef388ca0"},{"version":"3de7c198ac3592e446ce74a48f40c741e726b7962ef7a1b5337a8d2be8f6eb40","signature":"1d0b0af759eb582d766e2d7eeac7a8b38d104bdf8ef0b433fa3b4701d4e67d4a"},{"version":"6785ad8186bb23bb9e45066cc83abb2a24746992ae57f722256acde1b2c5811e","signature":"804a136527333540b2d1e4292c1489b2e504bd1b0adbe599e7aae3a32ee4a302"},{"version":"ea7c2ddddd7216ea63238c660e8c4549c3fe2f057178fbfbb90e2928e94dda00","signature":"5addf8e7d4491132b82a58e19659d80b71bff4157e1c59266427eee6c726c17d"},{"version":"caa86039282caeabcdad573fde62455c35e3fdfb6dafb769339104840ffa0a4f","signature":"7426d224ec42b6104cf1e9ba5b8147692e95aca5127ccf7078b74f6d9cd3f95e"},{"version":"d360a35be91a68f4f88a28cbec45e7d879fbd395b0f3c6ca274cf713671730cc","signature":"f5f67f0e7c1fbd0170b0de95f9d160be0741e1020d70ac2e02990c22477d752b"},{"version":"e125872da428e93ab2945578c202f4d37d028a8fbfc885b8ac69def5a248656a","signature":"87c3ae8b3b3763b2096e1732c834060610bc38229170b6e959503f1bd98c2c60"},{"version":"a06d21bb71b367ef36057a78dafc33d416ecdb136fa3b15e0011e324fa5eae99","signature":"853bfdb49ebcc453b03c126819ea3b0cdadf6ce6f0e86e2070d22ef79b0d0415"},{"version":"6a0485791002a3817cee80cb661988c2bc9ce8f3db63d447d7058664997e2c68","signature":"bd4f9acb582a72afe04af3914fd8eb0c6a034fafad9976a068b6999b7bb5f912"},{"version":"31cf0d2b12dee360034cf07747f454b4773d857aca00db6eeb515e10c7a1514a","signature":"e2ac3a7ccd84d51547e12b78a25626b2626fe21636f560e52a08717e79d90847"},{"version":"27b285e901600242883d62a5fff9f5d262c6fa128b6e6c6963f981f2630a957e","affectsGlobalScope":true},"b19e95136dd01ce850d7f05e05d594afecc4510fd1b44cdc049e4b7ce4d18e35","415ae3a9be423d2db81b7e16a6c053c83d3f83b1af03a2827aea3de084b70742",{"version":"52e73b3dc9a042db7cb3db69aecfd96c5c6f51a835bbf099fe7a8b5b8991e398","signature":"8b887fc903f35b99d0aa0da67df53989fdfbd6c7187789c8e97e4a2ac33b39fe"},{"version":"eafa6cf0472fa7292e482e57ad178287aea199458f9815d1ec2e4c4ee2e550b8","signature":"bf5ea5edbb7e7895da3ae8d25d35e86b9b406927e47b4be43d9d66bd70cd4929"},{"version":"8013ac2265a72f83a944f87419f357ca81f26c9656ec5037a54f4feb13b335a9","signature":"e563033c6901f9b182d2e95ee4cb6e02539d2f404c1a316ecae32890ef14a492"},{"version":"e4c66018c97a34db02def25d0209f9e3273919bb81fb00e3f23c009dddfce21d","signature":"9541b2d7a466469c006848fe4e500b9ad642899afa38516c95c9fcc8f43856f2"},{"version":"52b49c20f48033727a18dc05d763c17b28e854965c39a61b613303b4a3e2cf73","signature":"70c3ad8915bd124c56e3c5c753e629bbf112b74be928b66d13572e2977c32915"},{"version":"1d51232a6b025efbd86d12d09c5c2b34b4771b7820c7f2bee5189c12c91811aa","signature":"b8737f369b320e80e9047efca46acbcbe44c628bfa9c38f181e5614f07f4a3cb"},{"version":"b7a0d8389598869b8e5e18c6dbc7d6d396675f79f5eae1937ac570dcfd85388f","signature":"fc372f17ecc177ec4954811b01cb8aa096843bf0930b58a9514dcdca67053adf"},{"version":"ba963f7933142176caee882228fb64fdfc173f33948e36de0e2f19cae70301e5","signature":"ba11306f099975ce6481fd752e9ec22581adb79db2ad5ba92461d7141f4ea8cb"},{"version":"6fb39c67f6ec2512e4738757f2ab4b4d09a25d8f6fe4a6571083674c7776342b","signature":"ab524c4219548aa047bca1e628ae5e5e6ed5c415e7d866f5cb5ece4a099457ea"},{"version":"82a33aaf265ee049bb894e2e290d5a63502e60d88e6095fc9c01beaecc5d7bd0","signature":"5d1ee58eb621675b1f122df567f3634cf3a11c7f07b45edaa5684ce90ff333d5"},"9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"002d6d5f044365b3fbfba0ba9be3bb57cac09b81547c8df4b0795755d2081d90","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","c4cfc9a6e2ebb8bc8c0e2392dfc4056993ced3b35069ebf132ac18ca7a562881","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"bae4ea23beb8397755b935cb84d3cdc6cdb0b1b4a329b90de9fc6c8774d71994","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","df36874d9e56aff601e921c4b3971d37cf66d14f6455935ce821e6cad13b1823","3c135ff5bda0355f6b52a10ea931736ec7c5a80b7fb8772019054e0eaa0fd6b6","1abb206a4ecd13b21536b677d7d5f66e0d7316f0d44610197cfcc5776f78884a","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"76527127c8b749bee5977408861ce3ee56ec19ddcea8704c628f98ca610283e6","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b68bd7bef90dab08b1866a9fee24f03d9fee10bcb3f587b074e96e61abf6d3f0","cb4f3f03480e1727eae46400606cecaa97f550186ff8fa909ebc00db4180531b",{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","556bf5c36deb62cffa1bf697c1789fe008ec82db0273025001db66732714e9d9","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","0830071706fa0e477fb5e95f0955cc1062b5948b146b7d4e03a126f12ad6085f",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2d526e6f21d8cc66ac11ada32874e95ae88d870c6c9d3d9d4e03b1d1f9ad7b8e","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","d2ec52f565f0570e90b659811347bd689f8c6039b11eaaccd0f243759d46da6e","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ecd8eb2ed2ea3f7e17ae00a2ce61db2c199e6e3944f6ff4a02de85c1a98e38eb",{"version":"5f186a758a616c107c70e8918db4630d063bd782f22e6e0b17573b125765b40b","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5,"useDefineForClassFields":false},"fileIdsList":[[160],[47,160],[55,160],[47,55,160],[47,55,63,160],[45,46,160],[53,160],[78,160],[66,68,69,70,71,72,73,74,75,76,77,78,160],[66,67,69,70,71,72,73,74,75,76,77,78,160],[67,68,69,70,71,72,73,74,75,76,77,78,160],[66,67,68,70,71,72,73,74,75,76,77,78,160],[66,67,68,69,71,72,73,74,75,76,77,78,160],[66,67,68,69,70,72,73,74,75,76,77,78,160],[66,67,68,69,70,71,73,74,75,76,77,78,160],[66,67,68,69,70,71,72,74,75,76,77,78,160],[66,67,68,69,70,71,72,73,75,76,77,78,160],[66,67,68,69,70,71,72,73,74,76,77,78,160],[66,67,68,69,70,71,72,73,74,75,77,78,160],[66,67,68,69,70,71,72,73,74,75,76,78,160],[66,67,68,69,70,71,72,73,74,75,76,77,160],[115,160],[118,160],[119,124,160],[120,130,131,138,148,159,160],[120,121,130,138,160],[122,160],[123,124,131,139,160],[124,148,156,160],[125,127,130,138,160],[126,160],[127,128,160],[129,130,160],[130,160],[130,131,132,148,159,160],[130,131,132,148,151,160],[160,164],[133,138,148,159,160],[130,131,133,134,138,148,156,159,160],[133,135,148,156,159,160],[115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166],[130,136,160],[137,159,160],[127,130,138,148,160],[139,160],[140,160],[118,141,160],[142,158,160,164],[143,160],[144,160],[130,145,146,160],[145,147,160,162],[130,148,149,150,151,160],[148,150,160],[148,149,160],[151,160],[152,160],[130,154,155,160],[154,155,160],[124,138,148,156,160],[157,160],[138,158,160],[119,133,144,159,160],[124,160],[148,160,161],[160,162],[160,163],[119,124,130,132,141,148,159,160,162,164],[148,160,165],[48,160],[47,51,160],[51,160],[49,50,160],[56,57,58,59,60,61,62,63,64,160],[47,51,52,160],[51,53,160],[51,53,102,103,160],[43,44,80,160],[43,44,53,65,80,160],[43,44,53,65,80,104,160],[43,44,53,54,65,79,160],[43,160],[43,53,160],[44,80],[44,51,80],[44,51,53,80,104],[44,53,54],[53]],"referencedMap":[[45,1],[55,2],[56,3],[59,4],[57,4],[61,4],[64,5],[63,1],[62,4],[60,4],[58,3],[46,1],[47,6],[102,7],[79,8],[67,9],[68,10],[66,11],[69,12],[70,13],[71,14],[72,15],[73,16],[74,17],[75,18],[76,19],[77,20],[78,21],[168,1],[115,22],[116,22],[118,23],[119,24],[120,25],[121,26],[122,27],[123,28],[124,29],[125,30],[126,31],[127,32],[128,32],[129,33],[130,34],[131,35],[132,36],[117,37],[166,1],[133,38],[134,39],[135,40],[167,41],[136,42],[137,43],[138,44],[139,45],[140,46],[141,47],[142,48],[143,49],[144,50],[145,51],[146,51],[147,52],[148,53],[150,54],[149,55],[151,56],[152,57],[153,1],[154,58],[155,59],[156,60],[157,61],[158,62],[159,63],[160,64],[161,65],[162,66],[163,67],[164,68],[165,69],[49,70],[48,1],[52,71],[50,72],[51,73],[65,74],[53,75],[43,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[54,76],[104,77],[103,76],[42,1],[81,78],[82,79],[83,79],[84,79],[85,79],[86,79],[87,79],[88,79],[89,79],[90,79],[91,79],[92,79],[93,79],[94,79],[95,79],[96,79],[97,79],[98,79],[99,79],[100,79],[101,79],[105,80],[106,79],[107,79],[108,79],[109,79],[110,79],[111,79],[112,79],[113,79],[80,81],[44,82],[114,83]],"exportedModulesMap":[[45,1],[55,2],[56,3],[59,4],[57,4],[61,4],[64,5],[63,1],[62,4],[60,4],[58,3],[46,1],[47,6],[102,7],[79,8],[67,9],[68,10],[66,11],[69,12],[70,13],[71,14],[72,15],[73,16],[74,17],[75,18],[76,19],[77,20],[78,21],[168,1],[115,22],[116,22],[118,23],[119,24],[120,25],[121,26],[122,27],[123,28],[124,29],[125,30],[126,31],[127,32],[128,32],[129,33],[130,34],[131,35],[132,36],[117,37],[166,1],[133,38],[134,39],[135,40],[167,41],[136,42],[137,43],[138,44],[139,45],[140,46],[141,47],[142,48],[143,49],[144,50],[145,51],[146,51],[147,52],[148,53],[150,54],[149,55],[151,56],[152,57],[153,1],[154,58],[155,59],[156,60],[157,61],[158,62],[159,63],[160,64],[161,65],[162,66],[163,67],[164,68],[165,69],[49,70],[48,1],[52,71],[50,72],[51,73],[65,74],[53,75],[43,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[54,76],[104,77],[103,76],[42,1],[81,84],[83,85],[84,85],[85,85],[86,85],[87,85],[88,85],[89,85],[90,85],[91,85],[92,85],[93,85],[94,85],[95,85],[96,85],[97,85],[98,85],[99,85],[100,85],[101,85],[105,86],[106,85],[107,85],[108,85],[109,85],[110,85],[111,85],[112,85],[113,85],[80,87],[114,88]],"semanticDiagnosticsPerFile":[45,55,56,59,57,61,64,63,62,60,58,46,47,102,79,67,68,66,69,70,71,72,73,74,75,76,77,78,168,115,116,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,117,166,133,134,135,167,136,137,138,139,140,141,142,143,144,145,146,147,148,150,149,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,49,48,52,50,51,65,53,43,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,34,39,40,35,36,37,38,1,41,54,104,103,42,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,105,106,107,108,109,110,111,112,113,80,44,114]},"version":"4.8.4"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/property-editor",
3
- "version": "1.0.24",
3
+ "version": "1.0.28",
4
4
  "description": "Webcomponent for property-editor following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "license": "MIT",
@@ -155,9 +155,9 @@
155
155
  "storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
156
156
  },
157
157
  "dependencies": {
158
- "@operato/help": "^1.0.24",
158
+ "@operato/help": "^1.0.28",
159
159
  "@operato/i18n": "^1.0.6",
160
- "@operato/input": "^1.0.24",
160
+ "@operato/input": "^1.0.25",
161
161
  "@operato/popup": "^1.0.23",
162
162
  "lit": "^2.2.7",
163
163
  "lodash-es": "^4.17.21"
@@ -199,5 +199,5 @@
199
199
  "prettier --write"
200
200
  ]
201
201
  },
202
- "gitHead": "837e1377d889631f689d1714951b6c84cfa451ce"
202
+ "gitHead": "06f098c3f958a4014d0de62069ff9e9f8cb050e7"
203
203
  }
@@ -65,7 +65,7 @@ class OxPropertiesDynamicView extends LitElement {
65
65
 
66
66
  this.textContent = ''
67
67
  specs.forEach(spec => {
68
- const { label, type, name, placeholder, editor, quantifier, observe, property } = spec
68
+ const { label, type, name, placeholder, editor, quantifier, observe, property, defaultValue } = spec
69
69
 
70
70
  let elementType = OxPropertyEditor.getEditor(type)
71
71
  if (!elementType) {
@@ -81,6 +81,7 @@ class OxPropertiesDynamicView extends LitElement {
81
81
  element.setAttribute('name', name)
82
82
  element.editor = editor
83
83
  element.quantifier = quantifier
84
+ element.defaultValue = defaultValue
84
85
 
85
86
  if (observe) {
86
87
  element.observe = observe
@@ -100,7 +101,7 @@ class OxPropertiesDynamicView extends LitElement {
100
101
 
101
102
  var value = this.value[name!]
102
103
  if (value === undefined) {
103
- value = (DEFAULT_VALUE as any)[editor.type]
104
+ value = editor.defaultValue !== undefined ? editor.defaultValue : (DEFAULT_VALUE as any)[editor.type]
104
105
  }
105
106
 
106
107
  editor.value = value
@@ -123,6 +123,7 @@ export class OxPropertyEditor extends LitElement {
123
123
  @property({ type: Object }) host: any
124
124
  @property({ type: Array }) quantifier?: [min: number, max: number] = [1, 1]
125
125
  @property({ type: Object }) observe?: (value: any) => void
126
+ @property({ type: Object }) defaultValue?: any
126
127
 
127
128
  connectedCallback() {
128
129
  super.connectedCallback()
@@ -135,7 +136,8 @@ export class OxPropertyEditor extends LitElement {
135
136
  }
136
137
 
137
138
  render() {
138
- const { value, quantifier } = this
139
+ const { defaultValue } = this
140
+ const { value = defaultValue, quantifier } = this
139
141
  const [min = 1, max = 1] = quantifier || [1, 1]
140
142
 
141
143
  return html`
package/src/types.ts CHANGED
@@ -11,4 +11,5 @@ export type PropertySpec = {
11
11
  editor?: EditorProperty
12
12
  quantifier?: [min: number, max: number]
13
13
  observe?: (value: any) => void
14
+ defaultValue?: any
14
15
  }