@zeedhi/common 1.39.1 → 1.43.0

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 (67) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/zd-common.esm.js +868 -251
  3. package/dist/zd-common.umd.js +873 -253
  4. package/package.json +2 -2
  5. package/types/components/index.d.ts +2 -0
  6. package/types/components/zd-alert/alert.d.ts +2 -0
  7. package/types/components/zd-apex-chart/apex-chart.d.ts +163 -1
  8. package/types/components/zd-apex-chart/interfaces.d.ts +35 -3
  9. package/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -8
  10. package/types/components/zd-button/button.d.ts +0 -8
  11. package/types/components/zd-button/interfaces.d.ts +0 -2
  12. package/types/components/zd-button-group/button-group.d.ts +0 -8
  13. package/types/components/zd-button-group/interfaces.d.ts +0 -2
  14. package/types/components/zd-card/card.d.ts +0 -8
  15. package/types/components/zd-card/interfaces.d.ts +0 -2
  16. package/types/components/zd-carousel/carousel.d.ts +10 -8
  17. package/types/components/zd-carousel/interfaces.d.ts +2 -2
  18. package/types/components/zd-code-editor/code-editor.d.ts +5 -1
  19. package/types/components/zd-code-editor/interfaces.d.ts +2 -1
  20. package/types/components/zd-component/component.d.ts +8 -0
  21. package/types/components/zd-component/interfaces.d.ts +2 -0
  22. package/types/components/zd-container/container.d.ts +12 -0
  23. package/types/components/zd-container/interfaces.d.ts +3 -0
  24. package/types/components/zd-date/date-range.d.ts +1 -5
  25. package/types/components/zd-dialog/dialog.d.ts +11 -0
  26. package/types/components/zd-dialog/interfaces.d.ts +2 -0
  27. package/types/components/zd-divider/divider.d.ts +0 -8
  28. package/types/components/zd-divider/interfaces.d.ts +0 -2
  29. package/types/components/zd-dropdown/dropdown.d.ts +4 -0
  30. package/types/components/zd-dropdown/interfaces.d.ts +1 -0
  31. package/types/components/zd-footer/footer.d.ts +0 -8
  32. package/types/components/zd-footer/interfaces.d.ts +0 -2
  33. package/types/components/zd-form/form.d.ts +14 -1
  34. package/types/components/zd-form/interfaces.d.ts +1 -0
  35. package/types/components/zd-frame/frame.d.ts +4 -0
  36. package/types/components/zd-frame/interfaces.d.ts +3 -0
  37. package/types/components/zd-grid/grid-column.d.ts +2 -0
  38. package/types/components/zd-grid/grid-editable.d.ts +11 -1
  39. package/types/components/zd-grid/grid.d.ts +4 -0
  40. package/types/components/zd-grid/interfaces.d.ts +1 -0
  41. package/types/components/zd-header/header.d.ts +0 -8
  42. package/types/components/zd-icon/icon.d.ts +0 -8
  43. package/types/components/zd-icon/interfaces.d.ts +0 -2
  44. package/types/components/zd-input/input.d.ts +0 -8
  45. package/types/components/zd-list/interfaces.d.ts +3 -2
  46. package/types/components/zd-list/list.d.ts +12 -8
  47. package/types/components/zd-login/interfaces.d.ts +0 -1
  48. package/types/components/zd-login/login.d.ts +0 -4
  49. package/types/components/zd-menu/interfaces.d.ts +0 -1
  50. package/types/components/zd-menu/menu.d.ts +0 -4
  51. package/types/components/zd-progress/progress.d.ts +0 -8
  52. package/types/components/zd-select-tree/interfaces.d.ts +1 -0
  53. package/types/components/zd-select-tree/select-tree.d.ts +6 -0
  54. package/types/components/zd-selectable-list/interfaces.d.ts +8 -0
  55. package/types/components/zd-selectable-list/selectable-list.d.ts +29 -0
  56. package/types/components/zd-steppers/interfaces.d.ts +0 -2
  57. package/types/components/zd-steppers/steppers.d.ts +0 -8
  58. package/types/components/zd-tabs/interfaces.d.ts +1 -0
  59. package/types/components/zd-tabs/tabs.d.ts +14 -0
  60. package/types/components/zd-tree-grid/tree-grid-editable.d.ts +3 -0
  61. package/types/utils/report/index.d.ts +2 -0
  62. package/types/utils/report/report-type/base-report.d.ts +3 -1
  63. package/types/utils/report/report-type/interfaces.d.ts +2 -1
  64. package/types/utils/report/report-type/xls-report.d.ts +1 -16
  65. package/types/utils/report/report-type/xls2-report.d.ts +16 -0
  66. package/types/utils/report/report-type/xls3-report.d.ts +16 -0
  67. package/types/utils/themes/themes.d.ts +4 -0
@@ -21,10 +21,6 @@ export declare class Footer extends ComponentRender implements IFooter {
21
21
  * Applies specified color to the control. It can be the name of material or css color in hexa.
22
22
  */
23
23
  color: string;
24
- /**
25
- * Applies the dark theme variant to footer.
26
- */
27
- dark: boolean;
28
24
  /**
29
25
  * Events registered to the footer.
30
26
  */
@@ -45,10 +41,6 @@ export declare class Footer extends ComponentRender implements IFooter {
45
41
  * Render components on the left of footer.
46
42
  */
47
43
  leftSlot: IComponentRender[];
48
- /**
49
- * Applies the light theme variant to the footer.
50
- */
51
- light: boolean;
52
44
  /**
53
45
  * Sets the maximum height for the footer.
54
46
  */
@@ -12,12 +12,10 @@ export interface IFooter extends IComponentRender {
12
12
  app?: boolean;
13
13
  centerSlot?: IComponentRender[];
14
14
  color?: string;
15
- dark?: boolean;
16
15
  fixed?: boolean;
17
16
  height?: number | string;
18
17
  inset?: boolean;
19
18
  leftSlot?: IComponentRender[];
20
- light?: boolean;
21
19
  maxHeight?: number | string;
22
20
  maxWidth?: number | string;
23
21
  minHeight?: number | string;
@@ -20,6 +20,10 @@ export declare class Form extends ComponentRender implements IForm {
20
20
  * Available options are start, center, end, space-between and space-around.
21
21
  */
22
22
  justify?: string;
23
+ /**
24
+ * Sets the height for the form.
25
+ */
26
+ height?: number | string;
23
27
  /**
24
28
  * Defines form events.
25
29
  */
@@ -62,13 +66,22 @@ export declare class Form extends ComponentRender implements IForm {
62
66
  get childrenProps(): {
63
67
  [key: string]: any;
64
68
  children?: import("..").IComponentRender[] | undefined;
65
- component: string;
69
+ component: string; /**
70
+ * Applies the justify-content css property.
71
+ * Available options are start, center, end, space-between and space-around.
72
+ */
66
73
  componentId?: number | undefined;
67
74
  cssClass?: string | undefined;
68
75
  cssStyle?: string | object | undefined;
69
76
  events?: import("..").IComponentEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
70
77
  isVisible?: string | boolean | undefined;
78
+ dark?: boolean | undefined;
79
+ light?: boolean | undefined;
71
80
  keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
81
+ /**
82
+ * Applies the align-items css property.
83
+ * Available options are start, center, end, space-between, space-around and stretch.
84
+ */
72
85
  name: string;
73
86
  parent?: import("..").Component | undefined;
74
87
  }[];
@@ -22,6 +22,7 @@ export interface IFormComponent extends IComponentRender {
22
22
  export interface IForm extends IComponentRender {
23
23
  align?: string;
24
24
  justify?: string;
25
+ height?: number | string;
25
26
  children?: IFormComponent[];
26
27
  events?: IFormEvents;
27
28
  }
@@ -12,6 +12,9 @@ export declare class Frame extends ComponentRender implements IFrame {
12
12
  cache: boolean;
13
13
  events: IFrameEvents;
14
14
  cacheDuration: number;
15
+ height: number | string;
16
+ maxHeight: number | string;
17
+ minHeight: number | string;
15
18
  private readonly headerName;
16
19
  private static readonly cacheName;
17
20
  /**
@@ -20,6 +23,7 @@ export declare class Frame extends ComponentRender implements IFrame {
20
23
  */
21
24
  constructor(props: IFrame);
22
25
  private getMetadata;
26
+ reload(): Promise<void>;
23
27
  protected notFoundError(): void;
24
28
  private requestPage;
25
29
  /**
@@ -11,4 +11,7 @@ export interface IFrame extends IComponentRender {
11
11
  override?: Object;
12
12
  cache?: boolean;
13
13
  cacheDuration?: number;
14
+ height?: number | string;
15
+ maxHeight?: number | string;
16
+ minHeight?: number | string;
14
17
  }
@@ -23,6 +23,8 @@ export declare class GridColumn extends Column implements IGridColumn {
23
23
  cssStyle?: string | object | undefined;
24
24
  events?: import("..").IComponentEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
25
25
  isVisible?: string | boolean | undefined;
26
+ dark?: boolean | undefined;
27
+ light?: boolean | undefined;
26
28
  keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
27
29
  name: string;
28
30
  parent?: import("..").Component | undefined;
@@ -23,12 +23,20 @@ export declare class GridEditable extends Grid implements IGridEditable {
23
23
  * @private
24
24
  */
25
25
  private editedRows;
26
+ /**
27
+ * Rows with newRowIdentifier
28
+ * @private
29
+ */
30
+ private addedRows;
26
31
  /**
27
32
  * Invalid inline components
28
33
  * @private
29
34
  */
30
35
  private invalidComponents;
36
+ protected cancelEditedRowsKeyMapping: any;
31
37
  constructor(props: IGridEditable);
38
+ onMounted(element: HTMLElement): void;
39
+ onBeforeDestroy(): void;
32
40
  /**
33
41
  * Get Grid columns objects
34
42
  * @param columns Grid columns parameter
@@ -112,11 +120,13 @@ export declare class GridEditable extends Grid implements IGridEditable {
112
120
  * Cancels all edited rows and enable grid components
113
121
  */
114
122
  cancelEditedRows(): Promise<void>;
123
+ private removeAddedRows;
124
+ private addDataRow;
115
125
  /**
116
126
  * Saves all edited rows if they are valid
117
127
  * @throws Will throw when it finds an invalid row
118
128
  */
119
- saveEditedRows(): Promise<any[]>;
129
+ saveEditedRows(): Promise<void[]>;
120
130
  /**
121
131
  * Retrieves all edited rows if they are valid
122
132
  * @throws Will throw when it finds an invalid row
@@ -75,6 +75,10 @@ export declare class Grid extends Iterable implements IGrid {
75
75
  * Color of the header background
76
76
  */
77
77
  headerBackground: string;
78
+ /**
79
+ * Color of the header cell text color
80
+ */
81
+ headerCellTextColor: string;
78
82
  /**
79
83
  * Available order types
80
84
  * @public
@@ -24,6 +24,7 @@ export interface IGrid extends IIterable {
24
24
  fillHeight?: boolean;
25
25
  footerSlot?: IComponentRender[];
26
26
  headerBackground?: string;
27
+ headerCellTextColor?: string;
27
28
  height?: string | number;
28
29
  maxHeight?: string | number;
29
30
  gridHeight?: string | number;
@@ -21,10 +21,6 @@ export declare class Header extends ComponentRender implements IHeader {
21
21
  * Applies specified color to the control. It can be the name of material or css color in hexa.
22
22
  */
23
23
  color: string;
24
- /**
25
- * Applies the dark theme variant to header.
26
- */
27
- dark: boolean;
28
24
  /**
29
25
  * Designates that the application menu positioned on the left is below the header.
30
26
  */
@@ -57,10 +53,6 @@ export declare class Header extends ComponentRender implements IHeader {
57
53
  * Render components on the left of header.
58
54
  */
59
55
  leftSlot: IComponentRender[];
60
- /**
61
- * Applies the light theme variant to the header.
62
- */
63
- light: boolean;
64
56
  /**
65
57
  * Sets the maximum height for the header.
66
58
  */
@@ -9,10 +9,6 @@ export declare class Icon extends ComponentRender implements IIcon {
9
9
  * (for example success or purple) or css color (#033 or rgba(255, 0, 0, 0.5)).
10
10
  */
11
11
  color: string;
12
- /**
13
- * Applies the dark theme variant to the component.
14
- */
15
- dark: boolean;
16
12
  /**
17
13
  * Makes icon smaller (20px)
18
14
  */
@@ -34,10 +30,6 @@ export declare class Icon extends ComponentRender implements IIcon {
34
30
  * of a button when placed to the left of another element or text
35
31
  */
36
32
  left: boolean;
37
- /**
38
- * Applies the light theme variant to the component.
39
- */
40
- light: boolean;
41
33
  /**
42
34
  * Applies appropriate margins to the icon inside of
43
35
  * a button when placed to the right of another element or text
@@ -1,12 +1,10 @@
1
1
  import { IComponentRender } from '../zd-component/interfaces';
2
2
  export interface IIcon extends IComponentRender {
3
3
  color?: string;
4
- dark?: boolean;
5
4
  dense?: boolean;
6
5
  disabled?: boolean;
7
6
  large?: boolean;
8
7
  left?: boolean;
9
- light?: boolean;
10
8
  right?: boolean;
11
9
  size?: number | string;
12
10
  small?: boolean;
@@ -30,10 +30,6 @@ export declare class Input extends ComponentRender implements IInput {
30
30
  * It can be the name of material or css color in hexa.
31
31
  */
32
32
  color: string;
33
- /**
34
- * Applies the dark theme variant to the input.
35
- */
36
- dark: boolean;
37
33
  /**
38
34
  * Defines smaller input.
39
35
  */
@@ -54,10 +50,6 @@ export declare class Input extends ComponentRender implements IInput {
54
50
  * Defines the input label.
55
51
  */
56
52
  label: string;
57
- /**
58
- * Applies the light theme variant to the input.
59
- */
60
- light: boolean;
61
53
  /**
62
54
  * Applies a custom character mask to the input.
63
55
  */
@@ -3,17 +3,18 @@ import { IComponentRender, IComponent } from '../zd-component/interfaces';
3
3
  * Interface for list component
4
4
  */
5
5
  export interface IList extends IComponentRender {
6
- dark?: boolean;
7
6
  dense?: boolean;
8
7
  disabled?: boolean;
9
8
  divided?: boolean;
10
9
  items?: IListItem[];
11
- light?: boolean;
12
10
  threeLine?: boolean;
13
11
  twoLine?: boolean;
14
12
  color?: string;
15
13
  elevation?: number | string;
16
14
  expand?: boolean;
15
+ height?: number | string;
16
+ maxHeight?: number | string;
17
+ minHeight?: number | string;
17
18
  }
18
19
  /**
19
20
  * Interface for list itens
@@ -9,10 +9,6 @@ export declare class List extends ComponentRender implements IList {
9
9
  * It can be the name of material or css color in hexa or rgba.
10
10
  */
11
11
  color?: string;
12
- /**
13
- * Applies the dark theme variant to the List.
14
- */
15
- dark: boolean;
16
12
  /**
17
13
  * Create the list with smaller items.
18
14
  */
@@ -29,10 +25,6 @@ export declare class List extends ComponentRender implements IList {
29
25
  * List items structure.
30
26
  */
31
27
  items: IListItem[];
32
- /**
33
- * Applies the light theme variant to the List.
34
- */
35
- light: boolean;
36
28
  /**
37
29
  * Increases the height of all the list items to better support three lines of text.
38
30
  */
@@ -49,6 +41,18 @@ export declare class List extends ComponentRender implements IList {
49
41
  * Will only collapse when explicitly closed.
50
42
  */
51
43
  expand: boolean;
44
+ /**
45
+ * Sets the height for the component.
46
+ */
47
+ height: number | string;
48
+ /**
49
+ * Sets the maxHeight for the component.
50
+ */
51
+ maxHeight: number | string;
52
+ /**
53
+ * Sets the minHeight for the component.
54
+ */
55
+ minHeight: number | string;
52
56
  constructor(props: IList);
53
57
  /**
54
58
  * Get item by name
@@ -10,7 +10,6 @@ export interface ILogin extends IComponentRender {
10
10
  bottomLink?: IComponentRender[];
11
11
  color?: string;
12
12
  cardWidth?: string | number;
13
- dark?: boolean;
14
13
  layout?: string;
15
14
  logo?: string;
16
15
  logoMessage?: string;
@@ -22,10 +22,6 @@ export declare class Login extends ComponentRender implements ILogin {
22
22
  * It can be the name of material or css color in hexa.
23
23
  */
24
24
  color: string;
25
- /**
26
- * Applies the dark theme.
27
- */
28
- dark: boolean;
29
25
  /**
30
26
  * Card position orientation.
31
27
  */
@@ -10,7 +10,6 @@ export declare type IMenuLinkEvents = IComponentEvents<IMenuLinkEvent>;
10
10
  export interface IMenu extends IComponentRender {
11
11
  app?: boolean | string;
12
12
  clipped?: boolean | string;
13
- dark?: boolean | string;
14
13
  dense?: boolean | string;
15
14
  fixed?: boolean | string;
16
15
  floating?: boolean | string;
@@ -21,10 +21,6 @@ export declare class Menu extends ComponentRender implements IMenu {
21
21
  * Defines if the menu should have a visible container
22
22
  */
23
23
  floating: boolean | string;
24
- /**
25
- * Applies the dark theme variant to the menu.
26
- */
27
- dark: boolean | string;
28
24
  /**
29
25
  * Create the menu with smaller items.
30
26
  */
@@ -17,10 +17,6 @@ export declare class Progress extends ComponentRender implements IProgress {
17
17
  * Defines the value color
18
18
  */
19
19
  color: string;
20
- /**
21
- * Applies the dark theme variant to the component
22
- */
23
- dark: boolean;
24
20
  /**
25
21
  * Sets the height for the component
26
22
  */
@@ -29,10 +25,6 @@ export declare class Progress extends ComponentRender implements IProgress {
29
25
  * Animates the component constantly
30
26
  */
31
27
  indeterminate: boolean;
32
- /**
33
- * Applies the light theme variant to the component
34
- */
35
- light: boolean;
36
28
  /**
37
29
  * Render components on the progress component
38
30
  */
@@ -19,6 +19,7 @@ export interface ISelectTree extends IComponentRender {
19
19
  searchNested?: boolean;
20
20
  showCount?: boolean;
21
21
  showCountOf?: string;
22
+ preventLoadOnFocus?: boolean;
22
23
  disableParentNode?: boolean;
23
24
  events?: ISelectTreeEvents;
24
25
  datasource?: IDatasource;
@@ -68,6 +68,10 @@ export declare class SelectTree extends TextInput implements ISelectTree {
68
68
  * Defines if field value should be an object
69
69
  */
70
70
  returnObject: boolean;
71
+ /**
72
+ * Prevents load select data when the input is focused
73
+ */
74
+ preventLoadOnFocus: boolean;
71
75
  /**
72
76
  * Field used to make the item disabled
73
77
  */
@@ -90,6 +94,8 @@ export declare class SelectTree extends TextInput implements ISelectTree {
90
94
  * @param props
91
95
  */
92
96
  constructor(props: ISelectTree);
97
+ focus(event: Event, element: HTMLElement): Promise<void>;
98
+ protected afterFocus(): Promise<void>;
93
99
  private createDataStructure;
94
100
  /** create nodes from datasource object */
95
101
  createNodesFromDatasource(buildTree?: boolean): void;
@@ -0,0 +1,8 @@
1
+ import { IList } from '../zd-list/interfaces';
2
+ export interface ISelectableList extends IList {
3
+ activeClass?: string;
4
+ mandatory?: boolean;
5
+ max?: number;
6
+ multiple?: boolean;
7
+ value?: any;
8
+ }
@@ -0,0 +1,29 @@
1
+ import { ISelectableList } from './interfaces';
2
+ import { List } from '../zd-list/list';
3
+ /**
4
+ * Base class for SelectableList component.
5
+ */
6
+ export declare class SelectableList extends List implements ISelectableList {
7
+ /**
8
+ * Applies specified css class to the selected item
9
+ */
10
+ activeClass?: string;
11
+ /**
12
+ * Specifies whether at least one element must be selected
13
+ */
14
+ mandatory: boolean;
15
+ /**
16
+ * Defines the maximum number of elements the list has
17
+ */
18
+ max?: number;
19
+ /**
20
+ * Defines how many elements of the list can be selected at the same time
21
+ */
22
+ multiple?: boolean;
23
+ /**
24
+ * Sets the active list-item inside the list-group
25
+ */
26
+ value?: any;
27
+ constructor(props: ISelectableList);
28
+ change(event?: Event, element?: HTMLElement): void;
29
+ }
@@ -7,8 +7,6 @@ export interface ISteppers extends IComponentRender {
7
7
  altLabels?: boolean;
8
8
  content?: boolean;
9
9
  items?: ISteppersStep[];
10
- dark?: boolean;
11
- light?: boolean;
12
10
  nonLinear?: boolean;
13
11
  vertical?: boolean;
14
12
  steps?: number | string;
@@ -20,14 +20,6 @@ export declare class Steppers extends ComponentRender implements ISteppers {
20
20
  * Array of steppers items
21
21
  */
22
22
  items: ISteppersStep[];
23
- /**
24
- * Applies the dark theme variant to the stepper
25
- */
26
- dark: boolean;
27
- /**
28
- * Applies the light theme variant to the stepper
29
- */
30
- light: boolean;
31
23
  /**
32
24
  * Allow user to jump to any step
33
25
  */
@@ -17,4 +17,5 @@ export interface ITab extends IComponent {
17
17
  export interface ITabs extends IComponentRender {
18
18
  activeTab?: number;
19
19
  tabs?: ITab[];
20
+ height?: number | string;
20
21
  }
@@ -8,6 +8,10 @@ export declare class Tabs extends ComponentRender implements ITabs {
8
8
  activeTab: number;
9
9
  events: ITabsEvents;
10
10
  tabs: Tab[];
11
+ /**
12
+ * Sets the height for Tabs.
13
+ */
14
+ height?: number | string;
11
15
  /**
12
16
  * Create a new Tabs.
13
17
  * @param props Tabs properties
@@ -15,6 +19,16 @@ export declare class Tabs extends ComponentRender implements ITabs {
15
19
  constructor(props: ITabs);
16
20
  private getTabs;
17
21
  getTab(name: string): Tab;
22
+ /**
23
+ * Method for navigating to the next tab
24
+ * @param loop Defines if want a loop navigation
25
+ */
26
+ nextTab(loop?: boolean): void;
27
+ /**
28
+ * Method for navigating to the previous tab
29
+ * @param loop Defines if want a loop navigation
30
+ */
31
+ previousTab(loop?: boolean): void;
18
32
  /**
19
33
  * Triggered before tab is change.
20
34
  * @param event DOM event
@@ -26,7 +26,10 @@ export declare class TreeGridEditable extends TreeGrid implements ITreeGridEdita
26
26
  * Enter edit mode on double click
27
27
  */
28
28
  doubleClickEdit: boolean;
29
+ protected cancelEditedRowsKeyMapping: any;
29
30
  constructor(props: ITreeGridEditable);
31
+ onMounted(element: HTMLElement): void;
32
+ onBeforeDestroy(): void;
30
33
  /**
31
34
  * Get Grid columns objects
32
35
  * @param columns Grid columns parameter
@@ -3,4 +3,6 @@ export * from './interfaces';
3
3
  export * from './report-type/csv-report';
4
4
  export * from './report-type/pdf-report';
5
5
  export * from './report-type/xls-report';
6
+ export * from './report-type/xls2-report';
7
+ export * from './report-type/xls3-report';
6
8
  export * from './report-type/interfaces';
@@ -3,7 +3,7 @@ import { IColumn } from '../../../components';
3
3
  import { IReportType, MetadataColumn, MetadataFilter } from './interfaces';
4
4
  export declare abstract class BaseReport implements IReportType {
5
5
  abstract route: string;
6
- abstract buildDataset(data: IDictionary<any>[], columns?: IColumn[]): any;
6
+ abstract buildDataset(data: IDictionary<any>[], metadata?: any): any;
7
7
  abstract buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary<any>, portrait?: boolean): Promise<any>;
8
8
  protected buildColumns(columns: IColumn[]): MetadataColumn;
9
9
  private isNumberComponent;
@@ -11,4 +11,6 @@ export declare abstract class BaseReport implements IReportType {
11
11
  private getFormatOfColumn;
12
12
  protected buildFilter(filter: IDictionary): MetadataFilter;
13
13
  protected formatLangCode(lang?: string): string;
14
+ protected expressionZeedhiToXls: any;
15
+ protected colunmXLS: string;
14
16
  }
@@ -3,7 +3,8 @@ import { IColumn } from '../../../components';
3
3
  export interface IReportType {
4
4
  readonly route: string;
5
5
  type?: string;
6
- buildDataset(data: IDictionary[], columns?: IColumn[], metadata?: any): any;
6
+ buildDataset(data: IDictionary[], metadata: any): any;
7
+ buildDataset(data: IDictionary[], metadata?: any, columns?: IColumn[]): any;
7
8
  buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary, portrait?: boolean): Promise<any>;
8
9
  }
9
10
  export declare type MetadataColumn = IDictionary<{
@@ -1,24 +1,9 @@
1
1
  import { IDictionary } from '@zeedhi/core';
2
2
  import { IColumn } from '../../../components';
3
3
  import { BaseReport } from './base-report';
4
- import { IMetadataObj } from './interfaces';
5
4
  export declare class XLSReport extends BaseReport {
6
5
  readonly route: string;
7
- type: string;
8
- constructor(type?: string);
9
- buildDataset(data: IDictionary<any>[], columns: IColumn[], metadata?: IMetadataObj): string;
6
+ buildDataset(data: IDictionary<any>[], columns: IColumn[]): string;
10
7
  private formatRawDataSet;
11
8
  buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary<any>): Promise<string>;
12
- private expressionZeedhiToXls;
13
- private isFormat3;
14
- private colunmXLS;
15
- private getColumnsNameFormat3;
16
- private getColumnsName;
17
- private initVars;
18
- private setRowGroupFormat3;
19
- private formatRowFunc;
20
- private setRowGroup;
21
- private setIndexGroups;
22
- private setRowNormal;
23
- formatDataSet(metaData: IMetadataObj, dataSet: IDictionary[]): any[];
24
9
  }
@@ -0,0 +1,16 @@
1
+ import { IDictionary } from '@zeedhi/core';
2
+ import { IColumn } from '../../../components';
3
+ import { BaseReport } from './base-report';
4
+ import { IMetadataObj } from './interfaces';
5
+ export declare class XLS2Report extends BaseReport {
6
+ readonly route: string;
7
+ buildDataset(data: IDictionary<any>[], metadata: IMetadataObj): string;
8
+ buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary<any>): Promise<string>;
9
+ private getColumnsName;
10
+ private initVars;
11
+ private formatRowFunc;
12
+ private setRowGroup;
13
+ private setIndexGroups;
14
+ private setRowNormal;
15
+ formatDataSet(metaData: IMetadataObj, dataSet: IDictionary[]): any[][];
16
+ }
@@ -0,0 +1,16 @@
1
+ import { IDictionary } from '@zeedhi/core';
2
+ import { IColumn } from '../../../components';
3
+ import { BaseReport } from './base-report';
4
+ import { IMetadataObj } from './interfaces';
5
+ export declare class XLS3Report extends BaseReport {
6
+ readonly route: string;
7
+ buildDataset(data: IDictionary<any>[], metadata: IMetadataObj): string;
8
+ buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary<any>): Promise<string>;
9
+ private getColumnsNameFormat3;
10
+ private initVars;
11
+ private setRowGroupFormat;
12
+ private formatRowFunc;
13
+ private setIndexGroups;
14
+ private setRowNormal;
15
+ formatDataSet(metaData: IMetadataObj, dataSet: IDictionary[]): string[][];
16
+ }
@@ -32,10 +32,14 @@ declare const initTheme: (theme?: any) => {
32
32
  light: {
33
33
  'font-color': string;
34
34
  'background-base': string;
35
+ 'scrollbar-track': string;
36
+ 'scrollbar-thumb': string;
35
37
  };
36
38
  dark: {
37
39
  'font-color': string;
38
40
  'background-base': string;
41
+ 'scrollbar-track': string;
42
+ 'scrollbar-thumb': string;
39
43
  };
40
44
  variables: {
41
45
  'default-padding': string;