gd-sprest-bs
Version:
SharePoint JavaScript, TypeScript and Web Components designed using the Bootstrap framework.
58 lines (57 loc) • 2.67 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebParts = exports.ThemeManager = exports.PropertyPane = exports.CustomIcons = exports.CustomIconTypes = void 0;
// The SharePoint library
__exportStar(require("gd-sprest"), exports);
// SharePoint bootstrap components/webparts
var components_1 = require("./components");
__exportStar(require("./components"), exports);
// Custom icons
var customIcons_1 = require("./icons/customIcons");
Object.defineProperty(exports, "CustomIconTypes", { enumerable: true, get: function () { return customIcons_1.CustomIconTypes; } });
Object.defineProperty(exports, "CustomIcons", { enumerable: true, get: function () { return customIcons_1.CustomIcons; } });
// SharePoint Framework property components
var PropertyPane = require("./propertyPane");
exports.PropertyPane = PropertyPane;
// Theme Manager
var themeManager_1 = require("./themeManager");
Object.defineProperty(exports, "ThemeManager", { enumerable: true, get: function () { return themeManager_1.ThemeManager; } });
// WebParts
var WebParts = require("./webparts");
exports.WebParts = WebParts;
// Styling
require("./styles");
// Ensure the global variable exists
var $REST = window && window["$REST"];
if ($REST) {
// Update the $REST global variable
$REST.Components = components_1.Components;
$REST.CustomIconTypes = customIcons_1.CustomIconTypes;
$REST.CustomIcons = customIcons_1.CustomIcons;
$REST.ThemeManager = themeManager_1.ThemeManager;
$REST.WebParts = WebParts;
}
// Ensure the SP library exists
if (window["SP"] && window["SP"].SOD) {
// This can fail if MDS is enabled
try {
// Notify waiting scripts
window["SP"] ? window["SP"].SOD.notifyScriptLoadedAndExecuteWaitingJobs("gd-sprest-bs") : null;
window["SP"] ? window["SP"].SOD.notifyScriptLoadedAndExecuteWaitingJobs("gd-sprest-bs.js") : null;
}
catch (_a) { }
}