dattatable 2.11.40 → 2.11.42

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 (70) hide show
  1. package/build/dashboard/index.d.ts +4 -0
  2. package/build/dashboard/tiles.d.ts +4 -0
  3. package/build/dashboard/tiles.js +10 -0
  4. package/dist/dattatable.js +1291 -1842
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/Accordion.html +2 -2
  8. package/docs/classes/AuditLog.html +2 -2
  9. package/docs/classes/CanvasForm.html +2 -2
  10. package/docs/classes/Comments.html +2 -2
  11. package/docs/classes/Dashboard.html +4 -4
  12. package/docs/classes/DataTable.html +3 -3
  13. package/docs/classes/Documents.html +6 -6
  14. package/docs/classes/FilterSlideout.html +2 -2
  15. package/docs/classes/Footer.html +2 -2
  16. package/docs/classes/Header.html +2 -2
  17. package/docs/classes/InstallationRequired.html +2 -2
  18. package/docs/classes/ItemForm.html +4 -4
  19. package/docs/classes/List.html +4 -4
  20. package/docs/classes/ListConfig.html +2 -2
  21. package/docs/classes/ListSecurity.html +2 -2
  22. package/docs/classes/LoadingDialog.html +2 -2
  23. package/docs/classes/Modal.html +2 -2
  24. package/docs/classes/Navigation.html +3 -3
  25. package/docs/classes/Tiles.html +2 -2
  26. package/docs/classes/Timeout.html +2 -2
  27. package/docs/enums/ActionButtonTypes.html +2 -2
  28. package/docs/functions/formatBytes.html +1 -1
  29. package/docs/functions/formatDateValue.html +1 -1
  30. package/docs/functions/formatTimeValue.html +1 -1
  31. package/docs/functions/getContextInfo.html +1 -1
  32. package/docs/functions/getFileExt.html +1 -1
  33. package/docs/functions/waitForTheme.html +1 -1
  34. package/docs/interfaces/IAccordion.html +2 -2
  35. package/docs/interfaces/IAccordionProps.html +2 -2
  36. package/docs/interfaces/IAuditLogItem.html +2 -2
  37. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  38. package/docs/interfaces/IAuditLogProps.html +2 -2
  39. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  40. package/docs/interfaces/ICommentsItem.html +2 -2
  41. package/docs/interfaces/ICreateLookupData.html +2 -2
  42. package/docs/interfaces/IDashboardProps.html +2 -2
  43. package/docs/interfaces/IDataTable.html +2 -2
  44. package/docs/interfaces/IDataTableProps.html +2 -2
  45. package/docs/interfaces/IDocumentsProps.html +2 -2
  46. package/docs/interfaces/IFilterItem.html +2 -2
  47. package/docs/interfaces/IFilterProps.html +2 -2
  48. package/docs/interfaces/IFooterProps.html +2 -2
  49. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  50. package/docs/interfaces/IHeaderProps.html +2 -2
  51. package/docs/interfaces/IInstallProps.html +2 -2
  52. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  53. package/docs/interfaces/IItemFormEditProps.html +2 -2
  54. package/docs/interfaces/IItemFormSaveProps.html +2 -2
  55. package/docs/interfaces/IItemFormTab.html +2 -2
  56. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  57. package/docs/interfaces/IItemFormViewProps.html +2 -2
  58. package/docs/interfaces/IListConfig.html +2 -2
  59. package/docs/interfaces/IListConfigProps.html +2 -2
  60. package/docs/interfaces/IListProps.html +2 -2
  61. package/docs/interfaces/IListSecurity.html +2 -2
  62. package/docs/interfaces/IListSecurityItem.html +2 -2
  63. package/docs/interfaces/ILookupData.html +2 -2
  64. package/docs/interfaces/IShowDialogProps.html +2 -2
  65. package/docs/interfaces/ITiles.html +2 -2
  66. package/docs/interfaces/ITilesProps.html +6 -2
  67. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  68. package/docs/variables/DattaTable.html +1 -1
  69. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  70. package/package.json +2 -2
@@ -92,6 +92,10 @@ export interface IDashboardProps {
92
92
  bodyFields?: string[];
93
93
  bodyTemplate?: string;
94
94
  className?: string;
95
+ classNameBody?: string;
96
+ classNameCard?: string;
97
+ classNameFooter?: string;
98
+ classNameHeader?: string;
95
99
  colSize?: number | string;
96
100
  filterFields?: string[];
97
101
  items: any[];
@@ -8,6 +8,10 @@ export interface ITilesProps {
8
8
  bodyFields?: string[];
9
9
  bodyTemplate?: string;
10
10
  className?: string;
11
+ classNameBody?: string;
12
+ classNameCard?: string;
13
+ classNameFooter?: string;
14
+ classNameHeader?: string;
11
15
  colSize?: number | string;
12
16
  el: HTMLElement;
13
17
  filterFields?: string[];
@@ -113,6 +113,13 @@ var Tiles = /** @class */ (function () {
113
113
  // Set the card props
114
114
  var cardProps = {
115
115
  onRender: function (el, card) {
116
+ // Set the class name
117
+ if (_this._props.classNameCard) {
118
+ _this._props.classNameCard.trim().split(' ').forEach(function (className) {
119
+ // Add the class name
120
+ el.classList.add(className);
121
+ });
122
+ }
116
123
  // See if filters exist
117
124
  if (filterValues && filterValues.length > 0) {
118
125
  // Set the data filter value
@@ -122,6 +129,7 @@ var Tiles = /** @class */ (function () {
122
129
  _this._props.onCardRendered ? _this._props.onCardRendered(el, card) : null;
123
130
  },
124
131
  body: [{
132
+ className: this._props.classNameBody,
125
133
  content: bodyContent,
126
134
  data: item,
127
135
  subTitle: subTitleContent,
@@ -143,6 +151,7 @@ var Tiles = /** @class */ (function () {
143
151
  var showHeader = typeof (this._props.showHeader) === "boolean" ? this._props.showHeader : true;
144
152
  if (showHeader) {
145
153
  cardProps.header = {
154
+ className: this._props.classNameHeader,
146
155
  onRender: function (el) {
147
156
  _this._props.onHeaderRendered ? _this._props.onHeaderRendered(el, item) : null;
148
157
  }
@@ -152,6 +161,7 @@ var Tiles = /** @class */ (function () {
152
161
  var showFooter = typeof (this._props.showFooter) === "boolean" ? this._props.showFooter : true;
153
162
  if (showFooter) {
154
163
  cardProps.footer = {
164
+ className: this._props.classNameFooter,
155
165
  onRender: function (el) {
156
166
  _this._props.onFooterRendered ? _this._props.onFooterRendered(el, item) : null;
157
167
  }