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.
Files changed (72) hide show
  1. package/build/dashboard/accordion.js +10 -0
  2. package/build/dashboard/index.d.ts +1 -1
  3. package/build/dashboard/index.js +2 -2
  4. package/build/dashboard/table.d.ts +2 -0
  5. package/build/dashboard/table.js +11 -0
  6. package/dist/dattatable.js +602 -602
  7. package/dist/dattatable.min.js +1 -1
  8. package/docs/assets/search.js +1 -1
  9. package/docs/classes/Accordion.html +2 -2
  10. package/docs/classes/AuditLog.html +2 -2
  11. package/docs/classes/CanvasForm.html +2 -2
  12. package/docs/classes/Comments.html +2 -2
  13. package/docs/classes/Dashboard.html +4 -4
  14. package/docs/classes/DataTable.html +4 -3
  15. package/docs/classes/Documents.html +6 -6
  16. package/docs/classes/FilterSlideout.html +2 -2
  17. package/docs/classes/Footer.html +2 -2
  18. package/docs/classes/Header.html +2 -2
  19. package/docs/classes/InstallationRequired.html +2 -2
  20. package/docs/classes/ItemForm.html +4 -4
  21. package/docs/classes/List.html +4 -4
  22. package/docs/classes/ListConfig.html +2 -2
  23. package/docs/classes/ListSecurity.html +2 -2
  24. package/docs/classes/LoadingDialog.html +2 -2
  25. package/docs/classes/Modal.html +2 -2
  26. package/docs/classes/Navigation.html +3 -3
  27. package/docs/classes/Tiles.html +2 -2
  28. package/docs/classes/Timeout.html +2 -2
  29. package/docs/enums/ActionButtonTypes.html +2 -2
  30. package/docs/functions/formatBytes.html +1 -1
  31. package/docs/functions/formatDateValue.html +1 -1
  32. package/docs/functions/formatTimeValue.html +1 -1
  33. package/docs/functions/getContextInfo.html +1 -1
  34. package/docs/functions/getFileExt.html +1 -1
  35. package/docs/functions/waitForTheme.html +1 -1
  36. package/docs/interfaces/IAccordion.html +2 -2
  37. package/docs/interfaces/IAccordionProps.html +2 -2
  38. package/docs/interfaces/IAuditLogItem.html +13 -13
  39. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  40. package/docs/interfaces/IAuditLogProps.html +2 -2
  41. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  42. package/docs/interfaces/ICommentsItem.html +2 -2
  43. package/docs/interfaces/ICreateLookupData.html +2 -2
  44. package/docs/interfaces/IDashboardProps.html +2 -2
  45. package/docs/interfaces/IDataTable.html +3 -2
  46. package/docs/interfaces/IDataTableProps.html +2 -2
  47. package/docs/interfaces/IDocumentsProps.html +2 -2
  48. package/docs/interfaces/IFilterItem.html +2 -2
  49. package/docs/interfaces/IFilterProps.html +2 -2
  50. package/docs/interfaces/IFooterProps.html +2 -2
  51. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  52. package/docs/interfaces/IHeaderProps.html +2 -2
  53. package/docs/interfaces/IInstallProps.html +2 -2
  54. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  55. package/docs/interfaces/IItemFormEditProps.html +2 -2
  56. package/docs/interfaces/IItemFormSaveProps.html +2 -2
  57. package/docs/interfaces/IItemFormTab.html +2 -2
  58. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  59. package/docs/interfaces/IItemFormViewProps.html +2 -2
  60. package/docs/interfaces/IListConfig.html +2 -2
  61. package/docs/interfaces/IListConfigProps.html +2 -2
  62. package/docs/interfaces/IListProps.html +2 -2
  63. package/docs/interfaces/IListSecurity.html +2 -2
  64. package/docs/interfaces/IListSecurityItem.html +2 -2
  65. package/docs/interfaces/ILookupData.html +2 -2
  66. package/docs/interfaces/IShowDialogProps.html +2 -2
  67. package/docs/interfaces/ITiles.html +2 -2
  68. package/docs/interfaces/ITilesProps.html +2 -2
  69. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  70. package/docs/variables/DattaTable.html +1 -1
  71. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  72. 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;
@@ -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
  }
@@ -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 = []; }