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