dattatable 2.6.8 → 2.6.9
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/index.d.ts +1 -0
- package/build/common/index.js +1 -0
- package/build/common/timout.d.ts +11 -0
- package/build/common/timout.js +71 -0
- package/build/lib.d.ts +1 -0
- package/dist/dattatable.js +12 -1
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AuditLog.html +13 -13
- package/docs/classes/CanvasForm.html +17 -17
- package/docs/classes/Comments.html +12 -12
- package/docs/classes/Dashboard.html +17 -17
- package/docs/classes/DataTable.html +11 -11
- package/docs/classes/Documents.html +45 -45
- package/docs/classes/FilterSlideout.html +14 -14
- package/docs/classes/Footer.html +4 -4
- package/docs/classes/Header.html +4 -4
- package/docs/classes/InstallationRequired.html +12 -12
- package/docs/classes/ItemForm.html +47 -47
- package/docs/classes/List.html +40 -40
- package/docs/classes/LoadingDialog.html +12 -12
- package/docs/classes/Modal.html +26 -26
- package/docs/classes/Navigation.html +6 -6
- package/docs/classes/Timeout.html +141 -0
- package/docs/enums/ActionButtonTypes.html +6 -6
- package/docs/functions/formatBytes.html +2 -1
- package/docs/functions/formatDateValue.html +2 -1
- package/docs/functions/formatTimeValue.html +2 -1
- package/docs/functions/getFileExt.html +2 -1
- package/docs/index.html +1 -0
- package/docs/interfaces/IAuditLogItem.html +9 -9
- package/docs/interfaces/IAuditLogItemCreation.html +7 -7
- package/docs/interfaces/IAuditLogProps.html +5 -5
- package/docs/interfaces/IAuditLogViewProps.html +6 -6
- package/docs/interfaces/ICommentsItem.html +6 -6
- package/docs/interfaces/IDashboardProps.html +14 -14
- package/docs/interfaces/IDataTable.html +7 -7
- package/docs/interfaces/IDataTableProps.html +6 -6
- package/docs/interfaces/IDocumentsProps.html +25 -25
- package/docs/interfaces/IFilterItem.html +5 -5
- package/docs/interfaces/IFilterProps.html +4 -4
- package/docs/interfaces/IFooterProps.html +6 -6
- package/docs/interfaces/IHeaderProps.html +5 -5
- package/docs/interfaces/IInstallProps.html +4 -4
- package/docs/interfaces/IItemFormCreateProps.html +14 -14
- package/docs/interfaces/IItemFormEditProps.html +15 -15
- package/docs/interfaces/IItemFormTab.html +8 -8
- package/docs/interfaces/IItemFormTabInfo.html +3 -3
- package/docs/interfaces/IItemFormViewProps.html +12 -12
- package/docs/interfaces/IListProps.html +9 -9
- package/docs/interfaces/IShowDialogProps.html +7 -7
- package/docs/modules.html +2 -0
- package/docs/variables/DattaTable.html +3 -2
- package/package.json +1 -1
package/build/common/index.d.ts
CHANGED
package/build/common/index.js
CHANGED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Timeout = void 0;
|
|
4
|
+
var gd_sprest_bs_1 = require("gd-sprest-bs");
|
|
5
|
+
var modal_1 = require("./modal");
|
|
6
|
+
/**
|
|
7
|
+
* Timeout
|
|
8
|
+
*/
|
|
9
|
+
var Timeout = /** @class */ (function () {
|
|
10
|
+
function Timeout() {
|
|
11
|
+
}
|
|
12
|
+
// Shows the canvas
|
|
13
|
+
Timeout.checkWeb = function () {
|
|
14
|
+
var _this = this;
|
|
15
|
+
// Query the current web
|
|
16
|
+
(0, gd_sprest_bs_1.Web)().query({ Select: ["Title"] }).execute(
|
|
17
|
+
// Success
|
|
18
|
+
function () {
|
|
19
|
+
// Do nothing
|
|
20
|
+
},
|
|
21
|
+
// Error getting the web information
|
|
22
|
+
// Display a modal
|
|
23
|
+
function () {
|
|
24
|
+
// Clear the modal
|
|
25
|
+
modal_1.Modal.clear();
|
|
26
|
+
// Set the header
|
|
27
|
+
modal_1.Modal.setHeader("Error Loading Web");
|
|
28
|
+
// Set the body
|
|
29
|
+
modal_1.Modal.setBody("There was an error getting the current web. Please refresh the page.");
|
|
30
|
+
// Show the modal
|
|
31
|
+
modal_1.Modal.show();
|
|
32
|
+
// Stop the loop
|
|
33
|
+
_this.stop();
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
// Set the timeout value
|
|
37
|
+
// Default value is 300000ms (5 min)
|
|
38
|
+
Timeout.setTimer = function (timeout) {
|
|
39
|
+
if (timeout === void 0) { timeout = 300000; }
|
|
40
|
+
// Update the value
|
|
41
|
+
this._timeout = timeout;
|
|
42
|
+
};
|
|
43
|
+
// Stops the timeout
|
|
44
|
+
Timeout.stop = function () {
|
|
45
|
+
// Ensure the loop id exists
|
|
46
|
+
if (this._loopId) {
|
|
47
|
+
// Stop the loop
|
|
48
|
+
clearInterval(this._loopId);
|
|
49
|
+
// Clear the loop id
|
|
50
|
+
this._loopId = null;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
// Starts the timeout
|
|
54
|
+
Timeout.start = function () {
|
|
55
|
+
// Ensure it's not running
|
|
56
|
+
if (this._loopId > 0) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// Ensure the timer is set
|
|
60
|
+
if (this._timeout == null) {
|
|
61
|
+
// Set the default timer value
|
|
62
|
+
this.setTimer();
|
|
63
|
+
}
|
|
64
|
+
// Start the interval
|
|
65
|
+
this._loopId = setInterval(this.checkWeb, this._timeout);
|
|
66
|
+
};
|
|
67
|
+
Timeout._loopId = null;
|
|
68
|
+
Timeout._timeout = null;
|
|
69
|
+
return Timeout;
|
|
70
|
+
}());
|
|
71
|
+
exports.Timeout = Timeout;
|
package/build/lib.d.ts
CHANGED
package/dist/dattatable.js
CHANGED
|
@@ -71,7 +71,7 @@ eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assig
|
|
|
71
71
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
72
72
|
|
|
73
73
|
"use strict";
|
|
74
|
-
eval("\r\n/** Common Components */\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n__exportStar(__webpack_require__(/*! ./canvas */ \"./build/common/canvas.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./comments */ \"./build/common/comments.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./documents */ \"./build/common/documents.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./installRequired */ \"./build/common/installRequired.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./itemForm */ \"./build/common/itemForm.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./list */ \"./build/common/list.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./loadingDialog */ \"./build/common/loadingDialog.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./methods */ \"./build/common/methods.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./modal */ \"./build/common/modal.js\"), exports);\r\n\n\n//# sourceURL=webpack://dattatable/./build/common/index.js?");
|
|
74
|
+
eval("\r\n/** Common Components */\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n__exportStar(__webpack_require__(/*! ./canvas */ \"./build/common/canvas.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./comments */ \"./build/common/comments.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./documents */ \"./build/common/documents.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./installRequired */ \"./build/common/installRequired.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./itemForm */ \"./build/common/itemForm.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./list */ \"./build/common/list.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./loadingDialog */ \"./build/common/loadingDialog.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./methods */ \"./build/common/methods.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./modal */ \"./build/common/modal.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./timout */ \"./build/common/timout.js\"), exports);\r\n\n\n//# sourceURL=webpack://dattatable/./build/common/index.js?");
|
|
75
75
|
|
|
76
76
|
/***/ }),
|
|
77
77
|
|
|
@@ -141,6 +141,17 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
|
|
|
141
141
|
|
|
142
142
|
/***/ }),
|
|
143
143
|
|
|
144
|
+
/***/ "./build/common/timout.js":
|
|
145
|
+
/*!********************************!*\
|
|
146
|
+
!*** ./build/common/timout.js ***!
|
|
147
|
+
\********************************/
|
|
148
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
149
|
+
|
|
150
|
+
"use strict";
|
|
151
|
+
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.Timeout = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@10.10.17/node_modules/gd-sprest-bs/build/index.js\");\r\nvar modal_1 = __webpack_require__(/*! ./modal */ \"./build/common/modal.js\");\r\n/**\r\n * Timeout\r\n */\r\nvar Timeout = /** @class */ (function () {\r\n function Timeout() {\r\n }\r\n // Shows the canvas\r\n Timeout.checkWeb = function () {\r\n var _this = this;\r\n // Query the current web\r\n (0, gd_sprest_bs_1.Web)().query({ Select: [\"Title\"] }).execute(\r\n // Success\r\n function () {\r\n // Do nothing\r\n }, \r\n // Error getting the web information\r\n // Display a modal\r\n function () {\r\n // Clear the modal\r\n modal_1.Modal.clear();\r\n // Set the header\r\n modal_1.Modal.setHeader(\"Error Loading Web\");\r\n // Set the body\r\n modal_1.Modal.setBody(\"There was an error getting the current web. Please refresh the page.\");\r\n // Show the modal\r\n modal_1.Modal.show();\r\n // Stop the loop\r\n _this.stop();\r\n });\r\n };\r\n // Set the timeout value\r\n // Default value is 300000ms (5 min)\r\n Timeout.setTimer = function (timeout) {\r\n if (timeout === void 0) { timeout = 300000; }\r\n // Update the value\r\n this._timeout = timeout;\r\n };\r\n // Stops the timeout\r\n Timeout.stop = function () {\r\n // Ensure the loop id exists\r\n if (this._loopId) {\r\n // Stop the loop\r\n clearInterval(this._loopId);\r\n // Clear the loop id\r\n this._loopId = null;\r\n }\r\n };\r\n // Starts the timeout\r\n Timeout.start = function () {\r\n // Ensure it's not running\r\n if (this._loopId > 0) {\r\n return;\r\n }\r\n // Ensure the timer is set\r\n if (this._timeout == null) {\r\n // Set the default timer value\r\n this.setTimer();\r\n }\r\n // Start the interval\r\n this._loopId = setInterval(this.checkWeb, this._timeout);\r\n };\r\n Timeout._loopId = null;\r\n Timeout._timeout = null;\r\n return Timeout;\r\n}());\r\nexports.Timeout = Timeout;\r\n\n\n//# sourceURL=webpack://dattatable/./build/common/timout.js?");
|
|
152
|
+
|
|
153
|
+
/***/ }),
|
|
154
|
+
|
|
144
155
|
/***/ "./build/dashboard/filter.js":
|
|
145
156
|
/*!***********************************!*\
|
|
146
157
|
!*** ./build/dashboard/filter.js ***!
|