dattatable 1.9.8 → 2.0.1
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/dashboard/index.js +6 -2
- package/build/itemForm.js +3 -3
- package/dist/dattatable.js +424 -424
- package/dist/dattatable.min.js +1 -1
- package/docs/classes/CanvasForm.html +1 -1
- package/docs/classes/Comments.html +1 -1
- package/docs/classes/Dashboard.html +2 -2
- package/docs/classes/DataTable.html +2 -2
- package/docs/classes/Documents.html +5 -5
- package/docs/classes/FilterSlideout.html +1 -1
- package/docs/classes/Footer.html +1 -1
- package/docs/classes/Header.html +1 -1
- package/docs/classes/InstallationRequired.html +1 -1
- package/docs/classes/ItemForm.html +3 -3
- package/docs/classes/LoadingDialog.html +1 -1
- package/docs/classes/Modal.html +1 -1
- package/docs/classes/Navigation.html +1 -1
- package/docs/enums/ActionButtonTypes.html +1 -1
- package/docs/interfaces/ICommentsItem.html +1 -1
- package/docs/interfaces/IDashboardProps.html +1 -1
- package/docs/interfaces/IDataTable.html +1 -1
- package/docs/interfaces/IDataTableProps.html +1 -1
- package/docs/interfaces/IDocumentsProps.html +1 -1
- package/docs/interfaces/IFilterItem.html +1 -1
- package/docs/interfaces/IFilterProps.html +1 -1
- package/docs/interfaces/IFooterProps.html +1 -1
- package/docs/interfaces/IHeaderProps.html +1 -1
- package/docs/interfaces/IItemFormCreateProps.html +1 -1
- package/docs/interfaces/IItemFormEditProps.html +1 -1
- package/docs/interfaces/IItemFormTab.html +1 -1
- package/docs/interfaces/IItemFormTabInfo.html +1 -1
- package/docs/interfaces/IItemFormViewProps.html +1 -1
- package/docs/interfaces/IShowDialogProps.html +1 -1
- package/docs/modules.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +13 -13
package/build/dashboard/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./table"), exports);
|
|
|
34
34
|
var Dashboard = /** @class */ (function () {
|
|
35
35
|
// Constructor
|
|
36
36
|
function Dashboard(props) {
|
|
37
|
+
var _this = this;
|
|
37
38
|
this._dt = null;
|
|
38
39
|
this._filters = null;
|
|
39
40
|
this._props = null;
|
|
@@ -43,8 +44,11 @@ var Dashboard = /** @class */ (function () {
|
|
|
43
44
|
typeof (props.useModal) === "boolean" ? itemForm_1.ItemForm.UseModal = props.useModal : null;
|
|
44
45
|
// Render the dashboard
|
|
45
46
|
this.render();
|
|
46
|
-
//
|
|
47
|
-
|
|
47
|
+
// Let the object get instaniated before calling the event
|
|
48
|
+
setTimeout(function () {
|
|
49
|
+
// Call the render event
|
|
50
|
+
props.onRendered ? props.onRendered(_this._props.el) : null;
|
|
51
|
+
}, 10);
|
|
48
52
|
}
|
|
49
53
|
// Renders the component
|
|
50
54
|
Dashboard.prototype.render = function () {
|
package/build/itemForm.js
CHANGED
|
@@ -344,9 +344,9 @@ var ItemForm = /** @class */ (function () {
|
|
|
344
344
|
// Saves the edit form
|
|
345
345
|
ItemForm.save = function (form) {
|
|
346
346
|
var _this = this;
|
|
347
|
-
if (form === void 0) { form = this._editForms[0]; }
|
|
348
|
-
var forms = form ? [form] : this._editForms;
|
|
349
347
|
var values = {};
|
|
348
|
+
// Default the form
|
|
349
|
+
var forms = form ? [form] : this._editForms;
|
|
350
350
|
// Display a loading dialog
|
|
351
351
|
common_1.LoadingDialog.setHeader("Validation");
|
|
352
352
|
common_1.LoadingDialog.setBody("Validating the form...");
|
|
@@ -376,7 +376,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
376
376
|
// Saves the item
|
|
377
377
|
var saveItem_1 = function (values) {
|
|
378
378
|
// Save the item
|
|
379
|
-
|
|
379
|
+
forms[0].save(values).then(function (item) {
|
|
380
380
|
// Call the update event
|
|
381
381
|
_this._updateEvent ? _this._updateEvent(item) : null;
|
|
382
382
|
// Close the dialogs
|