survey-analytics 1.9.89 → 1.9.90
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/LICENSE +2 -2
- package/package.json +6 -20
- package/survey-analytics-datatables.types/analytics-localization/arabic.d.ts +66 -0
- package/survey-analytics-datatables.types/analytics-localization/dutch.d.ts +49 -0
- package/survey-analytics-datatables.types/analytics-localization/english.d.ts +70 -0
- package/survey-analytics-datatables.types/analytics-localization/farsi.d.ts +20 -0
- package/survey-analytics-datatables.types/analytics-localization/french.d.ts +46 -0
- package/survey-analytics-datatables.types/analytics-localization/german.d.ts +52 -0
- package/survey-analytics-datatables.types/analytics-localization/norwegian.d.ts +39 -0
- package/survey-analytics-datatables.types/analytics-localization/portuguese.d.ts +70 -0
- package/survey-analytics-datatables.types/analytics-localization/russian.d.ts +34 -0
- package/survey-analytics-datatables.types/entries/datatables.d.ts +17 -0
- package/survey-analytics-datatables.types/localizationManager.d.ts +85 -0
- package/survey-analytics-datatables.types/tables/columnbuilder.d.ts +38 -0
- package/survey-analytics-datatables.types/tables/columns.d.ts +71 -0
- package/survey-analytics-datatables.types/tables/config.d.ts +39 -0
- package/survey-analytics-datatables.types/tables/datatables.d.ts +51 -0
- package/survey-analytics-datatables.types/tables/extensions/columnextensions.d.ts +1 -0
- package/survey-analytics-datatables.types/tables/extensions/detailsextensions.d.ts +13 -0
- package/survey-analytics-datatables.types/tables/extensions/headerextensions.d.ts +1 -0
- package/survey-analytics-datatables.types/tables/extensions/rowextensions.d.ts +1 -0
- package/survey-analytics-datatables.types/tables/extensions/tableextensions.d.ts +22 -0
- package/survey-analytics-datatables.types/tables/table.d.ts +153 -0
- package/survey-analytics-datatables.types/utils/index.d.ts +37 -0
- package/survey-analytics-tabulator.types/analytics-localization/arabic.d.ts +66 -0
- package/survey-analytics-tabulator.types/analytics-localization/dutch.d.ts +49 -0
- package/survey-analytics-tabulator.types/analytics-localization/english.d.ts +70 -0
- package/survey-analytics-tabulator.types/analytics-localization/farsi.d.ts +20 -0
- package/survey-analytics-tabulator.types/analytics-localization/french.d.ts +46 -0
- package/survey-analytics-tabulator.types/analytics-localization/german.d.ts +52 -0
- package/survey-analytics-tabulator.types/analytics-localization/norwegian.d.ts +39 -0
- package/survey-analytics-tabulator.types/analytics-localization/portuguese.d.ts +70 -0
- package/survey-analytics-tabulator.types/analytics-localization/russian.d.ts +34 -0
- package/survey-analytics-tabulator.types/entries/tabulator.d.ts +17 -0
- package/survey-analytics-tabulator.types/localizationManager.d.ts +85 -0
- package/survey-analytics-tabulator.types/tables/columnbuilder.d.ts +38 -0
- package/survey-analytics-tabulator.types/tables/columns.d.ts +71 -0
- package/survey-analytics-tabulator.types/tables/config.d.ts +39 -0
- package/survey-analytics-tabulator.types/tables/custom_jspdf_font.d.ts +1 -0
- package/survey-analytics-tabulator.types/tables/extensions/columnextensions.d.ts +1 -0
- package/survey-analytics-tabulator.types/tables/extensions/detailsextensions.d.ts +13 -0
- package/survey-analytics-tabulator.types/tables/extensions/headerextensions.d.ts +1 -0
- package/survey-analytics-tabulator.types/tables/extensions/rowextensions.d.ts +1 -0
- package/survey-analytics-tabulator.types/tables/extensions/tableextensions.d.ts +22 -0
- package/survey-analytics-tabulator.types/tables/table.d.ts +153 -0
- package/survey-analytics-tabulator.types/tables/tabulator.d.ts +83 -0
- package/survey-analytics-tabulator.types/utils/index.d.ts +37 -0
- package/survey-analytics.types/alternativeVizualizersWrapper.d.ts +41 -0
- package/survey-analytics.types/analytics-localization/arabic.d.ts +66 -0
- package/survey-analytics.types/analytics-localization/dutch.d.ts +49 -0
- package/survey-analytics.types/analytics-localization/english.d.ts +70 -0
- package/survey-analytics.types/analytics-localization/farsi.d.ts +20 -0
- package/survey-analytics.types/analytics-localization/french.d.ts +46 -0
- package/survey-analytics.types/analytics-localization/german.d.ts +52 -0
- package/survey-analytics.types/analytics-localization/italian.d.ts +69 -0
- package/survey-analytics.types/analytics-localization/norwegian.d.ts +39 -0
- package/survey-analytics.types/analytics-localization/portuguese.d.ts +70 -0
- package/survey-analytics.types/analytics-localization/russian.d.ts +34 -0
- package/survey-analytics.types/analytics-localization/spanish.d.ts +51 -0
- package/survey-analytics.types/boolean.d.ts +16 -0
- package/survey-analytics.types/choices-table.d.ts +17 -0
- package/survey-analytics.types/config.d.ts +38 -0
- package/survey-analytics.types/dataProvider.d.ts +40 -0
- package/survey-analytics.types/entries/summary.d.ts +30 -0
- package/survey-analytics.types/filterInfo.d.ts +11 -0
- package/survey-analytics.types/histogram.d.ts +38 -0
- package/survey-analytics.types/layoutEngine.d.ts +40 -0
- package/survey-analytics.types/localizationManager.d.ts +85 -0
- package/survey-analytics.types/matrix.d.ts +17 -0
- package/survey-analytics.types/matrixDropdownGrouped.d.ts +14 -0
- package/survey-analytics.types/number.d.ts +25 -0
- package/survey-analytics.types/plotly/boolean.d.ts +16 -0
- package/survey-analytics.types/plotly/histogram.d.ts +12 -0
- package/survey-analytics.types/plotly/index.d.ts +8 -0
- package/survey-analytics.types/plotly/matrix.d.ts +11 -0
- package/survey-analytics.types/plotly/matrixdropdown-grouped.d.ts +11 -0
- package/survey-analytics.types/plotly/ranking.d.ts +7 -0
- package/survey-analytics.types/plotly/rating.d.ts +20 -0
- package/survey-analytics.types/plotly/selectBase.d.ts +24 -0
- package/survey-analytics.types/plotly/setup.d.ts +29 -0
- package/survey-analytics.types/selectBase.d.ts +112 -0
- package/survey-analytics.types/text.d.ts +21 -0
- package/survey-analytics.types/utils/index.d.ts +37 -0
- package/survey-analytics.types/visualizationManager.d.ts +52 -0
- package/survey-analytics.types/visualizationMatrixDropdown.d.ts +23 -0
- package/survey-analytics.types/visualizationMatrixDynamic.d.ts +9 -0
- package/survey-analytics.types/visualizationPanel.d.ts +371 -0
- package/survey-analytics.types/visualizationPanelDynamic.d.ts +23 -0
- package/survey-analytics.types/visualizerBase.d.ts +257 -0
- package/survey-analytics.types/visualizerFactory.d.ts +20 -0
- package/survey-analytics.types/wordcloud/stopwords/dutch.d.ts +1 -0
- package/survey-analytics.types/wordcloud/stopwords/english.d.ts +1 -0
- package/survey-analytics.types/wordcloud/stopwords/index.d.ts +3 -0
- package/survey-analytics.types/wordcloud/stopwords/norwegian.d.ts +1 -0
- package/survey-analytics.types/wordcloud/stopwords/spanish.d.ts +1 -0
- package/survey-analytics.types/wordcloud/wordcloud.d.ts +25 -0
- package/survey.analytics.css +1 -1
- package/survey.analytics.d.ts +1 -2133
- package/survey.analytics.datatables/index.d.ts.d.ts +891 -0
- package/survey.analytics.datatables/survey.analytics.datatables.css +325 -0
- package/survey.analytics.datatables/survey.analytics.datatables.js +38982 -0
- package/survey.analytics.datatables/survey.analytics.datatables.min.css +7 -0
- package/survey.analytics.datatables/survey.analytics.datatables.min.js +29 -0
- package/survey.analytics.datatables.css +1 -1
- package/survey.analytics.datatables.d.ts +1 -1012
- package/survey.analytics.datatables.js +1 -1
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js +1 -1
- package/survey.analytics.js +40 -2
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js +1 -1
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.d.ts +1 -1047
- package/survey.analytics.tabulator.js +1 -1
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare var germanStrings: {
|
|
2
|
+
groupButton: string;
|
|
3
|
+
ungroupButton: string;
|
|
4
|
+
selectButton: string;
|
|
5
|
+
hideColumn: string;
|
|
6
|
+
showColumn: string;
|
|
7
|
+
makePrivateColumn: string;
|
|
8
|
+
makePublicColumn: string;
|
|
9
|
+
moveToDetail: string;
|
|
10
|
+
showAsColumn: string;
|
|
11
|
+
filterPlaceholder: string;
|
|
12
|
+
removeRows: string;
|
|
13
|
+
showLabel: string;
|
|
14
|
+
entriesLabel: string;
|
|
15
|
+
visualizer_text: string;
|
|
16
|
+
visualizer_wordcloud: string;
|
|
17
|
+
chartType_bar: string;
|
|
18
|
+
chartType_stackedbar: string;
|
|
19
|
+
chartType_doughnut: string;
|
|
20
|
+
chartType_pie: string;
|
|
21
|
+
chartType_scatter: string;
|
|
22
|
+
chartType_gauge: string;
|
|
23
|
+
chartType_bullet: string;
|
|
24
|
+
hideButton: string;
|
|
25
|
+
makePrivateButton: string;
|
|
26
|
+
makePublicButton: string;
|
|
27
|
+
showButton: string;
|
|
28
|
+
filter: string;
|
|
29
|
+
resetFilter: string;
|
|
30
|
+
changeLocale: string;
|
|
31
|
+
clearButton: string;
|
|
32
|
+
addElement: string;
|
|
33
|
+
defaultOrder: string;
|
|
34
|
+
ascOrder: string;
|
|
35
|
+
descOrder: string;
|
|
36
|
+
showMinorColumns: string;
|
|
37
|
+
otherCommentTitle: string;
|
|
38
|
+
showPercentages: string;
|
|
39
|
+
hidePercentages: string;
|
|
40
|
+
pdfDownloadCaption: string;
|
|
41
|
+
xlsxDownloadCaption: string;
|
|
42
|
+
csvDownloadCaption: string;
|
|
43
|
+
saveDiagramAsPNG: string;
|
|
44
|
+
hideEmptyAnswers: string;
|
|
45
|
+
showEmptyAnswers: string;
|
|
46
|
+
"topNValueText-1": string;
|
|
47
|
+
topNValueText5: string;
|
|
48
|
+
topNValueText10: string;
|
|
49
|
+
topNValueText20: string;
|
|
50
|
+
noVisualizerForQuestion: string;
|
|
51
|
+
noResults: string;
|
|
52
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare var norwegianStrings: {
|
|
2
|
+
groupButton: string;
|
|
3
|
+
ungroupButton: string;
|
|
4
|
+
selectButton: string;
|
|
5
|
+
hideColumn: string;
|
|
6
|
+
showColumn: string;
|
|
7
|
+
makePrivateColumn: string;
|
|
8
|
+
makePublicColumn: string;
|
|
9
|
+
moveToDetail: string;
|
|
10
|
+
showAsColumn: string;
|
|
11
|
+
filterPlaceholder: string;
|
|
12
|
+
removeRows: string;
|
|
13
|
+
showLabel: string;
|
|
14
|
+
entriesLabel: string;
|
|
15
|
+
visualizer_text: string;
|
|
16
|
+
visualizer_wordcloud: string;
|
|
17
|
+
chartType_bar: string;
|
|
18
|
+
chartType_stackedbar: string;
|
|
19
|
+
chartType_doughnut: string;
|
|
20
|
+
chartType_pie: string;
|
|
21
|
+
chartType_scatter: string;
|
|
22
|
+
chartType_gauge: string;
|
|
23
|
+
chartType_bullet: string;
|
|
24
|
+
hideButton: string;
|
|
25
|
+
makePrivateButton: string;
|
|
26
|
+
makePublicButton: string;
|
|
27
|
+
showButton: string;
|
|
28
|
+
resetFilter: string;
|
|
29
|
+
changeLocale: string;
|
|
30
|
+
clearButton: string;
|
|
31
|
+
addElement: string;
|
|
32
|
+
defaultOrder: string;
|
|
33
|
+
ascOrder: string;
|
|
34
|
+
descOrder: string;
|
|
35
|
+
showMinorColumns: string;
|
|
36
|
+
otherCommentTitle: string;
|
|
37
|
+
showPercentages: string;
|
|
38
|
+
hidePercentages: string;
|
|
39
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare var portugueseStrings: {
|
|
2
|
+
groupButton: string;
|
|
3
|
+
ungroupButton: string;
|
|
4
|
+
selectButton: string;
|
|
5
|
+
hideColumn: string;
|
|
6
|
+
showColumn: string;
|
|
7
|
+
makePrivateColumn: string;
|
|
8
|
+
makePublicColumn: string;
|
|
9
|
+
moveToDetail: string;
|
|
10
|
+
showAsColumn: string;
|
|
11
|
+
filterPlaceholder: string;
|
|
12
|
+
removeRows: string;
|
|
13
|
+
showLabel: string;
|
|
14
|
+
entriesLabel: string;
|
|
15
|
+
visualizer_text: string;
|
|
16
|
+
visualizer_wordcloud: string;
|
|
17
|
+
visualizer_histogram: string;
|
|
18
|
+
visualizer_number: string;
|
|
19
|
+
visualizer_choices: string;
|
|
20
|
+
visualizer_selectBase: string;
|
|
21
|
+
chartType_bar: string;
|
|
22
|
+
chartType_vbar: string;
|
|
23
|
+
chartType_stackedbar: string;
|
|
24
|
+
chartType_doughnut: string;
|
|
25
|
+
chartType_pie: string;
|
|
26
|
+
chartType_scatter: string;
|
|
27
|
+
chartType_gauge: string;
|
|
28
|
+
chartType_bullet: string;
|
|
29
|
+
hideButton: string;
|
|
30
|
+
makePrivateButton: string;
|
|
31
|
+
makePublicButton: string;
|
|
32
|
+
showButton: string;
|
|
33
|
+
filter: string;
|
|
34
|
+
resetFilter: string;
|
|
35
|
+
changeLocale: string;
|
|
36
|
+
en: string;
|
|
37
|
+
fr: string;
|
|
38
|
+
ru: string;
|
|
39
|
+
de: string;
|
|
40
|
+
clearButton: string;
|
|
41
|
+
addElement: string;
|
|
42
|
+
defaultOrder: string;
|
|
43
|
+
ascOrder: string;
|
|
44
|
+
descOrder: string;
|
|
45
|
+
showMinorColumns: string;
|
|
46
|
+
otherCommentTitle: string;
|
|
47
|
+
showPercentages: string;
|
|
48
|
+
hidePercentages: string;
|
|
49
|
+
pdfDownloadCaption: string;
|
|
50
|
+
xlsxDownloadCaption: string;
|
|
51
|
+
csvDownloadCaption: string;
|
|
52
|
+
saveDiagramAsPNG: string;
|
|
53
|
+
hideEmptyAnswers: string;
|
|
54
|
+
showEmptyAnswers: string;
|
|
55
|
+
"topNValueText-1": string;
|
|
56
|
+
topNValueText5: string;
|
|
57
|
+
topNValueText10: string;
|
|
58
|
+
topNValueText20: string;
|
|
59
|
+
hideMissingAnswers: string;
|
|
60
|
+
showMissingAnswers: string;
|
|
61
|
+
missingAnswersLabel: string;
|
|
62
|
+
noVisualizerForQuestion: string;
|
|
63
|
+
noResults: string;
|
|
64
|
+
showPerValues: string;
|
|
65
|
+
showPerColumns: string;
|
|
66
|
+
answer: string;
|
|
67
|
+
correctAnswer: string;
|
|
68
|
+
percent: string;
|
|
69
|
+
responses: string;
|
|
70
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare var russianStrings: {
|
|
2
|
+
groupButton: string;
|
|
3
|
+
ungroupButton: string;
|
|
4
|
+
selectButton: string;
|
|
5
|
+
hideColumn: string;
|
|
6
|
+
showColumn: string;
|
|
7
|
+
makePrivateColumn: string;
|
|
8
|
+
makePublicColumn: string;
|
|
9
|
+
moveToDetail: string;
|
|
10
|
+
filter: string;
|
|
11
|
+
showAsColumn: string;
|
|
12
|
+
visualizer_text: string;
|
|
13
|
+
visualizer_wordcloud: string;
|
|
14
|
+
chartType_bar: string;
|
|
15
|
+
chartType_stackedbar: string;
|
|
16
|
+
chartType_doughnut: string;
|
|
17
|
+
chartType_pie: string;
|
|
18
|
+
chartType_scatter: string;
|
|
19
|
+
chartType_gauge: string;
|
|
20
|
+
chartType_bullet: string;
|
|
21
|
+
hideButton: string;
|
|
22
|
+
showButton: string;
|
|
23
|
+
resetFilter: string;
|
|
24
|
+
changeLocale: string;
|
|
25
|
+
clearButton: string;
|
|
26
|
+
addElement: string;
|
|
27
|
+
defaultOrder: string;
|
|
28
|
+
ascOrder: string;
|
|
29
|
+
descOrder: string;
|
|
30
|
+
showMinorColumns: string;
|
|
31
|
+
otherCommentTitle: string;
|
|
32
|
+
noVisualizerForQuestion: string;
|
|
33
|
+
noResults: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "../localizationManager";
|
|
2
|
+
import "../analytics-localization/farsi";
|
|
3
|
+
import "../analytics-localization/french";
|
|
4
|
+
import "../analytics-localization/german";
|
|
5
|
+
import "../analytics-localization/norwegian";
|
|
6
|
+
import "../analytics-localization/portuguese";
|
|
7
|
+
import "../analytics-localization/russian";
|
|
8
|
+
import "../analytics-localization/dutch";
|
|
9
|
+
import "../analytics-localization/arabic";
|
|
10
|
+
import "../tables/extensions/rowextensions";
|
|
11
|
+
import "../tables/extensions/headerextensions";
|
|
12
|
+
import "../tables/extensions/columnextensions";
|
|
13
|
+
import "../tables/extensions/detailsextensions";
|
|
14
|
+
export * from "../tables/table";
|
|
15
|
+
export * from "../tables/tabulator";
|
|
16
|
+
export { TableExtensions } from "../tables/extensions/tableextensions";
|
|
17
|
+
export { DocumentHelper } from "../utils/index";
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
chartType_bar: string;
|
|
37
|
+
chartType_vbar: string;
|
|
38
|
+
chartType_stackedbar: string;
|
|
39
|
+
chartType_doughnut: string;
|
|
40
|
+
chartType_pie: string;
|
|
41
|
+
chartType_scatter: string;
|
|
42
|
+
chartType_gauge: string;
|
|
43
|
+
chartType_bullet: string;
|
|
44
|
+
hideButton: string;
|
|
45
|
+
makePrivateButton: string;
|
|
46
|
+
makePublicButton: string;
|
|
47
|
+
showButton: string;
|
|
48
|
+
filter: string;
|
|
49
|
+
resetFilter: string;
|
|
50
|
+
changeLocale: string;
|
|
51
|
+
en: string;
|
|
52
|
+
fr: string;
|
|
53
|
+
ru: string;
|
|
54
|
+
de: string;
|
|
55
|
+
clearButton: string;
|
|
56
|
+
addElement: string;
|
|
57
|
+
defaultOrder: string;
|
|
58
|
+
ascOrder: string;
|
|
59
|
+
descOrder: string;
|
|
60
|
+
showMinorColumns: string;
|
|
61
|
+
otherCommentTitle: string;
|
|
62
|
+
showPercentages: string;
|
|
63
|
+
hidePercentages: string;
|
|
64
|
+
pdfDownloadCaption: string;
|
|
65
|
+
xlsxDownloadCaption: string;
|
|
66
|
+
csvDownloadCaption: string;
|
|
67
|
+
saveDiagramAsPNG: string;
|
|
68
|
+
hideEmptyAnswers: string;
|
|
69
|
+
showEmptyAnswers: string;
|
|
70
|
+
"topNValueText-1": string;
|
|
71
|
+
topNValueText5: string;
|
|
72
|
+
topNValueText10: string;
|
|
73
|
+
topNValueText20: string;
|
|
74
|
+
hideMissingAnswers: string;
|
|
75
|
+
showMissingAnswers: string;
|
|
76
|
+
missingAnswersLabel: string;
|
|
77
|
+
noVisualizerForQuestion: string;
|
|
78
|
+
noResults: string;
|
|
79
|
+
showPerValues: string;
|
|
80
|
+
showPerColumns: string;
|
|
81
|
+
answer: string;
|
|
82
|
+
correctAnswer: string;
|
|
83
|
+
percent: string;
|
|
84
|
+
responses: string;
|
|
85
|
+
};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { MatrixRowModel, Question, QuestionCompositeModel, QuestionCustomModel, QuestionFileModel, QuestionMatrixDropdownModel, QuestionMatrixModel } 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 extends BaseColumn {
|
|
36
|
+
protected getName(): string;
|
|
37
|
+
protected getDisplayName(): string;
|
|
38
|
+
protected getDisplayValue(data: any, table: Table, options: ITableOptions): string;
|
|
39
|
+
}
|
|
40
|
+
export declare class MatrixColumn extends BaseColumn<QuestionMatrixModel> {
|
|
41
|
+
private row;
|
|
42
|
+
private valueName;
|
|
43
|
+
private valuePath;
|
|
44
|
+
constructor(question: QuestionMatrixModel, row: MatrixRowModel, table: Table);
|
|
45
|
+
protected getName(): string;
|
|
46
|
+
protected getDisplayName(): string;
|
|
47
|
+
protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
|
|
48
|
+
}
|
|
49
|
+
export declare class ImageColumn extends BaseColumn {
|
|
50
|
+
protected getDataType(): ColumnDataType;
|
|
51
|
+
}
|
|
52
|
+
export declare class FileColumn extends BaseColumn<QuestionFileModel> {
|
|
53
|
+
protected getDataType(): ColumnDataType;
|
|
54
|
+
protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
|
|
55
|
+
}
|
|
56
|
+
export declare class MatrixDropdownColumn extends BaseColumn<QuestionMatrixDropdownModel> {
|
|
57
|
+
protected row: any;
|
|
58
|
+
protected col: any;
|
|
59
|
+
private rowValue;
|
|
60
|
+
private colName;
|
|
61
|
+
constructor(question: QuestionMatrixDropdownModel, row: any, col: any, table: Table);
|
|
62
|
+
protected getName(): string;
|
|
63
|
+
protected getDisplayName(): string;
|
|
64
|
+
protected getDisplayValue(data: any, table: Table, options: ITableOptions): any;
|
|
65
|
+
}
|
|
66
|
+
export declare class CustomQuestionColumn extends BaseColumn<QuestionCustomModel> {
|
|
67
|
+
getCellData(table: Table, data: any): ICellData;
|
|
68
|
+
}
|
|
69
|
+
export declare class CompositeQuestionColumn extends BaseColumn<QuestionCompositeModel> {
|
|
70
|
+
getCellData(table: Table, data: any): ICellData;
|
|
71
|
+
}
|
|
@@ -0,0 +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
|
+
}
|