moved property controls

This commit is contained in:
Nikhil Nandagopal 2019-09-24 17:41:32 +05:30
parent 5f6aeb55f8
commit 14bee4aadd
8 changed files with 12 additions and 11 deletions

View File

@ -3,7 +3,7 @@ import { connect } from "react-redux";
import { AppState } from "../../reducers";
import PropertyControlFactory from "../../utils/PropertyControlFactory";
import _ from "lodash";
import { ControlProps } from "../propertyControls/BaseControl";
import { ControlProps } from "../../propertyControls/BaseControl";
import { PropertySection } from "../../reducers/entityReducers/propertyPaneConfigReducer";
import { updateWidgetProperty } from "../../actions/controlActions";

View File

@ -3,7 +3,7 @@
* Controls are higher order components that update a widgets property
*/
import { Component } from "react";
import { ControlType } from "../../constants/PropertyControlConstants";
import { ControlType } from "../constants/PropertyControlConstants";
import _ from "lodash";
abstract class BaseControl<T extends ControlProps> extends Component<T> {

View File

@ -1,6 +1,6 @@
import React, { SyntheticEvent } from "react";
import BaseControl, { ControlProps } from "./BaseControl";
import { ControlType } from "../../constants/PropertyControlConstants";
import { ControlType } from "../constants/PropertyControlConstants";
import { Button, MenuItem } from "@blueprintjs/core";
import { Select, IItemRendererProps } from "@blueprintjs/select";

View File

@ -1,8 +1,8 @@
import React from "react";
import BaseControl, { ControlProps } from "./BaseControl";
import { ControlType } from "../../constants/PropertyControlConstants";
import { ControlType } from "../constants/PropertyControlConstants";
import { InputGroup } from "@blueprintjs/core";
import { InputType } from "../../widgets/InputWidget";
import { InputType } from "../widgets/InputWidget";
class InputTextControl extends BaseControl<InputControlProps> {
render() {

View File

@ -4,9 +4,9 @@ import {
ReduxAction,
} from "../../constants/ReduxActionConstants";
import PropertyPaneConfigResponse from "../../mockResponses/PropertyPaneConfigResponse";
import { InputControlProps } from "../../pages/propertyControls/InputTextControl";
import { DropDownControlProps } from "../../pages/propertyControls/DropDownControl";
import { ControlProps } from "../../pages/propertyControls/BaseControl";
import { InputControlProps } from "../../propertyControls/InputTextControl";
import { DropDownControlProps } from "../../propertyControls/DropDownControl";
import { ControlProps } from "../../propertyControls/BaseControl";
const initialState: PropertyPaneConfigState = PropertyPaneConfigResponse;

View File

@ -32,6 +32,7 @@ export function* evaluateJSONPathSaga(jsonPath: string): any {
export function* executeAPIQueryActionSaga(apiAction: ActionPayload) {
const api: PageAction = yield select(getAction, apiAction.actionId);
const executeActionRequest: ExecuteActionRequest = {
actionId: apiAction.actionId,
};

View File

@ -4,7 +4,7 @@ import {
ControlProps,
ControlData,
ControlFunctions,
} from "../pages/propertyControls/BaseControl";
} from "../propertyControls/BaseControl";
class PropertyControlFactory {
static controlMap: Map<ControlType, ControlBuilder<ControlProps>> = new Map();

View File

@ -2,10 +2,10 @@ import React from "react";
import PropertyControlFactory from "./PropertyControlFactory";
import InputTextControl, {
InputControlProps,
} from "../pages/propertyControls/InputTextControl";
} from "../propertyControls/InputTextControl";
import DropDownControl, {
DropDownControlProps,
} from "../pages/propertyControls/DropDownControl";
} from "../propertyControls/DropDownControl";
class PropertyControlRegistry {
static registerPropertyControlBuilders() {