dattatable 2.0.4 → 2.0.5
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/itemForm.d.ts +5 -0
- package/build/itemForm.js +6 -0
- package/dist/dattatable.js +430 -419
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.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 +11 -11
package/build/itemForm.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Components, Helper } from "gd-sprest-bs";
|
|
2
|
+
import { CanvasForm, Modal } from "./common";
|
|
2
3
|
/** Tab */
|
|
3
4
|
export interface IItemFormTab {
|
|
4
5
|
title: string;
|
|
@@ -21,6 +22,7 @@ export interface IItemFormCreateProps {
|
|
|
21
22
|
onSave?: (values: any) => object | PromiseLike<object>;
|
|
22
23
|
onSetFooter?: (el: HTMLElement) => void;
|
|
23
24
|
onSetHeader?: (el: HTMLElement) => void;
|
|
25
|
+
onShowForm?: (form?: CanvasForm | Modal) => void;
|
|
24
26
|
onUpdate?: (item?: any) => void;
|
|
25
27
|
onValidation?: (values?: any) => boolean | PromiseLike<boolean>;
|
|
26
28
|
tabInfo?: IItemFormTabInfo;
|
|
@@ -37,6 +39,7 @@ export interface IItemFormEditProps {
|
|
|
37
39
|
onSave?: (values: any) => object | PromiseLike<object>;
|
|
38
40
|
onSetFooter?: (el: HTMLElement) => void;
|
|
39
41
|
onSetHeader?: (el: HTMLElement) => void;
|
|
42
|
+
onShowForm?: (form?: CanvasForm | Modal) => void;
|
|
40
43
|
onUpdate?: (item?: any) => void;
|
|
41
44
|
onValidation?: (values?: any) => boolean | PromiseLike<boolean>;
|
|
42
45
|
tabInfo?: IItemFormTabInfo;
|
|
@@ -52,6 +55,7 @@ export interface IItemFormViewProps {
|
|
|
52
55
|
onGetListInfo?: (props: Helper.IListFormProps) => Helper.IListFormProps;
|
|
53
56
|
onSetFooter?: (el: HTMLElement) => void;
|
|
54
57
|
onSetHeader?: (el: HTMLElement) => void;
|
|
58
|
+
onShowForm?: (form?: CanvasForm | Modal) => void;
|
|
55
59
|
tabInfo?: IItemFormTabInfo;
|
|
56
60
|
useModal?: boolean;
|
|
57
61
|
webUrl?: string;
|
|
@@ -66,6 +70,7 @@ export declare class ItemForm {
|
|
|
66
70
|
private static _onGetListInfo;
|
|
67
71
|
private static _onSetFooter?;
|
|
68
72
|
private static _onSetHeader?;
|
|
73
|
+
private static _onShowForm?;
|
|
69
74
|
private static _onSave;
|
|
70
75
|
private static _onValidation;
|
|
71
76
|
private static _tabInfo;
|
package/build/itemForm.js
CHANGED
|
@@ -108,6 +108,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
108
108
|
this._onSave = props.onSave;
|
|
109
109
|
this._onSetFooter = props.onSetFooter;
|
|
110
110
|
this._onSetHeader = props.onSetHeader;
|
|
111
|
+
this._onShowForm = props.onShowForm;
|
|
111
112
|
this._onValidation = props.onValidation;
|
|
112
113
|
this._tabInfo = props.tabInfo;
|
|
113
114
|
this._updateEvent = props.onUpdate;
|
|
@@ -126,6 +127,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
126
127
|
this._onSave = props.onSave;
|
|
127
128
|
this._onSetFooter = props.onSetFooter;
|
|
128
129
|
this._onSetHeader = props.onSetHeader;
|
|
130
|
+
this._onShowForm = props.onShowForm;
|
|
129
131
|
this._onValidation = props.onValidation;
|
|
130
132
|
this._tabInfo = props.tabInfo;
|
|
131
133
|
this._updateEvent = props.onUpdate;
|
|
@@ -157,6 +159,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
157
159
|
this._onGetListInfo = props.onGetListInfo;
|
|
158
160
|
this._onSetFooter = props.onSetFooter;
|
|
159
161
|
this._onSetHeader = props.onSetHeader;
|
|
162
|
+
this._onShowForm = props.onShowForm;
|
|
160
163
|
this._tabInfo = props.tabInfo;
|
|
161
164
|
typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
|
|
162
165
|
// Load the form
|
|
@@ -317,6 +320,8 @@ var ItemForm = /** @class */ (function () {
|
|
|
317
320
|
}
|
|
318
321
|
// Render the footer
|
|
319
322
|
this.renderFooter();
|
|
323
|
+
// Call the event
|
|
324
|
+
this._onShowForm ? this._onShowForm(this._useModal ? common_1.Modal : common_1.CanvasForm) : null;
|
|
320
325
|
// Close the dialog
|
|
321
326
|
common_1.LoadingDialog.hide();
|
|
322
327
|
// Show the form
|
|
@@ -461,6 +466,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
461
466
|
ItemForm._onGetListInfo = null;
|
|
462
467
|
ItemForm._onSetFooter = null;
|
|
463
468
|
ItemForm._onSetHeader = null;
|
|
469
|
+
ItemForm._onShowForm = null;
|
|
464
470
|
ItemForm._onSave = null;
|
|
465
471
|
ItemForm._onValidation = null;
|
|
466
472
|
ItemForm._tabInfo = null;
|