import Cleanup and order it

This commit is contained in:
petkir 2020-06-30 13:59:29 +02:00
parent 5ede851ff0
commit eba25acb32
11 changed files with 32 additions and 29 deletions

View File

@ -36,7 +36,7 @@ export interface IKanbanBucketConfiguratorState {
useColor: boolean;
}
export default class KanbanBucketConfigurator extends React.Component<IKanbanBucketConfiguratorProps, IKanbanBucketConfiguratorState> {
export class KanbanBucketConfigurator extends React.Component<IKanbanBucketConfiguratorProps, IKanbanBucketConfiguratorState> {
constructor(props: IKanbanBucketConfiguratorProps) {
super(props);

View File

@ -52,7 +52,7 @@ export enum DialogState {
Display = 3
}
export default class KanbanComponent extends React.Component<IKanbanComponentProps, IKanbanComponentState> {
export class KanbanComponent extends React.Component<IKanbanComponentProps, IKanbanComponentState> {
private dragelement?: IKanbanTask;
private bucketsref: any[];
constructor(props: IKanbanComponentProps) {

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import KanbanComponent from './KanbanComponent';
import KanbanBucketConfigurator from './KanbanBucketConfigurator';
import {KanbanComponent} from './KanbanComponent';
import {KanbanBucketConfigurator} from './KanbanBucketConfigurator';
import { IKanbanBucket } from './IKanbanBucket';
import { IKanbanTask, KanbanTaskMamagedPropertyType } from './IKanbanTask';
import { findIndex } from "lodash";

View File

@ -0,0 +1,4 @@
export { KanbanComponent } from './KanbanComponent';
export { KanbanBucketConfigurator ,IKanbanBucketConfiguratorProps } from './KanbanBucketConfigurator';
export { IKanbanBucket } from './IKanbanBucket';
export { IKanbanTask, KanbanTaskMamagedPropertyType } from './IKanbanTask';

View File

@ -1,29 +1,26 @@
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version, Guid, Environment, EnvironmentType } from '@microsoft/sp-core-library';
import { BaseClientSideWebPart, PropertyPaneDropdown } from '@microsoft/sp-webpart-base';
import { Version, Environment, EnvironmentType } from '@microsoft/sp-core-library';
import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
import {
IPropertyPaneConfiguration,
PropertyPaneTextField,
PropertyPaneToggle
} from '@microsoft/sp-property-pane';
import { cloneDeep } from '@microsoft/sp-lodash-subset';
import { PropertyFieldListPicker, PropertyFieldListPickerOrderBy } from '@pnp/spfx-property-controls/lib/PropertyFieldListPicker';
import { PropertyFieldOrder } from '@pnp/spfx-property-controls/lib/PropertyFieldOrder';
import * as strings from 'KanbanBoardWebPartStrings';
import KanbanBucketConfigurator, { IKanbanBucketConfiguratorProps } from '../../kanban/KanbanBucketConfigurator';
import PropertyPaneBucketConfigComponent from './components/PropertyPaneBucketConfig';
import KanbanBoardV2, { IKanbanBoardV2Props } from './components/KanbanBoardV2';
import { bucketOrder } from './components/bucketOrder';
import "@pnp/polyfill-ie11";
import { sp } from '@pnp/sp';
import { IKanbanBucket } from '../../kanban/IKanbanBucket';
import PropertyPaneBucketConfigComponent from './components/PropertyPaneBucketConfig';
import KanbanBoardV2, { IKanbanBoardV2Props } from './components/KanbanBoardV2';
import { bucketOrder } from './components/bucketOrder';
import { mergeBucketsWithChoices } from './components/helper';
import { PropertyFieldMessage } from '@pnp/spfx-property-controls/lib/PropertyFieldMessage';
import { MessageBarType } from 'office-ui-fabric-react';
import { cloneDeep } from '@microsoft/sp-lodash-subset';
import { IKanbanBucket } from '../../kanban';
import { ISPKanbanService } from './services/ISPKanbanService';
import SPKanbanService from './services/SPKanbanService';
import MockKanbanService from './services/MockKanbanService';

View File

@ -1,16 +1,18 @@
import * as React from 'react';
import styles from './KanbanBoardV2.module.scss';
import * as strings from 'KanbanBoardWebPartStrings';
import { DisplayMode, Guid, Environment, EnvironmentType } from '@microsoft/sp-core-library';
import { WebPartContext } from '@microsoft/sp-webpart-base';
import { findIndex, isEqual, cloneDeep } from '@microsoft/sp-lodash-subset';
import { Spinner } from 'office-ui-fabric-react/lib/Spinner';
import { WebPartTitle } from "@pnp/spfx-controls-react/lib/WebPartTitle";
import { Placeholder } from "@pnp/spfx-controls-react/lib/Placeholder";
import { WebPartContext } from '@microsoft/sp-webpart-base';
import { Spinner } from 'office-ui-fabric-react/lib/Spinner';
import { IKanbanBucket } from '../../../kanban/IKanbanBucket';
import { IKanbanTask, KanbanTaskMamagedPropertyType } from '../../../kanban/IKanbanTask';
import KanbanComponent from '../../../kanban/KanbanComponent';
import { findIndex, clone, isEqual, cloneDeep } from '@microsoft/sp-lodash-subset';
import { sp } from '@pnp/sp';
import {KanbanComponent,IKanbanBucket,IKanbanTask} from '../../../kanban';
import { mergeBucketsWithChoices } from './helper';
import { ISPKanbanService } from '../services/ISPKanbanService';
import SPKanbanService from '../services/SPKanbanService';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import { IKanbanBucket } from '../../../kanban/IKanbanBucket';
import { IKanbanBucket } from '../../../kanban';
import styles from './KanbanBoardV2.module.scss';
export const bucketOrder = (item:IKanbanBucket, index:number): JSX.Element => {

View File

@ -1,4 +1,4 @@
import { IKanbanBucket } from "../../../kanban/IKanbanBucket";
import { IKanbanBucket } from "../../../kanban";
export function mergeBucketsWithChoices(inB: IKanbanBucket[], choices: string[]): IKanbanBucket[] {
const currentbuckets: IKanbanBucket[] = [];

View File

@ -1,4 +1,4 @@
import { IKanbanTask } from "../../../kanban/IKanbanTask";
import { IKanbanTask } from "../../../kanban";
export interface ISPKanbanService {

View File

@ -1,7 +1,7 @@
import { ISPKanbanService } from "./ISPKanbanService";
import "@pnp/polyfill-ie11";
import { sp } from '@pnp/sp';
import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban/IKanbanTask";
import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban";
import * as strings from 'KanbanBoardWebPartStrings';
export default class MockKanbanService implements ISPKanbanService {

View File

@ -1,7 +1,7 @@
import { ISPKanbanService } from "./ISPKanbanService";
import "@pnp/polyfill-ie11";
import { sp } from '@pnp/sp';
import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban/IKanbanTask";
import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban";
import * as strings from 'KanbanBoardWebPartStrings';
export default class SPKanbanService implements ISPKanbanService {