import Cleanup and order it
This commit is contained in:
parent
7d7861987e
commit
6f7c47171a
|
@ -36,7 +36,7 @@ export interface IKanbanBucketConfiguratorState {
|
||||||
useColor: boolean;
|
useColor: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class KanbanBucketConfigurator extends React.Component<IKanbanBucketConfiguratorProps, IKanbanBucketConfiguratorState> {
|
export class KanbanBucketConfigurator extends React.Component<IKanbanBucketConfiguratorProps, IKanbanBucketConfiguratorState> {
|
||||||
|
|
||||||
constructor(props: IKanbanBucketConfiguratorProps) {
|
constructor(props: IKanbanBucketConfiguratorProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
|
@ -52,7 +52,7 @@ export enum DialogState {
|
||||||
Display = 3
|
Display = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class KanbanComponent extends React.Component<IKanbanComponentProps, IKanbanComponentState> {
|
export class KanbanComponent extends React.Component<IKanbanComponentProps, IKanbanComponentState> {
|
||||||
private dragelement?: IKanbanTask;
|
private dragelement?: IKanbanTask;
|
||||||
private bucketsref: any[];
|
private bucketsref: any[];
|
||||||
constructor(props: IKanbanComponentProps) {
|
constructor(props: IKanbanComponentProps) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import KanbanComponent from './KanbanComponent';
|
import {KanbanComponent} from './KanbanComponent';
|
||||||
import KanbanBucketConfigurator from './KanbanBucketConfigurator';
|
import {KanbanBucketConfigurator} from './KanbanBucketConfigurator';
|
||||||
import { IKanbanBucket } from './IKanbanBucket';
|
import { IKanbanBucket } from './IKanbanBucket';
|
||||||
import { IKanbanTask, KanbanTaskMamagedPropertyType } from './IKanbanTask';
|
import { IKanbanTask, KanbanTaskMamagedPropertyType } from './IKanbanTask';
|
||||||
import { findIndex } from "lodash";
|
import { findIndex } from "lodash";
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
export { KanbanComponent } from './KanbanComponent';
|
||||||
|
export { KanbanBucketConfigurator ,IKanbanBucketConfiguratorProps } from './KanbanBucketConfigurator';
|
||||||
|
export { IKanbanBucket } from './IKanbanBucket';
|
||||||
|
export { IKanbanTask, KanbanTaskMamagedPropertyType } from './IKanbanTask';
|
|
@ -1,29 +1,26 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import * as ReactDom from 'react-dom';
|
import * as ReactDom from 'react-dom';
|
||||||
import { Version, Guid, Environment, EnvironmentType } from '@microsoft/sp-core-library';
|
import { Version, Environment, EnvironmentType } from '@microsoft/sp-core-library';
|
||||||
import { BaseClientSideWebPart, PropertyPaneDropdown } from '@microsoft/sp-webpart-base';
|
import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
|
||||||
import {
|
import {
|
||||||
IPropertyPaneConfiguration,
|
IPropertyPaneConfiguration,
|
||||||
PropertyPaneTextField,
|
|
||||||
PropertyPaneToggle
|
PropertyPaneToggle
|
||||||
} from '@microsoft/sp-property-pane';
|
} from '@microsoft/sp-property-pane';
|
||||||
|
import { cloneDeep } from '@microsoft/sp-lodash-subset';
|
||||||
|
|
||||||
import { PropertyFieldListPicker, PropertyFieldListPickerOrderBy } from '@pnp/spfx-property-controls/lib/PropertyFieldListPicker';
|
import { PropertyFieldListPicker, PropertyFieldListPickerOrderBy } from '@pnp/spfx-property-controls/lib/PropertyFieldListPicker';
|
||||||
import { PropertyFieldOrder } from '@pnp/spfx-property-controls/lib/PropertyFieldOrder';
|
import { PropertyFieldOrder } from '@pnp/spfx-property-controls/lib/PropertyFieldOrder';
|
||||||
|
|
||||||
import * as strings from 'KanbanBoardWebPartStrings';
|
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 "@pnp/polyfill-ie11";
|
||||||
import { sp } from '@pnp/sp';
|
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 { mergeBucketsWithChoices } from './components/helper';
|
||||||
import { PropertyFieldMessage } from '@pnp/spfx-property-controls/lib/PropertyFieldMessage';
|
|
||||||
import { MessageBarType } from 'office-ui-fabric-react';
|
import { IKanbanBucket } from '../../kanban';
|
||||||
import { cloneDeep } from '@microsoft/sp-lodash-subset';
|
|
||||||
import { ISPKanbanService } from './services/ISPKanbanService';
|
import { ISPKanbanService } from './services/ISPKanbanService';
|
||||||
import SPKanbanService from './services/SPKanbanService';
|
import SPKanbanService from './services/SPKanbanService';
|
||||||
import MockKanbanService from './services/MockKanbanService';
|
import MockKanbanService from './services/MockKanbanService';
|
||||||
|
|
|
@ -1,16 +1,18 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import styles from './KanbanBoardV2.module.scss';
|
|
||||||
import * as strings from 'KanbanBoardWebPartStrings';
|
import * as strings from 'KanbanBoardWebPartStrings';
|
||||||
|
|
||||||
import { DisplayMode, Guid, Environment, EnvironmentType } from '@microsoft/sp-core-library';
|
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 { WebPartTitle } from "@pnp/spfx-controls-react/lib/WebPartTitle";
|
||||||
import { Placeholder } from "@pnp/spfx-controls-react/lib/Placeholder";
|
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 {KanbanComponent,IKanbanBucket,IKanbanTask} from '../../../kanban';
|
||||||
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 { mergeBucketsWithChoices } from './helper';
|
import { mergeBucketsWithChoices } from './helper';
|
||||||
import { ISPKanbanService } from '../services/ISPKanbanService';
|
import { ISPKanbanService } from '../services/ISPKanbanService';
|
||||||
import SPKanbanService from '../services/SPKanbanService';
|
import SPKanbanService from '../services/SPKanbanService';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { IKanbanBucket } from '../../../kanban/IKanbanBucket';
|
import { IKanbanBucket } from '../../../kanban';
|
||||||
import styles from './KanbanBoardV2.module.scss';
|
import styles from './KanbanBoardV2.module.scss';
|
||||||
|
|
||||||
export const bucketOrder = (item:IKanbanBucket, index:number): JSX.Element => {
|
export const bucketOrder = (item:IKanbanBucket, index:number): JSX.Element => {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { IKanbanBucket } from "../../../kanban/IKanbanBucket";
|
import { IKanbanBucket } from "../../../kanban";
|
||||||
|
|
||||||
export function mergeBucketsWithChoices(inB: IKanbanBucket[], choices: string[]): IKanbanBucket[] {
|
export function mergeBucketsWithChoices(inB: IKanbanBucket[], choices: string[]): IKanbanBucket[] {
|
||||||
const currentbuckets: IKanbanBucket[] = [];
|
const currentbuckets: IKanbanBucket[] = [];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { IKanbanTask } from "../../../kanban/IKanbanTask";
|
import { IKanbanTask } from "../../../kanban";
|
||||||
|
|
||||||
export interface ISPKanbanService {
|
export interface ISPKanbanService {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { ISPKanbanService } from "./ISPKanbanService";
|
import { ISPKanbanService } from "./ISPKanbanService";
|
||||||
import "@pnp/polyfill-ie11";
|
import "@pnp/polyfill-ie11";
|
||||||
import { sp } from '@pnp/sp';
|
import { sp } from '@pnp/sp';
|
||||||
import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban/IKanbanTask";
|
import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban";
|
||||||
import * as strings from 'KanbanBoardWebPartStrings';
|
import * as strings from 'KanbanBoardWebPartStrings';
|
||||||
|
|
||||||
export default class MockKanbanService implements ISPKanbanService {
|
export default class MockKanbanService implements ISPKanbanService {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { ISPKanbanService } from "./ISPKanbanService";
|
import { ISPKanbanService } from "./ISPKanbanService";
|
||||||
import "@pnp/polyfill-ie11";
|
import "@pnp/polyfill-ie11";
|
||||||
import { sp } from '@pnp/sp';
|
import { sp } from '@pnp/sp';
|
||||||
import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban/IKanbanTask";
|
import { IKanbanTask, KanbanTaskMamagedPropertyType } from "../../../kanban";
|
||||||
import * as strings from 'KanbanBoardWebPartStrings';
|
import * as strings from 'KanbanBoardWebPartStrings';
|
||||||
|
|
||||||
export default class SPKanbanService implements ISPKanbanService {
|
export default class SPKanbanService implements ISPKanbanService {
|
||||||
|
|
Loading…
Reference in New Issue