survey-analytics 1.12.21 → 2.0.0-rc.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 (49) hide show
  1. package/package.json +3 -16
  2. package/survey-analytics-datatables.types/analytics-localization/arabic.d.ts +66 -66
  3. package/survey-analytics-datatables.types/analytics-localization/dutch.d.ts +66 -66
  4. package/survey-analytics-datatables.types/analytics-localization/english.d.ts +75 -75
  5. package/survey-analytics-datatables.types/analytics-localization/farsi.d.ts +66 -66
  6. package/survey-analytics-datatables.types/analytics-localization/french.d.ts +66 -66
  7. package/survey-analytics-datatables.types/analytics-localization/german.d.ts +66 -66
  8. package/survey-analytics-datatables.types/analytics-localization/italian.d.ts +66 -66
  9. package/survey-analytics-datatables.types/analytics-localization/japanese.d.ts +66 -66
  10. package/survey-analytics-datatables.types/analytics-localization/norwegian.d.ts +66 -66
  11. package/survey-analytics-datatables.types/analytics-localization/polish.d.ts +67 -67
  12. package/survey-analytics-datatables.types/analytics-localization/portuguese.d.ts +66 -66
  13. package/survey-analytics-datatables.types/analytics-localization/russian.d.ts +67 -67
  14. package/survey-analytics-datatables.types/analytics-localization/spanish.d.ts +66 -66
  15. package/survey-analytics-datatables.types/entries/datatables.d.ts +21 -21
  16. package/survey-analytics-datatables.types/localizationManager.d.ts +90 -90
  17. package/survey-analytics-datatables.types/tables/columnbuilder.d.ts +38 -38
  18. package/survey-analytics-datatables.types/tables/columns.d.ts +74 -74
  19. package/survey-analytics-datatables.types/tables/config.d.ts +39 -39
  20. package/survey-analytics-datatables.types/tables/datatables.d.ts +51 -51
  21. package/survey-analytics-datatables.types/tables/extensions/columnextensions.d.ts +1 -1
  22. package/survey-analytics-datatables.types/tables/extensions/detailsextensions.d.ts +13 -13
  23. package/survey-analytics-datatables.types/tables/extensions/headerextensions.d.ts +1 -1
  24. package/survey-analytics-datatables.types/tables/extensions/rowextensions.d.ts +1 -1
  25. package/survey-analytics-datatables.types/tables/extensions/tableextensions.d.ts +21 -21
  26. package/survey-analytics-datatables.types/tables/table.d.ts +191 -191
  27. package/survey-analytics-datatables.types/utils/index.d.ts +39 -39
  28. package/survey-analytics-tabulator.types/tables/table.d.ts +2 -2
  29. package/survey-analytics-tabulator.types/tables/tabulator.d.ts +4 -2
  30. package/survey.analytics.css +1 -1
  31. package/survey.analytics.css.map +1 -1
  32. package/survey.analytics.datatables.css +400 -400
  33. package/survey.analytics.datatables.d.ts +1 -1
  34. package/survey.analytics.datatables.js +3682 -3682
  35. package/survey.analytics.datatables.min.css +6 -6
  36. package/survey.analytics.datatables.min.js +1 -1
  37. package/survey.analytics.datatables.min.js.LICENSE.txt +5 -5
  38. package/survey.analytics.js +3 -3
  39. package/survey.analytics.js.map +1 -1
  40. package/survey.analytics.min.css +1 -1
  41. package/survey.analytics.min.js +1 -1
  42. package/survey.analytics.min.js.LICENSE.txt +1 -1
  43. package/survey.analytics.tabulator.css +3 -3
  44. package/survey.analytics.tabulator.css.map +1 -1
  45. package/survey.analytics.tabulator.js +45 -21
  46. package/survey.analytics.tabulator.js.map +1 -1
  47. package/survey.analytics.tabulator.min.css +2 -2
  48. package/survey.analytics.tabulator.min.js +1 -1
  49. package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
@@ -1,90 +1,90 @@
1
- export declare var localization: {
2
- currentLocaleValue: string;
3
- defaultLocaleValue: string;
4
- locales: {
5
- [index: string]: any;
6
- };
7
- localeNames: {
8
- [index: string]: any;
9
- };
10
- supportedLocales: any[];
11
- currentLocale: string;
12
- defaultLocale: string;
13
- getString: (strName: string) => any;
14
- getLocales: () => Array<string>;
15
- };
16
- export declare var surveyStrings: {
17
- groupButton: string;
18
- ungroupButton: string;
19
- selectButton: string;
20
- hideColumn: string;
21
- showColumn: string;
22
- makePrivateColumn: string;
23
- makePublicColumn: string;
24
- moveToDetail: string;
25
- showAsColumn: string;
26
- filterPlaceholder: string;
27
- removeRows: string;
28
- showLabel: string;
29
- entriesLabel: string;
30
- visualizer_text: string;
31
- visualizer_wordcloud: string;
32
- visualizer_histogram: string;
33
- visualizer_number: string;
34
- visualizer_choices: string;
35
- visualizer_selectBase: string;
36
- visualizer_matrix: string;
37
- chartType_bar: string;
38
- chartType_vbar: string;
39
- chartType_stackedbar: string;
40
- chartType_doughnut: string;
41
- chartType_pie: string;
42
- chartType_scatter: string;
43
- chartType_gauge: string;
44
- chartType_bullet: string;
45
- chartType_line: string;
46
- hideButton: string;
47
- makePrivateButton: string;
48
- makePublicButton: string;
49
- showButton: string;
50
- filter: string;
51
- resetFilter: string;
52
- changeLocale: string;
53
- clearButton: string;
54
- addElement: string;
55
- defaultOrder: string;
56
- ascOrder: string;
57
- descOrder: string;
58
- showMinorColumns: string;
59
- otherCommentTitle: string;
60
- showPercentages: string;
61
- hidePercentages: string;
62
- pdfDownloadCaption: string;
63
- xlsxDownloadCaption: string;
64
- csvDownloadCaption: string;
65
- saveDiagramAsPNG: string;
66
- hideEmptyAnswers: string;
67
- showEmptyAnswers: string;
68
- "topNValueText-1": string;
69
- topNValueText5: string;
70
- topNValueText10: string;
71
- topNValueText20: string;
72
- hideMissingAnswers: string;
73
- showMissingAnswers: string;
74
- missingAnswersLabel: string;
75
- noVisualizerForQuestion: string;
76
- noResults: string;
77
- showPerValues: string;
78
- showPerColumns: string;
79
- answer: string;
80
- correctAnswer: string;
81
- percent: string;
82
- percentage: string;
83
- statistics_chart: string;
84
- responses: string;
85
- visualizer_nps: string;
86
- npsScore: string;
87
- npsPromoters: string;
88
- npsPassives: string;
89
- npsDetractors: string;
90
- };
1
+ export declare var localization: {
2
+ currentLocaleValue: string;
3
+ defaultLocaleValue: string;
4
+ locales: {
5
+ [index: string]: any;
6
+ };
7
+ localeNames: {
8
+ [index: string]: any;
9
+ };
10
+ supportedLocales: any[];
11
+ currentLocale: string;
12
+ defaultLocale: string;
13
+ getString: (strName: string) => any;
14
+ getLocales: () => Array<string>;
15
+ };
16
+ export declare var surveyStrings: {
17
+ groupButton: string;
18
+ ungroupButton: string;
19
+ selectButton: string;
20
+ hideColumn: string;
21
+ showColumn: string;
22
+ makePrivateColumn: string;
23
+ makePublicColumn: string;
24
+ moveToDetail: string;
25
+ showAsColumn: string;
26
+ filterPlaceholder: string;
27
+ removeRows: string;
28
+ showLabel: string;
29
+ entriesLabel: string;
30
+ visualizer_text: string;
31
+ visualizer_wordcloud: string;
32
+ visualizer_histogram: string;
33
+ visualizer_number: string;
34
+ visualizer_choices: string;
35
+ visualizer_selectBase: string;
36
+ visualizer_matrix: string;
37
+ chartType_bar: string;
38
+ chartType_vbar: string;
39
+ chartType_stackedbar: string;
40
+ chartType_doughnut: string;
41
+ chartType_pie: string;
42
+ chartType_scatter: string;
43
+ chartType_gauge: string;
44
+ chartType_bullet: string;
45
+ chartType_line: string;
46
+ hideButton: string;
47
+ makePrivateButton: string;
48
+ makePublicButton: string;
49
+ showButton: string;
50
+ filter: string;
51
+ resetFilter: string;
52
+ changeLocale: string;
53
+ clearButton: string;
54
+ addElement: string;
55
+ defaultOrder: string;
56
+ ascOrder: string;
57
+ descOrder: string;
58
+ showMinorColumns: string;
59
+ otherCommentTitle: string;
60
+ showPercentages: string;
61
+ hidePercentages: string;
62
+ pdfDownloadCaption: string;
63
+ xlsxDownloadCaption: string;
64
+ csvDownloadCaption: string;
65
+ saveDiagramAsPNG: string;
66
+ hideEmptyAnswers: string;
67
+ showEmptyAnswers: string;
68
+ "topNValueText-1": string;
69
+ topNValueText5: string;
70
+ topNValueText10: string;
71
+ topNValueText20: string;
72
+ hideMissingAnswers: string;
73
+ showMissingAnswers: string;
74
+ missingAnswersLabel: string;
75
+ noVisualizerForQuestion: string;
76
+ noResults: string;
77
+ showPerValues: string;
78
+ showPerColumns: string;
79
+ answer: string;
80
+ correctAnswer: string;
81
+ percent: string;
82
+ percentage: string;
83
+ statistics_chart: string;
84
+ responses: string;
85
+ visualizer_nps: string;
86
+ npsScore: string;
87
+ npsPromoters: string;
88
+ npsPassives: string;
89
+ npsDetractors: string;
90
+ };
@@ -1,38 +1,38 @@
1
- import { Question, QuestionCompositeModel, QuestionCustomModel, QuestionFileModel, QuestionMatrixDropdownModel, QuestionMatrixModel } from "survey-core";
2
- import { BaseColumn, CompositeQuestionColumn, CustomQuestionColumn, FileColumn, ImageColumn } from "./columns";
3
- import { IColumn } from "./config";
4
- import { Table } from "./table";
5
- export interface IColumnsBuilder {
6
- buildColumns(question: Question, table: Table): Array<IColumn>;
7
- }
8
- export declare class DefaultColumnsBuilder<T extends Question = Question> implements IColumnsBuilder {
9
- protected createColumn(question: T, table: Table): BaseColumn<T>;
10
- protected buildColumnsCore(question: T, table: Table): Array<IColumn>;
11
- buildColumns(question: T, table: Table): Array<IColumn>;
12
- }
13
- export declare class ColumnsBuilderFactory {
14
- static Instance: ColumnsBuilderFactory;
15
- private constructor();
16
- private readonly columnsBuilders;
17
- private readonly defaultColumnsBuilder;
18
- registerBuilderColumn(type: string, columnsBuilder: IColumnsBuilder): void;
19
- getColumnsBuilder(type: string): IColumnsBuilder;
20
- }
21
- export declare class MatrixColumnsBuilder extends DefaultColumnsBuilder<QuestionMatrixModel> {
22
- protected buildColumnsCore(questionBase: Question, table: Table): IColumn[];
23
- }
24
- export declare class ImageColumnsBuilder extends DefaultColumnsBuilder {
25
- protected createColumn(question: Question, table: Table): ImageColumn;
26
- }
27
- export declare class FileColumnsBuilder extends DefaultColumnsBuilder<QuestionFileModel> {
28
- protected createColumn(question: QuestionFileModel, table: Table): FileColumn;
29
- }
30
- export declare class MatrixDropdownColumnBuilder extends DefaultColumnsBuilder {
31
- buildColumns(questionBase: QuestionMatrixDropdownModel, table: Table): Array<IColumn>;
32
- }
33
- export declare class CustomColumnsBuilder extends DefaultColumnsBuilder<QuestionCustomModel> {
34
- protected createColumn(question: QuestionCustomModel, table: Table): CustomQuestionColumn;
35
- }
36
- export declare class CompositeColumnsBuilder extends DefaultColumnsBuilder<QuestionCompositeModel> {
37
- protected createColumn(question: QuestionCompositeModel, table: Table): CompositeQuestionColumn;
38
- }
1
+ import { Question, QuestionCompositeModel, QuestionCustomModel, QuestionFileModel, QuestionMatrixDropdownModel, QuestionMatrixModel } from "survey-core";
2
+ import { BaseColumn, CompositeQuestionColumn, CustomQuestionColumn, FileColumn, ImageColumn } from "./columns";
3
+ import { IColumn } from "./config";
4
+ import { Table } from "./table";
5
+ export interface IColumnsBuilder {
6
+ buildColumns(question: Question, table: Table): Array<IColumn>;
7
+ }
8
+ export declare class DefaultColumnsBuilder<T extends Question = Question> implements IColumnsBuilder {
9
+ protected createColumn(question: T, table: Table): BaseColumn<T>;
10
+ protected buildColumnsCore(question: T, table: Table): Array<IColumn>;
11
+ buildColumns(question: T, table: Table): Array<IColumn>;
12
+ }
13
+ export declare class ColumnsBuilderFactory {
14
+ static Instance: ColumnsBuilderFactory;
15
+ private constructor();
16
+ private readonly columnsBuilders;
17
+ private readonly defaultColumnsBuilder;
18
+ registerBuilderColumn(type: string, columnsBuilder: IColumnsBuilder): void;
19
+ getColumnsBuilder(type: string): IColumnsBuilder;
20
+ }
21
+ export declare class MatrixColumnsBuilder extends DefaultColumnsBuilder<QuestionMatrixModel> {
22
+ protected buildColumnsCore(questionBase: Question, table: Table): IColumn[];
23
+ }
24
+ export declare class ImageColumnsBuilder extends DefaultColumnsBuilder {
25
+ protected createColumn(question: Question, table: Table): ImageColumn;
26
+ }
27
+ export declare class FileColumnsBuilder extends DefaultColumnsBuilder<QuestionFileModel> {
28
+ protected createColumn(question: QuestionFileModel, table: Table): FileColumn;
29
+ }
30
+ export declare class MatrixDropdownColumnBuilder extends DefaultColumnsBuilder {
31
+ buildColumns(questionBase: QuestionMatrixDropdownModel, table: Table): Array<IColumn>;
32
+ }
33
+ export declare class CustomColumnsBuilder extends DefaultColumnsBuilder<QuestionCustomModel> {
34
+ protected createColumn(question: QuestionCustomModel, table: Table): CustomQuestionColumn;
35
+ }
36
+ export declare class CompositeColumnsBuilder extends DefaultColumnsBuilder<QuestionCompositeModel> {
37
+ protected createColumn(question: QuestionCompositeModel, table: Table): CompositeQuestionColumn;
38
+ }
@@ -1,74 +1,74 @@
1
- import { MatrixRowModel, Question, QuestionCompositeModel, QuestionCustomModel, QuestionFileModel, QuestionMatrixDropdownModel, QuestionMatrixModel, QuestionSelectBase } from "survey-core";
2
- import { ICellData, IColumn, ColumnDataType, QuestionLocation, IColumnData } from "./config";
3
- import { ITableOptions, Table } from "./table";
4
- export declare class BaseColumn<T extends Question = Question> implements IColumn {
5
- protected question: T;
6
- protected table: Table;
7
- dataType: ColumnDataType;
8
- isVisible: boolean;
9
- isPublic: boolean;
10
- location: QuestionLocation;
11
- width?: string | number;
12
- visibleIndex?: number;
13
- isComment?: boolean;
14
- private nameValue;
15
- private displayNameValue?;
16
- constructor(question: T, table: Table);
17
- get name(): string;
18
- set name(val: string);
19
- get displayName(): string;
20
- set displayName(val: string);
21
- protected getDisplayName(): string;
22
- protected getName(): string;
23
- protected getDataType(): ColumnDataType;
24
- protected getDisplayValueCore(data: any): any;
25
- protected setupReadyChangedCallback(table: Table, question: Question): void;
26
- protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
27
- private formatDisplayValue;
28
- getCellData(table: Table, data: any): ICellData;
29
- toJSON(): IColumnData;
30
- fromJSON(data: IColumnData): void;
31
- }
32
- export declare class DefaultColumn extends BaseColumn {
33
- protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
34
- }
35
- export declare class CommentColumn<T extends Question = Question> extends BaseColumn<T> {
36
- protected getName(): string;
37
- protected getDisplayName(): string;
38
- protected getDisplayValue(data: any, table: Table, options: ITableOptions): string;
39
- }
40
- export declare class OtherColumn extends CommentColumn<QuestionSelectBase> {
41
- protected getDisplayName(): string;
42
- }
43
- export declare class MatrixColumn extends BaseColumn<QuestionMatrixModel> {
44
- private row;
45
- private valueName;
46
- private valuePath;
47
- constructor(question: QuestionMatrixModel, row: MatrixRowModel, table: Table);
48
- protected getName(): string;
49
- protected getDisplayName(): string;
50
- protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
51
- }
52
- export declare class ImageColumn extends BaseColumn {
53
- protected getDataType(): ColumnDataType;
54
- }
55
- export declare class FileColumn extends BaseColumn<QuestionFileModel> {
56
- protected getDataType(): ColumnDataType;
57
- protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
58
- }
59
- export declare class MatrixDropdownColumn extends BaseColumn<QuestionMatrixDropdownModel> {
60
- protected row: any;
61
- protected col: any;
62
- private rowValue;
63
- private colName;
64
- constructor(question: QuestionMatrixDropdownModel, row: any, col: any, table: Table);
65
- protected getName(): string;
66
- protected getDisplayName(): string;
67
- protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
68
- }
69
- export declare class CustomQuestionColumn extends BaseColumn<QuestionCustomModel> {
70
- getCellData(table: Table, data: any): ICellData;
71
- }
72
- export declare class CompositeQuestionColumn extends BaseColumn<QuestionCompositeModel> {
73
- getCellData(table: Table, data: any): ICellData;
74
- }
1
+ import { MatrixRowModel, Question, QuestionCompositeModel, QuestionCustomModel, QuestionFileModel, QuestionMatrixDropdownModel, QuestionMatrixModel, QuestionSelectBase } from "survey-core";
2
+ import { ICellData, IColumn, ColumnDataType, QuestionLocation, IColumnData } from "./config";
3
+ import { ITableOptions, Table } from "./table";
4
+ export declare class BaseColumn<T extends Question = Question> implements IColumn {
5
+ protected question: T;
6
+ protected table: Table;
7
+ dataType: ColumnDataType;
8
+ isVisible: boolean;
9
+ isPublic: boolean;
10
+ location: QuestionLocation;
11
+ width?: string | number;
12
+ visibleIndex?: number;
13
+ isComment?: boolean;
14
+ private nameValue;
15
+ private displayNameValue?;
16
+ constructor(question: T, table: Table);
17
+ get name(): string;
18
+ set name(val: string);
19
+ get displayName(): string;
20
+ set displayName(val: string);
21
+ protected getDisplayName(): string;
22
+ protected getName(): string;
23
+ protected getDataType(): ColumnDataType;
24
+ protected getDisplayValueCore(data: any): any;
25
+ protected setupReadyChangedCallback(table: Table, question: Question): void;
26
+ protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
27
+ private formatDisplayValue;
28
+ getCellData(table: Table, data: any): ICellData;
29
+ toJSON(): IColumnData;
30
+ fromJSON(data: IColumnData): void;
31
+ }
32
+ export declare class DefaultColumn extends BaseColumn {
33
+ protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
34
+ }
35
+ export declare class CommentColumn<T extends Question = Question> extends BaseColumn<T> {
36
+ protected getName(): string;
37
+ protected getDisplayName(): string;
38
+ protected getDisplayValue(data: any, table: Table, options: ITableOptions): string;
39
+ }
40
+ export declare class OtherColumn extends CommentColumn<QuestionSelectBase> {
41
+ protected getDisplayName(): string;
42
+ }
43
+ export declare class MatrixColumn extends BaseColumn<QuestionMatrixModel> {
44
+ private row;
45
+ private valueName;
46
+ private valuePath;
47
+ constructor(question: QuestionMatrixModel, row: MatrixRowModel, table: Table);
48
+ protected getName(): string;
49
+ protected getDisplayName(): string;
50
+ protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
51
+ }
52
+ export declare class ImageColumn extends BaseColumn {
53
+ protected getDataType(): ColumnDataType;
54
+ }
55
+ export declare class FileColumn extends BaseColumn<QuestionFileModel> {
56
+ protected getDataType(): ColumnDataType;
57
+ protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
58
+ }
59
+ export declare class MatrixDropdownColumn extends BaseColumn<QuestionMatrixDropdownModel> {
60
+ protected row: any;
61
+ protected col: any;
62
+ private rowValue;
63
+ private colName;
64
+ constructor(question: QuestionMatrixDropdownModel, row: any, col: any, table: Table);
65
+ protected getName(): string;
66
+ protected getDisplayName(): string;
67
+ protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
68
+ }
69
+ export declare class CustomQuestionColumn extends BaseColumn<QuestionCustomModel> {
70
+ getCellData(table: Table, data: any): ICellData;
71
+ }
72
+ export declare class CompositeQuestionColumn extends BaseColumn<QuestionCompositeModel> {
73
+ getCellData(table: Table, data: any): ICellData;
74
+ }
@@ -1,39 +1,39 @@
1
- import { Question } from "survey-core";
2
- import { Table } from "./table";
3
- export declare enum QuestionLocation {
4
- Column = 0,
5
- Row = 1
6
- }
7
- export declare enum ColumnDataType {
8
- Text = 0,
9
- FileLink = 1,
10
- Image = 2
11
- }
12
- export interface ICellData {
13
- question: Question;
14
- displayValue: any;
15
- }
16
- export interface IColumnData {
17
- name: string;
18
- displayName: string;
19
- dataType: ColumnDataType;
20
- isVisible: boolean;
21
- isPublic: boolean;
22
- location: QuestionLocation;
23
- width?: string | number;
24
- isComment?: boolean;
25
- }
26
- export interface IColumn extends IColumnData {
27
- visibleIndex?: number;
28
- fromJSON(json: any): void;
29
- getCellData(table: Table, data: any): ICellData;
30
- }
31
- export interface ITableState {
32
- locale?: string;
33
- elements?: IColumnData[];
34
- pageSize?: number;
35
- }
36
- export interface IPermission {
37
- name: string;
38
- isPublic: boolean;
39
- }
1
+ import { Question } from "survey-core";
2
+ import { Table } from "./table";
3
+ export declare enum QuestionLocation {
4
+ Column = 0,
5
+ Row = 1
6
+ }
7
+ export declare enum ColumnDataType {
8
+ Text = 0,
9
+ FileLink = 1,
10
+ Image = 2
11
+ }
12
+ export interface ICellData {
13
+ question: Question;
14
+ displayValue: any;
15
+ }
16
+ export interface IColumnData {
17
+ name: string;
18
+ displayName: string;
19
+ dataType: ColumnDataType;
20
+ isVisible: boolean;
21
+ isPublic: boolean;
22
+ location: QuestionLocation;
23
+ width?: string | number;
24
+ isComment?: boolean;
25
+ }
26
+ export interface IColumn extends IColumnData {
27
+ visibleIndex?: number;
28
+ fromJSON(json: any): void;
29
+ getCellData(table: Table, data: any): ICellData;
30
+ }
31
+ export interface ITableState {
32
+ locale?: string;
33
+ elements?: IColumnData[];
34
+ pageSize?: number;
35
+ }
36
+ export interface IPermission {
37
+ name: string;
38
+ isPublic: boolean;
39
+ }
@@ -1,51 +1,51 @@
1
- import { ITableOptions, Table, TableRow } from "./table";
2
- import { SurveyModel, Event } from "survey-core";
3
- import { IColumnData, QuestionLocation } from "./config";
4
- interface DataTablesOptions extends ITableOptions {
5
- buttons: boolean | string[] | any[] | any;
6
- dom: string;
7
- orderFixed: Array<number | string> | Array<Array<number | string>> | object;
8
- rowGroup: boolean | any;
9
- headerCallback: any;
10
- }
11
- export declare class DataTables extends Table {
12
- datatableApi: any;
13
- currentPageNumber: number;
14
- /**
15
- * The event is fired columns configuration has been changed.
16
- * <br/> sender the datatables adapter
17
- * <br/> options.survey current survey
18
- * @see getColumns
19
- */
20
- onColumnsReorder: Event<(sender: DataTables, options: any) => any, DataTables, any>;
21
- static initJQuery($: any): void;
22
- static set haveCommercialLicense(val: boolean);
23
- constructor(survey: SurveyModel, data: Array<Object>, options?: DataTablesOptions, _columnsData?: Array<IColumnData>);
24
- destroy(): void;
25
- setColumnVisibility(columnName: string, isVisible: boolean): void;
26
- setColumnLocation(columnName: string, location: QuestionLocation): void;
27
- applyFilter(value: string): void;
28
- applyColumnFilter(columnName: string, value: string): void;
29
- sortByColumn(columnName: string, direction: string): void;
30
- setPageSize(value: number): void;
31
- setPageNumber(value: number): void;
32
- getPageNumber(): number;
33
- render(targetNode: HTMLElement | string): void;
34
- getColumns(): Array<any>;
35
- layout(): void;
36
- }
37
- export declare class DatatablesRow extends TableRow {
38
- protected table: Table;
39
- protected extensionsContainer: HTMLElement;
40
- protected detailsContainer: HTMLElement;
41
- private _innerRow;
42
- constructor(table: Table, extensionsContainer: HTMLElement, detailsContainer: HTMLElement, _innerRow: any);
43
- private rowElement;
44
- private rowData;
45
- get innerRow(): any;
46
- getElement(): HTMLElement;
47
- getRowData(): HTMLElement;
48
- getDataPosition(): number;
49
- remove(): void;
50
- }
51
- export {};
1
+ import { ITableOptions, Table, TableRow } from "./table";
2
+ import { SurveyModel, Event } from "survey-core";
3
+ import { IColumnData, QuestionLocation } from "./config";
4
+ interface DataTablesOptions extends ITableOptions {
5
+ buttons: boolean | string[] | any[] | any;
6
+ dom: string;
7
+ orderFixed: Array<number | string> | Array<Array<number | string>> | object;
8
+ rowGroup: boolean | any;
9
+ headerCallback: any;
10
+ }
11
+ export declare class DataTables extends Table {
12
+ datatableApi: any;
13
+ currentPageNumber: number;
14
+ /**
15
+ * The event is fired columns configuration has been changed.
16
+ * <br/> sender the datatables adapter
17
+ * <br/> options.survey current survey
18
+ * @see getColumns
19
+ */
20
+ onColumnsReorder: Event<(sender: DataTables, options: any) => any, DataTables, any>;
21
+ static initJQuery($: any): void;
22
+ static set haveCommercialLicense(val: boolean);
23
+ constructor(survey: SurveyModel, data: Array<Object>, options?: DataTablesOptions, _columnsData?: Array<IColumnData>);
24
+ destroy(): void;
25
+ setColumnVisibility(columnName: string, isVisible: boolean): void;
26
+ setColumnLocation(columnName: string, location: QuestionLocation): void;
27
+ applyFilter(value: string): void;
28
+ applyColumnFilter(columnName: string, value: string): void;
29
+ sortByColumn(columnName: string, direction: string): void;
30
+ setPageSize(value: number): void;
31
+ setPageNumber(value: number): void;
32
+ getPageNumber(): number;
33
+ render(targetNode: HTMLElement | string): void;
34
+ getColumns(): Array<any>;
35
+ layout(): void;
36
+ }
37
+ export declare class DatatablesRow extends TableRow {
38
+ protected table: Table;
39
+ protected extensionsContainer: HTMLElement;
40
+ protected detailsContainer: HTMLElement;
41
+ private _innerRow;
42
+ constructor(table: Table, extensionsContainer: HTMLElement, detailsContainer: HTMLElement, _innerRow: any);
43
+ private rowElement;
44
+ private rowData;
45
+ get innerRow(): any;
46
+ getElement(): HTMLElement;
47
+ getRowData(): HTMLElement;
48
+ getDataPosition(): number;
49
+ remove(): void;
50
+ }
51
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,13 +1,13 @@
1
- import { TableRow } from "../table";
2
- import { Table } from "../table";
3
- export declare class Details {
4
- protected table: Table;
5
- private row;
6
- protected targetNode: HTMLElement;
7
- constructor(table: Table, row: TableRow, targetNode: HTMLElement);
8
- private detailsTable;
9
- protected location: string;
10
- open(): void;
11
- protected createShowAsColumnButton: (columnName: string) => HTMLElement;
12
- close(): void;
13
- }
1
+ import { TableRow } from "../table";
2
+ import { Table } from "../table";
3
+ export declare class Details {
4
+ protected table: Table;
5
+ private row;
6
+ protected targetNode: HTMLElement;
7
+ constructor(table: Table, row: TableRow, targetNode: HTMLElement);
8
+ private detailsTable;
9
+ protected location: string;
10
+ open(): void;
11
+ protected createShowAsColumnButton: (columnName: string) => HTMLElement;
12
+ close(): void;
13
+ }
@@ -1 +1 @@
1
- export declare var HeaderExtensions: any;
1
+ export declare var HeaderExtensions: any;
@@ -1 +1 @@
1
- export {};
1
+ export {};