dattatable 2.9.26 → 2.9.27
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/index.d.ts +1 -0
- package/build/index.js +33 -1
- package/dist/dattatable.js +451 -451
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- 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/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/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -0
- 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/modules.html +1 -0
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +7 -7
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.waitForTheme = void 0;
|
|
17
18
|
/** Library */
|
|
18
19
|
__exportStar(require("./lib"), exports);
|
|
19
20
|
/** Styling */
|
|
@@ -23,4 +24,35 @@ var lib_1 = require("./lib");
|
|
|
23
24
|
window["DattaTable"] = lib_1.DattaTable;
|
|
24
25
|
/** Apply the Current Theme */
|
|
25
26
|
var gd_sprest_bs_1 = require("gd-sprest-bs");
|
|
26
|
-
|
|
27
|
+
var _themeLoaded = false;
|
|
28
|
+
gd_sprest_bs_1.ThemeManager.load(true).then(function () { _themeLoaded = true; });
|
|
29
|
+
function waitForTheme() {
|
|
30
|
+
// Return a promise
|
|
31
|
+
return new Promise(function (resolve, reject) {
|
|
32
|
+
// See if the flag is set
|
|
33
|
+
if (_themeLoaded) {
|
|
34
|
+
resolve();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
// Wait for the theme to be loaded
|
|
38
|
+
var counter = 0;
|
|
39
|
+
var maxAttempts = 100;
|
|
40
|
+
var loopId = setInterval(function () {
|
|
41
|
+
// See if the theme was loaded
|
|
42
|
+
if (_themeLoaded) {
|
|
43
|
+
// Stop the loop
|
|
44
|
+
clearInterval(loopId);
|
|
45
|
+
// Resolve the request
|
|
46
|
+
resolve();
|
|
47
|
+
}
|
|
48
|
+
// Else, see if we have hit the max attempts
|
|
49
|
+
else if (++counter >= maxAttempts) {
|
|
50
|
+
// Stop the loop
|
|
51
|
+
clearInterval(loopId);
|
|
52
|
+
// Reject the request
|
|
53
|
+
reject();
|
|
54
|
+
}
|
|
55
|
+
}, 50);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
exports.waitForTheme = waitForTheme;
|