@operato/app 1.0.0-beta.7 → 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.
Files changed (90) hide show
  1. package/CHANGELOG.md +377 -0
  2. package/demo/data-grist-test.html +1 -1
  3. package/dist/src/filters-form/filter-resource-select.d.ts +4 -0
  4. package/dist/src/filters-form/filter-resource-select.js +78 -0
  5. package/dist/src/filters-form/filter-resource-select.js.map +1 -0
  6. package/dist/src/filters-form/index.d.ts +1 -0
  7. package/dist/src/filters-form/index.js +5 -0
  8. package/dist/src/filters-form/index.js.map +1 -0
  9. package/dist/src/grist-editor/index.js +1 -9
  10. package/dist/src/grist-editor/index.js.map +1 -1
  11. package/dist/src/grist-editor/ox-grist-editor-resource-object.d.ts +0 -1
  12. package/dist/src/grist-editor/ox-grist-editor-resource-object.js +7 -12
  13. package/dist/src/grist-editor/ox-grist-editor-resource-object.js.map +1 -1
  14. package/dist/src/grist-editor/ox-grist-renderer-crontab.js +3 -3
  15. package/dist/src/grist-editor/ox-grist-renderer-crontab.js.map +1 -1
  16. package/dist/src/grist-editor/ox-grist-renderer-resource-id.js +5 -2
  17. package/dist/src/grist-editor/ox-grist-renderer-resource-id.js.map +1 -1
  18. package/dist/src/grist-editor/ox-popup-code-input.js +5 -4
  19. package/dist/src/grist-editor/ox-popup-code-input.js.map +1 -1
  20. package/dist/src/grist-editor/ox-selector-resource-id.js +4 -3
  21. package/dist/src/grist-editor/ox-selector-resource-id.js.map +1 -1
  22. package/dist/src/grist-editor/ox-selector-resource-object.js +5 -3
  23. package/dist/src/grist-editor/ox-selector-resource-object.js.map +1 -1
  24. package/dist/src/input/ox-input-background-pattern.d.ts +3 -0
  25. package/dist/src/input/ox-input-background-pattern.js +35 -7
  26. package/dist/src/input/ox-input-background-pattern.js.map +1 -1
  27. package/dist/src/input/ox-input-fill-style.d.ts +4 -2
  28. package/dist/src/input/ox-input-fill-style.js +13 -7
  29. package/dist/src/input/ox-input-fill-style.js.map +1 -1
  30. package/dist/src/input/ox-input-graphql.d.ts +1 -1
  31. package/dist/src/input/ox-input-graphql.js +7 -7
  32. package/dist/src/input/ox-input-graphql.js.map +1 -1
  33. package/dist/src/property-editor/index.d.ts +2 -1
  34. package/dist/src/property-editor/index.js +5 -2
  35. package/dist/src/property-editor/index.js.map +1 -1
  36. package/dist/src/property-editor/ox-property-editor-graphql.d.ts +2 -2
  37. package/dist/src/property-editor/ox-property-editor-graphql.js +4 -4
  38. package/dist/src/property-editor/ox-property-editor-graphql.js.map +1 -1
  39. package/dist/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +24 -30
  41. package/src/filters-form/filter-resource-select.ts +94 -0
  42. package/src/filters-form/index.ts +6 -0
  43. package/src/grist-editor/index.ts +1 -9
  44. package/src/grist-editor/ox-grist-editor-resource-object.ts +17 -13
  45. package/src/grist-editor/ox-grist-renderer-crontab.ts +5 -4
  46. package/src/grist-editor/ox-grist-renderer-resource-id.ts +6 -2
  47. package/src/grist-editor/ox-popup-code-input.ts +5 -4
  48. package/src/grist-editor/ox-selector-resource-id.ts +4 -3
  49. package/src/grist-editor/ox-selector-resource-object.ts +5 -3
  50. package/src/input/ox-input-background-pattern.ts +37 -7
  51. package/src/input/ox-input-fill-style.ts +18 -8
  52. package/src/input/ox-input-graphql.ts +8 -8
  53. package/src/property-editor/index.ts +5 -2
  54. package/src/property-editor/ox-property-editor-graphql.ts +5 -4
  55. package/dist/src/grist-editor/ox-grist-editor-crontab.d.ts +0 -8
  56. package/dist/src/grist-editor/ox-grist-editor-crontab.js +0 -50
  57. package/dist/src/grist-editor/ox-grist-editor-crontab.js.map +0 -1
  58. package/dist/src/grist-editor/ox-grist-editor-parameters.d.ts +0 -12
  59. package/dist/src/grist-editor/ox-grist-editor-parameters.js +0 -84
  60. package/dist/src/grist-editor/ox-grist-editor-parameters.js.map +0 -1
  61. package/dist/src/grist-editor/ox-grist-editor-partition-keys.d.ts +0 -11
  62. package/dist/src/grist-editor/ox-grist-editor-partition-keys.js +0 -74
  63. package/dist/src/grist-editor/ox-grist-editor-partition-keys.js.map +0 -1
  64. package/dist/src/grist-editor/ox-grist-editor-value-map.d.ts +0 -11
  65. package/dist/src/grist-editor/ox-grist-editor-value-map.js +0 -74
  66. package/dist/src/grist-editor/ox-grist-editor-value-map.js.map +0 -1
  67. package/dist/src/grist-editor/ox-parameters-builder.d.ts +0 -4
  68. package/dist/src/grist-editor/ox-parameters-builder.js +0 -118
  69. package/dist/src/grist-editor/ox-parameters-builder.js.map +0 -1
  70. package/dist/src/grist-editor/ox-popup-crontab-input.d.ts +0 -11
  71. package/dist/src/grist-editor/ox-popup-crontab-input.js +0 -74
  72. package/dist/src/grist-editor/ox-popup-crontab-input.js.map +0 -1
  73. package/dist/src/grist-editor/ox-popup-parameters-builder.d.ts +0 -13
  74. package/dist/src/grist-editor/ox-popup-parameters-builder.js +0 -111
  75. package/dist/src/grist-editor/ox-popup-parameters-builder.js.map +0 -1
  76. package/dist/src/grist-editor/ox-popup-partition-keys-input.d.ts +0 -12
  77. package/dist/src/grist-editor/ox-popup-partition-keys-input.js +0 -98
  78. package/dist/src/grist-editor/ox-popup-partition-keys-input.js.map +0 -1
  79. package/dist/src/grist-editor/ox-popup-value-map-input.d.ts +0 -12
  80. package/dist/src/grist-editor/ox-popup-value-map-input.js +0 -104
  81. package/dist/src/grist-editor/ox-popup-value-map-input.js.map +0 -1
  82. package/src/grist-editor/ox-grist-editor-crontab.ts +0 -62
  83. package/src/grist-editor/ox-grist-editor-parameters.ts +0 -99
  84. package/src/grist-editor/ox-grist-editor-partition-keys.ts +0 -86
  85. package/src/grist-editor/ox-grist-editor-value-map.ts +0 -86
  86. package/src/grist-editor/ox-parameters-builder.ts +0 -128
  87. package/src/grist-editor/ox-popup-crontab-input.ts +0 -74
  88. package/src/grist-editor/ox-popup-parameters-builder.ts +0 -106
  89. package/src/grist-editor/ox-popup-partition-keys-input.ts +0 -95
  90. package/src/grist-editor/ox-popup-value-map-input.ts +0 -101
@@ -8,8 +8,8 @@ import 'codemirror/addon/lint/lint';
8
8
  import 'codemirror-graphql/hint';
9
9
  import 'codemirror-graphql/lint';
10
10
  import 'codemirror-graphql/mode';
11
- import { LitElement, PropertyValues } from 'lit';
12
11
  import CodeMirror from 'codemirror';
12
+ import { LitElement, PropertyValues } from 'lit';
13
13
  /**
14
14
  WEB Component for code-mirror graphql editor.
15
15
 
@@ -9,18 +9,18 @@ import 'codemirror/addon/lint/lint';
9
9
  import 'codemirror-graphql/hint';
10
10
  import 'codemirror-graphql/lint';
11
11
  import 'codemirror-graphql/mode';
12
- import { GRAPHQL_URI } from '@operato/graphql';
13
- import { LitElement, css, html, unsafeCSS } from 'lit';
14
- import { customElement, property, query } from 'lit/decorators.js';
15
- import { introspectSchema, wrapSchema } from '@graphql-tools/wrap';
16
- import CodeMirror from 'codemirror';
17
- import CodeMirrorStyle from '!!text-loader!codemirror/lib/codemirror.css';
18
12
  import FullScreenStyle from '!!text-loader!codemirror/addon/display/fullscreen.css';
13
+ import ShowHintStyle from '!!text-loader!codemirror/addon/hint/show-hint.css';
19
14
  import LintStyle from '!!text-loader!codemirror/addon/lint/lint.css';
15
+ import CodeMirrorStyle from '!!text-loader!codemirror/lib/codemirror.css';
20
16
  import NightThemeStyle from '!!text-loader!codemirror/theme/night.css';
21
- import ShowHintStyle from '!!text-loader!codemirror/addon/hint/show-hint.css';
17
+ import CodeMirror from 'codemirror';
22
18
  import { fetch } from 'cross-fetch';
23
19
  import { print } from 'graphql';
20
+ import { css, html, LitElement, unsafeCSS } from 'lit';
21
+ import { customElement, property, query } from 'lit/decorators.js';
22
+ import { introspectSchema, wrapSchema } from '@graphql-tools/wrap';
23
+ import { GRAPHQL_URI } from '@operato/graphql';
24
24
  /**
25
25
  WEB Component for code-mirror graphql editor.
26
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"ox-input-graphql.js","sourceRoot":"","sources":["../../../src/input/ox-input-graphql.ts"],"names":[],"mappings":"AAAA;;GAEG;;AA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Q,GAAG,IAAI,CAAA;oBAEpB,MAAM,IAAI,CAAC,aAAa,EAAE,CAAA;oBAE1B,IAAI,CAAC,cAAc,GAAG,KAAK,CAAA;gBAC7B,CAAC,CAAC,CAAA;aACH;SACF;QAED,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF,CAAA;AApIQ,qBAAM,GAAG;IACd,GAAG,CAAA;QACC,SAAS,CAAC,eAAe,CAAC;QAC1B,SAAS,CAAC,eAAe,CAAC;WACvB,SAAS,CAAC,eAAe,CAAC;WAC1B,SAAS,CAAC,SAAS,CAAC;WACpB,SAAS,CAAC,aAAa,CAAC;KAC9B;IACD,GAAG,CAAA;;;;;;;;;;;;;;;;KAgBF;CACF,CAAA;AAK2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAe;AACd;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAc;AAEtB;IAAlB,KAAK,CAAC,UAAU,CAAC;gDAA+B;AAlC9B,cAAc;IADlC,aAAa,CAAC,kBAAkB,CAAC;GACb,cAAc,CAqIlC;eArIoB,cAAc","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport 'codemirror/addon/display/fullscreen'\nimport 'codemirror/addon/display/autorefresh'\nimport 'codemirror/addon/hint/show-hint'\nimport 'codemirror/addon/lint/lint'\nimport 'codemirror-graphql/hint'\nimport 'codemirror-graphql/lint'\nimport 'codemirror-graphql/mode'\n\nimport { GRAPHQL_URI, client } from '@operato/graphql'\nimport { LitElement, PropertyValues, css, html, unsafeCSS } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\nimport { introspectSchema, wrapSchema } from '@graphql-tools/wrap'\n\nimport CodeMirror from 'codemirror'\nimport CodeMirrorStyle from '!!text-loader!codemirror/lib/codemirror.css'\nimport FullScreenStyle from '!!text-loader!codemirror/addon/display/fullscreen.css'\nimport LintStyle from '!!text-loader!codemirror/addon/lint/lint.css'\nimport NightThemeStyle from '!!text-loader!codemirror/theme/night.css'\nimport ShowHintStyle from '!!text-loader!codemirror/addon/hint/show-hint.css'\nimport { fetch } from 'cross-fetch'\nimport { print } from 'graphql'\n\n/**\n WEB Component for code-mirror graphql editor.\n \n Example:\n \n <ox-input-graphql value=${text} link=${link}>\n </ox-input-graphql>\n */\n@customElement('ox-input-graphql')\nexport default class OxInputGraphql extends LitElement {\n static styles = [\n css`\n ${unsafeCSS(CodeMirrorStyle)}\n ${unsafeCSS(FullScreenStyle)}\n ${unsafeCSS(NightThemeStyle)}\n ${unsafeCSS(LintStyle)}\n ${unsafeCSS(ShowHintStyle)}\n `,\n css`\n :host {\n display: block;\n position: relative;\n }\n\n textarea {\n display: block;\n height: 100%;\n width: 100%;\n resize: none;\n font-size: 16px;\n line-height: 20px;\n border: 0px;\n padding: 0px;\n }\n `\n ]\n\n /**\n * `value`는 에디터에서 작성중인 contents이다.\n */\n @property({ type: String }) value?: string\n @property({ type: String }) link?: string\n\n @query('textarea') textarea!: HTMLTextAreaElement\n\n private _self_changing: boolean = false\n private _changed: boolean = false\n private _editor?: CodeMirror.EditorFromTextArea\n\n async updated(changes: PropertyValues<this>) {\n if ((!this._editor || changes.has('value') || changes.has('link')) && !this._self_changing) {\n if (changes.has('link')) {\n this._editor = undefined\n }\n ;(await this.getEditor())!.setValue(this.value === undefined ? '' : String(this.value))\n // ;(await this.getEditor()).refresh()\n }\n }\n\n render() {\n return html` <textarea></textarea> `\n }\n\n async getSchema() {\n const executor = async ({ document, variables }: any) => {\n const query = print(document)\n const uri = this.link || GRAPHQL_URI\n\n const fetchResult = await fetch(uri, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({ query, variables })\n })\n return fetchResult.json()\n }\n\n return await wrapSchema({\n schema: await introspectSchema(executor),\n executor\n })\n }\n\n async getEditor() {\n if (!this._editor) {\n try {\n var schema = await this.getSchema()\n } catch (err) {\n console.error(err)\n }\n\n if (this.textarea) {\n this._editor = CodeMirror.fromTextArea(this.textarea, {\n value: this.value,\n mode: 'graphql',\n lint: {\n //@ts-ignore\n schema\n },\n hintOptions: {\n //@ts-ignore\n schema\n },\n tabSize: 2,\n lineNumbers: false,\n showCursorWhenSelecting: true,\n theme: 'night',\n extraKeys: {\n F11: function (cm) {\n cm.setOption('fullScreen', !cm.getOption('fullScreen'))\n },\n Esc: function (cm) {\n cm.setOption('fullScreen', !cm.getOption('fullScreen'))\n }\n },\n autoRefresh: {\n delay: 500\n }\n })\n\n this._editor.on('blur', (editor: CodeMirror.Editor, e: FocusEvent) => {\n if (!this._changed) return\n\n this.value = editor.getValue()\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n })\n\n this._editor.on('change', async (editor: CodeMirror.Editor, changeObj: CodeMirror.EditorChange) => {\n this._self_changing = true\n\n this._changed = true\n\n await this.requestUpdate()\n\n this._self_changing = false\n })\n }\n }\n\n return this._editor\n }\n}\n"]}
1
+ {"version":3,"file":"ox-input-graphql.js","sourceRoot":"","sources":["../../../src/input/ox-input-graphql.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,qCAAqC,CAAA;AAC5C,OAAO,sCAAsC,CAAA;AAC7C,OAAO,iCAAiC,CAAA;AACxC,OAAO,4BAA4B,CAAA;AACnC,OAAO,yBAAyB,CAAA;AAChC,OAAO,yBAAyB,CAAA;AAChC,OAAO,yBAAyB,CAAA;AAEhC,OAAO,eAAe,MAAM,uDAAuD,CAAA;AACnF,OAAO,aAAa,MAAM,mDAAmD,CAAA;AAC7E,OAAO,SAAS,MAAM,8CAA8C,CAAA;AACpE,OAAO,eAAe,MAAM,6CAA6C,CAAA;AACzE,OAAO,eAAe,MAAM,0CAA0C,CAAA;AACtE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EA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d;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAc;AAEtB;IAAlB,KAAK,CAAC,UAAU,CAAC;gDAA+B;AAlC9B,cAAc;IADlC,aAAa,CAAC,kBAAkB,CAAC;GACb,cAAc,CAqIlC;eArIoB,cAAc","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport 'codemirror/addon/display/fullscreen'\nimport 'codemirror/addon/display/autorefresh'\nimport 'codemirror/addon/hint/show-hint'\nimport 'codemirror/addon/lint/lint'\nimport 'codemirror-graphql/hint'\nimport 'codemirror-graphql/lint'\nimport 'codemirror-graphql/mode'\n\nimport FullScreenStyle from '!!text-loader!codemirror/addon/display/fullscreen.css'\nimport ShowHintStyle from '!!text-loader!codemirror/addon/hint/show-hint.css'\nimport LintStyle from '!!text-loader!codemirror/addon/lint/lint.css'\nimport CodeMirrorStyle from '!!text-loader!codemirror/lib/codemirror.css'\nimport NightThemeStyle from '!!text-loader!codemirror/theme/night.css'\nimport CodeMirror from 'codemirror'\nimport { fetch } from 'cross-fetch'\nimport { print } from 'graphql'\nimport { css, html, LitElement, PropertyValues, unsafeCSS } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\n\nimport { introspectSchema, wrapSchema } from '@graphql-tools/wrap'\nimport { GRAPHQL_URI } from '@operato/graphql'\n\n/**\n WEB Component for code-mirror graphql editor.\n \n Example:\n \n <ox-input-graphql value=${text} link=${link}>\n </ox-input-graphql>\n */\n@customElement('ox-input-graphql')\nexport default class OxInputGraphql extends LitElement {\n static styles = [\n css`\n ${unsafeCSS(CodeMirrorStyle)}\n ${unsafeCSS(FullScreenStyle)}\n ${unsafeCSS(NightThemeStyle)}\n ${unsafeCSS(LintStyle)}\n ${unsafeCSS(ShowHintStyle)}\n `,\n css`\n :host {\n display: block;\n position: relative;\n }\n\n textarea {\n display: block;\n height: 100%;\n width: 100%;\n resize: none;\n font-size: 16px;\n line-height: 20px;\n border: 0px;\n padding: 0px;\n }\n `\n ]\n\n /**\n * `value`는 에디터에서 작성중인 contents이다.\n */\n @property({ type: String }) value?: string\n @property({ type: String }) link?: string\n\n @query('textarea') textarea!: HTMLTextAreaElement\n\n private _self_changing: boolean = false\n private _changed: boolean = false\n private _editor?: CodeMirror.EditorFromTextArea\n\n async updated(changes: PropertyValues<this>) {\n if ((!this._editor || changes.has('value') || changes.has('link')) && !this._self_changing) {\n if (changes.has('link')) {\n this._editor = undefined\n }\n ;(await this.getEditor())!.setValue(this.value === undefined ? '' : String(this.value))\n // ;(await this.getEditor()).refresh()\n }\n }\n\n render() {\n return html` <textarea></textarea> `\n }\n\n async getSchema() {\n const executor = async ({ document, variables }: any) => {\n const query = print(document)\n const uri = this.link || GRAPHQL_URI\n\n const fetchResult = await fetch(uri, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({ query, variables })\n })\n return fetchResult.json()\n }\n\n return await wrapSchema({\n schema: await introspectSchema(executor),\n executor\n })\n }\n\n async getEditor() {\n if (!this._editor) {\n try {\n var schema = await this.getSchema()\n } catch (err) {\n console.error(err)\n }\n\n if (this.textarea) {\n this._editor = CodeMirror.fromTextArea(this.textarea, {\n value: this.value,\n mode: 'graphql',\n lint: {\n //@ts-ignore\n schema\n },\n hintOptions: {\n //@ts-ignore\n schema\n },\n tabSize: 2,\n lineNumbers: false,\n showCursorWhenSelecting: true,\n theme: 'night',\n extraKeys: {\n F11: function (cm) {\n cm.setOption('fullScreen', !cm.getOption('fullScreen'))\n },\n Esc: function (cm) {\n cm.setOption('fullScreen', !cm.getOption('fullScreen'))\n }\n },\n autoRefresh: {\n delay: 500\n }\n })\n\n this._editor.on('blur', (editor: CodeMirror.Editor, e: FocusEvent) => {\n if (!this._changed) return\n\n this.value = editor.getValue()\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n })\n\n this._editor.on('change', async (editor: CodeMirror.Editor, changeObj: CodeMirror.EditorChange) => {\n this._self_changing = true\n\n this._changed = true\n\n await this.requestUpdate()\n\n this._self_changing = false\n })\n }\n }\n\n return this._editor\n }\n}\n"]}
@@ -13,9 +13,10 @@ import '@operato/property-editor/ox-property-editor-color.js';
13
13
  import '@operato/property-editor/ox-property-editor-multiple-colors.js';
14
14
  import '@operato/property-editor/ox-property-editor-solid-colorstops.js';
15
15
  import '@operato/property-editor/ox-property-editor-gradient-colorstops.js';
16
- import '@operato/property-editor/ox-property-editor-gradient-colorstops.js';
17
16
  import '@operato/property-editor/ox-property-editor-textarea.js';
18
17
  import '@operato/property-editor/ox-property-editor-table.js';
18
+ import '@operato/property-editor/ox-property-editor-key-values.js';
19
+ import '@operato/property-editor/ox-property-editor-partition-keys.js';
19
20
  import '@operato/property-editor/ox-property-editor-value-map.js';
20
21
  import '@operato/property-editor/ox-property-editor-value-ranges.js';
21
22
  import '@operato/attachment/ox-property-editor-attachment-selector.js';
@@ -13,9 +13,10 @@ import '@operato/property-editor/ox-property-editor-color.js';
13
13
  import '@operato/property-editor/ox-property-editor-multiple-colors.js';
14
14
  import '@operato/property-editor/ox-property-editor-solid-colorstops.js';
15
15
  import '@operato/property-editor/ox-property-editor-gradient-colorstops.js';
16
- import '@operato/property-editor/ox-property-editor-gradient-colorstops.js';
17
16
  import '@operato/property-editor/ox-property-editor-textarea.js';
18
17
  import '@operato/property-editor/ox-property-editor-table.js';
18
+ import '@operato/property-editor/ox-property-editor-key-values.js';
19
+ import '@operato/property-editor/ox-property-editor-partition-keys.js';
19
20
  import '@operato/property-editor/ox-property-editor-value-map.js';
20
21
  import '@operato/property-editor/ox-property-editor-value-ranges.js';
21
22
  import '@operato/attachment/ox-property-editor-attachment-selector.js';
@@ -53,6 +54,8 @@ OxPropertyEditor.register({
53
54
  graphql: 'ox-property-editor-graphql',
54
55
  'editor-table': 'ox-property-editor-table',
55
56
  'id-input': 'ox-property-editor-scene-component-id',
56
- 'font-selector': 'ox-property-editor-font-selector'
57
+ 'font-selector': 'ox-property-editor-font-selector',
58
+ 'partition-keys': 'ox-property-editor-partion-keys',
59
+ 'key-values': 'ox-property-editor-key-values'
57
60
  });
58
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/property-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,uDAAuD,CAAA;AAC9D,OAAO,uDAAuD,CAAA;AAC9D,OAAO,yDAAyD,CAAA;AAChE,OAAO,sDAAsD,CAAA;AAC7D,OAAO,uDAAuD,CAAA;AAC9D,OAAO,qDAAqD,CAAA;AAC5D,OAAO,qDAAqD,CAAA;AAC5D,OAAO,yDAAyD,CAAA;AAChE,OAAO,wDAAwD,CAAA;AAC/D,OAAO,uDAAuD,CAAA;AAC9D,OAAO,mEAAmE,CAAA;AAC1E,OAAO,sDAAsD,CAAA;AAC7D,OAAO,gEAAgE,CAAA;AACvE,OAAO,iEAAiE,CAAA;AACxE,OAAO,oEAAoE,CAAA;AAC3E,OAAO,oEAAoE,CAAA;AAC3E,OAAO,yDAAyD,CAAA;AAChE,OAAO,sDAAsD,CAAA;AAC7D,OAAO,0DAA0D,CAAA;AACjE,OAAO,6DAA6D,CAAA;AACpE,OAAO,+DAA+D,CAAA;AACtE,OAAO,0DAA0D,CAAA;AACjE,OAAO,mDAAmD,CAAA;AAC1D,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAE3D,gBAAgB,CAAC,QAAQ,CAAC;IACxB,MAAM,EAAE,2BAA2B;IACnC,MAAM,EAAE,2BAA2B;IACnC,MAAM,EAAE,0BAA0B;IAClC,QAAQ,EAAE,6BAA6B;IACvC,KAAK,EAAE,0BAA0B;IACjC,MAAM,EAAE,2BAA2B;IACnC,QAAQ,EAAE,6BAA6B;IACvC,UAAU,EAAE,6BAA6B;IACzC,QAAQ,EAAE,6BAA6B;IACvC,OAAO,EAAE,6BAA6B;IACtC,MAAM,EAAE,2BAA2B;IACnC,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,4BAA4B;IACrC,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,yBAAyB;IAC/B,KAAK,EAAE,0BAA0B;IACjC,aAAa,EAAE,0BAA0B;IACzC,qBAAqB,EAAE,wCAAwC;IAC/D,eAAe,EAAE,wCAAwC;IACzD,gBAAgB,EAAE,mCAAmC;IACrD,KAAK,EAAE,0BAA0B;IACjC,mBAAmB,EAAE,qCAAqC;IAC1D,sBAAsB,EAAE,wCAAwC;IAChE,gBAAgB,EAAE,oCAAoC;IACtD,GAAG,EAAE,8BAA8B;IACnC,KAAK,EAAE,iCAAiC;IACxC,OAAO,EAAE,4BAA4B;IACrC,cAAc,EAAE,0BAA0B;IAC1C,UAAU,EAAE,uCAAuC;IACnD,eAAe,EAAE,kCAAkC;CACpD,CAAC,CAAA","sourcesContent":["import '@operato/property-editor/ox-property-editor-legend.js'\nimport '@operato/property-editor/ox-property-editor-number.js'\nimport '@operato/property-editor/ox-property-editor-password.js'\nimport '@operato/property-editor/ox-property-editor-angle.js'\nimport '@operato/property-editor/ox-property-editor-string.js'\nimport '@operato/property-editor/ox-property-editor-data.js'\nimport '@operato/property-editor/ox-property-editor-date.js'\nimport '@operato/property-editor/ox-property-editor-checkbox.js'\nimport '@operato/property-editor/ox-property-editor-options.js'\nimport '@operato/property-editor/ox-property-editor-select.js'\nimport '@operato/property-editor/ox-property-editor-scene-component-id.js'\nimport '@operato/property-editor/ox-property-editor-color.js'\nimport '@operato/property-editor/ox-property-editor-multiple-colors.js'\nimport '@operato/property-editor/ox-property-editor-solid-colorstops.js'\nimport '@operato/property-editor/ox-property-editor-gradient-colorstops.js'\nimport '@operato/property-editor/ox-property-editor-gradient-colorstops.js'\nimport '@operato/property-editor/ox-property-editor-textarea.js'\nimport '@operato/property-editor/ox-property-editor-table.js'\nimport '@operato/property-editor/ox-property-editor-value-map.js'\nimport '@operato/property-editor/ox-property-editor-value-ranges.js'\nimport '@operato/attachment/ox-property-editor-attachment-selector.js'\nimport '@operato/attachment/ox-property-editor-image-selector.js'\nimport '@operato/font/ox-property-editor-font-selector.js'\nimport './ox-property-editor-graphql.js'\n\nimport { OxPropertyEditor } from '@operato/property-editor'\n\nOxPropertyEditor.register({\n legend: 'ox-property-editor-legend',\n number: 'ox-property-editor-number',\n slider: 'ox-property-editor-range',\n password: 'ox-property-editor-password',\n angle: 'ox-property-editor-angle',\n string: 'ox-property-editor-string',\n textarea: 'ox-property-editor-textarea',\n javascript: 'ox-property-editor-textarea',\n checkbox: 'ox-property-editor-checkbox',\n boolean: 'ox-property-editor-checkbox',\n select: 'ox-property-editor-select',\n date: 'ox-property-editor-date',\n options: 'ox-property-editor-options',\n data: 'ox-property-editor-data',\n file: 'ox-property-editor-file',\n image: 'ox-property-editor-image',\n 'range-input': 'ox-property-editor-range',\n 'attachment-selector': 'ox-property-editor-attachment-selector',\n 'gltf-selector': 'ox-property-editor-attachment-selector',\n 'image-selector': 'ox-property-editor-image-selector',\n color: 'ox-property-editor-color',\n 'solid-color-stops': 'ox-property-editor-solid-colorstops',\n 'gradient-color-stops': 'ox-property-editor-gradient-colorstops',\n 'multiple-color': 'ox-property-editor-multiple-colors',\n map: 'ox-property-editor-value-map',\n range: 'ox-property-editor-value-ranges',\n graphql: 'ox-property-editor-graphql',\n 'editor-table': 'ox-property-editor-table',\n 'id-input': 'ox-property-editor-scene-component-id',\n 'font-selector': 'ox-property-editor-font-selector'\n})\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/property-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,uDAAuD,CAAA;AAC9D,OAAO,uDAAuD,CAAA;AAC9D,OAAO,yDAAyD,CAAA;AAChE,OAAO,sDAAsD,CAAA;AAC7D,OAAO,uDAAuD,CAAA;AAC9D,OAAO,qDAAqD,CAAA;AAC5D,OAAO,qDAAqD,CAAA;AAC5D,OAAO,yDAAyD,CAAA;AAChE,OAAO,wDAAwD,CAAA;AAC/D,OAAO,uDAAuD,CA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IACrC,cAAc,EAAE,0BAA0B;IAC1C,UAAU,EAAE,uCAAuC;IACnD,eAAe,EAAE,kCAAkC;IACnD,gBAAgB,EAAE,iCAAiC;IACnD,YAAY,EAAE,+BAA+B;CAC9C,CAAC,CAAA","sourcesContent":["import '@operato/property-editor/ox-property-editor-legend.js'\nimport '@operato/property-editor/ox-property-editor-number.js'\nimport '@operato/property-editor/ox-property-editor-password.js'\nimport '@operato/property-editor/ox-property-editor-angle.js'\nimport '@operato/property-editor/ox-property-editor-string.js'\nimport '@operato/property-editor/ox-property-editor-data.js'\nimport '@operato/property-editor/ox-property-editor-date.js'\nimport '@operato/property-editor/ox-property-editor-checkbox.js'\nimport '@operato/property-editor/ox-property-editor-options.js'\nimport '@operato/property-editor/ox-property-editor-select.js'\nimport '@operato/property-editor/ox-property-editor-scene-component-id.js'\nimport '@operato/property-editor/ox-property-editor-color.js'\nimport '@operato/property-editor/ox-property-editor-multiple-colors.js'\nimport '@operato/property-editor/ox-property-editor-solid-colorstops.js'\nimport '@operato/property-editor/ox-property-editor-gradient-colorstops.js'\nimport '@operato/property-editor/ox-property-editor-textarea.js'\nimport '@operato/property-editor/ox-property-editor-table.js'\nimport '@operato/property-editor/ox-property-editor-key-values.js'\nimport '@operato/property-editor/ox-property-editor-partition-keys.js'\nimport '@operato/property-editor/ox-property-editor-value-map.js'\nimport '@operato/property-editor/ox-property-editor-value-ranges.js'\nimport '@operato/attachment/ox-property-editor-attachment-selector.js'\nimport '@operato/attachment/ox-property-editor-image-selector.js'\nimport '@operato/font/ox-property-editor-font-selector.js'\nimport './ox-property-editor-graphql.js'\n\nimport { OxPropertyEditor } from '@operato/property-editor'\n\nOxPropertyEditor.register({\n legend: 'ox-property-editor-legend',\n number: 'ox-property-editor-number',\n slider: 'ox-property-editor-range',\n password: 'ox-property-editor-password',\n angle: 'ox-property-editor-angle',\n string: 'ox-property-editor-string',\n textarea: 'ox-property-editor-textarea',\n javascript: 'ox-property-editor-textarea',\n checkbox: 'ox-property-editor-checkbox',\n boolean: 'ox-property-editor-checkbox',\n select: 'ox-property-editor-select',\n date: 'ox-property-editor-date',\n options: 'ox-property-editor-options',\n data: 'ox-property-editor-data',\n file: 'ox-property-editor-file',\n image: 'ox-property-editor-image',\n 'range-input': 'ox-property-editor-range',\n 'attachment-selector': 'ox-property-editor-attachment-selector',\n 'gltf-selector': 'ox-property-editor-attachment-selector',\n 'image-selector': 'ox-property-editor-image-selector',\n color: 'ox-property-editor-color',\n 'solid-color-stops': 'ox-property-editor-solid-colorstops',\n 'gradient-color-stops': 'ox-property-editor-gradient-colorstops',\n 'multiple-color': 'ox-property-editor-multiple-colors',\n map: 'ox-property-editor-value-map',\n range: 'ox-property-editor-value-ranges',\n graphql: 'ox-property-editor-graphql',\n 'editor-table': 'ox-property-editor-table',\n 'id-input': 'ox-property-editor-scene-component-id',\n 'font-selector': 'ox-property-editor-font-selector',\n 'partition-keys': 'ox-property-editor-partion-keys',\n 'key-values': 'ox-property-editor-key-values'\n})\n"]}
@@ -1,5 +1,5 @@
1
1
  import '../input/ox-input-graphql.js';
2
- import { OxPropertyEditor } from '@operato/property-editor';
2
+ import { OxPropertyEditor, PropertySpec } from '@operato/property-editor';
3
3
  export declare class OxPropertyEditorGraphQL extends OxPropertyEditor {
4
- editorTemplate(): import("lit-html").TemplateResult<1>;
4
+ editorTemplate(value: any, spec: PropertySpec): import("lit-html").TemplateResult<1>;
5
5
  }
@@ -1,11 +1,11 @@
1
1
  import { __decorate } from "tslib";
2
2
  import '../input/ox-input-graphql.js';
3
- import { OxPropertyEditor } from '@operato/property-editor';
4
- import { customElement } from 'lit/decorators.js';
5
3
  import { html } from 'lit';
4
+ import { customElement } from 'lit/decorators.js';
5
+ import { OxPropertyEditor } from '@operato/property-editor';
6
6
  let OxPropertyEditorGraphQL = class OxPropertyEditorGraphQL extends OxPropertyEditor {
7
- editorTemplate() {
8
- return html ` <ox-input-graphql id="editor" .value=${this.value} fullwidth> </ox-input-graphql> `;
7
+ editorTemplate(value, spec) {
8
+ return html ` <ox-input-graphql id="editor" .value=${value} fullwidth> </ox-input-graphql> `;
9
9
  }
10
10
  };
11
11
  OxPropertyEditorGraphQL = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ox-property-editor-graphql.js","sourceRoot":"","sources":["../../../src/property-editor/ox-property-editor-graphql.ts"],"names":[],"mappings":";AAAA,OAAO,8BAA8B,CAAA;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,cAAc;QACZ,OAAO,IAAI,CAAA,yCAAyC,IAAI,CAAC,KAAK,kCAAkC,CAAA;IAClG,CAAC;CACF,CAAA;AAJY,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAInC;SAJY,uBAAuB","sourcesContent":["import '../input/ox-input-graphql.js'\n\nimport { OxPropertyEditor } from '@operato/property-editor'\nimport { customElement } from 'lit/decorators.js'\nimport { html } from 'lit'\n\n@customElement('ox-property-editor-graphql')\nexport class OxPropertyEditorGraphQL extends OxPropertyEditor {\n editorTemplate() {\n return html` <ox-input-graphql id=\"editor\" .value=${this.value} fullwidth> </ox-input-graphql> `\n }\n}\n"]}
1
+ {"version":3,"file":"ox-property-editor-graphql.js","sourceRoot":"","sources":["../../../src/property-editor/ox-property-editor-graphql.ts"],"names":[],"mappings":";AAAA,OAAO,8BAA8B,CAAA;AAErC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,0BAA0B,CAAA;AAGzE,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,cAAc,CAAC,KAAU,EAAE,IAAkB;QAC3C,OAAO,IAAI,CAAA,yCAAyC,KAAK,kCAAkC,CAAA;IAC7F,CAAC;CACF,CAAA;AAJY,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAInC;SAJY,uBAAuB","sourcesContent":["import '../input/ox-input-graphql.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { OxPropertyEditor, PropertySpec } from '@operato/property-editor'\n\n@customElement('ox-property-editor-graphql')\nexport class OxPropertyEditorGraphQL extends OxPropertyEditor {\n editorTemplate(value: any, spec: PropertySpec) {\n return html` <ox-input-graphql id=\"editor\" .value=${value} fullwidth> </ox-input-graphql> `\n }\n}\n"]}