Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gd-sprest-react

Package Overview
Dependencies
Maintainers
1
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gd-sprest-react - npm Package Compare versions

Comparing version 2.7.7 to 2.7.8

2

build/components/basePanel.d.ts
/// <reference types="react" />
import * as React from "react";
import { IBasePanelProps, IBasePanelState } from "../definitions";
import { IBasePanelProps, IBasePanelState } from ".";
/**

@@ -5,0 +5,0 @@ * Base Panel

/// <reference types="react" />
import { Types } from "gd-sprest";
import { IBaseFieldProps } from "../definitions";
import { Fields } from "..";

@@ -15,3 +14,3 @@ /**

*/
constructor(props: IBaseFieldProps);
constructor(props: Fields.IBaseFieldProps);
/**

@@ -18,0 +17,0 @@ * Get the field information

export { BasePanel as Panel } from "./basePanel";
export * from "./basePanel.d";
export * from "./field";
export * from "./itemForm";
export * from "./itemForm.d";
export * from "./peoplePicker";
export * from "./peoplePicker.d";
/// <reference types="react" />
import * as React from "react";
import { Types } from "gd-sprest";
import { IItemFormProps, IItemFormState } from "../definitions";
import { Fields } from "..";
import { IItemFormProps, IItemFormState } from ".";
/**

@@ -7,0 +7,0 @@ * Item Form

/// <reference types="react" />
import * as React from "react";
import { Types } from "gd-sprest";
import { IPeoplePickerProps, IPersonaProps } from "office-ui-fabric-react";
import { IPersonaProps } from "office-ui-fabric-react";
import { ISPPeoplePickerProps, ISPPeoplePickerState } from ".";
/**
* Properties
*/
export interface ISPPeoplePickerProps {
allowMultiple?: boolean;
allowGroups?: boolean;
fieldValue?: Array<Types.ComplexTypes.FieldUserValue>;
props?: IPeoplePickerProps;
}
/**
* State
*/
export interface ISPPeoplePickerState {
allowGroups?: boolean;
fieldValue?: number | Array<number>;
personas?: Array<IPersonaProps>;
}
/**
* SharePoint People Picker

@@ -24,0 +7,0 @@ */

/// <reference types="react" />
import * as React from "react";
import { Types } from "gd-sprest";
import { IBaseField, IBaseFieldProps, IBaseFieldState } from "../definitions";
import { IBaseField, IBaseFieldProps, IBaseFieldState } from ".";
/**

@@ -6,0 +6,0 @@ * Base Field

/// <reference types="react" />
import * as React from "react";
import { IFieldAttachment, IFieldAttachmentsProps, IFieldAttachmentsState } from "../definitions";
import { IFieldAttachment, IFieldAttachmentsProps, IFieldAttachmentsState } from ".";
import "../../sass/fieldAttachments.scss";

@@ -5,0 +5,0 @@ /**

@@ -1,3 +0,2 @@

import { IFieldBoolean, IFieldBooleanProps, IFieldBooleanState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldBoolean, IFieldBooleanProps, IFieldBooleanState } from ".";
/**

@@ -4,0 +3,0 @@ * Boolean field

import { IDropdownOption } from "office-ui-fabric-react";
import { IFieldChoice, IFieldChoiceProps, IFieldChoiceState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldChoice, IFieldChoiceProps, IFieldChoiceState } from ".";
/**

@@ -5,0 +4,0 @@ * Choice field

@@ -1,3 +0,2 @@

import { IFieldDateTime, IFieldDateTimeProps, IFieldDateTimeState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldDateTime, IFieldDateTimeProps, IFieldDateTimeState } from ".";
/**

@@ -4,0 +3,0 @@ * Date Time field

import { IDropdownOption } from "office-ui-fabric-react";
import { IFieldLookup, IFieldLookupProps, IFieldLookupState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldLookup, IFieldLookupProps, IFieldLookupState } from ".";
/**

@@ -5,0 +4,0 @@ * Lookup Field

import { IDropdownOption } from "office-ui-fabric-react";
import { IFieldManagedMetadata, IFieldManagedMetadataProps, IFieldManagedMetadataState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldManagedMetadata, IFieldManagedMetadataProps, IFieldManagedMetadataState } from ".";
/**

@@ -5,0 +4,0 @@ * Managed Metadata Field

@@ -1,4 +0,11 @@

import { IFieldNumberProps, IFieldNumberState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldNumberProps, IFieldNumberState } from ".";
/**
* Number Field Types
*/
export declare enum FieldNumberTypes {
Decimal = 0,
Integer = 1,
Percentage = 2,
}
/**
* Number Field

@@ -5,0 +12,0 @@ */

@@ -24,5 +24,13 @@ "use strict";

var office_ui_fabric_react_1 = require("office-ui-fabric-react");
var definitions_1 = require("../definitions");
var _1 = require(".");
/**
* Number Field Types
*/
var FieldNumberTypes;
(function (FieldNumberTypes) {
FieldNumberTypes[FieldNumberTypes["Decimal"] = 0] = "Decimal";
FieldNumberTypes[FieldNumberTypes["Integer"] = 1] = "Integer";
FieldNumberTypes[FieldNumberTypes["Percentage"] = 2] = "Percentage";
})(FieldNumberTypes = exports.FieldNumberTypes || (exports.FieldNumberTypes = {}));
/**
* Number Field

@@ -53,3 +61,3 @@ */

// See if this is a percentage
if (_this.props.numberType == definitions_1.FieldNumberTypes.Percentage || _this.state.fieldInfo.showAsPercentage) {
if (_this.props.numberType == FieldNumberTypes.Percentage || _this.state.fieldInfo.showAsPercentage) {
// Return a slider

@@ -77,3 +85,3 @@ return (React.createElement(office_ui_fabric_react_1.Slider, { className: props.className, disabled: props.disabled, label: props.label, max: 100, min: 0, onChange: _this.onChange, step: 1, value: props.value || 0 }));

}
else if (value && numberType == definitions_1.FieldNumberTypes.Integer) {
else if (value && numberType == FieldNumberTypes.Integer) {
// Convert the value to an integer

@@ -80,0 +88,0 @@ var intValue = parseInt(value);

@@ -1,3 +0,2 @@

import { IFieldTextProps, IFieldTextState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldTextProps, IFieldTextState } from ".";
/**

@@ -4,0 +3,0 @@ * Text Field

@@ -1,3 +0,2 @@

import { IFieldUrlProps, IFieldUrlState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldUrlProps, IFieldUrlState } from ".";
/**

@@ -4,0 +3,0 @@ * URL Field

@@ -1,3 +0,2 @@

import { IFieldUserProps, IFieldUserState } from "../definitions";
import { BaseField } from ".";
import { BaseField, IFieldUserProps, IFieldUserState } from ".";
/**

@@ -4,0 +3,0 @@ * User Field

@@ -24,3 +24,3 @@ "use strict";

var office_ui_fabric_react_1 = require("office-ui-fabric-react");
var __1 = require("..");
var components_1 = require("../components");
var _1 = require(".");

@@ -52,3 +52,3 @@ /**

React.createElement(office_ui_fabric_react_1.Label, __assign({}, lblProps), lblProps.defaultValue || _this.state.fieldInfo.title),
React.createElement(__1.SPPeoplePicker, { allowGroups: _this.state.fieldInfo.allowGroups, allowMultiple: _this.state.fieldInfo.multi, fieldValue: _this.state.value ? _this.state.value.results || [_this.state.value] : null, props: props })));
React.createElement(components_1.SPPeoplePicker, { allowGroups: _this.state.fieldInfo.allowGroups, allowMultiple: _this.state.fieldInfo.multi, fieldValue: _this.state.value ? _this.state.value.results || [_this.state.value] : null, props: props })));
};

@@ -88,3 +88,3 @@ /**

// Update the field value
_this.updateValue(__1.SPPeoplePicker.convertToFieldValue(personas, _this.state.fieldInfo.multi));
_this.updateValue(components_1.SPPeoplePicker.convertToFieldValue(personas, _this.state.fieldInfo.multi));
};

@@ -91,0 +91,0 @@ /**

export * from "./baseField";
export * from "./baseField.d";
export * from "./fieldAttachments";
export * from "./fieldAttachments.d";
export * from "./fieldBoolean";
export * from "./fieldBoolean.d";
export * from "./fieldChoice";
export * from "./fieldChoice.d";
export * from "./fieldDateTime";
export * from "./fieldDateTime.d";
export * from "./fieldLookup";
export * from "./fieldLookup.d";
export * from "./fieldManagedMetadata";
export * from "./fieldManagedMetadata.d";
export * from "./fieldNumber";
export * from "./fieldNumber.d";
export * from "./fieldText";
export * from "./fieldText.d";
export * from "./fieldUrl";
export * from "./fieldUrl.d";
export * from "./fieldUser";
export * from "./fieldUser.d";
import "core-js/es6/map";
import "core-js/es6/promise";
import "core-js/es6/set";
import * as Components from "./components";
import * as Fields from "./fields";
export * from "./common";
export * from "./components";
export * from "./definitions";
export { Fields };
export * from "./webparts";
import * as WebParts from "./webparts";
export { Components, Fields, WebParts };
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });

@@ -9,8 +6,8 @@ require("core-js/es6/map");

require("core-js/es6/set");
var Components = require("./components");
exports.Components = Components;
var Fields = require("./fields");
exports.Fields = Fields;
__export(require("./common"));
__export(require("./components"));
__export(require("./definitions"));
__export(require("./webparts"));
var WebParts = require("./webparts");
exports.WebParts = WebParts;
//# sourceMappingURL=index.js.map
export * from "./wp";
export * from "./wp.d";
export * from "./wpList";
export * from "./wpList.d";
export * from "./wpSearch";
export * from "./wpSearch.d";
export * from "./wpTabs";
export * from "./wpTabs.d";
export * from "./wpCfg";
export * from "./wpCfg.d";
export * from "./wpListCfg";
export * from "./wpFieldCfg";
export * from "./wpFieldCfg.d";
export * from "./wpSearchCfg";

@@ -1,2 +0,2 @@

import { IFabricWebPartProps } from "../definitions";
import { IFabricWebPartProps } from ".";
/**

@@ -3,0 +3,0 @@ * Fabric Web Part

/// <reference types="react" />
import * as React from "react";
import { Types } from "gd-sprest";
import { IWebPartCfgPanel, IWebPartCfgProps, IWebPartCfgState } from "../definitions";
import { Panel } from '..';
import { Panel } from '../components';
import { IWebPartCfgPanel, IWebPartCfgProps, IWebPartCfgState } from ".";
/**

@@ -7,0 +7,0 @@ * Web Part Configuration Panel

@@ -16,3 +16,3 @@ "use strict";

var common_1 = require("../common");
var __1 = require("..");
var components_1 = require("../components");
/**

@@ -197,3 +197,3 @@ * Web Part Configuration Panel

React.createElement(office_ui_fabric_react_1.PrimaryButton, { text: "Edit Configuration", onClick: this.show }),
React.createElement(__1.Panel, { headerText: "Configuration", ref: function (panel) { _this._panel = panel; } },
React.createElement(components_1.Panel, { headerText: "Configuration", ref: function (panel) { _this._panel = panel; } },
React.createElement("div", { ref: function (errorMessage) { _this._errorMessage = errorMessage; } }),

@@ -200,0 +200,0 @@ this.onRenderHeader(),

/// <reference types="react" />
import { Label, TagPicker, ITag } from "office-ui-fabric-react";
import { IWebPartFieldCfgPanel, IWebPartFieldCfgProps, IWebPartFieldCfgState } from "../definitions";
import { WebPartListCfg } from ".";
import { WebPartListCfg, IWebPartFieldCfgPanel, IWebPartFieldCfgProps, IWebPartFieldCfgState } from ".";
/**

@@ -6,0 +5,0 @@ * WebPart Field Configuration Panel

/// <reference types="react" />
import * as React from "react";
import { Types } from "gd-sprest";
import { IWebPartListItem, IWebPartListProps, IWebPartListState } from "../definitions";
import { IWebPartListItem, IWebPartListProps, IWebPartListState } from ".";
/**

@@ -6,0 +6,0 @@ * WebPart List

@@ -5,4 +5,3 @@ /// <reference types="react" />

import { Dropdown, IDropdownOption, PrimaryButton, TextField } from "office-ui-fabric-react";
import { IWebPartListCfgPanel, IWebPartListCfg, IWebPartListCfgProps, IWebPartListCfgState } from "../definitions";
import { WebPartCfgPanel } from ".";
import { WebPartCfgPanel, IWebPartListCfgPanel, IWebPartListCfg, IWebPartListCfgProps, IWebPartListCfgState } from ".";
/**

@@ -9,0 +8,0 @@ * WebPart List Configuration Panel

/// <reference types="react" />
import { IWebPartSearchProps, IWebPartSearchState } from "../definitions";
import { WebPartList } from ".";
import { WebPartList, IWebPartSearchProps, IWebPartSearchState } from ".";
/**

@@ -5,0 +4,0 @@ * WebPart Search

/// <reference types="react" />
import { ITag } from "office-ui-fabric-react";
import { IWebPartSearchCfgProps, IWebPartSearchCfgState } from "../definitions";
import { WebPartFieldCfg } from ".";
import { WebPartFieldCfg, IWebPartSearchCfgProps, IWebPartSearchCfgState } from ".";
/**

@@ -6,0 +5,0 @@ * WebPart Search Configuration Panel

/// <reference types="react" />
import * as React from "react";
import { IWebPartTabsProps, IWebPartTabsState } from "../definitions";
import { IWebPartTabsProps, IWebPartTabsState } from ".";
/**

@@ -5,0 +5,0 @@ * WebPart Tabs

{
"name": "gd-sprest-react",
"version": "2.7.7",
"version": "2.7.8",
"description": "SharePoint react components.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc