dattatable 2.6.2 → 2.6.4
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/README.md +14 -14
- package/build/common/installRequired.d.ts +1 -0
- package/build/common/installRequired.js +2 -0
- package/build/common/itemForm.js +3 -2
- 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/index.html +14 -14
- 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 +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 +22 -7
- package/docs/variables/DattaTable.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +3230 -3230
package/README.md
CHANGED
|
@@ -13,26 +13,26 @@ This library will help generate a dashboard or an interactive [datatables.net](h
|
|
|
13
13
|
|
|
14
14
|
Follow this [code walkthrough](https://github.com/gunjandatta/sp-dashboard/wiki) to build a basic example of this solution.
|
|
15
15
|
|
|
16
|
-
## [Documentation](https://datta-
|
|
16
|
+
## [Documentation](https://datta-register.github.io/dattatable/)
|
|
17
17
|
|
|
18
18
|
### Common Methods
|
|
19
19
|
|
|
20
|
-
* [formatDateTimeValue](https://datta-
|
|
21
|
-
* [formatDateValue](https://datta-
|
|
20
|
+
* [formatDateTimeValue](https://datta-register.github.io/dattatable/modules.html#formatDateTimeValue)
|
|
21
|
+
* [formatDateValue](https://datta-register.github.io/dattatable/modules.html#formatDateValue)
|
|
22
22
|
|
|
23
23
|
### Components
|
|
24
24
|
|
|
25
|
-
* [Canvas Form](https://datta-
|
|
26
|
-
* [Dashboard](https://datta-
|
|
27
|
-
* [Installation Required](https://datta-
|
|
28
|
-
* [Item Form](https://datta-
|
|
29
|
-
* [Loading Dialog](https://datta-
|
|
30
|
-
* [Modal](https://datta-
|
|
25
|
+
* [Canvas Form](https://datta-register.github.io/dattatable/classes/CanvasForm.html)
|
|
26
|
+
* [Dashboard](https://datta-register.github.io/dattatable/classes/Dashboard.html)
|
|
27
|
+
* [Installation Required](https://datta-register.github.io/dattatable/classes/InstallationRequired.html)
|
|
28
|
+
* [Item Form](https://datta-register.github.io/dattatable/classes/ItemForm.html)
|
|
29
|
+
* [Loading Dialog](https://datta-register.github.io/dattatable/classes/LoadingDialog.html)
|
|
30
|
+
* [Modal](https://datta-register.github.io/dattatable/classes/Modal.html)
|
|
31
31
|
|
|
32
32
|
### Dashboard Components
|
|
33
33
|
|
|
34
|
-
* [DataTable](https://datta-
|
|
35
|
-
* [FilterSlideout](https://datta-
|
|
36
|
-
* [Footer](https://datta-
|
|
37
|
-
* [Header](https://datta-
|
|
38
|
-
* [Navigation](https://datta-
|
|
34
|
+
* [DataTable](https://datta-register.github.io/dattatable/classes/DataTable.html)
|
|
35
|
+
* [FilterSlideout](https://datta-register.github.io/dattatable/classes/FilterSlideout.html)
|
|
36
|
+
* [Footer](https://datta-register.github.io/dattatable/classes/Footer.html)
|
|
37
|
+
* [Header](https://datta-register.github.io/dattatable/classes/Header.html)
|
|
38
|
+
* [Navigation](https://datta-register.github.io/dattatable/classes/Navigation.html)
|
|
@@ -7,6 +7,7 @@ export interface IInstallProps {
|
|
|
7
7
|
export interface IShowDialogProps {
|
|
8
8
|
errors?: Components.IListGroupItem[];
|
|
9
9
|
onBodyRendered?(el: HTMLElement): any;
|
|
10
|
+
onCompleted?: () => void;
|
|
10
11
|
onFooterRendered?(el: HTMLElement): any;
|
|
11
12
|
onHeaderRendered?(el: HTMLElement): any;
|
|
12
13
|
onInstalled?: (cfg?: Helper.ISPConfig) => void;
|
package/build/common/itemForm.js
CHANGED
|
@@ -397,7 +397,8 @@ var ItemForm = /** @class */ (function () {
|
|
|
397
397
|
// Update the values
|
|
398
398
|
values = __assign(__assign({}, values), form.getValues());
|
|
399
399
|
// See if the form is not valid
|
|
400
|
-
|
|
400
|
+
var tabIsValid = form.isValid();
|
|
401
|
+
if (!tabIsValid) {
|
|
401
402
|
// Set the flag
|
|
402
403
|
isValid = false;
|
|
403
404
|
}
|
|
@@ -410,7 +411,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
410
411
|
tab.classList.remove("is-valid");
|
|
411
412
|
tab.classList.remove("is-invalid");
|
|
412
413
|
// Set the class name
|
|
413
|
-
tab.classList.add(
|
|
414
|
+
tab.classList.add(tabIsValid ? "is-valid" : "is-invalid");
|
|
414
415
|
}
|
|
415
416
|
}
|
|
416
417
|
// Set the tab class
|