dattatable 2.9.65 → 2.9.66
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/accordion.d.ts +2 -1
- package/build/dashboard/filter.d.ts +2 -2
- package/build/dashboard/filter.js +4 -4
- package/build/dashboard/index.js +4 -4
- package/build/dashboard/tiles.d.ts +1 -1
- package/dist/dattatable.js +457 -457
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- 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/Tiles.html +2 -2
- 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/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- 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/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +0 -3420
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Components } from "gd-sprest-bs";
|
|
1
2
|
export interface IAccordion {
|
|
2
|
-
filter?: (
|
|
3
|
+
filter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
|
|
3
4
|
search?: (value: string) => void;
|
|
4
5
|
}
|
|
5
6
|
export interface IAccordionProps {
|
|
@@ -6,7 +6,7 @@ export interface IFilterItem {
|
|
|
6
6
|
header: string;
|
|
7
7
|
items: Components.ICheckboxGroupItem[];
|
|
8
8
|
multi?: boolean;
|
|
9
|
-
onFilter?: (value: string | string[]) => void;
|
|
9
|
+
onFilter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Properties
|
|
@@ -14,7 +14,7 @@ export interface IFilterItem {
|
|
|
14
14
|
export interface IFilterProps {
|
|
15
15
|
filters: IFilterItem[];
|
|
16
16
|
onClear?: () => void;
|
|
17
|
-
onFilter?: (value: string | string[]) => void;
|
|
17
|
+
onFilter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
|
|
18
18
|
onRendered?: (el: HTMLElement) => void;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -93,14 +93,14 @@ var FilterSlideout = /** @class */ (function () {
|
|
|
93
93
|
values.push(items[i].label);
|
|
94
94
|
}
|
|
95
95
|
// Execute the event
|
|
96
|
-
filter.onFilter ? filter.onFilter(values) : null;
|
|
97
|
-
_this._onFilter ? _this._onFilter(values) : null;
|
|
96
|
+
filter.onFilter ? filter.onFilter(values, item) : null;
|
|
97
|
+
_this._onFilter ? _this._onFilter(values, item) : null;
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
var item_1 = value;
|
|
101
101
|
// Execute the event
|
|
102
|
-
filter.onFilter ? filter.onFilter(item_1 ? item_1.label : "") : null;
|
|
103
|
-
_this._onFilter ? _this._onFilter(item_1 ? item_1.label : "") : null;
|
|
102
|
+
filter.onFilter ? filter.onFilter(item_1 ? item_1.label : "", item_1) : null;
|
|
103
|
+
_this._onFilter ? _this._onFilter(item_1 ? item_1.label : "", item_1) : null;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}));
|
package/build/dashboard/index.js
CHANGED
|
@@ -119,10 +119,10 @@ var Dashboard = /** @class */ (function () {
|
|
|
119
119
|
filters: this._props.filters ? this._props.filters.items : [],
|
|
120
120
|
onClear: this._props.filters ? this._props.filters.onClear : null,
|
|
121
121
|
onRendered: this._props.filters ? this._props.filters.onRendered : null,
|
|
122
|
-
onFilter: this.IsAccordion ? function (value) {
|
|
123
|
-
_this._accordion.filter(value);
|
|
124
|
-
} : (this.IsTiles ? function (value) {
|
|
125
|
-
_this._tiles.filter(value);
|
|
122
|
+
onFilter: this.IsAccordion ? function (value, item) {
|
|
123
|
+
_this._accordion.filter(value, item);
|
|
124
|
+
} : (this.IsTiles ? function (value, item) {
|
|
125
|
+
_this._tiles.filter(value, item);
|
|
126
126
|
} : null)
|
|
127
127
|
});
|
|
128
128
|
// Render the template
|