mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-09 22:44:59 +00:00
Updated spfx to 1.9.1
This commit is contained in:
parent
e57793153c
commit
2461e64f8c
@ -2,7 +2,7 @@
|
|||||||
"@microsoft/generator-sharepoint": {
|
"@microsoft/generator-sharepoint": {
|
||||||
"isCreatingSolution": true,
|
"isCreatingSolution": true,
|
||||||
"environment": "spo",
|
"environment": "spo",
|
||||||
"version": "1.7.1",
|
"version": "1.9.1",
|
||||||
"libraryName": "react-form-webpart",
|
"libraryName": "react-form-webpart",
|
||||||
"libraryId": "b092661d-5730-49ea-be27-14ee4a84eb33",
|
"libraryId": "b092661d-5730-49ea-be27-14ee4a84eb33",
|
||||||
"packageManager": "npm",
|
"packageManager": "npm",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"solution": {
|
"solution": {
|
||||||
"name": "react-form-webpart-client-side-solution",
|
"name": "react-form-webpart-client-side-solution",
|
||||||
"id": "373a20ef-dfc6-456a-95ec-171de3c94581",
|
"id": "373a20ef-dfc6-456a-95ec-171de3c94581",
|
||||||
"version": "1.0.1.0",
|
"version": "1.0.2.0",
|
||||||
"title": "List form",
|
"title": "List form",
|
||||||
"supportedLocales": [
|
"supportedLocales": [
|
||||||
"en-US",
|
"en-US",
|
||||||
@ -16,4 +16,4 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"zippedPackage": "solution/react-form-webpart.sppkg"
|
"zippedPackage": "solution/react-form-webpart.sppkg"
|
||||||
}
|
}
|
||||||
}
|
}
|
8257
samples/react-list-form/npm-shrinkwrap.json
generated
8257
samples/react-list-form/npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,7 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
},
|
},
|
||||||
|
"main": "lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "gulp serve",
|
"serve": "gulp serve",
|
||||||
"build": "gulp bundle",
|
"build": "gulp bundle",
|
||||||
@ -12,10 +13,10 @@
|
|||||||
"test": "gulp test"
|
"test": "gulp test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/sp-core-library": "1.7.1",
|
"@microsoft/sp-core-library": "1.9.1",
|
||||||
"@microsoft/sp-lodash-subset": "1.7.1",
|
"@microsoft/sp-lodash-subset": "1.9.1",
|
||||||
"@microsoft/sp-office-ui-fabric-core": "1.7.1",
|
"@microsoft/sp-office-ui-fabric-core": "1.9.1",
|
||||||
"@microsoft/sp-webpart-base": "1.7.1",
|
"@microsoft/sp-webpart-base": "1.9.1",
|
||||||
"@tinymce/tinymce-react": "^3.0.1",
|
"@tinymce/tinymce-react": "^3.0.1",
|
||||||
"@types/es6-promise": "0.0.33",
|
"@types/es6-promise": "0.0.33",
|
||||||
"@types/react-dnd": "~2.0.34",
|
"@types/react-dnd": "~2.0.34",
|
||||||
@ -28,10 +29,11 @@
|
|||||||
"tinymce": "^5.0.1"
|
"tinymce": "^5.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.7.1",
|
"@microsoft/rush-stack-compiler-2.9": "^0.8.5",
|
||||||
"@microsoft/sp-tslint-rules": "1.7.1",
|
"@microsoft/sp-build-web": "1.9.1",
|
||||||
"@microsoft/sp-module-interfaces": "1.7.1",
|
"@microsoft/sp-module-interfaces": "1.9.1",
|
||||||
"@microsoft/sp-webpart-workbench": "1.7.1",
|
"@microsoft/sp-tslint-rules": "1.9.1",
|
||||||
|
"@microsoft/sp-webpart-workbench": "1.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
require('./ConfigureWebPart.module.css');
|
require("./ConfigureWebPart.module.css");
|
||||||
const styles = {
|
const styles = {
|
||||||
container: 'container_0bf126c2',
|
container: 'container_f7c71bef',
|
||||||
title: 'title_0bf126c2',
|
title: 'title_f7c71bef',
|
||||||
description: 'description_0bf126c2',
|
description: 'description_f7c71bef',
|
||||||
button: 'button_0bf126c2',
|
button: 'button_f7c71bef'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default styles;
|
export default styles;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { IPropertyPaneCustomFieldProps } from '@microsoft/sp-webpart-base';
|
|
||||||
|
import { IPropertyPaneCustomFieldProps } from "@microsoft/sp-property-pane";
|
||||||
import { IPropertyPaneAsyncDropdownProps } from './IPropertyPaneAsyncDropdownProps';
|
import { IPropertyPaneAsyncDropdownProps } from './IPropertyPaneAsyncDropdownProps';
|
||||||
|
|
||||||
export interface IPropertyPaneAsyncDropdownInternalProps extends IPropertyPaneAsyncDropdownProps, IPropertyPaneCustomFieldProps { }
|
export interface IPropertyPaneAsyncDropdownInternalProps extends IPropertyPaneAsyncDropdownProps, IPropertyPaneCustomFieldProps { }
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import * as ReactDom from 'react-dom';
|
import * as ReactDom from 'react-dom';
|
||||||
import {
|
import { IPropertyPaneField, PropertyPaneFieldType } from "@microsoft/sp-property-pane";
|
||||||
IPropertyPaneField,
|
|
||||||
PropertyPaneFieldType
|
|
||||||
} from '@microsoft/sp-webpart-base';
|
|
||||||
import { IDropdownOption } from 'office-ui-fabric-react/lib/components/Dropdown';
|
import { IDropdownOption } from 'office-ui-fabric-react/lib/components/Dropdown';
|
||||||
import { IPropertyPaneAsyncDropdownProps } from './IPropertyPaneAsyncDropdownProps';
|
import { IPropertyPaneAsyncDropdownProps } from './IPropertyPaneAsyncDropdownProps';
|
||||||
import { IPropertyPaneAsyncDropdownInternalProps } from './IPropertyPaneAsyncDropdownInternalProps';
|
import { IPropertyPaneAsyncDropdownInternalProps } from './IPropertyPaneAsyncDropdownInternalProps';
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { ControlMode } from '../../common/datatypes/ControlMode';
|
import { ControlMode } from '../../common/datatypes/ControlMode';
|
||||||
import { IFieldConfiguration } from './components/IFieldConfiguration';
|
import { IFieldConfiguration } from './components/IFieldConfiguration';
|
||||||
|
|
||||||
|
|
||||||
export interface IListFormWebPartProps {
|
export interface IListFormWebPartProps {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
// Components that allow authors to embed arbitrary script code should set this to true.
|
// Components that allow authors to embed arbitrary script code should set this to true.
|
||||||
// https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f
|
// https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f
|
||||||
"requiresCustomScript": false,
|
"requiresCustomScript": false,
|
||||||
|
"supportedHosts": [
|
||||||
|
"SharePointWebPart"
|
||||||
|
],
|
||||||
"preconfiguredEntries": [
|
"preconfiguredEntries": [
|
||||||
{
|
{
|
||||||
"groupId": "48e2d130-7eb7-4ee9-aa23-5ddbdfd175b1",
|
"groupId": "48e2d130-7eb7-4ee9-aa23-5ddbdfd175b1",
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import * as ReactDom from 'react-dom';
|
import * as ReactDom from 'react-dom';
|
||||||
import { DisplayMode, Environment, EnvironmentType, Version } from '@microsoft/sp-core-library';
|
import { DisplayMode, Environment, EnvironmentType, Version } from '@microsoft/sp-core-library';
|
||||||
|
import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BaseClientSideWebPart,
|
IPropertyPaneConfiguration, PropertyPaneDropdown,
|
||||||
IPropertyPaneConfiguration,
|
PropertyPaneTextField, PropertyPaneToggle, IPropertyPaneField
|
||||||
PropertyPaneTextField,
|
} from "@microsoft/sp-property-pane";
|
||||||
PropertyPaneDropdown,
|
|
||||||
PropertyPaneToggle
|
|
||||||
} from '@microsoft/sp-webpart-base';
|
|
||||||
|
|
||||||
import * as strings from 'ListFormWebPartStrings';
|
import * as strings from 'ListFormWebPartStrings';
|
||||||
import ListForm from './components/ListForm';
|
import ListForm from './components/ListForm';
|
||||||
@ -137,7 +136,7 @@ export default class ListFormWebPart extends BaseClientSideWebPart<IListFormWebP
|
|||||||
PropertyPaneToggle('showUnsupportedFields', {
|
PropertyPaneToggle('showUnsupportedFields', {
|
||||||
label: strings.ShowUnsupportedFieldsLabel,
|
label: strings.ShowUnsupportedFieldsLabel,
|
||||||
disabled: !this.properties.listUrl
|
disabled: !this.properties.listUrl
|
||||||
})
|
}) as IPropertyPaneField<any> // for some reasong the PropertyPaneToggle was not being accepted as IPropertyPaneField<any>
|
||||||
);
|
);
|
||||||
mainGroup.groupFields.push(
|
mainGroup.groupFields.push(
|
||||||
PropertyPaneTextField('redirectUrl', {
|
PropertyPaneTextField('redirectUrl', {
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
require('./DraggableComponent.module.css');
|
require("./DraggableComponent.module.css");
|
||||||
const styles = {
|
const styles = {
|
||||||
draggableComponent: 'draggableComponent_983b2b46',
|
draggableComponent: 'draggableComponent_98a40df4',
|
||||||
isDragging: 'isDragging_983b2b46',
|
isDragging: 'isDragging_98a40df4',
|
||||||
toolbar: 'toolbar_983b2b46',
|
toolbar: 'toolbar_98a40df4',
|
||||||
button: 'button_983b2b46',
|
button: 'button_98a40df4'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default styles;
|
export default styles;
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
require('./ListForm.module.css');
|
require("./ListForm.module.css");
|
||||||
const styles = {
|
const styles = {
|
||||||
listForm: 'listForm_7906cbc9',
|
listForm: 'listForm_e2d8b707',
|
||||||
title: 'title_7906cbc9',
|
title: 'title_e2d8b707',
|
||||||
description: 'description_7906cbc9',
|
description: 'description_e2d8b707',
|
||||||
formFieldsContainer: 'formFieldsContainer_7906cbc9',
|
formFieldsContainer: 'formFieldsContainer_e2d8b707',
|
||||||
isDataLoading: 'isDataLoading_7906cbc9',
|
isDataLoading: 'isDataLoading_e2d8b707',
|
||||||
formButtonsContainer: 'formButtonsContainer_7906cbc9',
|
formButtonsContainer: 'formButtonsContainer_e2d8b707',
|
||||||
addFieldToolbox: 'addFieldToolbox_7906cbc9',
|
addFieldToolbox: 'addFieldToolbox_e2d8b707',
|
||||||
addFieldToolboxPlusButton: 'addFieldToolboxPlusButton_7906cbc9',
|
addFieldToolboxPlusButton: 'addFieldToolboxPlusButton_e2d8b707'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default styles;
|
export default styles;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
require('./FormField.module.css');
|
require("./FormField.module.css");
|
||||||
const styles = {
|
const styles = {
|
||||||
formField: 'formField_d444b146',
|
formField: 'formField_3f2aedbe',
|
||||||
label: 'label_d444b146',
|
label: 'label_3f2aedbe',
|
||||||
controlContainerDisplay: 'controlContainerDisplay_d444b146',
|
controlContainerDisplay: 'controlContainerDisplay_3f2aedbe'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default styles;
|
export default styles;
|
||||||
|
@ -10,7 +10,7 @@ import { AnimationClassNames } from '@uifabric/styling';
|
|||||||
import { ControlMode } from '../../../../common/datatypes/ControlMode';
|
import { ControlMode } from '../../../../common/datatypes/ControlMode';
|
||||||
import { IFieldSchema } from '../../../../common/services/datatypes/RenderListData';
|
import { IFieldSchema } from '../../../../common/services/datatypes/RenderListData';
|
||||||
|
|
||||||
import * as stylesImport from 'office-ui-fabric-react/lib/components/TextField/TextField.scss';
|
import * as stylesImport from 'office-ui-fabric-react/lib/components/TextField/TextField.types';
|
||||||
const styles: any = stylesImport;
|
const styles: any = stylesImport;
|
||||||
|
|
||||||
import ardStyles from './FormField.module.scss';
|
import ardStyles from './FormField.module.scss';
|
||||||
@ -50,7 +50,7 @@ const FormField: React.SFC<IFormFieldProps> = (props) => {
|
|||||||
return (
|
return (
|
||||||
<div className={css(formFieldClassName, 'od-ClientFormFields-field')}>
|
<div className={css(formFieldClassName, 'od-ClientFormFields-field')}>
|
||||||
<div className={css('ard-FormField-wrapper', styles.wrapper)}>
|
<div className={css('ard-FormField-wrapper', styles.wrapper)}>
|
||||||
{label && <Label className={css(ardStyles.label, { ['is-required']: required })} htmlFor={this._id}>{label}</Label>}
|
{label && <Label className={css(ardStyles.label, { ['is-required']: required })}>{label}</Label>}
|
||||||
<div className={css('ard-FormField-fieldGroup', ardStyles.controlContainerDisplay, active
|
<div className={css('ard-FormField-fieldGroup', ardStyles.controlContainerDisplay, active
|
||||||
&& styles.fieldGroupIsFocused, errorMessage && styles.invalid)}>
|
&& styles.fieldGroupIsFocused, errorMessage && styles.invalid)}>
|
||||||
{children}
|
{children}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
require('./SPFormField.module.css');
|
require("./SPFormField.module.css");
|
||||||
const styles = {
|
const styles = {
|
||||||
dropDownFormField: 'dropDownFormField_e5e89a2f',
|
dropDownFormField: 'dropDownFormField_2427d638',
|
||||||
dateFormField: 'dateFormField_e5e89a2f',
|
dateFormField: 'dateFormField_2427d638',
|
||||||
unsupportedFieldMessage: 'unsupportedFieldMessage_e5e89a2f',
|
unsupportedFieldMessage: 'unsupportedFieldMessage_2427d638'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default styles;
|
export default styles;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "./node_modules/@microsoft/rush-stack-compiler-2.9/includes/tsconfig-web.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
@ -7,8 +8,11 @@
|
|||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
|
"inlineSources": false,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
"strictNullChecks": false,
|
||||||
|
"noUnusedLocals": false,
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"./node_modules/@types",
|
"./node_modules/@types",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user