dattatable 2.3.1 → 2.3.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.
Files changed (45) hide show
  1. package/build/common/list.d.ts +4 -4
  2. package/build/common/list.js +24 -24
  3. package/dist/dattatable.js +1 -1
  4. package/dist/dattatable.min.js +1 -1
  5. package/docs/assets/search.js +1 -1
  6. package/docs/classes/AuditLog.html +14 -14
  7. package/docs/classes/CanvasForm.html +17 -17
  8. package/docs/classes/Comments.html +12 -12
  9. package/docs/classes/Dashboard.html +17 -17
  10. package/docs/classes/DataTable.html +11 -11
  11. package/docs/classes/Documents.html +45 -45
  12. package/docs/classes/FilterSlideout.html +14 -14
  13. package/docs/classes/Footer.html +4 -4
  14. package/docs/classes/Header.html +4 -4
  15. package/docs/classes/InstallationRequired.html +12 -12
  16. package/docs/classes/ItemForm.html +47 -47
  17. package/docs/classes/List.html +60 -60
  18. package/docs/classes/LoadingDialog.html +12 -12
  19. package/docs/classes/Modal.html +26 -26
  20. package/docs/classes/Navigation.html +6 -6
  21. package/docs/enums/ActionButtonTypes.html +6 -6
  22. package/docs/functions/formatBytes.html +1 -1
  23. package/docs/functions/formatDateValue.html +1 -1
  24. package/docs/functions/formatTimeValue.html +1 -1
  25. package/docs/functions/getFileExt.html +1 -1
  26. package/docs/interfaces/IAuditLogItem.html +8 -8
  27. package/docs/interfaces/IAuditLogItemCreation.html +7 -7
  28. package/docs/interfaces/ICommentsItem.html +6 -6
  29. package/docs/interfaces/IDashboardProps.html +14 -14
  30. package/docs/interfaces/IDataTable.html +7 -7
  31. package/docs/interfaces/IDataTableProps.html +6 -6
  32. package/docs/interfaces/IDocumentsProps.html +25 -25
  33. package/docs/interfaces/IFilterItem.html +5 -5
  34. package/docs/interfaces/IFilterProps.html +4 -4
  35. package/docs/interfaces/IFooterProps.html +6 -6
  36. package/docs/interfaces/IHeaderProps.html +5 -5
  37. package/docs/interfaces/IItemFormCreateProps.html +14 -14
  38. package/docs/interfaces/IItemFormEditProps.html +15 -15
  39. package/docs/interfaces/IItemFormTab.html +7 -7
  40. package/docs/interfaces/IItemFormTabInfo.html +3 -3
  41. package/docs/interfaces/IItemFormViewProps.html +12 -12
  42. package/docs/interfaces/IListProps.html +7 -7
  43. package/docs/interfaces/IShowDialogProps.html +5 -5
  44. package/docs/variables/DattaTable.html +1 -1
  45. package/package.json +1 -1
@@ -13,6 +13,8 @@ export interface IListProps {
13
13
  * List
14
14
  */
15
15
  export declare class List<T = Types.SP.ListItem> {
16
+ get EditForm(): import("gd-sprest-bs/src/components/components").IListFormEdit;
17
+ get EditForms(): import("gd-sprest-bs/src/components/components").IListFormEdit[];
16
18
  private _formInfo;
17
19
  get FormInfo(): Helper.IListFormResult;
18
20
  private _items;
@@ -21,6 +23,8 @@ export declare class List<T = Types.SP.ListItem> {
21
23
  get ListName(): string;
22
24
  private _odata;
23
25
  get OData(): Types.IODataQuery;
26
+ get ViewForm(): import("gd-sprest-bs/src/components/components").IListFormDisplay;
27
+ get ViewForms(): import("gd-sprest-bs/src/components/components").IListFormDisplay[];
24
28
  private _webUrl;
25
29
  get WebUrl(): string;
26
30
  private _onItemsLoaded?;
@@ -31,10 +35,6 @@ export declare class List<T = Types.SP.ListItem> {
31
35
  load(query?: Types.IODataQuery): PromiseLike<T[]>;
32
36
  createItem(props: IItemFormCreateProps): void;
33
37
  editItem(props: IItemFormEditProps): void;
34
- get editForm(): import("gd-sprest-bs/src/components/components").IListFormEdit;
35
- get editForms(): import("gd-sprest-bs/src/components/components").IListFormEdit[];
36
38
  refresh(query?: Types.IODataQuery): PromiseLike<T[]>;
37
39
  viewItem(props: IItemFormViewProps): void;
38
- get viewForm(): import("gd-sprest-bs/src/components/components").IListFormDisplay;
39
- get viewForms(): import("gd-sprest-bs/src/components/components").IListFormDisplay[];
40
40
  }
@@ -41,6 +41,18 @@ var List = /** @class */ (function () {
41
41
  _this._onItemsLoaded ? _this._onItemsLoaded() : null;
42
42
  });
43
43
  }
44
+ Object.defineProperty(List.prototype, "EditForm", {
45
+ // Reference to the edit form
46
+ get: function () { return common_1.ItemForm.EditForm; },
47
+ enumerable: false,
48
+ configurable: true
49
+ });
50
+ Object.defineProperty(List.prototype, "EditForms", {
51
+ // Reference to the edit forms, if tabs are used
52
+ get: function () { return common_1.ItemForm.EditForms; },
53
+ enumerable: false,
54
+ configurable: true
55
+ });
44
56
  Object.defineProperty(List.prototype, "FormInfo", {
45
57
  get: function () { return this._formInfo; },
46
58
  enumerable: false,
@@ -61,6 +73,18 @@ var List = /** @class */ (function () {
61
73
  enumerable: false,
62
74
  configurable: true
63
75
  });
76
+ Object.defineProperty(List.prototype, "ViewForm", {
77
+ // Reference to the display form
78
+ get: function () { return common_1.ItemForm.DisplayForm; },
79
+ enumerable: false,
80
+ configurable: true
81
+ });
82
+ Object.defineProperty(List.prototype, "ViewForms", {
83
+ // Reference to the display forms, if tabs are used
84
+ get: function () { return common_1.ItemForm.DisplayForms; },
85
+ enumerable: false,
86
+ configurable: true
87
+ });
64
88
  Object.defineProperty(List.prototype, "WebUrl", {
65
89
  get: function () { return this._webUrl; },
66
90
  enumerable: false,
@@ -115,18 +139,6 @@ var List = /** @class */ (function () {
115
139
  // Display the form
116
140
  common_1.ItemForm.edit(props).then(null, this._onLoadFormError);
117
141
  };
118
- Object.defineProperty(List.prototype, "editForm", {
119
- // Reference to the edit form
120
- get: function () { return common_1.ItemForm.EditForm; },
121
- enumerable: false,
122
- configurable: true
123
- });
124
- Object.defineProperty(List.prototype, "editForms", {
125
- // Reference to the edit forms, if tabs are used
126
- get: function () { return common_1.ItemForm.EditForms; },
127
- enumerable: false,
128
- configurable: true
129
- });
130
142
  // Refresh the data
131
143
  List.prototype.refresh = function (query) {
132
144
  if (query === void 0) { query = this.OData; }
@@ -142,18 +154,6 @@ var List = /** @class */ (function () {
142
154
  // Display the form
143
155
  common_1.ItemForm.view(props).then(null, this._onLoadFormError);
144
156
  };
145
- Object.defineProperty(List.prototype, "viewForm", {
146
- // Reference to the display form
147
- get: function () { return common_1.ItemForm.DisplayForm; },
148
- enumerable: false,
149
- configurable: true
150
- });
151
- Object.defineProperty(List.prototype, "viewForms", {
152
- // Reference to the display forms, if tabs are used
153
- get: function () { return common_1.ItemForm.DisplayForms; },
154
- enumerable: false,
155
- configurable: true
156
- });
157
157
  return List;
158
158
  }());
159
159
  exports.List = List;
@@ -104,7 +104,7 @@ eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assig
104
104
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
105
105
 
106
106
  "use strict";
107
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.List = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@10.10.4/node_modules/gd-sprest-bs/build/index.js\");\r\nvar common_1 = __webpack_require__(/*! ../common */ \"./build/common/index.js\");\r\n/**\r\n * List\r\n */\r\nvar List = /** @class */ (function () {\r\n // Constructor\r\n function List(props) {\r\n var _this = this;\r\n // Form Information\r\n this._formInfo = null;\r\n // Items\r\n this._items = null;\r\n // List Name\r\n this._listName = null;\r\n // OData query\r\n this._odata = null;\r\n // Web Url\r\n this._webUrl = null;\r\n // Items loaded event\r\n this._onItemsLoaded = null;\r\n // Error event when loading a form\r\n this._onLoadFormError = null;\r\n // Error event when loading the items fail\r\n this._onLoadItemsError = null;\r\n // Save the properties\r\n this._listName = props.listName;\r\n this._odata = props.itemQuery;\r\n this._onItemsLoaded = props.onItemsLoaded;\r\n this._onLoadFormError = props.onLoadFormError;\r\n this._onLoadItemsError = props.onLoadItemsError;\r\n this._webUrl = props.webUrl || gd_sprest_bs_1.ContextInfo.webServerRelativeUrl;\r\n // Load the data\r\n this.load().then(function (items) {\r\n // Set the items\r\n _this._items = items;\r\n // Call the items loaded event\r\n _this._onItemsLoaded ? _this._onItemsLoaded() : null;\r\n });\r\n }\r\n Object.defineProperty(List.prototype, \"FormInfo\", {\r\n get: function () { return this._formInfo; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"Items\", {\r\n get: function () { return this._items; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"ListName\", {\r\n get: function () { return this._listName; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"OData\", {\r\n get: function () { return this._odata; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"WebUrl\", {\r\n get: function () { return this._webUrl; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n // Clears the modal or canvas\r\n List.prototype.clear = function () {\r\n // Clear the modal/form\r\n common_1.ItemForm.UseModal ? common_1.Modal.clear() : common_1.CanvasForm.clear();\r\n // Set the list name\r\n common_1.ItemForm.ListName = this.ListName;\r\n };\r\n // Loads the items\r\n List.prototype.load = function (query) {\r\n var _this = this;\r\n if (query === void 0) { query = this.OData; }\r\n // Return a promise\r\n return new Promise(function (resolve, reject) {\r\n // See if the items exist\r\n if (_this._items) {\r\n return _this._items;\r\n }\r\n // Query the items\r\n (0, gd_sprest_bs_1.Web)(_this.WebUrl).Lists(_this.ListName).Items().query(query).execute(function (items) {\r\n // Save the items\r\n _this._items = items.results;\r\n // Resolve the request\r\n resolve(_this._items);\r\n }, function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n // Call the event\r\n _this._onLoadItemsError ? _this._onLoadItemsError.apply(_this, args) : null;\r\n // Reject the request\r\n reject.apply(void 0, args);\r\n });\r\n });\r\n };\r\n // Displays the new form\r\n List.prototype.createItem = function (props) {\r\n // Clear the modal/canvas\r\n this.clear();\r\n // Display the form\r\n common_1.ItemForm.create(props).then(null, this._onLoadFormError);\r\n };\r\n // Displays the edit form\r\n List.prototype.editItem = function (props) {\r\n // Clear the modal/canvas\r\n this.clear();\r\n // Display the form\r\n common_1.ItemForm.edit(props).then(null, this._onLoadFormError);\r\n };\r\n Object.defineProperty(List.prototype, \"editForm\", {\r\n // Reference to the edit form\r\n get: function () { return common_1.ItemForm.EditForm; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"editForms\", {\r\n // Reference to the edit forms, if tabs are used\r\n get: function () { return common_1.ItemForm.EditForms; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n // Refresh the data\r\n List.prototype.refresh = function (query) {\r\n if (query === void 0) { query = this.OData; }\r\n // Clear the items\r\n this._items = null;\r\n // Load the data\r\n return this.load(query);\r\n };\r\n // Displays the view form\r\n List.prototype.viewItem = function (props) {\r\n // Clear the modal/canvas\r\n this.clear();\r\n // Display the form\r\n common_1.ItemForm.view(props).then(null, this._onLoadFormError);\r\n };\r\n Object.defineProperty(List.prototype, \"viewForm\", {\r\n // Reference to the display form\r\n get: function () { return common_1.ItemForm.DisplayForm; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"viewForms\", {\r\n // Reference to the display forms, if tabs are used\r\n get: function () { return common_1.ItemForm.DisplayForms; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return List;\r\n}());\r\nexports.List = List;\r\n\n\n//# sourceURL=webpack://dattatable/./build/common/list.js?");
107
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.List = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@10.10.4/node_modules/gd-sprest-bs/build/index.js\");\r\nvar common_1 = __webpack_require__(/*! ../common */ \"./build/common/index.js\");\r\n/**\r\n * List\r\n */\r\nvar List = /** @class */ (function () {\r\n // Constructor\r\n function List(props) {\r\n var _this = this;\r\n // Form Information\r\n this._formInfo = null;\r\n // Items\r\n this._items = null;\r\n // List Name\r\n this._listName = null;\r\n // OData query\r\n this._odata = null;\r\n // Web Url\r\n this._webUrl = null;\r\n // Items loaded event\r\n this._onItemsLoaded = null;\r\n // Error event when loading a form\r\n this._onLoadFormError = null;\r\n // Error event when loading the items fail\r\n this._onLoadItemsError = null;\r\n // Save the properties\r\n this._listName = props.listName;\r\n this._odata = props.itemQuery;\r\n this._onItemsLoaded = props.onItemsLoaded;\r\n this._onLoadFormError = props.onLoadFormError;\r\n this._onLoadItemsError = props.onLoadItemsError;\r\n this._webUrl = props.webUrl || gd_sprest_bs_1.ContextInfo.webServerRelativeUrl;\r\n // Load the data\r\n this.load().then(function (items) {\r\n // Set the items\r\n _this._items = items;\r\n // Call the items loaded event\r\n _this._onItemsLoaded ? _this._onItemsLoaded() : null;\r\n });\r\n }\r\n Object.defineProperty(List.prototype, \"EditForm\", {\r\n // Reference to the edit form\r\n get: function () { return common_1.ItemForm.EditForm; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"EditForms\", {\r\n // Reference to the edit forms, if tabs are used\r\n get: function () { return common_1.ItemForm.EditForms; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"FormInfo\", {\r\n get: function () { return this._formInfo; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"Items\", {\r\n get: function () { return this._items; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"ListName\", {\r\n get: function () { return this._listName; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"OData\", {\r\n get: function () { return this._odata; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"ViewForm\", {\r\n // Reference to the display form\r\n get: function () { return common_1.ItemForm.DisplayForm; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"ViewForms\", {\r\n // Reference to the display forms, if tabs are used\r\n get: function () { return common_1.ItemForm.DisplayForms; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(List.prototype, \"WebUrl\", {\r\n get: function () { return this._webUrl; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n // Clears the modal or canvas\r\n List.prototype.clear = function () {\r\n // Clear the modal/form\r\n common_1.ItemForm.UseModal ? common_1.Modal.clear() : common_1.CanvasForm.clear();\r\n // Set the list name\r\n common_1.ItemForm.ListName = this.ListName;\r\n };\r\n // Loads the items\r\n List.prototype.load = function (query) {\r\n var _this = this;\r\n if (query === void 0) { query = this.OData; }\r\n // Return a promise\r\n return new Promise(function (resolve, reject) {\r\n // See if the items exist\r\n if (_this._items) {\r\n return _this._items;\r\n }\r\n // Query the items\r\n (0, gd_sprest_bs_1.Web)(_this.WebUrl).Lists(_this.ListName).Items().query(query).execute(function (items) {\r\n // Save the items\r\n _this._items = items.results;\r\n // Resolve the request\r\n resolve(_this._items);\r\n }, function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n // Call the event\r\n _this._onLoadItemsError ? _this._onLoadItemsError.apply(_this, args) : null;\r\n // Reject the request\r\n reject.apply(void 0, args);\r\n });\r\n });\r\n };\r\n // Displays the new form\r\n List.prototype.createItem = function (props) {\r\n // Clear the modal/canvas\r\n this.clear();\r\n // Display the form\r\n common_1.ItemForm.create(props).then(null, this._onLoadFormError);\r\n };\r\n // Displays the edit form\r\n List.prototype.editItem = function (props) {\r\n // Clear the modal/canvas\r\n this.clear();\r\n // Display the form\r\n common_1.ItemForm.edit(props).then(null, this._onLoadFormError);\r\n };\r\n // Refresh the data\r\n List.prototype.refresh = function (query) {\r\n if (query === void 0) { query = this.OData; }\r\n // Clear the items\r\n this._items = null;\r\n // Load the data\r\n return this.load(query);\r\n };\r\n // Displays the view form\r\n List.prototype.viewItem = function (props) {\r\n // Clear the modal/canvas\r\n this.clear();\r\n // Display the form\r\n common_1.ItemForm.view(props).then(null, this._onLoadFormError);\r\n };\r\n return List;\r\n}());\r\nexports.List = List;\r\n\n\n//# sourceURL=webpack://dattatable/./build/common/list.js?");
108
108
 
109
109
  /***/ }),
110
110