dattatable 2.10.90 → 2.10.92
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.d.ts +1 -0
- package/build/dashboard/accordion.js +1 -0
- package/build/dashboard/filter.d.ts +2 -0
- package/build/dashboard/filter.js +3 -0
- package/build/dashboard/header.d.ts +1 -0
- package/build/dashboard/header.js +1 -1
- package/build/dashboard/index.d.ts +7 -0
- package/build/dashboard/index.js +7 -2
- package/build/dashboard/table.d.ts +1 -0
- package/build/dashboard/table.js +1 -0
- package/build/dashboard/tiles.d.ts +1 -0
- package/build/dashboard/tiles.js +1 -0
- package/dist/dattatable.js +569 -569
- 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 +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +3 -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 +3 -2
- package/docs/interfaces/IAuditLogItem.html +2 -2
- 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 +2 -2
- package/docs/interfaces/IDataTableProps.html +3 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +3 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +3 -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/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 +3 -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
|
@@ -138,6 +138,7 @@ var Accordion = /** @class */ (function () {
|
|
|
138
138
|
// Render the accordion
|
|
139
139
|
this._accordion = gd_sprest_bs_1.Components.Accordion({
|
|
140
140
|
el: this._props.el,
|
|
141
|
+
className: this._props.className,
|
|
141
142
|
id: "accordion-list",
|
|
142
143
|
items: accordionItems
|
|
143
144
|
});
|
|
@@ -13,6 +13,7 @@ export interface IFilterItem {
|
|
|
13
13
|
* Properties
|
|
14
14
|
*/
|
|
15
15
|
export interface IFilterProps {
|
|
16
|
+
className?: string;
|
|
16
17
|
filters: IFilterItem[];
|
|
17
18
|
onClear?: () => void;
|
|
18
19
|
onFilter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
|
|
@@ -24,6 +25,7 @@ export interface IFilterProps {
|
|
|
24
25
|
*/
|
|
25
26
|
export declare class FilterSlideout {
|
|
26
27
|
private _cbs;
|
|
28
|
+
private _className;
|
|
27
29
|
private _el;
|
|
28
30
|
private _filters;
|
|
29
31
|
private _items;
|
|
@@ -10,10 +10,12 @@ var canvas_1 = require("../common/canvas");
|
|
|
10
10
|
var FilterSlideout = /** @class */ (function () {
|
|
11
11
|
function FilterSlideout(props) {
|
|
12
12
|
this._cbs = null;
|
|
13
|
+
this._className = null;
|
|
13
14
|
this._el = null;
|
|
14
15
|
this._filters = null;
|
|
15
16
|
this._items = null;
|
|
16
17
|
// Save the properties
|
|
18
|
+
this._className = props.className;
|
|
17
19
|
this._filters = props.filters || [];
|
|
18
20
|
this._onClear = props.onClear;
|
|
19
21
|
this._onFilter = props.onFilter;
|
|
@@ -47,6 +49,7 @@ var FilterSlideout = /** @class */ (function () {
|
|
|
47
49
|
// Render a clear button
|
|
48
50
|
gd_sprest_bs_1.Components.Tooltip({
|
|
49
51
|
el: this._el,
|
|
52
|
+
className: this._className,
|
|
50
53
|
content: "Reset Filters",
|
|
51
54
|
placement: gd_sprest_bs_1.Components.TooltipPlacements.Left,
|
|
52
55
|
btnProps: {
|
|
@@ -21,7 +21,7 @@ var Header = /** @class */ (function () {
|
|
|
21
21
|
// Define the default props
|
|
22
22
|
var props = {
|
|
23
23
|
el: this._props.el,
|
|
24
|
-
className: "header",
|
|
24
|
+
className: "header" + (this._props.className ? " " : "") + this._props.className,
|
|
25
25
|
lead: this._props.title
|
|
26
26
|
};
|
|
27
27
|
// Call the rendering event
|
|
@@ -28,18 +28,21 @@ export interface IDashboardProps {
|
|
|
28
28
|
};
|
|
29
29
|
el: HTMLElement;
|
|
30
30
|
footer?: {
|
|
31
|
+
className?: string;
|
|
31
32
|
items?: Components.INavbarItem[];
|
|
32
33
|
itemsEnd?: Components.INavbarItem[];
|
|
33
34
|
onRendering?: (props: Components.INavbarProps) => void;
|
|
34
35
|
onRendered?: (el?: HTMLElement) => void;
|
|
35
36
|
};
|
|
36
37
|
filters?: {
|
|
38
|
+
className?: string;
|
|
37
39
|
items: IFilterItem[];
|
|
38
40
|
onClear?: () => void;
|
|
39
41
|
onRendered?: (el?: HTMLElement) => void;
|
|
40
42
|
onShowFilter?: () => void;
|
|
41
43
|
};
|
|
42
44
|
header?: {
|
|
45
|
+
className?: string;
|
|
43
46
|
onRendering?: (props: Components.IJumbotronProps) => void;
|
|
44
47
|
onRendered?: (el?: HTMLElement) => void;
|
|
45
48
|
title?: string;
|
|
@@ -49,6 +52,7 @@ export interface IDashboardProps {
|
|
|
49
52
|
hideNavigation?: boolean;
|
|
50
53
|
hideSubNavigation?: boolean;
|
|
51
54
|
navigation?: {
|
|
55
|
+
className?: string;
|
|
52
56
|
searchPlaceholder?: string;
|
|
53
57
|
showFilter?: boolean;
|
|
54
58
|
showSearch?: boolean;
|
|
@@ -62,6 +66,7 @@ export interface IDashboardProps {
|
|
|
62
66
|
onShowFilter?: () => void;
|
|
63
67
|
};
|
|
64
68
|
subNavigation?: {
|
|
69
|
+
className?: string;
|
|
65
70
|
showFilter?: boolean;
|
|
66
71
|
showSearch?: boolean;
|
|
67
72
|
title?: string | HTMLElement;
|
|
@@ -74,6 +79,7 @@ export interface IDashboardProps {
|
|
|
74
79
|
onShowFilter?: () => void;
|
|
75
80
|
};
|
|
76
81
|
table?: {
|
|
82
|
+
className?: string;
|
|
77
83
|
columns: Components.ITableColumn[];
|
|
78
84
|
dtProps?: any;
|
|
79
85
|
onRendering?: (dtProps: any) => any;
|
|
@@ -83,6 +89,7 @@ export interface IDashboardProps {
|
|
|
83
89
|
tiles?: {
|
|
84
90
|
bodyFields?: string[];
|
|
85
91
|
bodyTemplate?: string;
|
|
92
|
+
className?: string;
|
|
86
93
|
colSize?: number;
|
|
87
94
|
filterFields?: string[];
|
|
88
95
|
items: any[];
|
package/build/dashboard/index.js
CHANGED
|
@@ -116,6 +116,7 @@ var Dashboard = /** @class */ (function () {
|
|
|
116
116
|
var _this = this;
|
|
117
117
|
// Create the filters
|
|
118
118
|
this._filters = new filter_1.FilterSlideout({
|
|
119
|
+
className: this._props.filters ? this._props.filters.className : null,
|
|
119
120
|
filters: this._props.filters ? this._props.filters.items : [],
|
|
120
121
|
onClear: this._props.filters ? this._props.filters.onClear : null,
|
|
121
122
|
onRendered: this._props.filters ? this._props.filters.onRendered : null,
|
|
@@ -151,6 +152,7 @@ var Dashboard = /** @class */ (function () {
|
|
|
151
152
|
// Render the navigation
|
|
152
153
|
var navProps_1 = this._props.navigation || {};
|
|
153
154
|
this._navigation = new navigation_1.Navigation({
|
|
155
|
+
className: navProps_1.className,
|
|
154
156
|
el: this._props.el.querySelector("#navigation"),
|
|
155
157
|
hideFilter: navProps_1.showFilter != null ? !navProps_1.showFilter : false,
|
|
156
158
|
hideSearch: navProps_1.showSearch != null ? !navProps_1.showSearch : false,
|
|
@@ -203,6 +205,7 @@ var Dashboard = /** @class */ (function () {
|
|
|
203
205
|
// Render the header
|
|
204
206
|
var header = this._props.header || {};
|
|
205
207
|
new header_1.Header({
|
|
208
|
+
className: header.className,
|
|
206
209
|
el: elHeader,
|
|
207
210
|
onRendering: this._props.header ? this._props.header.onRendering : null,
|
|
208
211
|
onRendered: this._props.header ? this._props.header.onRendered : null,
|
|
@@ -230,9 +233,11 @@ var Dashboard = /** @class */ (function () {
|
|
|
230
233
|
else {
|
|
231
234
|
// Render the navigation
|
|
232
235
|
var navProps_2 = this._props.subNavigation || {};
|
|
236
|
+
var className = (headerIsVisible || navIsVisible ? null : "sub-nav-border") +
|
|
237
|
+
(navProps_2.className ? " " + navProps_2.className : "");
|
|
233
238
|
new navigation_1.Navigation({
|
|
234
239
|
el: this._props.el.querySelector("#sub-navigation"),
|
|
235
|
-
className:
|
|
240
|
+
className: className,
|
|
236
241
|
hideFilter: navProps_2.showFilter != null ? !navProps_2.showFilter : true,
|
|
237
242
|
hideSearch: navProps_2.showSearch != null ? !navProps_2.showSearch : true,
|
|
238
243
|
items: navProps_2.items,
|
|
@@ -294,7 +299,7 @@ var Dashboard = /** @class */ (function () {
|
|
|
294
299
|
// Render the footer
|
|
295
300
|
var footer = this._props.footer || {};
|
|
296
301
|
new footer_1.Footer({
|
|
297
|
-
className: "bg-sharepoint rounded-bottom",
|
|
302
|
+
className: "bg-sharepoint rounded-bottom" + (footer.className ? " " + footer.className : ""),
|
|
298
303
|
el: this._props.el.querySelector("#footer"),
|
|
299
304
|
items: footer.items,
|
|
300
305
|
itemsEnd: footer.itemsEnd,
|
package/build/dashboard/table.js
CHANGED
package/build/dashboard/tiles.js
CHANGED
|
@@ -184,6 +184,7 @@ var Tiles = /** @class */ (function () {
|
|
|
184
184
|
this._tiles = gd_sprest_bs_1.Components.CardGroup({
|
|
185
185
|
el: this._props.el,
|
|
186
186
|
cards: cards,
|
|
187
|
+
className: this._props.className,
|
|
187
188
|
colSize: this._props.colSize || 4,
|
|
188
189
|
onColRender: this._props.onColumnRendered
|
|
189
190
|
});
|