dattatable 2.11.76 → 2.11.77

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 (69) hide show
  1. package/build/auditLog/index.js +25 -19
  2. package/build/common/documents.js +25 -19
  3. package/build/dashboard/table.js +8 -21
  4. package/dist/dattatable.js +3 -3
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/classes/Accordion.html +2 -2
  7. package/docs/classes/AuditLog.html +2 -2
  8. package/docs/classes/CanvasForm.html +2 -2
  9. package/docs/classes/Comments.html +2 -2
  10. package/docs/classes/Dashboard.html +4 -4
  11. package/docs/classes/DataTable.html +3 -3
  12. package/docs/classes/Documents.html +6 -6
  13. package/docs/classes/FilterSlideout.html +2 -2
  14. package/docs/classes/Footer.html +2 -2
  15. package/docs/classes/Header.html +2 -2
  16. package/docs/classes/InstallationRequired.html +2 -2
  17. package/docs/classes/ItemForm.html +5 -5
  18. package/docs/classes/List.html +4 -4
  19. package/docs/classes/ListConfig.html +2 -2
  20. package/docs/classes/ListSecurity.html +2 -2
  21. package/docs/classes/LoadingDialog.html +2 -2
  22. package/docs/classes/Modal.html +2 -2
  23. package/docs/classes/Navigation.html +3 -3
  24. package/docs/classes/Tiles.html +2 -2
  25. package/docs/classes/Timeout.html +2 -2
  26. package/docs/enums/ActionButtonTypes.html +2 -2
  27. package/docs/functions/formatBytes.html +1 -1
  28. package/docs/functions/formatDateValue.html +1 -1
  29. package/docs/functions/formatTimeValue.html +1 -1
  30. package/docs/functions/getContextInfo.html +1 -1
  31. package/docs/functions/getFileExt.html +1 -1
  32. package/docs/functions/waitForTheme.html +1 -1
  33. package/docs/interfaces/IAccordion.html +2 -2
  34. package/docs/interfaces/IAccordionProps.html +2 -2
  35. package/docs/interfaces/IAuditLogItem.html +2 -2
  36. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  37. package/docs/interfaces/IAuditLogProps.html +2 -2
  38. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  39. package/docs/interfaces/ICommentsItem.html +2 -2
  40. package/docs/interfaces/ICreateLookupData.html +2 -2
  41. package/docs/interfaces/IDashboardProps.html +2 -2
  42. package/docs/interfaces/IDataTable.html +2 -2
  43. package/docs/interfaces/IDataTableProps.html +2 -2
  44. package/docs/interfaces/IDocumentsProps.html +2 -2
  45. package/docs/interfaces/IFilterItem.html +2 -2
  46. package/docs/interfaces/IFilterProps.html +2 -2
  47. package/docs/interfaces/IFooterProps.html +2 -2
  48. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  49. package/docs/interfaces/IHeaderProps.html +2 -2
  50. package/docs/interfaces/IInstallProps.html +2 -2
  51. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  52. package/docs/interfaces/IItemFormEditProps.html +2 -2
  53. package/docs/interfaces/IItemFormSaveProps.html +2 -2
  54. package/docs/interfaces/IItemFormTab.html +2 -2
  55. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  56. package/docs/interfaces/IItemFormViewProps.html +2 -2
  57. package/docs/interfaces/IListConfig.html +2 -2
  58. package/docs/interfaces/IListConfigProps.html +2 -2
  59. package/docs/interfaces/IListProps.html +2 -2
  60. package/docs/interfaces/IListSecurity.html +2 -2
  61. package/docs/interfaces/IListSecurityItem.html +2 -2
  62. package/docs/interfaces/ILookupData.html +2 -2
  63. package/docs/interfaces/IShowDialogProps.html +2 -2
  64. package/docs/interfaces/ITiles.html +2 -2
  65. package/docs/interfaces/ITilesProps.html +2 -2
  66. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  67. package/docs/variables/DattaTable.html +1 -1
  68. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  69. package/package.json +1 -1
@@ -72,25 +72,31 @@ var AuditLog = /** @class */ (function () {
72
72
  }
73
73
  ],
74
74
  drawCallback: function (settings) {
75
- /*
76
- let api = new jQuery.fn.dataTable.Api(settings) as any;
77
-
78
- // Styling option for striped rows
79
- jQuery(api.context[0].nTable).addClass('table-striped');
80
-
81
- // Align the text to be centered
82
- jQuery(api.context[0].nTableWrapper).find('.dt-info').parent().removeClass('col-md d-md-flex justify-content-between align-items-center');
83
- jQuery(api.context[0].nTableWrapper).find('.dt-info').addClass('text-center');
84
-
85
- // Remove the label spacing to align with paging
86
- jQuery(api.context[0].nTableWrapper).find('.dt-length label').addClass('d-none');
87
-
88
- // Push paging to the end
89
- jQuery(api.context[0].nTableWrapper).find('.dt-paging').addClass('d-flex justify-content-end mx-0 px-0');
90
-
91
- // Add spacing for the footer
92
- jQuery(api.context[0].nTableWrapper).find('.row:last-child').addClass('mb-1');
93
- */
75
+ // Get the table element
76
+ var elTable = settings.api.context[0].table;
77
+ if (elTable) {
78
+ // Styling option for striped rows
79
+ elTable.classList.add('table-striped');
80
+ }
81
+ // Get the table wrapper element
82
+ var elTableWrapper = settings.api.context[0].tableWrapper;
83
+ if (elTableWrapper) {
84
+ // Align the text to be centered
85
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('col-md');
86
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('d-md-flex');
87
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('justify-content-between');
88
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('align-items-center');
89
+ elTableWrapper.querySelector('.dt-info').classList.add('text-center');
90
+ // Remove the label spacing to align with paging
91
+ elTableWrapper.querySelector('.dt-length label').classList.add('d-none');
92
+ // Push paging to the end
93
+ elTableWrapper.querySelector('.dt-paging').classList.add('d-flex');
94
+ elTableWrapper.querySelector('.dt-paging').classList.add('justify-content-end');
95
+ elTableWrapper.querySelector('.dt-paging').classList.add('mx-0');
96
+ elTableWrapper.querySelector('.dt-paging').classList.add('px-0');
97
+ // Add spacing for the footer
98
+ elTableWrapper.querySelector('.row:last-child').classList.add('mb-1');
99
+ }
94
100
  },
95
101
  language: {
96
102
  emptyTable: "No logs exist for this item.",
@@ -369,25 +369,31 @@ var Documents = /** @class */ (function () {
369
369
  dtProps: this._props.table && this._props.table.dtProps ? this._props.table.dtProps : {
370
370
  columnDefs: columnDefs,
371
371
  drawCallback: function (settings) {
372
- /*
373
- let api = new jQuery.fn.dataTable.Api(settings) as any;
374
-
375
- // Styling option for striped rows
376
- jQuery(api.context[0].nTable).addClass('table-striped');
377
-
378
- // Align the text to be centered
379
- jQuery(api.context[0].nTableWrapper).find('.dt-info').parent().removeClass('col-md d-md-flex justify-content-between align-items-center');
380
- jQuery(api.context[0].nTableWrapper).find('.dt-info').addClass('text-center');
381
-
382
- // Remove the label spacing to align with paging
383
- jQuery(api.context[0].nTableWrapper).find('.dt-length label').addClass('d-none');
384
-
385
- // Push paging to the end
386
- jQuery(api.context[0].nTableWrapper).find('.dt-paging').addClass('d-flex justify-content-end mx-0 px-0');
387
-
388
- // Add spacing for the footer
389
- jQuery(api.context[0].nTableWrapper).find('.row:last-child').addClass('mb-1');
390
- */
372
+ // Get the table element
373
+ var elTable = settings.api.context[0].table;
374
+ if (elTable) {
375
+ // Styling option for striped rows
376
+ elTable.classList.add('table-striped');
377
+ }
378
+ // Get the table wrapper element
379
+ var elTableWrapper = settings.api.context[0].tableWrapper;
380
+ if (elTableWrapper) {
381
+ // Align the text to be centered
382
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('col-md');
383
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('d-md-flex');
384
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('justify-content-between');
385
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('align-items-center');
386
+ elTableWrapper.querySelector('.dt-info').classList.add('text-center');
387
+ // Remove the label spacing to align with paging
388
+ elTableWrapper.querySelector('.dt-length label').classList.add('d-none');
389
+ // Push paging to the end
390
+ elTableWrapper.querySelector('.dt-paging').classList.add('d-flex');
391
+ elTableWrapper.querySelector('.dt-paging').classList.add('justify-content-end');
392
+ elTableWrapper.querySelector('.dt-paging').classList.add('mx-0');
393
+ elTableWrapper.querySelector('.dt-paging').classList.add('px-0');
394
+ // Add spacing for the footer
395
+ elTableWrapper.querySelector('.row:last-child').classList.add('mb-1');
396
+ }
391
397
  },
392
398
  language: {
393
399
  lengthMenu: "_MENU_",
@@ -112,34 +112,21 @@ var DataTable = /** @class */ (function () {
112
112
  var elTableWrapper = settings.api.context[0].tableWrapper;
113
113
  if (elTableWrapper) {
114
114
  // Align the text to be centered
115
- elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('col-md d-md-flex justify-content-between align-items-center');
115
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('col-md');
116
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('d-md-flex');
117
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('justify-content-between');
118
+ elTableWrapper.querySelector('.dt-info').parentElement.classList.remove('align-items-center');
116
119
  elTableWrapper.querySelector('.dt-info').classList.add('text-center');
117
120
  // Remove the label spacing to align with paging
118
121
  elTableWrapper.querySelector('.dt-length label').classList.add('d-none');
119
122
  // Push paging to the end
120
- elTableWrapper.querySelector('.dt-paging').classList.add('d-flex justify-content-end mx-0 px-0');
123
+ elTableWrapper.querySelector('.dt-paging').classList.add('d-flex');
124
+ elTableWrapper.querySelector('.dt-paging').classList.add('justify-content-end');
125
+ elTableWrapper.querySelector('.dt-paging').classList.add('mx-0');
126
+ elTableWrapper.querySelector('.dt-paging').classList.add('px-0');
121
127
  // Add spacing for the footer
122
128
  elTableWrapper.querySelector('.row:last-child').classList.add('mb-1');
123
129
  }
124
- /*
125
- let api = new $.fn.dataTable.Api(settings) as any;
126
-
127
- // Styling option for striped rows
128
- $(api.context[0].nTable).addClass('table-striped');
129
-
130
- // Align the text to be centered
131
- $(api.context[0].nTableWrapper).find('.dt-info').parent().removeClass('col-md d-md-flex justify-content-between align-items-center');
132
- $(api.context[0].nTableWrapper).find('.dt-info').addClass('text-center');
133
-
134
- // Remove the label spacing to align with paging
135
- $(api.context[0].nTableWrapper).find('.dt-length label').addClass('d-none');
136
-
137
- // Push paging to the end
138
- $(api.context[0].nTableWrapper).find('.dt-paging').addClass('d-flex justify-content-end mx-0 px-0');
139
-
140
- // Add spacing for the footer
141
- $(api.context[0].nTableWrapper).find('.row:last-child').addClass('mb-1');
142
- */
143
130
  },
144
131
  language: {
145
132
  lengthMenu: "_MENU_",