dattatable 2.5.6 → 2.5.8
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/installRequired.d.ts +1 -0
- package/build/common/installRequired.js +7 -1
- package/dist/dattatable.js +439 -439
- 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/enums/ActionButtonTypes.html +6 -6
- 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/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 +24 -4
- package/docs/interfaces/IItemFormCreateProps.html +14 -14
- package/docs/interfaces/IItemFormEditProps.html +15 -15
- package/docs/interfaces/IItemFormTab.html +7 -7
- 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 +6 -6
- package/docs/variables/DattaTable.html +1 -1
- package/package.json +54 -54
- package/pnpm-lock.yaml +3230 -3230
|
@@ -2,6 +2,7 @@ import { Components, Helper } from "gd-sprest-bs";
|
|
|
2
2
|
export interface IInstallProps {
|
|
3
3
|
cfg: Helper.ISPConfig | Helper.ISPConfig[];
|
|
4
4
|
onCompleted?: () => void;
|
|
5
|
+
onError?: (cfg: Helper.ISPConfig) => void;
|
|
5
6
|
}
|
|
6
7
|
export interface IShowDialogProps {
|
|
7
8
|
errors?: Components.IListGroupItem[];
|
|
@@ -188,6 +188,7 @@ var InstallationRequired = /** @class */ (function () {
|
|
|
188
188
|
gd_sprest_bs_1.Helper.Executor(cfgs, function (cfg) {
|
|
189
189
|
// Return a promise
|
|
190
190
|
return new Promise(function (resolve) {
|
|
191
|
+
var numbOfErrors = _this._report.length;
|
|
191
192
|
// Check the configuration
|
|
192
193
|
Promise.all([
|
|
193
194
|
// Check the custom actions
|
|
@@ -197,11 +198,16 @@ var InstallationRequired = /** @class */ (function () {
|
|
|
197
198
|
]).then(function () {
|
|
198
199
|
// Execute the event
|
|
199
200
|
props.onCompleted ? props.onCompleted() : null;
|
|
201
|
+
// See if there are errors
|
|
202
|
+
if (_this._report.length > numbOfErrors) {
|
|
203
|
+
// Execute the event
|
|
204
|
+
props.onError ? props.onError(cfg) : null;
|
|
205
|
+
}
|
|
200
206
|
// Resolve the request
|
|
201
207
|
resolve(_this._report.length > 0);
|
|
202
208
|
});
|
|
203
209
|
});
|
|
204
|
-
});
|
|
210
|
+
}).then(resolve);
|
|
205
211
|
});
|
|
206
212
|
};
|
|
207
213
|
InstallationRequired.showDialog = function (props) {
|