dattatable 2.10.91 → 2.10.93

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.
Files changed (69) hide show
  1. package/build/common/list.d.ts +4 -1
  2. package/build/common/list.js +16 -2
  3. package/build/dashboard/index.js +2 -2
  4. package/dist/dattatable.js +569 -569
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/Accordion.html +2 -2
  8. package/docs/classes/AuditLog.html +2 -2
  9. package/docs/classes/CanvasForm.html +2 -2
  10. package/docs/classes/Comments.html +2 -2
  11. package/docs/classes/Dashboard.html +4 -4
  12. package/docs/classes/DataTable.html +3 -3
  13. package/docs/classes/Documents.html +6 -6
  14. package/docs/classes/FilterSlideout.html +2 -2
  15. package/docs/classes/Footer.html +2 -2
  16. package/docs/classes/Header.html +2 -2
  17. package/docs/classes/InstallationRequired.html +2 -2
  18. package/docs/classes/ItemForm.html +4 -4
  19. package/docs/classes/List.html +6 -4
  20. package/docs/classes/ListConfig.html +2 -2
  21. package/docs/classes/ListSecurity.html +2 -2
  22. package/docs/classes/LoadingDialog.html +2 -2
  23. package/docs/classes/Modal.html +2 -2
  24. package/docs/classes/Navigation.html +3 -3
  25. package/docs/classes/Tiles.html +2 -2
  26. package/docs/classes/Timeout.html +2 -2
  27. package/docs/enums/ActionButtonTypes.html +2 -2
  28. package/docs/functions/formatBytes.html +1 -1
  29. package/docs/functions/formatDateValue.html +1 -1
  30. package/docs/functions/formatTimeValue.html +1 -1
  31. package/docs/functions/getContextInfo.html +1 -1
  32. package/docs/functions/getFileExt.html +1 -1
  33. package/docs/functions/waitForTheme.html +1 -1
  34. package/docs/interfaces/IAccordion.html +2 -2
  35. package/docs/interfaces/IAccordionProps.html +2 -2
  36. package/docs/interfaces/IAuditLogItem.html +2 -2
  37. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  38. package/docs/interfaces/IAuditLogProps.html +2 -2
  39. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  40. package/docs/interfaces/ICommentsItem.html +2 -2
  41. package/docs/interfaces/ICreateLookupData.html +2 -2
  42. package/docs/interfaces/IDashboardProps.html +2 -2
  43. package/docs/interfaces/IDataTable.html +2 -2
  44. package/docs/interfaces/IDataTableProps.html +2 -2
  45. package/docs/interfaces/IDocumentsProps.html +2 -2
  46. package/docs/interfaces/IFilterItem.html +2 -2
  47. package/docs/interfaces/IFilterProps.html +2 -2
  48. package/docs/interfaces/IFooterProps.html +2 -2
  49. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  50. package/docs/interfaces/IHeaderProps.html +2 -2
  51. package/docs/interfaces/IInstallProps.html +2 -2
  52. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  53. package/docs/interfaces/IItemFormEditProps.html +2 -2
  54. package/docs/interfaces/IItemFormTab.html +2 -2
  55. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  56. package/docs/interfaces/IItemFormViewProps.html +2 -2
  57. package/docs/interfaces/IListConfig.html +2 -2
  58. package/docs/interfaces/IListConfigProps.html +2 -2
  59. package/docs/interfaces/IListProps.html +4 -3
  60. package/docs/interfaces/IListSecurity.html +2 -2
  61. package/docs/interfaces/IListSecurityItem.html +2 -2
  62. package/docs/interfaces/ILookupData.html +2 -2
  63. package/docs/interfaces/IShowDialogProps.html +2 -2
  64. package/docs/interfaces/ITiles.html +2 -2
  65. package/docs/interfaces/ITilesProps.html +2 -2
  66. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  67. package/docs/variables/DattaTable.html +1 -1
  68. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  69. package/package.json +2 -2
@@ -4,7 +4,8 @@ import { IItemFormCreateProps, IItemFormEditProps, IItemFormViewProps } from "."
4
4
  export interface IListProps<T = Types.SP.ListItem> {
5
5
  camlQuery?: string;
6
6
  itemQuery?: Types.IODataQuery;
7
- listName: string;
7
+ listId?: string;
8
+ listName?: string;
8
9
  viewName?: string;
9
10
  onInitError?: (...args: any[]) => void;
10
11
  onInitialized?: () => void;
@@ -37,6 +38,8 @@ export declare class List<T = Types.SP.ListItem> {
37
38
  get ListViews(): Types.SP.ViewOData[];
38
39
  private _items;
39
40
  get Items(): T[];
41
+ private _listId;
42
+ get ListId(): string;
40
43
  private _listName;
41
44
  get ListName(): string;
42
45
  private _odata;
@@ -25,6 +25,8 @@ var List = /** @class */ (function () {
25
25
  this._listViews = null;
26
26
  // Items
27
27
  this._items = null;
28
+ // List Id
29
+ this._listId = null;
28
30
  // List Name
29
31
  this._listName = null;
30
32
  // OData query
@@ -54,6 +56,7 @@ var List = /** @class */ (function () {
54
56
  this._requestDigest = null;
55
57
  // Save the properties
56
58
  this._camlQuery = props.camlQuery;
59
+ this._listId = props.listId;
57
60
  this._listName = props.listName;
58
61
  this._odata = props.itemQuery;
59
62
  this._onInitError = props.onInitError;
@@ -154,6 +157,11 @@ var List = /** @class */ (function () {
154
157
  enumerable: false,
155
158
  configurable: true
156
159
  });
160
+ Object.defineProperty(List.prototype, "ListId", {
161
+ get: function () { return this._listId; },
162
+ enumerable: false,
163
+ configurable: true
164
+ });
157
165
  Object.defineProperty(List.prototype, "ListName", {
158
166
  get: function () { return this._listName; },
159
167
  enumerable: false,
@@ -294,12 +302,18 @@ var List = /** @class */ (function () {
294
302
  var _this = this;
295
303
  // Return a promise
296
304
  return new Promise(function (resolve, reject) {
297
- var list = (0, gd_sprest_bs_1.Web)(_this.WebUrl, {
305
+ // Set the web
306
+ var web = (0, gd_sprest_bs_1.Web)(_this.WebUrl, {
298
307
  disableCache: true,
299
308
  requestDigest: _this._requestDigest
300
- }).Lists(_this.ListName);
309
+ });
310
+ // Get the list
311
+ var list = _this.ListId ? web.Lists().getById(_this.ListId) : web.Lists(_this.ListName);
301
312
  // Query the list content types
302
313
  list.execute(function (list) {
314
+ // Set the list id/name
315
+ _this._listId = list.Id;
316
+ _this._listName = list.Title;
303
317
  // Save the list information
304
318
  _this._listInfo = list;
305
319
  }, function () {
@@ -234,7 +234,7 @@ var Dashboard = /** @class */ (function () {
234
234
  // Render the navigation
235
235
  var navProps_2 = this._props.subNavigation || {};
236
236
  var className = (headerIsVisible || navIsVisible ? null : "sub-nav-border") +
237
- (navProps_2.className ? " " : "") + navProps_2.className;
237
+ (navProps_2.className ? " " + navProps_2.className : "");
238
238
  new navigation_1.Navigation({
239
239
  el: this._props.el.querySelector("#sub-navigation"),
240
240
  className: className,
@@ -299,7 +299,7 @@ var Dashboard = /** @class */ (function () {
299
299
  // Render the footer
300
300
  var footer = this._props.footer || {};
301
301
  new footer_1.Footer({
302
- className: "bg-sharepoint rounded-bottom" + (footer.className ? " " : "") + footer.className,
302
+ className: "bg-sharepoint rounded-bottom" + (footer.className ? " " + footer.className : ""),
303
303
  el: this._props.el.querySelector("#footer"),
304
304
  items: footer.items,
305
305
  itemsEnd: footer.itemsEnd,