@microsoft/sp-core-library
Advanced tools
Comparing version 1.4.1 to 1.5.0-plusbeta
@@ -5,2 +5,20 @@ { | ||
{ | ||
"version": "1.5.0", | ||
"tag": "@microsoft/sp-core-library_v1.5.0", | ||
"date": "Fri, 01 Jun 2018 18:13:37 GMT", | ||
"comments": { | ||
"none": [], | ||
"patch": [ | ||
{ | ||
"comment": "Rename \"Event\" to \"SPEvent\" to avoid naming conflicts with the browser DOM API. Although this is a breaking change for a public API, a backwards compatibility shim is included to support legacy bundles." | ||
} | ||
], | ||
"dependency": [ | ||
{ | ||
"comment": "Updating dependency \"@ms/sp-build-internal-web\" from `~0.16.12` to `~0.16.13`" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "1.4.1", | ||
@@ -7,0 +25,0 @@ "tag": "@microsoft/sp-core-library_v1.4.1", |
# Change Log - @microsoft/sp-core-library | ||
This log was last generated on Thu, 15 Feb 2018 01:56:14 GMT and should not be manually modified. | ||
This log was last generated on Fri, 01 Jun 2018 20:13:50 GMT and should not be manually modified. | ||
## 1.5.0 | ||
Fri, 01 Jun 2018 18:13:37 GMT | ||
### Patches | ||
- Rename "Event" to "SPEvent" to avoid naming conflicts with the browser DOM API. Although this is a breaking change for a public API, a backwards compatibility shim is included to support legacy bundles. | ||
### Updates | ||
## 1.4.1 | ||
Thu, 15 Feb 2018 01:56:14 GMT | ||
*Version update only* | ||
### Updates | ||
- Package version bump from 1.4.1-pr.2 to 1.4.1 by version policy | ||
## 1.4.0 | ||
@@ -11,0 +23,0 @@ Mon, 04 Dec 2017 18:15:58 GMT |
@@ -5,3 +5,3 @@ { | ||
"componentType": "Library", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"manifestVersion": 2, | ||
@@ -20,3 +20,3 @@ "loaderConfig": { | ||
"type": "component", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"id": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a" | ||
@@ -23,0 +23,0 @@ } |
@@ -1,2 +0,2 @@ | ||
define("7263c7d0-1d6a-45ec-8d85-d4d1d234171b_1.4.1", ["@microsoft/sp-lodash-subset"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap | ||
define("7263c7d0-1d6a-45ec-8d85-d4d1d234171b_1.5.0", ["@microsoft/sp-lodash-subset"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -70,3 +70,3 @@ /******/ var installedModules = {}; | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1),__webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = function(__WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_15__) { return /******/ (function(modules) { // webpackBootstrap | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1),__webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -133,3 +133,3 @@ /******/ var installedModules = {}; | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 8); | ||
/******/ return __webpack_require__(__webpack_require__.s = 0); | ||
/******/ }) | ||
@@ -139,58 +139,16 @@ /************************************************************************/ | ||
/* 0 */ | ||
/***/ ((function(module, exports, __webpack_require__) { | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = __webpack_require__(2); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var Validate = (function () { | ||
function Validate() { | ||
} | ||
Validate.isTrue = function (value, variableName) { | ||
if (!value) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isFalseValidateError, variableName)); | ||
} | ||
}; | ||
Validate.isNotNullOrUndefined = function (value, variableName) { | ||
if (value === null) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isNullValidateError, variableName)); | ||
} | ||
if (value === undefined) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isUndefinedValidateError, variableName)); | ||
} | ||
}; | ||
Validate.isNonemptyString = function (value, variableName) { | ||
Validate.isNotNullOrUndefined(value, variableName); | ||
if (!value || value && value.length === 0) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isEmptyStringValidateError, variableName)); | ||
} | ||
}; | ||
return Validate; | ||
}()); | ||
exports.default = Validate; | ||
// CONCATENATED MODULE: ./lib/SPCoreLibraryStrings.resx.js | ||
var strings = ( false) ? | ||
require("./resx-strings/en-us.json") : | ||
__webpack_require__(1); | ||
/* harmony default export */ var SPCoreLibraryStrings_resx = (strings['_gIErrcTokcw+/VVwa+ReIA']); | ||
// CONCATENATED MODULE: ./lib/Text.js | ||
/***/ })), | ||
/* 1 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var strings = ( false) | ||
? require('resx-strings/en-us.json') | ||
: __webpack_require__(10); | ||
exports.default = strings['_gIErrcTokcw+/VVwa+ReIA']; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var Text = (function () { | ||
var Text_Text = (function () { | ||
function Text() { | ||
@@ -204,8 +162,8 @@ } | ||
if (s === null) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.isNullValidateError.replace('{0}', 's')); | ||
throw new Error(SPCoreLibraryStrings_resx.isNullValidateError.replace('{0}', 's')); | ||
} | ||
if (s === undefined) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.isUndefinedValidateError.replace('{0}', 's')); | ||
throw new Error(SPCoreLibraryStrings_resx.isUndefinedValidateError.replace('{0}', 's')); | ||
} | ||
return s.replace(Text.FORMAT_REGEX, (function (match) { | ||
return s.replace(Text.FORMAT_REGEX, function (match) { | ||
var matchId = parseInt(match.replace(Text.FORMAT_ARGS_REGEX, ''), 10); | ||
@@ -223,3 +181,3 @@ var matchValue = values[matchId]; | ||
return matchValue; | ||
})); | ||
}); | ||
}; | ||
@@ -230,157 +188,43 @@ Text.FORMAT_REGEX = /\{\d+\}/g; | ||
}()); | ||
exports.default = Text; | ||
/* harmony default export */ var lib_Text = (Text_Text); | ||
// CONCATENATED MODULE: ./lib/Validate.js | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var Text_1 = __webpack_require__(2); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var Guid = (function () { | ||
function Guid(guid) { | ||
this._guid = guid; | ||
var Validate_Validate = (function () { | ||
function Validate() { | ||
} | ||
Guid.newGuid = function (randomNumberGenerator) { | ||
return new Guid(Guid._generateGuid(randomNumberGenerator)); | ||
}; | ||
Guid.parse = function (guidString) { | ||
var guid = Guid.tryParse(guidString); | ||
if (!guid) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.invalidGuidStringError, guidString)); | ||
Validate.isTrue = function (value, variableName) { | ||
if (!value) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isFalseValidateError, variableName)); | ||
} | ||
return guid; | ||
}; | ||
Guid.tryParse = function (guid) { | ||
if (guid) { | ||
guid = Guid._normalize(guid); | ||
if (Guid._guidRegEx.test(guid)) { | ||
return new Guid(guid); | ||
} | ||
Validate.isNotNullOrUndefined = function (value, variableName) { | ||
if (value === null) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isNullValidateError, variableName)); | ||
} | ||
return undefined; | ||
if (value === undefined) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isUndefinedValidateError, variableName)); | ||
} | ||
}; | ||
Guid.isValid = function (guid) { | ||
if (guid) { | ||
guid = Guid._normalize(guid); | ||
if (Guid._guidRegEx.test(guid)) { | ||
return true; | ||
} | ||
Validate.isNonemptyString = function (value, variableName) { | ||
Validate.isNotNullOrUndefined(value, variableName); | ||
if (!value || value && value.length === 0) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isEmptyStringValidateError, variableName)); | ||
} | ||
return false; | ||
}; | ||
Guid._normalize = function (guid) { | ||
Validate_1.default.isNonemptyString(guid, 'guid'); | ||
var result = /^Guid\((.*)\)/i.exec(guid); | ||
if (result) { | ||
guid = result[1]; | ||
Validate.isNotDisposed = function (value, className) { | ||
if (value.isDisposed) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isDisposedValidateError, className)); | ||
} | ||
if (guid.length === 38) { | ||
guid = guid.substr(1, 36); | ||
} | ||
return guid.toLowerCase(); | ||
}; | ||
Guid._generateGuid = function (randomNumberGenerator) { | ||
return 'AAAAAAAA-AAAA-4AAA-BAAA-AAAAAAAAAAAA'.replace(/[AB]/g, | ||
(function (character) { | ||
var randomNumber = randomNumberGenerator ? randomNumberGenerator.generate() : Math.random(); | ||
var num = randomNumber * 16 | 0; | ||
var masked = character === 'A' ? num : (num & 0x3 | 0x8); | ||
return masked.toString(16); | ||
})); | ||
}; | ||
Guid.prototype.equals = function (guid) { | ||
Validate_1.default.isNotNullOrUndefined(guid, 'guid'); | ||
return guid && this._guid.toString() === guid.toString(); | ||
}; | ||
Guid.prototype.toString = function () { | ||
return this._guid; | ||
}; | ||
Guid.empty = new Guid('00000000-0000-0000-0000-000000000000'); | ||
Guid._guidRegEx = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; | ||
return Guid; | ||
return Validate; | ||
}()); | ||
exports.default = Guid; | ||
/* harmony default export */ var lib_Validate = (Validate_Validate); | ||
// CONCATENATED MODULE: ./lib/Version.js | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var ServiceKey = (function () { | ||
function ServiceKey(id, name, defaultCreator) { | ||
this.id = id; | ||
this.name = name; | ||
this.defaultCreator = defaultCreator; | ||
} | ||
ServiceKey.create = function (name, serviceClass) { | ||
Validate_1.default.isNotNullOrUndefined(serviceClass, 'serviceClass'); | ||
return ServiceKey.createCustom(name, (function (serviceScope) { | ||
return new serviceClass(serviceScope); | ||
})); | ||
}; | ||
ServiceKey.createCustom = function (name, defaultCreator) { | ||
Validate_1.default.isNonemptyString(name, 'name'); | ||
Validate_1.default.isNotNullOrUndefined(defaultCreator, 'defaultCreator'); | ||
ServiceKey._lastId++; | ||
var id = ServiceKey._lastId.toString(); | ||
return new ServiceKey(id, name, defaultCreator); | ||
}; | ||
ServiceKey._lastId = 0; | ||
return ServiceKey; | ||
}()); | ||
exports.default = ServiceKey; | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DefaultLogHandler_1 = __webpack_require__(21); | ||
var Log = (function () { | ||
function Log() { | ||
} | ||
Log._initialize = function (logHandler) { | ||
Log._logHandler = logHandler; | ||
}; | ||
Log.verbose = function (source, message, scope) { | ||
Log._logHandler.verbose(source, message, scope); | ||
}; | ||
Log.info = function (source, message, scope) { | ||
Log._logHandler.info(source, message, scope); | ||
}; | ||
Log.warn = function (source, message, scope) { | ||
Log._logHandler.warn(source, message, scope); | ||
}; | ||
Log.error = function (source, error, scope) { | ||
Log._logHandler.error(source, error, scope); | ||
}; | ||
Log._logHandler = new DefaultLogHandler_1.default(); | ||
return Log; | ||
}()); | ||
exports.default = Log; | ||
/***/ }), | ||
/* 6 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = __webpack_require__(2); | ||
var Validate_1 = __webpack_require__(0); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var Version = (function () { | ||
var Version_Version = (function () { | ||
function Version(major, minor, patch, revision) { | ||
@@ -400,3 +244,3 @@ this._major = major; | ||
} | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.invalidVersionStringError, versionString)); | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.invalidVersionStringError, versionString)); | ||
}; | ||
@@ -414,4 +258,4 @@ Version.tryParse = function (versionString) { | ||
Version.compare = function (v1, v2) { | ||
Validate_1.default.isNotNullOrUndefined(v1, 'v1'); | ||
Validate_1.default.isNotNullOrUndefined(v2, 'v2'); | ||
lib_Validate.isNotNullOrUndefined(v1, 'v1'); | ||
lib_Validate.isNotNullOrUndefined(v2, 'v2'); | ||
if (v1.major !== v2.major) { | ||
@@ -469,3 +313,3 @@ return v1.major > v2.major ? 1 : -1; | ||
Version.prototype.satisfies = function (compareWith) { | ||
Validate_1.default.isNotNullOrUndefined(compareWith, 'compareWith'); | ||
lib_Validate.isNotNullOrUndefined(compareWith, 'compareWith'); | ||
return this.major === compareWith.major && !this.lessThan(compareWith); | ||
@@ -485,184 +329,7 @@ }; | ||
}()); | ||
exports.default = Version; | ||
/* harmony default export */ var lib_Version = (Version_Version); | ||
// CONCATENATED MODULE: ./lib/BrowserDetection.js | ||
/***/ }), | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var Text_1 = __webpack_require__(2); | ||
var Log_1 = __webpack_require__(5); | ||
var EventManager = (function () { | ||
function EventManager() { | ||
this._listeners = new Map(); | ||
this._raisedEvents = new Map(); | ||
} | ||
Object.defineProperty(EventManager, "instance", { | ||
get: function () { | ||
if (!this._instance) { | ||
this._instance = new EventManager(); | ||
} | ||
return this._instance; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
EventManager.prototype.raiseEvent = function (eventName, eventArgs) { | ||
Validate_1.default.isNonemptyString(eventName, 'eventName'); | ||
Validate_1.default.isNotNullOrUndefined(eventArgs, 'eventArgs'); | ||
return this._raiseEventInternal(eventName, eventArgs); | ||
}; | ||
EventManager.prototype.raiseStickyEvent = function (eventName, eventArgs) { | ||
Validate_1.default.isNonemptyString(eventName, 'eventName'); | ||
Validate_1.default.isNotNullOrUndefined(eventArgs, 'eventArgs'); | ||
this._raisedEvents.set(eventName, eventArgs); | ||
return this._raiseEventInternal(eventName, eventArgs); | ||
}; | ||
EventManager.prototype.registerEvent = function (eventName, observer, eventHandler) { | ||
Validate_1.default.isNonemptyString(eventName, 'eventName'); | ||
Validate_1.default.isNotNullOrUndefined(observer, 'component'); | ||
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
if (!this._listeners.has(eventName)) { | ||
this._listeners.set(eventName, []); | ||
} | ||
this._listeners.get(eventName).push({ observer: observer, eventHandler: eventHandler }); | ||
if (this._raisedEvents.has(eventName)) { | ||
eventHandler.apply(observer, this._raisedEvents.get(eventName)); | ||
} | ||
}; | ||
EventManager.prototype.unregisterEvent = function (eventName, observer, eventHandler) { | ||
Validate_1.default.isNonemptyString(eventName, 'eventName'); | ||
Validate_1.default.isNotNullOrUndefined(observer, 'component'); | ||
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
if (!this._listeners.has(eventName)) { | ||
return; | ||
} | ||
var listeners = this._listeners.get(eventName); | ||
var filteredListeners = listeners.filter((function (el) { return el.observer !== observer || el.eventHandler !== eventHandler; })); | ||
if (filteredListeners.length === listeners.length) { | ||
var errorMessage = Text_1.default.format( | ||
'Failed to remove event handler for component "{0}". Event handler was not registered.', observer.componentId); | ||
Log_1.default.error(EventManager._logSource, new Error(errorMessage)); | ||
} | ||
this._listeners.set(eventName, filteredListeners); | ||
}; | ||
EventManager.prototype._raiseEventInternal = function (eventName, eventArgs) { | ||
var _this = this; | ||
if (!this._listeners.has(eventName)) { | ||
return; | ||
} | ||
this._listeners.get(eventName).forEach((function (listener) { | ||
if (listener.observer.isDisposed) { | ||
_this.unregisterEvent(eventName, listener.observer, listener.eventHandler); | ||
} | ||
else { | ||
try { | ||
listener.eventHandler.call(listener.observer, eventArgs); | ||
} | ||
catch (e) { | ||
var errorMessage = Text_1.default.format( | ||
'Failed to execute event handler for component "{0}"', listener.observer.componentId); | ||
Log_1.default.error(EventManager._logSource, new Error(errorMessage)); | ||
} | ||
} | ||
})); | ||
}; | ||
EventManager._logSource = 'EventManager'; | ||
return EventManager; | ||
}()); | ||
exports.default = EventManager; | ||
/***/ }), | ||
/* 8 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var BrowserDetection_1 = __webpack_require__(9); | ||
exports._BrowserDetection = BrowserDetection_1.default; | ||
exports._Browser = BrowserDetection_1.Browser; | ||
exports._OS = BrowserDetection_1.OS; | ||
var DisplayMode_1 = __webpack_require__(11); | ||
exports.DisplayMode = DisplayMode_1.default; | ||
var Guid_1 = __webpack_require__(3); | ||
exports.Guid = Guid_1.default; | ||
var IBrowserCompatibility_1 = __webpack_require__(12); | ||
exports.BrowserSupportLevel = IBrowserCompatibility_1.BrowserSupportLevel; | ||
var JsonUtilities_1 = __webpack_require__(13); | ||
exports.JsonUtilities = JsonUtilities_1.default; | ||
var Text_1 = __webpack_require__(2); | ||
exports.Text = Text_1.default; | ||
var Version_1 = __webpack_require__(6); | ||
exports.Version = Version_1.default; | ||
var Validate_1 = __webpack_require__(0); | ||
exports.Validate = Validate_1.default; | ||
var UrlUtilities_1 = __webpack_require__(14); | ||
exports.UrlUtilities = UrlUtilities_1.default; | ||
var UrlQueryParameterCollection_1 = __webpack_require__(16); | ||
exports.UrlQueryParameterCollection = UrlQueryParameterCollection_1.default; | ||
var TimeProvider_1 = __webpack_require__(17); | ||
exports.TimeProvider = TimeProvider_1.default; | ||
var RandomNumberGenerator_1 = __webpack_require__(18); | ||
exports.RandomNumberGenerator = RandomNumberGenerator_1.default; | ||
var ServiceKey_1 = __webpack_require__(4); | ||
exports.ServiceKey = ServiceKey_1.default; | ||
var ServiceScope_1 = __webpack_require__(19); | ||
exports.ServiceScope = ServiceScope_1.default; | ||
var Session_1 = __webpack_require__(20); | ||
exports.Session = Session_1.default; | ||
var Environment_1 = __webpack_require__(22); | ||
exports.Environment = Environment_1.default; | ||
exports.EnvironmentType = Environment_1.EnvironmentType; | ||
var SPFlight_1 = __webpack_require__(23); | ||
exports._SPFlight = SPFlight_1.default; | ||
var SPKillSwitch_1 = __webpack_require__(24); | ||
exports._SPKillSwitch = SPKillSwitch_1.default; | ||
var SPError_1 = __webpack_require__(25); | ||
exports.SPError = SPError_1.default; | ||
var Log_1 = __webpack_require__(5); | ||
exports.Log = Log_1.default; | ||
var Event_1 = __webpack_require__(26); | ||
exports.Event = Event_1.default; | ||
var EventArgs_1 = __webpack_require__(27); | ||
exports.EventArgs = EventArgs_1.default; | ||
var EventManager_1 = __webpack_require__(7); | ||
exports._EventManager = EventManager_1.default; | ||
var DeferredClass_1 = __webpack_require__(28); | ||
exports._DeferredClass = DeferredClass_1.default; | ||
/***/ }), | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Version_1 = __webpack_require__(6); | ||
var Browser; | ||
(function (Browser) { | ||
Browser[Browser["Other"] = 0] = "Other"; | ||
Browser[Browser["Chrome"] = 1] = "Chrome"; | ||
Browser[Browser["Edge"] = 2] = "Edge"; | ||
Browser[Browser["Firefox"] = 3] = "Firefox"; | ||
Browser[Browser["IE"] = 4] = "IE"; | ||
Browser[Browser["Safari"] = 5] = "Safari"; | ||
})(Browser = exports.Browser || (exports.Browser = {})); | ||
var OS; | ||
(function (OS) { | ||
OS[OS["Other"] = 0] = "Other"; | ||
OS[OS["Android"] = 1] = "Android"; | ||
OS[OS["IOS"] = 2] = "IOS"; | ||
OS[OS["Linux"] = 3] = "Linux"; | ||
OS[OS["Mac"] = 4] = "Mac"; | ||
OS[OS["Windows"] = 5] = "Windows"; | ||
OS[OS["WindowsPhone"] = 6] = "WindowsPhone"; | ||
})(OS = exports.OS || (exports.OS = {})); | ||
var BrowserDetection = (function () { | ||
var BrowserDetection_BrowserDetection = (function () { | ||
function BrowserDetection() { | ||
@@ -680,5 +347,5 @@ } | ||
var browserInfo = { | ||
browser: Browser.Other, | ||
browser: 0 , | ||
browserVersion: undefined, | ||
os: OS.Other, | ||
os: 0 , | ||
osVersion: undefined, | ||
@@ -692,22 +359,22 @@ userAgent: userAgent | ||
BrowserDetection.fillBrowser = function (browserInfo, userAgent) { | ||
var browser = Browser.Other; | ||
var browser = 0 ; | ||
var browserVersion = undefined; | ||
var match; | ||
if (match = /msie (\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.IE; | ||
browser = 4 ; | ||
} | ||
else if (match = /trident.*rv:(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.IE; | ||
browser = 4 ; | ||
} | ||
else if (match = /edge\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Edge; | ||
browser = 2 ; | ||
} | ||
else if (match = /(?:firefox|fxios)\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Firefox; | ||
browser = 3 ; | ||
} | ||
else if (match = /(?:chrome|crios)\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Chrome; | ||
browser = 1 ; | ||
} | ||
else if (match = /safari\/(\d+)/.exec(userAgent)) { | ||
browser = Browser.Safari; | ||
browser = 5 ; | ||
match = /version\/(\d+)([\d.]*)/.exec(userAgent); | ||
@@ -725,3 +392,3 @@ } | ||
} | ||
browserVersion = Version_1.default.parse(browserMajor + "." + browserMinor); | ||
browserVersion = lib_Version.parse(browserMajor + "." + browserMinor); | ||
} | ||
@@ -733,3 +400,3 @@ browserInfo.browser = browser; | ||
BrowserDetection.fillOS = function (browserInfo, userAgent) { | ||
var os = OS.Other; | ||
var os = 0 ; | ||
var osVersion = undefined; | ||
@@ -742,9 +409,9 @@ var osVersionMatch = /[\s\(](os|os x|windows phone|windows nt|android) ([\d._]+)/.exec(userAgent); | ||
if (device === 'windows phone' || device === 'wpdesktop') { | ||
os = OS.WindowsPhone; | ||
os = 6 ; | ||
} | ||
if (device === 'android') { | ||
os = OS.Android; | ||
os = 1 ; | ||
} | ||
if (device === 'ipad' || device === 'ipod' || device === 'iphone') { | ||
os = OS.IOS; | ||
os = 2 ; | ||
} | ||
@@ -754,17 +421,17 @@ } | ||
if (userAgent.indexOf('macintosh') !== -1) { | ||
os = OS.Mac; | ||
os = 4 ; | ||
} | ||
if (userAgent.indexOf('windows nt') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
} | ||
if (/(windows 8\.1|windows nt 6\.3)/.test(userAgent)) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '8.1'; | ||
} | ||
if (userAgent.indexOf('windows nt 10') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '10'; | ||
} | ||
if (userAgent.indexOf('windows nt 6.1') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '7'; | ||
@@ -779,18 +446,5 @@ } | ||
}()); | ||
exports.default = BrowserDetection; | ||
/* harmony default export */ var lib_BrowserDetection = (BrowserDetection_BrowserDetection); | ||
/***/ }), | ||
/* 10 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_10__; | ||
/***/ }), | ||
/* 11 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/DisplayMode.js | ||
var DisplayMode; | ||
@@ -801,28 +455,74 @@ (function (DisplayMode) { | ||
})(DisplayMode || (DisplayMode = {})); | ||
exports.default = DisplayMode; | ||
/* harmony default export */ var lib_DisplayMode = (DisplayMode); | ||
// CONCATENATED MODULE: ./lib/Guid.js | ||
/***/ }), | ||
/* 12 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var BrowserSupportLevel; | ||
(function (BrowserSupportLevel) { | ||
BrowserSupportLevel[BrowserSupportLevel["None"] = 0] = "None"; | ||
BrowserSupportLevel[BrowserSupportLevel["FullFunctionality"] = 1] = "FullFunctionality"; | ||
BrowserSupportLevel[BrowserSupportLevel["Readable"] = 2] = "Readable"; | ||
BrowserSupportLevel[BrowserSupportLevel["Blocked"] = 3] = "Blocked"; | ||
})(BrowserSupportLevel = exports.BrowserSupportLevel || (exports.BrowserSupportLevel = {})); | ||
var Guid_Guid = (function () { | ||
function Guid(guid) { | ||
this._guid = guid; | ||
} | ||
Guid.newGuid = function (randomNumberGenerator) { | ||
return new Guid(Guid._generateGuid(randomNumberGenerator)); | ||
}; | ||
Guid.parse = function (guidString) { | ||
var guid = Guid.tryParse(guidString); | ||
if (!guid) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.invalidGuidStringError, guidString)); | ||
} | ||
return guid; | ||
}; | ||
Guid.tryParse = function (guid) { | ||
if (guid) { | ||
guid = Guid._normalize(guid); | ||
if (Guid._guidRegEx.test(guid)) { | ||
return new Guid(guid); | ||
} | ||
} | ||
return undefined; | ||
}; | ||
Guid.isValid = function (guid) { | ||
if (guid) { | ||
guid = Guid._normalize(guid); | ||
if (Guid._guidRegEx.test(guid)) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
}; | ||
Guid._normalize = function (guid) { | ||
lib_Validate.isNonemptyString(guid, 'guid'); | ||
var result = /^Guid\((.*)\)/i.exec(guid); | ||
if (result) { | ||
guid = result[1]; | ||
} | ||
if (guid.length === 38) { | ||
guid = guid.substr(1, 36); | ||
} | ||
return guid.toLowerCase(); | ||
}; | ||
Guid._generateGuid = function (randomNumberGenerator) { | ||
return 'AAAAAAAA-AAAA-4AAA-BAAA-AAAAAAAAAAAA'.replace(/[AB]/g, | ||
function (character) { | ||
var randomNumber = randomNumberGenerator ? randomNumberGenerator.generate() : Math.random(); | ||
var num = randomNumber * 16 | 0; | ||
var masked = character === 'A' ? num : (num & 0x3 | 0x8); | ||
return masked.toString(16); | ||
}); | ||
}; | ||
Guid.prototype.equals = function (guid) { | ||
lib_Validate.isNotNullOrUndefined(guid, 'guid'); | ||
return guid && this._guid.toString() === guid.toString(); | ||
}; | ||
Guid.prototype.toString = function () { | ||
return this._guid; | ||
}; | ||
Guid.empty = new Guid('00000000-0000-0000-0000-000000000000'); | ||
Guid._guidRegEx = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; | ||
return Guid; | ||
}()); | ||
/* harmony default export */ var lib_Guid = (Guid_Guid); | ||
/***/ }), | ||
/* 13 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/JsonUtilities.js | ||
var JsonUtilities = (function () { | ||
@@ -836,6 +536,6 @@ function JsonUtilities() { | ||
JsonUtilities._escapableChars.lastIndex = 0; | ||
return JsonUtilities._escapableChars.test(json) ? json.replace(this._escapableChars, (function (a) { | ||
return JsonUtilities._escapableChars.test(json) ? json.replace(this._escapableChars, function (a) { | ||
var c = JsonUtilities._substibuteChars[a]; | ||
return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); | ||
})) : json; | ||
}) : json; | ||
}; | ||
@@ -855,21 +555,19 @@ JsonUtilities._escapableChars = /[\\\"\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; | ||
}()); | ||
exports.default = JsonUtilities; | ||
/* harmony default export */ var lib_JsonUtilities = (JsonUtilities); | ||
// EXTERNAL MODULE: external "@microsoft/sp-lodash-subset" | ||
var sp_lodash_subset_ = __webpack_require__(2); | ||
var sp_lodash_subset__default = /*#__PURE__*/__webpack_require__.n(sp_lodash_subset_); | ||
/***/ }), | ||
/* 14 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// CONCATENATED MODULE: ./lib/url/UrlUtilities.js | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var lodash = __webpack_require__(15); | ||
var Validate_1 = __webpack_require__(0); | ||
var URL_PROTOCOL_REGEX = /^\w+\:\/\//; | ||
var UrlUtilities = (function () { | ||
var BASE64_IMAGE_REGEX = /^data:(\w+\/\w+)?(;charset=[\w-]+)?(;base64)?,.*/i; | ||
var UrlUtilities_UrlUtilities = (function () { | ||
function UrlUtilities() { | ||
} | ||
UrlUtilities.resolve = function (url, baseUrl) { | ||
Validate_1.default.isNonemptyString(url, 'url'); | ||
Validate_1.default.isNonemptyString(baseUrl, 'baseUrl'); | ||
lib_Validate.isNonemptyString(url, 'url'); | ||
lib_Validate.isNonemptyString(baseUrl, 'baseUrl'); | ||
var isRelativeUrl = !url.match(URL_PROTOCOL_REGEX); | ||
@@ -884,9 +582,9 @@ if (isRelativeUrl) { | ||
UrlUtilities.removeEndSlash = function (url) { | ||
return lodash.trimEnd(url, '/'); | ||
return sp_lodash_subset_["trimEnd"](url, '/'); | ||
}; | ||
UrlUtilities.removeLeadingSlash = function (url) { | ||
return lodash.trimStart(url, '/'); | ||
return sp_lodash_subset_["trimStart"](url, '/'); | ||
}; | ||
UrlUtilities.convertToODataStringLiteral = function (value) { | ||
Validate_1.default.isNotNullOrUndefined(value, 'value'); | ||
lib_Validate.isNotNullOrUndefined(value, 'value'); | ||
value = value.replace(/'/g, "''"); | ||
@@ -896,20 +594,11 @@ value = "'" + value + "'"; | ||
}; | ||
UrlUtilities.isDataUrl = function (url) { | ||
lib_Validate.isNotNullOrUndefined(url, 'url'); | ||
return !!url.match(BASE64_IMAGE_REGEX); | ||
}; | ||
return UrlUtilities; | ||
}()); | ||
exports.default = UrlUtilities; | ||
/* harmony default export */ var url_UrlUtilities = (UrlUtilities_UrlUtilities); | ||
/***/ }), | ||
/* 15 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_15__; | ||
/***/ }), | ||
/* 16 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/url/UrlQueryParameterCollection.js | ||
var UrlQueryParameterCollection = (function () { | ||
@@ -992,14 +681,33 @@ function UrlQueryParameterCollection(url) { | ||
}()); | ||
exports.default = UrlQueryParameterCollection; | ||
/* harmony default export */ var url_UrlQueryParameterCollection = (UrlQueryParameterCollection); | ||
// CONCATENATED MODULE: ./lib/serviceScope/ServiceKey.js | ||
/***/ }), | ||
/* 17 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var ServiceKey_ServiceKey = (function () { | ||
function ServiceKey(id, name, defaultCreator) { | ||
this.id = id; | ||
this.name = name; | ||
this.defaultCreator = defaultCreator; | ||
} | ||
ServiceKey.create = function (name, serviceClass) { | ||
lib_Validate.isNotNullOrUndefined(serviceClass, 'serviceClass'); | ||
return ServiceKey.createCustom(name, function (serviceScope) { | ||
return new serviceClass(serviceScope); | ||
}); | ||
}; | ||
ServiceKey.createCustom = function (name, defaultCreator) { | ||
lib_Validate.isNonemptyString(name, 'name'); | ||
lib_Validate.isNotNullOrUndefined(defaultCreator, 'defaultCreator'); | ||
ServiceKey._lastId++; | ||
var id = ServiceKey._lastId.toString(); | ||
return new ServiceKey(id, name, defaultCreator); | ||
}; | ||
ServiceKey._lastId = 0; | ||
return ServiceKey; | ||
}()); | ||
/* harmony default export */ var serviceScope_ServiceKey = (ServiceKey_ServiceKey); | ||
"use strict"; | ||
// CONCATENATED MODULE: ./lib/serviceScope/provider/TimeProvider.js | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ServiceKey_1 = __webpack_require__(4); | ||
var TimeProvider = (function () { | ||
var TimeProvider_TimeProvider = (function () { | ||
function TimeProvider(serviceScope) { | ||
@@ -1013,17 +721,10 @@ } | ||
}; | ||
TimeProvider.serviceKey = ServiceKey_1.default.create('sp-core-library:TimeProvider', TimeProvider); | ||
TimeProvider.serviceKey = serviceScope_ServiceKey.create('sp-core-library:TimeProvider', TimeProvider); | ||
return TimeProvider; | ||
}()); | ||
exports.default = TimeProvider; | ||
/* harmony default export */ var provider_TimeProvider = (TimeProvider_TimeProvider); | ||
// CONCATENATED MODULE: ./lib/serviceScope/provider/RandomNumberGenerator.js | ||
/***/ }), | ||
/* 18 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ServiceKey_1 = __webpack_require__(4); | ||
var RandomNumberGenerator = (function () { | ||
var RandomNumberGenerator_RandomNumberGenerator = (function () { | ||
function RandomNumberGenerator(serviceScope) { | ||
@@ -1034,18 +735,11 @@ } | ||
}; | ||
RandomNumberGenerator.serviceKey = ServiceKey_1.default.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator); | ||
RandomNumberGenerator.serviceKey = serviceScope_ServiceKey.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator); | ||
return RandomNumberGenerator; | ||
}()); | ||
exports.default = RandomNumberGenerator; | ||
/* harmony default export */ var provider_RandomNumberGenerator = (RandomNumberGenerator_RandomNumberGenerator); | ||
// CONCATENATED MODULE: ./lib/serviceScope/ServiceScope.js | ||
/***/ }), | ||
/* 19 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = __webpack_require__(2); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var ServiceScope = (function () { | ||
var ServiceScope_ServiceScope = (function () { | ||
function ServiceScope(parent) { | ||
@@ -1070,6 +764,6 @@ this._parent = parent; | ||
if (!this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeConsumingBeforeFinished); | ||
throw new Error(SPCoreLibraryStrings_resx.serviceScopeConsumingBeforeFinished); | ||
} | ||
if (this._autocreating) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeConsumingDuringAutoCreation); | ||
throw new Error(SPCoreLibraryStrings_resx.serviceScopeConsumingDuringAutoCreation); | ||
} | ||
@@ -1087,3 +781,3 @@ var registration = this._registrations[serviceKey.id]; | ||
autocreatedService = serviceKey.defaultCreator(this); | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: autocreatedService }; | ||
this._registerService(serviceKey, autocreatedService); | ||
} | ||
@@ -1101,3 +795,3 @@ finally { | ||
if (this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeAlreadyFinishedError); | ||
throw new Error(SPCoreLibraryStrings_resx.serviceScopeAlreadyFinishedError); | ||
} | ||
@@ -1120,8 +814,8 @@ this._finished = true; | ||
if (this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeProvideServiceAfterFinishedError); | ||
throw new Error(SPCoreLibraryStrings_resx.serviceScopeProvideServiceAfterFinishedError); | ||
} | ||
if (this._registrations[serviceKey.id]) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.serviceScopeProvideServiceThatAlreadyExists, serviceKey.name)); | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.serviceScopeProvideServiceThatAlreadyExists, serviceKey.name)); | ||
} | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: service }; | ||
this._registerService(serviceKey, service); | ||
return service; | ||
@@ -1132,2 +826,5 @@ }; | ||
}; | ||
ServiceScope.prototype._registerService = function (serviceKey, service) { | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: service }; | ||
}; | ||
ServiceScope.prototype._processPendingCallbacks = function () { | ||
@@ -1143,25 +840,73 @@ var pendingCallbacks = this._pendingCallbacks; | ||
}()); | ||
exports.default = ServiceScope; | ||
/* harmony default export */ var serviceScope_ServiceScope = (ServiceScope_ServiceScope); | ||
// CONCATENATED MODULE: ./lib/log/DefaultLogHandler.js | ||
/***/ }), | ||
/* 20 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var DefaultLogHandler_DefaultLogHandler = (function () { | ||
function DefaultLogHandler() { | ||
} | ||
DefaultLogHandler.prototype.verbose = function (source, message, scope) { | ||
if (true) { | ||
console.log(lib_Text.format(SPCoreLibraryStrings_resx.logVerboseLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.info = function (source, message, scope) { | ||
if (true) { | ||
console.info(lib_Text.format(SPCoreLibraryStrings_resx.logInfoLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.warn = function (source, message, scope) { | ||
if (true) { | ||
console.warn(lib_Text.format(SPCoreLibraryStrings_resx.logWarningLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.error = function (source, error, scope) { | ||
if (true) { | ||
console.error(lib_Text.format(SPCoreLibraryStrings_resx.logErrorLevelMessage, source, error.message)); | ||
} | ||
}; | ||
return DefaultLogHandler; | ||
}()); | ||
/* harmony default export */ var log_DefaultLogHandler = (DefaultLogHandler_DefaultLogHandler); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Guid_1 = __webpack_require__(3); | ||
var Validate_1 = __webpack_require__(0); | ||
var Log_1 = __webpack_require__(5); | ||
var Session = (function () { | ||
// CONCATENATED MODULE: ./lib/log/Log.js | ||
var Log_Log = (function () { | ||
function Log() { | ||
} | ||
Log._initialize = function (logHandler) { | ||
Log._logHandler = logHandler; | ||
}; | ||
Log.verbose = function (source, message, scope) { | ||
Log._logHandler.verbose(source, message, scope); | ||
}; | ||
Log.info = function (source, message, scope) { | ||
Log._logHandler.info(source, message, scope); | ||
}; | ||
Log.warn = function (source, message, scope) { | ||
Log._logHandler.warn(source, message, scope); | ||
}; | ||
Log.error = function (source, error, scope) { | ||
Log._logHandler.error(source, error, scope); | ||
}; | ||
Log._logHandler = new log_DefaultLogHandler(); | ||
return Log; | ||
}()); | ||
/* harmony default export */ var log_Log = (Log_Log); | ||
// CONCATENATED MODULE: ./lib/Session.js | ||
var Session_Session = (function () { | ||
function Session() { | ||
} | ||
Session._initialize = function (data) { | ||
Validate_1.default.isNotNullOrUndefined(data, 'data'); | ||
Session._applicationId = Guid_1.default.tryParse(data.applicationId) || Guid_1.default.empty; | ||
var pageIdGuid = Guid_1.default.tryParse(data.pageId); | ||
lib_Validate.isNotNullOrUndefined(data, 'data'); | ||
Session._applicationId = lib_Guid.tryParse(data.applicationId) || lib_Guid.empty; | ||
var pageIdGuid = lib_Guid.tryParse(data.pageId); | ||
if (!pageIdGuid) { | ||
Log_1.default.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined); | ||
pageIdGuid = Guid_1.default.newGuid(); | ||
log_Log.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined); | ||
pageIdGuid = lib_Guid.newGuid(); | ||
} | ||
@@ -1171,3 +916,3 @@ Session._pageId = pageIdGuid; | ||
Session._changePage = function () { | ||
Session._pageId = Guid_1.default.newGuid(); | ||
Session._pageId = lib_Guid.newGuid(); | ||
}; | ||
@@ -1190,51 +935,7 @@ Object.defineProperty(Session, "applicationId", { | ||
}()); | ||
exports.default = Session; | ||
/* harmony default export */ var lib_Session = (Session_Session); | ||
// CONCATENATED MODULE: ./lib/Environment.js | ||
/***/ }), | ||
/* 21 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = __webpack_require__(2); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var DefaultLogHandler = (function () { | ||
function DefaultLogHandler() { | ||
} | ||
DefaultLogHandler.prototype.verbose = function (source, message, scope) { | ||
if (true) { | ||
console.log(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logVerboseLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.info = function (source, message, scope) { | ||
if (true) { | ||
console.info(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logInfoLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.warn = function (source, message, scope) { | ||
if (true) { | ||
console.warn(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logWarningLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.error = function (source, error, scope) { | ||
if (true) { | ||
console.error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logErrorLevelMessage, source, error.message)); | ||
} | ||
}; | ||
return DefaultLogHandler; | ||
}()); | ||
exports.default = DefaultLogHandler; | ||
/***/ }), | ||
/* 22 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var EnvironmentType; | ||
@@ -1246,12 +947,12 @@ (function (EnvironmentType) { | ||
EnvironmentType[EnvironmentType["ClassicSharePoint"] = 3] = "ClassicSharePoint"; | ||
})(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {})); | ||
var Environment = (function () { | ||
})(EnvironmentType = EnvironmentType || (EnvironmentType = {})); | ||
var Environment_Environment = (function () { | ||
function Environment() { | ||
} | ||
Environment._initialize = function (data) { | ||
Validate_1.default.isNotNullOrUndefined(data, 'data'); | ||
lib_Validate.isNotNullOrUndefined(data, 'data'); | ||
Environment._type = data.type; | ||
Validate_1.default.isNotNullOrUndefined(Environment._type, 'environmentType'); | ||
lib_Validate.isNotNullOrUndefined(Environment._type, 'environmentType'); | ||
if (!EnvironmentType.hasOwnProperty(data.type.toString())) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.invalidEnvironmentTypeError); | ||
throw new Error(SPCoreLibraryStrings_resx.invalidEnvironmentTypeError); | ||
} | ||
@@ -1268,13 +969,7 @@ }; | ||
}()); | ||
exports.default = Environment; | ||
/* harmony default export */ var lib_Environment = (Environment_Environment); | ||
/***/ }), | ||
/* 23 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/SPFlight.js | ||
var DISABLED_FLIGHT_PREFIX = '!'; | ||
var SPFX_DEBUG_FLIGHT_ID = 205; | ||
var SPFlight = (function () { | ||
@@ -1289,2 +984,9 @@ function SPFlight() { | ||
}; | ||
Object.defineProperty(SPFlight, "isDebugFlightEnabled", { | ||
get: function () { | ||
return SPFlight.isEnabled(SPFX_DEBUG_FLIGHT_ID); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
SPFlight.setDebugFlights = function (debugFlights) { | ||
@@ -1298,9 +1000,9 @@ if (!this._isInitialized) { | ||
this._forceEnabledFlights = debugFlightStrings | ||
.filter((function (value) { return value[0] !== DISABLED_FLIGHT_PREFIX; })) | ||
.map((function (value) { return parseInt(value, 10); })) | ||
.filter((function (value) { return !isNaN(value); })); | ||
.filter(function (value) { return value[0] !== DISABLED_FLIGHT_PREFIX; }) | ||
.map(function (value) { return parseInt(value, 10); }) | ||
.filter(function (value) { return !isNaN(value); }); | ||
this._forceDisabledFlights = debugFlightStrings | ||
.filter((function (value) { return value[0] === DISABLED_FLIGHT_PREFIX; })) | ||
.map((function (value) { return parseInt(value.slice(1), 10); })) | ||
.filter((function (value) { return !isNaN(value); })); | ||
.filter(function (value) { return value[0] === DISABLED_FLIGHT_PREFIX; }) | ||
.map(function (value) { return parseInt(value.slice(1), 10); }) | ||
.filter(function (value) { return !isNaN(value); }); | ||
console.log("Debug flights are enabled."); | ||
@@ -1354,14 +1056,7 @@ if (this._forceEnabledFlights.length > 0) { | ||
}()); | ||
exports.default = SPFlight; | ||
/* harmony default export */ var lib_SPFlight = (SPFlight); | ||
// CONCATENATED MODULE: ./lib/SPKillSwitch.js | ||
/***/ }), | ||
/* 24 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Guid_1 = __webpack_require__(3); | ||
var SPKillSwitch = (function () { | ||
var SPKillSwitch_SPKillSwitch = (function () { | ||
function SPKillSwitch() { | ||
@@ -1375,3 +1070,3 @@ } | ||
var killSwitchGuid = _a[_i]; | ||
var normalizedKillSwitchGuid = Guid_1.default.tryParse(killSwitchGuid); | ||
var normalizedKillSwitchGuid = lib_Guid.tryParse(killSwitchGuid); | ||
if (normalizedKillSwitchGuid) { | ||
@@ -1389,3 +1084,4 @@ this._activatedKillSwitches.set(normalizedKillSwitchGuid.toString(), true); | ||
try { | ||
for (var killSwitch in debugKillswitches.split(',').map((function (value) { return Guid_1.default.tryParse(value); }))) { | ||
for (var _i = 0, _a = debugKillswitches.split(',').map(function (value) { return lib_Guid.tryParse(value); }); _i < _a.length; _i++) { | ||
var killSwitch = _a[_i]; | ||
if (killSwitch) { | ||
@@ -1414,11 +1110,5 @@ this._activatedKillSwitches.set(killSwitch.toString(), true); | ||
}()); | ||
exports.default = SPKillSwitch; | ||
/* harmony default export */ var lib_SPKillSwitch = (SPKillSwitch_SPKillSwitch); | ||
/***/ }), | ||
/* 25 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
// CONCATENATED MODULE: ./lib/SPError.js | ||
var __extends = (this && this.__extends) || (function () { | ||
@@ -1434,6 +1124,5 @@ var extendStatics = Object.setPrototypeOf || | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var SPError = (function (_super) { | ||
var SPError_SPError = (function (_super) { | ||
__extends(SPError, _super); | ||
@@ -1443,4 +1132,4 @@ function SPError(errorCode, message, logProperties) { | ||
_this.__proto__ = SPError.prototype; | ||
Validate_1.default.isNonemptyString(errorCode, 'errorCode'); | ||
Validate_1.default.isNonemptyString(message, 'message'); | ||
lib_Validate.isNonemptyString(errorCode, 'errorCode'); | ||
lib_Validate.isNonemptyString(message, 'message'); | ||
_this._errorCode = errorCode; | ||
@@ -1490,3 +1179,3 @@ _this.message = message; | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorInnerErrorText, | ||
SPCoreLibraryStrings_resx.spErrorInnerErrorText, | ||
this.innerError.message | ||
@@ -1497,3 +1186,3 @@ ]); | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorCallStackText, | ||
SPCoreLibraryStrings_resx.spErrorCallStackText, | ||
this.stack | ||
@@ -1504,3 +1193,3 @@ ]); | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorLogPropertiesText, | ||
SPCoreLibraryStrings_resx.spErrorLogPropertiesText, | ||
JSON.stringify(this._logProperties) | ||
@@ -1516,56 +1205,134 @@ ]); | ||
}(Error)); | ||
exports.default = SPError; | ||
/* harmony default export */ var lib_SPError = (SPError_SPError); | ||
// CONCATENATED MODULE: ./lib/events/SPEventManager.js | ||
/***/ }), | ||
/* 26 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var EventManager_1 = __webpack_require__(7); | ||
var Event = (function () { | ||
function Event(name) { | ||
Validate_1.default.isNonemptyString(name, 'name'); | ||
this._name = name; | ||
var SPEventManager_SPEventManager = (function () { | ||
function SPEventManager() { | ||
this._listeners = new Map(); | ||
this._raisedEvents = new Map(); | ||
} | ||
Event.prototype.add = function (observer, eventHandler) { | ||
Validate_1.default.isNotNullOrUndefined(observer, 'component'); | ||
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
EventManager_1.default.instance.registerEvent(this._name, observer, eventHandler); | ||
Object.defineProperty(SPEventManager, "instance", { | ||
get: function () { | ||
if (!this._instance) { | ||
this._instance = new SPEventManager(); | ||
} | ||
return this._instance; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
SPEventManager.prototype.raiseEvent = function (eventName, eventArgs) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
lib_Validate.isNotNullOrUndefined(eventArgs, 'eventArgs'); | ||
return this._raiseEventInternal(eventName, eventArgs); | ||
}; | ||
Event.prototype.remove = function (observer, eventHandler) { | ||
Validate_1.default.isNotNullOrUndefined(observer, 'component'); | ||
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
EventManager_1.default.instance.unregisterEvent(this._name, observer, eventHandler); | ||
SPEventManager.prototype.raiseStickyEvent = function (eventName, eventArgs) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
lib_Validate.isNotNullOrUndefined(eventArgs, 'eventArgs'); | ||
this._raisedEvents.set(eventName, eventArgs); | ||
return this._raiseEventInternal(eventName, eventArgs); | ||
}; | ||
return Event; | ||
SPEventManager.prototype.registerEvent = function (eventName, observer, eventHandler) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
lib_Validate.isNotNullOrUndefined(observer, 'component'); | ||
lib_Validate.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
if (!this._listeners.has(eventName)) { | ||
this._listeners.set(eventName, []); | ||
} | ||
this._listeners.get(eventName).push({ observer: observer, eventHandler: eventHandler }); | ||
if (this._raisedEvents.has(eventName)) { | ||
eventHandler.apply(observer, this._raisedEvents.get(eventName)); | ||
} | ||
}; | ||
SPEventManager.prototype.unregisterEvent = function (eventName, observer, eventHandler) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
lib_Validate.isNotNullOrUndefined(observer, 'component'); | ||
lib_Validate.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
if (!this._listeners.has(eventName)) { | ||
return; | ||
} | ||
var listeners = this._listeners.get(eventName); | ||
var filteredListeners = listeners.filter(function (el) { return el.observer !== observer || el.eventHandler !== eventHandler; }); | ||
if (filteredListeners.length === listeners.length) { | ||
var errorMessage = lib_Text.format( | ||
'Failed to remove event handler for component "{0}". Event handler was not registered.', observer.componentId); | ||
log_Log.error(SPEventManager._logSource, new Error(errorMessage)); | ||
} | ||
this._listeners.set(eventName, filteredListeners); | ||
}; | ||
SPEventManager.prototype.removeEvent = function (eventName) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
this._listeners.delete(eventName); | ||
}; | ||
SPEventManager.prototype.removeEventsByPrefix = function (eventNamePrefix) { | ||
var _this = this; | ||
lib_Validate.isNonemptyString(eventNamePrefix, 'eventNamePrefix'); | ||
var matchedKeys = []; | ||
this._listeners.forEach(function (value, key) { | ||
if (key.indexOf(eventNamePrefix) === 0) { | ||
matchedKeys.push(key); | ||
} | ||
}); | ||
matchedKeys.forEach(function (key) { return _this._listeners.delete(key); }); | ||
}; | ||
SPEventManager.prototype._raiseEventInternal = function (eventName, eventArgs) { | ||
var _this = this; | ||
if (!this._listeners.has(eventName)) { | ||
return; | ||
} | ||
this._listeners.get(eventName).forEach(function (listener) { | ||
if (listener.observer.isDisposed) { | ||
_this.unregisterEvent(eventName, listener.observer, listener.eventHandler); | ||
} | ||
else { | ||
try { | ||
listener.eventHandler.call(listener.observer, eventArgs); | ||
} | ||
catch (e) { | ||
var errorMessage = lib_Text.format( | ||
'Failed to execute event handler for component "{0}"', listener.observer.componentId); | ||
log_Log.error(SPEventManager._logSource, new Error(errorMessage)); | ||
} | ||
} | ||
}); | ||
}; | ||
SPEventManager._logSource = 'SPEventManager'; | ||
return SPEventManager; | ||
}()); | ||
exports.default = Event; | ||
/* harmony default export */ var events_SPEventManager = (SPEventManager_SPEventManager); | ||
// CONCATENATED MODULE: ./lib/events/SPEvent.js | ||
/***/ }), | ||
/* 27 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var SPEvent_SPEvent = (function () { | ||
function SPEvent(name) { | ||
lib_Validate.isNonemptyString(name, 'name'); | ||
this._name = name; | ||
} | ||
SPEvent.prototype.add = function (observer, eventHandler) { | ||
lib_Validate.isNotNullOrUndefined(observer, 'component'); | ||
lib_Validate.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
events_SPEventManager.instance.registerEvent(this._name, observer, eventHandler); | ||
}; | ||
SPEvent.prototype.remove = function (observer, eventHandler) { | ||
lib_Validate.isNotNullOrUndefined(observer, 'component'); | ||
lib_Validate.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
events_SPEventManager.instance.unregisterEvent(this._name, observer, eventHandler); | ||
}; | ||
return SPEvent; | ||
}()); | ||
/* harmony default export */ var events_SPEvent = (SPEvent_SPEvent); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var EventArgs = (function () { | ||
function EventArgs() { | ||
// CONCATENATED MODULE: ./lib/events/SPEventArgs.js | ||
var SPEventArgs = (function () { | ||
function SPEventArgs() { | ||
} | ||
return EventArgs; | ||
return SPEventArgs; | ||
}()); | ||
exports.default = EventArgs; | ||
/* harmony default export */ var events_SPEventArgs = (SPEventArgs); | ||
/***/ }), | ||
/* 28 */ | ||
/***/ ((function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/deferredClass/DeferredClass.js | ||
var DeferredClass = (function () { | ||
@@ -1576,7 +1343,7 @@ function DeferredClass() { | ||
} | ||
DeferredClass.instance = function () { | ||
if (!this._instance) { | ||
this._instance = new this(); | ||
DeferredClass._getInstance = function () { | ||
if (!this._internalInstance) { | ||
this._internalInstance = new this(); | ||
} | ||
return this._instance; | ||
return this._internalInstance; | ||
}; | ||
@@ -1602,6 +1369,6 @@ Object.defineProperty(DeferredClass.prototype, "isLoaded", { | ||
this._loadPromise = this._internalLoad(); | ||
this._loadPromise.then((function (type) { | ||
this._loadPromise.then(function (type) { | ||
_this._classType = type; | ||
_this._resolveOnAfterLoadCallbacks(); | ||
})); | ||
}); | ||
} | ||
@@ -1619,9 +1386,101 @@ else { | ||
}()); | ||
exports.default = DeferredClass; | ||
/* harmony default export */ var deferredClass_DeferredClass = (DeferredClass); | ||
// CONCATENATED MODULE: ./lib/index.js | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return Event; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventArgs", function() { return EventArgs; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_BrowserDetection", function() { return lib_BrowserDetection; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "DisplayMode", function() { return lib_DisplayMode; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Guid", function() { return lib_Guid; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "JsonUtilities", function() { return lib_JsonUtilities; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Text", function() { return lib_Text; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Version", function() { return lib_Version; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Validate", function() { return lib_Validate; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "UrlUtilities", function() { return url_UrlUtilities; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "UrlQueryParameterCollection", function() { return url_UrlQueryParameterCollection; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "TimeProvider", function() { return provider_TimeProvider; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "RandomNumberGenerator", function() { return provider_RandomNumberGenerator; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "ServiceKey", function() { return serviceScope_ServiceKey; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "ServiceScope", function() { return serviceScope_ServiceScope; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Session", function() { return lib_Session; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Environment", function() { return lib_Environment; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "EnvironmentType", function() { return EnvironmentType; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_SPFlight", function() { return lib_SPFlight; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_SPKillSwitch", function() { return lib_SPKillSwitch; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "SPError", function() { return lib_SPError; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Log", function() { return log_Log; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "SPEvent", function() { return events_SPEvent; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "SPEventArgs", function() { return events_SPEventArgs; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_SPEventManager", function() { return events_SPEventManager; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_DeferredClass", function() { return deferredClass_DeferredClass; }); | ||
var lib___extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
/***/ })) | ||
var Event = (function (_super) { | ||
lib___extends(Event, _super); | ||
function Event() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
return Event; | ||
}(events_SPEvent)); | ||
var EventArgs = (function (_super) { | ||
lib___extends(EventArgs, _super); | ||
function EventArgs() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
return EventArgs; | ||
}(events_SPEventArgs)); | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_2__; | ||
/***/ }) | ||
/******/ ])}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));; | ||
/***/ }), | ||
@@ -1640,2 +1499,3 @@ /* 1 */ | ||
"isEmptyStringValidateError": "***The value for \"{0}\" must not be an empty string", | ||
"isDisposedValidateError": "***The \"{0}\" object cannot be used because it has been disposed.", | ||
"invalidVersionStringError": "***Invalid version string: \"{0}\"", | ||
@@ -1653,3 +1513,5 @@ "logVerboseLevelMessage": "***{0}: VERBOSE {1}", | ||
"spErrorCallStackText": "***CALLSTACK:", | ||
"spErrorLogPropertiesText": "***LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "***LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "***A source with id \"{0}\" already exists.", | ||
"dynamicDataManagerSourceDoesntExist": "***No source with id \"{0}\" found." | ||
} | ||
@@ -1656,0 +1518,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
define("7263c7d0-1d6a-45ec-8d85-d4d1d234171b_1.4.1", ["resx-strings","@microsoft/sp-lodash-subset"], (function(__WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_15__) { return /******/ (function(modules) { // webpackBootstrap | ||
define("7263c7d0-1d6a-45ec-8d85-d4d1d234171b_1.5.0", ["resx-strings","@microsoft/sp-lodash-subset"], function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -63,3 +63,3 @@ /******/ var installedModules = {}; | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 8); | ||
/******/ return __webpack_require__(__webpack_require__.s = 0); | ||
/******/ }) | ||
@@ -69,58 +69,16 @@ /************************************************************************/ | ||
/* 0 */ | ||
/***/ ((function(module, exports, __webpack_require__) { | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = __webpack_require__(2); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var Validate = (function () { | ||
function Validate() { | ||
} | ||
Validate.isTrue = function (value, variableName) { | ||
if (!value) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isFalseValidateError, variableName)); | ||
} | ||
}; | ||
Validate.isNotNullOrUndefined = function (value, variableName) { | ||
if (value === null) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isNullValidateError, variableName)); | ||
} | ||
if (value === undefined) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isUndefinedValidateError, variableName)); | ||
} | ||
}; | ||
Validate.isNonemptyString = function (value, variableName) { | ||
Validate.isNotNullOrUndefined(value, variableName); | ||
if (!value || value && value.length === 0) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isEmptyStringValidateError, variableName)); | ||
} | ||
}; | ||
return Validate; | ||
}()); | ||
exports.default = Validate; | ||
// CONCATENATED MODULE: ./lib/SPCoreLibraryStrings.resx.js | ||
var strings = ( false) ? | ||
require("./resx-strings/en-us.json") : | ||
__webpack_require__(1); | ||
/* harmony default export */ var SPCoreLibraryStrings_resx = (strings['_gIErrcTokcw+/VVwa+ReIA']); | ||
// CONCATENATED MODULE: ./lib/Text.js | ||
/***/ })), | ||
/* 1 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var strings = ( false) | ||
? require('resx-strings/en-us.json') | ||
: __webpack_require__(10); | ||
exports.default = strings['_gIErrcTokcw+/VVwa+ReIA']; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var Text = (function () { | ||
var Text_Text = (function () { | ||
function Text() { | ||
@@ -134,8 +92,8 @@ } | ||
if (s === null) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.isNullValidateError.replace('{0}', 's')); | ||
throw new Error(SPCoreLibraryStrings_resx.isNullValidateError.replace('{0}', 's')); | ||
} | ||
if (s === undefined) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.isUndefinedValidateError.replace('{0}', 's')); | ||
throw new Error(SPCoreLibraryStrings_resx.isUndefinedValidateError.replace('{0}', 's')); | ||
} | ||
return s.replace(Text.FORMAT_REGEX, (function (match) { | ||
return s.replace(Text.FORMAT_REGEX, function (match) { | ||
var matchId = parseInt(match.replace(Text.FORMAT_ARGS_REGEX, ''), 10); | ||
@@ -153,3 +111,3 @@ var matchValue = values[matchId]; | ||
return matchValue; | ||
})); | ||
}); | ||
}; | ||
@@ -160,157 +118,43 @@ Text.FORMAT_REGEX = /\{\d+\}/g; | ||
}()); | ||
exports.default = Text; | ||
/* harmony default export */ var lib_Text = (Text_Text); | ||
// CONCATENATED MODULE: ./lib/Validate.js | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var Text_1 = __webpack_require__(2); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var Guid = (function () { | ||
function Guid(guid) { | ||
this._guid = guid; | ||
var Validate_Validate = (function () { | ||
function Validate() { | ||
} | ||
Guid.newGuid = function (randomNumberGenerator) { | ||
return new Guid(Guid._generateGuid(randomNumberGenerator)); | ||
}; | ||
Guid.parse = function (guidString) { | ||
var guid = Guid.tryParse(guidString); | ||
if (!guid) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.invalidGuidStringError, guidString)); | ||
Validate.isTrue = function (value, variableName) { | ||
if (!value) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isFalseValidateError, variableName)); | ||
} | ||
return guid; | ||
}; | ||
Guid.tryParse = function (guid) { | ||
if (guid) { | ||
guid = Guid._normalize(guid); | ||
if (Guid._guidRegEx.test(guid)) { | ||
return new Guid(guid); | ||
} | ||
Validate.isNotNullOrUndefined = function (value, variableName) { | ||
if (value === null) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isNullValidateError, variableName)); | ||
} | ||
return undefined; | ||
if (value === undefined) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isUndefinedValidateError, variableName)); | ||
} | ||
}; | ||
Guid.isValid = function (guid) { | ||
if (guid) { | ||
guid = Guid._normalize(guid); | ||
if (Guid._guidRegEx.test(guid)) { | ||
return true; | ||
} | ||
Validate.isNonemptyString = function (value, variableName) { | ||
Validate.isNotNullOrUndefined(value, variableName); | ||
if (!value || value && value.length === 0) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isEmptyStringValidateError, variableName)); | ||
} | ||
return false; | ||
}; | ||
Guid._normalize = function (guid) { | ||
Validate_1.default.isNonemptyString(guid, 'guid'); | ||
var result = /^Guid\((.*)\)/i.exec(guid); | ||
if (result) { | ||
guid = result[1]; | ||
Validate.isNotDisposed = function (value, className) { | ||
if (value.isDisposed) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.isDisposedValidateError, className)); | ||
} | ||
if (guid.length === 38) { | ||
guid = guid.substr(1, 36); | ||
} | ||
return guid.toLowerCase(); | ||
}; | ||
Guid._generateGuid = function (randomNumberGenerator) { | ||
return 'AAAAAAAA-AAAA-4AAA-BAAA-AAAAAAAAAAAA'.replace(/[AB]/g, | ||
(function (character) { | ||
var randomNumber = randomNumberGenerator ? randomNumberGenerator.generate() : Math.random(); | ||
var num = randomNumber * 16 | 0; | ||
var masked = character === 'A' ? num : (num & 0x3 | 0x8); | ||
return masked.toString(16); | ||
})); | ||
}; | ||
Guid.prototype.equals = function (guid) { | ||
Validate_1.default.isNotNullOrUndefined(guid, 'guid'); | ||
return guid && this._guid.toString() === guid.toString(); | ||
}; | ||
Guid.prototype.toString = function () { | ||
return this._guid; | ||
}; | ||
Guid.empty = new Guid('00000000-0000-0000-0000-000000000000'); | ||
Guid._guidRegEx = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; | ||
return Guid; | ||
return Validate; | ||
}()); | ||
exports.default = Guid; | ||
/* harmony default export */ var lib_Validate = (Validate_Validate); | ||
// CONCATENATED MODULE: ./lib/Version.js | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var ServiceKey = (function () { | ||
function ServiceKey(id, name, defaultCreator) { | ||
this.id = id; | ||
this.name = name; | ||
this.defaultCreator = defaultCreator; | ||
} | ||
ServiceKey.create = function (name, serviceClass) { | ||
Validate_1.default.isNotNullOrUndefined(serviceClass, 'serviceClass'); | ||
return ServiceKey.createCustom(name, (function (serviceScope) { | ||
return new serviceClass(serviceScope); | ||
})); | ||
}; | ||
ServiceKey.createCustom = function (name, defaultCreator) { | ||
Validate_1.default.isNonemptyString(name, 'name'); | ||
Validate_1.default.isNotNullOrUndefined(defaultCreator, 'defaultCreator'); | ||
ServiceKey._lastId++; | ||
var id = ServiceKey._lastId.toString(); | ||
return new ServiceKey(id, name, defaultCreator); | ||
}; | ||
ServiceKey._lastId = 0; | ||
return ServiceKey; | ||
}()); | ||
exports.default = ServiceKey; | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DefaultLogHandler_1 = __webpack_require__(21); | ||
var Log = (function () { | ||
function Log() { | ||
} | ||
Log._initialize = function (logHandler) { | ||
Log._logHandler = logHandler; | ||
}; | ||
Log.verbose = function (source, message, scope) { | ||
Log._logHandler.verbose(source, message, scope); | ||
}; | ||
Log.info = function (source, message, scope) { | ||
Log._logHandler.info(source, message, scope); | ||
}; | ||
Log.warn = function (source, message, scope) { | ||
Log._logHandler.warn(source, message, scope); | ||
}; | ||
Log.error = function (source, error, scope) { | ||
Log._logHandler.error(source, error, scope); | ||
}; | ||
Log._logHandler = new DefaultLogHandler_1.default(); | ||
return Log; | ||
}()); | ||
exports.default = Log; | ||
/***/ }), | ||
/* 6 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = __webpack_require__(2); | ||
var Validate_1 = __webpack_require__(0); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var Version = (function () { | ||
var Version_Version = (function () { | ||
function Version(major, minor, patch, revision) { | ||
@@ -330,3 +174,3 @@ this._major = major; | ||
} | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.invalidVersionStringError, versionString)); | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.invalidVersionStringError, versionString)); | ||
}; | ||
@@ -344,4 +188,4 @@ Version.tryParse = function (versionString) { | ||
Version.compare = function (v1, v2) { | ||
Validate_1.default.isNotNullOrUndefined(v1, 'v1'); | ||
Validate_1.default.isNotNullOrUndefined(v2, 'v2'); | ||
lib_Validate.isNotNullOrUndefined(v1, 'v1'); | ||
lib_Validate.isNotNullOrUndefined(v2, 'v2'); | ||
if (v1.major !== v2.major) { | ||
@@ -399,3 +243,3 @@ return v1.major > v2.major ? 1 : -1; | ||
Version.prototype.satisfies = function (compareWith) { | ||
Validate_1.default.isNotNullOrUndefined(compareWith, 'compareWith'); | ||
lib_Validate.isNotNullOrUndefined(compareWith, 'compareWith'); | ||
return this.major === compareWith.major && !this.lessThan(compareWith); | ||
@@ -415,184 +259,7 @@ }; | ||
}()); | ||
exports.default = Version; | ||
/* harmony default export */ var lib_Version = (Version_Version); | ||
// CONCATENATED MODULE: ./lib/BrowserDetection.js | ||
/***/ }), | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var Text_1 = __webpack_require__(2); | ||
var Log_1 = __webpack_require__(5); | ||
var EventManager = (function () { | ||
function EventManager() { | ||
this._listeners = new Map(); | ||
this._raisedEvents = new Map(); | ||
} | ||
Object.defineProperty(EventManager, "instance", { | ||
get: function () { | ||
if (!this._instance) { | ||
this._instance = new EventManager(); | ||
} | ||
return this._instance; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
EventManager.prototype.raiseEvent = function (eventName, eventArgs) { | ||
Validate_1.default.isNonemptyString(eventName, 'eventName'); | ||
Validate_1.default.isNotNullOrUndefined(eventArgs, 'eventArgs'); | ||
return this._raiseEventInternal(eventName, eventArgs); | ||
}; | ||
EventManager.prototype.raiseStickyEvent = function (eventName, eventArgs) { | ||
Validate_1.default.isNonemptyString(eventName, 'eventName'); | ||
Validate_1.default.isNotNullOrUndefined(eventArgs, 'eventArgs'); | ||
this._raisedEvents.set(eventName, eventArgs); | ||
return this._raiseEventInternal(eventName, eventArgs); | ||
}; | ||
EventManager.prototype.registerEvent = function (eventName, observer, eventHandler) { | ||
Validate_1.default.isNonemptyString(eventName, 'eventName'); | ||
Validate_1.default.isNotNullOrUndefined(observer, 'component'); | ||
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
if (!this._listeners.has(eventName)) { | ||
this._listeners.set(eventName, []); | ||
} | ||
this._listeners.get(eventName).push({ observer: observer, eventHandler: eventHandler }); | ||
if (this._raisedEvents.has(eventName)) { | ||
eventHandler.apply(observer, this._raisedEvents.get(eventName)); | ||
} | ||
}; | ||
EventManager.prototype.unregisterEvent = function (eventName, observer, eventHandler) { | ||
Validate_1.default.isNonemptyString(eventName, 'eventName'); | ||
Validate_1.default.isNotNullOrUndefined(observer, 'component'); | ||
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
if (!this._listeners.has(eventName)) { | ||
return; | ||
} | ||
var listeners = this._listeners.get(eventName); | ||
var filteredListeners = listeners.filter((function (el) { return el.observer !== observer || el.eventHandler !== eventHandler; })); | ||
if (filteredListeners.length === listeners.length) { | ||
var errorMessage = Text_1.default.format( | ||
'Failed to remove event handler for component "{0}". Event handler was not registered.', observer.componentId); | ||
Log_1.default.error(EventManager._logSource, new Error(errorMessage)); | ||
} | ||
this._listeners.set(eventName, filteredListeners); | ||
}; | ||
EventManager.prototype._raiseEventInternal = function (eventName, eventArgs) { | ||
var _this = this; | ||
if (!this._listeners.has(eventName)) { | ||
return; | ||
} | ||
this._listeners.get(eventName).forEach((function (listener) { | ||
if (listener.observer.isDisposed) { | ||
_this.unregisterEvent(eventName, listener.observer, listener.eventHandler); | ||
} | ||
else { | ||
try { | ||
listener.eventHandler.call(listener.observer, eventArgs); | ||
} | ||
catch (e) { | ||
var errorMessage = Text_1.default.format( | ||
'Failed to execute event handler for component "{0}"', listener.observer.componentId); | ||
Log_1.default.error(EventManager._logSource, new Error(errorMessage)); | ||
} | ||
} | ||
})); | ||
}; | ||
EventManager._logSource = 'EventManager'; | ||
return EventManager; | ||
}()); | ||
exports.default = EventManager; | ||
/***/ }), | ||
/* 8 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var BrowserDetection_1 = __webpack_require__(9); | ||
exports._BrowserDetection = BrowserDetection_1.default; | ||
exports._Browser = BrowserDetection_1.Browser; | ||
exports._OS = BrowserDetection_1.OS; | ||
var DisplayMode_1 = __webpack_require__(11); | ||
exports.DisplayMode = DisplayMode_1.default; | ||
var Guid_1 = __webpack_require__(3); | ||
exports.Guid = Guid_1.default; | ||
var IBrowserCompatibility_1 = __webpack_require__(12); | ||
exports.BrowserSupportLevel = IBrowserCompatibility_1.BrowserSupportLevel; | ||
var JsonUtilities_1 = __webpack_require__(13); | ||
exports.JsonUtilities = JsonUtilities_1.default; | ||
var Text_1 = __webpack_require__(2); | ||
exports.Text = Text_1.default; | ||
var Version_1 = __webpack_require__(6); | ||
exports.Version = Version_1.default; | ||
var Validate_1 = __webpack_require__(0); | ||
exports.Validate = Validate_1.default; | ||
var UrlUtilities_1 = __webpack_require__(14); | ||
exports.UrlUtilities = UrlUtilities_1.default; | ||
var UrlQueryParameterCollection_1 = __webpack_require__(16); | ||
exports.UrlQueryParameterCollection = UrlQueryParameterCollection_1.default; | ||
var TimeProvider_1 = __webpack_require__(17); | ||
exports.TimeProvider = TimeProvider_1.default; | ||
var RandomNumberGenerator_1 = __webpack_require__(18); | ||
exports.RandomNumberGenerator = RandomNumberGenerator_1.default; | ||
var ServiceKey_1 = __webpack_require__(4); | ||
exports.ServiceKey = ServiceKey_1.default; | ||
var ServiceScope_1 = __webpack_require__(19); | ||
exports.ServiceScope = ServiceScope_1.default; | ||
var Session_1 = __webpack_require__(20); | ||
exports.Session = Session_1.default; | ||
var Environment_1 = __webpack_require__(22); | ||
exports.Environment = Environment_1.default; | ||
exports.EnvironmentType = Environment_1.EnvironmentType; | ||
var SPFlight_1 = __webpack_require__(23); | ||
exports._SPFlight = SPFlight_1.default; | ||
var SPKillSwitch_1 = __webpack_require__(24); | ||
exports._SPKillSwitch = SPKillSwitch_1.default; | ||
var SPError_1 = __webpack_require__(25); | ||
exports.SPError = SPError_1.default; | ||
var Log_1 = __webpack_require__(5); | ||
exports.Log = Log_1.default; | ||
var Event_1 = __webpack_require__(26); | ||
exports.Event = Event_1.default; | ||
var EventArgs_1 = __webpack_require__(27); | ||
exports.EventArgs = EventArgs_1.default; | ||
var EventManager_1 = __webpack_require__(7); | ||
exports._EventManager = EventManager_1.default; | ||
var DeferredClass_1 = __webpack_require__(28); | ||
exports._DeferredClass = DeferredClass_1.default; | ||
/***/ }), | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Version_1 = __webpack_require__(6); | ||
var Browser; | ||
(function (Browser) { | ||
Browser[Browser["Other"] = 0] = "Other"; | ||
Browser[Browser["Chrome"] = 1] = "Chrome"; | ||
Browser[Browser["Edge"] = 2] = "Edge"; | ||
Browser[Browser["Firefox"] = 3] = "Firefox"; | ||
Browser[Browser["IE"] = 4] = "IE"; | ||
Browser[Browser["Safari"] = 5] = "Safari"; | ||
})(Browser = exports.Browser || (exports.Browser = {})); | ||
var OS; | ||
(function (OS) { | ||
OS[OS["Other"] = 0] = "Other"; | ||
OS[OS["Android"] = 1] = "Android"; | ||
OS[OS["IOS"] = 2] = "IOS"; | ||
OS[OS["Linux"] = 3] = "Linux"; | ||
OS[OS["Mac"] = 4] = "Mac"; | ||
OS[OS["Windows"] = 5] = "Windows"; | ||
OS[OS["WindowsPhone"] = 6] = "WindowsPhone"; | ||
})(OS = exports.OS || (exports.OS = {})); | ||
var BrowserDetection = (function () { | ||
var BrowserDetection_BrowserDetection = (function () { | ||
function BrowserDetection() { | ||
@@ -610,5 +277,5 @@ } | ||
var browserInfo = { | ||
browser: Browser.Other, | ||
browser: 0 , | ||
browserVersion: undefined, | ||
os: OS.Other, | ||
os: 0 , | ||
osVersion: undefined, | ||
@@ -622,22 +289,22 @@ userAgent: userAgent | ||
BrowserDetection.fillBrowser = function (browserInfo, userAgent) { | ||
var browser = Browser.Other; | ||
var browser = 0 ; | ||
var browserVersion = undefined; | ||
var match; | ||
if (match = /msie (\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.IE; | ||
browser = 4 ; | ||
} | ||
else if (match = /trident.*rv:(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.IE; | ||
browser = 4 ; | ||
} | ||
else if (match = /edge\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Edge; | ||
browser = 2 ; | ||
} | ||
else if (match = /(?:firefox|fxios)\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Firefox; | ||
browser = 3 ; | ||
} | ||
else if (match = /(?:chrome|crios)\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Chrome; | ||
browser = 1 ; | ||
} | ||
else if (match = /safari\/(\d+)/.exec(userAgent)) { | ||
browser = Browser.Safari; | ||
browser = 5 ; | ||
match = /version\/(\d+)([\d.]*)/.exec(userAgent); | ||
@@ -655,3 +322,3 @@ } | ||
} | ||
browserVersion = Version_1.default.parse(browserMajor + "." + browserMinor); | ||
browserVersion = lib_Version.parse(browserMajor + "." + browserMinor); | ||
} | ||
@@ -663,3 +330,3 @@ browserInfo.browser = browser; | ||
BrowserDetection.fillOS = function (browserInfo, userAgent) { | ||
var os = OS.Other; | ||
var os = 0 ; | ||
var osVersion = undefined; | ||
@@ -672,9 +339,9 @@ var osVersionMatch = /[\s\(](os|os x|windows phone|windows nt|android) ([\d._]+)/.exec(userAgent); | ||
if (device === 'windows phone' || device === 'wpdesktop') { | ||
os = OS.WindowsPhone; | ||
os = 6 ; | ||
} | ||
if (device === 'android') { | ||
os = OS.Android; | ||
os = 1 ; | ||
} | ||
if (device === 'ipad' || device === 'ipod' || device === 'iphone') { | ||
os = OS.IOS; | ||
os = 2 ; | ||
} | ||
@@ -684,17 +351,17 @@ } | ||
if (userAgent.indexOf('macintosh') !== -1) { | ||
os = OS.Mac; | ||
os = 4 ; | ||
} | ||
if (userAgent.indexOf('windows nt') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
} | ||
if (/(windows 8\.1|windows nt 6\.3)/.test(userAgent)) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '8.1'; | ||
} | ||
if (userAgent.indexOf('windows nt 10') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '10'; | ||
} | ||
if (userAgent.indexOf('windows nt 6.1') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '7'; | ||
@@ -709,18 +376,5 @@ } | ||
}()); | ||
exports.default = BrowserDetection; | ||
/* harmony default export */ var lib_BrowserDetection = (BrowserDetection_BrowserDetection); | ||
/***/ }), | ||
/* 10 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_10__; | ||
/***/ }), | ||
/* 11 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/DisplayMode.js | ||
var DisplayMode; | ||
@@ -731,28 +385,74 @@ (function (DisplayMode) { | ||
})(DisplayMode || (DisplayMode = {})); | ||
exports.default = DisplayMode; | ||
/* harmony default export */ var lib_DisplayMode = (DisplayMode); | ||
// CONCATENATED MODULE: ./lib/Guid.js | ||
/***/ }), | ||
/* 12 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var BrowserSupportLevel; | ||
(function (BrowserSupportLevel) { | ||
BrowserSupportLevel[BrowserSupportLevel["None"] = 0] = "None"; | ||
BrowserSupportLevel[BrowserSupportLevel["FullFunctionality"] = 1] = "FullFunctionality"; | ||
BrowserSupportLevel[BrowserSupportLevel["Readable"] = 2] = "Readable"; | ||
BrowserSupportLevel[BrowserSupportLevel["Blocked"] = 3] = "Blocked"; | ||
})(BrowserSupportLevel = exports.BrowserSupportLevel || (exports.BrowserSupportLevel = {})); | ||
var Guid_Guid = (function () { | ||
function Guid(guid) { | ||
this._guid = guid; | ||
} | ||
Guid.newGuid = function (randomNumberGenerator) { | ||
return new Guid(Guid._generateGuid(randomNumberGenerator)); | ||
}; | ||
Guid.parse = function (guidString) { | ||
var guid = Guid.tryParse(guidString); | ||
if (!guid) { | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.invalidGuidStringError, guidString)); | ||
} | ||
return guid; | ||
}; | ||
Guid.tryParse = function (guid) { | ||
if (guid) { | ||
guid = Guid._normalize(guid); | ||
if (Guid._guidRegEx.test(guid)) { | ||
return new Guid(guid); | ||
} | ||
} | ||
return undefined; | ||
}; | ||
Guid.isValid = function (guid) { | ||
if (guid) { | ||
guid = Guid._normalize(guid); | ||
if (Guid._guidRegEx.test(guid)) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
}; | ||
Guid._normalize = function (guid) { | ||
lib_Validate.isNonemptyString(guid, 'guid'); | ||
var result = /^Guid\((.*)\)/i.exec(guid); | ||
if (result) { | ||
guid = result[1]; | ||
} | ||
if (guid.length === 38) { | ||
guid = guid.substr(1, 36); | ||
} | ||
return guid.toLowerCase(); | ||
}; | ||
Guid._generateGuid = function (randomNumberGenerator) { | ||
return 'AAAAAAAA-AAAA-4AAA-BAAA-AAAAAAAAAAAA'.replace(/[AB]/g, | ||
function (character) { | ||
var randomNumber = randomNumberGenerator ? randomNumberGenerator.generate() : Math.random(); | ||
var num = randomNumber * 16 | 0; | ||
var masked = character === 'A' ? num : (num & 0x3 | 0x8); | ||
return masked.toString(16); | ||
}); | ||
}; | ||
Guid.prototype.equals = function (guid) { | ||
lib_Validate.isNotNullOrUndefined(guid, 'guid'); | ||
return guid && this._guid.toString() === guid.toString(); | ||
}; | ||
Guid.prototype.toString = function () { | ||
return this._guid; | ||
}; | ||
Guid.empty = new Guid('00000000-0000-0000-0000-000000000000'); | ||
Guid._guidRegEx = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; | ||
return Guid; | ||
}()); | ||
/* harmony default export */ var lib_Guid = (Guid_Guid); | ||
/***/ }), | ||
/* 13 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/JsonUtilities.js | ||
var JsonUtilities = (function () { | ||
@@ -766,6 +466,6 @@ function JsonUtilities() { | ||
JsonUtilities._escapableChars.lastIndex = 0; | ||
return JsonUtilities._escapableChars.test(json) ? json.replace(this._escapableChars, (function (a) { | ||
return JsonUtilities._escapableChars.test(json) ? json.replace(this._escapableChars, function (a) { | ||
var c = JsonUtilities._substibuteChars[a]; | ||
return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); | ||
})) : json; | ||
}) : json; | ||
}; | ||
@@ -785,21 +485,19 @@ JsonUtilities._escapableChars = /[\\\"\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; | ||
}()); | ||
exports.default = JsonUtilities; | ||
/* harmony default export */ var lib_JsonUtilities = (JsonUtilities); | ||
// EXTERNAL MODULE: external "@microsoft/sp-lodash-subset" | ||
var sp_lodash_subset_ = __webpack_require__(2); | ||
var sp_lodash_subset__default = /*#__PURE__*/__webpack_require__.n(sp_lodash_subset_); | ||
/***/ }), | ||
/* 14 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// CONCATENATED MODULE: ./lib/url/UrlUtilities.js | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var lodash = __webpack_require__(15); | ||
var Validate_1 = __webpack_require__(0); | ||
var URL_PROTOCOL_REGEX = /^\w+\:\/\//; | ||
var UrlUtilities = (function () { | ||
var BASE64_IMAGE_REGEX = /^data:(\w+\/\w+)?(;charset=[\w-]+)?(;base64)?,.*/i; | ||
var UrlUtilities_UrlUtilities = (function () { | ||
function UrlUtilities() { | ||
} | ||
UrlUtilities.resolve = function (url, baseUrl) { | ||
Validate_1.default.isNonemptyString(url, 'url'); | ||
Validate_1.default.isNonemptyString(baseUrl, 'baseUrl'); | ||
lib_Validate.isNonemptyString(url, 'url'); | ||
lib_Validate.isNonemptyString(baseUrl, 'baseUrl'); | ||
var isRelativeUrl = !url.match(URL_PROTOCOL_REGEX); | ||
@@ -814,9 +512,9 @@ if (isRelativeUrl) { | ||
UrlUtilities.removeEndSlash = function (url) { | ||
return lodash.trimEnd(url, '/'); | ||
return sp_lodash_subset_["trimEnd"](url, '/'); | ||
}; | ||
UrlUtilities.removeLeadingSlash = function (url) { | ||
return lodash.trimStart(url, '/'); | ||
return sp_lodash_subset_["trimStart"](url, '/'); | ||
}; | ||
UrlUtilities.convertToODataStringLiteral = function (value) { | ||
Validate_1.default.isNotNullOrUndefined(value, 'value'); | ||
lib_Validate.isNotNullOrUndefined(value, 'value'); | ||
value = value.replace(/'/g, "''"); | ||
@@ -826,20 +524,11 @@ value = "'" + value + "'"; | ||
}; | ||
UrlUtilities.isDataUrl = function (url) { | ||
lib_Validate.isNotNullOrUndefined(url, 'url'); | ||
return !!url.match(BASE64_IMAGE_REGEX); | ||
}; | ||
return UrlUtilities; | ||
}()); | ||
exports.default = UrlUtilities; | ||
/* harmony default export */ var url_UrlUtilities = (UrlUtilities_UrlUtilities); | ||
/***/ }), | ||
/* 15 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_15__; | ||
/***/ }), | ||
/* 16 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/url/UrlQueryParameterCollection.js | ||
var UrlQueryParameterCollection = (function () { | ||
@@ -922,14 +611,33 @@ function UrlQueryParameterCollection(url) { | ||
}()); | ||
exports.default = UrlQueryParameterCollection; | ||
/* harmony default export */ var url_UrlQueryParameterCollection = (UrlQueryParameterCollection); | ||
// CONCATENATED MODULE: ./lib/serviceScope/ServiceKey.js | ||
/***/ }), | ||
/* 17 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var ServiceKey_ServiceKey = (function () { | ||
function ServiceKey(id, name, defaultCreator) { | ||
this.id = id; | ||
this.name = name; | ||
this.defaultCreator = defaultCreator; | ||
} | ||
ServiceKey.create = function (name, serviceClass) { | ||
lib_Validate.isNotNullOrUndefined(serviceClass, 'serviceClass'); | ||
return ServiceKey.createCustom(name, function (serviceScope) { | ||
return new serviceClass(serviceScope); | ||
}); | ||
}; | ||
ServiceKey.createCustom = function (name, defaultCreator) { | ||
lib_Validate.isNonemptyString(name, 'name'); | ||
lib_Validate.isNotNullOrUndefined(defaultCreator, 'defaultCreator'); | ||
ServiceKey._lastId++; | ||
var id = ServiceKey._lastId.toString(); | ||
return new ServiceKey(id, name, defaultCreator); | ||
}; | ||
ServiceKey._lastId = 0; | ||
return ServiceKey; | ||
}()); | ||
/* harmony default export */ var serviceScope_ServiceKey = (ServiceKey_ServiceKey); | ||
"use strict"; | ||
// CONCATENATED MODULE: ./lib/serviceScope/provider/TimeProvider.js | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ServiceKey_1 = __webpack_require__(4); | ||
var TimeProvider = (function () { | ||
var TimeProvider_TimeProvider = (function () { | ||
function TimeProvider(serviceScope) { | ||
@@ -943,17 +651,10 @@ } | ||
}; | ||
TimeProvider.serviceKey = ServiceKey_1.default.create('sp-core-library:TimeProvider', TimeProvider); | ||
TimeProvider.serviceKey = serviceScope_ServiceKey.create('sp-core-library:TimeProvider', TimeProvider); | ||
return TimeProvider; | ||
}()); | ||
exports.default = TimeProvider; | ||
/* harmony default export */ var provider_TimeProvider = (TimeProvider_TimeProvider); | ||
// CONCATENATED MODULE: ./lib/serviceScope/provider/RandomNumberGenerator.js | ||
/***/ }), | ||
/* 18 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ServiceKey_1 = __webpack_require__(4); | ||
var RandomNumberGenerator = (function () { | ||
var RandomNumberGenerator_RandomNumberGenerator = (function () { | ||
function RandomNumberGenerator(serviceScope) { | ||
@@ -964,18 +665,11 @@ } | ||
}; | ||
RandomNumberGenerator.serviceKey = ServiceKey_1.default.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator); | ||
RandomNumberGenerator.serviceKey = serviceScope_ServiceKey.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator); | ||
return RandomNumberGenerator; | ||
}()); | ||
exports.default = RandomNumberGenerator; | ||
/* harmony default export */ var provider_RandomNumberGenerator = (RandomNumberGenerator_RandomNumberGenerator); | ||
// CONCATENATED MODULE: ./lib/serviceScope/ServiceScope.js | ||
/***/ }), | ||
/* 19 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = __webpack_require__(2); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var ServiceScope = (function () { | ||
var ServiceScope_ServiceScope = (function () { | ||
function ServiceScope(parent) { | ||
@@ -1000,6 +694,6 @@ this._parent = parent; | ||
if (!this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeConsumingBeforeFinished); | ||
throw new Error(SPCoreLibraryStrings_resx.serviceScopeConsumingBeforeFinished); | ||
} | ||
if (this._autocreating) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeConsumingDuringAutoCreation); | ||
throw new Error(SPCoreLibraryStrings_resx.serviceScopeConsumingDuringAutoCreation); | ||
} | ||
@@ -1017,3 +711,3 @@ var registration = this._registrations[serviceKey.id]; | ||
autocreatedService = serviceKey.defaultCreator(this); | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: autocreatedService }; | ||
this._registerService(serviceKey, autocreatedService); | ||
} | ||
@@ -1031,3 +725,3 @@ finally { | ||
if (this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeAlreadyFinishedError); | ||
throw new Error(SPCoreLibraryStrings_resx.serviceScopeAlreadyFinishedError); | ||
} | ||
@@ -1050,8 +744,8 @@ this._finished = true; | ||
if (this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeProvideServiceAfterFinishedError); | ||
throw new Error(SPCoreLibraryStrings_resx.serviceScopeProvideServiceAfterFinishedError); | ||
} | ||
if (this._registrations[serviceKey.id]) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.serviceScopeProvideServiceThatAlreadyExists, serviceKey.name)); | ||
throw new Error(lib_Text.format(SPCoreLibraryStrings_resx.serviceScopeProvideServiceThatAlreadyExists, serviceKey.name)); | ||
} | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: service }; | ||
this._registerService(serviceKey, service); | ||
return service; | ||
@@ -1062,2 +756,5 @@ }; | ||
}; | ||
ServiceScope.prototype._registerService = function (serviceKey, service) { | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: service }; | ||
}; | ||
ServiceScope.prototype._processPendingCallbacks = function () { | ||
@@ -1073,25 +770,73 @@ var pendingCallbacks = this._pendingCallbacks; | ||
}()); | ||
exports.default = ServiceScope; | ||
/* harmony default export */ var serviceScope_ServiceScope = (ServiceScope_ServiceScope); | ||
// CONCATENATED MODULE: ./lib/log/DefaultLogHandler.js | ||
/***/ }), | ||
/* 20 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var DefaultLogHandler_DefaultLogHandler = (function () { | ||
function DefaultLogHandler() { | ||
} | ||
DefaultLogHandler.prototype.verbose = function (source, message, scope) { | ||
if (true) { | ||
console.log(lib_Text.format(SPCoreLibraryStrings_resx.logVerboseLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.info = function (source, message, scope) { | ||
if (true) { | ||
console.info(lib_Text.format(SPCoreLibraryStrings_resx.logInfoLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.warn = function (source, message, scope) { | ||
if (true) { | ||
console.warn(lib_Text.format(SPCoreLibraryStrings_resx.logWarningLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.error = function (source, error, scope) { | ||
if (true) { | ||
console.error(lib_Text.format(SPCoreLibraryStrings_resx.logErrorLevelMessage, source, error.message)); | ||
} | ||
}; | ||
return DefaultLogHandler; | ||
}()); | ||
/* harmony default export */ var log_DefaultLogHandler = (DefaultLogHandler_DefaultLogHandler); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Guid_1 = __webpack_require__(3); | ||
var Validate_1 = __webpack_require__(0); | ||
var Log_1 = __webpack_require__(5); | ||
var Session = (function () { | ||
// CONCATENATED MODULE: ./lib/log/Log.js | ||
var Log_Log = (function () { | ||
function Log() { | ||
} | ||
Log._initialize = function (logHandler) { | ||
Log._logHandler = logHandler; | ||
}; | ||
Log.verbose = function (source, message, scope) { | ||
Log._logHandler.verbose(source, message, scope); | ||
}; | ||
Log.info = function (source, message, scope) { | ||
Log._logHandler.info(source, message, scope); | ||
}; | ||
Log.warn = function (source, message, scope) { | ||
Log._logHandler.warn(source, message, scope); | ||
}; | ||
Log.error = function (source, error, scope) { | ||
Log._logHandler.error(source, error, scope); | ||
}; | ||
Log._logHandler = new log_DefaultLogHandler(); | ||
return Log; | ||
}()); | ||
/* harmony default export */ var log_Log = (Log_Log); | ||
// CONCATENATED MODULE: ./lib/Session.js | ||
var Session_Session = (function () { | ||
function Session() { | ||
} | ||
Session._initialize = function (data) { | ||
Validate_1.default.isNotNullOrUndefined(data, 'data'); | ||
Session._applicationId = Guid_1.default.tryParse(data.applicationId) || Guid_1.default.empty; | ||
var pageIdGuid = Guid_1.default.tryParse(data.pageId); | ||
lib_Validate.isNotNullOrUndefined(data, 'data'); | ||
Session._applicationId = lib_Guid.tryParse(data.applicationId) || lib_Guid.empty; | ||
var pageIdGuid = lib_Guid.tryParse(data.pageId); | ||
if (!pageIdGuid) { | ||
Log_1.default.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined); | ||
pageIdGuid = Guid_1.default.newGuid(); | ||
log_Log.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined); | ||
pageIdGuid = lib_Guid.newGuid(); | ||
} | ||
@@ -1101,3 +846,3 @@ Session._pageId = pageIdGuid; | ||
Session._changePage = function () { | ||
Session._pageId = Guid_1.default.newGuid(); | ||
Session._pageId = lib_Guid.newGuid(); | ||
}; | ||
@@ -1120,51 +865,7 @@ Object.defineProperty(Session, "applicationId", { | ||
}()); | ||
exports.default = Session; | ||
/* harmony default export */ var lib_Session = (Session_Session); | ||
// CONCATENATED MODULE: ./lib/Environment.js | ||
/***/ }), | ||
/* 21 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = __webpack_require__(2); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var DefaultLogHandler = (function () { | ||
function DefaultLogHandler() { | ||
} | ||
DefaultLogHandler.prototype.verbose = function (source, message, scope) { | ||
if (true) { | ||
console.log(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logVerboseLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.info = function (source, message, scope) { | ||
if (true) { | ||
console.info(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logInfoLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.warn = function (source, message, scope) { | ||
if (true) { | ||
console.warn(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logWarningLevelMessage, source)); | ||
} | ||
}; | ||
DefaultLogHandler.prototype.error = function (source, error, scope) { | ||
if (true) { | ||
console.error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logErrorLevelMessage, source, error.message)); | ||
} | ||
}; | ||
return DefaultLogHandler; | ||
}()); | ||
exports.default = DefaultLogHandler; | ||
/***/ }), | ||
/* 22 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var EnvironmentType; | ||
@@ -1176,12 +877,12 @@ (function (EnvironmentType) { | ||
EnvironmentType[EnvironmentType["ClassicSharePoint"] = 3] = "ClassicSharePoint"; | ||
})(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {})); | ||
var Environment = (function () { | ||
})(EnvironmentType = EnvironmentType || (EnvironmentType = {})); | ||
var Environment_Environment = (function () { | ||
function Environment() { | ||
} | ||
Environment._initialize = function (data) { | ||
Validate_1.default.isNotNullOrUndefined(data, 'data'); | ||
lib_Validate.isNotNullOrUndefined(data, 'data'); | ||
Environment._type = data.type; | ||
Validate_1.default.isNotNullOrUndefined(Environment._type, 'environmentType'); | ||
lib_Validate.isNotNullOrUndefined(Environment._type, 'environmentType'); | ||
if (!EnvironmentType.hasOwnProperty(data.type.toString())) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.invalidEnvironmentTypeError); | ||
throw new Error(SPCoreLibraryStrings_resx.invalidEnvironmentTypeError); | ||
} | ||
@@ -1198,13 +899,7 @@ }; | ||
}()); | ||
exports.default = Environment; | ||
/* harmony default export */ var lib_Environment = (Environment_Environment); | ||
/***/ }), | ||
/* 23 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/SPFlight.js | ||
var DISABLED_FLIGHT_PREFIX = '!'; | ||
var SPFX_DEBUG_FLIGHT_ID = 205; | ||
var SPFlight = (function () { | ||
@@ -1219,2 +914,9 @@ function SPFlight() { | ||
}; | ||
Object.defineProperty(SPFlight, "isDebugFlightEnabled", { | ||
get: function () { | ||
return SPFlight.isEnabled(SPFX_DEBUG_FLIGHT_ID); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
SPFlight.setDebugFlights = function (debugFlights) { | ||
@@ -1228,9 +930,9 @@ if (!this._isInitialized) { | ||
this._forceEnabledFlights = debugFlightStrings | ||
.filter((function (value) { return value[0] !== DISABLED_FLIGHT_PREFIX; })) | ||
.map((function (value) { return parseInt(value, 10); })) | ||
.filter((function (value) { return !isNaN(value); })); | ||
.filter(function (value) { return value[0] !== DISABLED_FLIGHT_PREFIX; }) | ||
.map(function (value) { return parseInt(value, 10); }) | ||
.filter(function (value) { return !isNaN(value); }); | ||
this._forceDisabledFlights = debugFlightStrings | ||
.filter((function (value) { return value[0] === DISABLED_FLIGHT_PREFIX; })) | ||
.map((function (value) { return parseInt(value.slice(1), 10); })) | ||
.filter((function (value) { return !isNaN(value); })); | ||
.filter(function (value) { return value[0] === DISABLED_FLIGHT_PREFIX; }) | ||
.map(function (value) { return parseInt(value.slice(1), 10); }) | ||
.filter(function (value) { return !isNaN(value); }); | ||
console.log("Debug flights are enabled."); | ||
@@ -1284,14 +986,7 @@ if (this._forceEnabledFlights.length > 0) { | ||
}()); | ||
exports.default = SPFlight; | ||
/* harmony default export */ var lib_SPFlight = (SPFlight); | ||
// CONCATENATED MODULE: ./lib/SPKillSwitch.js | ||
/***/ }), | ||
/* 24 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Guid_1 = __webpack_require__(3); | ||
var SPKillSwitch = (function () { | ||
var SPKillSwitch_SPKillSwitch = (function () { | ||
function SPKillSwitch() { | ||
@@ -1305,3 +1000,3 @@ } | ||
var killSwitchGuid = _a[_i]; | ||
var normalizedKillSwitchGuid = Guid_1.default.tryParse(killSwitchGuid); | ||
var normalizedKillSwitchGuid = lib_Guid.tryParse(killSwitchGuid); | ||
if (normalizedKillSwitchGuid) { | ||
@@ -1319,3 +1014,4 @@ this._activatedKillSwitches.set(normalizedKillSwitchGuid.toString(), true); | ||
try { | ||
for (var killSwitch in debugKillswitches.split(',').map((function (value) { return Guid_1.default.tryParse(value); }))) { | ||
for (var _i = 0, _a = debugKillswitches.split(',').map(function (value) { return lib_Guid.tryParse(value); }); _i < _a.length; _i++) { | ||
var killSwitch = _a[_i]; | ||
if (killSwitch) { | ||
@@ -1344,11 +1040,5 @@ this._activatedKillSwitches.set(killSwitch.toString(), true); | ||
}()); | ||
exports.default = SPKillSwitch; | ||
/* harmony default export */ var lib_SPKillSwitch = (SPKillSwitch_SPKillSwitch); | ||
/***/ }), | ||
/* 25 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
// CONCATENATED MODULE: ./lib/SPError.js | ||
var __extends = (this && this.__extends) || (function () { | ||
@@ -1364,6 +1054,5 @@ var extendStatics = Object.setPrototypeOf || | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1); | ||
var SPError = (function (_super) { | ||
var SPError_SPError = (function (_super) { | ||
__extends(SPError, _super); | ||
@@ -1373,4 +1062,4 @@ function SPError(errorCode, message, logProperties) { | ||
_this.__proto__ = SPError.prototype; | ||
Validate_1.default.isNonemptyString(errorCode, 'errorCode'); | ||
Validate_1.default.isNonemptyString(message, 'message'); | ||
lib_Validate.isNonemptyString(errorCode, 'errorCode'); | ||
lib_Validate.isNonemptyString(message, 'message'); | ||
_this._errorCode = errorCode; | ||
@@ -1420,3 +1109,3 @@ _this.message = message; | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorInnerErrorText, | ||
SPCoreLibraryStrings_resx.spErrorInnerErrorText, | ||
this.innerError.message | ||
@@ -1427,3 +1116,3 @@ ]); | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorCallStackText, | ||
SPCoreLibraryStrings_resx.spErrorCallStackText, | ||
this.stack | ||
@@ -1434,3 +1123,3 @@ ]); | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorLogPropertiesText, | ||
SPCoreLibraryStrings_resx.spErrorLogPropertiesText, | ||
JSON.stringify(this._logProperties) | ||
@@ -1446,56 +1135,134 @@ ]); | ||
}(Error)); | ||
exports.default = SPError; | ||
/* harmony default export */ var lib_SPError = (SPError_SPError); | ||
// CONCATENATED MODULE: ./lib/events/SPEventManager.js | ||
/***/ }), | ||
/* 26 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = __webpack_require__(0); | ||
var EventManager_1 = __webpack_require__(7); | ||
var Event = (function () { | ||
function Event(name) { | ||
Validate_1.default.isNonemptyString(name, 'name'); | ||
this._name = name; | ||
var SPEventManager_SPEventManager = (function () { | ||
function SPEventManager() { | ||
this._listeners = new Map(); | ||
this._raisedEvents = new Map(); | ||
} | ||
Event.prototype.add = function (observer, eventHandler) { | ||
Validate_1.default.isNotNullOrUndefined(observer, 'component'); | ||
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
EventManager_1.default.instance.registerEvent(this._name, observer, eventHandler); | ||
Object.defineProperty(SPEventManager, "instance", { | ||
get: function () { | ||
if (!this._instance) { | ||
this._instance = new SPEventManager(); | ||
} | ||
return this._instance; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
SPEventManager.prototype.raiseEvent = function (eventName, eventArgs) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
lib_Validate.isNotNullOrUndefined(eventArgs, 'eventArgs'); | ||
return this._raiseEventInternal(eventName, eventArgs); | ||
}; | ||
Event.prototype.remove = function (observer, eventHandler) { | ||
Validate_1.default.isNotNullOrUndefined(observer, 'component'); | ||
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
EventManager_1.default.instance.unregisterEvent(this._name, observer, eventHandler); | ||
SPEventManager.prototype.raiseStickyEvent = function (eventName, eventArgs) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
lib_Validate.isNotNullOrUndefined(eventArgs, 'eventArgs'); | ||
this._raisedEvents.set(eventName, eventArgs); | ||
return this._raiseEventInternal(eventName, eventArgs); | ||
}; | ||
return Event; | ||
SPEventManager.prototype.registerEvent = function (eventName, observer, eventHandler) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
lib_Validate.isNotNullOrUndefined(observer, 'component'); | ||
lib_Validate.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
if (!this._listeners.has(eventName)) { | ||
this._listeners.set(eventName, []); | ||
} | ||
this._listeners.get(eventName).push({ observer: observer, eventHandler: eventHandler }); | ||
if (this._raisedEvents.has(eventName)) { | ||
eventHandler.apply(observer, this._raisedEvents.get(eventName)); | ||
} | ||
}; | ||
SPEventManager.prototype.unregisterEvent = function (eventName, observer, eventHandler) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
lib_Validate.isNotNullOrUndefined(observer, 'component'); | ||
lib_Validate.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
if (!this._listeners.has(eventName)) { | ||
return; | ||
} | ||
var listeners = this._listeners.get(eventName); | ||
var filteredListeners = listeners.filter(function (el) { return el.observer !== observer || el.eventHandler !== eventHandler; }); | ||
if (filteredListeners.length === listeners.length) { | ||
var errorMessage = lib_Text.format( | ||
'Failed to remove event handler for component "{0}". Event handler was not registered.', observer.componentId); | ||
log_Log.error(SPEventManager._logSource, new Error(errorMessage)); | ||
} | ||
this._listeners.set(eventName, filteredListeners); | ||
}; | ||
SPEventManager.prototype.removeEvent = function (eventName) { | ||
lib_Validate.isNonemptyString(eventName, 'eventName'); | ||
this._listeners.delete(eventName); | ||
}; | ||
SPEventManager.prototype.removeEventsByPrefix = function (eventNamePrefix) { | ||
var _this = this; | ||
lib_Validate.isNonemptyString(eventNamePrefix, 'eventNamePrefix'); | ||
var matchedKeys = []; | ||
this._listeners.forEach(function (value, key) { | ||
if (key.indexOf(eventNamePrefix) === 0) { | ||
matchedKeys.push(key); | ||
} | ||
}); | ||
matchedKeys.forEach(function (key) { return _this._listeners.delete(key); }); | ||
}; | ||
SPEventManager.prototype._raiseEventInternal = function (eventName, eventArgs) { | ||
var _this = this; | ||
if (!this._listeners.has(eventName)) { | ||
return; | ||
} | ||
this._listeners.get(eventName).forEach(function (listener) { | ||
if (listener.observer.isDisposed) { | ||
_this.unregisterEvent(eventName, listener.observer, listener.eventHandler); | ||
} | ||
else { | ||
try { | ||
listener.eventHandler.call(listener.observer, eventArgs); | ||
} | ||
catch (e) { | ||
var errorMessage = lib_Text.format( | ||
'Failed to execute event handler for component "{0}"', listener.observer.componentId); | ||
log_Log.error(SPEventManager._logSource, new Error(errorMessage)); | ||
} | ||
} | ||
}); | ||
}; | ||
SPEventManager._logSource = 'SPEventManager'; | ||
return SPEventManager; | ||
}()); | ||
exports.default = Event; | ||
/* harmony default export */ var events_SPEventManager = (SPEventManager_SPEventManager); | ||
// CONCATENATED MODULE: ./lib/events/SPEvent.js | ||
/***/ }), | ||
/* 27 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var SPEvent_SPEvent = (function () { | ||
function SPEvent(name) { | ||
lib_Validate.isNonemptyString(name, 'name'); | ||
this._name = name; | ||
} | ||
SPEvent.prototype.add = function (observer, eventHandler) { | ||
lib_Validate.isNotNullOrUndefined(observer, 'component'); | ||
lib_Validate.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
events_SPEventManager.instance.registerEvent(this._name, observer, eventHandler); | ||
}; | ||
SPEvent.prototype.remove = function (observer, eventHandler) { | ||
lib_Validate.isNotNullOrUndefined(observer, 'component'); | ||
lib_Validate.isNotNullOrUndefined(eventHandler, 'eventHandler'); | ||
events_SPEventManager.instance.unregisterEvent(this._name, observer, eventHandler); | ||
}; | ||
return SPEvent; | ||
}()); | ||
/* harmony default export */ var events_SPEvent = (SPEvent_SPEvent); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var EventArgs = (function () { | ||
function EventArgs() { | ||
// CONCATENATED MODULE: ./lib/events/SPEventArgs.js | ||
var SPEventArgs = (function () { | ||
function SPEventArgs() { | ||
} | ||
return EventArgs; | ||
return SPEventArgs; | ||
}()); | ||
exports.default = EventArgs; | ||
/* harmony default export */ var events_SPEventArgs = (SPEventArgs); | ||
/***/ }), | ||
/* 28 */ | ||
/***/ ((function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// CONCATENATED MODULE: ./lib/deferredClass/DeferredClass.js | ||
var DeferredClass = (function () { | ||
@@ -1506,7 +1273,7 @@ function DeferredClass() { | ||
} | ||
DeferredClass.instance = function () { | ||
if (!this._instance) { | ||
this._instance = new this(); | ||
DeferredClass._getInstance = function () { | ||
if (!this._internalInstance) { | ||
this._internalInstance = new this(); | ||
} | ||
return this._instance; | ||
return this._internalInstance; | ||
}; | ||
@@ -1532,6 +1299,6 @@ Object.defineProperty(DeferredClass.prototype, "isLoaded", { | ||
this._loadPromise = this._internalLoad(); | ||
this._loadPromise.then((function (type) { | ||
this._loadPromise.then(function (type) { | ||
_this._classType = type; | ||
_this._resolveOnAfterLoadCallbacks(); | ||
})); | ||
}); | ||
} | ||
@@ -1549,6 +1316,98 @@ else { | ||
}()); | ||
exports.default = DeferredClass; | ||
/* harmony default export */ var deferredClass_DeferredClass = (DeferredClass); | ||
// CONCATENATED MODULE: ./lib/index.js | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return Event; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventArgs", function() { return EventArgs; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_BrowserDetection", function() { return lib_BrowserDetection; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "DisplayMode", function() { return lib_DisplayMode; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Guid", function() { return lib_Guid; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "JsonUtilities", function() { return lib_JsonUtilities; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Text", function() { return lib_Text; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Version", function() { return lib_Version; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Validate", function() { return lib_Validate; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "UrlUtilities", function() { return url_UrlUtilities; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "UrlQueryParameterCollection", function() { return url_UrlQueryParameterCollection; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "TimeProvider", function() { return provider_TimeProvider; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "RandomNumberGenerator", function() { return provider_RandomNumberGenerator; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "ServiceKey", function() { return serviceScope_ServiceKey; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "ServiceScope", function() { return serviceScope_ServiceScope; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Session", function() { return lib_Session; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Environment", function() { return lib_Environment; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "EnvironmentType", function() { return EnvironmentType; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_SPFlight", function() { return lib_SPFlight; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_SPKillSwitch", function() { return lib_SPKillSwitch; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "SPError", function() { return lib_SPError; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Log", function() { return log_Log; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "SPEvent", function() { return events_SPEvent; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "SPEventArgs", function() { return events_SPEventArgs; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_SPEventManager", function() { return events_SPEventManager; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "_DeferredClass", function() { return deferredClass_DeferredClass; }); | ||
var lib___extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
/***/ })) | ||
/******/ ])}));; | ||
var Event = (function (_super) { | ||
lib___extends(Event, _super); | ||
function Event() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
return Event; | ||
}(events_SPEvent)); | ||
var EventArgs = (function (_super) { | ||
lib___extends(EventArgs, _super); | ||
function EventArgs() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
return EventArgs; | ||
}(events_SPEventArgs)); | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_2__; | ||
/***/ }) | ||
/******/ ])});; | ||
//# sourceMappingURL=sp-core-library.js.map |
@@ -6,3 +6,3 @@ import Version from './Version'; | ||
*/ | ||
export declare enum Browser { | ||
export declare const enum Browser { | ||
Other = 0, | ||
@@ -19,3 +19,3 @@ Chrome = 1, | ||
*/ | ||
export declare enum OS { | ||
export declare const enum OS { | ||
Other = 0, | ||
@@ -22,0 +22,0 @@ Android = 1, |
@@ -1,23 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Version_1 = require("./Version"); | ||
var Browser; | ||
(function (Browser) { | ||
Browser[Browser["Other"] = 0] = "Other"; | ||
Browser[Browser["Chrome"] = 1] = "Chrome"; | ||
Browser[Browser["Edge"] = 2] = "Edge"; | ||
Browser[Browser["Firefox"] = 3] = "Firefox"; | ||
Browser[Browser["IE"] = 4] = "IE"; | ||
Browser[Browser["Safari"] = 5] = "Safari"; | ||
})(Browser = exports.Browser || (exports.Browser = {})); | ||
var OS; | ||
(function (OS) { | ||
OS[OS["Other"] = 0] = "Other"; | ||
OS[OS["Android"] = 1] = "Android"; | ||
OS[OS["IOS"] = 2] = "IOS"; | ||
OS[OS["Linux"] = 3] = "Linux"; | ||
OS[OS["Mac"] = 4] = "Mac"; | ||
OS[OS["Windows"] = 5] = "Windows"; | ||
OS[OS["WindowsPhone"] = 6] = "WindowsPhone"; | ||
})(OS = exports.OS || (exports.OS = {})); | ||
import Version from './Version'; | ||
var BrowserDetection = (function () { | ||
@@ -36,5 +15,5 @@ function BrowserDetection() { | ||
var browserInfo = { | ||
browser: Browser.Other, | ||
browser: 0 , | ||
browserVersion: undefined, | ||
os: OS.Other, | ||
os: 0 , | ||
osVersion: undefined, | ||
@@ -48,22 +27,22 @@ userAgent: userAgent | ||
BrowserDetection.fillBrowser = function (browserInfo, userAgent) { | ||
var browser = Browser.Other; | ||
var browser = 0 ; | ||
var browserVersion = undefined; | ||
var match; | ||
if (match = /msie (\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.IE; | ||
browser = 4 ; | ||
} | ||
else if (match = /trident.*rv:(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.IE; | ||
browser = 4 ; | ||
} | ||
else if (match = /edge\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Edge; | ||
browser = 2 ; | ||
} | ||
else if (match = /(?:firefox|fxios)\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Firefox; | ||
browser = 3 ; | ||
} | ||
else if (match = /(?:chrome|crios)\/(\d+)([\d.]*)/.exec(userAgent)) { | ||
browser = Browser.Chrome; | ||
browser = 1 ; | ||
} | ||
else if (match = /safari\/(\d+)/.exec(userAgent)) { | ||
browser = Browser.Safari; | ||
browser = 5 ; | ||
match = /version\/(\d+)([\d.]*)/.exec(userAgent); | ||
@@ -81,3 +60,3 @@ } | ||
} | ||
browserVersion = Version_1.default.parse(browserMajor + "." + browserMinor); | ||
browserVersion = Version.parse(browserMajor + "." + browserMinor); | ||
} | ||
@@ -89,3 +68,3 @@ browserInfo.browser = browser; | ||
BrowserDetection.fillOS = function (browserInfo, userAgent) { | ||
var os = OS.Other; | ||
var os = 0 ; | ||
var osVersion = undefined; | ||
@@ -98,9 +77,9 @@ var osVersionMatch = /[\s\(](os|os x|windows phone|windows nt|android) ([\d._]+)/.exec(userAgent); | ||
if (device === 'windows phone' || device === 'wpdesktop') { | ||
os = OS.WindowsPhone; | ||
os = 6 ; | ||
} | ||
if (device === 'android') { | ||
os = OS.Android; | ||
os = 1 ; | ||
} | ||
if (device === 'ipad' || device === 'ipod' || device === 'iphone') { | ||
os = OS.IOS; | ||
os = 2 ; | ||
} | ||
@@ -110,17 +89,17 @@ } | ||
if (userAgent.indexOf('macintosh') !== -1) { | ||
os = OS.Mac; | ||
os = 4 ; | ||
} | ||
if (userAgent.indexOf('windows nt') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
} | ||
if (/(windows 8\.1|windows nt 6\.3)/.test(userAgent)) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '8.1'; | ||
} | ||
if (userAgent.indexOf('windows nt 10') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '10'; | ||
} | ||
if (userAgent.indexOf('windows nt 6.1') !== -1) { | ||
os = OS.Windows; | ||
os = 5 ; | ||
osVersion = '7'; | ||
@@ -135,2 +114,2 @@ } | ||
}()); | ||
exports.default = BrowserDetection; | ||
export default BrowserDetection; |
@@ -15,2 +15,8 @@ /** | ||
* class DeferredFoo extends DeferredClass<typeof Foo, Foo> { | ||
* | ||
* // Static members do not inherit the generic types so we do this to correctly enforce the right typing. | ||
* public static instance() DeferredFoo { | ||
* return this._instance; | ||
* } | ||
* | ||
* public create(arg1: string, arg2: number): Foo { | ||
@@ -20,4 +26,7 @@ * return new this._classType(arg1, arg2); | ||
* | ||
* protected _require(): Promise<Type> { | ||
* // code to lazy load e.g. require.ensure(...) or import(...) | ||
* protected _internalLoad(): Promise<Type> { | ||
* // code to lazy load e.g. require.ensure(...) | ||
* // or import(...) | ||
* // or SPComponentLoader.loadComponentById(...).then( | ||
* // (module: typeof DeferredFooModuleType) => { return module.DeferredFoo; }); | ||
* } | ||
@@ -32,3 +41,3 @@ * } | ||
*/ | ||
private static _instance; | ||
private static _internalInstance; | ||
/** | ||
@@ -51,7 +60,7 @@ * Resolves after _loadPromise resolves. | ||
/** | ||
* Return the singleton for the derived DeferredClass. | ||
* Initialize, if needed, the _internalInstance singleton. | ||
* | ||
* @param constructor - The type of the class deriving DeferredClass. | ||
* @returns - The singleton instance. | ||
*/ | ||
static instance<ChildClass>(): ChildClass; | ||
protected static _getInstance(): any; | ||
/** | ||
@@ -58,0 +67,0 @@ * Instantiate an instance of Type. |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DeferredClass = (function () { | ||
@@ -8,7 +6,7 @@ function DeferredClass() { | ||
} | ||
DeferredClass.instance = function () { | ||
if (!this._instance) { | ||
this._instance = new this(); | ||
DeferredClass._getInstance = function () { | ||
if (!this._internalInstance) { | ||
this._internalInstance = new this(); | ||
} | ||
return this._instance; | ||
return this._internalInstance; | ||
}; | ||
@@ -50,2 +48,2 @@ Object.defineProperty(DeferredClass.prototype, "isLoaded", { | ||
}()); | ||
exports.default = DeferredClass; | ||
export default DeferredClass; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DisplayMode; | ||
@@ -8,2 +6,2 @@ (function (DisplayMode) { | ||
})(DisplayMode || (DisplayMode = {})); | ||
exports.default = DisplayMode; | ||
export default DisplayMode; |
@@ -1,6 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = require("./Validate"); | ||
var SPCoreLibraryStrings_resx_1 = require("./SPCoreLibraryStrings.resx"); | ||
var EnvironmentType; | ||
import Validate from './Validate'; | ||
import strings from './SPCoreLibraryStrings.resx'; | ||
export var EnvironmentType; | ||
(function (EnvironmentType) { | ||
@@ -11,3 +9,3 @@ EnvironmentType[EnvironmentType["Test"] = 0] = "Test"; | ||
EnvironmentType[EnvironmentType["ClassicSharePoint"] = 3] = "ClassicSharePoint"; | ||
})(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {})); | ||
})(EnvironmentType = EnvironmentType || (EnvironmentType = {})); | ||
var Environment = (function () { | ||
@@ -17,7 +15,7 @@ function Environment() { | ||
Environment._initialize = function (data) { | ||
Validate_1.default.isNotNullOrUndefined(data, 'data'); | ||
Validate.isNotNullOrUndefined(data, 'data'); | ||
Environment._type = data.type; | ||
Validate_1.default.isNotNullOrUndefined(Environment._type, 'environmentType'); | ||
Validate.isNotNullOrUndefined(Environment._type, 'environmentType'); | ||
if (!EnvironmentType.hasOwnProperty(data.type.toString())) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.invalidEnvironmentTypeError); | ||
throw new Error(strings.invalidEnvironmentTypeError); | ||
} | ||
@@ -34,2 +32,2 @@ }; | ||
}()); | ||
exports.default = Environment; | ||
export default Environment; |
@@ -1,6 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = require("./Validate"); | ||
var Text_1 = require("./Text"); | ||
var SPCoreLibraryStrings_resx_1 = require("./SPCoreLibraryStrings.resx"); | ||
import Validate from './Validate'; | ||
import Text from './Text'; | ||
import strings from './SPCoreLibraryStrings.resx'; | ||
var Guid = (function () { | ||
@@ -16,3 +14,3 @@ function Guid(guid) { | ||
if (!guid) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.invalidGuidStringError, guidString)); | ||
throw new Error(Text.format(strings.invalidGuidStringError, guidString)); | ||
} | ||
@@ -40,3 +38,3 @@ return guid; | ||
Guid._normalize = function (guid) { | ||
Validate_1.default.isNonemptyString(guid, 'guid'); | ||
Validate.isNonemptyString(guid, 'guid'); | ||
var result = /^Guid\((.*)\)/i.exec(guid); | ||
@@ -61,3 +59,3 @@ if (result) { | ||
Guid.prototype.equals = function (guid) { | ||
Validate_1.default.isNotNullOrUndefined(guid, 'guid'); | ||
Validate.isNotNullOrUndefined(guid, 'guid'); | ||
return guid && this._guid.toString() === guid.toString(); | ||
@@ -72,2 +70,2 @@ }; | ||
}()); | ||
exports.default = Guid; | ||
export default Guid; |
@@ -30,3 +30,3 @@ /** | ||
*/ | ||
export declare enum BrowserSupportLevel { | ||
export declare const enum BrowserSupportLevel { | ||
/** | ||
@@ -33,0 +33,0 @@ * None: Support level is not available. No assumptions can be made. |
@@ -0,1 +1,12 @@ | ||
/** | ||
* SharePoint Framework core libraries. | ||
* | ||
* @remarks | ||
* This package provides a foundation of core classes that ensure a consistent character | ||
* across all the other SharePoint Framework APIs. Because this package is a dependency | ||
* of every other package, its design prioritizes small code size and broad applicability, | ||
* versus flexibility or richness of features. | ||
* | ||
* @packagedocumentation | ||
*/ | ||
export { default as _BrowserDetection, Browser as _Browser, IBrowserInformation as _IBrowserInformation, OS as _OS } from './BrowserDetection'; | ||
@@ -24,6 +35,28 @@ export { default as DisplayMode } from './DisplayMode'; | ||
export { IDisposable } from './IDisposable'; | ||
export { default as Event } from './events/Event'; | ||
export { default as EventArgs } from './events/EventArgs'; | ||
export { default as _EventManager } from './events/EventManager'; | ||
export { IEventObserver } from './events/IEventObserver'; | ||
export { default as SPEvent } from './events/SPEvent'; | ||
export { default as SPEventArgs } from './events/SPEventArgs'; | ||
export { default as _SPEventManager } from './events/SPEventManager'; | ||
export { ISPEventObserver } from './events/ISPEventObserver'; | ||
import { default as SPEvent } from './events/SPEvent'; | ||
import { default as SPEventArgs } from './events/SPEventArgs'; | ||
/** | ||
* DO NOT USE THIS DEFINITION. | ||
* @remarks | ||
* This is a backwards compatibility shim for legacy third-party bundles that imported the | ||
* old "Event" class. It was renamed to solve a naming conflict with the brower DOM "Event". | ||
* @internal @preapproved | ||
* @deprecated Use the SPEvent class instead. | ||
*/ | ||
export declare class Event<T> extends SPEvent<T> { | ||
} | ||
/** | ||
* DO NOT USE THIS DEFINITION. | ||
* @remarks | ||
* This is a backwards compatibility shim for legacy third-party bundles that imported the | ||
* old "EventArgs" class. It was renamed to solve a naming conflict with the brower DOM "Event". | ||
* @internal @preapproved | ||
* @deprecated Use the SPEvent class instead. | ||
*/ | ||
export declare class EventArgs extends SPEventArgs { | ||
} | ||
export { default as _DeferredClass } from './deferredClass/DeferredClass'; |
104
lib/index.js
@@ -1,53 +0,51 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var BrowserDetection_1 = require("./BrowserDetection"); | ||
exports._BrowserDetection = BrowserDetection_1.default; | ||
exports._Browser = BrowserDetection_1.Browser; | ||
exports._OS = BrowserDetection_1.OS; | ||
var DisplayMode_1 = require("./DisplayMode"); | ||
exports.DisplayMode = DisplayMode_1.default; | ||
var Guid_1 = require("./Guid"); | ||
exports.Guid = Guid_1.default; | ||
var IBrowserCompatibility_1 = require("./IBrowserCompatibility"); | ||
exports.BrowserSupportLevel = IBrowserCompatibility_1.BrowserSupportLevel; | ||
var JsonUtilities_1 = require("./JsonUtilities"); | ||
exports.JsonUtilities = JsonUtilities_1.default; | ||
var Text_1 = require("./Text"); | ||
exports.Text = Text_1.default; | ||
var Version_1 = require("./Version"); | ||
exports.Version = Version_1.default; | ||
var Validate_1 = require("./Validate"); | ||
exports.Validate = Validate_1.default; | ||
var UrlUtilities_1 = require("./url/UrlUtilities"); | ||
exports.UrlUtilities = UrlUtilities_1.default; | ||
var UrlQueryParameterCollection_1 = require("./url/UrlQueryParameterCollection"); | ||
exports.UrlQueryParameterCollection = UrlQueryParameterCollection_1.default; | ||
var TimeProvider_1 = require("./serviceScope/provider/TimeProvider"); | ||
exports.TimeProvider = TimeProvider_1.default; | ||
var RandomNumberGenerator_1 = require("./serviceScope/provider/RandomNumberGenerator"); | ||
exports.RandomNumberGenerator = RandomNumberGenerator_1.default; | ||
var ServiceKey_1 = require("./serviceScope/ServiceKey"); | ||
exports.ServiceKey = ServiceKey_1.default; | ||
var ServiceScope_1 = require("./serviceScope/ServiceScope"); | ||
exports.ServiceScope = ServiceScope_1.default; | ||
var Session_1 = require("./Session"); | ||
exports.Session = Session_1.default; | ||
var Environment_1 = require("./Environment"); | ||
exports.Environment = Environment_1.default; | ||
exports.EnvironmentType = Environment_1.EnvironmentType; | ||
var SPFlight_1 = require("./SPFlight"); | ||
exports._SPFlight = SPFlight_1.default; | ||
var SPKillSwitch_1 = require("./SPKillSwitch"); | ||
exports._SPKillSwitch = SPKillSwitch_1.default; | ||
var SPError_1 = require("./SPError"); | ||
exports.SPError = SPError_1.default; | ||
var Log_1 = require("./log/Log"); | ||
exports.Log = Log_1.default; | ||
var Event_1 = require("./events/Event"); | ||
exports.Event = Event_1.default; | ||
var EventArgs_1 = require("./events/EventArgs"); | ||
exports.EventArgs = EventArgs_1.default; | ||
var EventManager_1 = require("./events/EventManager"); | ||
exports._EventManager = EventManager_1.default; | ||
var DeferredClass_1 = require("./deferredClass/DeferredClass"); | ||
exports._DeferredClass = DeferredClass_1.default; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
export { default as _BrowserDetection } from './BrowserDetection'; | ||
export { default as DisplayMode } from './DisplayMode'; | ||
export { default as Guid } from './Guid'; | ||
export { default as JsonUtilities } from './JsonUtilities'; | ||
export { default as Text } from './Text'; | ||
export { default as Version } from './Version'; | ||
export { default as Validate } from './Validate'; | ||
export { default as UrlUtilities } from './url/UrlUtilities'; | ||
export { default as UrlQueryParameterCollection } from './url/UrlQueryParameterCollection'; | ||
export { default as TimeProvider } from './serviceScope/provider/TimeProvider'; | ||
export { default as RandomNumberGenerator } from './serviceScope/provider/RandomNumberGenerator'; | ||
export { default as ServiceKey } from './serviceScope/ServiceKey'; | ||
export { default as ServiceScope } from './serviceScope/ServiceScope'; | ||
export { default as Session } from './Session'; | ||
export { default as Environment, EnvironmentType } from './Environment'; | ||
export { default as _SPFlight } from './SPFlight'; | ||
export { default as _SPKillSwitch } from './SPKillSwitch'; | ||
export { default as SPError } from './SPError'; | ||
export { default as Log } from './log/Log'; | ||
export { default as SPEvent } from './events/SPEvent'; | ||
export { default as SPEventArgs } from './events/SPEventArgs'; | ||
export { default as _SPEventManager } from './events/SPEventManager'; | ||
import { default as SPEvent } from './events/SPEvent'; | ||
import { default as SPEventArgs } from './events/SPEventArgs'; | ||
var Event = (function (_super) { | ||
__extends(Event, _super); | ||
function Event() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
return Event; | ||
}(SPEvent)); | ||
export { Event }; | ||
var EventArgs = (function (_super) { | ||
__extends(EventArgs, _super); | ||
function EventArgs() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
return EventArgs; | ||
}(SPEventArgs)); | ||
export { EventArgs }; | ||
export { default as _DeferredClass } from './deferredClass/DeferredClass'; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var JsonUtilities = (function () { | ||
@@ -29,2 +27,2 @@ function JsonUtilities() { | ||
}()); | ||
exports.default = JsonUtilities; | ||
export default JsonUtilities; |
@@ -1,5 +0,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = require("../Text"); | ||
var SPCoreLibraryStrings_resx_1 = require("./../SPCoreLibraryStrings.resx"); | ||
import Text from '../Text'; | ||
import strings from './../SPCoreLibraryStrings.resx'; | ||
var DefaultLogHandler = (function () { | ||
@@ -10,3 +8,3 @@ function DefaultLogHandler() { | ||
if (DEBUG && !DEPRECATED_UNIT_TEST) { | ||
console.log(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logVerboseLevelMessage, source)); | ||
console.log(Text.format(strings.logVerboseLevelMessage, source)); | ||
} | ||
@@ -16,3 +14,3 @@ }; | ||
if (DEBUG && !DEPRECATED_UNIT_TEST) { | ||
console.info(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logInfoLevelMessage, source)); | ||
console.info(Text.format(strings.logInfoLevelMessage, source)); | ||
} | ||
@@ -22,3 +20,3 @@ }; | ||
if (DEBUG && !DEPRECATED_UNIT_TEST) { | ||
console.warn(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logWarningLevelMessage, source)); | ||
console.warn(Text.format(strings.logWarningLevelMessage, source)); | ||
} | ||
@@ -28,3 +26,3 @@ }; | ||
if (DEBUG && !DEPRECATED_UNIT_TEST) { | ||
console.error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logErrorLevelMessage, source, error.message)); | ||
console.error(Text.format(strings.logErrorLevelMessage, source, error.message)); | ||
} | ||
@@ -34,2 +32,2 @@ }; | ||
}()); | ||
exports.default = DefaultLogHandler; | ||
export default DefaultLogHandler; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DefaultLogHandler_1 = require("./DefaultLogHandler"); | ||
import DefaultLogHandler from './DefaultLogHandler'; | ||
var Log = (function () { | ||
@@ -22,5 +20,5 @@ function Log() { | ||
}; | ||
Log._logHandler = new DefaultLogHandler_1.default(); | ||
Log._logHandler = new DefaultLogHandler(); | ||
return Log; | ||
}()); | ||
exports.default = Log; | ||
export default Log; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "يجب ألا تكون قيمة \"{0}\" سلسلة فارغة", | ||
"isDisposedValidateError": "لا يمكن استخدام عنصر \"{0}\" لأنه تم التخلص منه.", | ||
"invalidVersionStringError": "سلسلة إصدار غير صالحة: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: VERBOSE {1}", | ||
"spErrorCallStackText": "مكدس الاستدعاءات:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "يوجد مصدر بالمعرفّ \"{0}\" بالفعل.", | ||
"dynamicDataManagerSourceDoesntExist": "لم يتم العثور على مصدر بالمعرّف \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "\"{0}\" üçün dəyər boş sətir ola bilməz", | ||
"isDisposedValidateError": "\"{0}\" obyekti istifadə edilə bilməz, çünki o, silinib.", | ||
"invalidVersionStringError": "Yanlış versiya sətri: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: ƏTRAFLI {1}", | ||
"spErrorCallStackText": "ZƏNG YIĞINI:", | ||
"spErrorLogPropertiesText": "GİRİŞ XÜSUSİYYƏTLƏRİ:" | ||
"spErrorLogPropertiesText": "GİRİŞ XÜSUSİYYƏTLƏRİ:", | ||
"dynamicDataManagerSourceAlreadyExists": "\"{0}\" id-si ilə mənbə artıq mövcuddur.", | ||
"dynamicDataManagerSourceDoesntExist": "\"{0}\" id-si ilə mənbə tapılmadı." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Стойността за \"{0}\" не трябва да е празен низ", | ||
"isDisposedValidateError": "Обектът \"{0}\" не може да се използва, защото е ликвидиран.", | ||
"invalidVersionStringError": "Невалиден низ за версия: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: ПОДРОБНОСТИ {1}", | ||
"spErrorCallStackText": "CALLSTACK:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Източник с ИД \"{0}\" вече съществува.", | ||
"dynamicDataManagerSourceDoesntExist": "Не е намерен източник с ИД \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Vrijednost za \"{0}\" ne smije biti prazan string", | ||
"isDisposedValidateError": "Nije moguće koristiti objekt \"{0}\" zato što je on uklonjen.", | ||
"invalidVersionStringError": "Nevažeći string verzije: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DETALJNO {1}", | ||
"spErrorCallStackText": "STOG POZIVA:", | ||
"spErrorLogPropertiesText": "SVOJSTVA DNEVNIKA RADA:" | ||
"spErrorLogPropertiesText": "SVOJSTVA DNEVNIKA RADA:", | ||
"dynamicDataManagerSourceAlreadyExists": "Izvor s ID-om \"{0}\" već postoji.", | ||
"dynamicDataManagerSourceDoesntExist": "Nije pronađen nijedan izvor s ID-om \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "El valor per a \"{0}\" no ha de ser una cadena buida", | ||
"isDisposedValidateError": "L'objecte \"{0}\" no es pot utilitzar perquè s'ha eliminat.", | ||
"invalidVersionStringError": "La cadena de versió no és vàlida: \"{0}\".", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}. DETALLAT: {1}.", | ||
"spErrorCallStackText": "PILA DE TRUCADES:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Ja hi ha una font amb l'identificador \"{0}\".", | ||
"dynamicDataManagerSourceDoesntExist": "No s'ha trobat cap font amb l'identificador \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Hodnota proměnné {0} nesmí být prázdný řetězec.", | ||
"isDisposedValidateError": "Objekt {0} není možné použít, protože je odstraněný.", | ||
"invalidVersionStringError": "Neplatný řetězec verze: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: PODROBNÝ VÝPIS: {1}", | ||
"spErrorCallStackText": "ZÁSOBNÍK VOLÁNÍ:", | ||
"spErrorLogPropertiesText": "VLASTNOSTI PROTOKOLU:" | ||
"spErrorLogPropertiesText": "VLASTNOSTI PROTOKOLU:", | ||
"dynamicDataManagerSourceAlreadyExists": "Zdroj s ID {0} už existuje.", | ||
"dynamicDataManagerSourceDoesntExist": "Nenašel se žádný zdroj s ID {0}." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Rhaid i’r gwerth ar gyfer \"{0}\" beidio â bod yn llinyn gwag", | ||
"isDisposedValidateError": "Does dim modd defnyddio’r gwrthrych \"{0}\" oherwydd ei fod wedi’i waredu.", | ||
"invalidVersionStringError": "Llinyn fersiwn annilys: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: AMLEIRIOG {1}", | ||
"spErrorCallStackText": "PENTWR GALWADAU:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Mae ffynhonnell gyda’r id \"{0}\" eisoes yn bodoli.", | ||
"dynamicDataManagerSourceDoesntExist": "Heb ganfod ffynhonnell gyda’r id \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Værdien for \"{0}\" må ikke være en tom streng", | ||
"isDisposedValidateError": "\"{0}\"-objektet kan ikke bruges, fordi det er fjernet.", | ||
"invalidVersionStringError": "Ugyldig versionsstreng: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DETALJERET {1}", | ||
"spErrorCallStackText": "STAKAFKALD:", | ||
"spErrorLogPropertiesText": "LOGEGENSKABER:" | ||
"spErrorLogPropertiesText": "LOGEGENSKABER:", | ||
"dynamicDataManagerSourceAlreadyExists": "En kilde med id \"{0}\" findes allerede.", | ||
"dynamicDataManagerSourceDoesntExist": "Der blev ikke fundet nogen kilde med id \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Der Wert für \"{0}\" darf keine leere Zeichenfolge sein.", | ||
"isDisposedValidateError": "Das Objekt \"{0}\" kann nicht verwendet werden, weil es entfernt wurde.", | ||
"invalidVersionStringError": "Ungültige Versionszeichenfolge: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: AUSFÜHRLICH {1}", | ||
"spErrorCallStackText": "AUFRUFLISTE:", | ||
"spErrorLogPropertiesText": "PROTOKOLLEIGENSCHAFTEN:" | ||
"spErrorLogPropertiesText": "PROTOKOLLEIGENSCHAFTEN:", | ||
"dynamicDataManagerSourceAlreadyExists": "Eine Quelle mit der ID \"{0}\" ist bereits vorhanden.", | ||
"dynamicDataManagerSourceDoesntExist": "Keine Quelle mit der ID \"{0}\" gefunden." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "isEmptyStringValidateError", | ||
"isDisposedValidateError": "isDisposedValidateError", | ||
"invalidVersionStringError": "invalidVersionStringError", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "logVerboseLevelMessage", | ||
"spErrorCallStackText": "spErrorCallStackText", | ||
"spErrorLogPropertiesText": "spErrorLogPropertiesText" | ||
"spErrorLogPropertiesText": "spErrorLogPropertiesText", | ||
"dynamicDataManagerSourceAlreadyExists": "dynamicDataManagerSourceAlreadyExists", | ||
"dynamicDataManagerSourceDoesntExist": "dynamicDataManagerSourceDoesntExist" | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -9,2 +9,3 @@ { | ||
"isEmptyStringValidateError": "isEmptyStringValidateError", | ||
"isDisposedValidateError": "isDisposedValidateError", | ||
"invalidVersionStringError": "invalidVersionStringError", | ||
@@ -22,4 +23,6 @@ "logVerboseLevelMessage": "logVerboseLevelMessage", | ||
"spErrorCallStackText": "spErrorCallStackText", | ||
"spErrorLogPropertiesText": "spErrorLogPropertiesText" | ||
"spErrorLogPropertiesText": "spErrorLogPropertiesText", | ||
"dynamicDataManagerSourceAlreadyExists": "dynamicDataManagerSourceAlreadyExists", | ||
"dynamicDataManagerSourceDoesntExist": "dynamicDataManagerSourceDoesntExist" | ||
} | ||
} |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Η τιμή για το στοιχείο \"{0}\" δεν θα πρέπει να είναι μια κενή συμβολοσειρά", | ||
"isDisposedValidateError": "Το αντικείμενο \"{0}\" δεν μπορεί να χρησιμοποιηθεί καθώς έχει διαγραφεί.", | ||
"invalidVersionStringError": "Μη έγκυρη συμβολοσειρά έκδοσης: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: ΛΕΠΤΟΜΕΡΕΙΕΣ {1}", | ||
"spErrorCallStackText": "ΣΤΟΙΒΑ ΚΛΗΣΕΩΝ:", | ||
"spErrorLogPropertiesText": "ΙΔΙΟΤΗΤΕΣ ΚΑΤΑΓΡΑΦΗΣ:" | ||
"spErrorLogPropertiesText": "ΙΔΙΟΤΗΤΕΣ ΚΑΤΑΓΡΑΦΗΣ:", | ||
"dynamicDataManagerSourceAlreadyExists": "Υπάρχει ήδη προέλευση με αναγνωριστικό \"{0}\".", | ||
"dynamicDataManagerSourceDoesntExist": "Δεν εντοπίστηκε προέλευση με αναγνωριστικό \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -27,2 +27,6 @@ { | ||
}, | ||
"isDisposedValidateError": { | ||
"comment": "Error to show when the Validate.isNotDisposed() returns false. The {0} placeholder is the input's class name.", | ||
"value": "The \"{0}\" object cannot be used because it has been disposed." | ||
}, | ||
"invalidVersionStringError": { | ||
@@ -79,4 +83,12 @@ "comment": "Error to show when the Version class fails to parse an invalid Version string. The {0} placeholder is the input version string.", | ||
"value": "LOGPROPERTIES:" | ||
}, | ||
"dynamicDataManagerSourceAlreadyExists": { | ||
"comment": "Error message when trying to add a Dynamic Data Source that already exists. {0} is the source id.", | ||
"value": "A source with id \"{0}\" already exists." | ||
}, | ||
"dynamicDataManagerSourceDoesntExist": { | ||
"comment": "Error message when refering to a Dynamic Data Source that doesn't exist. {0} is the source id.", | ||
"value": "No source with id \"{0}\" found." | ||
} | ||
} | ||
} |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "***The value for \"{0}\" must not be an empty string", | ||
"isDisposedValidateError": "***The \"{0}\" object cannot be used because it has been disposed.", | ||
"invalidVersionStringError": "***Invalid version string: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "***{0}: VERBOSE {1}", | ||
"spErrorCallStackText": "***CALLSTACK:", | ||
"spErrorLogPropertiesText": "***LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "***LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "***A source with id \"{0}\" already exists.", | ||
"dynamicDataManagerSourceDoesntExist": "***No source with id \"{0}\" found." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -9,2 +9,3 @@ { | ||
"isEmptyStringValidateError": "***The value for \"{0}\" must not be an empty string", | ||
"isDisposedValidateError": "***The \"{0}\" object cannot be used because it has been disposed.", | ||
"invalidVersionStringError": "***Invalid version string: \"{0}\"", | ||
@@ -22,4 +23,6 @@ "logVerboseLevelMessage": "***{0}: VERBOSE {1}", | ||
"spErrorCallStackText": "***CALLSTACK:", | ||
"spErrorLogPropertiesText": "***LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "***LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "***A source with id \"{0}\" already exists.", | ||
"dynamicDataManagerSourceDoesntExist": "***No source with id \"{0}\" found." | ||
} | ||
} |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "El valor de \"{0}\" no debe ser una cadena vacía", | ||
"isDisposedValidateError": "El objeto \"{0}\" no se puede usar porque se ha eliminado.", | ||
"invalidVersionStringError": "Cadena de versión no válida: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DETALLADO {1}", | ||
"spErrorCallStackText": "PILADELLAMADAS:", | ||
"spErrorLogPropertiesText": "PROPIEDADESDEREGISTRO:" | ||
"spErrorLogPropertiesText": "PROPIEDADESDEREGISTRO:", | ||
"dynamicDataManagerSourceAlreadyExists": "Ya existe un origen con el id. \"{0}\".", | ||
"dynamicDataManagerSourceDoesntExist": "No se ha encontrado ningún origen con id. \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Muutuja \"{0}\" väärtus ei tohi olla tühi string", | ||
"isDisposedValidateError": "Objekti \"{0}\" ei saa kasutada, kuna see on likvideeritud.", | ||
"invalidVersionStringError": "Sobimatu versioonistring: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: PALJUSÕNALINE {1}", | ||
"spErrorCallStackText": "KUTSEPINU:", | ||
"spErrorLogPropertiesText": "LOGI ATRIBUUDID:" | ||
"spErrorLogPropertiesText": "LOGI ATRIBUUDID:", | ||
"dynamicDataManagerSourceAlreadyExists": "Allikas ID-ga \"{0}\" on juba olemas.", | ||
"dynamicDataManagerSourceDoesntExist": "Allikat, mille ID on \"{0}\", ei leitud." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "\"{0}\" balioa ezin da utzi hutsik", | ||
"isDisposedValidateError": "\"{0}\" objektua ezin da erabili, ezabatu egin delako.", | ||
"invalidVersionStringError": "Bertsioaren kate honek ez du balio: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: XEHETASUNA {1}", | ||
"spErrorCallStackText": "DEI-PILA:", | ||
"spErrorLogPropertiesText": "EGUNKARI-PROPIETATEAK:" | ||
"spErrorLogPropertiesText": "EGUNKARI-PROPIETATEAK:", | ||
"dynamicDataManagerSourceAlreadyExists": "Lehendik dago \"{0}\" IDa duen iturburu bat.", | ||
"dynamicDataManagerSourceDoesntExist": "Ez da aurkitu \"{0}\" IDa duen iturbururik." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Muuttujan {0} arvo ei saa olla tyhjä merkkijono", | ||
"isDisposedValidateError": "Objektia {0} ei voi käyttää, koska se on poistettu.", | ||
"invalidVersionStringError": "Virheellinen versiomerkkijono: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: SANALLINEN {1}", | ||
"spErrorCallStackText": "KUTSUPINO:", | ||
"spErrorLogPropertiesText": "LOKIN OMINAISUUDET:" | ||
"spErrorLogPropertiesText": "LOKIN OMINAISUUDET:", | ||
"dynamicDataManagerSourceAlreadyExists": "Lähde, jonka tunnus on {0}, on jo olemassa.", | ||
"dynamicDataManagerSourceDoesntExist": "Lähdettä, jonka tunnus on {0}, ei löytynyt." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "La valeur de « {0} » ne doit pas être une chaîne vide", | ||
"isDisposedValidateError": "L’objet « {0} » ne peut pas être utilisé, car il a été supprimé.", | ||
"invalidVersionStringError": "Chaîne de version non valide : « {0} »", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0} : COMMENTAIRES {1}", | ||
"spErrorCallStackText": "PILE D’APPELS :", | ||
"spErrorLogPropertiesText": "PROPRIÉTÉS DU JOURNAL :" | ||
"spErrorLogPropertiesText": "PROPRIÉTÉS DU JOURNAL :", | ||
"dynamicDataManagerSourceAlreadyExists": "Une source associée à l’ID « {0} » existe déjà.", | ||
"dynamicDataManagerSourceDoesntExist": "Aucune source associée à l’ID « {0} » n’a été trouvée." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Níor cheart luach teaghráin fholaimh a bheith ar “{0}”", | ||
"isDisposedValidateError": "Ní féidir an oibiacht “{0}” a úsáid toisc go ndearnadh é a dhiúscairt.", | ||
"invalidVersionStringError": "Teaghrán neamhbhailí leagain: “{0}”", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: Foclach: {1}", | ||
"spErrorCallStackText": "Glaochruach:", | ||
"spErrorLogPropertiesText": "Airíonna loga:" | ||
"spErrorLogPropertiesText": "Airíonna loga:", | ||
"dynamicDataManagerSourceAlreadyExists": "Tá foinse ann cheana a bhfuil an ID “{0}” aici.", | ||
"dynamicDataManagerSourceDoesntExist": "Níor aimsíodh foinse a bhfuil an ID “{0}” aici." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "O valor de \"{0}\" non pode ser unha cadea baleira", | ||
"isDisposedValidateError": "Non se pode usar o obxecto \"{0}\" porque se eliminou.", | ||
"invalidVersionStringError": "Cadea de versión inválida: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DETALLADO {1}", | ||
"spErrorCallStackText": "MONTÓN DE CHAMADAS:", | ||
"spErrorLogPropertiesText": "PROPIEDADES DE REXISTRO:" | ||
"spErrorLogPropertiesText": "PROPIEDADES DE REXISTRO:", | ||
"dynamicDataManagerSourceAlreadyExists": "Xa existe unha orixe co ID \"{0}\".", | ||
"dynamicDataManagerSourceDoesntExist": "Non se atopou ningunha orixe co ID \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "הערך עבור \"{0}\" אינו יכול להיות מחרוזת ריקה", | ||
"isDisposedValidateError": "אין אפשרות להשתמש באובייקט \"{0}\" מכיוון שהוא הושלך.", | ||
"invalidVersionStringError": "מחרוזת גירסה לא חוקית: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: מילולי {1}", | ||
"spErrorCallStackText": "מחסנית קריאות:", | ||
"spErrorLogPropertiesText": "מאפייני יומן רישום:" | ||
"spErrorLogPropertiesText": "מאפייני יומן רישום:", | ||
"dynamicDataManagerSourceAlreadyExists": "מקור בעל המזהה \"{0}\" כבר קיים.", | ||
"dynamicDataManagerSourceDoesntExist": "מקור בעל המזהה \"{0}\" לא נמצא." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "\"{0}\" का मान रिक्त स्ट्रिंग नहीं होना चाहिए", | ||
"isDisposedValidateError": "\"{0}\" ऑब्जेक्ट उपयोग नहीं किया जा सकता क्योंकि इसे समाप्त किया जा चुका है.", | ||
"invalidVersionStringError": "अमान्य संस्करण स्ट्रिंग: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: वर्बोज़ {1}", | ||
"spErrorCallStackText": "कॉलस्टैक:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "\"{0}\" id वाला स्रोत पहले से मौजूद है.", | ||
"dynamicDataManagerSourceDoesntExist": "\"{0}\" id वाला कोई स्रोत नहीं मिला." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Vrijednost za \"{0}\" ne smije biti prazan niz", | ||
"isDisposedValidateError": "Objekt \"{0}\" se ne može koristiti jer je odbačen.", | ||
"invalidVersionStringError": "Sljedeći niz verzije nije valjan: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: OPŠIRNO {1}", | ||
"spErrorCallStackText": "STOG POZIVA:", | ||
"spErrorLogPropertiesText": "SVOJSTVA ZAPISNIKA:" | ||
"spErrorLogPropertiesText": "SVOJSTVA ZAPISNIKA:", | ||
"dynamicDataManagerSourceAlreadyExists": "Izvor s ID-jem \"{0}\" već postoji.", | ||
"dynamicDataManagerSourceDoesntExist": "Nije pronađen nijedan izvor s ID-jem \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "A(z) {0} változó értéke nem lehet üres karakterlánc", | ||
"isDisposedValidateError": "A {0} objektum nem használható, mert már törölték.", | ||
"invalidVersionStringError": "Érvénytelen verziószám-karakterlánc: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: A HIBA RÉSZLETESEN: {1}", | ||
"spErrorCallStackText": "HÍVÁSI VEREM:", | ||
"spErrorLogPropertiesText": "NAPLÓ TULAJDONSÁGAI:" | ||
"spErrorLogPropertiesText": "NAPLÓ TULAJDONSÁGAI:", | ||
"dynamicDataManagerSourceAlreadyExists": "Már létezik „{0}” azonosítójú forrás.", | ||
"dynamicDataManagerSourceDoesntExist": "Nem található „{0}” azonosítójú forrás." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Nilai untuk \"{0}\" tidak boleh berupa string kosong", | ||
"isDisposedValidateError": "Objek \"{0}\" tidak dapat digunakan karena telah dibuang.", | ||
"invalidVersionStringError": "String versi tidak valid: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: VERBOSE {1}", | ||
"spErrorCallStackText": "TUMPUKANPANGGILAN:", | ||
"spErrorLogPropertiesText": "PROPERTILOG:" | ||
"spErrorLogPropertiesText": "PROPERTILOG:", | ||
"dynamicDataManagerSourceAlreadyExists": "Sumber dengan ID \"{0}\" sudah ada.", | ||
"dynamicDataManagerSourceDoesntExist": "Tidak ditemukan sumber dengan ID \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Il valore per \"{0}\" non deve essere una stringa vuota", | ||
"isDisposedValidateError": "Non è possibile usare l'oggetto \"{0}\" perché è stato eliminato.", | ||
"invalidVersionStringError": "Stringa di versione non valida: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: INFORMAZIONI DETTAGLIATE {1}", | ||
"spErrorCallStackText": "STACK DI CHIAMATE:", | ||
"spErrorLogPropertiesText": "PROPRIETÀ LOG:" | ||
"spErrorLogPropertiesText": "PROPRIETÀ LOG:", | ||
"dynamicDataManagerSourceAlreadyExists": "Esiste già un'origine con ID \"{0}\".", | ||
"dynamicDataManagerSourceDoesntExist": "Non è stata trovata nessuna origine con ID \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "\"{0}\" の値は空の文字列にできません", | ||
"isDisposedValidateError": "\"{0}\" オブジェクトは破棄されたため、使用できません。", | ||
"invalidVersionStringError": "バージョン文字列 \"{0}\" が無効です", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: 詳細 {1}", | ||
"spErrorCallStackText": "呼び出し履歴:", | ||
"spErrorLogPropertiesText": "ログのプロパティ:" | ||
"spErrorLogPropertiesText": "ログのプロパティ:", | ||
"dynamicDataManagerSourceAlreadyExists": "ID が \"{0}\" のソースは既に存在します。", | ||
"dynamicDataManagerSourceDoesntExist": "ID が \"{0}\" のソースが見つかりません。" | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "\"{0}\" параметрінің мәні бос жол болмауы тиіс", | ||
"isDisposedValidateError": "\"{0}\" нысанын пайдалану мүмкін емес, себебі ол жойылған.", | ||
"invalidVersionStringError": "Нұсқа жолы жарамсыз: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: ТОЛЫҚ {1}", | ||
"spErrorCallStackText": "ШАҚЫРУЛАР ЖИНАҒЫ:", | ||
"spErrorLogPropertiesText": "ЖОЛ СИПАТТАРЫ:" | ||
"spErrorLogPropertiesText": "ЖОЛ СИПАТТАРЫ:", | ||
"dynamicDataManagerSourceAlreadyExists": "\"{0}\" идентификаторлы дерек көзі бұрыннан бар.", | ||
"dynamicDataManagerSourceDoesntExist": "\"{0}\" идентификаторлы дерек көзі табылмады." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "\"{0}\"에 대한 값은 빈 문자열이 아니어야 합니다.", | ||
"isDisposedValidateError": "\"{0}\" 개체가 삭제되었으므로 사용할 수 없습니다.", | ||
"invalidVersionStringError": "버전 문자열 \"{0}\"이(가) 잘못되었습니다.", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: 자세한 메시지 {1}", | ||
"spErrorCallStackText": "호출 스택:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "ID가 \"{0}\"인 소스가 이미 있습니다.", | ||
"dynamicDataManagerSourceDoesntExist": "ID가 \"{0}\"인 소스를 찾을 수 없습니다." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "„{0}“ reikšmė negali būti tuščia eilutė", | ||
"isDisposedValidateError": "Objekto „{0}“ naudoti negalima, nes jis yra panaikintas.", | ||
"invalidVersionStringError": "Neleistina versijos eilutė: „{0}“", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DAUGIAKALBIS {1}", | ||
"spErrorCallStackText": "IŠKVIETIMŲ DĖKLAS:", | ||
"spErrorLogPropertiesText": "ŽURNALO YPATYBĖS:" | ||
"spErrorLogPropertiesText": "ŽURNALO YPATYBĖS:", | ||
"dynamicDataManagerSourceAlreadyExists": "Šaltinis, kurio ID {0}, jau yra.", | ||
"dynamicDataManagerSourceDoesntExist": "Šaltinis, kurio ID {0}, nerastas." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Mainīgā {0} vērtība nedrīkst būt tukša virkne", | ||
"isDisposedValidateError": "\"{0}\" objektu nevar izmantot, jo tas ir noņemts.", | ||
"invalidVersionStringError": "Nederīga versijas virkne: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: IZVĒRSTI {1}", | ||
"spErrorCallStackText": "IZSAUKUMU STEKS:", | ||
"spErrorLogPropertiesText": "ŽURNĀLA REKVIZĪTI:" | ||
"spErrorLogPropertiesText": "ŽURNĀLA REKVIZĪTI:", | ||
"dynamicDataManagerSourceAlreadyExists": "Avots ar ID {0} jau pastāv.", | ||
"dynamicDataManagerSourceDoesntExist": "Nav atrasts neviens avots ar ID {0}." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Вредноста за „{0}“ не смее да биде празна низа", | ||
"isDisposedValidateError": "Објектот „{0}“ не може да се користи бидејќи е отстранет.", | ||
"invalidVersionStringError": "Низа за неважечка верзија: „{0}“", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: ОПШИРНО {1}", | ||
"spErrorCallStackText": "СЕРИЈА ПОВИЦИ:", | ||
"spErrorLogPropertiesText": "СВОЈСТВА НА ДНЕВНИКОТ:" | ||
"spErrorLogPropertiesText": "СВОЈСТВА НА ДНЕВНИКОТ:", | ||
"dynamicDataManagerSourceAlreadyExists": "Веќе постои извор со ИД „{0}“.", | ||
"dynamicDataManagerSourceDoesntExist": "Не се најде извор со ИД „{0}“." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Nilai untuk \"{0}\" tidak boleh rentetan kosong", | ||
"isDisposedValidateError": "Objek \"{0}\" tidak boleh digunakan kerana ia telah dibuang.", | ||
"invalidVersionStringError": "Rentetan versi tidak sah: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: PANJANG {1}", | ||
"spErrorCallStackText": "TINDANAN PANGGILAN:", | ||
"spErrorLogPropertiesText": "SIFAT LOG:" | ||
"spErrorLogPropertiesText": "SIFAT LOG:", | ||
"dynamicDataManagerSourceAlreadyExists": "Sumber dengan id \"{0}\" telah wujud.", | ||
"dynamicDataManagerSourceDoesntExist": "Tiada sumber dengan id \"{0}\" ditemui." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Verdien for {0} kan ikke være en tom streng", | ||
"isDisposedValidateError": "Kan ikke bruke objektet {0} fordi det er fjernet.", | ||
"invalidVersionStringError": "Ugyldig versjonsstreng: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DETALJERT {1}", | ||
"spErrorCallStackText": "KALLSTAKK:", | ||
"spErrorLogPropertiesText": "LOGGEGENSKAPER:" | ||
"spErrorLogPropertiesText": "LOGGEGENSKAPER:", | ||
"dynamicDataManagerSourceAlreadyExists": "En kilde med ID-en {0} finnes allerede.", | ||
"dynamicDataManagerSourceDoesntExist": "Finner ingen kilde med ID-en {0}." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "De waarde voor {0} mag geen lege tekenreeks zijn", | ||
"isDisposedValidateError": "Het object {0} kan niet worden gebruikt omdat het is verwijderd.", | ||
"invalidVersionStringError": "Ongeldige versietekenreeks: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: UITGEBREID {1}", | ||
"spErrorCallStackText": "CALLSTACK:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Er bestaat al een bron met id {0}.", | ||
"dynamicDataManagerSourceDoesntExist": "Geen bron met id {0} gevonden." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Wartość zmiennej „{0}” nie może być pustym ciągiem", | ||
"isDisposedValidateError": "Nie można użyć obiektu „{0}”, ponieważ został on usunięty.", | ||
"invalidVersionStringError": "Nieprawidłowy ciąg wersji: „{0}”", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: PEŁNE INFORMACJE: {1}", | ||
"spErrorCallStackText": "STOS WYWOŁAŃ:", | ||
"spErrorLogPropertiesText": "WŁAŚCIWOŚCI DZIENNIKA:" | ||
"spErrorLogPropertiesText": "WŁAŚCIWOŚCI DZIENNIKA:", | ||
"dynamicDataManagerSourceAlreadyExists": "Istnieje już źródło o identyfikatorze „{0}”.", | ||
"dynamicDataManagerSourceDoesntExist": "Nie znaleziono źródła o identyfikatorze „{0}”." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "مقدار برای \"{0}\" نباید یک رشته خالی باشد", | ||
"isDisposedValidateError": "شیی \"{0}\" استفاده شده نمیتواند، بخاطر اینکه منتقل شده است.", | ||
"invalidVersionStringError": "رشته نسخه نامعتبر: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: دراز {1}", | ||
"spErrorCallStackText": "CALLSTACK:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "منبعی با id \"{0}\" از قبل وجود دارد.", | ||
"dynamicDataManagerSourceDoesntExist": "منبعی با id \"{0}\" یافت نشد." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "O valor para \"{0}\" não deve ser uma cadeia de caracteres vazia", | ||
"isDisposedValidateError": "Não é possível usar o \"{0}\" porque foi descartado.", | ||
"invalidVersionStringError": "Cadeia de caracteres de versão inválida: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DETALHADO {1}", | ||
"spErrorCallStackText": "PILHA DE CHAMADAS:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Uma fonte com a ID \"{0}\" já existe.", | ||
"dynamicDataManagerSourceDoesntExist": "Nenhuma fonte com a ID \"{0}\" foi encontrada." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "O valor de \"{0}\" não pode ser uma cadeia vazia", | ||
"isDisposedValidateError": "O objeto de \"{0}\" não pode ser utilizado porque foi eliminado.", | ||
"invalidVersionStringError": "Cadeia de versão inválida: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: VERBOSO {1}", | ||
"spErrorCallStackText": "PILHA DE CHAMADAS:", | ||
"spErrorLogPropertiesText": "PROPRIEDADES DO REGISTO:" | ||
"spErrorLogPropertiesText": "PROPRIEDADES DO REGISTO:", | ||
"dynamicDataManagerSourceAlreadyExists": "Já existe uma origem com o ID \"{0}\".", | ||
"dynamicDataManagerSourceDoesntExist": "Não encontrámos nenhuma origem com o ID \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
define([], function() { | ||
var strings = { | ||
"_gIErrcTokcw+/VVwa+ReIA": { | ||
"invalidEnvironmentTypeError": "[!!--##***ȄƞvīřőńmēńŧŢŷƥĕ įş ĭƞvâļĩđ##--!!]", | ||
"invalidGuidStringError": "[!!--##***İňvąłįď ĞŰĨƉ ŝŧřĩƞġ: \"{0}\"##--!!]", | ||
"isFalseValidateError": "[!!--##***Ŧĥĕ vǻļũė ƒơŗ \"{0}\" įś ƒàłŝė##--!!]", | ||
"isNullValidateError": "[!!--##***Ťĥĕ vãłũȅ ƒơŗ \"{0}\" műşŧ ņőť ƀę ŋũľļ##--!!]", | ||
"isUndefinedValidateError": "[!!--##***Ŧĥě vãļűē ƒơř \"{0}\" můşŧ ƞŏŧ ƃę ůňđěƒĭŋȅđ##--!!]", | ||
"isEmptyStringValidateError": "[!!--##***Ťħȇ vāĺūȅ ƒőŗ \"{0}\" műśţ ƞōţ ƀė āƞ ēmƥŧŷ šťŗĭńģ##--!!]", | ||
"invalidVersionStringError": "[!!--##***Īńvȃĺıđ vėŕŝīőƞ şţřĩňğ: \"{0}\"##--!!]", | ||
"logVerboseLevelMessage": "[!!--##***{0}: VĒŔɃŐŠȆ {1}##--!!]", | ||
"invalidEnvironmentTypeError": "[!!--##***ĒʼnvīŗōŋmėŋťŦɏƥē ış ĭʼnváŀĭď##--!!]", | ||
"invalidGuidStringError": "[!!--##***Īńvàļīđ ĢŮİƉ šťřıņğ: \"{0}\"##--!!]", | ||
"isFalseValidateError": "[!!--##***Ťĥĕ vǻļūė ƒōř \"{0}\" ıŝ ƒȃľśě##--!!]", | ||
"isNullValidateError": "[!!--##***Ţħě våļũē ƒōŕ \"{0}\" mūşţ ńơť Ƃě ƞŭĺļ##--!!]", | ||
"isUndefinedValidateError": "[!!--##***Ţĥē váŀŭĕ ƒơŗ \"{0}\" mŭŝŧ ʼnōť ɓȅ ůƞđȇƒįńęđ##--!!]", | ||
"isEmptyStringValidateError": "[!!--##***Ťĥę vàļűĕ ƒőŗ \"{0}\" mũŝŧ ƞơţ Ƃē ąň ĕmƿţȳ śţŕįņğ##--!!]", | ||
"isDisposedValidateError": "[!!--##***Ţĥė \"{0}\" ōƂĴȇĉť ċåŋńōţ Ƃė ūşȅđ Ƅėĉåũşě ĭţ ħàŝ Ƅȇėƞ ďıŝƥơŝȇđ.##--!!]", | ||
"invalidVersionStringError": "[!!--##***Īņvȃłĩď vȅŕšıơņ şŧŕĩƞĝ: \"{0}\"##--!!]", | ||
"logVerboseLevelMessage": "[!!--##***{0}: VȆƦʙŐŚĖ {1}##--!!]", | ||
"logInfoLevelMessage": "[!!--##***{0}: {1}##--!!]", | ||
"logWarningLevelMessage": "[!!--##***{0}: ŴÅŔƝİŊĢ {1}##--!!]", | ||
"logErrorLevelMessage": "[!!--##***{0}: ĔŔŖŎŔ: {1}##--!!]", | ||
"serviceScopeConsumingBeforeFinished": "[!!--##***Ćȁŋƞơţ ĉōņśũmė śėřvįćȅš ƅėċȁūşȇ ţĥę śċŏƿē ıŝ ńōţ ƒĭŋįšħėđ ŷėŧ##--!!]", | ||
"serviceScopeConsumingDuringAutoCreation": "[!!--##***Ĉâʼnņőť čőņśűmě šěŗvįčĕś đųŗīņğ ŞȅŗvįĉěŚčőƥȇ āūţőĉřėàŧıőń##--!!]", | ||
"serviceScopeAlreadyFinishedError": "[!!--##***Ţĥȇ ŞęŕvĭċȅŚćőƥȅ ĩš áľŕĕäđɏ ƒįŋįśħȇď##--!!]", | ||
"serviceScopeProvideServiceAfterFinishedError": "[!!--##***Čåňƞơť ŕēğĩşťȇŗ şėŗvĭċĕ Ƅėčãųŝě ŧħĕ şĉơƥȅ ĭŝ àŀŗȅąđŷ ƒīņıŝħēđ##--!!]", | ||
"serviceScopeProvideServiceThatAlreadyExists": "[!!--##***Ŧĥĕ ŝěřvįċȇ ķěȳ \"{0}\" ĥåś ăŀŕěåďɏ ƀėĕń řėğĩśŧȅřěđ įŋ ŧĥĭŝ ŝćơƥę##--!!]", | ||
"spErrorInnerErrorText": "[!!--##***İŅŇĘŖȆŔŔŌƦ:##--!!]", | ||
"spErrorCallStackText": "[!!--##***ĆÀĿĿŠŦĀČƘ:##--!!]", | ||
"spErrorLogPropertiesText": "[!!--##***ĻŐĞƤŔƠƤĖŘŤĨĘŚ:##--!!]" | ||
"logWarningLevelMessage": "[!!--##***{0}: ŴǺŘŊĨŇĢ {1}##--!!]", | ||
"logErrorLevelMessage": "[!!--##***{0}: ĚƦŖŐŖ: {1}##--!!]", | ||
"serviceScopeConsumingBeforeFinished": "[!!--##***Ćāńŋŏť čơņşũmȅ şȅřvĭćěš ɓėċȃũşȅ ŧĥȅ ŝċơƥě įš ňŏŧ ƒıʼnĭşħęđ ȳȇţ##--!!]", | ||
"serviceScopeConsumingDuringAutoCreation": "[!!--##***Ĉåŋňơť ċơƞšŭmē śēŕvĩċěš ďųŗĩňģ ŠęřvĭĉěŞćőƥȇ ȃůţőćŗěàťĭơƞ##--!!]", | ||
"serviceScopeAlreadyFinishedError": "[!!--##***Ŧħě ŜěřvıĉęŞčơƿě įş ǻľŕėâđƴ ƒıʼnīşĥȅđ##--!!]", | ||
"serviceScopeProvideServiceAfterFinishedError": "[!!--##***Ċăņƞőť ŗėĝışţęř şĕŗvīĉē Ƃěćāũŝě ŧħě ŝĉơƥĕ ĩš ăĺřēâďŷ ƒįŋĩśħěđ##--!!]", | ||
"serviceScopeProvideServiceThatAlreadyExists": "[!!--##***Ťħē śȇŕvıċē ĸęƴ \"{0}\" ħǻŝ ąŀřȅąďȳ Ƅēȇņ ŕĕģįşţĕŗėđ ĩʼn ţħĩś şċōƿė##--!!]", | ||
"spErrorInnerErrorText": "[!!--##***İŇŅȆƦȆŘŖŐŔ:##--!!]", | ||
"spErrorCallStackText": "[!!--##***ČĂĻĻŜŦǺĈĶ:##--!!]", | ||
"spErrorLogPropertiesText": "[!!--##***ŁŌĞƤŔŐƤĚŖŢİĒŞ:##--!!]", | ||
"dynamicDataManagerSourceAlreadyExists": "[!!--##***Ã śơůŕċę ŵįţħ ıđ \"{0}\" åłřȅȁđȳ ēxĭśťŝ.##--!!]", | ||
"dynamicDataManagerSourceDoesntExist": "[!!--##***Ņŏ şōūŕčė ŵįŧĥ ıđ \"{0}\" ƒőũňď.##--!!]" | ||
} | ||
@@ -24,0 +27,0 @@ }; |
{ | ||
"_gIErrcTokcw+/VVwa+ReIA": { | ||
"invalidEnvironmentTypeError": "[!!--##***ȄƞvīřőńmēńŧŢŷƥĕ įş ĭƞvâļĩđ##--!!]", | ||
"invalidGuidStringError": "[!!--##***İňvąłįď ĞŰĨƉ ŝŧřĩƞġ: \"{0}\"##--!!]", | ||
"isFalseValidateError": "[!!--##***Ŧĥĕ vǻļũė ƒơŗ \"{0}\" įś ƒàłŝė##--!!]", | ||
"isNullValidateError": "[!!--##***Ťĥĕ vãłũȅ ƒơŗ \"{0}\" műşŧ ņőť ƀę ŋũľļ##--!!]", | ||
"isUndefinedValidateError": "[!!--##***Ŧĥě vãļűē ƒơř \"{0}\" můşŧ ƞŏŧ ƃę ůňđěƒĭŋȅđ##--!!]", | ||
"isEmptyStringValidateError": "[!!--##***Ťħȇ vāĺūȅ ƒőŗ \"{0}\" műśţ ƞōţ ƀė āƞ ēmƥŧŷ šťŗĭńģ##--!!]", | ||
"invalidVersionStringError": "[!!--##***Īńvȃĺıđ vėŕŝīőƞ şţřĩňğ: \"{0}\"##--!!]", | ||
"logVerboseLevelMessage": "[!!--##***{0}: VĒŔɃŐŠȆ {1}##--!!]", | ||
"invalidEnvironmentTypeError": "[!!--##***ĒʼnvīŗōŋmėŋťŦɏƥē ış ĭʼnváŀĭď##--!!]", | ||
"invalidGuidStringError": "[!!--##***Īńvàļīđ ĢŮİƉ šťřıņğ: \"{0}\"##--!!]", | ||
"isFalseValidateError": "[!!--##***Ťĥĕ vǻļūė ƒōř \"{0}\" ıŝ ƒȃľśě##--!!]", | ||
"isNullValidateError": "[!!--##***Ţħě våļũē ƒōŕ \"{0}\" mūşţ ńơť Ƃě ƞŭĺļ##--!!]", | ||
"isUndefinedValidateError": "[!!--##***Ţĥē váŀŭĕ ƒơŗ \"{0}\" mŭŝŧ ʼnōť ɓȅ ůƞđȇƒįńęđ##--!!]", | ||
"isEmptyStringValidateError": "[!!--##***Ťĥę vàļűĕ ƒőŗ \"{0}\" mũŝŧ ƞơţ Ƃē ąň ĕmƿţȳ śţŕįņğ##--!!]", | ||
"isDisposedValidateError": "[!!--##***Ţĥė \"{0}\" ōƂĴȇĉť ċåŋńōţ Ƃė ūşȅđ Ƅėĉåũşě ĭţ ħàŝ Ƅȇėƞ ďıŝƥơŝȇđ.##--!!]", | ||
"invalidVersionStringError": "[!!--##***Īņvȃłĩď vȅŕšıơņ şŧŕĩƞĝ: \"{0}\"##--!!]", | ||
"logVerboseLevelMessage": "[!!--##***{0}: VȆƦʙŐŚĖ {1}##--!!]", | ||
"logInfoLevelMessage": "[!!--##***{0}: {1}##--!!]", | ||
"logWarningLevelMessage": "[!!--##***{0}: ŴÅŔƝİŊĢ {1}##--!!]", | ||
"logErrorLevelMessage": "[!!--##***{0}: ĔŔŖŎŔ: {1}##--!!]", | ||
"serviceScopeConsumingBeforeFinished": "[!!--##***Ćȁŋƞơţ ĉōņśũmė śėřvįćȅš ƅėċȁūşȇ ţĥę śċŏƿē ıŝ ńōţ ƒĭŋįšħėđ ŷėŧ##--!!]", | ||
"serviceScopeConsumingDuringAutoCreation": "[!!--##***Ĉâʼnņőť čőņśűmě šěŗvįčĕś đųŗīņğ ŞȅŗvįĉěŚčőƥȇ āūţőĉřėàŧıőń##--!!]", | ||
"serviceScopeAlreadyFinishedError": "[!!--##***Ţĥȇ ŞęŕvĭċȅŚćőƥȅ ĩš áľŕĕäđɏ ƒįŋįśħȇď##--!!]", | ||
"serviceScopeProvideServiceAfterFinishedError": "[!!--##***Čåňƞơť ŕēğĩşťȇŗ şėŗvĭċĕ Ƅėčãųŝě ŧħĕ şĉơƥȅ ĭŝ àŀŗȅąđŷ ƒīņıŝħēđ##--!!]", | ||
"serviceScopeProvideServiceThatAlreadyExists": "[!!--##***Ŧĥĕ ŝěřvįċȇ ķěȳ \"{0}\" ĥåś ăŀŕěåďɏ ƀėĕń řėğĩśŧȅřěđ įŋ ŧĥĭŝ ŝćơƥę##--!!]", | ||
"spErrorInnerErrorText": "[!!--##***İŅŇĘŖȆŔŔŌƦ:##--!!]", | ||
"spErrorCallStackText": "[!!--##***ĆÀĿĿŠŦĀČƘ:##--!!]", | ||
"spErrorLogPropertiesText": "[!!--##***ĻŐĞƤŔƠƤĖŘŤĨĘŚ:##--!!]" | ||
"logWarningLevelMessage": "[!!--##***{0}: ŴǺŘŊĨŇĢ {1}##--!!]", | ||
"logErrorLevelMessage": "[!!--##***{0}: ĚƦŖŐŖ: {1}##--!!]", | ||
"serviceScopeConsumingBeforeFinished": "[!!--##***Ćāńŋŏť čơņşũmȅ şȅřvĭćěš ɓėċȃũşȅ ŧĥȅ ŝċơƥě įš ňŏŧ ƒıʼnĭşħęđ ȳȇţ##--!!]", | ||
"serviceScopeConsumingDuringAutoCreation": "[!!--##***Ĉåŋňơť ċơƞšŭmē śēŕvĩċěš ďųŗĩňģ ŠęřvĭĉěŞćőƥȇ ȃůţőćŗěàťĭơƞ##--!!]", | ||
"serviceScopeAlreadyFinishedError": "[!!--##***Ŧħě ŜěřvıĉęŞčơƿě įş ǻľŕėâđƴ ƒıʼnīşĥȅđ##--!!]", | ||
"serviceScopeProvideServiceAfterFinishedError": "[!!--##***Ċăņƞőť ŗėĝışţęř şĕŗvīĉē Ƃěćāũŝě ŧħě ŝĉơƥĕ ĩš ăĺřēâďŷ ƒįŋĩśħěđ##--!!]", | ||
"serviceScopeProvideServiceThatAlreadyExists": "[!!--##***Ťħē śȇŕvıċē ĸęƴ \"{0}\" ħǻŝ ąŀřȅąďȳ Ƅēȇņ ŕĕģįşţĕŗėđ ĩʼn ţħĩś şċōƿė##--!!]", | ||
"spErrorInnerErrorText": "[!!--##***İŇŅȆƦȆŘŖŐŔ:##--!!]", | ||
"spErrorCallStackText": "[!!--##***ČĂĻĻŜŦǺĈĶ:##--!!]", | ||
"spErrorLogPropertiesText": "[!!--##***ŁŌĞƤŔŐƤĚŖŢİĒŞ:##--!!]", | ||
"dynamicDataManagerSourceAlreadyExists": "[!!--##***Ã śơůŕċę ŵįţħ ıđ \"{0}\" åłřȅȁđȳ ēxĭśťŝ.##--!!]", | ||
"dynamicDataManagerSourceDoesntExist": "[!!--##***Ņŏ şōūŕčė ŵįŧĥ ıđ \"{0}\" ƒőũňď.##--!!]" | ||
} | ||
} |
define([], function() { | ||
var strings = { | ||
"_gIErrcTokcw+/VVwa+ReIA": { | ||
"invalidEnvironmentTypeError": "***ȆņvıŕōņmęņŧŤƴƥė īŝ ıŋväŀĩđ", | ||
"invalidGuidStringError": "***Ĭņväŀıđ ĜŬĪƉ śţřįŋğ: \"{0}\"", | ||
"isFalseValidateError": "***Ťħę vâĺųȅ ƒōř \"{0}\" ĩš ƒàŀşĕ", | ||
"isNullValidateError": "***Ţĥē väĺūě ƒŏř \"{0}\" mŭşť ʼnőţ ƀę ņűļĺ", | ||
"isUndefinedValidateError": "***Ŧħę vȁľųē ƒőř \"{0}\" můśŧ ƞŏţ Ƃȅ ŭʼnďēƒĭƞĕď", | ||
"isEmptyStringValidateError": "***Ţĥē vâłųė ƒőř \"{0}\" mūşť ņōţ ƃȅ áň ēmƿŧȳ şţřĭƞģ", | ||
"invalidVersionStringError": "***Īňvǻļīď vȅřśīơŋ şťŕıƞĝ: \"{0}\"", | ||
"logVerboseLevelMessage": "***{0}: VȆŖɃƠŜȄ {1}", | ||
"invalidEnvironmentTypeError": "***ĒŋvĩŕōʼnmȇņţŦƴƿė ĩş ĭńvȁľıđ", | ||
"invalidGuidStringError": "***Ĩŋvàļĭđ ĠŲĨĐ şŧŗīʼnğ: \"{0}\"", | ||
"isFalseValidateError": "***Ţĥȅ vāļűē ƒơŕ \"{0}\" īś ƒàľŝȇ", | ||
"isNullValidateError": "***Ţħē vȃļũė ƒőř \"{0}\" mųšť ŋōť Ƅě ņųľļ", | ||
"isUndefinedValidateError": "***Ťħĕ våĺűě ƒőŗ \"{0}\" mūśť ņơť ƅě űʼnđęƒĩńȅđ", | ||
"isEmptyStringValidateError": "***Ŧħȇ vàĺůȇ ƒōř \"{0}\" mŭŝŧ ńŏţ ƃě ȃň ȇmƥŧŷ ŝţŕĭňĝ", | ||
"isDisposedValidateError": "***Ţħę \"{0}\" ŏɓĴęćţ čȃƞňōť ƃȅ ůšēď ƀȇćåũŝȅ īţ ĥãş Ƃĕěŋ ďīşƥőšēđ.", | ||
"invalidVersionStringError": "***Ĩňvȁļįđ vȅřŝıōʼn ŝťŗįʼnġ: \"{0}\"", | ||
"logVerboseLevelMessage": "***{0}: VĔŘßŎŞĚ {1}", | ||
"logInfoLevelMessage": "***{0}: {1}", | ||
"logWarningLevelMessage": "***{0}: ŴǺƦŇİŇĜ {1}", | ||
"logErrorLevelMessage": "***{0}: ĚŔŘŐŖ: {1}", | ||
"serviceScopeConsumingBeforeFinished": "***Ċȁʼnʼnơŧ čơņśűmē ŝėŕvĭĉĕş ƀěćàűšě ţĥē ŝċơƿȇ īŝ ŋŏť ƒĩńīşĥĕď ŷěţ", | ||
"serviceScopeConsumingDuringAutoCreation": "***Ċàŋņŏŧ ċơňşűmē śěŗvĩċȅś ďůŗĭŋģ ŞȇŗvĭċȅŜċŏƿȅ áųţơćřȇāťīōņ", | ||
"serviceScopeAlreadyFinishedError": "***Ŧħē ŞĕŗvīĉĕŞćơƥȇ īś ǻłŕȇāđȳ ƒįňīŝħėď", | ||
"serviceScopeProvideServiceAfterFinishedError": "***Čȁŋʼnőţ ŗȅġįśţęř šěŕvıċȅ Ƃęĉäŭśȇ ŧĥě şċőƿȅ įş åŀŕȇăđƴ ƒĩƞĩšĥėđ", | ||
"serviceScopeProvideServiceThatAlreadyExists": "***Ťħė şȇŗvĭčė ķȇŷ \"{0}\" ĥąś ăłřēąđȳ Ƅěȇň ŗěġīšţȇřęď ĭņ ţĥĩŝ śčŏƥȅ", | ||
"spErrorInnerErrorText": "***ĪƝŅȆŘȄƦŔŎŔ:", | ||
"spErrorCallStackText": "***ĆȂĽĻŚŢĀĆĶ:", | ||
"spErrorLogPropertiesText": "***ĻŌĠƤŔŎƤĖŖŢİĔŞ:" | ||
"logWarningLevelMessage": "***{0}: ŴÅŘŇİŃĠ {1}", | ||
"logErrorLevelMessage": "***{0}: ĘŔŖŐŘ: {1}", | ||
"serviceScopeConsumingBeforeFinished": "***Ĉǻŋʼnơť ċŏŋśũmě śęřvĩĉęš Ƅęćāűšē ŧĥė ščơƿȅ īš ƞōţ ƒıƞīŝħěđ ȳėť", | ||
"serviceScopeConsumingDuringAutoCreation": "***Ćãʼnƞōť čōńšŭmě śěŗvįčėş ďūŕĭńģ ŜěŗvĩċēŚċơƥȇ äűŧōčřĕâţīơń", | ||
"serviceScopeAlreadyFinishedError": "***Ťĥȇ ŚȅŗvīĉĕŞĉőƿĕ įś áŀřėǻďƴ ƒįńĭŝĥěđ", | ||
"serviceScopeProvideServiceAfterFinishedError": "***Ćàņŋơŧ řȇġıśŧėŕ ŝėŕvĩċȇ ƃĕċąŭŝė ŧħĕ şćơƿě įś ǻłřěäđŷ ƒīńīŝħęď", | ||
"serviceScopeProvideServiceThatAlreadyExists": "***Ŧħē šȇřvĩćē ķȅƴ \"{0}\" ĥãŝ ăļŗėȃďŷ ɓĕȅń ŕȇġıšţěŕėď īņ ťħĩş şċōƿĕ", | ||
"spErrorInnerErrorText": "***ĬƝŅĔŖĒŖŖƠƦ:", | ||
"spErrorCallStackText": "***ĊÅŁĻŜŦÂĊƘ:", | ||
"spErrorLogPropertiesText": "***ĽŐĢƤŘƠƤĘŖŤĮĒŜ:", | ||
"dynamicDataManagerSourceAlreadyExists": "***Ă śőūŗĉě ŵīţĥ īđ \"{0}\" äĺŕȇåđɏ ěxışŧś.", | ||
"dynamicDataManagerSourceDoesntExist": "***Ňŏ şŏũŕĉė ŵĩťħ īđ \"{0}\" ƒŏũņď." | ||
} | ||
@@ -24,0 +27,0 @@ }; |
{ | ||
"_gIErrcTokcw+/VVwa+ReIA": { | ||
"invalidEnvironmentTypeError": "***ȆņvıŕōņmęņŧŤƴƥė īŝ ıŋväŀĩđ", | ||
"invalidGuidStringError": "***Ĭņväŀıđ ĜŬĪƉ śţřįŋğ: \"{0}\"", | ||
"isFalseValidateError": "***Ťħę vâĺųȅ ƒōř \"{0}\" ĩš ƒàŀşĕ", | ||
"isNullValidateError": "***Ţĥē väĺūě ƒŏř \"{0}\" mŭşť ʼnőţ ƀę ņűļĺ", | ||
"isUndefinedValidateError": "***Ŧħę vȁľųē ƒőř \"{0}\" můśŧ ƞŏţ Ƃȅ ŭʼnďēƒĭƞĕď", | ||
"isEmptyStringValidateError": "***Ţĥē vâłųė ƒőř \"{0}\" mūşť ņōţ ƃȅ áň ēmƿŧȳ şţřĭƞģ", | ||
"invalidVersionStringError": "***Īňvǻļīď vȅřśīơŋ şťŕıƞĝ: \"{0}\"", | ||
"logVerboseLevelMessage": "***{0}: VȆŖɃƠŜȄ {1}", | ||
"invalidEnvironmentTypeError": "***ĒŋvĩŕōʼnmȇņţŦƴƿė ĩş ĭńvȁľıđ", | ||
"invalidGuidStringError": "***Ĩŋvàļĭđ ĠŲĨĐ şŧŗīʼnğ: \"{0}\"", | ||
"isFalseValidateError": "***Ţĥȅ vāļűē ƒơŕ \"{0}\" īś ƒàľŝȇ", | ||
"isNullValidateError": "***Ţħē vȃļũė ƒőř \"{0}\" mųšť ŋōť Ƅě ņųľļ", | ||
"isUndefinedValidateError": "***Ťħĕ våĺűě ƒőŗ \"{0}\" mūśť ņơť ƅě űʼnđęƒĩńȅđ", | ||
"isEmptyStringValidateError": "***Ŧħȇ vàĺůȇ ƒōř \"{0}\" mŭŝŧ ńŏţ ƃě ȃň ȇmƥŧŷ ŝţŕĭňĝ", | ||
"isDisposedValidateError": "***Ţħę \"{0}\" ŏɓĴęćţ čȃƞňōť ƃȅ ůšēď ƀȇćåũŝȅ īţ ĥãş Ƃĕěŋ ďīşƥőšēđ.", | ||
"invalidVersionStringError": "***Ĩňvȁļįđ vȅřŝıōʼn ŝťŗįʼnġ: \"{0}\"", | ||
"logVerboseLevelMessage": "***{0}: VĔŘßŎŞĚ {1}", | ||
"logInfoLevelMessage": "***{0}: {1}", | ||
"logWarningLevelMessage": "***{0}: ŴǺƦŇİŇĜ {1}", | ||
"logErrorLevelMessage": "***{0}: ĚŔŘŐŖ: {1}", | ||
"serviceScopeConsumingBeforeFinished": "***Ċȁʼnʼnơŧ čơņśűmē ŝėŕvĭĉĕş ƀěćàűšě ţĥē ŝċơƿȇ īŝ ŋŏť ƒĩńīşĥĕď ŷěţ", | ||
"serviceScopeConsumingDuringAutoCreation": "***Ċàŋņŏŧ ċơňşűmē śěŗvĩċȅś ďůŗĭŋģ ŞȇŗvĭċȅŜċŏƿȅ áųţơćřȇāťīōņ", | ||
"serviceScopeAlreadyFinishedError": "***Ŧħē ŞĕŗvīĉĕŞćơƥȇ īś ǻłŕȇāđȳ ƒįňīŝħėď", | ||
"serviceScopeProvideServiceAfterFinishedError": "***Čȁŋʼnőţ ŗȅġįśţęř šěŕvıċȅ Ƃęĉäŭśȇ ŧĥě şċőƿȅ įş åŀŕȇăđƴ ƒĩƞĩšĥėđ", | ||
"serviceScopeProvideServiceThatAlreadyExists": "***Ťħė şȇŗvĭčė ķȇŷ \"{0}\" ĥąś ăłřēąđȳ Ƅěȇň ŗěġīšţȇřęď ĭņ ţĥĩŝ śčŏƥȅ", | ||
"spErrorInnerErrorText": "***ĪƝŅȆŘȄƦŔŎŔ:", | ||
"spErrorCallStackText": "***ĆȂĽĻŚŢĀĆĶ:", | ||
"spErrorLogPropertiesText": "***ĻŌĠƤŔŎƤĖŖŢİĔŞ:" | ||
"logWarningLevelMessage": "***{0}: ŴÅŘŇİŃĠ {1}", | ||
"logErrorLevelMessage": "***{0}: ĘŔŖŐŘ: {1}", | ||
"serviceScopeConsumingBeforeFinished": "***Ĉǻŋʼnơť ċŏŋśũmě śęřvĩĉęš Ƅęćāűšē ŧĥė ščơƿȅ īš ƞōţ ƒıƞīŝħěđ ȳėť", | ||
"serviceScopeConsumingDuringAutoCreation": "***Ćãʼnƞōť čōńšŭmě śěŗvįčėş ďūŕĭńģ ŜěŗvĩċēŚċơƥȇ äűŧōčřĕâţīơń", | ||
"serviceScopeAlreadyFinishedError": "***Ťĥȇ ŚȅŗvīĉĕŞĉőƿĕ įś áŀřėǻďƴ ƒįńĭŝĥěđ", | ||
"serviceScopeProvideServiceAfterFinishedError": "***Ćàņŋơŧ řȇġıśŧėŕ ŝėŕvĩċȇ ƃĕċąŭŝė ŧħĕ şćơƿě įś ǻłřěäđŷ ƒīńīŝħęď", | ||
"serviceScopeProvideServiceThatAlreadyExists": "***Ŧħē šȇřvĩćē ķȅƴ \"{0}\" ĥãŝ ăļŗėȃďŷ ɓĕȅń ŕȇġıšţěŕėď īņ ťħĩş şċōƿĕ", | ||
"spErrorInnerErrorText": "***ĬƝŅĔŖĒŖŖƠƦ:", | ||
"spErrorCallStackText": "***ĊÅŁĻŜŦÂĊƘ:", | ||
"spErrorLogPropertiesText": "***ĽŐĢƤŘƠƤĘŖŤĮĒŜ:", | ||
"dynamicDataManagerSourceAlreadyExists": "***Ă śőūŗĉě ŵīţĥ īđ \"{0}\" äĺŕȇåđɏ ěxışŧś.", | ||
"dynamicDataManagerSourceDoesntExist": "***Ňŏ şŏũŕĉė ŵĩťħ īđ \"{0}\" ƒŏũņď." | ||
} | ||
} |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Valoarea pentru „{0}” nu trebuie să fie un șir gol", | ||
"isDisposedValidateError": "Obiectul „{0}” nu poate fi utilizat, deoarece a fost dezafectat.", | ||
"invalidVersionStringError": "Șir de versiune nevalid: „{0}”", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DETALIAT {1}", | ||
"spErrorCallStackText": "STIVĂ_APELURI:", | ||
"spErrorLogPropertiesText": "PROPRIETĂȚI_JURNAL:" | ||
"spErrorLogPropertiesText": "PROPRIETĂȚI_JURNAL:", | ||
"dynamicDataManagerSourceAlreadyExists": "O sursă cu ID-ul „{0}” există deja.", | ||
"dynamicDataManagerSourceDoesntExist": "Nu a fost găsită nicio sursă cu ID-ul „{0}”." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Значение параметра {0} не должно быть пустой строкой", | ||
"isDisposedValidateError": "Невозможно использовать объект \"{0}\", поскольку он был удален.", | ||
"invalidVersionStringError": "Недопустимая строка версии: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: подробно. {1}", | ||
"spErrorCallStackText": "Стек вызовов:", | ||
"spErrorLogPropertiesText": "Свойства журнала:" | ||
"spErrorLogPropertiesText": "Свойства журнала:", | ||
"dynamicDataManagerSourceAlreadyExists": "Источник с ИД \"{0}\" уже существует.", | ||
"dynamicDataManagerSourceDoesntExist": "Не найдено источника с ИД \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Hodnota premennej {0} nesmie byť prázdny reťazec", | ||
"isDisposedValidateError": "Objekt {0} sa nedá použiť, pretože bol odstránený.", | ||
"invalidVersionStringError": "Neplatný reťazec verzie: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: PODROBNÝ VÝPIS {1}", | ||
"spErrorCallStackText": "ZÁSOBNÍK:", | ||
"spErrorLogPropertiesText": "VLASTNOSTI DENNÍKA:" | ||
"spErrorLogPropertiesText": "VLASTNOSTI DENNÍKA:", | ||
"dynamicDataManagerSourceAlreadyExists": "Zdroj s ID {0} už existuje.", | ||
"dynamicDataManagerSourceDoesntExist": "Žiadny zdroj s ID {0} sa nenašiel." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Vrednost za »{0}« ne sme biti prazen niz", | ||
"isDisposedValidateError": "Predmeta »{0}« ni mogoče uporabiti, ker je bil odstranjen.", | ||
"invalidVersionStringError": "Neveljaven nit različice: »{0}«", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: VERBOSE {1}", | ||
"spErrorCallStackText": "KLIC SKLADA:", | ||
"spErrorLogPropertiesText": "LASTNOSTI DNEVNIKA:" | ||
"spErrorLogPropertiesText": "LASTNOSTI DNEVNIKA:", | ||
"dynamicDataManagerSourceAlreadyExists": "Vir z ID-jem »{0}« že obstaja.", | ||
"dynamicDataManagerSourceDoesntExist": "Ni mogoče najti vira z ID-jem »{0}«." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Вредност за „{0}“ не сме да буде празна ниска", | ||
"isDisposedValidateError": "Није могуће користити објекат „{0}“ зато што је он уклоњен.", | ||
"invalidVersionStringError": "Неважећа ниска верзије: „{0}“", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: ДЕТАЉНО {1}", | ||
"spErrorCallStackText": "CALLSTACK:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Извор са ID-ом „{0}“ већ постоји.", | ||
"dynamicDataManagerSourceDoesntExist": "Није пронађен ниједан извор са ID-ом „{0}“." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Vrednost za „{0}“ ne sme da bude prazna niska", | ||
"isDisposedValidateError": "Nije moguće koristiti objekat „{0}“ zato što je on uklonjen.", | ||
"invalidVersionStringError": "Nevažeća niska verzije: „{0}“", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: DETALJNO {1}", | ||
"spErrorCallStackText": "CALLSTACK:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Izvor sa ID-om „{0}“ već postoji.", | ||
"dynamicDataManagerSourceDoesntExist": "Nije pronađen nijedan izvor sa ID-om „{0}“." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Värdet för \"{0}\" får inte vara en tom sträng", | ||
"isDisposedValidateError": "Objektet ({0}) kan inte användas eftersom det har tagits bort.", | ||
"invalidVersionStringError": "Ogiltig versionssträng: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: UTFÖRLIG {1}", | ||
"spErrorCallStackText": "CALLSTACK:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Det finns redan en källa med ID {0}.", | ||
"dynamicDataManagerSourceDoesntExist": "Ingen källa med ID {0} hittades." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "ค่าสำหรับ \"{0}\" ต้องเป็นสตริงว่าง", | ||
"isDisposedValidateError": "ไม่สามารถใช้วัตถุ \"{0}\" ได้เนื่องจากมีการนำวัตถุดังกล่าวออก", | ||
"invalidVersionStringError": "สตริงของรุ่นที่ไม่ถูกต้อง: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: รายละเอียด {1}", | ||
"spErrorCallStackText": "Callstack:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "แหล่งข้อมูลที่มี ID \"{0}\" มีอยู่แล้ว", | ||
"dynamicDataManagerSourceDoesntExist": "ไม่พบแหล่งข้อมูลที่มี ID \"{0}\"" | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "\"{0}\" değişkeninin değeri boş bir dize olamaz", | ||
"isDisposedValidateError": "\"{0}\" nesnesi atıldığından kullanılamaz.", | ||
"invalidVersionStringError": "Geçersiz sürüm dizesi: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: AYRINTILI {1}", | ||
"spErrorCallStackText": "ÇAĞRI YIĞINI:", | ||
"spErrorLogPropertiesText": "GÜNLÜK ÖZELLİKLERİ:" | ||
"spErrorLogPropertiesText": "GÜNLÜK ÖZELLİKLERİ:", | ||
"dynamicDataManagerSourceAlreadyExists": "\"{0}\" kimliğine sahip bir kaynak zaten var.", | ||
"dynamicDataManagerSourceDoesntExist": "\"{0}\" kimliğine sahip kaynak bulunamadı." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Значення змінної \"{0}\" не має бути пустим рядком", | ||
"isDisposedValidateError": "Об’єкт \"{0}\" не можна використовувати, тому що його видалено.", | ||
"invalidVersionStringError": "Неприпустимий рядок версії: {0}", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: ДЕТАЛЬНО. {1}", | ||
"spErrorCallStackText": "СТЕК ВИКЛИКІВ:", | ||
"spErrorLogPropertiesText": "ВЛАСТИВОСТІ ЖУРНАЛУ:" | ||
"spErrorLogPropertiesText": "ВЛАСТИВОСТІ ЖУРНАЛУ:", | ||
"dynamicDataManagerSourceAlreadyExists": "Джерело з ідентифікатором \"{0}\" уже існує.", | ||
"dynamicDataManagerSourceDoesntExist": "Джерело з ідентифікатором \"{0}\" не знайдено." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "Giá trị cho \"{0}\" không được là một chuỗi trống", | ||
"isDisposedValidateError": "Không thể sử dụng đối tượng \"{0}\" do đối tượng này đã được xử lý.", | ||
"invalidVersionStringError": "Chuỗi phiên bản không hợp lệ: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: VERBOSE {1}", | ||
"spErrorCallStackText": "CALLSTACK:", | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:" | ||
"spErrorLogPropertiesText": "LOGPROPERTIES:", | ||
"dynamicDataManagerSourceAlreadyExists": "Đã tồn tại nguồn có id \"{0}\".", | ||
"dynamicDataManagerSourceDoesntExist": "Không tìm thấy nguồn có id \"{0}\"." | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "“{0}”的值不得为空字符串", | ||
"isDisposedValidateError": "“{0}”对象无法使用,因为它已被释放。", | ||
"invalidVersionStringError": "无效的版本字符串:“{0}”", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: 详细: {1}", | ||
"spErrorCallStackText": "调用堆栈:", | ||
"spErrorLogPropertiesText": "日志属性:" | ||
"spErrorLogPropertiesText": "日志属性:", | ||
"dynamicDataManagerSourceAlreadyExists": "ID 为“{0}”的源已存在。", | ||
"dynamicDataManagerSourceDoesntExist": "找不到 ID 为“{0}”的源。" | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -10,2 +10,3 @@ define([], function() { | ||
"isEmptyStringValidateError": "\"{0}\" 的值不可為空字串", | ||
"isDisposedValidateError": "\"{0}\" 物件無法使用,因為它已被處置。", | ||
"invalidVersionStringError": "無效的版本字串: \"{0}\"", | ||
@@ -23,3 +24,5 @@ "logVerboseLevelMessage": "{0}: 詳細資訊 {1}", | ||
"spErrorCallStackText": "呼叫堆疊:", | ||
"spErrorLogPropertiesText": "記錄內容:" | ||
"spErrorLogPropertiesText": "記錄內容:", | ||
"dynamicDataManagerSourceAlreadyExists": "識別碼為 \"{0}\" 的來源已經存在。", | ||
"dynamicDataManagerSourceDoesntExist": "找不到識別碼為 \"{0}\" 的來源。" | ||
} | ||
@@ -26,0 +29,0 @@ }; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ServiceKey_1 = require("../ServiceKey"); | ||
import ServiceKey from '../ServiceKey'; | ||
var RandomNumberGenerator = (function () { | ||
@@ -10,5 +8,5 @@ function RandomNumberGenerator(serviceScope) { | ||
}; | ||
RandomNumberGenerator.serviceKey = ServiceKey_1.default.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator); | ||
RandomNumberGenerator.serviceKey = ServiceKey.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator); | ||
return RandomNumberGenerator; | ||
}()); | ||
exports.default = RandomNumberGenerator; | ||
export default RandomNumberGenerator; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ServiceKey_1 = require("../ServiceKey"); | ||
import ServiceKey from '../ServiceKey'; | ||
var TimeProvider = (function () { | ||
@@ -13,5 +11,5 @@ function TimeProvider(serviceScope) { | ||
}; | ||
TimeProvider.serviceKey = ServiceKey_1.default.create('sp-core-library:TimeProvider', TimeProvider); | ||
TimeProvider.serviceKey = ServiceKey.create('sp-core-library:TimeProvider', TimeProvider); | ||
return TimeProvider; | ||
}()); | ||
exports.default = TimeProvider; | ||
export default TimeProvider; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = require("../Validate"); | ||
import Validate from '../Validate'; | ||
var ServiceKey = (function () { | ||
@@ -11,3 +9,3 @@ function ServiceKey(id, name, defaultCreator) { | ||
ServiceKey.create = function (name, serviceClass) { | ||
Validate_1.default.isNotNullOrUndefined(serviceClass, 'serviceClass'); | ||
Validate.isNotNullOrUndefined(serviceClass, 'serviceClass'); | ||
return ServiceKey.createCustom(name, function (serviceScope) { | ||
@@ -18,4 +16,4 @@ return new serviceClass(serviceScope); | ||
ServiceKey.createCustom = function (name, defaultCreator) { | ||
Validate_1.default.isNonemptyString(name, 'name'); | ||
Validate_1.default.isNotNullOrUndefined(defaultCreator, 'defaultCreator'); | ||
Validate.isNonemptyString(name, 'name'); | ||
Validate.isNotNullOrUndefined(defaultCreator, 'defaultCreator'); | ||
ServiceKey._lastId++; | ||
@@ -28,2 +26,2 @@ var id = ServiceKey._lastId.toString(); | ||
}()); | ||
exports.default = ServiceKey; | ||
export default ServiceKey; |
@@ -52,4 +52,4 @@ import ServiceKey from './ServiceKey'; | ||
export default class ServiceScope { | ||
private _registrations; | ||
private _parent; | ||
private _registrations; | ||
private _pendingCallbacks; | ||
@@ -159,4 +159,9 @@ private _finished; | ||
startNewChild(): ServiceScope; | ||
private constructor(); | ||
protected constructor(parent: ServiceScope | undefined); | ||
/** | ||
* Registers a service to the ServiceScope. | ||
* @internal | ||
*/ | ||
protected _registerService<T>(serviceKey: ServiceKey<T>, service: T): void; | ||
private _processPendingCallbacks(); | ||
} |
@@ -1,5 +0,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = require("../Text"); | ||
var SPCoreLibraryStrings_resx_1 = require("./../SPCoreLibraryStrings.resx"); | ||
import Text from '../Text'; | ||
import strings from './../SPCoreLibraryStrings.resx'; | ||
var ServiceScope = (function () { | ||
@@ -25,6 +23,6 @@ function ServiceScope(parent) { | ||
if (!this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeConsumingBeforeFinished); | ||
throw new Error(strings.serviceScopeConsumingBeforeFinished); | ||
} | ||
if (this._autocreating) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeConsumingDuringAutoCreation); | ||
throw new Error(strings.serviceScopeConsumingDuringAutoCreation); | ||
} | ||
@@ -42,3 +40,3 @@ var registration = this._registrations[serviceKey.id]; | ||
autocreatedService = serviceKey.defaultCreator(this); | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: autocreatedService }; | ||
this._registerService(serviceKey, autocreatedService); | ||
} | ||
@@ -56,3 +54,3 @@ finally { | ||
if (this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeAlreadyFinishedError); | ||
throw new Error(strings.serviceScopeAlreadyFinishedError); | ||
} | ||
@@ -75,8 +73,8 @@ this._finished = true; | ||
if (this._finished) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.serviceScopeProvideServiceAfterFinishedError); | ||
throw new Error(strings.serviceScopeProvideServiceAfterFinishedError); | ||
} | ||
if (this._registrations[serviceKey.id]) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.serviceScopeProvideServiceThatAlreadyExists, serviceKey.name)); | ||
throw new Error(Text.format(strings.serviceScopeProvideServiceThatAlreadyExists, serviceKey.name)); | ||
} | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: service }; | ||
this._registerService(serviceKey, service); | ||
return service; | ||
@@ -87,2 +85,5 @@ }; | ||
}; | ||
ServiceScope.prototype._registerService = function (serviceKey, service) { | ||
this._registrations[serviceKey.id] = { serviceKey: serviceKey, service: service }; | ||
}; | ||
ServiceScope.prototype._processPendingCallbacks = function () { | ||
@@ -98,2 +99,2 @@ var pendingCallbacks = this._pendingCallbacks; | ||
}()); | ||
exports.default = ServiceScope; | ||
export default ServiceScope; |
@@ -1,6 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Guid_1 = require("./Guid"); | ||
var Validate_1 = require("./Validate"); | ||
var Log_1 = require("./log/Log"); | ||
import Guid from './Guid'; | ||
import Validate from './Validate'; | ||
import Log from './log/Log'; | ||
var Session = (function () { | ||
@@ -10,8 +8,8 @@ function Session() { | ||
Session._initialize = function (data) { | ||
Validate_1.default.isNotNullOrUndefined(data, 'data'); | ||
Session._applicationId = Guid_1.default.tryParse(data.applicationId) || Guid_1.default.empty; | ||
var pageIdGuid = Guid_1.default.tryParse(data.pageId); | ||
Validate.isNotNullOrUndefined(data, 'data'); | ||
Session._applicationId = Guid.tryParse(data.applicationId) || Guid.empty; | ||
var pageIdGuid = Guid.tryParse(data.pageId); | ||
if (!pageIdGuid) { | ||
Log_1.default.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined); | ||
pageIdGuid = Guid_1.default.newGuid(); | ||
Log.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined); | ||
pageIdGuid = Guid.newGuid(); | ||
} | ||
@@ -21,3 +19,3 @@ Session._pageId = pageIdGuid; | ||
Session._changePage = function () { | ||
Session._pageId = Guid_1.default.newGuid(); | ||
Session._pageId = Guid.newGuid(); | ||
}; | ||
@@ -40,2 +38,2 @@ Object.defineProperty(Session, "applicationId", { | ||
}()); | ||
exports.default = Session; | ||
export default Session; |
{ | ||
"$schema": "https://dev.office.com/json-schemas/spfx/client-side-component-manifest.schema.json", | ||
"$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-component-manifest.schema.json", | ||
@@ -4,0 +4,0 @@ "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", |
@@ -1,1 +0,1 @@ | ||
{"_gIErrcTokcw+/VVwa+ReIA":{"invalidEnvironmentTypeError":{"comment":"{NeedsReview}Error to show when the Environment class is initialized with an invalid EnvironmentType.","value":"EnvironmentType is invalid"},"invalidGuidStringError":{"comment":"{NeedsReview}Error to show when the Guid class fails to parse an invalid Guid. The {0} placeholder is the input guid string.","value":"Invalid GUID string: \"{0}\""},"isFalseValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isTrue() returns false. The {0} placeholder is the input's variable name.","value":"The value for \"{0}\" is false"},"isNullValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isNotNullOrUndefined() is called on a null value. The {0} placeholder is the input's variable name.","value":"The value for \"{0}\" must not be null"},"isUndefinedValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isNotNullOrUndefined() is called on an undefined value. The {0} placeholder is the input's variable name.","value":"The value for \"{0}\" must not be undefined"},"isEmptyStringValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isNonemptyString() returns false. The {0} placeholder is the input's variable name.","value":"The value for \"{0}\" must not be an empty string"},"invalidVersionStringError":{"comment":"{NeedsReview}Error to show when the Version class fails to parse an invalid Version string. The {0} placeholder is the input version string.","value":"Invalid version string: \"{0}\""},"logVerboseLevelMessage":{"comment":"{NeedsReview}Text used when logging a verbose level message. The {0} placeholder is the source of the log call. The {1} placeholder is the message to be logged. Example: \"SomeComponent: VERBOSE The page finished loading\"","value":"{0}: VERBOSE {1}"},"logInfoLevelMessage":{"comment":"{NeedsReview}Text used when logging a info level message. The {0} placeholder is the source of the log call. The {1} placeholder is the message to be logged. Example: \"SomeComponent: The page finished loading\"","value":"{0}: {1}"},"logWarningLevelMessage":{"comment":"{NeedsReview}Text used when logging a warning level message. The {0} placeholder is the source of the log call. The {1} placeholder is the message to be logged. Example: \"SomeComponent: WARNING The page finished loading\"","value":"{0}: WARNING {1}"},"logErrorLevelMessage":{"comment":"{NeedsReview}Text used when logging a error level message. The {0} placeholder is the source of the log call. The {1} placeholder is the error's message. Example: \"SomeComponent: ERROR The page finished loading\"","value":"{0}: ERROR: {1}"},"serviceScopeConsumingBeforeFinished":{"comment":"{NeedsReview}Error to show when someone attempts to consume a ServiceScope service before the finish() function has been called","value":"Cannot consume services because the scope is not finished yet"},"serviceScopeConsumingDuringAutoCreation":{"comment":"{NeedsReview}The ServiceScope will automatically create a service if it hasn't been registered yet. During this process, the ServiceScope.consume() function may not be used. This is a safeguard to prevent errors due to a circular dependency.","value":"Cannot consume services during ServiceScope autocreation"},"serviceScopeAlreadyFinishedError":{"comment":"{NeedsReview}Error to show when someone attempts to call finish on the ServiceScope after it has finished.","value":"The ServiceScope is already finished"},"serviceScopeProvideServiceAfterFinishedError":{"comment":"{NeedsReview}After the ServiceScope.finish() function has been called, developers are no long allowed to call provide(). This is a safeguard to prevent mistakes.","value":"Cannot register service because the scope is already finished"},"serviceScopeProvideServiceThatAlreadyExists":{"comment":"{NeedsReview}Attempts to register the same service more than once. The {0} placeholder is the service key's name.","value":"The service key \"{0}\" has already been registered in this scope"},"spErrorInnerErrorText":{"comment":"[Tag:ODSP-SPPPLAT-WebPartInfra]{NeedsReview}Text used to label an optional nested error object.","value":"INNERERROR:"},"spErrorCallStackText":{"comment":"[Tag:ODSP-SPPPLAT-WebPartInfra]{NeedsReview}Text used to label the error's callstack.","value":"CALLSTACK:"},"spErrorLogPropertiesText":{"comment":"[Tag:ODSP-SPPPLAT-WebPartInfra]{NeedsReview}Text used to label the error's optional log properties object.","value":"LOGPROPERTIES:"}}} | ||
{"_gIErrcTokcw+/VVwa+ReIA":{"invalidEnvironmentTypeError":{"comment":"{NeedsReview}Error to show when the Environment class is initialized with an invalid EnvironmentType.","value":"EnvironmentType is invalid"},"invalidGuidStringError":{"comment":"{NeedsReview}Error to show when the Guid class fails to parse an invalid Guid. The {0} placeholder is the input guid string.","value":"Invalid GUID string: \"{0}\""},"isFalseValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isTrue() returns false. The {0} placeholder is the input's variable name.","value":"The value for \"{0}\" is false"},"isNullValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isNotNullOrUndefined() is called on a null value. The {0} placeholder is the input's variable name.","value":"The value for \"{0}\" must not be null"},"isUndefinedValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isNotNullOrUndefined() is called on an undefined value. The {0} placeholder is the input's variable name.","value":"The value for \"{0}\" must not be undefined"},"isEmptyStringValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isNonemptyString() returns false. The {0} placeholder is the input's variable name.","value":"The value for \"{0}\" must not be an empty string"},"isDisposedValidateError":{"comment":"{NeedsReview}Error to show when the Validate.isNotDisposed() returns false. The {0} placeholder is the input's class name.","value":"The \"{0}\" object cannot be used because it has been disposed."},"invalidVersionStringError":{"comment":"{NeedsReview}Error to show when the Version class fails to parse an invalid Version string. The {0} placeholder is the input version string.","value":"Invalid version string: \"{0}\""},"logVerboseLevelMessage":{"comment":"{NeedsReview}Text used when logging a verbose level message. The {0} placeholder is the source of the log call. The {1} placeholder is the message to be logged. Example: \"SomeComponent: VERBOSE The page finished loading\"","value":"{0}: VERBOSE {1}"},"logInfoLevelMessage":{"comment":"{NeedsReview}Text used when logging a info level message. The {0} placeholder is the source of the log call. The {1} placeholder is the message to be logged. Example: \"SomeComponent: The page finished loading\"","value":"{0}: {1}"},"logWarningLevelMessage":{"comment":"{NeedsReview}Text used when logging a warning level message. The {0} placeholder is the source of the log call. The {1} placeholder is the message to be logged. Example: \"SomeComponent: WARNING The page finished loading\"","value":"{0}: WARNING {1}"},"logErrorLevelMessage":{"comment":"{NeedsReview}Text used when logging a error level message. The {0} placeholder is the source of the log call. The {1} placeholder is the error's message. Example: \"SomeComponent: ERROR The page finished loading\"","value":"{0}: ERROR: {1}"},"serviceScopeConsumingBeforeFinished":{"comment":"{NeedsReview}Error to show when someone attempts to consume a ServiceScope service before the finish() function has been called","value":"Cannot consume services because the scope is not finished yet"},"serviceScopeConsumingDuringAutoCreation":{"comment":"{NeedsReview}The ServiceScope will automatically create a service if it hasn't been registered yet. During this process, the ServiceScope.consume() function may not be used. This is a safeguard to prevent errors due to a circular dependency.","value":"Cannot consume services during ServiceScope autocreation"},"serviceScopeAlreadyFinishedError":{"comment":"{NeedsReview}Error to show when someone attempts to call finish on the ServiceScope after it has finished.","value":"The ServiceScope is already finished"},"serviceScopeProvideServiceAfterFinishedError":{"comment":"{NeedsReview}After the ServiceScope.finish() function has been called, developers are no long allowed to call provide(). This is a safeguard to prevent mistakes.","value":"Cannot register service because the scope is already finished"},"serviceScopeProvideServiceThatAlreadyExists":{"comment":"{NeedsReview}Attempts to register the same service more than once. The {0} placeholder is the service key's name.","value":"The service key \"{0}\" has already been registered in this scope"},"spErrorInnerErrorText":{"comment":"[Tag:ODSP-SPPPLAT-WebPartInfra]{NeedsReview}Text used to label an optional nested error object.","value":"INNERERROR:"},"spErrorCallStackText":{"comment":"[Tag:ODSP-SPPPLAT-WebPartInfra]{NeedsReview}Text used to label the error's callstack.","value":"CALLSTACK:"},"spErrorLogPropertiesText":{"comment":"[Tag:ODSP-SPPPLAT-WebPartInfra]{NeedsReview}Text used to label the error's optional log properties object.","value":"LOGPROPERTIES:"},"dynamicDataManagerSourceAlreadyExists":{"comment":"{NeedsReview}Error message when trying to add a Dynamic Data Source that already exists. {0} is the source id.","value":"A source with id \"{0}\" already exists."},"dynamicDataManagerSourceDoesntExist":{"comment":"{NeedsReview}Error message when refering to a Dynamic Data Source that doesn't exist. {0} is the source id.","value":"No source with id \"{0}\" found."}}} |
@@ -8,2 +8,3 @@ export interface IStrings { | ||
isEmptyStringValidateError: string; | ||
isDisposedValidateError: string; | ||
invalidVersionStringError: string; | ||
@@ -22,2 +23,4 @@ logVerboseLevelMessage: string; | ||
spErrorLogPropertiesText: string; | ||
dynamicDataManagerSourceAlreadyExists: string; | ||
dynamicDataManagerSourceDoesntExist: string; | ||
} | ||
@@ -24,0 +27,0 @@ export interface IStringsWrapper { |
@@ -1,6 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var strings = (typeof DEPRECATED_UNIT_TEST === 'undefined' || DEPRECATED_UNIT_TEST) | ||
? require('resx-strings/en-us.json') | ||
: require('resx-strings'); | ||
exports.default = strings['_gIErrcTokcw+/VVwa+ReIA']; | ||
var strings = (typeof DEPRECATED_UNIT_TEST === 'undefined' || DEPRECATED_UNIT_TEST) ? | ||
require("./resx-strings/en-us.json") : | ||
require("resx-strings"); | ||
export default strings['_gIErrcTokcw+/VVwa+ReIA']; |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
@@ -12,5 +11,4 @@ var extendStatics = Object.setPrototypeOf || | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Validate_1 = require("./Validate"); | ||
var SPCoreLibraryStrings_resx_1 = require("./SPCoreLibraryStrings.resx"); | ||
import Validate from './Validate'; | ||
import strings from './SPCoreLibraryStrings.resx'; | ||
var SPError = (function (_super) { | ||
@@ -21,4 +19,4 @@ __extends(SPError, _super); | ||
_this.__proto__ = SPError.prototype; | ||
Validate_1.default.isNonemptyString(errorCode, 'errorCode'); | ||
Validate_1.default.isNonemptyString(message, 'message'); | ||
Validate.isNonemptyString(errorCode, 'errorCode'); | ||
Validate.isNonemptyString(message, 'message'); | ||
_this._errorCode = errorCode; | ||
@@ -68,3 +66,3 @@ _this.message = message; | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorInnerErrorText, | ||
strings.spErrorInnerErrorText, | ||
this.innerError.message | ||
@@ -75,3 +73,3 @@ ]); | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorCallStackText, | ||
strings.spErrorCallStackText, | ||
this.stack | ||
@@ -82,3 +80,3 @@ ]); | ||
errorMessageArray = errorMessageArray.concat([ | ||
SPCoreLibraryStrings_resx_1.default.spErrorLogPropertiesText, | ||
strings.spErrorLogPropertiesText, | ||
JSON.stringify(this._logProperties) | ||
@@ -94,2 +92,2 @@ ]); | ||
}(Error)); | ||
exports.default = SPError; | ||
export default SPError; |
@@ -36,2 +36,6 @@ /** | ||
/** | ||
* Return true if the debug flight is enabled. | ||
*/ | ||
static readonly isDebugFlightEnabled: boolean; | ||
/** | ||
* RESERVED FOR INTERNAL USAGE. This method is invoked automatically by the system shell. | ||
@@ -38,0 +42,0 @@ * The application code should not call it directly. |
@@ -1,4 +0,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DISABLED_FLIGHT_PREFIX = '!'; | ||
var SPFX_DEBUG_FLIGHT_ID = 205; | ||
var SPFlight = (function () { | ||
@@ -13,2 +12,9 @@ function SPFlight() { | ||
}; | ||
Object.defineProperty(SPFlight, "isDebugFlightEnabled", { | ||
get: function () { | ||
return SPFlight.isEnabled(SPFX_DEBUG_FLIGHT_ID); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
SPFlight.setDebugFlights = function (debugFlights) { | ||
@@ -77,2 +83,2 @@ if (!this._isInitialized) { | ||
}()); | ||
exports.default = SPFlight; | ||
export default SPFlight; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Guid_1 = require("./Guid"); | ||
import Guid from './Guid'; | ||
var SPKillSwitch = (function () { | ||
@@ -13,3 +11,3 @@ function SPKillSwitch() { | ||
var killSwitchGuid = _a[_i]; | ||
var normalizedKillSwitchGuid = Guid_1.default.tryParse(killSwitchGuid); | ||
var normalizedKillSwitchGuid = Guid.tryParse(killSwitchGuid); | ||
if (normalizedKillSwitchGuid) { | ||
@@ -27,3 +25,4 @@ this._activatedKillSwitches.set(normalizedKillSwitchGuid.toString(), true); | ||
try { | ||
for (var killSwitch in debugKillswitches.split(',').map(function (value) { return Guid_1.default.tryParse(value); })) { | ||
for (var _i = 0, _a = debugKillswitches.split(',').map(function (value) { return Guid.tryParse(value); }); _i < _a.length; _i++) { | ||
var killSwitch = _a[_i]; | ||
if (killSwitch) { | ||
@@ -52,2 +51,2 @@ this._activatedKillSwitches.set(killSwitch.toString(), true); | ||
}()); | ||
exports.default = SPKillSwitch; | ||
export default SPKillSwitch; |
export { default as MockRandomNumberGenerator } from './MockRandomNumberGenerator'; | ||
export { default as MockTimeProvider } from './MockTimeProvider'; | ||
export { default as MonitoredServiceScope } from './MonitoredServiceScope'; | ||
/** | ||
@@ -4,0 +5,0 @@ * This constant is used for passing in the value undefined into unit tests that don't accept |
@@ -1,8 +0,5 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var MockRandomNumberGenerator_1 = require("./MockRandomNumberGenerator"); | ||
exports.MockRandomNumberGenerator = MockRandomNumberGenerator_1.default; | ||
var MockTimeProvider_1 = require("./MockTimeProvider"); | ||
exports.MockTimeProvider = MockTimeProvider_1.default; | ||
exports.TEST_UNDEFINED = undefined; | ||
exports.TEST_NULL = null; | ||
export { default as MockRandomNumberGenerator } from './MockRandomNumberGenerator'; | ||
export { default as MockTimeProvider } from './MockTimeProvider'; | ||
export { default as MonitoredServiceScope } from './MonitoredServiceScope'; | ||
export var TEST_UNDEFINED = undefined; | ||
export var TEST_NULL = null; |
@@ -1,3 +0,2 @@ | ||
import ServiceScope from '../serviceScope/ServiceScope'; | ||
import { IRandomNumberGenerator } from '../serviceScope/provider/RandomNumberGenerator'; | ||
import { ServiceScope, IRandomNumberGenerator } from '../index'; | ||
/** | ||
@@ -4,0 +3,0 @@ * This is a test implementation of IRandomNumberGenerator that provides |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var MockRandomNumberGenerator = (function () { | ||
@@ -28,2 +26,2 @@ function MockRandomNumberGenerator(serviceScope) { | ||
}()); | ||
exports.default = MockRandomNumberGenerator; | ||
export default MockRandomNumberGenerator; |
@@ -1,3 +0,2 @@ | ||
import ServiceScope from '../serviceScope/ServiceScope'; | ||
import { ITimeProvider } from '../serviceScope/provider/TimeProvider'; | ||
import { ServiceScope, ITimeProvider } from '../index'; | ||
/** | ||
@@ -4,0 +3,0 @@ * This is a test implementation of ITimeProvider that allows unit tests |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var MockTimeProvider = (function () { | ||
@@ -20,2 +18,2 @@ function MockTimeProvider(serviceScope) { | ||
}()); | ||
exports.default = MockTimeProvider; | ||
export default MockTimeProvider; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SPCoreLibraryStrings_resx_1 = require("./SPCoreLibraryStrings.resx"); | ||
import strings from './SPCoreLibraryStrings.resx'; | ||
var Text = (function () { | ||
@@ -13,6 +11,6 @@ function Text() { | ||
if (s === null) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.isNullValidateError.replace('{0}', 's')); | ||
throw new Error(strings.isNullValidateError.replace('{0}', 's')); | ||
} | ||
if (s === undefined) { | ||
throw new Error(SPCoreLibraryStrings_resx_1.default.isUndefinedValidateError.replace('{0}', 's')); | ||
throw new Error(strings.isUndefinedValidateError.replace('{0}', 's')); | ||
} | ||
@@ -38,2 +36,2 @@ return s.replace(Text.FORMAT_REGEX, function (match) { | ||
}()); | ||
exports.default = Text; | ||
export default Text; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var UrlQueryParameterCollection = (function () { | ||
@@ -80,2 +78,2 @@ function UrlQueryParameterCollection(url) { | ||
}()); | ||
exports.default = UrlQueryParameterCollection; | ||
export default UrlQueryParameterCollection; |
@@ -62,2 +62,16 @@ /** | ||
static convertToODataStringLiteral(value: string): string; | ||
/** | ||
* Detects if a string represents a correctly formatted data URL. | ||
* | ||
* Examples: | ||
* isDataUrl('data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D') ---> true | ||
* isDataUrl('data:,Hello%2C%20World!') ---> true | ||
* isDataUrl('data:image/png;base64,iVBORw0KGgoAA') ---> true | ||
* isDataUrl('http://contoso.com') ---> false | ||
* isDataUrl('/foo/bar') ---> false | ||
* | ||
* @remarks | ||
* Information on data URLs can be found at https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | ||
*/ | ||
static isDataUrl(url: string): boolean; | ||
} |
@@ -1,6 +0,5 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var lodash = require("@microsoft/sp-lodash-subset"); | ||
var Validate_1 = require("../Validate"); | ||
import * as lodash from '@microsoft/sp-lodash-subset'; | ||
import Validate from '../Validate'; | ||
var URL_PROTOCOL_REGEX = /^\w+\:\/\//; | ||
var BASE64_IMAGE_REGEX = /^data:(\w+\/\w+)?(;charset=[\w-]+)?(;base64)?,.*/i; | ||
var UrlUtilities = (function () { | ||
@@ -10,4 +9,4 @@ function UrlUtilities() { | ||
UrlUtilities.resolve = function (url, baseUrl) { | ||
Validate_1.default.isNonemptyString(url, 'url'); | ||
Validate_1.default.isNonemptyString(baseUrl, 'baseUrl'); | ||
Validate.isNonemptyString(url, 'url'); | ||
Validate.isNonemptyString(baseUrl, 'baseUrl'); | ||
var isRelativeUrl = !url.match(URL_PROTOCOL_REGEX); | ||
@@ -28,3 +27,3 @@ if (isRelativeUrl) { | ||
UrlUtilities.convertToODataStringLiteral = function (value) { | ||
Validate_1.default.isNotNullOrUndefined(value, 'value'); | ||
Validate.isNotNullOrUndefined(value, 'value'); | ||
value = value.replace(/'/g, "''"); | ||
@@ -34,4 +33,8 @@ value = "'" + value + "'"; | ||
}; | ||
UrlUtilities.isDataUrl = function (url) { | ||
Validate.isNotNullOrUndefined(url, 'url'); | ||
return !!url.match(BASE64_IMAGE_REGEX); | ||
}; | ||
return UrlUtilities; | ||
}()); | ||
exports.default = UrlUtilities; | ||
export default UrlUtilities; |
@@ -0,1 +1,2 @@ | ||
import { IDisposable } from './IDisposable'; | ||
/** | ||
@@ -32,2 +33,8 @@ * Performs common validation tests for properties and function parameters. | ||
static isNonemptyString(value: string | undefined | null, variableName: string): void; | ||
/** | ||
* Throws an exception if the specified object has been disposed. | ||
* @param value - the value to check | ||
* @param className - the class name, which will be mentioned in the error message | ||
*/ | ||
static isNotDisposed(value: IDisposable, className: string): void; | ||
} |
@@ -1,5 +0,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = require("./Text"); | ||
var SPCoreLibraryStrings_resx_1 = require("./SPCoreLibraryStrings.resx"); | ||
import Text from './Text'; | ||
import strings from './SPCoreLibraryStrings.resx'; | ||
var Validate = (function () { | ||
@@ -10,3 +8,3 @@ function Validate() { | ||
if (!value) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isFalseValidateError, variableName)); | ||
throw new Error(Text.format(strings.isFalseValidateError, variableName)); | ||
} | ||
@@ -16,6 +14,6 @@ }; | ||
if (value === null) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isNullValidateError, variableName)); | ||
throw new Error(Text.format(strings.isNullValidateError, variableName)); | ||
} | ||
if (value === undefined) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isUndefinedValidateError, variableName)); | ||
throw new Error(Text.format(strings.isUndefinedValidateError, variableName)); | ||
} | ||
@@ -26,7 +24,12 @@ }; | ||
if (!value || value && value.length === 0) { | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.isEmptyStringValidateError, variableName)); | ||
throw new Error(Text.format(strings.isEmptyStringValidateError, variableName)); | ||
} | ||
}; | ||
Validate.isNotDisposed = function (value, className) { | ||
if (value.isDisposed) { | ||
throw new Error(Text.format(strings.isDisposedValidateError, className)); | ||
} | ||
}; | ||
return Validate; | ||
}()); | ||
exports.default = Validate; | ||
export default Validate; |
@@ -1,6 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Text_1 = require("./Text"); | ||
var Validate_1 = require("./Validate"); | ||
var SPCoreLibraryStrings_resx_1 = require("./SPCoreLibraryStrings.resx"); | ||
import Text from './Text'; | ||
import Validate from './Validate'; | ||
import strings from './SPCoreLibraryStrings.resx'; | ||
var Version = (function () { | ||
@@ -21,3 +19,3 @@ function Version(major, minor, patch, revision) { | ||
} | ||
throw new Error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.invalidVersionStringError, versionString)); | ||
throw new Error(Text.format(strings.invalidVersionStringError, versionString)); | ||
}; | ||
@@ -35,4 +33,4 @@ Version.tryParse = function (versionString) { | ||
Version.compare = function (v1, v2) { | ||
Validate_1.default.isNotNullOrUndefined(v1, 'v1'); | ||
Validate_1.default.isNotNullOrUndefined(v2, 'v2'); | ||
Validate.isNotNullOrUndefined(v1, 'v1'); | ||
Validate.isNotNullOrUndefined(v2, 'v2'); | ||
if (v1.major !== v2.major) { | ||
@@ -90,3 +88,3 @@ return v1.major > v2.major ? 1 : -1; | ||
Version.prototype.satisfies = function (compareWith) { | ||
Validate_1.default.isNotNullOrUndefined(compareWith, 'compareWith'); | ||
Validate.isNotNullOrUndefined(compareWith, 'compareWith'); | ||
return this.major === compareWith.major && !this.lessThan(compareWith); | ||
@@ -106,2 +104,2 @@ }; | ||
}()); | ||
exports.default = Version; | ||
export default Version; |
{ | ||
"name": "@microsoft/sp-core-library", | ||
"version": "1.4.1", | ||
"version": "1.5.0-plusbeta", | ||
"description": "SharePoint Framework core libraries", | ||
@@ -8,5 +8,8 @@ "license": "SEE LICENSE IN \"EULA\" FOLDER", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"typings": "dist/index-internal.d.ts", | ||
"tsdoc": { | ||
"tsdocFlavor": "AEDoc" | ||
}, | ||
"devDependencies": { | ||
"@ms/sp-build-internal-web": "~0.9.6", | ||
"@ms/sp-build-internal-web": "~0.16.13", | ||
"@types/chai": "3.4.34", | ||
@@ -18,4 +21,4 @@ "@types/mocha": "2.2.38", | ||
"dependencies": { | ||
"@microsoft/sp-lodash-subset": "1.4.1", | ||
"@microsoft/sp-module-interfaces": "1.4.1", | ||
"@microsoft/sp-lodash-subset": "1.5.0-plusbeta", | ||
"@microsoft/sp-module-interfaces": "1.5.0-plusbeta", | ||
"@types/es6-promise": "0.0.33", | ||
@@ -22,0 +25,0 @@ "@types/webpack-env": "1.13.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2355815
194
12459
1
+ Added@microsoft/sp-lodash-subset@1.5.0-plusbeta(transitive)
+ Added@microsoft/sp-module-interfaces@1.5.0-plusbeta(transitive)
+ Added@types/node@8.5.8(transitive)
- Removed@microsoft/sp-lodash-subset@1.4.1(transitive)
- Removed@microsoft/sp-module-interfaces@1.4.1(transitive)
- Removed@types/node@6.0.64(transitive)