Updated npm packages

Added IE11 polyfill
Re-use sortdirection from PnP instead of separate enum #656
This commit is contained in:
Mikael Svenson 2018-11-06 08:01:22 +01:00
parent 2df0641eb7
commit 03e4b2307f
10 changed files with 3648 additions and 3632 deletions

File diff suppressed because it is too large Load Diff

View File

@ -19,12 +19,13 @@
"@microsoft/sp-lodash-subset": "1.6.0-plusbeta", "@microsoft/sp-lodash-subset": "1.6.0-plusbeta",
"@microsoft/sp-office-ui-fabric-core": "1.6.0-plusbeta", "@microsoft/sp-office-ui-fabric-core": "1.6.0-plusbeta",
"@microsoft/sp-webpart-base": "1.6.0-plusbeta", "@microsoft/sp-webpart-base": "1.6.0-plusbeta",
"@pnp/common": "1.2.1", "@pnp/common": "1.2.3",
"@pnp/logging": "1.2.1", "@pnp/logging": "1.2.3",
"@pnp/odata": "1.2.1", "@pnp/odata": "1.2.3",
"@pnp/sp": "1.2.1", "@pnp/polyfill-ie11": "^1.0.0",
"@pnp/spfx-controls-react": "1.8.0", "@pnp/sp": "1.2.3",
"@pnp/spfx-property-controls": "1.10.0", "@pnp/spfx-controls-react": "1.9.0",
"@pnp/spfx-property-controls": "1.11.0",
"@types/es6-promise": "0.0.33", "@types/es6-promise": "0.0.33",
"@types/fabric": "^1.5.43", "@types/fabric": "^1.5.43",
"@types/handlebars": "^4.0.39", "@types/handlebars": "^4.0.39",

View File

@ -1,6 +0,0 @@
enum SortDirection {
Ascending = "ascending",
Descending = "descending"
}
export default SortDirection;

View File

@ -1,5 +1,5 @@
import SortDirection from "./SortDirection"; import { SortDirection } from "@pnp/sp";
type UpdateSortOperationCallback = (sortDirection:SortDirection,sortField?:string) => void; type UpdateSortOperationCallback = (sortDirection: SortDirection, sortField?: string) => void;
export default UpdateSortOperationCallback; export default UpdateSortOperationCallback;

View File

@ -9,6 +9,7 @@ import {sortBy, groupBy} from
const mapKeys: any = require('lodash/mapKeys'); const mapKeys: any = require('lodash/mapKeys');
const mapValues: any = require('lodash/mapValues'); const mapValues: any = require('lodash/mapValues');
import LocalizationHelper from '../../helpers/LocalizationHelper'; import LocalizationHelper from '../../helpers/LocalizationHelper';
import "@pnp/polyfill-ie11";
declare var System: any; declare var System: any;

View File

@ -1,5 +1,5 @@
import { ISearchResults, IRefinementFilter, IRefinementResult } from '../../../../models/ISearchResult'; import { ISearchResults, IRefinementFilter, IRefinementResult } from '../../../../models/ISearchResult';
import SortDirection from '../../../../models/SortDirection'; import { SortDirection } from "@pnp/sp";
interface ISearchResultsContainerState { interface ISearchResultsContainerState {

View File

@ -14,7 +14,7 @@ import { WebPartTitle } from "@pnp/spfx-controls-react/lib/WebPartTitle";
import SearchResultsTemplate from '../Layouts/SearchResultsTemplate'; import SearchResultsTemplate from '../Layouts/SearchResultsTemplate';
import styles from '../SearchResultsWebPart.module.scss'; import styles from '../SearchResultsWebPart.module.scss';
import { SortPanel } from '../SortPanel'; import { SortPanel } from '../SortPanel';
import SortDirection from '../../../../models/SortDirection'; import { SortDirection } from "@pnp/sp";
declare var System: any; declare var System: any;
let FilterPanel = null; let FilterPanel = null;

View File

@ -1,5 +1,5 @@
import UpdateSortOperationCallback from '../../../../models/UpdateSortOperationCallback'; import UpdateSortOperationCallback from '../../../../models/UpdateSortOperationCallback';
import SortDirection from '../../../../models/SortDirection'; import { SortDirection } from "@pnp/sp";
interface ISortPanelProps { interface ISortPanelProps {
sortableFieldsConfiguration: { [key: string]: string }; sortableFieldsConfiguration: { [key: string]: string };

View File

@ -1,5 +1,5 @@
import { IRefinementFilter } from '../../../../models/ISearchResult'; import { IRefinementFilter } from '../../../../models/ISearchResult';
import SortDirection from '../../../../models/SortDirection'; import { SortDirection } from "@pnp/sp";
interface IFilterPanelState { interface IFilterPanelState {
showPanel?: boolean; showPanel?: boolean;

View File

@ -7,7 +7,7 @@ import { Toggle } from 'office-u
import * as strings from 'SearchWebPartStrings'; import * as strings from 'SearchWebPartStrings';
import { Scrollbars } from 'react-custom-scrollbars'; import { Scrollbars } from 'react-custom-scrollbars';
import { ActionButton } from 'office-ui-fabric-react/lib/Button'; import { ActionButton } from 'office-ui-fabric-react/lib/Button';
import SortDirection from '../../../../models/SortDirection'; import { SortDirection } from "@pnp/sp";
import styles from '../SearchResultsWebPart.module.scss'; import styles from '../SearchResultsWebPart.module.scss';
export default class SortPanel extends React.Component<ISortPanelProps, ISortPanelState> { export default class SortPanel extends React.Component<ISortPanelProps, ISortPanelState> {