dattatable 2.3.5 → 2.3.7

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 (46) hide show
  1. package/build/auditLog/cfg.js +1 -0
  2. package/build/auditLog/index.d.ts +1 -1
  3. package/build/auditLog/index.js +4 -1
  4. package/dist/dattatable.js +2 -2
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/classes/AuditLog.html +15 -25
  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 +36 -36
  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/IAuditLogProps.html +5 -5
  29. package/docs/interfaces/ICommentsItem.html +6 -6
  30. package/docs/interfaces/IDashboardProps.html +14 -14
  31. package/docs/interfaces/IDataTable.html +7 -7
  32. package/docs/interfaces/IDataTableProps.html +6 -6
  33. package/docs/interfaces/IDocumentsProps.html +25 -25
  34. package/docs/interfaces/IFilterItem.html +5 -5
  35. package/docs/interfaces/IFilterProps.html +4 -4
  36. package/docs/interfaces/IFooterProps.html +6 -6
  37. package/docs/interfaces/IHeaderProps.html +5 -5
  38. package/docs/interfaces/IItemFormCreateProps.html +14 -14
  39. package/docs/interfaces/IItemFormEditProps.html +15 -15
  40. package/docs/interfaces/IItemFormTab.html +7 -7
  41. package/docs/interfaces/IItemFormTabInfo.html +3 -3
  42. package/docs/interfaces/IItemFormViewProps.html +12 -12
  43. package/docs/interfaces/IListProps.html +9 -9
  44. package/docs/interfaces/IShowDialogProps.html +5 -5
  45. package/docs/variables/DattaTable.html +1 -1
  46. package/package.json +1 -1
@@ -6,6 +6,7 @@ var gd_sprest_bs_1 = require("gd-sprest-bs");
6
6
  exports.Configuration = gd_sprest_bs_1.Helper.SPConfig({
7
7
  ListCfg: [{
8
8
  ListInformation: {
9
+ BaseTemplate: gd_sprest_bs_1.SPTypes.ListTemplateType.GenericList,
9
10
  Title: "Audit Log",
10
11
  Hidden: true,
11
12
  NoCrawl: true
@@ -25,7 +25,7 @@ export interface IAuditLogProps {
25
25
  /**
26
26
  * Audit Log
27
27
  */
28
- export declare class AuditLog<T = IAuditLogItem> {
28
+ export declare class AuditLog {
29
29
  private _cfg;
30
30
  get Configuration(): Helper.ISPConfig;
31
31
  get AuditListName(): string;
@@ -15,9 +15,12 @@ var AuditLog = /** @class */ (function () {
15
15
  this._list = null;
16
16
  // Set the configuration
17
17
  this._cfg = cfg_1.Configuration;
18
+ // Update the list name
19
+ var listName = props.listName ? props.listName : this._cfg._configuration.ListCfg[0].ListInformation.Title;
20
+ props.listName ? this._cfg._configuration.ListCfg[0].ListInformation.Title = listName : null;
18
21
  // Create the list component
19
22
  this._list = new list_1.List({
20
- listName: props.listName,
23
+ listName: listName,
21
24
  webUrl: props.webUrl,
22
25
  onInitError: props.onInitError,
23
26
  onInitialized: props.onInitialized,
@@ -16,7 +16,7 @@
16
16
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
17
17
 
18
18
  "use strict";
19
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.Configuration = 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\n// Configuration\r\nexports.Configuration = gd_sprest_bs_1.Helper.SPConfig({\r\n ListCfg: [{\r\n ListInformation: {\r\n Title: \"Audit Log\",\r\n Hidden: true,\r\n NoCrawl: true\r\n },\r\n TitleFieldIndexed: true,\r\n ContentTypes: [{\r\n Name: \"Item\",\r\n FieldRefs: [\r\n \"Title\",\r\n ]\r\n }],\r\n CustomFields: [\r\n {\r\n name: \"ParentItemId\",\r\n title: \"Parent Item Id\",\r\n description: \"The list item id linked to this item.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.Number,\r\n indexed: true\r\n },\r\n {\r\n name: \"ParentListName\",\r\n title: \"Parent List Name\",\r\n description: \"The list name linked to this item.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.Text,\r\n indexed: true\r\n },\r\n {\r\n name: \"LogComment\",\r\n title: \"LogComment\",\r\n description: \"The comment to write to the audit log.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.Note,\r\n noteType: gd_sprest_bs_1.SPTypes.FieldNoteType.TextOnly\r\n },\r\n {\r\n name: \"LogData\",\r\n title: \"Log Data\",\r\n description: \"The data to write to the audit log.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.Note,\r\n noteType: gd_sprest_bs_1.SPTypes.FieldNoteType.TextOnly\r\n },\r\n {\r\n name: \"LogUser\",\r\n title: \"Log User\",\r\n description: \"The user who is associated with this log entry.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.User\r\n }\r\n ]\r\n }]\r\n});\r\n\n\n//# sourceURL=webpack://dattatable/./build/auditLog/cfg.js?");
19
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.Configuration = 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\n// Configuration\r\nexports.Configuration = gd_sprest_bs_1.Helper.SPConfig({\r\n ListCfg: [{\r\n ListInformation: {\r\n BaseTemplate: gd_sprest_bs_1.SPTypes.ListTemplateType.GenericList,\r\n Title: \"Audit Log\",\r\n Hidden: true,\r\n NoCrawl: true\r\n },\r\n TitleFieldIndexed: true,\r\n ContentTypes: [{\r\n Name: \"Item\",\r\n FieldRefs: [\r\n \"Title\",\r\n ]\r\n }],\r\n CustomFields: [\r\n {\r\n name: \"ParentItemId\",\r\n title: \"Parent Item Id\",\r\n description: \"The list item id linked to this item.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.Number,\r\n indexed: true\r\n },\r\n {\r\n name: \"ParentListName\",\r\n title: \"Parent List Name\",\r\n description: \"The list name linked to this item.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.Text,\r\n indexed: true\r\n },\r\n {\r\n name: \"LogComment\",\r\n title: \"LogComment\",\r\n description: \"The comment to write to the audit log.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.Note,\r\n noteType: gd_sprest_bs_1.SPTypes.FieldNoteType.TextOnly\r\n },\r\n {\r\n name: \"LogData\",\r\n title: \"Log Data\",\r\n description: \"The data to write to the audit log.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.Note,\r\n noteType: gd_sprest_bs_1.SPTypes.FieldNoteType.TextOnly\r\n },\r\n {\r\n name: \"LogUser\",\r\n title: \"Log User\",\r\n description: \"The user who is associated with this log entry.\",\r\n type: gd_sprest_bs_1.Helper.SPCfgFieldType.User\r\n }\r\n ]\r\n }]\r\n});\r\n\n\n//# sourceURL=webpack://dattatable/./build/auditLog/cfg.js?");
20
20
 
21
21
  /***/ }),
22
22
 
@@ -27,7 +27,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
27
27
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
28
28
 
29
29
  "use strict";
30
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.AuditLog = void 0;\r\nvar list_1 = __webpack_require__(/*! ../common/list */ \"./build/common/list.js\");\r\nvar cfg_1 = __webpack_require__(/*! ./cfg */ \"./build/auditLog/cfg.js\");\r\n/**\r\n * Audit Log\r\n */\r\nvar AuditLog = /** @class */ (function () {\r\n // Constructor\r\n function AuditLog(props) {\r\n // Configuration\r\n this._cfg = null;\r\n // List\r\n this._list = null;\r\n // Set the configuration\r\n this._cfg = cfg_1.Configuration;\r\n // Create the list component\r\n this._list = new list_1.List({\r\n listName: props.listName,\r\n webUrl: props.webUrl,\r\n onInitError: props.onInitError,\r\n onInitialized: props.onInitialized,\r\n itemQuery: {\r\n Filter: \"Id eq 0\"\r\n }\r\n });\r\n }\r\n Object.defineProperty(AuditLog.prototype, \"Configuration\", {\r\n get: function () { return this._cfg; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(AuditLog.prototype, \"AuditListName\", {\r\n get: function () {\r\n // Return the list name\r\n return this.Configuration._configuration.ListCfg[0].ListInformation.Title;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(AuditLog.prototype, \"List\", {\r\n get: function () { return this._list; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n // Gets data for an associated item\r\n AuditLog.prototype.getItems = function (itemId, onQuery) {\r\n // Set the odata query\r\n var odata = {\r\n Expand: [\"LogUser\"],\r\n Filter: \"ParentListName eq '\".concat(this.List.ListName, \"' and ParentItemId eq \").concat(itemId),\r\n OrderBy: [\"Created desc\"],\r\n Select: [\"*\", \"LogUser/EMail\", \"LogUser/Id\", \"LogUser/LoginName\", \"LogUser/Title\"]\r\n };\r\n // Call the event\r\n odata = onQuery ? onQuery(odata) : odata;\r\n // Get the list data\r\n return this.List.refresh(odata);\r\n };\r\n // Installs the list\r\n AuditLog.prototype.install = function () {\r\n // Installs the list\r\n return this.Configuration.install();\r\n };\r\n // Logs an item to the audit log\r\n AuditLog.prototype.logItem = function (values) {\r\n // Create the item\r\n return this.List.createItem(values);\r\n };\r\n // Removes the audit log list\r\n AuditLog.prototype.uninstall = function () {\r\n // Remove the audit log list\r\n return this.Configuration.uninstall();\r\n };\r\n return AuditLog;\r\n}());\r\nexports.AuditLog = AuditLog;\r\n\n\n//# sourceURL=webpack://dattatable/./build/auditLog/index.js?");
30
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.AuditLog = void 0;\r\nvar list_1 = __webpack_require__(/*! ../common/list */ \"./build/common/list.js\");\r\nvar cfg_1 = __webpack_require__(/*! ./cfg */ \"./build/auditLog/cfg.js\");\r\n/**\r\n * Audit Log\r\n */\r\nvar AuditLog = /** @class */ (function () {\r\n // Constructor\r\n function AuditLog(props) {\r\n // Configuration\r\n this._cfg = null;\r\n // List\r\n this._list = null;\r\n // Set the configuration\r\n this._cfg = cfg_1.Configuration;\r\n // Update the list name\r\n var listName = props.listName ? props.listName : this._cfg._configuration.ListCfg[0].ListInformation.Title;\r\n props.listName ? this._cfg._configuration.ListCfg[0].ListInformation.Title = listName : null;\r\n // Create the list component\r\n this._list = new list_1.List({\r\n listName: listName,\r\n webUrl: props.webUrl,\r\n onInitError: props.onInitError,\r\n onInitialized: props.onInitialized,\r\n itemQuery: {\r\n Filter: \"Id eq 0\"\r\n }\r\n });\r\n }\r\n Object.defineProperty(AuditLog.prototype, \"Configuration\", {\r\n get: function () { return this._cfg; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(AuditLog.prototype, \"AuditListName\", {\r\n get: function () {\r\n // Return the list name\r\n return this.Configuration._configuration.ListCfg[0].ListInformation.Title;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(AuditLog.prototype, \"List\", {\r\n get: function () { return this._list; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n // Gets data for an associated item\r\n AuditLog.prototype.getItems = function (itemId, onQuery) {\r\n // Set the odata query\r\n var odata = {\r\n Expand: [\"LogUser\"],\r\n Filter: \"ParentListName eq '\".concat(this.List.ListName, \"' and ParentItemId eq \").concat(itemId),\r\n OrderBy: [\"Created desc\"],\r\n Select: [\"*\", \"LogUser/EMail\", \"LogUser/Id\", \"LogUser/LoginName\", \"LogUser/Title\"]\r\n };\r\n // Call the event\r\n odata = onQuery ? onQuery(odata) : odata;\r\n // Get the list data\r\n return this.List.refresh(odata);\r\n };\r\n // Installs the list\r\n AuditLog.prototype.install = function () {\r\n // Installs the list\r\n return this.Configuration.install();\r\n };\r\n // Logs an item to the audit log\r\n AuditLog.prototype.logItem = function (values) {\r\n // Create the item\r\n return this.List.createItem(values);\r\n };\r\n // Removes the audit log list\r\n AuditLog.prototype.uninstall = function () {\r\n // Remove the audit log list\r\n return this.Configuration.uninstall();\r\n };\r\n return AuditLog;\r\n}());\r\nexports.AuditLog = AuditLog;\r\n\n\n//# sourceURL=webpack://dattatable/./build/auditLog/index.js?");
31
31
 
32
32
  /***/ }),
33
33