@zeedhi/common 1.39.0 → 1.42.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 (53) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/zd-common.esm.js +460 -247
  3. package/dist/zd-common.umd.js +466 -250
  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 +11 -0
  8. package/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -8
  9. package/types/components/zd-button/button.d.ts +0 -8
  10. package/types/components/zd-button/interfaces.d.ts +0 -2
  11. package/types/components/zd-button-group/button-group.d.ts +0 -8
  12. package/types/components/zd-button-group/interfaces.d.ts +0 -2
  13. package/types/components/zd-card/card.d.ts +0 -8
  14. package/types/components/zd-card/interfaces.d.ts +0 -2
  15. package/types/components/zd-carousel/carousel.d.ts +0 -8
  16. package/types/components/zd-carousel/interfaces.d.ts +0 -2
  17. package/types/components/zd-component/component.d.ts +8 -0
  18. package/types/components/zd-component/interfaces.d.ts +2 -0
  19. package/types/components/zd-date/date-range.d.ts +1 -5
  20. package/types/components/zd-divider/divider.d.ts +0 -8
  21. package/types/components/zd-divider/interfaces.d.ts +0 -2
  22. package/types/components/zd-footer/footer.d.ts +0 -8
  23. package/types/components/zd-footer/interfaces.d.ts +0 -2
  24. package/types/components/zd-form/form.d.ts +10 -1
  25. package/types/components/zd-frame/frame.d.ts +1 -0
  26. package/types/components/zd-grid/grid-column.d.ts +2 -0
  27. package/types/components/zd-grid/grid.d.ts +4 -0
  28. package/types/components/zd-grid/interfaces.d.ts +1 -0
  29. package/types/components/zd-header/header.d.ts +0 -8
  30. package/types/components/zd-icon/icon.d.ts +0 -8
  31. package/types/components/zd-icon/interfaces.d.ts +0 -2
  32. package/types/components/zd-input/input.d.ts +0 -8
  33. package/types/components/zd-iterable/column.d.ts +4 -2
  34. package/types/components/zd-list/interfaces.d.ts +0 -2
  35. package/types/components/zd-list/list.d.ts +0 -8
  36. package/types/components/zd-login/interfaces.d.ts +0 -1
  37. package/types/components/zd-login/login.d.ts +0 -4
  38. package/types/components/zd-menu/interfaces.d.ts +0 -1
  39. package/types/components/zd-menu/menu.d.ts +0 -4
  40. package/types/components/zd-progress/progress.d.ts +0 -8
  41. package/types/components/zd-select-tree/interfaces.d.ts +1 -0
  42. package/types/components/zd-select-tree/select-tree.d.ts +6 -0
  43. package/types/components/zd-selectable-list/interfaces.d.ts +8 -0
  44. package/types/components/zd-selectable-list/selectable-list.d.ts +29 -0
  45. package/types/components/zd-steppers/interfaces.d.ts +0 -2
  46. package/types/components/zd-steppers/steppers.d.ts +0 -8
  47. package/types/components/zd-tabs/tabs.d.ts +10 -0
  48. package/types/utils/report/index.d.ts +2 -0
  49. package/types/utils/report/report-type/base-report.d.ts +3 -1
  50. package/types/utils/report/report-type/interfaces.d.ts +2 -1
  51. package/types/utils/report/report-type/xls-report.d.ts +1 -16
  52. package/types/utils/report/report-type/xls2-report.d.ts +16 -0
  53. package/types/utils/report/report-type/xls3-report.d.ts +16 -0
@@ -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
  */
@@ -15,6 +15,16 @@ export declare class Tabs extends ComponentRender implements ITabs {
15
15
  constructor(props: ITabs);
16
16
  private getTabs;
17
17
  getTab(name: string): Tab;
18
+ /**
19
+ * Method for navigating to the next tab
20
+ * @param loop Defines if want a loop navigation
21
+ */
22
+ nextTab(loop?: boolean): void;
23
+ /**
24
+ * Method for navigating to the previous tab
25
+ * @param loop Defines if want a loop navigation
26
+ */
27
+ previousTab(loop?: boolean): void;
18
28
  /**
19
29
  * Triggered before tab is change.
20
30
  * @param event DOM event
@@ -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
+ }