@microsoft/sp-component-base 1.17.4 → 1.18.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/467dc675-7cc5-4709-8aac-78e3b71bd2f6.manifest.json +72 -72
- package/dist/{chunk.legacy-third-party-fabric-core-localfont_none_88db560a7c049acb5296.js → chunk.legacy-third-party-fabric-core-localfont_none_25f8b4362ff682e627eb.js} +1 -1
- package/dist/index-internal-beta.d.ts +6 -7
- package/dist/index-internal-public.d.ts +6 -7
- package/dist/index-internal.d.ts +6 -7
- package/dist/sp-component-base_default_1f265e5284a882fbe34f.js +1 -0
- package/dist/sp-component-base_en-us_1f265e5284a882fbe34f.js +1 -0
- package/dist/sp-component-base_qps-ploc_1f265e5284a882fbe34f.js +1 -0
- package/dist/sp-component-base_qps-ploca_1f265e5284a882fbe34f.js +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/DynamicDataProvider.js +7 -7
- package/lib-commonjs/DynamicDataSourceManager.js +10 -10
- package/lib-commonjs/DynamicProperty.js +1 -4
- package/lib-commonjs/LegacyThirdPartyFabricCoreLoader.js +5 -5
- package/lib-commonjs/PropertyMetadataProcessor.js +20 -19
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/FabricLocalFont.js +2 -3
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/fabric-core-sass/Fabric.LocalFont.scss.css +28 -28
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/fabric-core-sass/Fabric.LocalFontKillSwitchActivated.scss.css +28 -130
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/fabric-core-shim.scss.css +28 -28
- package/lib-commonjs/chunks/legacy-third-party-fabric-core/fabric-core-shimKillSwitchActivated.scss.css +28 -28
- package/lib-commonjs/common/KillSwitches.js +5 -1
- package/lib-commonjs/dataCollector/IWebPartLoadData.js +2 -4
- package/package.json +21 -20
- package/dist/sp-component-base_default_de5b95998cc2d68906ac.js +0 -1
- package/dist/sp-component-base_en-us_de5b95998cc2d68906ac.js +0 -1
- package/dist/sp-component-base_qps-ploc_de5b95998cc2d68906ac.js +0 -1
- package/dist/sp-component-base_qps-ploca_de5b95998cc2d68906ac.js +0 -1
|
@@ -119,7 +119,7 @@ var DynamicDataProvider = /** @class */ (function () {
|
|
|
119
119
|
sp_core_library_1.Validate.isNonemptyString(sourceId, 'sourceId');
|
|
120
120
|
sp_core_library_1.Validate.isNotNullOrUndefined(callback, 'callback');
|
|
121
121
|
var registration = { id: sourceId, callback: callback };
|
|
122
|
-
if (!this.
|
|
122
|
+
if (!this._isRegistrationPending(registration)) {
|
|
123
123
|
// Source is already registered.
|
|
124
124
|
this._dynamicDataManager.unregisterSourceChanged(sourceId, this._component, callback);
|
|
125
125
|
this._logFeatureEntry('UnregisterSourceChanged', { sourceId: sourceId });
|
|
@@ -184,7 +184,7 @@ var DynamicDataProvider = /** @class */ (function () {
|
|
|
184
184
|
propertyId: propertyId
|
|
185
185
|
};
|
|
186
186
|
// registration is in pending state.
|
|
187
|
-
if (!this.
|
|
187
|
+
if (!this._isRegistrationPending(registration)) {
|
|
188
188
|
this._dynamicDataManager.unregisterPropertyChanged(sourceId, propertyId, this._component, callback);
|
|
189
189
|
this._logFeatureEntry('UnregisterPropertyChanged', { sourceId: sourceId, propertyId: propertyId });
|
|
190
190
|
}
|
|
@@ -271,7 +271,7 @@ var DynamicDataProvider = /** @class */ (function () {
|
|
|
271
271
|
if (!dataSource) {
|
|
272
272
|
return undefined;
|
|
273
273
|
}
|
|
274
|
-
var data = dataSource.getPropertyValue(dataReference.property);
|
|
274
|
+
var data = dataSource.getPropertyValue(dataReference.property);
|
|
275
275
|
if (data && dataReference.propertyPath) {
|
|
276
276
|
// multiple levels of sub-properties are separated by '.' in the property path.
|
|
277
277
|
var subpaths = dataReference.propertyPath.split('.');
|
|
@@ -286,7 +286,7 @@ var DynamicDataProvider = /** @class */ (function () {
|
|
|
286
286
|
// then extract that specific entry.
|
|
287
287
|
if (data) {
|
|
288
288
|
if (Array.isArray(data)) {
|
|
289
|
-
var dataItems_1 = [];
|
|
289
|
+
var dataItems_1 = [];
|
|
290
290
|
data.forEach(function (item) {
|
|
291
291
|
if (item.hasOwnProperty(subProperty)) {
|
|
292
292
|
dataItems_1.push(item[subProperty]);
|
|
@@ -303,7 +303,7 @@ var DynamicDataProvider = /** @class */ (function () {
|
|
|
303
303
|
* Since the subpath element is an array, we are normalizing the existing dataItems object
|
|
304
304
|
* i.e., dataItems will have an array of array objects.
|
|
305
305
|
*/
|
|
306
|
-
var tempDataItems_1 = [];
|
|
306
|
+
var tempDataItems_1 = [];
|
|
307
307
|
dataItems_1.forEach(function (dataItem) {
|
|
308
308
|
dataItem.forEach(function (internalItem) { return tempDataItems_1.push(internalItem); });
|
|
309
309
|
});
|
|
@@ -367,7 +367,7 @@ var DynamicDataProvider = /** @class */ (function () {
|
|
|
367
367
|
* Also adds a listener to the _DynamicDataManager's sourcesChangedEvent.
|
|
368
368
|
*/
|
|
369
369
|
DynamicDataProvider.prototype._addPendingRegistration = function (registration) {
|
|
370
|
-
if (!this.
|
|
370
|
+
if (!this._isRegistrationPending(registration)) {
|
|
371
371
|
this._pendingRegistrations.set(registration.id + (registration.propertyId || ''), {
|
|
372
372
|
id: registration.id,
|
|
373
373
|
propertyId: registration.propertyId,
|
|
@@ -395,7 +395,7 @@ var DynamicDataProvider = /** @class */ (function () {
|
|
|
395
395
|
*
|
|
396
396
|
* @param incomingRegistration - registration to be checked.
|
|
397
397
|
*/
|
|
398
|
-
DynamicDataProvider.prototype.
|
|
398
|
+
DynamicDataProvider.prototype._isRegistrationPending = function (incomingRegistration) {
|
|
399
399
|
return this._pendingRegistrations.has(incomingRegistration.id + (incomingRegistration.propertyId || ''));
|
|
400
400
|
};
|
|
401
401
|
/**
|
|
@@ -82,7 +82,7 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
82
82
|
DynamicDataSourceManager.prototype.initializeSource = function (callableFunctions) {
|
|
83
83
|
this._assertNotDisposed();
|
|
84
84
|
this._assertInitialized();
|
|
85
|
-
if (
|
|
85
|
+
if (this._src) {
|
|
86
86
|
throw new Error(Strings_resx_1.default.SourceAlreadyInitialized);
|
|
87
87
|
}
|
|
88
88
|
this._callableFunctions = callableFunctions;
|
|
@@ -186,7 +186,6 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
186
186
|
* @param eventName - Name of the event
|
|
187
187
|
* @param data - Associated data
|
|
188
188
|
*/
|
|
189
|
-
// tslint:disable-next-line:no-any
|
|
190
189
|
DynamicDataSourceManager.prototype._sendEvent = function (eventName, data) {
|
|
191
190
|
this._assertValidEvent(eventName);
|
|
192
191
|
this._callableFunctions.sendEvent(eventName, data);
|
|
@@ -210,13 +209,11 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
210
209
|
* propertyId will have [*] notation appended at the end to support valid JSON Path notation.
|
|
211
210
|
* Hence when reading the property id, we account for that and extract the name accordingly.
|
|
212
211
|
*/
|
|
213
|
-
// tslint:disable-next-line:no-any
|
|
214
212
|
DynamicDataSourceManager.prototype._getPropertyValue = function (propertyId) {
|
|
215
213
|
sp_core_library_1.Validate.isNotNullOrUndefined(propertyId, 'propertyId');
|
|
216
214
|
var qosMonitor = new sp_diagnostics_1._QosMonitor('DynamicDataSourceManager._getPropertyValue');
|
|
217
215
|
var paths = propertyId.split(DynamicDataProvider_1.default._jsonPathArrayRegex);
|
|
218
216
|
try {
|
|
219
|
-
// tslint:disable-next-line:no-any
|
|
220
217
|
var propertyValue = this._callableFunctions.getPropertyValue(paths.shift());
|
|
221
218
|
if (paths.length > 0) {
|
|
222
219
|
if (!isNaN(parseInt(paths[0], 10)) && Array.isArray(propertyValue)) {
|
|
@@ -227,7 +224,7 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
227
224
|
if (
|
|
228
225
|
// This code can be slow if there is a many property definitions (O(n) for number of properties).
|
|
229
226
|
// It's done this way to prioritize memory consumption instead of CPU cycles as this is an optional feature,
|
|
230
|
-
// so if it's not used there is no memory
|
|
227
|
+
// so if it's not used there is no memory footprint
|
|
231
228
|
this._callableFunctions.getPropertyDefinitions().filter(function (def) { return def.id === propertyId; }).length ===
|
|
232
229
|
0 &&
|
|
233
230
|
this._src // Check that the source exists to get its title
|
|
@@ -235,7 +232,13 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
235
232
|
throw new Error("Property \"".concat(propertyId, "\" doesn't exist in source \"").concat(this._src.metadata.title, "\""));
|
|
236
233
|
}
|
|
237
234
|
}
|
|
238
|
-
|
|
235
|
+
// propertyValue can contain PII so we need to remove it before logging.
|
|
236
|
+
if ((0, KillSwitches_1.isDropPropertyValueExtraDataKsActivated)()) {
|
|
237
|
+
qosMonitor.writeSuccess(tslib_1.__assign(tslib_1.__assign({}, ((this._src && this._src.metadata) || {})), { sourceId: this._src && this._src.id, propertyValue: propertyValue, propertyId: propertyId }));
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
qosMonitor.writeSuccess(tslib_1.__assign(tslib_1.__assign({}, ((this._src && this._src.metadata) || {})), { sourceId: this._src && this._src.id, propertyId: propertyId }));
|
|
241
|
+
}
|
|
239
242
|
return (0, sp_lodash_subset_1.cloneDeep)(propertyValue);
|
|
240
243
|
}
|
|
241
244
|
catch (error) {
|
|
@@ -249,7 +252,6 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
249
252
|
};
|
|
250
253
|
/**
|
|
251
254
|
* Returns the real time value of the property.
|
|
252
|
-
* @param propertyId - property id for which the value is requested.
|
|
253
255
|
*/
|
|
254
256
|
DynamicDataSourceManager.prototype._getPropertyDefinitionsAsync = function () {
|
|
255
257
|
return Promise.resolve(this._getPropertyDefinitions());
|
|
@@ -258,7 +260,6 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
258
260
|
* Returns the real time value of the property.
|
|
259
261
|
* @param propertyId - property id for which the value is requested.
|
|
260
262
|
*/
|
|
261
|
-
// tslint:disable-next-line:no-any
|
|
262
263
|
DynamicDataSourceManager.prototype._getPropertyValueAsync = function (propertyId) {
|
|
263
264
|
return Promise.resolve(this._getPropertyValue(propertyId));
|
|
264
265
|
};
|
|
@@ -290,7 +291,6 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
290
291
|
if (getAnnotatedPropertyValue) {
|
|
291
292
|
var paths = propertyId.split(DynamicDataProvider_1.default._jsonPathArrayRegex);
|
|
292
293
|
try {
|
|
293
|
-
// tslint:disable-next-line:no-any
|
|
294
294
|
annotatedPropertyValue = this._callableFunctions.getAnnotatedPropertyValue(paths.shift());
|
|
295
295
|
if (paths.length > 0) {
|
|
296
296
|
if (!isNaN(parseInt(paths[0], 10)) && Array.isArray(annotatedPropertyValue)) {
|
|
@@ -331,7 +331,7 @@ var DynamicDataSourceManager = /** @class */ (function () {
|
|
|
331
331
|
instanceId: component.instanceId
|
|
332
332
|
};
|
|
333
333
|
// Web parts have properties "title" and "description" that should go to the source by default.
|
|
334
|
-
var componentWithMetadata = component;
|
|
334
|
+
var componentWithMetadata = component;
|
|
335
335
|
if (componentWithMetadata.title) {
|
|
336
336
|
metadata.title = componentWithMetadata.title;
|
|
337
337
|
}
|
|
@@ -27,7 +27,6 @@ var DynamicProperty = /** @class */ (function () {
|
|
|
27
27
|
this._hasValue = false;
|
|
28
28
|
this._isDisposed = false;
|
|
29
29
|
sp_core_library_1.Validate.isNotNullOrUndefined(provider, 'provider');
|
|
30
|
-
// tslint:disable-next-line:no-string-literal
|
|
31
30
|
this['__type'] = DynamicProperty._TYPE_NAME;
|
|
32
31
|
this._provider = provider;
|
|
33
32
|
this._callbacks = new Set();
|
|
@@ -203,7 +202,6 @@ var DynamicProperty = /** @class */ (function () {
|
|
|
203
202
|
* an empty array if the source or the data doesn't exist.
|
|
204
203
|
*/
|
|
205
204
|
DynamicProperty.prototype.tryGetValues = function () {
|
|
206
|
-
// tslint:disable-next-line:no-any
|
|
207
205
|
var value = this._getData();
|
|
208
206
|
// OK, time for some massaging of the return.
|
|
209
207
|
if (value) {
|
|
@@ -326,7 +324,6 @@ var DynamicProperty = /** @class */ (function () {
|
|
|
326
324
|
*
|
|
327
325
|
* @internal
|
|
328
326
|
*/
|
|
329
|
-
// tslint:disable-next-line:no-any
|
|
330
327
|
DynamicProperty.prototype._cloneDeep = function (instance) {
|
|
331
328
|
return lodash.cloneDeepWith(instance, function (prop) {
|
|
332
329
|
if (prop instanceof DynamicDataProvider_1.default) {
|
|
@@ -341,7 +338,7 @@ var DynamicProperty = /** @class */ (function () {
|
|
|
341
338
|
* Removes the array notation from the property name, if any, before it is being registered.
|
|
342
339
|
* This is to avoid any mismatch between the strings passed by the source when it notifies
|
|
343
340
|
* a property change, as the source doesn't pass any array notation with the property name.
|
|
344
|
-
* Array notation is only for internal
|
|
341
|
+
* Array notation is only for internal representation, for a property whose value is an array type.
|
|
345
342
|
*/
|
|
346
343
|
DynamicProperty.prototype._getPropertyToRegister = function () {
|
|
347
344
|
sp_core_library_1.Validate.isNotDisposed(this, 'DynamicData');
|
|
@@ -44,10 +44,10 @@ var LegacyThirdPartyFabricCoreLoader = /** @class */ (function () {
|
|
|
44
44
|
* @param isComponentInternal - indicates whether the requesting component is internal to Microsoft or not.
|
|
45
45
|
*/
|
|
46
46
|
LegacyThirdPartyFabricCoreLoader.load = function (isComponentInternal) {
|
|
47
|
-
if (!isComponentInternal && !LegacyThirdPartyFabricCoreLoader.
|
|
47
|
+
if (!isComponentInternal && !LegacyThirdPartyFabricCoreLoader._isLoaded) {
|
|
48
48
|
return Promise.resolve().then(function () { return __importStar(require(
|
|
49
49
|
/* webpackChunkName: 'legacy-third-party-fabric-core-localfont' */ './chunks/legacy-third-party-fabric-core/FabricLocalFont')); }).then(function () {
|
|
50
|
-
LegacyThirdPartyFabricCoreLoader.
|
|
50
|
+
LegacyThirdPartyFabricCoreLoader._isLoaded = true;
|
|
51
51
|
return;
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -69,7 +69,7 @@ var LegacyThirdPartyFabricCoreLoader = /** @class */ (function () {
|
|
|
69
69
|
if (LegacyThirdPartyFabricCoreLoader._shouldLoad(manifest)) {
|
|
70
70
|
return Promise.resolve().then(function () { return __importStar(require(
|
|
71
71
|
/* webpackChunkName: 'legacy-third-party-fabric-core-localfont' */ './chunks/legacy-third-party-fabric-core/FabricLocalFont')); }).then(function () {
|
|
72
|
-
LegacyThirdPartyFabricCoreLoader.
|
|
72
|
+
LegacyThirdPartyFabricCoreLoader._isLoaded = true;
|
|
73
73
|
return;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
@@ -102,13 +102,13 @@ var LegacyThirdPartyFabricCoreLoader = /** @class */ (function () {
|
|
|
102
102
|
return manifest.loadLegacyFabricCss;
|
|
103
103
|
};
|
|
104
104
|
LegacyThirdPartyFabricCoreLoader._shouldLoad = function (manifest) {
|
|
105
|
-
return (!LegacyThirdPartyFabricCoreLoader.
|
|
105
|
+
return (!LegacyThirdPartyFabricCoreLoader._isLoaded &&
|
|
106
106
|
LegacyThirdPartyFabricCoreLoader.needLegacyFabricCss(manifest));
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* Indicates whether the fabric-core styles are loaded on the page or not.
|
|
110
110
|
*/
|
|
111
|
-
LegacyThirdPartyFabricCoreLoader.
|
|
111
|
+
LegacyThirdPartyFabricCoreLoader._isLoaded = false;
|
|
112
112
|
return LegacyThirdPartyFabricCoreLoader;
|
|
113
113
|
}());
|
|
114
114
|
exports.default = LegacyThirdPartyFabricCoreLoader;
|
|
@@ -16,8 +16,8 @@ var PropertyMetadataProcessor = /** @class */ (function () {
|
|
|
16
16
|
/**
|
|
17
17
|
* Serialize the properties into server processed content as declared in metadata.
|
|
18
18
|
*
|
|
19
|
-
* @param properties - The component properties. This object will be modified during serialization.
|
|
20
19
|
* @param propertiesMetadata - The component properties metadata.
|
|
20
|
+
* @param properties - The component properties. This object will be modified during serialization.
|
|
21
21
|
* @param serverProcessedContent - The serialized server processed content. This object will be modified.
|
|
22
22
|
*/
|
|
23
23
|
PropertyMetadataProcessor.serializeServerProcessedData = function (propertiesMetadata, properties, serverProcessedContent) {
|
|
@@ -55,14 +55,13 @@ var PropertyMetadataProcessor = /** @class */ (function () {
|
|
|
55
55
|
// Build custom metadata for the given property path
|
|
56
56
|
var customMetadata_1 = {};
|
|
57
57
|
if (metadata && metadata.customMetadata) {
|
|
58
|
-
var _loop_1 = function (propName) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
if (iteration !== undefined && customMetadataPropPath.indexOf('*') !== -1) {
|
|
58
|
+
var _loop_1 = function (propName, customMetadataPropPath) {
|
|
59
|
+
var normalizedCustomMetadataPropPath = customMetadataPropPath;
|
|
60
|
+
if (iteration !== undefined && normalizedCustomMetadataPropPath.indexOf('*') !== -1) {
|
|
62
61
|
// Custom metadata should be resolved with current iteration of wildcard
|
|
63
|
-
|
|
62
|
+
normalizedCustomMetadataPropPath = normalizedCustomMetadataPropPath.replace('*', iteration.toString());
|
|
64
63
|
}
|
|
65
|
-
_this._validateAndIteratePath(
|
|
64
|
+
_this._validateAndIteratePath(normalizedCustomMetadataPropPath, properties, function (fixedPropPath, customIteration) {
|
|
66
65
|
// Custom metadata should be resolved without iteration
|
|
67
66
|
if (customIteration === undefined && metadata.customMetadata) {
|
|
68
67
|
var customValue = lodash.get(properties, fixedPropPath);
|
|
@@ -78,8 +77,9 @@ var PropertyMetadataProcessor = /** @class */ (function () {
|
|
|
78
77
|
}
|
|
79
78
|
});
|
|
80
79
|
};
|
|
81
|
-
for (var
|
|
82
|
-
|
|
80
|
+
for (var _i = 0, _a = Object.entries(metadata.customMetadata); _i < _a.length; _i++) {
|
|
81
|
+
var _b = _a[_i], propName = _b[0], customMetadataPropPath = _b[1];
|
|
82
|
+
_loop_1(propName, customMetadataPropPath);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
if (!serverProcessedContent.customMetadata) {
|
|
@@ -97,8 +97,8 @@ var PropertyMetadataProcessor = /** @class */ (function () {
|
|
|
97
97
|
* Reapply the serialized server processed content on the properties based on the metadata.
|
|
98
98
|
* This process will result in the properties bag as it was when the serialization happened.
|
|
99
99
|
*
|
|
100
|
-
* @param properties - The component properties. This object will be modified during serialization.
|
|
101
100
|
* @param propertiesMetadata - The component properties metadata.
|
|
101
|
+
* @param properties - The component properties. This object will be modified during serialization.
|
|
102
102
|
* @param serverProcessedContent - The serialized server processed content.
|
|
103
103
|
* @param manifest - The optional component manifest.
|
|
104
104
|
*/
|
|
@@ -134,10 +134,9 @@ var PropertyMetadataProcessor = /** @class */ (function () {
|
|
|
134
134
|
for (var _i = 0, htmlMaps_1 = htmlMaps; _i < htmlMaps_1.length; _i++) {
|
|
135
135
|
var htmlMap = htmlMaps_1[_i];
|
|
136
136
|
if (htmlMap) {
|
|
137
|
-
for (var
|
|
138
|
-
|
|
137
|
+
for (var _a = 0, _b = Object.entries(htmlMap); _a < _b.length; _a++) {
|
|
138
|
+
var _c = _b[_a], propPath = _c[0], value = _c[1];
|
|
139
139
|
// WARNING: This is critical code. Please do not modify without fully understanding the data pipeline
|
|
140
|
-
var value = htmlMap[propPath];
|
|
141
140
|
if (typeof value === 'string') {
|
|
142
141
|
lodash.set(properties, propPath, value);
|
|
143
142
|
}
|
|
@@ -149,24 +148,23 @@ var PropertyMetadataProcessor = /** @class */ (function () {
|
|
|
149
148
|
/**
|
|
150
149
|
* Iterates and validates each metadata property before calling metadata processor.
|
|
151
150
|
*
|
|
152
|
-
* @param properties - Component properties.
|
|
153
151
|
* @param propertiesMetadata - Component properties metadata.
|
|
152
|
+
* @param properties - Component properties.
|
|
154
153
|
* @param metadataProcessor - Callback handler to to process validated metadata.
|
|
155
154
|
*
|
|
156
155
|
* @internal
|
|
157
156
|
*/
|
|
158
157
|
PropertyMetadataProcessor._forEachPropertyWithMetaData = function (propertiesMetadata, properties, metadataProcessor) {
|
|
159
158
|
if (propertiesMetadata) {
|
|
160
|
-
var _loop_2 = function (propPath) {
|
|
161
|
-
/* tslint:disable-line:forin */
|
|
162
|
-
var metadata = propertiesMetadata[propPath];
|
|
159
|
+
var _loop_2 = function (propPath, metadata) {
|
|
163
160
|
this_1._validateAndIteratePath(propPath, properties, function (fixedPropPath, index) {
|
|
164
161
|
metadataProcessor(fixedPropPath, metadata, index);
|
|
165
162
|
});
|
|
166
163
|
};
|
|
167
164
|
var this_1 = this;
|
|
168
|
-
for (var
|
|
169
|
-
|
|
165
|
+
for (var _i = 0, _a = Object.entries(propertiesMetadata); _i < _a.length; _i++) {
|
|
166
|
+
var _b = _a[_i], propPath = _b[0], metadata = _b[1];
|
|
167
|
+
_loop_2(propPath, metadata);
|
|
170
168
|
}
|
|
171
169
|
}
|
|
172
170
|
};
|
|
@@ -181,12 +179,14 @@ var PropertyMetadataProcessor = /** @class */ (function () {
|
|
|
181
179
|
var wildcardCount = (propPath.match(/\*/g) || []).length;
|
|
182
180
|
if (wildcardCount > 1) {
|
|
183
181
|
// Skip if there are more than one asterisks in the path (not supported)
|
|
182
|
+
// eslint-disable-next-line no-console
|
|
184
183
|
console.warn("Invalid property path: Multiple wildcards are not supported in property paths.\nEntry with path '".concat(propPath, "' got ignored in the properties metadata."));
|
|
185
184
|
return;
|
|
186
185
|
}
|
|
187
186
|
else if (wildcardCount === 1) {
|
|
188
187
|
var index = propPath.indexOf('[*]');
|
|
189
188
|
if (index < -1) {
|
|
189
|
+
// eslint-disable-next-line no-console
|
|
190
190
|
console.warn("Invalid property path: Wildcards are only supported inside brackets to select array\nindices as in 'foo[*].bar'. Entry with path '".concat(propPath, "' got ignored in the properties metadata."));
|
|
191
191
|
// Skip if the wildcard is not used for an array (not supported)
|
|
192
192
|
return;
|
|
@@ -196,6 +196,7 @@ var PropertyMetadataProcessor = /** @class */ (function () {
|
|
|
196
196
|
var arrayPath = propPath.substr(0, index);
|
|
197
197
|
var arrayInstance = lodash.get(properties, arrayPath);
|
|
198
198
|
if (!arrayInstance) {
|
|
199
|
+
// eslint-disable-next-line no-console
|
|
199
200
|
console.warn("Invalid property path: Could not find an array named '".concat(arrayPath, "' in the properties.\nEntry with path '").concat(propPath, "' got ignored in the properties metadata."));
|
|
200
201
|
return;
|
|
201
202
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* tslint:disable:export-name variable-name */
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
2
|
/**
|
|
5
3
|
* Include Fabric here so we aren't dependent on the Fabric CDN
|
|
6
4
|
*
|
|
@@ -9,11 +7,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
7
|
* third-party production web parts.
|
|
10
8
|
*
|
|
11
9
|
* Please DO NOT update these styles with new styles.All new development should
|
|
12
|
-
* use
|
|
10
|
+
* use \@microsoft/sp-office-ui-fabric-core package for core styles.
|
|
13
11
|
*
|
|
14
12
|
* NOTE: Fabric.LocalFont is a modified copy of legacy Fabric that removes the
|
|
15
13
|
* use of Segoe CSS font-face in favor of local fonts (Segoe/SF/Roboto).
|
|
16
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
16
|
require("./fabric-core-sass/Fabric.LocalFont.scss");
|
|
18
17
|
require("./fabric-core-shim.scss");
|
|
19
18
|
require("./iconDefinitions.css");
|
|
@@ -6903,59 +6903,59 @@
|
|
|
6903
6903
|
}
|
|
6904
6904
|
@media (max-width: 479px) {
|
|
6905
6905
|
.ms-SPLegacyFabricBlock .ms-hiddenSm,
|
|
6906
|
-
.ms-SPLegacyFabricBlock .ms-hiddenMdDown,
|
|
6907
|
-
.ms-SPLegacyFabricBlock .ms-hiddenLgDown,
|
|
6908
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXlDown,
|
|
6909
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6906
|
+
.ms-SPLegacyFabricBlock .ms-hiddenMdDown,
|
|
6907
|
+
.ms-SPLegacyFabricBlock .ms-hiddenLgDown,
|
|
6908
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXlDown,
|
|
6909
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6910
6910
|
display: none !important;
|
|
6911
6911
|
}
|
|
6912
6912
|
}
|
|
6913
6913
|
@media (min-width: 480px) and (max-width: 639px) {
|
|
6914
6914
|
.ms-SPLegacyFabricBlock .ms-hiddenMd,
|
|
6915
|
-
.ms-SPLegacyFabricBlock .ms-hiddenMdUp,
|
|
6916
|
-
.ms-SPLegacyFabricBlock .ms-hiddenMdDown,
|
|
6917
|
-
.ms-SPLegacyFabricBlock .ms-hiddenLgDown,
|
|
6918
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXlDown,
|
|
6919
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6915
|
+
.ms-SPLegacyFabricBlock .ms-hiddenMdUp,
|
|
6916
|
+
.ms-SPLegacyFabricBlock .ms-hiddenMdDown,
|
|
6917
|
+
.ms-SPLegacyFabricBlock .ms-hiddenLgDown,
|
|
6918
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXlDown,
|
|
6919
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6920
6920
|
display: none !important;
|
|
6921
6921
|
}
|
|
6922
6922
|
}
|
|
6923
6923
|
@media (min-width: 640px) and (max-width: 1023px) {
|
|
6924
6924
|
.ms-SPLegacyFabricBlock .ms-hiddenMdUp,
|
|
6925
|
-
.ms-SPLegacyFabricBlock .ms-hiddenLg,
|
|
6926
|
-
.ms-SPLegacyFabricBlock .ms-hiddenLgUp,
|
|
6927
|
-
.ms-SPLegacyFabricBlock .ms-hiddenLgDown,
|
|
6928
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXlDown,
|
|
6929
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6925
|
+
.ms-SPLegacyFabricBlock .ms-hiddenLg,
|
|
6926
|
+
.ms-SPLegacyFabricBlock .ms-hiddenLgUp,
|
|
6927
|
+
.ms-SPLegacyFabricBlock .ms-hiddenLgDown,
|
|
6928
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXlDown,
|
|
6929
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6930
6930
|
display: none !important;
|
|
6931
6931
|
}
|
|
6932
6932
|
}
|
|
6933
6933
|
@media (min-width: 1024px) and (max-width: 1365px) {
|
|
6934
6934
|
.ms-SPLegacyFabricBlock .ms-hiddenMdUp,
|
|
6935
|
-
.ms-SPLegacyFabricBlock .ms-hiddenLgUp,
|
|
6936
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXl,
|
|
6937
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXlUp,
|
|
6938
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXlDown,
|
|
6939
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6935
|
+
.ms-SPLegacyFabricBlock .ms-hiddenLgUp,
|
|
6936
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXl,
|
|
6937
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXlUp,
|
|
6938
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXlDown,
|
|
6939
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6940
6940
|
display: none !important;
|
|
6941
6941
|
}
|
|
6942
6942
|
}
|
|
6943
6943
|
@media (min-width: 1366px) and (max-width: 1919px) {
|
|
6944
6944
|
.ms-SPLegacyFabricBlock .ms-hiddenMdUp,
|
|
6945
|
-
.ms-SPLegacyFabricBlock .ms-hiddenLgUp,
|
|
6946
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXlUp,
|
|
6947
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxl,
|
|
6948
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxlUp,
|
|
6949
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6945
|
+
.ms-SPLegacyFabricBlock .ms-hiddenLgUp,
|
|
6946
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXlUp,
|
|
6947
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxl,
|
|
6948
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxlUp,
|
|
6949
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxlDown {
|
|
6950
6950
|
display: none !important;
|
|
6951
6951
|
}
|
|
6952
6952
|
}
|
|
6953
6953
|
@media (min-width: 1920px) {
|
|
6954
6954
|
.ms-SPLegacyFabricBlock .ms-hiddenMdUp,
|
|
6955
|
-
.ms-SPLegacyFabricBlock .ms-hiddenLgUp,
|
|
6956
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXlUp,
|
|
6957
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxlUp,
|
|
6958
|
-
.ms-SPLegacyFabricBlock .ms-hiddenXxxl {
|
|
6955
|
+
.ms-SPLegacyFabricBlock .ms-hiddenLgUp,
|
|
6956
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXlUp,
|
|
6957
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxlUp,
|
|
6958
|
+
.ms-SPLegacyFabricBlock .ms-hiddenXxxl {
|
|
6959
6959
|
display: none !important;
|
|
6960
6960
|
}
|
|
6961
6961
|
}
|