/*
* Copyright © HatioLab Inc. All rights reserved.
*/
import './things-editor-http-headers.js'
import './things-editor-http-parameters.js'
import './things-editor-http-body.js'
import './things-editor-db-procedure.js'
import './things-editor-tag-scenarios.js'
import { html } from 'lit'
import { OxPropertyEditor } from '@operato/property-editor'
export class PropertyEditorScenarioStepInput extends OxPropertyEditor {
static get styles() {
return [...OxPropertyEditor.styles]
}
editorTemplate(value, spec) {
/* context must be a datagrid(grist) instance, and host must be a record */
const { context: grid, host: record } = spec
const steps = grid?.dirtyData.records.filter(rec => rec.name !== record.name).map(rec => rec.name) || []
return html`
`
}
}
customElements.define('property-editor-scenario-step-input', PropertyEditorScenarioStepInput)
export class PropertyEditorHttpHeaders extends OxPropertyEditor {
static get styles() {
return [...OxPropertyEditor.styles]
}
editorTemplate(value, spec) {
return html`
`
}
}
customElements.define('property-editor-http-headers', PropertyEditorHttpHeaders)
export class PropertyEditorHttpParameters extends OxPropertyEditor {
static get styles() {
return [...OxPropertyEditor.styles]
}
editorTemplate(value, spec) {
return html`
`
}
}
customElements.define('property-editor-http-parameters', PropertyEditorHttpParameters)
export class PropertyEditorHttpBody extends OxPropertyEditor {
static get styles() {
return [...OxPropertyEditor.styles]
}
editorTemplate(value, spec) {
return html`
`
}
}
customElements.define('property-editor-http-body', PropertyEditorHttpBody)
export class PropertyEditorProcedureParameters extends OxPropertyEditor {
static get styles() {
return [...OxPropertyEditor.styles]
}
editorTemplate(value, spec) {
/* context must be a datagrid(grist) instance, and host must be a record */
const { context: grid, host: record } = spec
const { dbtype = 'oracle' } = spec.property || {}
const steps = grid?.dirtyData.records.filter(rec => rec.name !== record.name).map(rec => rec.name) || []
return html`
`
}
}
customElements.define('property-editor-procedure-parameters', PropertyEditorProcedureParameters)
export class PropertyEditorTagScenarios extends OxPropertyEditor {
static get styles() {
return [...OxPropertyEditor.styles]
}
editorTemplate(value, spec) {
/* context must be a datagrid(grist) instance, and host must be a record */
const { context: grid, host: record } = spec
const steps = grid?.dirtyData.records.filter(rec => rec.name !== record.name).map(rec => rec.name) || []
return html`
`
}
}
customElements.define('property-editor-tag-scenarios', PropertyEditorTagScenarios)