dattatable 2.10.27 → 2.10.29
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/build/common/list.d.ts +1 -1
- package/build/common/list.js +27 -9
- package/dist/dattatable.js +580 -580
- package/dist/dattatable.min.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +2 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +4 -4
- package/docs/classes/DataTable.html +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +2 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +2 -2
- package/docs/classes/ItemForm.html +4 -4
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +2 -2
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
package/build/common/list.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare class List<T = Types.SP.ListItem> {
|
|
|
62
62
|
private clear;
|
|
63
63
|
createItem(values: any): PromiseLike<T>;
|
|
64
64
|
editForm(props: IItemFormEditProps): void;
|
|
65
|
-
getField(name: string):
|
|
65
|
+
getField(name: string): any;
|
|
66
66
|
getItem(id: number): T;
|
|
67
67
|
private init;
|
|
68
68
|
private loadItem;
|
package/build/common/list.js
CHANGED
|
@@ -222,17 +222,23 @@ var List = /** @class */ (function () {
|
|
|
222
222
|
};
|
|
223
223
|
// Gets a list field by internal or title
|
|
224
224
|
List.prototype.getField = function (name) {
|
|
225
|
+
var titleField = null;
|
|
225
226
|
// Parse the fields
|
|
226
227
|
for (var i = 0; i < this.ListFields.length; i++) {
|
|
227
228
|
var field = this.ListFields[i];
|
|
228
|
-
//
|
|
229
|
-
if (field.InternalName == name
|
|
230
|
-
// Return the field
|
|
229
|
+
// Try to find the field by internal name first
|
|
230
|
+
if (field.InternalName == name) {
|
|
231
|
+
// Return the field if we match by internal
|
|
231
232
|
return field;
|
|
232
233
|
}
|
|
234
|
+
// Else, see if the title field matches and save a reference
|
|
235
|
+
else if (field.Title == name) {
|
|
236
|
+
// Save the field reference
|
|
237
|
+
titleField = field;
|
|
238
|
+
}
|
|
233
239
|
}
|
|
234
|
-
//
|
|
235
|
-
return
|
|
240
|
+
// Return the title field if it was found
|
|
241
|
+
return titleField;
|
|
236
242
|
};
|
|
237
243
|
// Gets a list item by id
|
|
238
244
|
List.prototype.getItem = function (id) {
|
|
@@ -253,7 +259,10 @@ var List = /** @class */ (function () {
|
|
|
253
259
|
var _this = this;
|
|
254
260
|
// Return a promise
|
|
255
261
|
return new Promise(function (resolve, reject) {
|
|
256
|
-
var list = (0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
262
|
+
var list = (0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
263
|
+
disableCache: true,
|
|
264
|
+
requestDigest: _this._requestDigest
|
|
265
|
+
}).Lists(_this.ListName);
|
|
257
266
|
// Query the list content types
|
|
258
267
|
list.execute(function (list) {
|
|
259
268
|
// Save the list information
|
|
@@ -315,7 +324,10 @@ var List = /** @class */ (function () {
|
|
|
315
324
|
// Return a promise
|
|
316
325
|
return new Promise(function (resolve, reject) {
|
|
317
326
|
// Query the items
|
|
318
|
-
(0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
327
|
+
(0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
328
|
+
disableCache: true,
|
|
329
|
+
requestDigest: _this._requestDigest
|
|
330
|
+
}).Lists(_this.ListName).Items(itemId).query({
|
|
319
331
|
Custom: query ? query.Custom : null,
|
|
320
332
|
Expand: query ? query.Expand : null,
|
|
321
333
|
Select: query ? query.Select : null
|
|
@@ -379,7 +391,10 @@ var List = /** @class */ (function () {
|
|
|
379
391
|
return;
|
|
380
392
|
}
|
|
381
393
|
// Query the items
|
|
382
|
-
(0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
394
|
+
(0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
395
|
+
disableCache: true,
|
|
396
|
+
requestDigest: _this._requestDigest
|
|
397
|
+
}).Lists(_this.ListName).getItemsByQuery(_this.CAMLQuery).execute(function (items) {
|
|
383
398
|
// See if the event exists
|
|
384
399
|
if (_this._onItemLoading) {
|
|
385
400
|
// Parse the items
|
|
@@ -448,7 +463,10 @@ var List = /** @class */ (function () {
|
|
|
448
463
|
return;
|
|
449
464
|
}
|
|
450
465
|
// Query the items
|
|
451
|
-
(0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
466
|
+
(0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
467
|
+
disableCache: true,
|
|
468
|
+
requestDigest: _this._requestDigest
|
|
469
|
+
}).Lists(_this.ListName).getItems(_this.ViewXml).execute(function (items) {
|
|
452
470
|
// See if the event exists
|
|
453
471
|
if (_this._onItemLoading) {
|
|
454
472
|
// Parse the items
|