dattatable 2.11.37 → 2.11.39
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.js +10 -0
- 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 +11 -0
- package/dist/dattatable.js +602 -602
- package/dist/dattatable.min.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 +4 -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/ListConfig.html +2 -2
- 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 +13 -13
- 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/ICreateLookupData.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +3 -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/IGenerateLookupDataProps.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/IItemFormSaveProps.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/IListConfig.html +2 -2
- package/docs/interfaces/IListConfigProps.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/ILookupData.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/interfaces/IValidateLookupsProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
|
@@ -64,6 +64,11 @@ var Accordion = /** @class */ (function () {
|
|
|
64
64
|
for (var i = 0; i < this._props.bodyFields.length; i++) {
|
|
65
65
|
var field = this._props.bodyFields[i];
|
|
66
66
|
var value = item[field] || "";
|
|
67
|
+
// See if this value has results
|
|
68
|
+
if (value.results) {
|
|
69
|
+
// Combine the values
|
|
70
|
+
value = value.results.join(', ');
|
|
71
|
+
}
|
|
67
72
|
// See if there is a template
|
|
68
73
|
if (this._props.bodyTemplate) {
|
|
69
74
|
// Replace the values
|
|
@@ -83,6 +88,11 @@ var Accordion = /** @class */ (function () {
|
|
|
83
88
|
for (var i = 0; i < this._props.titleFields.length; i++) {
|
|
84
89
|
var field = this._props.titleFields[i];
|
|
85
90
|
var value = item[field] || "";
|
|
91
|
+
// See if this value has results
|
|
92
|
+
if (value.results) {
|
|
93
|
+
// Combine the values
|
|
94
|
+
value = value.results.join(', ');
|
|
95
|
+
}
|
|
86
96
|
// See if there is a template
|
|
87
97
|
if (this._props.titleTemplate) {
|
|
88
98
|
// Replace the values
|
|
@@ -147,7 +147,7 @@ export declare class Dashboard {
|
|
|
147
147
|
clearFilter(): void;
|
|
148
148
|
filter(idx: number, value?: string, exactMatchFl?: boolean): void;
|
|
149
149
|
filterAccordion(values?: string | string[], useAndOperator?: boolean): void;
|
|
150
|
-
filterMulti(idx: number, values?: string[]): void;
|
|
150
|
+
filterMulti(idx: number, values?: string[], exactMatchFl?: boolean): void;
|
|
151
151
|
filterTiles(values?: string | string[], useAndOperator?: boolean): void;
|
|
152
152
|
getFilter(key: string): Components.ICheckboxGroup;
|
|
153
153
|
getSearchValue(): string;
|
package/build/dashboard/index.js
CHANGED
|
@@ -361,7 +361,7 @@ var Dashboard = /** @class */ (function () {
|
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
363
|
// Filter the table by multiple values
|
|
364
|
-
Dashboard.prototype.filterMulti = function (idx, values) {
|
|
364
|
+
Dashboard.prototype.filterMulti = function (idx, values, exactMatchFl) {
|
|
365
365
|
// See if we have an accordion
|
|
366
366
|
if (this.IsAccordion) {
|
|
367
367
|
// Filter the accordion
|
|
@@ -374,7 +374,7 @@ var Dashboard = /** @class */ (function () {
|
|
|
374
374
|
}
|
|
375
375
|
else {
|
|
376
376
|
// Filter the table
|
|
377
|
-
this._dt.filterMulti(idx, values);
|
|
377
|
+
exactMatchFl && values.length > 0 ? this._dt.filterMulti(idx, values) : this._dt.filterMulti(idx, values);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
// Filter the tiles
|
|
@@ -10,6 +10,7 @@ export interface IDataTable {
|
|
|
10
10
|
filter: (idx: number, value?: string) => void;
|
|
11
11
|
filterExact: (idx: number, value?: string) => void;
|
|
12
12
|
filterMulti: (idx: number, values?: string[]) => void;
|
|
13
|
+
filterMultiExact: (idx: number, values?: string[]) => void;
|
|
13
14
|
onRendering?: (dtProps: any) => any;
|
|
14
15
|
onRendered?: (el?: HTMLElement, dt?: any) => void;
|
|
15
16
|
refresh: (rows: any[]) => void;
|
|
@@ -42,6 +43,7 @@ export declare class DataTable implements IDataTable {
|
|
|
42
43
|
filter(idx: number, value?: string): void;
|
|
43
44
|
filterExact(idx: number, value?: string): void;
|
|
44
45
|
filterMulti(idx: number, values?: string[]): void;
|
|
46
|
+
filterMultiExact(idx: number, values?: string[]): void;
|
|
45
47
|
refresh(rows?: any[]): void;
|
|
46
48
|
search(value?: string): void;
|
|
47
49
|
}
|
package/build/dashboard/table.js
CHANGED
|
@@ -124,6 +124,17 @@ var DataTable = /** @class */ (function () {
|
|
|
124
124
|
// Filter the values
|
|
125
125
|
this.filter(idx, values.join('|'));
|
|
126
126
|
};
|
|
127
|
+
// Filters multiple values against the status
|
|
128
|
+
DataTable.prototype.filterMultiExact = function (idx, values) {
|
|
129
|
+
if (values === void 0) { values = []; }
|
|
130
|
+
// Parse the values
|
|
131
|
+
for (var i = 0; i < values.length; i++) {
|
|
132
|
+
// Update the value
|
|
133
|
+
values[i] = values[i].replace(/\|/g, '\\$&');
|
|
134
|
+
}
|
|
135
|
+
// Filter the values
|
|
136
|
+
this._datatable.column(idx).search("^(" + values.join('|') + ")$", true, false).draw();
|
|
137
|
+
};
|
|
127
138
|
// Method to reload the data
|
|
128
139
|
DataTable.prototype.refresh = function (rows) {
|
|
129
140
|
if (rows === void 0) { rows = []; }
|