dattatable 2.7.8 → 2.8.0
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/list.js +1 -1
- package/build/dashboard/index.d.ts +1 -1
- package/build/dashboard/index.js +2 -2
- package/build/dashboard/table.d.ts +2 -0
- package/build/dashboard/table.js +6 -0
- package/dist/dattatable.js +867 -900
- 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 +24 -22
- package/docs/classes/DataTable.html +29 -11
- package/docs/classes/Documents.html +45 -45
- package/docs/classes/FilterSlideout.html +17 -17
- 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 +47 -47
- package/docs/classes/LoadingDialog.html +12 -12
- package/docs/classes/Modal.html +26 -26
- package/docs/classes/Navigation.html +6 -6
- package/docs/classes/Timeout.html +7 -7
- 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 +64 -64
- 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 +26 -26
- package/docs/interfaces/IDataTable.html +33 -11
- package/docs/interfaces/IDataTableProps.html +6 -6
- package/docs/interfaces/IDocumentsProps.html +28 -28
- package/docs/interfaces/IFilterItem.html +5 -5
- package/docs/interfaces/IFilterProps.html +4 -4
- package/docs/interfaces/IFooterProps.html +9 -9
- 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 +8 -8
- package/docs/interfaces/IItemFormTabInfo.html +3 -3
- package/docs/interfaces/IItemFormViewProps.html +12 -12
- package/docs/interfaces/IListProps.html +11 -11
- package/docs/interfaces/IShowDialogProps.html +7 -7
- package/docs/variables/DattaTable.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +26 -26
package/build/common/list.js
CHANGED
|
@@ -230,7 +230,7 @@ var List = /** @class */ (function () {
|
|
|
230
230
|
}, true);
|
|
231
231
|
// Query the list views
|
|
232
232
|
list.Views().query({
|
|
233
|
-
Expand: ["
|
|
233
|
+
Expand: ["ViewFields"]
|
|
234
234
|
}).execute(function (views) {
|
|
235
235
|
// Save the views
|
|
236
236
|
_this._listViews = views.results;
|
|
@@ -83,7 +83,7 @@ export declare class Dashboard {
|
|
|
83
83
|
* Public Interface
|
|
84
84
|
*/
|
|
85
85
|
clearFilter(): void;
|
|
86
|
-
filter(idx: number, value?: string): void;
|
|
86
|
+
filter(idx: number, value?: string, exactMatchFl?: boolean): void;
|
|
87
87
|
filterMulti(idx: number, values?: string[]): void;
|
|
88
88
|
getFilter(key: string): Components.ICheckboxGroup;
|
|
89
89
|
getSearchValue(): string;
|
package/build/dashboard/index.js
CHANGED
|
@@ -225,9 +225,9 @@ var Dashboard = /** @class */ (function () {
|
|
|
225
225
|
this._filters.clear();
|
|
226
226
|
};
|
|
227
227
|
// Filter the table
|
|
228
|
-
Dashboard.prototype.filter = function (idx, value) {
|
|
228
|
+
Dashboard.prototype.filter = function (idx, value, exactMatchFl) {
|
|
229
229
|
// Filter the table
|
|
230
|
-
this._dt.filter(idx, value);
|
|
230
|
+
exactMatchFl ? this._dt.filterExact(idx, value) : this._dt.filter(idx, value);
|
|
231
231
|
};
|
|
232
232
|
// Filter the table by multiple values
|
|
233
233
|
Dashboard.prototype.filterMulti = function (idx, values) {
|
|
@@ -7,6 +7,7 @@ import "datatables.net-bs5";
|
|
|
7
7
|
export interface IDataTable {
|
|
8
8
|
datatable: any;
|
|
9
9
|
filter: (idx: number, value?: string) => void;
|
|
10
|
+
filterExact: (idx: number, value?: string) => void;
|
|
10
11
|
filterMulti: (idx: number, values?: string[]) => void;
|
|
11
12
|
onRendered?: (el?: HTMLElement, dt?: any) => void;
|
|
12
13
|
refresh: (rows: any[]) => void;
|
|
@@ -34,6 +35,7 @@ export declare class DataTable implements IDataTable {
|
|
|
34
35
|
get datatable(): any;
|
|
35
36
|
get el(): HTMLElement;
|
|
36
37
|
filter(idx: number, value?: string): void;
|
|
38
|
+
filterExact(idx: number, value?: string): void;
|
|
37
39
|
filterMulti(idx: number, values?: string[]): void;
|
|
38
40
|
refresh(rows?: any[]): void;
|
|
39
41
|
search(value?: string): void;
|
package/build/dashboard/table.js
CHANGED
|
@@ -45,6 +45,12 @@ var DataTable = /** @class */ (function () {
|
|
|
45
45
|
// Set the filter
|
|
46
46
|
this._datatable.column(idx).search(value.replace(/[-[/\]{}()*+?.,\\^$#\s]/g, '\\$&'), true, false).draw();
|
|
47
47
|
};
|
|
48
|
+
// Filters the status
|
|
49
|
+
DataTable.prototype.filterExact = function (idx, value) {
|
|
50
|
+
if (value === void 0) { value = ""; }
|
|
51
|
+
// Set the filter
|
|
52
|
+
this._datatable.column(idx).search("\b" + value.replace(/[-[/\]{}()*+?.,\\^$#\s]/g, '\\$&') + "\b", true, false).draw();
|
|
53
|
+
};
|
|
48
54
|
// Filters multiple values against the status
|
|
49
55
|
DataTable.prototype.filterMulti = function (idx, values) {
|
|
50
56
|
if (values === void 0) { values = []; }
|