New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3.3 to 2.3.4

2

build/fields/fieldAttachments.d.ts

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

*/
render(): any;
render(): JSX.Element;
/**

@@ -21,0 +21,0 @@ * Method to save the attachments to the item

@@ -346,42 +346,43 @@ "use strict";

var _this = this;
var elAttachments = null;
// See if the render method exists
if (this.props.onRender) {
return this.props.onRender(this.state.files);
elAttachments = this.props.onRender(this.state.files);
}
// See if we are loading the attachments
if (this.state.loadingFl) {
// Render a loading dialog
return (React.createElement(office_ui_fabric_react_1.Spinner, { label: "Loading..." }));
}
// Ensure the files exist
if (this.state.files == null) {
// Load the attachments
this.loadAttachments();
// Render a loading dialog
return (React.createElement(office_ui_fabric_react_1.Spinner, { label: "Loading..." }));
}
// See if this is the display mode
var elAttachments = null;
if (this.props.controlMode == gd_sprest_1.SPTypes.ControlMode.Display) {
// Render the attachments in display mode
elAttachments = (React.createElement("div", null,
React.createElement("div", { className: (this.props.className || "") }, this.renderAttachments()),
React.createElement("input", { type: "file", hidden: true, onChange: this.addAttachment, ref: function (file) { _this._file = file; } })));
}
else {
// Render the attachments in edit mode
elAttachments = (React.createElement("div", { className: (this.props.className || "") },
this.renderAttachments(),
React.createElement(office_ui_fabric_react_1.Link, { className: "ms-AttachmentLink", onClick: this.showFileDialog }, "Add an attachment"),
this.state.errorMessage == "" ? null :
React.createElement("span", { className: "ms-fontSize-m ms-fontColor-redDark" }, this.state.errorMessage),
React.createElement("input", { type: "file", hidden: true, onChange: this.addAttachment, ref: function (file) { _this._file = file; } })));
// See if we are loading the attachments
if (this.state.loadingFl) {
// Render a loading dialog
return (React.createElement(office_ui_fabric_react_1.Spinner, { label: "Loading..." }));
}
// Ensure the files exist
if (this.state.files == null) {
// Load the attachments
this.loadAttachments();
// Render a loading dialog
return (React.createElement(office_ui_fabric_react_1.Spinner, { label: "Loading..." }));
}
// See if this is the display mode
if (this.props.controlMode == gd_sprest_1.SPTypes.ControlMode.Display) {
// Render the attachments in display mode
elAttachments = (React.createElement("div", { className: (this.props.className || "") }, this.renderAttachments()));
}
else {
// Render the attachments in edit mode
elAttachments = (React.createElement("div", { className: (this.props.className || "") },
this.renderAttachments(),
React.createElement(office_ui_fabric_react_1.Link, { className: "ms-AttachmentLink", onClick: this.showFileDialog }, "Add an attachment"),
this.state.errorMessage == "" ? null :
React.createElement("span", { className: "ms-fontSize-m ms-fontColor-redDark" }, this.state.errorMessage)));
}
// See if the field render event exists
if (this.props.onAttachmentsRender) {
// Call the event
elAttachments = this.props.onAttachmentsRender(elAttachments) || elAttachments;
}
}
// See if the field render event exists
if (this.props.onAttachmentsRender) {
// Call the event
elAttachments = this.props.onAttachmentsRender(elAttachments) || elAttachments;
}
// Render the attachments
return elAttachments;
return (React.createElement("div", null,
elAttachments,
React.createElement("input", { type: "file", hidden: true, onChange: this.addAttachment, ref: function (file) { _this._file = file; } })));
};

@@ -388,0 +389,0 @@ return FieldAttachments;

{
"name": "gd-sprest-react",
"version": "2.3.3",
"version": "2.3.4",
"description": "SharePoint react components.",

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

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