From fce5eedf82652de4088df9c5323f66e961aafd1f Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 11:27:30 +0300 Subject: [PATCH 001/224] docs --- .../0.0.120/Config.html | 1245 +++++ .../0.0.120/Config.js.html | 226 + .../0.0.120/FilterComponents.html | 1002 ++++ .../0.0.120/FilterComponents.js.html | 204 + .../0.0.120/Filters.html | 709 +++ .../0.0.120/Filters.js.html | 107 + .../0.0.120/Hierarchy.html | 1573 ++++++ .../0.0.120/Hierarchy.js.html | 256 + .../0.0.120/JSON.html | 653 +++ .../0.0.120/JSON.js.html | 128 + .../0.0.120/PageMaster.html | 878 +++ .../0.0.120/Page_comments.html | 2618 +++++++++ .../0.0.120/Page_comments.js.html | 323 ++ .../0.0.120/Page_dashboard.html | 4905 +++++++++++++++++ .../0.0.120/Page_dashboard.js.html | 463 ++ .../0.0.120/Page_detailed_analysis.html | 2821 ++++++++++ .../0.0.120/Page_detailed_analysis.js.html | 316 ++ .../0.0.120/Page_filters.html | 1781 ++++++ .../0.0.120/Page_filters.js.html | 190 + .../0.0.120/ParameterUtilities.html | 817 +++ .../0.0.120/ParameterUtilities.js.html | 152 + .../0.0.120/Parameters.html | 1748 ++++++ .../0.0.120/ReportMaster.html | 1005 ++++ .../0.0.120/Static_Config.js.html | 226 + .../0.0.120/Static_Filters.js.html | 107 + .../0.0.120/Static_PageMaster.js.html | 133 + .../0.0.120/Static_Page_comments.js.html | 328 ++ .../0.0.120/Static_Page_dashboard.js.html | 468 ++ .../Static_Page_detailed_analysis.js.html | 322 ++ .../0.0.120/Static_Page_filters.js.html | 196 + .../0.0.120/Static_Parameters.js.html | 208 + .../0.0.120/Static_ReportMaster.js.html | 121 + .../0.0.120/TADetailedAnalysisTable.html | 999 ++++ .../0.0.120/TADetailedAnalysisTable.js.html | 320 ++ .../0.0.120/TAFilters.html | 828 +++ .../0.0.120/TAFilters.js.html | 155 + .../0.0.120/TAFolder.html | 1012 ++++ .../0.0.120/TAFolder.js.html | 210 + .../0.0.120/TAHelper.html | 1121 ++++ .../0.0.120/TAHelper.js.html | 180 + .../0.0.120/TAHitlistUtils.html | 691 +++ .../0.0.120/TAHitlistUtils.js.html | 129 + .../0.0.120/TALibrary.html | 721 +++ .../0.0.120/TALibrary.js.html | 144 + .../0.0.120/TAMasks.html | 702 +++ .../0.0.120/TAMasks.js.html | 128 + .../0.0.120/TAParameters.html | 1516 +++++ .../0.0.120/TAParameters.js.html | 251 + .../0.0.120/TATableData.html | 459 ++ .../0.0.120/TATableData.js.html | 123 + .../0.0.120/TATableUtils.html | 2393 ++++++++ .../0.0.120/TATableUtils.js.html | 427 ++ .../0.0.120/TAThemeDistributionTable.html | 829 +++ .../0.0.120/TAThemeDistributionTable.js.html | 220 + .../0.0.120/TATiles.html | 519 ++ .../0.0.120/TATiles.js.html | 136 + .../0.0.120/TATopChangedTable.html | 862 +++ .../0.0.120/TATopChangedTable.js.html | 188 + .../0.0.120/TATopSentimentTable.html | 679 +++ .../0.0.120/TATopSentimentTable.js.html | 146 + .../0.0.120/global.html | 206 + .../0.0.120/index.html | 68 + 62 files changed, 42591 insertions(+) create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Config.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Config.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Filters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Filters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/JSON.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_comments.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_filters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Parameters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableData.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATiles.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/global.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/index.html diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Config.html b/docs/text-analytics-template-codelibrary/0.0.120/Config.html new file mode 100644 index 0000000..b320f80 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Config.html @@ -0,0 +1,1245 @@ + + + + + Config - Documentation + + + + + + + + + + + + + + + + +
+ +

Config

+ + + + + + + +
+ +
+ +

+ Config +

+ +

Contains configuration for the report.

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Config()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
DS_Main + + +String + + + +

value for datasource Id

CustomerLogo + + +String + + + +

link to the logo

CustomDateFormat + + +String + + + +

string that represents Date format which will be used in the report

TimeVariableId + + +String + + + +

date variable Id to use for trending tables and time variables. "interview_start" by default

VariablesToViewBy + + +Array.<String> + + + +

variables to break the detailed analysis table by. If not "null" will override values from survey tags

HitlistColumns + + +Array.<String> + + + +

variables to add to the end of the hitlist. If not "null" will override values from survey tags

FiltersQuestion + + +Array.<String> + + + +

variables for Filters page. If not "null" will override values from survey tags

Colors + + +Object + + + +

color palettes using in the report

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
DefaultColor + + +String + + + +

color for header

NegNeuPosPalette + + +Object + + + +

palette for negative - neutral - positive breaking

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
Negative + + +String + + + +

Negative color

Neutral + + +String + + + +

Neutral color

Positive + + +String + + + +

Positive color

+ +
+ +
SentimentRange + + +Object + + + +

negative - neutral - positive breaking by sentiment

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
Positive + + +Array.<Number> + + + +

array of positive sentiment's values

Neutral + + +Array.<Number> + + + +

array of neutral sentiment's values

Negative + + +Array.<Number> + + + +

array of negative sentiment's values

+ +
TAQuestions + + +Array.<Object> + + + +

array of Text Analytics configurations for each verbatim question

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
DatasourceId + + +String + + + +

override DS_Main from config

DatabaseSchemaId + + +Number + + + +

id of the schema containing Text Analytics model

DatabaseTableName + + +String + + + +

name of the table containing Text Analytics model

IdColumnName + + +String + + + +

name of the column containing category id. "id" by default

TextColumnName + + +String + + + +

name of the column containing category name. "__l9" by default

RelationshipColumnName + + +String + + + +

name of the column containing parent id for subcategories and attributes. "parent" by default

TextSeparator + + +String + + + +

symbol which separate Parent and children names in the flat category name

TAFolderId + + +String + + + +

unique Id for each Text Analytics set

TAQuestionName + + +String + + + +

verbatim variable id

TAModelNo + + +String + + + +

model number used for Text Analytics

TimeVariableId + + +String + + + +

date variable Id to use for trending tables and time variables. Overrides Config value

VariablesToViewBy + + +Array.<String> + + + +

variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config

HitlistColumns + + +Array.<String> + + + +

variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config

+ +
+ + + + + + +
+

Config class that doesn't have a constructor.

+
+ + + + + + + + + +
Example
+ +
static var DS_Main = "ds0";
    static var CustomerLogo = null;
    static var CustomDateFormat = 'dd-MMM-yyyy';
    static var TimeVariableId = 'interview_start';
    static var  VariablesToViewBy = ["type", "source"];
    static var  HitlistColumns = ["membership_level"];
    static var FiltersQuestions = null;

    static var Colors = {
           DefaultColor: "#ffff00",
           NegNeuPosPalette: {
               Negative: "#fd9900",
               Neutral: "#cdd1d9",
               Positive: "#7cc700"
           }
       };

    static var SentimentRange = {
           Positive: [8,9,10,11],
           Neutral: [5,6,7],
           Negative: [1,2,3,4]
       }

    static var TAQuestions = [
    {
        DatasourceId: "ds0",

        DatabaseSchemaId: 4909,
        DatabaseTableName: "Retail 785",
        RelationshipColumnName: "parent",
        TextSeparator: "|",

        TAFolderId: "why785",
        TAQuestionName: "why",
        TAModelNo: "785",

        TimeVariableId: 'interview_start'
    }
    ];
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) GetTALibrary()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function that returns TALibrary from Config

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(static) SetTaLibrary(globals)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function that processes config and cashes all Text Analitycs data

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Config.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Config.js.html new file mode 100644 index 0000000..0c6e46f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Config.js.html @@ -0,0 +1,226 @@ + + + + + Config.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Config.js

+ + + + + + + +
+
+
/**
+ * Config class that doesn't have a constructor.
+ * @class Config
+ * @classdesc Contains configuration for the report.
+ *
+ * @prop {String} DS_Main - value for datasource Id
+ * @prop {String} CustomerLogo - link to the logo
+ *
+ * @prop {String} CustomDateFormat - string that represents Date format which will be used in the report
+ * @prop {String} TimeVariableId - date variable Id to use for trending tables and time variables. "interview_start" by default
+ *
+ * @prop {String[]} VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags
+ * @prop {String[]} HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags
+ * @prop {String[]} FiltersQuestion - variables for Filters page. If not "null" will override values from survey tags
+ *
+ * @prop {Object} Colors - color palettes using in the report
+ * @prop {String} Colors.DefaultColor - color for header
+ * @prop {Object} Colors.NegNeuPosPalette - palette for negative - neutral - positive breaking
+ * @prop {String} Colors.NegNeuPosPalette.Negative - Negative color
+ * @prop {String} Colors.NegNeuPosPalette.Neutral - Neutral color
+ * @prop {String} Colors.NegNeuPosPalette.Positive - Positive color
+ *
+ * @prop {Object} SentimentRange - negative - neutral - positive breaking by sentiment
+ * @prop {Number[]} SentimentRange.Positive - array of positive sentiment's values
+ * @prop {Number[]} SentimentRange.Neutral - array of neutral sentiment's values
+ * @prop {Number[]} SentimentRange.Negative - array of negative sentiment's values
+ *
+ * @prop {Object[]} TAQuestions - array of Text Analytics configurations for each verbatim question
+ * @prop {String} TAQuestions.DatasourceId - override DS_Main from config
+ * @prop {Number} TAQuestions.DatabaseSchemaId - id of the schema containing Text Analytics model
+ * @prop {String} TAQuestions.DatabaseTableName - name of the table containing Text Analytics model
+ * @prop {String} TAQuestions.IdColumnName - name of the column containing category id. "id" by default
+ * @prop {String} TAQuestions.TextColumnName - name of the column containing category name. "__l9" by default
+ * @prop {String} TAQuestions.RelationshipColumnName - name of the column containing parent id for subcategories and attributes. "parent" by default
+ * @prop {String} TAQuestions.TextSeparator - symbol which separate Parent and children names in the flat category name
+ * @prop {String} TAQuestions.TAFolderId - unique Id for each Text Analytics set
+ * @prop {String} TAQuestions.TAQuestionName - verbatim variable id
+ * @prop {String}  TAQuestions.TAModelNo - model number used for Text Analytics
+ * @prop {String} TAQuestions.TimeVariableId - date variable Id to use for trending tables and time variables. Overrides Config value
+ * @prop {String[]} TAQuestions.VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config
+ * @prop {String[]} TAQuestions.HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config
+ *
+ * @example
+ *     static var DS_Main = "ds0";
+ *     static var CustomerLogo = null;
+ *     static var CustomDateFormat = 'dd-MMM-yyyy';
+ *     static var TimeVariableId = 'interview_start';
+ *     static var  VariablesToViewBy = ["type", "source"];
+ *     static var  HitlistColumns = ["membership_level"];
+ *     static var FiltersQuestions = null;
+ *
+ *     static var Colors = {
+ *            DefaultColor: "#ffff00",
+ *            NegNeuPosPalette: {
+ *                Negative: "#fd9900",
+ *                Neutral: "#cdd1d9",
+ *                Positive: "#7cc700"
+ *            }
+ *        };
+ *
+ *     static var SentimentRange = {
+ *            Positive: [8,9,10,11],
+ *            Neutral: [5,6,7],
+ *            Negative: [1,2,3,4]
+ *        }
+ *
+ *     static var TAQuestions = [
+ *     {
+ *         DatasourceId: "ds0",
+ *
+ *         DatabaseSchemaId: 4909,
+ *         DatabaseTableName: "Retail 785",
+ *         RelationshipColumnName: "parent",
+ *         TextSeparator: "|",
+ *
+ *         TAFolderId: "why785",
+ *         TAQuestionName: "why",
+ *         TAModelNo: "785",
+ *
+ *         TimeVariableId: 'interview_start'
+ *     }
+ *     ];
+ */
+public class Config {
+
+    static var DS_Main = "ds0";
+    static var CustomerLogo = null;
+    static var CustomDateFormat = 'dd-MMM-yyyy';
+    static var TimeVariableId = 'interview_start';
+    static var  VariablesToViewBy = ["type", "source"];
+    static var  HitlistColumns = ["membership_level"];
+    static var FiltersQuestions = null;
+
+    static var Colors = {
+        DefaultColor: "#ffff00",
+        NegNeuPosPalette: {
+            Negative: "#fd9900",
+            Neutral: "#cdd1d9",
+            Positive: "#7cc700"
+        }
+    };
+
+    static var SentimentRange = {
+        Positive: [8,9,10,11],
+        Neutral: [5,6,7],
+        Negative: [1,2,3,4]
+    }
+
+    static var TAQuestions = [
+
+
+        {
+            DatasourceId: "ds0",
+
+            DatabaseSchemaId: 4909,
+            DatabaseTableName: "Retail 785",
+            RelationshipColumnName: "parent",
+            TextSeparator: "|",
+
+            TAFolderId: "why785",
+            TAQuestionName: "why",
+            TAModelNo: "785",
+
+            TimeVariableId: 'interview_start'
+        }
+    ];
+
+    /**
+     * @memberof Config
+     * @private
+     * @static
+     * @prop _TALibrary
+     * @type {TALibrary}
+     * @description static variable containing all Text Analytics data
+     */
+    private static var _TALibrary: TALibrary;
+
+    /**
+     * @memberof Config
+     * @private
+     * @static
+     * @prop _haveTALibrary
+     * @type {boolean}
+     * @description static variable indicating that _TALibrary variable has been set
+     */
+    private static var _haveTALibrary;
+
+    /**
+     * @memberof Config
+     * @function SetTaLibrary
+     * @description function that processes config and cashes all Text Analitycs data
+     * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function SetTALibrary(globals){
+        if(!_haveTALibrary){
+            _TALibrary = new TALibrary(globals, TAQuestions);
+            _haveTALibrary = true;
+        }
+    }
+
+    /**
+     * @memberof Config
+     * @function GetTALibrary
+     * @description function that returns TALibrary from Config
+     */
+    static function GetTALibrary(){
+        return _TALibrary;
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html new file mode 100644 index 0000000..a3117ba --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html @@ -0,0 +1,1002 @@ + + + + + FilterComponents - Documentation + + + + + + + + + + + + + + + + +
+ +

FilterComponents

+ + + + + + + +
+ +
+ +

+ FilterComponents +

+ +

Class to process filters on Filter page

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new FilterComponents(globals, taLib)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

taLib + + +TALibrary + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

ClearFilters()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to set all filter parameters to null

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetAllAnsweredFilterCodes() → {Array.<Object>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get selected filters information

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + +
+
    +
  • array of Objects with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
  • +
+
+ + + +
+
+ Type +
+
+ +Array.<Object> + + +
+
+ + + + + + + + + +

GetFilterInformation(filterNumber) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get filter information

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + +
+
    +
  • Object with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
  • +
+
+ + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

GetFilterQuestion(filterNumber) → {Question}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Question object for the particular filter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Question + + +
+
+ + + + + + + + + +

GetFilterTitle(filterNumber) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Title for the particular filter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetGlobalsFilterExpression() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get filter expression for all selected filters

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html new file mode 100644 index 0000000..8c04147 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html @@ -0,0 +1,204 @@ + + + + + FilterComponents.js - Documentation + + + + + + + + + + + + + + + + +
+ +

FilterComponents.js

+ + + + + + + +
+
+
/**
+ * @class FilterComponents
+ * @classdesc Class to process filters on Filter page
+ *
+ * @constructs FilterComponents
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TALibrary} taLib
+ */
+
+class FilterComponents{
+    private var _globals;
+    private var _filterQuestions;
+    private var _parameterUtilities;
+
+
+    function FilterComponents(globals,taLib){
+        _globals = globals;
+        var questionsArray = taLib.GetFiltersQuestions()
+        _filterQuestions = [];
+        var project  = _globals.report.DataSource.GetProject(Config.DS_Main);
+        for( var i = 0; i < questionsArray.length; i++ ){
+            _filterQuestions.push(project.GetQuestion( questionsArray[i]))
+        }
+
+        _parameterUtilities = new ParameterUtilities(_globals);
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetFilterQuestion
+     * @description function to get Question object for the particular filter
+     * @param {Number} filterNumber
+     * @returns {Question}
+     */
+    function GetFilterQuestion(filterNumber){
+        var filterQuestion = false;
+        if(_filterQuestions.length > filterNumber && ( _filterQuestions[(filterNumber)].QuestionType == QuestionType.Multi || _filterQuestions[(filterNumber)].QuestionType == QuestionType.Single )){
+            var filterQuestion = _filterQuestions[(filterNumber)];
+        }
+
+        return filterQuestion
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetFilterTitle
+     * @description function to get Title for the particular filter
+     * @param {Number} filterNumber
+     * @returns {String}
+     */
+    function GetFilterTitle(filterNumber){
+        var filterQuestion = GetFilterQuestion(filterNumber);
+        var label = "";
+        if(filterQuestion)
+            var label = filterQuestion.Title ? filterQuestion.Title : filterQuestion.QuestionId;
+
+        return label
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetGlobalsFilterExpression
+     * @description function to get filter expression for all selected filters
+     * @returns {String}
+     */
+    function GetGlobalsFilterExpression(){
+        var fExpr;
+        var filterExpressionSegments = [];
+        var codes = GetAllAnsweredFilterCodes()
+        for (var i = 0; i < codes.length; i++){
+            if( codes[i].questionType == QuestionType.Multi ) {
+                filterExpressionSegments.push ('ANY(' + codes[i].questionId + ',"' + codes[i].values.join('","') + '")');
+            }
+            else
+            {
+                filterExpressionSegments.push ('IN(' + codes[i].questionId + ',"' + codes[i].values.join('","') + '")');
+            }
+        }
+
+        fExpr = filterExpressionSegments.join(" AND ")
+        return fExpr
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetAllAnsweredFilterCodes
+     * @description function to get selected filters information
+     * @returns {Object[]} - array of Objects with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
+     */
+    function GetAllAnsweredFilterCodes(){
+        var answeredCodes = [];
+        for (var i = 0; i < _filterQuestions.length; i++){
+            var codes = GetFilterInformation(i);
+            if(codes && codes.values.length > 0){
+                answeredCodes.push(codes);
+            }
+        }
+        return answeredCodes
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetFilterInformation
+     * @description function to get filter information
+     * @param {Number} filterNumber
+     * @returns {Object} - Object with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
+     */
+    function GetFilterInformation(filterNumber){
+        var result = false;
+        var parameterName = 'FILTER' + (filterNumber +1);
+        var codes = _parameterUtilities.GetParameterCodes(parameterName);
+        if ( codes.length > 0 ){
+            var fTitle = GetFilterTitle(filterNumber);
+            var fId = _filterQuestions[filterNumber].QuestionId;
+            var fType = _filterQuestions[filterNumber].QuestionType
+            result = {
+                questionTitle: fTitle,
+                questionId: fId,
+                questionType: fType,
+                values: [],
+                texts: []
+            };
+            for ( var i = 0; i < codes.length; i++){
+                result.values.push(codes[i]);
+                result.texts.push(_filterQuestions[filterNumber].GetAnswer(codes[i]).Text)
+            }
+        }
+        return result
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function ClearFilters
+     * @description function to set all filter parameters to null
+     */
+    function ClearFilters(){
+        for (var i = 0; i < _filterQuestions.length; i++){
+            _globals.state.Parameters["FILTER"+(i+1)] = null;
+        }
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Filters.html b/docs/text-analytics-template-codelibrary/0.0.120/Filters.html new file mode 100644 index 0000000..3d6c6cd --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Filters.html @@ -0,0 +1,709 @@ + + + + + Filters - Documentation + + + + + + + + + + + + + + + + +
+ +

Filters

+ + + + + + + +
+ +
+ +

+ Filters +

+ +

Static class for Reportal Filter Components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Filters()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) DateFilter(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to filtrate selected dates

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) FilterPageFilter(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to filtrate selected values on the filterpage

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TAHitlistSentimentFilter(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to filtrate only selected sentiment in the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TASelectedCategoryFilter(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to filtrate only selected category in the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Filters.js.html new file mode 100644 index 0000000..362ec77 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Filters.js.html @@ -0,0 +1,107 @@ + + + + + Filters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Filters.js

+ + + + + + + +
+
+
/**
+* @class Filters
+* @classdesc Static class for Reportal Filter Components
+*/
+class Filters {
+    /**
+     * @memberof Filters
+     * @function TASelectedCategoryFilter
+     * @description function to filtrate only selected category in the hitlist
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TASelectedCategoryFilter(context){
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetSelectedCategoryFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function TAHitlistSentimentFilter
+     * @description function to filtrate only selected sentiment in the hitlist
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TAHitlistSentimentFilter(context){
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT")
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function DateFilter
+     * @description function to filtrate selected dates
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function DateFilter(context){
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetDateFilterExpression("TA_DATE_FROM", "TA_DATE_TO");
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function FilterPageFilter
+     * @description function to filtrate selected values on the filterpage
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function FilterPageFilter(context){
+        var fExpr = "";
+        fExpr = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).GetGlobalsFilterExpression();
+        context.component.Expression = fExpr;
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html new file mode 100644 index 0000000..fa520df --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html @@ -0,0 +1,1573 @@ + + + + + Hierarchy - Documentation + + + + + + + + + + + + + + + + +
+ +

Hierarchy

+ + + + + + + +
+ +
+ +

+ Hierarchy +

+ +

Class to create Hierarchical structure from database table

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Hierarchy(globals, settings)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

settings + + +Object + + + +

object containing idColumnName, textColumnName, relationshipColumnName, textSeparator

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _createFlatEntry(row) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

creating object from db table row

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
row + + +Object + + + +

db table row

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

(private) _generateFlatList(rows)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

creating list of rows for variable _flat

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rows + + +Array.<Object> + + + +

list of rows from db table

+ + + + + + + + + + + + + + + + + + + + + +

(private) _getDataTable() → {DataTable}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get DataTable from DatabaseDesigner

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +DataTable + + +
+
+ + + + + + + + + +

(private) _mergeOptions(obj1, obj2) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to merge two sets of settings

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
obj1 + + +Object + + + +
obj2 + + +Object + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

(private) _setupHierarchy(level, parentObj)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

recursive function to parse db table to hierarchical view

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +Number + + + +
parentObj + + +Number + + + +
+ + + + + + + + + + + + + + + + + + + + + +

GetFlatArray() → {Number}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Array of rows from db table

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Number + + +
+
+ + + + + + + + + +

GetHierarchyArray() → {Array.<Object>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Array of hierarchical objects

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Object> + + +
+
+ + + + + + + + + +

GetLevelArray(level) → {Array.<Object>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Array of hierarchical objects of particular level

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Object> + + +
+
+ + + + + + + + + +

GetLevelsCount() → {Number}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Count of levels in the hierarchy

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Number + + +
+
+ + + + + + + + + +

GetObjectById(id) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get particular row from db table

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html new file mode 100644 index 0000000..8c4d7b9 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html @@ -0,0 +1,256 @@ + + + + + Hierarchy.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Hierarchy.js

+ + + + + + + +
+
+
/**
+ * @class Hierarchy
+ * @classdesc Class to create Hierarchical structure from database table
+ *
+ * @constructs Hierarchy
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {Object} settings - object containing idColumnName, textColumnName, relationshipColumnName, textSeparator
+ *
+ */
+class Hierarchy{
+    private var _globals;
+    private var _settings;
+
+    private var _hierarchy = [];
+    private var _levels = [];
+    private var _flat = [];
+    private var _flatObject = {};
+
+    private var _defaultSettings = {
+        idColumnName: "id",
+        textColumnName: "__l9",
+        relationshipColumnName: "parent",
+        textSeparator: "|"
+    };
+
+    function Hierarchy(globals, settings) {
+        _globals = globals;
+        _settings = _mergeOptions(_defaultSettings, settings);
+        globals.log.LogDebug(_settings.schemaId)
+        var dataTable = _getDataTable();
+        _generateFlatList(dataTable.Rows)
+        _setupHierarchy(0, null);
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _mergeOptions
+     * @description function to merge two sets of settings
+     * @param {Object} obj1
+     * @param {Object} obj2
+     * @returns {Object}
+     */
+    private function _mergeOptions(obj1, obj2) {
+        var obj3 = {};
+        for (var attrname in obj1) {
+            obj3[attrname] = obj1[attrname];
+        }
+        for (var attrname in obj2) {
+            obj3[attrname] = obj2[attrname];
+        }
+        return obj3;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _getDataTable
+     * @description function to get DataTable from DatabaseDesigner
+     * @returns {DataTable}
+     */
+    private function _getDataTable() {
+        var schema = _globals.confirmit.GetDBDesignerSchema(_settings.schemaId);
+        var table = schema.GetDBDesignerTable(_settings.tableName);
+        var dataTable = table.GetDataTable();
+        return dataTable;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _generateFlatList
+     * @description creating list of rows for variable _flat
+     * @param {Object[]} rows - list of rows from db table
+     */
+    private function _generateFlatList(rows) {
+        for(var i = 0; i < rows.Count; ++i) {
+            var flatEntry = _createFlatEntry(rows[i]);
+            _flat.push(flatEntry);
+        }
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _createFlatEntry
+     * @description creating object from db table row
+     * @param {Object} row - db table row
+     * @returns {Object}
+     */
+    private function _createFlatEntry(row) {
+        var name = TAHelper.GetSelfName(row[_settings.textColumnName], _settings.textSeparator, _globals.log);
+        var flatEntry = {
+            id: row[_settings.idColumnName],
+            text: row[_settings.textColumnName],
+            name: name,
+            parent: row[_settings.relationshipColumnName]
+        };
+        return flatEntry;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetHierarchyArray
+     * @description function to get Array of hierarchical objects
+     * @returns {Object[]}
+     */
+    function GetHierarchyArray() {
+        return _hierarchy;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetLevelArray
+     * @description function to get Array of hierarchical objects of particular level
+     * @param {Number} level
+     * @returns {Object[]}
+     */
+    function GetLevelArray(level) {
+        return _levels[level];
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetLevelsCount
+     * @description function to get Count of levels in the hierarchy
+     * @returns {Number}
+     */
+    function GetLevelsCount() {
+        return _levels.length
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetFlatArray
+     * @description function to get Array of rows from db table
+     * @returns {Number}
+     */
+    function GetFlatArray() {
+        return _flat;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetObjectById
+     * @description function to get particular row from db table
+     * @param {String} id
+     * @returns {Object}
+     */
+    function GetObjectById(id) {
+        return _flatObject[id];
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _setupHierarchy
+     * @description recursive function to parse db table to hierarchical view
+     * @param {Number} level
+     * @param {Number} parentObj
+     */
+    private function _setupHierarchy( level, parentObj ) {
+        var parentObjId = parentObj ? parentObj.id  : "";
+
+        for(var i = 0; i < _flat.length; ++i) {
+            if( ( !parentObj && !_flat[i].parent ) || parentObjId.CompareTo( _flat[i].parent ? _flat[i].parent : "" ) == 0) {
+                var newObj = {
+                    id: _flat[i].id,
+                    text: _flat[i].text,
+                    name: _flat[i].name,
+                    parent: parentObjId,
+                    subcells: []
+                };
+                if( _levels.length <= level ) {
+                    _levels.push( [] );
+                }
+                _setupHierarchy( (level+1), newObj );
+                if( !parentObj ) {
+                    _hierarchy.push( newObj );
+                }
+                else {
+                    parentObj.subcells.push( newObj );
+                }
+                _levels[ level ].push( newObj );
+                _flatObject[ newObj.id ] = newObj;
+            }
+        }
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/JSON.html b/docs/text-analytics-template-codelibrary/0.0.120/JSON.html new file mode 100644 index 0000000..851c4d0 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/JSON.html @@ -0,0 +1,653 @@ + + + + + JSON - Documentation + + + + + + + + + + + + + + + + +
+ +

JSON

+ + + + + + + +
+ +
+ +

+ JSON +

+ +

Class with functions Helping working with reportal objects like JSON objects

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new JSON()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private, static) _escapeEntities(str) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to replace some chars

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
str + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

(static) print(config, configName) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to create js variable from reportal object

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
config + + +Object + + + +

reportal object

configName + + +String + + + +

name for the js variable ('config' by degault)

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

(static) stringify(obj) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

implement JSON.stringify serialization

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
obj + + +Object + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html b/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html new file mode 100644 index 0000000..da81f68 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html @@ -0,0 +1,128 @@ + + + + + JSON.js - Documentation + + + + + + + + + + + + + + + + +
+ +

JSON.js

+ + + + + + + +
+
+
/**
+* @class JSON
+* @classdesc Class with functions Helping working with reportal objects like JSON objects
+*/
+class JSON
+{
+    /**
+     * @memberof JSON
+     * @function stringify
+     * @description implement JSON.stringify serialization
+     * @param {Object} obj
+     * @returns {String}
+     */
+    static function stringify(obj) {
+
+        var t = typeof (obj);
+        if (t != "object" || obj === null) {
+            // simple data type
+            if (t == "string") obj = '"'+ escapeEntities(obj) +'"';
+            else if(t=="number") obj = '"'+obj+'"';
+            return String(obj);
+        }
+        else {
+            // recurse array or object
+            var n, v, json = [], arr = (obj && obj.constructor == Array);
+            for (n in obj) {
+                v = obj[n]; t = typeof(v);
+                if (t == "string"){
+                    v = '"'+ _escapeEntities(v) +'"';
+                }
+                else if (t == "object" && v !== null) v = stringify(v);
+                json.push((arr ? "" : '"' + n + '":') + String(v));
+            }
+            return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
+        }
+    };
+
+    /**
+     * @memberof JSON
+     * @private
+     * @function _escapeEntities
+     * @description function to replace some chars
+     * @param {String} str
+     * @returns {String}
+     */
+    private static function _escapeEntities(str) {
+        var entitiesMap = {
+            '<': '&lt;',
+            '>': '&gt;',
+            '&': '&amp;',
+            '\"': '\\&quot;',
+            '\'':'&amp;apos;'
+        };
+        return str.replace(/[&<>\"\']/g, function(key) {
+            return entitiesMap[key];
+        });
+    }
+
+    /**
+     * @memberof JSON
+     * @function print
+     * @description function to create js variable from reportal object
+     * @param {Object} config - reportal object
+     * @param {String} configName - name for the js variable ('config' by degault)
+     * @returns {String}
+     */
+    static function print(config, configName){ // JSON.print prints JSON `config` to page as JavaScript variable with a specified `configName`
+        var varName = configName || 'config';
+        return '<script type="text/javascript">var '+ varName + '=' + stringify(config) +'</script>';
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html b/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html new file mode 100644 index 0000000..4762710 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html @@ -0,0 +1,878 @@ + + + + + PageMaster - Documentation + + + + + + + + + + + + + + + + +
+ +

PageMaster

+ + + + + + + +
+ +
+ +

+ PageMaster +

+ +

Static class for Reportal Page master components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new PageMaster()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) ClearFilters_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the Clear filters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) ClearFilters_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the clear filters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) Filters_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Ffilters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Filters_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the filters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) FilterSummary_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the filterSummary

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html new file mode 100644 index 0000000..5a12d0b --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html @@ -0,0 +1,2618 @@ + + + + + Page_comments - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_comments

+ + + + + + + +
+ +
+ +

+ Page_comments +

+ +

Static class for Reportal Page comments components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Page_comments()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) htlComments_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) htlComments_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) lstAttribute_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Attribute selector

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) lstCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Category selector

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) lstSubCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Sub Category selector

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtAttribute_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the the attributes list label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtAttribute_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the attributes selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtAttribute_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the sentiment selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Category selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtCategory_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the Category selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtCommentsScript_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the text

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtCommentsScript_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the script which processes hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtSentiment_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the the sentiment list label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtSubCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the the sub category list label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtSubCategory_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the sub Category selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.js.html new file mode 100644 index 0000000..aaa23ea --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.js.html @@ -0,0 +1,323 @@ + + + + + Page_comments.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_comments.js

+ + + + + + + +
+
+
/**
+ * @class Page_comments
+ * @classdesc Static class for Reportal Page comments components
+ */
+class Page_comments{
+    private static var _filterComponents;
+    private static var _folder;
+    private static const _defaultParameters = [
+        {
+            Id: "TA_TOP_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_SUB_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_ATTRIBUTES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_COMMENTS_SENTIMENT",
+            Value: "emptyv"
+        }
+    ];
+
+    /**
+     * @memberof Page_comments
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        if(context.component.SubmitSource == "ClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
+        }
+        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "comments");
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        _folder = Config.GetTALibrary().GetFolderById();
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function htlComments_Hide
+     * @description function to hide the hitlist
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function htlComments_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function htlComments_Render
+     * @description function to render the hitlist
+     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function htlComments_Render(context){
+        var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component);
+        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+
+        if( selectedCategory ){
+            htlComments.AddTAColumn("categorysentiment", false, selectedCategory);
+        }
+
+        htlComments.AddTAColumn();
+        htlComments.AddColumn(_folder.GetTimeVariableId(), true);
+        htlComments.AddTAColumn("overallsentiment");
+        htlComments.AddTAColumn("categories");
+        htlComments.AddConfiguredColumns();
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCommentsScript_Hide
+     * @description function to hide the text
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCommentsScript_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCommentsScript_Render
+     * @description function to render the script which processes hitlist
+     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCommentsScript_Render(context){
+        var hitlistInit = "<script>"+
+                "Y.Global.on('hitlistloaded', function (e) {  "+
+                    "var upgradedHitlist = new Reportal.Hitlist({"+
+                        "hitlist: document.querySelector('.reportal-hitlist-container'),"+
+                        "headers: hitlistHeaders"+
+                    "});"+
+                "});"+
+            "</script>";
+        var hitlistHeaders = {};
+
+        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
+        if( selectedCategory){
+            hitlistHeaders["categorySentiment"]= _folder.GetQuestionId("categorysentiment")+"_"+selectedCategory;
+        }
+
+        hitlistHeaders["verbatim"] = _folder.GetQuestionId();
+
+        hitlistHeaders["date"] = _folder.GetTimeVariableId() ? _folder.GetTimeVariableId() : "interview_start";
+
+        hitlistHeaders["categories"] = _folder.GetQuestionId("categories");
+
+        hitlistHeaders["overallSentiment"] = _folder.GetQuestionId("overallSentiment");
+
+        hitlistHeaders["other"] = [];
+
+        var hitlistColumns = _folder.GetHitlistColumns();
+        for(var i = 0 ; i < hitlistColumns.length; i++){
+            hitlistHeaders["other"].push(hitlistColumns[i]);
+        }
+        context.component.Output.Append(JSON.print(hitlistHeaders, "hitlistHeaders"));
+        context.component.Output.Append(hitlistInit);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstCategory_Hide
+     * @description function to hide the Category selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstCategory_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstSubCategory_Hide
+     * @description function to hide the Sub Category selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstSubCategory_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstAttribute_Hide
+     * @description function to hide the Attribute selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstAttribute_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCategory_Hide
+     * @description function to hide the Category selector label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCategory_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCategory_Render
+     * @description function to render the Category selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCategory_Render(context){
+        var label = "Category";
+        context.component.Output.Append(label);
+    }
+
+
+    /**
+     * @memberof Page_comments
+     * @function txtSubCategory_Hide
+     * @description function to hide the the sub category list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtSubCategory_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtSubCategory_Render
+     * @description function to render the sub Category selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtSubCategory_Render(context){
+        var label = "Sub category";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Hide
+     * @description function to hide the the attributes list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtAttribute_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Render
+     * @description function to render the attributes selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtAttribute_Render(context){
+        var label = "Attribute";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtSentiment_Hide
+     * @description function to hide the the sentiment list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtSentiment_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Render
+     * @description function to render the sentiment selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtSentiment_Render(context){
+        var label = "Sentiment";
+        context.component.Output.Append(label);
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html new file mode 100644 index 0000000..fded77b --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html @@ -0,0 +1,4905 @@ + + + + + Page_dashboard - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_dashboard

+ + + + + + + +
+ +
+ +

+ Page_dashboard +

+ +

Static class for Reportal Page dashboard components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Page_dashboard()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private, static) _renderTblMostChanged(context, sentiment)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

sentiment + + +String + + + +

"neg" or "pos"

+ + + + + + + + + + + + + + + + + + + + + +

(private, static) _renderTblMostSentiment(context, sentiment)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

sentiment + + +String + + + +

"neg" or "pos"

+ + + + + + + + + + + + + + + + + + + + + +

(static) Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostDeclined_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblMostDeclined_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostImproved_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblMostImproved_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostNegative_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblMostNegative_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostPositive_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblMostPositive_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblThemeDistribution_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblThemeDistribution_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtComparePeriods_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtComparePeriods_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtLevel_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtLevel_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostChangedInfo_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostChangedInfo_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostDeclined_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostDeclined_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostImproved_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostImproved_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostNegative_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostNegative_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostPositive_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostPositive_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtThemeDistribution_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtThemeDistribution_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtThemeDistributionScript_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtThemeDistributionScript_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtViewSentiment_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtViewSentiment_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.js.html new file mode 100644 index 0000000..48083e5 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.js.html @@ -0,0 +1,463 @@ + + + + + Page_dashboard.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_dashboard.js

+ + + + + + + +
+
+
/**
+ * @class Page_dashboard
+ * @classdesc Static class for Reportal Page dashboard components
+ */
+class Page_dashboard{
+    private static var _folder;
+    private static const _defaultParameters = [
+        {
+            Id: "TA_LEVEL",
+            Value: "0"
+        },
+
+        {
+            Id: "TA_COMPARE_PERIODS",
+            Value: "qoq"
+        },
+
+        {
+            Id: "TA_VIEW_SENTIMENT",
+            Value: "emptyv"
+        }
+    ];
+
+    /**
+     * @memberof Page_dashboard
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        if(context.component.SubmitSource == "ClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
+        }
+        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard");
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        _folder = Config.GetTALibrary().GetFolderById();
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @private
+     * @function _renderTblMostSentiment
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} sentiment - "neg" or "pos"
+     */
+    private static function _renderTblMostSentiment(context, sentiment){
+        var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
+        var globals = TAHelper.GetGlobals(context);
+        var table = context.component;
+        var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level);
+        topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @private
+     * @function _renderTblMostChanged
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} sentiment - "neg" or "pos"
+     */
+    private static function _renderTblMostChanged(context, sentiment){
+        var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
+        var globals = TAHelper.GetGlobals(context);
+        var table = context.component;
+        var period = context.state.Parameters.IsNull("TA_COMPARE_PERIODS") ? "qoq" : context.state.Parameters.GetString("TA_COMPARE_PERIODS");
+
+        var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period);
+        topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostPositive_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostPositive_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostPositive_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostPositive_Render(context){
+        _renderTblMostSentiment(context, true);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostNegative_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostNegative_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostNegative_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostNegative_Render(context){
+        _renderTblMostSentiment(context, false);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostImproved_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostImproved_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostImproved_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostImproved_Render(context){
+        _renderTblMostChanged(context, true);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostDeclined_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostDeclined_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostDeclined_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostDeclined_Render(context){
+        _renderTblMostChanged(context, false);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblThemeDistribution_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblThemeDistribution_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblThemeDistribution_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblThemeDistribution_Render(context){
+        var globals = TAHelper.GetGlobals(context);
+        var table = context.component;
+        var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT");
+
+        var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment);
+        themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table"]);
+        themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_TOP_CATEGORIES_SINGLE", "detailed_analysis");
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtLevel_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtLevel_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtLevel_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtLevel_Render(context){
+        var label = "View by";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostPositive_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostPositive_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostPositive_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostPositive_Render(context){
+        var label = "Top 5 most positive themes";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostNegative_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostNegative_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostNegative_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostNegative_Render(context){
+        var label = "Top 5 most negative themes";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtComparePeriods_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtComparePeriods_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtComparePeriods_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtComparePeriods_Render(context){
+        var label = "Compare";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostImproved_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostImproved_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostImproved_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostImproved_Render(context){
+        var label = "Top 5 most improved themes";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostChangedInfo_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostChangedInfo_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostChangedInfo_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostChangedInfo_Render(context){
+        var label = "Changes that are not statistically significant are marked in grey";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostDeclined_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostDeclined_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostDeclined_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostDeclined_Render(context){
+        var label = "Top 5 most declined themes";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistribution_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtThemeDistribution_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistribution_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtThemeDistribution_Render(context){
+        var label = "Theme distribution";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtViewSentiment_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtViewSentiment_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtViewSentiment_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtViewSentiment_Render(context){
+        var label = "View";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistributionScript_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtThemeDistributionScript_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistributionScript_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtThemeDistributionScript_Render(context){
+        var headers;
+        var hierarhy = _folder.GetHierarchy().GetHierarchyArray()
+
+        headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders();
+        var upgradeText = "<script type=\"text/javascript\">"+
+                "var upgradedTable = new Reportal.AggregatedTable("+
+                    "{"+
+                        "table: document.querySelector('table.reportal-hierarchy-table'),"+
+                        "hierarchy:"+
+                            "{"+
+                                "hierarchy: "+JSON.stringify(hierarhy)+","+
+                                "rowheaders:"+JSON.stringify(headers)+","+
+                                "search:{enabled:true}"+
+                            "},"+
+                        "fixedHeader: {hasListeners:false}"+
+                    "}"+
+                ")"+
+            "</script>";
+
+        context.component.Output.Append(upgradeText);
+        context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html new file mode 100644 index 0000000..56ad6f9 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html @@ -0,0 +1,2821 @@ + + + + + Page_detailed_analysis - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_detailed_analysis

+ + + + + + + +
+ +
+ +

+ Page_detailed_analysis +

+ +

Static class for Reportal Page detailed_analysis components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Page_detailed_analysis()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private, static) _buildTATiles(context, type)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

type + + +String + + + +

"all", "neg", "neu", "pos"

+ + + + + + + + + + + + + + + + + + + + + +

(static) Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblDetailedAnalysis_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblDetailedAnalysis_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostPositive_RendertblNeutralCommentsTile_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblNegativeCommentsTile_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblNegativeCommentsTile_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblNeutralCommentsTile_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblPositiveCommentsTile_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblPositiveCommentsTile_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblTotalCommentsTile_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblTotalCommentsTile_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtCategory_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtDetailedAnalysisScript_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtDetailedAnalysisScript_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtViewBy_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtViewBy_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.js.html new file mode 100644 index 0000000..35147b6 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.js.html @@ -0,0 +1,316 @@ + + + + + Page_detailed_analysis.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_detailed_analysis.js

+ + + + + + + +
+
+
/**
+ * @class Page_detailed_analysis
+ * @classdesc Static class for Reportal Page detailed_analysis components
+ */
+class Page_detailed_analysis{
+    private static var _folder;
+    private static const _defaultParameters = [
+        {
+            Id: "TA_TOP_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+
+        {
+            Id: "TA_DISTRIBUTION_TOGGLE",
+            Value: "0"
+        },
+
+        {
+            Id: "TA_VIEW_BY",
+            Value: "emptyv"
+        }
+    ];
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        if(context.component.SubmitSource == "ClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
+        }
+        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "detailed_analysis");
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        _folder = Config.GetTALibrary().GetFolderById();
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @private
+     * @function _buildTATiles
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} type - "all", "neg", "neu", "pos"
+     */
+    static private function _buildTATiles(context, type){
+        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
+        new TATiles(TAHelper.GetGlobals(context), _folder, context.component, type, selectedCategory, distribution)
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblTotalCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblTotalCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblTotalCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblTotalCommentsTile_Render(context){
+        _buildTATiles(context, "all");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblPositiveCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblPositiveCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblPositiveCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblPositiveCommentsTile_Render(context){
+        _buildTATiles(context, "pos");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNeutralCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblNeutralCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblMostPositive_RendertblNeutralCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblNeutralCommentsTile_Render(context){
+        _buildTATiles(context, "neu");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNegativeCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblNegativeCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNegativeCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblNegativeCommentsTile_Render(context){
+        _buildTATiles(context, "neg");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblDetailedAnalysis_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblDetailedAnalysis_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblDetailedAnalysis_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblDetailedAnalysis_Render(context){
+        var globals = TAHelper.GetGlobals(context);
+        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        var selectedQuestion = context.state.Parameters.GetString("TA_VIEW_BY");
+        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
+        var hideEmptyRows = new ParameterUtilities(globals).GetCheckedValues("TA_HIDE_EMPTY_ROWS");
+        var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, selectedCategory, selectedQuestion, distribution);
+        detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]);
+        detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0));
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtDetailedAnalysisScript_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtDetailedAnalysisScript_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtDetailedAnalysisScript_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtDetailedAnalysisScript_Render(context){
+        var headers;
+        var hierarhy = _folder.GetHierarchy().GetHierarchyArray();
+        var taTableData = new TATableData(TAHelper.GetGlobals(context), "tblDetailedAnalysis");
+        var headers = taTableData.GetTableRowHeaders();
+        if( headers.length > 0){
+            var blocks = taTableData.GetBlocks();
+
+            var upgradeText = "<script type=\"text/javascript\">"+
+                    "var upgradedTable = new Reportal.AggregatedTable("+
+                        "{"+
+                            "table: document.querySelector('table.reportal-hierarchy-table'),"+
+                            "hierarchy:"+
+                                "{"+
+                                    "hierarchy: "+JSON.stringify(hierarhy)+","+
+                                    "rowheaders:"+JSON.stringify(headers)+","+
+                                    "search:{enabled:true},"+
+                                    "blocks:"+JSON.stringify(blocks)+","+
+                                    "column:"+ ( blocks.length > 0 ? 1 : 0 ) +""+
+                                "},"+
+                            "sorting:"+
+                                "{"+
+                                    "enabled: true,"+
+                                    "excludedColumns: [6]"+
+                                "},"+
+                            "fixedHeader: {hasListeners:false}"+
+                        "}"+
+                    ")"+
+                "</script>";
+
+            context.component.Output.Append(upgradeText);
+            context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
+            context.component.Output.Append(JSON.print(headers,"rowheaders"));
+            context.component.Output.Append(JSON.print(blocks,"blocks"));
+        }
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtViewBy_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtViewBy_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtViewBy_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtViewBy_Render(context){
+        context.component.Output.Append("View by:");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtCategory_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCategory_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtCategory_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCategory_Render(context){
+        context.component.Output.Append("Category");
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html new file mode 100644 index 0000000..4dbd73f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html @@ -0,0 +1,1781 @@ + + + + + Page_filters - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_filters

+ + + + + + + +
+ +
+ +

+ Page_filters +

+ +

Static class for Reportal Page filters components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Page_filters()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) btnClearFilters_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnClearFilters_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) btnSave_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnSave_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) btnSaveReturn_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnSaveReturn_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) lstFilterList_Hide(context, filterNumber) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtFilterTitle_Hide(context, filterNumber) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtFilterTitle_Render(context, filterNumber)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.js.html new file mode 100644 index 0000000..48e700b --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.js.html @@ -0,0 +1,190 @@ + + + + + Page_filters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_filters.js

+ + + + + + + +
+
+
/**
+ * @class Page_filters
+ * @classdesc Static class for Reportal Page filters components
+ */
+class Page_filters{
+    private static var _filterComponents;
+    private static var _folder;
+    private static const _defaultParameters = [];
+
+    /**
+     * @memberof Page_filters
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        if(context.component.SubmitSource == "btnClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
+        }
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        _folder = Config.GetTALibrary().GetFolderById();
+        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSaveReturn_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnSaveReturn_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSaveReturn_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnSaveReturn_Render(context){
+        context.component.Label = new Label(9,"Save and Return");
+        context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE");
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSave_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnSave_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSave_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnSave_Render(context){
+        context.component.Label = new Label(9,"Save");
+        context.component.TargetPage = "filters";
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnClearFilters_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnClearFilters_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnClearFilters_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnClearFilters_Render(context){
+    context.component.Label = new Label(9,"Clear Filters");
+    context.component.TargetPage = "filters";
+}
+
+    /**
+     * @memberof Page_filters
+     * @function txtFilterTitle_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     * @returns {Boolean}
+     */
+    static function txtFilterTitle_Hide(context, filterNumber){
+    var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
+        return !filterQuestion
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function txtFilterTitle_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     */
+    static function txtFilterTitle_Render(context, filterNumber){
+    var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1);
+    if(filterTitle)
+        context.component.Output.Append(filterTitle);
+
+}
+    /**
+     * @memberof Page_filters
+     * @function lstFilterList_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     * @returns {Boolean}
+     */
+    static function lstFilterList_Hide(context, filterNumber){
+        var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
+        return !filterQuestion
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html new file mode 100644 index 0000000..cc5117a --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html @@ -0,0 +1,817 @@ + + + + + ParameterUtilities - Documentation + + + + + + + + + + + + + + + + +
+ +

ParameterUtilities

+ + + + + + + +
+ +
+ +

+ ParameterUtilities +

+ +

Class to work with different parameters

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new ParameterUtilities(globals)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetCheckedValues(parameterName) → {Array.<ParameterValueResponse>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get checked values for the multi string response parameter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameterName + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<ParameterValueResponse> + + +
+
+ + + + + + + + + +

GetCheckedValues(valuesArray)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to set default value to parameters if they haven't been selected

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
valuesArray + + +Array.<Object> + + + +

array of objects like {Id: "ParameterId", Value: "defaultCode"}

+ + + + + + + + + + + + + + + + + + + + + +

GetCheckedValues(parameterName) → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get checked codes for the multi string response parameter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameterName + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

LoadParameterValues(parameter, parameterValues)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to load possible values to string response parameter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
parameterValues + + +Array.<Object> + + + +

array of values like {Code: "AnswerCode", Label: "AnswerText"}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html new file mode 100644 index 0000000..a6aa488 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html @@ -0,0 +1,152 @@ + + + + + ParameterUtilities.js - Documentation + + + + + + + + + + + + + + + + +
+ +

ParameterUtilities.js

+ + + + + + + +
+
+
/**
+ * @class ParameterUtilities
+ * @classdesc Class to work with different parameters
+ *
+ * @constructs ParameterUtilities
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ */
+class ParameterUtilities {
+    private var _globals;
+
+    function ParameterUtilities(globals) {
+        _globals=globals
+    }
+
+    /**
+     * @memberof ParameterUtilities
+     * @instance
+     * @function LoadParameterValues
+     * @description function to load possible values to string response parameter
+     * @param {Parameter} parameter
+     * @param {Object[]} parameterValues - array of values like {Code: "AnswerCode", Label: "AnswerText"}
+     */
+    function LoadParameterValues(parameter, parameterValues) {
+        for (var i=0; i<parameterValues.length; ++i) {
+            var parameterValueResponse : ParameterValueResponse = new ParameterValueResponse();
+            parameterValueResponse.StringKeyValue = parameterValues[i].Code;
+
+            var labels : LanguageTextCollection = new LanguageTextCollection();
+            labels.Add(new LanguageText(_globals.report.CurrentLanguage, parameterValues[i].Label));
+
+            parameterValueResponse.LocalizedLabel = new Label(labels);
+            parameterValueResponse.StringValue = parameterValues[i].Label;
+
+            parameter.Items.Add(parameterValueResponse);
+        }
+    }
+
+    /**
+     * @memberof ParameterUtilities
+     * @instance
+     * @function GetCheckedValues
+     * @description function to get checked values for the multi string response parameter
+     * @param {String} parameterName
+     * @returns {ParameterValueResponse[]}
+     */
+    function GetCheckedValues(parameterName){
+        var values = []
+        if(!_globals.state.Parameters.IsNull(parameterName))
+        {
+            var selected:ParameterValueMultiSelect = _globals.state.Parameters[parameterName],
+            response: ParameterValueResponse;
+            for(var i=0;i<selected.Count;i++) // add selected columns to the new column set
+            {
+                response = selected[i];
+                values.push(response);
+            }
+        }
+        return values
+    }
+
+    /**
+     * @memberof ParameterUtilities
+     * @instance
+     * @function GetCheckedValues
+     * @description function to set default value to parameters if they haven't been selected
+     * @param {Object[]} valuesArray - array of objects like {Id: "ParameterId", Value: "defaultCode"}
+     */
+    function SetDefaultParameterValues(valuesArray){
+        for( var i = 0; i < valuesArray.length; i++ ){
+            if(!_globals.state.Parameters.GetString(valuesArray[i].Id))
+                _globals.state.Parameters[valuesArray[i].Id] = new ParameterValueResponse(valuesArray[i].Value);
+        }
+    }
+
+    /**
+     * @memberof ParameterUtilities
+     * @instance
+     * @function GetCheckedValues
+     * @description function to get checked codes for the multi string response parameter
+     * @param {String} parameterName
+     * @returns {String[]}
+     */
+    function GetParameterCodes(parameterName) {
+        var parameterValues : ParameterValueMultiSelect = _globals.state.Parameters[parameterName];
+        var codes = [];
+        if(parameterValues != null) {
+            for (var enumerator : Enumerator = new Enumerator(parameterValues) ; !enumerator.atEnd(); enumerator.moveNext()) {
+                var parameterValue : ParameterValueResponse = enumerator.item();
+                codes.push(parameterValue.StringKeyValue);
+            }
+
+        }
+        return codes;
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html b/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html new file mode 100644 index 0000000..c0b8784 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html @@ -0,0 +1,1748 @@ + + + + + Parameters - Documentation + + + + + + + + + + + + + + + + +
+ +

Parameters

+ + + + + + + +
+ +
+ +

+ Parameters +

+ +

Static class for Reportal parameter components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Parameters()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) FILTER_Domain(context, filterNumber)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_ATTRIBUTES_SINGLE_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_ATTRIBUTES_SINGLE_Mask(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_COMPARE_PERIODS_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_DISTRIBUTION_TOGGLE_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_HIDE_EMPTY_ROWS_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_LEVEL_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_SUB_CATEGORIES_SINGLE_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_SUB_CATEGORIES_SINGLE_Mask(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_TOP_CATEGORIES_SINGLE_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_VIEW_BY_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_VIEW_SENTIMENT_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html b/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html new file mode 100644 index 0000000..5fc308f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html @@ -0,0 +1,1005 @@ + + + + + ReportMaster - Documentation + + + + + + + + + + + + + + + + +
+ +

ReportMaster

+ + + + + + + +
+ +
+ +

+ ReportMaster +

+ +

Static class for Report Master components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new ReportMaster()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) btnApplyDateFilter_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnApplyDateFilter_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) btnClearDateFilter_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnClearDateFilter_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) CustomerLogo_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) CustomerLogo_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html new file mode 100644 index 0000000..fdf7456 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html @@ -0,0 +1,226 @@ + + + + + Static/Config.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Config.js

+ + + + + + + +
+
+
/**
+ * Config class that doesn't have a constructor.
+ * @class Config
+ * @classdesc Contains configuration for the report.
+ *
+ * @prop {String} DS_Main - value for datasource Id
+ * @prop {String} CustomerLogo - link to the logo
+ *
+ * @prop {String} CustomDateFormat - string that represents Date format which will be used in the report
+ * @prop {String} TimeVariableId - date variable Id to use for trending tables and time variables. "interview_start" by default
+ *
+ * @prop {String[]} VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags
+ * @prop {String[]} HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags
+ * @prop {String[]} FiltersQuestion - variables for Filters page. If not "null" will override values from survey tags
+ *
+ * @prop {Object} Colors - color palettes using in the report
+ * @prop {String} Colors.DefaultColor - color for header
+ * @prop {Object} Colors.NegNeuPosPalette - palette for negative - neutral - positive breaking
+ * @prop {String} Colors.NegNeuPosPalette.Negative - Negative color
+ * @prop {String} Colors.NegNeuPosPalette.Neutral - Neutral color
+ * @prop {String} Colors.NegNeuPosPalette.Positive - Positive color
+ *
+ * @prop {Object} SentimentRange - negative - neutral - positive breaking by sentiment
+ * @prop {Number[]} SentimentRange.Positive - array of positive sentiment's values
+ * @prop {Number[]} SentimentRange.Neutral - array of neutral sentiment's values
+ * @prop {Number[]} SentimentRange.Negative - array of negative sentiment's values
+ *
+ * @prop {Object[]} TAQuestions - array of Text Analytics configurations for each verbatim question
+ * @prop {String} TAQuestions.DatasourceId - override DS_Main from config
+ * @prop {Number} TAQuestions.DatabaseSchemaId - id of the schema containing Text Analytics model
+ * @prop {String} TAQuestions.DatabaseTableName - name of the table containing Text Analytics model
+ * @prop {String} TAQuestions.IdColumnName - name of the column containing category id. "id" by default
+ * @prop {String} TAQuestions.TextColumnName - name of the column containing category name. "__l9" by default
+ * @prop {String} TAQuestions.RelationshipColumnName - name of the column containing parent id for subcategories and attributes. "parent" by default
+ * @prop {String} TAQuestions.TextSeparator - symbol which separate Parent and children names in the flat category name
+ * @prop {String} TAQuestions.TAFolderId - unique Id for each Text Analytics set
+ * @prop {String} TAQuestions.TAQuestionName - verbatim variable id
+ * @prop {String}  TAQuestions.TAModelNo - model number used for Text Analytics
+ * @prop {String} TAQuestions.TimeVariableId - date variable Id to use for trending tables and time variables. Overrides Config value
+ * @prop {String[]} TAQuestions.VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config
+ * @prop {String[]} TAQuestions.HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config
+ *
+ * @example
+ *     static var DS_Main = "ds0";
+ *     static var CustomerLogo = null;
+ *     static var CustomDateFormat = 'dd-MMM-yyyy';
+ *     static var TimeVariableId = 'interview_start';
+ *     static var  VariablesToViewBy = ["type", "source"];
+ *     static var  HitlistColumns = ["membership_level"];
+ *     static var FiltersQuestions = null;
+ *
+ *     static var Colors = {
+ *            DefaultColor: "#ffff00",
+ *            NegNeuPosPalette: {
+ *                Negative: "#fd9900",
+ *                Neutral: "#cdd1d9",
+ *                Positive: "#7cc700"
+ *            }
+ *        };
+ *
+ *     static var SentimentRange = {
+ *            Positive: [8,9,10,11],
+ *            Neutral: [5,6,7],
+ *            Negative: [1,2,3,4]
+ *        }
+ *
+ *     static var TAQuestions = [
+ *     {
+ *         DatasourceId: "ds0",
+ *
+ *         DatabaseSchemaId: 4909,
+ *         DatabaseTableName: "Retail 785",
+ *         RelationshipColumnName: "parent",
+ *         TextSeparator: "|",
+ *
+ *         TAFolderId: "why785",
+ *         TAQuestionName: "why",
+ *         TAModelNo: "785",
+ *
+ *         TimeVariableId: 'interview_start'
+ *     }
+ *     ];
+ */
+public class Config {
+
+    static var DS_Main = "ds0";
+    static var CustomerLogo = null;
+    static var CustomDateFormat = 'dd-MMM-yyyy';
+    static var TimeVariableId = 'interview_start';
+    static var  VariablesToViewBy = ["type", "source"];
+    static var  HitlistColumns = ["membership_level"];
+    static var FiltersQuestions = null;
+
+    static var Colors = {
+        DefaultColor: "#ffff00",
+        NegNeuPosPalette: {
+            Negative: "#fd9900",
+            Neutral: "#cdd1d9",
+            Positive: "#7cc700"
+        }
+    };
+
+    static var SentimentRange = {
+        Positive: [8,9,10,11],
+        Neutral: [5,6,7],
+        Negative: [1,2,3,4]
+    }
+
+    static var TAQuestions = [
+
+
+        {
+            DatasourceId: "ds0",
+
+            DatabaseSchemaId: 4909,
+            DatabaseTableName: "Retail 785",
+            RelationshipColumnName: "parent",
+            TextSeparator: "|",
+
+            TAFolderId: "why785",
+            TAQuestionName: "why",
+            TAModelNo: "785",
+
+            TimeVariableId: 'interview_start'
+        }
+    ];
+
+    /**
+     * @memberof Config
+     * @private
+     * @static
+     * @prop _TALibrary
+     * @type {TALibrary}
+     * @description static variable containing all Text Analytics data
+     */
+    private static var _TALibrary: TALibrary;
+
+    /**
+     * @memberof Config
+     * @private
+     * @static
+     * @prop _haveTALibrary
+     * @type {boolean}
+     * @description static variable indicating that _TALibrary variable has been set
+     */
+    private static var _haveTALibrary;
+
+    /**
+     * @memberof Config
+     * @function SetTaLibrary
+     * @description function that processes config and cashes all Text Analitycs data
+     * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function SetTALibrary(globals){
+        if(!_haveTALibrary){
+            _TALibrary = new TALibrary(globals, TAQuestions);
+            _haveTALibrary = true;
+        }
+    }
+
+    /**
+     * @memberof Config
+     * @function GetTALibrary
+     * @description function that returns TALibrary from Config
+     */
+    static function GetTALibrary(){
+        return _TALibrary;
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html new file mode 100644 index 0000000..76b5fbb --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html @@ -0,0 +1,107 @@ + + + + + Static/Filters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Filters.js

+ + + + + + + +
+
+
/**
+* @class Filters
+* @classdesc Static class for Reportal Filter Components
+*/
+class Filters {
+    /**
+     * @memberof Filters
+     * @function TASelectedCategoryFilter
+     * @description function to filtrate only selected category in the hitlist
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TASelectedCategoryFilter(context){
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetSelectedCategoryFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function TAHitlistSentimentFilter
+     * @description function to filtrate only selected sentiment in the hitlist
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TAHitlistSentimentFilter(context){
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT")
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function DateFilter
+     * @description function to filtrate selected dates
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function DateFilter(context){
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetDateFilterExpression("TA_DATE_FROM", "TA_DATE_TO");
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function FilterPageFilter
+     * @description function to filtrate selected values on the filterpage
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function FilterPageFilter(context){
+        var fExpr = "";
+        fExpr = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).GetGlobalsFilterExpression();
+        context.component.Expression = fExpr;
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html new file mode 100644 index 0000000..e3ba8a9 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html @@ -0,0 +1,133 @@ + + + + + Static/PageMaster.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/PageMaster.js

+ + + + + + + +
+
+
/**
+ * @class PageMaster
+ * @classdesc Static class for Reportal Page master components
+ */
+class PageMaster{
+    private static var _filterComponents;
+
+    /**
+     * @memberof PageMaster
+     * @function Filters_Hide
+     * @description function to hide the Ffilters button
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Filters_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function Filters_Render
+     * @description function to render the filters button
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Filters_Render(context){
+        context.component.TargetPage = "filters"
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function FilterSummary_Render
+     * @description function to render the filterSummary
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function FilterSummary_Render(context){
+        var filterSummary ;
+        var summarySegments = [];
+        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
+
+        var codes = _filterComponents.GetAllAnsweredFilterCodes();
+        for( var i = 0 ; i < codes.length; i++){
+            summarySegments.push(( "<div>" + codes[i].questionTitle + " = "+ codes[i].texts.join(" | ")+"</div>"));
+        }
+
+        filterSummary = summarySegments.join("<span>AND</span>");
+        context.component.Output.Append(filterSummary);
+        if( codes.length > 0 )
+            context.component.Output.Append("<button title='Clear filters' onclick='javascript:document.querySelector(\'.filters-clear-button input\').click()' style = 'padding: 1px'><svg width='10' height='10' class='icon-circle-x'><use xmlns:xlink='http://www.w3.org/1999/xlink' xlink:href='/discoveryanalytics/svg-icons/stack/svg/sprite.stack.svg#circle-x'></use></svg></button>");
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function ClearFilters_Hide
+     * @description function to render the Clear filters button
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function ClearFilters_Hide(context){
+        var hideButton = true;
+        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
+
+        hideButton = !_filterComponents.GetAllAnsweredFilterCodes().length > 0;
+
+        return hideButton
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function ClearFilters_Render
+     * @description function to render the clear filters button
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function ClearFilters_Render(context){
+
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html new file mode 100644 index 0000000..4284558 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html @@ -0,0 +1,328 @@ + + + + + Static/Page_comments.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Page_comments.js

+ + + + + + + +
+
+
/**
+ * @class Page_comments
+ * @classdesc Static class for Reportal Page comments components
+ */
+class Page_comments{
+    private static var _filterComponents;
+    private static var _folder;
+    private static const _defaultParameters = [
+        {
+            Id: "TA_TOP_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_SUB_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_ATTRIBUTES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_COMMENTS_SENTIMENT",
+            Value: "emptyv"
+        }
+    ];
+
+    /**
+     * @memberof Page_comments
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        if(context.component.SubmitSource == "ClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
+        }
+
+        if(context.component.SubmitSource == "btnClearDateFilter"){
+            context.state.Parameters["TA_DATE_FROM"] = null;
+            context.state.Parameters["TA_DATE_TO"] = null;
+        }
+        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "comments");
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        _folder = Config.GetTALibrary().GetFolderById();
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function htlComments_Hide
+     * @description function to hide the hitlist
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function htlComments_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function htlComments_Render
+     * @description function to render the hitlist
+     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function htlComments_Render(context){
+        var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component);
+        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+
+        if( selectedCategory ){
+            htlComments.AddTAColumn("categorysentiment", false, selectedCategory);
+        }
+
+        htlComments.AddTAColumn();
+        htlComments.AddColumn(_folder.GetTimeVariableId(), true);
+        htlComments.AddTAColumn("overallsentiment");
+        htlComments.AddTAColumn("categories");
+        htlComments.AddConfiguredColumns();
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCommentsScript_Hide
+     * @description function to hide the text
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCommentsScript_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCommentsScript_Render
+     * @description function to render the script which processes hitlist
+     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCommentsScript_Render(context){
+        var hitlistInit = "<script>"+
+                "Y.Global.on('hitlistloaded', function (e) {  "+
+                    "var upgradedHitlist = new Reportal.Hitlist({"+
+                        "hitlist: document.querySelector('.reportal-hitlist-container'),"+
+                        "headers: hitlistHeaders"+
+                    "});"+
+                "});"+
+            "</script>";
+        var hitlistHeaders = {};
+
+        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
+        if( selectedCategory){
+            hitlistHeaders["categorySentiment"]= _folder.GetQuestionId("categorysentiment")+"_"+selectedCategory;
+        }
+
+        hitlistHeaders["verbatim"] = _folder.GetQuestionId();
+
+        hitlistHeaders["date"] = _folder.GetTimeVariableId() ? _folder.GetTimeVariableId() : "interview_start";
+
+        hitlistHeaders["categories"] = _folder.GetQuestionId("categories");
+
+        hitlistHeaders["overallSentiment"] = _folder.GetQuestionId("overallSentiment");
+
+        hitlistHeaders["other"] = [];
+
+        var hitlistColumns = _folder.GetHitlistColumns();
+        for(var i = 0 ; i < hitlistColumns.length; i++){
+            hitlistHeaders["other"].push(hitlistColumns[i]);
+        }
+        context.component.Output.Append(JSON.print(hitlistHeaders, "hitlistHeaders"));
+        context.component.Output.Append(hitlistInit);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstCategory_Hide
+     * @description function to hide the Category selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstCategory_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstSubCategory_Hide
+     * @description function to hide the Sub Category selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstSubCategory_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstAttribute_Hide
+     * @description function to hide the Attribute selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstAttribute_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCategory_Hide
+     * @description function to hide the Category selector label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCategory_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCategory_Render
+     * @description function to render the Category selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCategory_Render(context){
+        var label = "Category";
+        context.component.Output.Append(label);
+    }
+
+
+    /**
+     * @memberof Page_comments
+     * @function txtSubCategory_Hide
+     * @description function to hide the the sub category list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtSubCategory_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtSubCategory_Render
+     * @description function to render the sub Category selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtSubCategory_Render(context){
+        var label = "Sub category";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Hide
+     * @description function to hide the the attributes list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtAttribute_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Render
+     * @description function to render the attributes selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtAttribute_Render(context){
+        var label = "Attribute";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtSentiment_Hide
+     * @description function to hide the the sentiment list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtSentiment_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Render
+     * @description function to render the sentiment selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtSentiment_Render(context){
+        var label = "Sentiment";
+        context.component.Output.Append(label);
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html new file mode 100644 index 0000000..fa0c434 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html @@ -0,0 +1,468 @@ + + + + + Static/Page_dashboard.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Page_dashboard.js

+ + + + + + + +
+
+
/**
+ * @class Page_dashboard
+ * @classdesc Static class for Reportal Page dashboard components
+ */
+class Page_dashboard{
+    private static var _folder;
+    private static const _defaultParameters = [
+        {
+            Id: "TA_LEVEL",
+            Value: "0"
+        },
+
+        {
+            Id: "TA_COMPARE_PERIODS",
+            Value: "qoq"
+        },
+
+        {
+            Id: "TA_VIEW_SENTIMENT",
+            Value: "emptyv"
+        }
+    ];
+
+    /**
+     * @memberof Page_dashboard
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        if(context.component.SubmitSource == "ClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
+        }
+
+        if(context.component.SubmitSource == "btnClearDateFilter"){
+            context.state.Parameters["TA_DATE_FROM"] = null;
+            context.state.Parameters["TA_DATE_TO"] = null;
+        }
+        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard");
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        _folder = Config.GetTALibrary().GetFolderById();
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @private
+     * @function _renderTblMostSentiment
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} sentiment - "neg" or "pos"
+     */
+    private static function _renderTblMostSentiment(context, sentiment){
+        var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
+        var globals = TAHelper.GetGlobals(context);
+        var table = context.component;
+        var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level);
+        topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @private
+     * @function _renderTblMostChanged
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} sentiment - "neg" or "pos"
+     */
+    private static function _renderTblMostChanged(context, sentiment){
+        var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
+        var globals = TAHelper.GetGlobals(context);
+        var table = context.component;
+        var period = context.state.Parameters.IsNull("TA_COMPARE_PERIODS") ? "qoq" : context.state.Parameters.GetString("TA_COMPARE_PERIODS");
+
+        var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period);
+        topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostPositive_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostPositive_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostPositive_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostPositive_Render(context){
+        _renderTblMostSentiment(context, true);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostNegative_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostNegative_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostNegative_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostNegative_Render(context){
+        _renderTblMostSentiment(context, false);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostImproved_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostImproved_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostImproved_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostImproved_Render(context){
+        _renderTblMostChanged(context, true);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostDeclined_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostDeclined_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostDeclined_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostDeclined_Render(context){
+        _renderTblMostChanged(context, false);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblThemeDistribution_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblThemeDistribution_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblThemeDistribution_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblThemeDistribution_Render(context){
+        var globals = TAHelper.GetGlobals(context);
+        var table = context.component;
+        var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT");
+
+        var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment);
+        themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table"]);
+        themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_TOP_CATEGORIES_SINGLE", "detailed_analysis");
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtLevel_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtLevel_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtLevel_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtLevel_Render(context){
+        var label = "View by";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostPositive_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostPositive_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostPositive_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostPositive_Render(context){
+        var label = "Top 5 most positive themes";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostNegative_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostNegative_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostNegative_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostNegative_Render(context){
+        var label = "Top 5 most negative themes";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtComparePeriods_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtComparePeriods_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtComparePeriods_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtComparePeriods_Render(context){
+        var label = "Compare";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostImproved_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostImproved_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostImproved_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostImproved_Render(context){
+        var label = "Top 5 most improved themes";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostChangedInfo_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostChangedInfo_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostChangedInfo_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostChangedInfo_Render(context){
+        var label = "Changes that are not statistically significant are marked in grey";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostDeclined_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostDeclined_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostDeclined_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostDeclined_Render(context){
+        var label = "Top 5 most declined themes";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistribution_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtThemeDistribution_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistribution_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtThemeDistribution_Render(context){
+        var label = "Theme distribution";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtViewSentiment_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtViewSentiment_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtViewSentiment_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtViewSentiment_Render(context){
+        var label = "View";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistributionScript_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtThemeDistributionScript_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistributionScript_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtThemeDistributionScript_Render(context){
+        var headers;
+        var hierarhy = _folder.GetHierarchy().GetHierarchyArray()
+
+        headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders();
+        var upgradeText = "<script type=\"text/javascript\">"+
+                "var upgradedTable = new Reportal.AggregatedTable("+
+                    "{"+
+                        "table: document.querySelector('table.reportal-hierarchy-table'),"+
+                        "hierarchy:"+
+                            "{"+
+                                "hierarchy: "+JSON.stringify(hierarhy)+","+
+                                "rowheaders:"+JSON.stringify(headers)+","+
+                                "search:{enabled:true}"+
+                            "},"+
+                        "fixedHeader: {hasListeners:false}"+
+                    "}"+
+                ")"+
+            "</script>";
+
+        context.component.Output.Append(upgradeText);
+        context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html new file mode 100644 index 0000000..749cf6b --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html @@ -0,0 +1,322 @@ + + + + + Static/Page_detailed_analysis.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Page_detailed_analysis.js

+ + + + + + + +
+
+
/**
+ * @class Page_detailed_analysis
+ * @classdesc Static class for Reportal Page detailed_analysis components
+ */
+class Page_detailed_analysis{
+    private static var _folder;
+    private static const _defaultParameters = [
+        {
+            Id: "TA_TOP_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+
+        {
+            Id: "TA_DISTRIBUTION_TOGGLE",
+            Value: "0"
+        },
+
+        {
+            Id: "TA_VIEW_BY",
+            Value: "emptyv"
+        }
+    ];
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        if(context.component.SubmitSource == "ClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
+        }
+
+        if(context.component.SubmitSource == "btnClearDateFilter"){
+            context.state.Parameters["TA_DATE_FROM"] = null;
+            context.state.Parameters["TA_DATE_TO"] = null;
+        }
+
+        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "detailed_analysis");
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        _folder = Config.GetTALibrary().GetFolderById();
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @private
+     * @function _buildTATiles
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} type - "all", "neg", "neu", "pos"
+     */
+    static private function _buildTATiles(context, type){
+        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
+        new TATiles(TAHelper.GetGlobals(context), _folder, context.component, type, selectedCategory, distribution)
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblTotalCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblTotalCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblTotalCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblTotalCommentsTile_Render(context){
+        _buildTATiles(context, "all");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblPositiveCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblPositiveCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblPositiveCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblPositiveCommentsTile_Render(context){
+        _buildTATiles(context, "pos");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNeutralCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblNeutralCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblMostPositive_RendertblNeutralCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblNeutralCommentsTile_Render(context){
+        _buildTATiles(context, "neu");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNegativeCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblNegativeCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNegativeCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblNegativeCommentsTile_Render(context){
+        _buildTATiles(context, "neg");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblDetailedAnalysis_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblDetailedAnalysis_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblDetailedAnalysis_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblDetailedAnalysis_Render(context){
+        var globals = TAHelper.GetGlobals(context);
+        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        var selectedQuestion = context.state.Parameters.GetString("TA_VIEW_BY");
+        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
+        var hideEmptyRows = new ParameterUtilities(globals).GetCheckedValues("TA_HIDE_EMPTY_ROWS");
+        var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, selectedCategory, selectedQuestion, distribution);
+        detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]);
+        detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0));
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtDetailedAnalysisScript_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtDetailedAnalysisScript_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtDetailedAnalysisScript_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtDetailedAnalysisScript_Render(context){
+        var headers;
+        var hierarhy = _folder.GetHierarchy().GetHierarchyArray();
+        var taTableData = new TATableData(TAHelper.GetGlobals(context), "tblDetailedAnalysis");
+        var headers = taTableData.GetTableRowHeaders();
+        if( headers.length > 0){
+            var blocks = taTableData.GetBlocks();
+
+            var upgradeText = "<script type=\"text/javascript\">"+
+                    "var upgradedTable = new Reportal.AggregatedTable("+
+                        "{"+
+                            "table: document.querySelector('table.reportal-hierarchy-table'),"+
+                            "hierarchy:"+
+                                "{"+
+                                    "hierarchy: "+JSON.stringify(hierarhy)+","+
+                                    "rowheaders:"+JSON.stringify(headers)+","+
+                                    "search:{enabled:true},"+
+                                    "blocks:"+JSON.stringify(blocks)+","+
+                                    "column:"+ ( blocks.length > 0 ? 1 : 0 ) +""+
+                                "},"+
+                            "sorting:"+
+                                "{"+
+                                    "enabled: true,"+
+                                    "excludedColumns: [6]"+
+                                "},"+
+                            "fixedHeader: {hasListeners:false}"+
+                        "}"+
+                    ")"+
+                "</script>";
+
+            context.component.Output.Append(upgradeText);
+            context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
+            context.component.Output.Append(JSON.print(headers,"rowheaders"));
+            context.component.Output.Append(JSON.print(blocks,"blocks"));
+        }
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtViewBy_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtViewBy_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtViewBy_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtViewBy_Render(context){
+        context.component.Output.Append("View by:");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtCategory_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCategory_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtCategory_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCategory_Render(context){
+        context.component.Output.Append("Category");
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html new file mode 100644 index 0000000..5b8db36 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html @@ -0,0 +1,196 @@ + + + + + Static/Page_filters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Page_filters.js

+ + + + + + + +
+
+
/**
+ * @class Page_filters
+ * @classdesc Static class for Reportal Page filters components
+ */
+class Page_filters{
+    private static var _filterComponents;
+    private static var _folder;
+    private static const _defaultParameters = [];
+
+    /**
+     * @memberof Page_filters
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        if(context.component.SubmitSource == "btnClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
+        }
+
+        if(context.component.SubmitSource == "btnClearDateFilter"){
+            context.state.Parameters["TA_DATE_FROM"] = null;
+            context.state.Parameters["TA_DATE_TO"] = null;
+        }
+
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        _folder = Config.GetTALibrary().GetFolderById();
+        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSaveReturn_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnSaveReturn_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSaveReturn_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnSaveReturn_Render(context){
+        context.component.Label = new Label(9,"Save and Return");
+        context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE");
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSave_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnSave_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSave_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnSave_Render(context){
+        context.component.Label = new Label(9,"Save");
+        context.component.TargetPage = "filters";
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnClearFilters_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnClearFilters_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnClearFilters_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnClearFilters_Render(context){
+    context.component.Label = new Label(9,"Clear Filters");
+    context.component.TargetPage = "filters";
+}
+
+    /**
+     * @memberof Page_filters
+     * @function txtFilterTitle_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     * @returns {Boolean}
+     */
+    static function txtFilterTitle_Hide(context, filterNumber){
+    var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
+        return !filterQuestion
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function txtFilterTitle_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     */
+    static function txtFilterTitle_Render(context, filterNumber){
+    var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1);
+    if(filterTitle)
+        context.component.Output.Append(filterTitle);
+
+}
+    /**
+     * @memberof Page_filters
+     * @function lstFilterList_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     * @returns {Boolean}
+     */
+    static function lstFilterList_Hide(context, filterNumber){
+        var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
+        return !filterQuestion
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html new file mode 100644 index 0000000..f7e131f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html @@ -0,0 +1,208 @@ + + + + + Static/Parameters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Parameters.js

+ + + + + + + +
+
+
/**
+ * @class Parameters
+ * @classdesc Static class for Reportal parameter components
+ */
+class Parameters{
+
+    /**
+     * @memberof Parameters
+     * @function TA_LEVEL_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_LEVEL_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelsParameter(context.component, null);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_COMPARE_PERIODS_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_COMPARE_PERIODS_Domain(context){
+        var parameterValues = [
+            {Code: "wow", Label: "Current vs Last Week"},
+            {Code: "qoq", Label: "Current vs Last Quarter"},
+            {Code: "mom", Label: "Current vs Last Month"},
+            {Code: "yoy", Label: "Current vs Last Year"}
+        ];
+        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_TOP_CATEGORIES_SINGLE_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_TOP_CATEGORIES_SINGLE_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, null, 0, "-select-")
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_SUB_CATEGORIES_SINGLE_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_SUB_CATEGORIES_SINGLE_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, null, 1, "-select-")
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_ATTRIBUTES_SINGLE_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_ATTRIBUTES_SINGLE_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, null, 2, "-select-")
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_SUB_CATEGORIES_SINGLE_Mask
+     * @param {Object} context - {component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_SUB_CATEGORIES_SINGLE_Mask(context){
+        var category = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        if(category && category != "emptyv")
+            new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).MaskSelectedCategoryChildren(context.component,null,category,true)
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_ATTRIBUTES_SINGLE_Mask
+     * @param {Object} context - {component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_ATTRIBUTES_SINGLE_Mask(context){
+        var category = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+        if(category && category != "emptyv")
+            new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).MaskSelectedCategoryChildren(context.component,null,category,true)
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_VIEW_SENTIMENT_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_VIEW_SENTIMENT_Domain(context){
+        var parameterValues = [
+            {Code: "emptyv", Label: "All sentiments"},
+            {Code: "pos", Label: "Positive"},
+            {Code: "neu", Label: "Neutral"},
+            {Code: "neg", Label: "Negative"}
+        ]
+        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_DISTRIBUTION_TOGGLE_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_DISTRIBUTION_TOGGLE_Domain(context){
+        var parameterValues = [
+            {Code: 0, Label: "Count"},
+            {Code: 1, Label: "%"}
+        ]
+
+        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_VIEW_BY_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_VIEW_BY_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderViewByParameter(context.component, null, "-select-");
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_HIDE_EMPTY_ROWS_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_HIDE_EMPTY_ROWS_Domain(context){
+        var parameterValues = [
+            {Code: "hide", Label: "Hide categories with no hits"}
+        ]
+        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function FILTER_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     */
+    static function FILTER_Domain(context, filterNumber){
+        var filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        var filterQuestion = filterComponents.GetFilterQuestion(filterNumber -1 );
+        if(filterQuestion){
+            var parameterValues = [];
+            var answers = filterQuestion.GetAnswers()
+            for( var i = 0; i < answers.length; i++){
+                parameterValues.push({
+                    Code: answers[i].Precode,
+                    Label: answers[i].Text
+                });
+            }
+            new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+        }
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html new file mode 100644 index 0000000..b893a25 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html @@ -0,0 +1,121 @@ + + + + + Static/ReportMaster.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/ReportMaster.js

+ + + + + + + +
+
+
/**
+ * @class ReportMaster
+ * @classdesc Static class for Report Master components
+ */
+class ReportMaster {
+    /**
+     * @memberof ReportMaster
+     * @function CustomerLogo_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function CustomerLogo_Hide(context) {
+        return false;
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function CustomerLogo_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function CustomerLogo_Render(context) {
+        if(Config.CustomerLogo !== null) {
+            context.component.Output.Append('<img class="customer-logo" src="' + Config.CustomerLogo + '">');
+        }
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function btnApplyDateFilter_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnApplyDateFilter_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function btnApplyDateFilter_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnApplyDateFilter_Render(context){
+        context.component.Label = new Label(9, "Apply");
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function btnClearDateFilter_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnClearDateFilter_Hide(context){
+        return (context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.IsNull("TA_DATE_TO"))
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function btnClearDateFilter_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnClearDateFilter_Render(context){
+        context.component.Label = new Label(9, "Clear Date Filters");
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html new file mode 100644 index 0000000..104e098 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html @@ -0,0 +1,999 @@ + + + + + TADetailedAnalysisTable - Documentation + + + + + + + + + + + + + + + + +
+ +

TADetailedAnalysisTable

+ + + + + + + +
+ +
+ +

+ TADetailedAnalysisTable +

+ +

Class to work with Detailed Analysis table

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFoldee + + + +

Text Analytics folder to build table from

table + + +Table + + + +
selectedCategory + + +String + + + +
selectedQuestion + + +String + + + +
distribution + + +String + + + +

"0" for counts "1" for percents

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addChartColumn()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _getColumnFormulaExpression()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _getColumnheadersExpression()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _getRowheadersExpression()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupConditionalFormatting()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupTableDistribution()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html new file mode 100644 index 0000000..2acc938 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html @@ -0,0 +1,320 @@ + + + + + TADetailedAnalysisTable.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TADetailedAnalysisTable.js

+ + + + + + + +
+
+
/**
+ * @class TADetailedAnalysisTable
+ * @classdesc Class to work with Detailed Analysis table
+ *
+ * @constructs TADetailedAnalysisTable
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFoldee} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} selectedCategory
+ * @param {String} selectedQuestion
+ * @param {String} distribution - "0" for counts "1" for percents
+ */
+class TADetailedAnalysisTable{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _selectedCategory;
+    private var _selectedQuestion;
+    private var _distribution;
+
+    function TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _selectedCategory = selectedCategory && selectedCategory != "emptyv" ? selectedCategory : "all";
+        _selectedQuestion = selectedQuestion && selectedQuestion != "emptyv" ? selectedQuestion : "all";
+        _distribution = distribution ? distribution : "0";
+        _render();
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var rowexpr = _getRowheadersExpression();
+        var colexpr = _getColumnheadersExpression();
+
+        _taTableUtils.CreateTableFromExpression(rowexpr, colexpr);
+        _setupTableDistribution();
+        _table.RowNesting = TableRowNestingType.Nesting;
+        _setupConditionalFormatting();
+        _addChartColumn();
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _getRowheadersExpression
+     */
+    private function _getRowheadersExpression(){
+        var rowexpr = "";
+
+        var blockHeader = "";
+        var qType = "categorysentiment";
+        var categoryHeader = "(";
+
+        var mask = false;
+        if( _selectedQuestion != "all" ){
+            blockHeader += _selectedQuestion+'{id:'+_selectedQuestion+';totals:false}/'
+        }
+
+        if(_distribution == "1"){
+            categoryHeader += _taTableUtils.GetTAQuestionExpression("overallsentiment",false,"hidedata:true") + "+";
+        }
+
+        if( _selectedCategory != "all" ){
+            mask = _taMasks.GetAllChildrenMask(_selectedCategory);
+            mask.push(_selectedCategory)
+        }
+
+        categoryHeader += _taTableUtils.GetTAQuestionExpression(qType, mask) + ")";
+
+        rowexpr += blockHeader + categoryHeader;
+
+        return rowexpr
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _getColumnheadersExpression
+     */
+    private function _getColumnheadersExpression(){
+        var columnexpr = "";
+        var columnbase = "[N]{hideheader:true;hidedata:true}";
+
+        var countformula = _getColumnFormulaExpression();
+
+        var columnstatistic = "[STATISTICS]{statistics:avg}";
+        var positivecolumn = _taTableUtils.GetCategoriesExpression( "pos", false, false, _distribution );
+        var neutralcolumn = _taTableUtils.GetCategoriesExpression( "neu", false, false, _distribution );
+        var negativecolumn = _taTableUtils.GetCategoriesExpression( "neg", false, false, _distribution );
+
+        columnexpr = [columnbase, countformula, columnstatistic, positivecolumn, neutralcolumn, negativecolumn].join("+");
+        return columnexpr
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _getColumnFormulaExpression
+     */
+    private function _getColumnFormulaExpression(){
+        var countformulaexpression;
+        var countformula = '[FORMULA]{decimals:0;label:"Comments";hideheader:true;percent:false';
+        if( _distribution == "1"){
+            countformula += ";percent:true";
+            countformulaexpression = '"IF((cellv(1,1)>0),(cellv(col-1,row)/cellv(1,1)),EMPTYV())"';
+        }else{
+            countformulaexpression = '"IF(cellv(col-1,row)>0,cellv(col-1,row),EMPTYV())"';
+        }
+        countformula += ";expression:"+countformulaexpression;
+        countformula += "}";
+
+        return countformula
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _setupTableDistribution
+     */
+    private function _setupTableDistribution(){
+        _table.Distribution.Enabled = true;
+        _table.Distribution.VerticalPercents = false;
+
+        if(_distribution == "1"){
+            _table.Distribution.HorizontalPercents = true;
+            _table.Distribution.Count = false;
+        }else{
+            _table.Distribution.HorizontalPercents = false;
+            _table.Distribution.Count = true;
+        }
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _addChartColumn
+     */
+    private function _addChartColumn(){
+        var chartHeader =  _taTableUtils.GetChartHeader(
+            ChartComboType.Bar100,
+            [
+                {
+                    Formula: "cellv(col-25,row)",
+                    Color: (Config.Colors.NegNeuPosPalette.Positive)
+                },
+                {
+                    Formula: "cellv(col-13,row)",
+                    Color: (Config.Colors.NegNeuPosPalette.Neutral)
+                },
+                {
+                    Formula: "cellv(col-1,row)",
+                    Color: (Config.Colors.NegNeuPosPalette.Negative)
+                }
+            ],
+            " ");
+        _table.ColumnHeaders.Add(chartHeader);
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _setupConditionalFormatting
+     */
+    private function _setupConditionalFormatting(){
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col,row)<(-1)',
+                    style: 'negative'
+                },
+
+                {
+                    expression: '(cellv(col, row)>=(-1)) AND (cellv(col, row)<=1)',
+                    style: 'neutral'
+                },
+                {
+                    expression: 'cellv(col, row)>1',
+                    style: 'positive'
+                }
+            ],
+            "NegNeuPos",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "3"
+            }
+        );
+
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col,row)>=0',
+                    style: 'negative'
+                },
+
+            ],
+            "Negative",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "39"
+            }
+        );
+
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col,row)>=0',
+                    style: 'neutral'
+                },
+
+            ],
+            "Negative",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "27"
+            }
+        );
+
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col,row)>=0',
+                    style: 'positive'
+                },
+
+            ],
+            "Negative",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "15"
+            }
+        );
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html new file mode 100644 index 0000000..575d770 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html @@ -0,0 +1,828 @@ + + + + + TAFilters - Documentation + + + + + + + + + + + + + + + + +
+ +

TAFilters

+ + + + + + + +
+ +
+ +

+ TAFilters +

+ +

Class to work with Text Analytics filters

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAFilters(globals, folder)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFoldee + + + +

Text Analytics folder to build table from

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetDateFilterExpression(fromParameter, toParameter) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fromParameter + + +String + + + +
toParameter + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetSelectedCategoryFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
categoriesParameter + + +String + + + +
subCategoriesParameter + + +String + + + +
attributesParameter + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetSentimentFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter, sentimentParameter) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
categoriesParameter + + +String + + + +
subCategoriesParameter + + +String + + + +
attributesParameter + + +String + + + +
sentimentParameter + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html new file mode 100644 index 0000000..6521474 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html @@ -0,0 +1,155 @@ + + + + + TAFilters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAFilters.js

+ + + + + + + +
+
+
/**
+ * @class TAFilters
+ * @classdesc Class to work with Text Analytics filters
+ *
+ * @constructs TAFilters
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFoldee} folder - Text Analytics folder to build table from
+ */
+class TAFilters{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _parameterUtilities: ParameterUtilities;
+
+    function TAFilters(globals, folder){
+        _globals = globals;
+        _folder = folder;
+    }
+
+    /**
+     * @memberof TAFilters
+     * @instance
+     * @function GetSelectedCategoryFilterExpression
+     * @param {String} categoriesParameter
+     * @param {String} subCategoriesParameter
+     * @param {String} attributesParameter
+     * @returns {String}
+     */
+    function GetSelectedCategoryFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter){
+        var fExpr;
+        var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter);
+
+        fExpr = selectedCategory ?('ANY(' + _folder.GetQuestionId("categories") + ',"'+selectedCategory+'")'):'NOT ISNULL('+_folder.GetQuestionId("overallSentiment")+')';
+
+        return fExpr;
+    }
+
+    /**
+     * @memberof TAFilters
+     * @instance
+     * @function GetSentimentFilterExpression
+     * @param {String} categoriesParameter
+     * @param {String} subCategoriesParameter
+     * @param {String} attributesParameter
+     * @param {String} sentimentParameter
+     * @returns {String}
+     */
+    function GetSentimentFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter, sentimentParameter){
+        var fExpr;
+        var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter);
+        var sentimentParameterValue = _globals.state.Parameters.GetString(sentimentParameter);
+        var sentimentRange = false;
+        switch( sentimentParameterValue ){
+            case "pos":
+                sentimentRange ='"'+Config.SentimentRange.Positive.join('","')+'"';
+                break;
+            case "neu":
+                sentimentRange ='"'+ Config.SentimentRange.Neutral.join('","') +'"';
+                break;
+            case "neg":
+                sentimentRange ='"' + Config.SentimentRange.Negative.join('","')+'"';
+                break;
+        }
+        var questionName = selectedCategory ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment");
+        fExpr = sentimentRange ?('IN(' + questionName + ','+sentimentRange+')') : '';
+        return fExpr;
+    }
+
+    /**
+     * @memberof TAFilters
+     * @instance
+     * @function GetDateFilterExpression
+     * @param {String} fromParameter
+     * @param {String} toParameter
+     * @returns {String}
+     */
+    function GetDateFilterExpression(fromParameter, toParameter){
+        var fExpr;
+        var isFrom = _globals.state.Parameters.IsNull(fromParameter);
+        var isTo = _globals.state.Parameters.IsNull(toParameter);
+        var fromExpr;
+        var toExpr;
+        var resultArray = [];
+        if(!isFrom)
+        {
+            fromExpr = _folder.GetTimeVariableId() + ' >= PValDate("' +fromParameter+'")';
+            resultArray.push(fromExpr);
+        }
+
+        if(!isTo){
+            toExpr = _folder.GetTimeVariableId() + ' <= PValDate("' +toParameter+'")';
+            resultArray.push(toExpr);
+        }
+
+        fExpr = resultArray.join(" AND ");
+
+        return fExpr
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html new file mode 100644 index 0000000..93f1551 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html @@ -0,0 +1,1012 @@ + + + + + TAFolder - Documentation + + + + + + + + + + + + + + + + +
+ +

TAFolder

+ + + + + + + +
+ +
+ +

+ TAFolder +

+ +

Class to work with Text Analytics variables

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAFolder(globals, questionObj)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

questionObj + + +Object + + + +

Object from Config.TAQuestions[i]

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetDatasourceId() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get Id of the datasource

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetHierarchy() → {Hierarchy}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get Hierarchy for the text analytics set

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Hierarchy + + +
+
+ + + + + + + + + +

GetHitlistColumns() → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get array of qIds to use in the end of the hitlist

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetId() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get unique Id for the text analytics set

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetQuestionId(questionType) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get id of text analytics variable (verbatim if no parameters)

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
questionType + + +String + + + +

type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetTimeVariableId() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get qId of time variable for the set

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetViewByVariables() → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get array of qIds to use in the detailed analysis table

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html new file mode 100644 index 0000000..5b4ba6b --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html @@ -0,0 +1,210 @@ + + + + + TAFolder.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAFolder.js

+ + + + + + + +
+
+
/**
+ * @class TAFolder
+ * @classdesc Class to work with Text Analytics variables
+ *
+ * @constructs TAFolder
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {Object} questionObj - Object from Config.TAQuestions[i]
+ */
+class TAFolder{
+    private var _globals;
+
+    //TA Fields
+    private var _id: String;
+    private var _qName: String;
+    private var _modelNo: String;
+
+    //additional fields
+    private var _timeVariableId: String;
+    private var _datasourceId: String;
+    private var _variablesToViewBy;
+    private var _hitlistColumns;
+
+    private var _hierarchy: Hierarchy;
+
+
+    function TAFolder(globals, questionObj: Object){
+        _globals = globals;
+        _id = questionObj.TAQuestionId;
+        _qName = questionObj.TAQuestionName;
+        _modelNo = questionObj.TAModelNo;
+        _timeVariableId = TAHelper.GetConfiguredVariables(globals, [questionObj.TimeVariableId], null, null, ["interview_start"])[0];
+
+        _datasourceId = TAHelper.GetConfiguredVariables(globals, [questionObj.DatasourceId], [Config.DS_Main], null, ["ds0"])[0];
+        _variablesToViewBy = TAHelper.GetConfiguredVariables(globals, questionObj.VariablesToViewBy, Config.VariablesToViewBy, "ta_viewby", []);
+        _hitlistColumns = TAHelper.GetConfiguredVariables(globals, questionObj.HitlistColumns, Config.HitlistColumns, "hitlist", []);
+        _hierarchy = new Hierarchy(globals, {
+            schemaId: questionObj.DatabaseSchemaId,
+            tableName: questionObj.DatabaseTableName,
+            relationshipColumnName: questionObj.RelationshipColumnName,
+            textSeparator: questionObj.TextSeparator
+        });
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetQuestionId
+     * @description function to Get id of text analytics variable (verbatim if no parameters)
+     * @param {String} questionType - type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"
+     * @returns {String}
+     */
+    function GetQuestionId(questionType){
+        var postfix;
+        if(!questionType){
+            return _qName;
+        }
+        switch(questionType.toLowerCase()){
+            case "overallsentiment":
+            case "os":
+                postfix = "OverallSentiment";
+                break;
+            case "categories":
+            case "c":
+                postfix = "Categories";
+                break;
+            case "positivementions":
+            case "positive":
+            case "pm":
+                postfix = "PositiveMentions";
+                break;
+            case "negativementions":
+            case "negative":
+            case "nm":
+                postfix = "NegativeMentions";
+                break;
+            case "categorysentiment":
+            case "cs":
+                postfix = "CategorySentiment"
+                break;
+            default:
+                postfix = false;
+                break;
+        }
+
+        return _qName+( postfix ? (_modelNo + postfix) : "" );
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetHierarchy
+     * @description function to Get Hierarchy for the text analytics set
+     * @returns {Hierarchy}
+     */
+    function GetHierarchy(){
+        return _hierarchy;
+}
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetId
+     * @description function to Get unique Id for the text analytics set
+     * @returns {String}
+     */
+    function GetId(){
+        return _id;
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetTimeVariableId
+     * @description function to Get qId of time variable for the set
+     * @returns {String}
+     */
+    function GetTimeVariableId(){
+        return _timeVariableId;
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetDatasourceId
+     * @description function to Get Id of the datasource
+     * @returns {String}
+     */
+    function GetDatasourceId(){
+        return _datasourceId;
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetViewByVariables
+     * @description function to Get array of qIds to use in the detailed analysis table
+     * @returns {String[]}
+     */
+    function GetViewByVariables(){
+        return _variablesToViewBy;
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetHitlistColumns
+     * @description function to Get array of qIds to use in the end of the hitlist
+     * @returns {String[]}
+     */
+    function GetHitlistColumns(){
+        return _hitlistColumns;
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html new file mode 100644 index 0000000..9a5daed --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html @@ -0,0 +1,1121 @@ + + + + + TAHelper - Documentation + + + + + + + + + + + + + + + + +
+ +

TAHelper

+ + + + + + + +
+ +
+ +

+ TAHelper +

+ +

Class cntaining additional static functions to work with text analytics

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAHelper()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) GetConfiguredVariables(globals, questionConfig, config, tag, defaultValue) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get configured value from TAConfig or survey tags

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +
questionConfig + + +Object + + + +
config + + +Object + + + +
tag + + +Object + + + +
defaultValue + + +Object + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

(static) GetGlobals(context) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to retrieve global parameters from given context

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

(static) GetSelectedCategory(state, categoriesParameterName, subCategoriesParameterName, attribtesPararmeterNam) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get id of selected category, subcategory or attribute

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
state + + +ReportState + + + +
categoriesParameterName + + +String + + + +
subCategoriesParameterName + + +String + + + +
attribtesPararmeterNam + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

(static) GetSelfName(name, separator) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to trim out parents cateories from the category name

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + +String + + + +
separator + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

(static) SetLastVisitedPage(globals, pageId)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to set the last visited page to the parameter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +
pageId + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html new file mode 100644 index 0000000..e43fe60 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html @@ -0,0 +1,180 @@ + + + + + TAHelper.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAHelper.js

+ + + + + + + +
+
+
/**
+ * @class TAHelper
+ * @classdesc Class cntaining additional static functions to work with text analytics
+ */
+class TAHelper{
+    /**
+     * @memberof TAHelper
+     * @function GetGlobals
+     * @description function to retrieve global parameters from given context
+     * @param {Object} context
+     * @returns {Object}
+     */
+    static function GetGlobals(context){
+        return {
+            pageContext: context.pageContext,
+            report: context.report,
+            user: context.user,
+            state: context.state,
+            confirmit: context.confirmit,
+            log: context.log
+        };
+    }
+
+    /**
+     * @memberof TAHelper
+     * @function GetSelectedCategory
+     * @description function to get id of selected category, subcategory or attribute
+     * @param {ReportState} state
+     * @param {String} categoriesParameterName
+     * @param {String} subCategoriesParameterName
+     * @param {String} attribtesPararmeterNam
+     * @returns {String}
+     */
+    static function GetSelectedCategory(state, categoriesParameterName, subCategoriesParameterName, attribtesPararmeterName){
+        var categoriesParameter;
+        if(categoriesParameterName)
+            categoriesParameter = state.Parameters.GetString(categoriesParameterName);
+
+
+        var subCategoriesParameter;
+        if(subCategoriesParameterName)
+            subCategoriesParameter= state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+
+
+        var attributesParameter;
+        if(attribtesPararmeterName)
+            attributesParameter = state.Parameters.GetString("TA_ATTRIBUTES_SINGLE");
+
+        var selectedCategory = false;
+
+        if(categoriesParameter && categoriesParameter != "emptyv"){
+            selectedCategory = categoriesParameter;
+        }
+
+        if(subCategoriesParameter && subCategoriesParameter != "emptyv"){
+            selectedCategory = subCategoriesParameter;
+        }
+
+        if(attributesParameter && attributesParameter != "emptyv"){
+            selectedCategory = attributesParameter;
+        }
+
+        return selectedCategory;
+    }
+
+    /**
+     * @memberof TAHelper
+     * @function GetSelfName
+     * @description function to trim out parents cateories from the category name
+     * @param {String} name
+     * @param {String} separator
+     * @returns {String}
+     */
+    static function GetSelfName(name, separator){
+        var index = name.lastIndexOf(separator);
+        return name.slice((index+1)).Trim();
+    }
+
+    /**
+     * @memberof TAHelper
+     * @function GetConfiguredVariables
+     * @description function to get configured value from TAConfig or survey tags
+     * @param {Object} globals
+     * @param {Object} questionConfig
+     * @param {Object} config
+     * @param {Object} tag
+     * @param {Object} defaultValue
+     * @returns {Object}
+     */
+    static function GetConfiguredVariables(globals, questionConfig, config, tag, defaultValue){
+        var result = [];
+        if(!questionConfig){
+            if( !config){
+                if(!tag){
+                    result = defaultValue
+                }else{
+                    var project = globals.report.DataSource.GetProject(Config.DS_Main);
+                    var questions = project.GetQuestionsWithAnswers(false, [tag]);
+                    for (var i = 0; i < questions.length; i++){
+                        result.push(questions[i].QuestionId);
+                    }
+                }
+            }else{
+                result = config;
+            }
+        }else{
+            result = questionConfig
+        }
+
+        return result;
+    }
+
+    /**
+     * @memberof TAHelper
+     * @function SetLastVisitedPage
+     * @description function to set the last visited page to the parameter
+     * @param {Object} globals
+     * @param {String} pageId
+     */
+    static function SetLastVisitedPage(globals, pageId){
+        globals.state.Parameters["TA_LAST_VISITED_PAGE"] = new ParameterValueResponse(pageId);
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html new file mode 100644 index 0000000..5e48bf0 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html @@ -0,0 +1,691 @@ + + + + + TAHitlistUtils - Documentation + + + + + + + + + + + + + + + + +
+ +

TAHitlistUtils

+ + + + + + + +
+ +
+ +

+ TAHitlistUtils +

+ +

Class to work with the hitlist

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAHitlistUtils(globals, folder, hitlist)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +
hitlist + + +Hitlist + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

AddColumn(columnName, sortable)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to add a not text analytics variable to the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnName + + +String + + + +

variable qId

sortable + + +Boolean + + + +
+ + + + + + + + + + + + + + + + + + + + + +

AddConfiguredColumns()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to add columns from config

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

AddTAColumn(columnName, sortable, postfix)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to add a text analytics variable to the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnName + + +String + + + +

type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"

sortable + + +Boolean + + + +
postfix + + +String + + + +

id of the selected category

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html new file mode 100644 index 0000000..dbfcd17 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html @@ -0,0 +1,129 @@ + + + + + TAHitlistUtils.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAHitlistUtils.js

+ + + + + + + +
+
+
/**
+ * @class TAHitlistUtils
+ * @classdesc Class to work with the hitlist
+ *
+ * @constructs TAHitlistUtils
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder
+ * @param {Hitlist} hitlist
+ */
+class TAHitlistUtils{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _hitlist: HitList;
+
+    function TAHitlistUtils(globals, folder, hitlist){
+        _globals = globals;
+        _folder = folder;
+        _hitlist = hitlist;
+    }
+
+    /**
+     * @memberof TAHitlistUtils
+     * @instance
+     * @function AddTAColumn
+     * @description function to add a text analytics variable to the hitlist
+     * @param {String} columnName - type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"
+     * @param {Boolean} sortable
+     * @param {String} postfix - id of the selected category
+     */
+    function AddTAColumn(columnName, sortable, postfix){
+        var hitlistColumn: HitListColumn = new HitListColumn();
+        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
+        var columnId = _folder.GetQuestionId(columnName);
+        hitlistColumn.QuestionnaireElement = columnName == "categorysentiment" ? project.CreateQuestionnaireElement(columnId, postfix) : project.CreateQuestionnaireElement(columnId);
+        sortable ? (hitlistColumn.IsSortable = true) : null;
+        _hitlist.Columns.Add(hitlistColumn);
+    }
+
+    /**
+     * @memberof TAHitlistUtils
+     * @instance
+     * @function AddColumn
+     * @description function to add a not text analytics variable to the hitlist
+     * @param {String} columnName - variable qId
+     * @param {Boolean} sortable
+     */
+    function AddColumn(columnName, sortable){
+        var hitlistColumn: HitListColumn = new HitListColumn();
+        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
+
+        hitlistColumn.QuestionnaireElement = project.CreateQuestionnaireElement(columnName);
+        sortable ? (hitlistColumn.IsSortable = true) : null;
+        _hitlist.Columns.Add(hitlistColumn);
+    }
+
+    /**
+     * @memberof TAHitlistUtils
+     * @instance
+     * @function AddConfiguredColumns
+     * @description function to add columns from config
+     */
+    function AddConfiguredColumns(){
+        var hitlistColumn: HitListColumn;
+        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
+        var columns = _folder.GetHitlistColumns();
+        for( var i = 0; i < columns.length; i++){
+            hitlistColumn = new HitListColumn();
+            hitlistColumn.QuestionnaireElement = project.CreateQuestionnaireElement(columns[i]);
+            _hitlist.Columns.Add(hitlistColumn);
+        }
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html new file mode 100644 index 0000000..778588f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html @@ -0,0 +1,721 @@ + + + + + TALibrary - Documentation + + + + + + + + + + + + + + + + +
+ +

TALibrary

+ + + + + + + +
+ +
+ +

+ TALibrary +

+ +

Class to work with different TAFolders

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TALibrary(globals, folders)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folders + + +Array.<Object> + + + +

Config.TAQuestions

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetFiltersQuestions() → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetFolderById(id) → {TAFolder}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TAFolder + + +
+
+ + + + + + + + + +

GetFolders() → {Array.<TAFolder>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<TAFolder> + + +
+
+ + + + + + + + + +

SetCurrentFolder(id)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html new file mode 100644 index 0000000..f1af8a1 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html @@ -0,0 +1,144 @@ + + + + + TALibrary.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TALibrary.js

+ + + + + + + +
+
+
/**
+ * @class TALibrary
+ * @classdesc Class to work with different TAFolders
+ *
+ * @constructs TALibrary
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {Object[]} folders - Config.TAQuestions
+ */
+class TALibrary{
+    private var _globals;
+    private var _folders = [];
+    private var _currentFolder: TAFolder;
+    private var _filtersQuestions;
+
+
+    function TALibrary(globals,folders){
+        _globals = globals;
+
+        _filtersQuestions = TAHelper.GetConfiguredVariables(globals, null, Config.FiltersQuestions, "ta_filter", []);
+        var folder: TAFolder;
+        for(var i = 0 ; i < folders.length; i++){
+            folder = new TAFolder(_globals,folders[i]);
+            _folders.push(folder);
+        }
+
+        _currentFolder = _folders[0];
+    }
+
+    /**
+     * @memberof TALibrary
+     * @instance
+     * @function GetFolders
+     * @returns {TAFolder[]}
+     */
+    function GetFolders(){
+        return _folders;
+    }
+
+    /**
+     * @memberof TALibrary
+     * @instance
+     * @function GetFolderById
+     * @param {String} id
+     * @returns {TAFolder}
+     */
+    function GetFolderById(id){
+        if(id){
+
+            for(var i=0; i<_folders.length; i++){
+                if(_folders[i].id == id){
+                    return _folders[i];
+                    break;
+                }
+            }
+
+            throw new Error(201, "incorrect question Id");
+
+        }else{
+            return _folders[0];
+        }
+    }
+
+    /**
+     * @memberof TALibrary
+     * @instance
+     * @function GetFiltersQuestions
+     * @returns {String[]}
+     */
+    function GetFiltersQuestions(){
+        return _filtersQuestions;
+    }
+
+    /**
+     * @memberof TALibrary
+     * @instance
+     * @function SetCurrentFolder
+     * @param {String} id
+     */
+    function SetCurrentFolder(id){
+        for(var i=0; i<_folders.length; i++){
+            if(_folders[i].id == id){
+                _currentFolder = _folders[i];
+                break;
+            }
+        }
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html new file mode 100644 index 0000000..8f9c7c9 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html @@ -0,0 +1,702 @@ + + + + + TAMasks - Documentation + + + + + + + + + + + + + + + + +
+ +

TAMasks

+ + + + + + + +
+ +
+ +

+ TAMasks +

+ +

Class to work with different types of masks for text analytics

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAMasks(globals, folder)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetAllChildrenMask(level) → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

returns all children and grand-children ids for the selected category

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetCategoriesMask(level) → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

returns all categories on the selected level

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetChildrenMask(level) → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

returns all children ids for the selected category

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html new file mode 100644 index 0000000..56f1441 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html @@ -0,0 +1,128 @@ + + + + + TAMasks.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAMasks.js

+ + + + + + + +
+
+
/**
+ * @class TAMasks
+ * @classdesc Class to work with different types of masks for text analytics
+ *
+ * @constructs TAMasks
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder
+ */
+class TAMasks{
+    private var _globals;
+    private var _folder: TAFolder;
+
+    function TAMasks(globals, folder){
+        _globals = globals;
+        _folder = folder;
+    }
+
+    /**
+     * @memberof TAMasks
+     * @instance
+     * @function GetCategoriesMask
+     * @description returns all categories on the selected level
+     * @param {String} level
+     * @returns {String[]}
+     */
+    function GetCategoriesMask(level){
+        var mask = [];
+        var levelArray = _folder.GetHierarchy().GetLevelArray(parseInt(level));
+        for(var i = 0; i < levelArray.length; i++){
+            mask.push(levelArray[i].id);
+        }
+        return mask
+    }
+
+    /**
+     * @memberof TAMasks
+     * @instance
+     * @function GetChildrenMask
+     * @description returns all children ids for the selected category
+     * @param {String} level
+     * @returns {String[]}
+     */
+    function GetChildrenMask(category){
+        var mask = [];
+        var childrenArray = _folder.GetHierarchy().GetObjectById(category).subcells;
+        for(var i = 0; i < childrenArray.length; i++){
+            mask.push(childrenArray[i].id);
+        }
+
+        return mask
+    }
+
+    /**
+     * @memberof TAMasks
+     * @instance
+     * @function GetAllChildrenMask
+     * @description returns all children and grand-children ids for the selected category
+     * @param {String} level
+     * @returns {String[]}
+     */
+    function GetAllChildrenMask(category, mask){
+        var mask = mask ? mask : [];
+        var childrenArray = _folder.GetHierarchy().GetObjectById(category).subcells;
+        for(var i = 0; i < childrenArray.length; i++){
+            mask.push(childrenArray[i].id);
+            mask = GetAllChildrenMask(childrenArray[i].id, mask);
+        }
+
+        return mask
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html new file mode 100644 index 0000000..4f213b3 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html @@ -0,0 +1,1516 @@ + + + + + TAParameters - Documentation + + + + + + + + + + + + + + + + +
+ +

TAParameters

+ + + + + + + +
+ +
+ +

+ TAParameters +

+ +

Class to work with parameters using Text analytics variables

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAParameters(globals, library)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

library + + +TALibrary + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addEmptyValue(EmptyValueLabel) → {Array.<Object>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
EmptyValueLabel + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Object> + + +
+
+ + + + + + + + + +

ClearSubcategoriesParameters(folderId, value, categoriesParameter, subcategoriesParameter, attributesParamete)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

clear subcategories andattributes parameters when another parent selected

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
folderId + + +String + + + +
value + + +String + + + +

empty value for that parameter "emptyv"

categoriesParameter + + +String + + + +
subcategoriesParameter + + +String + + + +
attributesParamete + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

MaskSelectedCategoryChildren(mask, folderId, category, addEmpty)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

masking children for the specified category

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mask + + +Mask + + + +
folderId + + +String + + + +
category + + +String + + + +
addEmpty + + +Boolean + + + +
+ + + + + + + + + + + + + + + + + + + + + +

RenderFoldersParameter(parameter)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

render parameter with list of TAFoders using in the report

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
+ + + + + + + + + + + + + + + + + + + + + +

RenderLevelCategoriesParameter(parameter, folderId, level, emptyValueLabel)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

render parameter with list of categories on the specified level

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
folderId + + +String + + + +
level + + +String + + + +
emptyValueLabel + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

RenderLevelsParameter(parameter, folderId, emptyValueLabel)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

render parameter with list of levels in the hierarchy

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
folderId + + +String + + + +
emptyValueLabel + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

RenderViewByParameter(parameter, folderId, emptyValueLabel)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

render parameter with list of questions for the detailed analysis table

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
folderId + + +String + + + +
emptyValueLabel + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html new file mode 100644 index 0000000..6e70138 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html @@ -0,0 +1,251 @@ + + + + + TAParameters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAParameters.js

+ + + + + + + +
+
+
/**
+ * @class TAParameters
+ * @classdesc Class to work with parameters using Text analytics variables
+ *
+ * @constructs TAParameters
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TALibrary} library
+ */
+class TAParameters{
+    private var _globals;
+    private var _library: TALibrary;
+    private var _parameterUtilities: ParameterUtilities;
+
+    function TAParameters(globals, library){
+        _globals = globals;
+        _library = library;
+        _parameterUtilities = new ParameterUtilities(_globals);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @private
+     * @function _addEmptyValue
+     * @param {String} EmptyValueLabel
+     * @returns {Object[]}
+     */
+    private function _addEmptyValue(emptyValueLabel){
+            var parameterValues = [];
+        if(emptyValueLabel){
+            parameterValues.push({
+                Code : "emptyv",
+                Label: emptyValueLabel
+            });
+        }
+        return parameterValues
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function RenderFoldersParameter
+     * @description render parameter with list of TAFoders using in the report
+     * @param {Parameter} parameter
+     */
+    function RenderFoldersParameter(parameter){
+        var folders = _library.GetFolders();
+
+        var parameterValues = [];
+
+        for(var i = 0; i < folders.length; i++){
+            parameterValues.push({
+                Code: folders[i].id,
+                Label: folders[i].id
+            });
+        }
+        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function RenderLevelCategoriesParameter
+     * @description render parameter with list of categories on the specified level
+     * @param {Parameter} parameter
+     * @param {String} folderId
+     * @param {String} level
+     * @param {String} emptyValueLabel
+     */
+    function RenderLevelCategoriesParameter(parameter,folderId, level, emptyValueLabel){
+        var categories = _library.
+        GetFolderById(folderId).
+        GetHierarchy().
+        GetLevelArray(level);
+
+        var parameterValues = _addEmptyValue(emptyValueLabel);
+
+        for(var i = 0; i < categories.length; i++){
+            parameterValues.push({
+                Code: categories[i].id,
+                Label: categories[i].name
+            })
+        }
+        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function MaskSelectedCategoryChildren
+     * @description masking children for the specified category
+     * @param {Mask} mask
+     * @param {String} folderId
+     * @param {String} category
+     * @param {Boolean} addEmpty
+     */
+    function MaskSelectedCategoryChildren(mask,folderId,category,addEmpty){
+        var folder = _library.GetFolderById(folderId);
+        var taMasks = new TAMasks(_globals, folder);
+        var children = taMasks.GetChildrenMask(category);
+        mask.Access = ParameterAccessType.Inclusive;
+        if( addEmpty )
+            mask.Keys.Add("emptyv");
+        for ( var i = 0; i< children.length; i++)
+            mask.Keys.Add(children[i]);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function RenderLevelsParameter
+     * @description render parameter with list of levels in the hierarchy
+     * @param {Parameter} parameter
+     * @param {String} folderId
+     * @param {String} emptyValueLabel
+     */
+    function RenderLevelsParameter(parameter, folderId, emptyValueLabel){
+        var levelValues = [
+            {
+                Code: "0",
+                Label: "1st level (category)"
+            },
+            {
+                Code: "1",
+                Label: "2nd level (sub-category)"
+            },
+            {
+                Code: "2",
+                Label: "3rd level (attributes)"
+            }
+        ];
+        var parameterValues = _addEmptyValue(emptyValueLabel);
+        var folder = _library.GetFolderById(folderId);
+        var hierarchy = folder.GetHierarchy();
+        var levelsCount=hierarchy.GetLevelsCount();
+
+        for( var i = 0; i < levelsCount; i++){
+            parameterValues.push( levelValues[i] );
+        }
+
+        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function RenderViewByParameter
+     * @description render parameter with list of questions for the detailed analysis table
+     * @param {Parameter} parameter
+     * @param {String} folderId
+     * @param {String} emptyValueLabel
+     */
+    function RenderViewByParameter(parameter, folderId, emptyValueLabel){
+        var parameterValues = _addEmptyValue(emptyValueLabel);
+        var folder = _library.GetFolderById(folderId);
+        var variables = folder.GetViewByVariables();
+        var project = _globals.report.DataSource.GetProject(folder.GetDatasourceId());
+        var question: Question;
+        for( var i = 0; i < variables.length; i++){
+            question = project.GetQuestion( variables[i] );
+            parameterValues.push({
+                Code: variables[i],
+                Label: question.Title ? question.Title : variables[i]
+            });
+        }
+
+        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function ClearSubcategoriesParameters
+     * @description clear subcategories andattributes parameters when another parent selected
+     * @param {String} folderId
+     * @param {String} value - empty value for that parameter "emptyv"
+     * @param {String} categoriesParameter
+     * @param {String} subcategoriesParameter
+     * @param {String} attributesParamete
+     */
+    function ClearSubcategoriesParameters(folderId, value, categoriesParameter, subcategoriesParameter, attributesParameter){
+        var folder = _library.GetFolderById(folderId);
+        var topCategory = _globals.state.Parameters.GetString(categoriesParameter);
+        var subCategory = _globals.state.Parameters.GetString(subcategoriesParameter);
+        if(subCategory && subCategory != value){
+            if (folder.GetHierarchy().GetObjectById(subCategory).parent != topCategory){
+                _globals.state.Parameters[subcategoriesParameter] = new ParameterValueResponse(value);
+                if ( attributesParameter ){
+                    _globals.state.Parameters[attributesParameter] = new ParameterValueResponse(value);
+                }
+            }
+        }
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html new file mode 100644 index 0000000..8f40fda --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html @@ -0,0 +1,459 @@ + + + + + TATableData - Documentation + + + + + + + + + + + + + + + + +
+ +

TATableData

+ + + + + + + +
+ +
+ +

+ TATableData +

+ +

Class to get Data from built table

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATableData(globals, tableName)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

tableName + + +String + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetBlocks() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get parent rowheader ids

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetTableRowHeaders() → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get rowheaders with ids

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + +
+
    +
  • object with ids, titles and row indexes
  • +
+
+ + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html new file mode 100644 index 0000000..7827469 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html @@ -0,0 +1,123 @@ + + + + + TATableData.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATableData.js

+ + + + + + + +
+
+
/**
+ * @class TATableData
+ * @classdesc Class to get Data from built table
+ *
+ * @constructs TATableData
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {String} tableName
+ */
+class TATableData{
+    private var _globals;
+    private var _tableName;
+
+    function  TATableData(globals, tableName){
+        _globals = globals;
+        _tableName = tableName
+    }
+
+    /**
+     * @memberof TATableData
+     * @instance
+     * @function GetTableRowHeaders
+     * @description function to get rowheaders with ids
+     * @returns {Object} - object with ids, titles and row indexes
+     */
+    function GetTableRowHeaders(){
+        var rowheaders={
+            length: 0
+        };
+        var rowHeaderTitles = _globals.report.TableUtils.GetRowHeaderCategoryTitles(_tableName);
+        var rowHeaderIds = _globals.report.TableUtils.GetRowHeaderCategoryIds(_tableName);
+        for(var i=0; i<rowHeaderIds.length;i++){
+            rowheaders[rowHeaderIds[i][0]+((rowHeaderIds[i].length>1)?("_block"+rowHeaderIds[i][1]):"")] = {title: rowHeaderTitles[i][0], index: i, categoryId: rowHeaderIds[i][0], blockId: ((rowHeaderIds[i].length>1)?("block"+rowHeaderIds[i][1]):null)};
+            rowheaders.length++;
+        }
+        return rowheaders;
+    }
+
+    /**
+     * @memberof TATableData
+     * @instance
+     * @function GetBlocks
+     * @description function to get parent rowheader ids
+     * @returns {String}
+     */
+    function GetBlocks(){
+        var blocks = [];
+        var rowHeaderIds = _globals.report.TableUtils.GetRowHeaderCategoryIds(_tableName);
+        var blockExists = false;
+        if(rowHeaderIds.length >0 && rowHeaderIds[0].length > 1){
+            for(var i=0; i<rowHeaderIds.length; i++){
+                blockExists = false;
+                for(var j = 0; j < blocks.length; j++){
+                    if( ("block"+rowHeaderIds[i][1]) == blocks[j]){
+                        blockExists = true;
+                        break;
+                    }
+                }
+
+                if( !blockExists ){
+                    blocks.push("block"+rowHeaderIds[i][1]);
+                }
+            }
+        }
+        return blocks
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html new file mode 100644 index 0000000..f89eea0 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html @@ -0,0 +1,2393 @@ + + + + + TATableUtils - Documentation + + + + + + + + + + + + + + + + +
+ +

TATableUtils

+ + + + + + + +
+ +
+ +

+ TATableUtils +

+ +

Class to work with tables using Text Analytics variables

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATableUtils(globals, folder, table)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +
table + + +Table + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _getSumOfCells(cellsNumber, offset) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get formula expression for sum of previous columns

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cellsNumber + + +Number + + + +
offset + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

AddClasses(classes)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
classes + + +Array.<String> + + + +
+ + + + + + + + + + + + + + + + + + + + + +

CreateTableFromExpression(rowHeaders, columnHeaders)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to create table from columns and rows expression

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowHeaders + + +String + + + +
columnHeaders + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

GetCategoriesExpression(groupName, addMinus, hideHeader, distribution) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get columnHeaderExpression for total or neg, neu, pos categories

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
groupName + + +String + + + +

"total", "neg", "neu","pos"

addMinus + + +Boolean + + + +

if you want to add minus to negative values

hideHeader + + +Boolean + + + +
distribution + + +String + + + +

0 - for counts, 1 - for percents

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetCategoriesHeader(groupName, addMinus, hideHeader, distribution) → {HeaderCollection}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get columnHeader for total or neg, neu, pos categories

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
groupName + + +String + + + +

"total", "neg", "neu","pos"

addMinus + + +Boolean + + + +

if you want to add minus to negative values

hideHeader + + +Boolean + + + +
distribution + + +String + + + +

0 - for counts, 1 - for percents

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +HeaderCollection + + +
+
+ + + + + + + + + +

GetChartHeader(type, formulas, title) → {HeaderChartCombo}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Header containing Barchart

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +ChartComboType + + + +
formulas + + +Array.<Object> + + + +

array of objects with formulas like {Formula: "cellv(col-25,row)", Color: (Config.Colors.NegNeuPosPalette.Positive)}

title + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +HeaderChartCombo + + +
+
+ + + + + + + + + +

GetTAQuestionExpression(questionType, mask, additionalStatement) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Expression for header containing Text Analytics variable

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
questionType + + +String + + + +

"overallsentiment", "categories", "positivementions", "negativementions", "categorysentiment"

mask + + +Array.<String> + + + +
additionalStatement + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetTimePeriodHeader(unit, from, to) → {HeaderQuestion}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Header for certain time period

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
unit + + +String + + + +

breaking by "d" - for days, "w" - for weeks, "m" - for months, "q" - for quarters, "y" - for years

from + + +Number + + + +

rolling from

to + + +Number + + + +

rolling to

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +HeaderQuestion + + +
+
+ + + + + + + + + +

SetupConditionalFormatting(conditions, name, applyTo)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
conditions + + +Array.<Object> + + + +

array of objects like { expression: 'cellv(col,row)<(-1)', style: 'negative'}

name + + +String + + + +
applyTo + + +Object + + + +

define area in object like {axis: Area.Columns, direction: Area.Left, indexes: "3"}

+ + + + + + + + + + + + + + + + + + + + + +

SetupDrilldown(parameterId, pageIDs)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameterId + + +String + + + +
pageIDs + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

SetupHideEmptyRows(parameterId)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameterId + + +Boolean + + + +
+ + + + + + + + + + + + + + + + + + + + + +

SetupRowsTableSorting(directionAscending, position, topN)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
directionAscending + + +Boolean + + + +
position + + +Byte + + + +
topN + + +Number + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html new file mode 100644 index 0000000..7fb999e --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html @@ -0,0 +1,427 @@ + + + + + TATableUtils.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATableUtils.js

+ + + + + + + +
+
+
/**
+ * @class TATableUtils
+ * @classdesc Class to work with tables using Text Analytics variables
+ *
+ * @constructs TATableUtils
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param  {TAFolder} folder
+ * @param {Table} table
+ */
+class TATableUtils{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _table: Table;
+
+    function TATableUtils(globals, folder, table){
+        _globals = globals;
+        _folder = folder;
+        _table = table;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetupRowsTableSorting
+     * @param {Boolean} directionAscending
+     * @param {Byte} position
+     * @param {Number} topN
+     */
+    function SetupRowsTableSorting(directionAscending: Boolean, position: Byte, topN){
+        _table.Sorting.Rows.Enabled = true;
+        _table.Sorting.Rows.SortByType = TableSortByType.Position;
+        _table.Sorting.Rows.Direction = directionAscending ? TableSortDirection.Ascending : TableSortDirection.Descending;
+        _table.Sorting.Rows.Position = position;
+        _table.Sorting.Rows.PositionDirection =  TableSortByPositionType.FromStart;
+        _table.Sorting.Rows.TopN = topN ? topN : 0;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetupConditionalFormatting
+     * @param {Object[]} conditions - array of objects like { expression: 'cellv(col,row)<(-1)', style: 'negative'}
+     * @param {String} name
+     * @param {Object} applyTo - define area in object like {axis: Area.Columns, direction: Area.Left, indexes: "3"}
+     */
+    function SetupConditionalFormatting(conditions, name, applyTo){
+        var formatter : ConditionalFormatting = _table.ConditionalFormatting;
+
+        var area : Area = new Area();
+
+        area.Name = name;
+        area.ApplyTo(applyTo.axis, applyTo.direction, applyTo.indexes);
+
+        for(var i = 0; i< conditions.length; i++){
+            var condition: Condition = new Condition();
+            condition.Expression = conditions[i].expression;
+            condition.Style = conditions[i].style;
+            area.AddCondition(condition);
+        }
+
+        formatter.AddArea(area);
+
+        _table.ConditionalFormatting = formatter;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetupDrilldown
+     * @param {String} parameterId
+     * @param {String} pageIDs
+     */
+    function SetupDrilldown(parameterId: String, pageIDs){
+        _table.Drilling.Rows.Enabled = true;
+        _table.Drilling.Rows.Type = DrilldownType.SetParameter;
+        _table.Drilling.Rows.ParameterID = parameterId;
+        _table.Drilling.Rows.TargetPages = pageIDs;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetupHideEmptyRows
+     * @param {Boolean} parameterId
+     */
+    function SetupHideEmptyRows(hideEmptyRows){
+        _table.RemoveEmptyHeaders.Rows = hideEmptyRows;
+    }
+
+    /**
+    * @memberof TATableUtils
+    * @instance
+    * @function AddClasses
+    * @param {String[]} classes
+    */
+    function AddClasses(classes){
+        _table.CssClass = ( ( !_table.CssClass ) ? "" : (_table.CssClass + " " ) ) + classes.join(" ");
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @private
+     * @function _getSumOfCells
+     * @description function to get formula expression for sum of previous columns
+     * @param {Number} cellsNumber
+     * @param {Number} offset
+     * @returns {String}
+     */
+    private function _getSumOfCells(cellsNumber,offset){
+        var cellsSum;
+        var cellsValues = [];
+        var columnNumber;
+        for( var i = 1; i <= cellsNumber; i++){
+            columnNumber = i + ( offset ? offset : 0);
+            cellsValues.push(("IF(cellv(col-"+columnNumber+",row) = EMPTYV(), 0, cellv(col-"+columnNumber+",row))"));
+        }
+
+        cellsSum = "IF(("+cellsValues.join('+')+") = 0, EMPTYV(), "+cellsValues.join('+')+")"
+        return cellsSum
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetCategoriesHeader
+     * @description function to get columnHeader for total or neg, neu, pos categories
+     * @param {String} groupName - "total", "neg", "neu","pos"
+     * @param {Boolean} addMinus - if you want to add minus to negative values
+     * @param {Boolean} hideHeader
+     * @param {String} distribution - 0 - for counts, 1 - for percents
+     * @returns {HeaderCollection}
+     */
+    function GetCategoriesHeader(groupName: String, addMinus, hideHeader, distribution){
+        var header: HeaderCollection = new HeaderCollection();
+        var headerFormula : HeaderFormula;
+        var headerCategories: HeaderCategories;
+        var categoryTitle: Label;
+        if( groupName == "all" ){
+            headerCategories= new HeaderCategories();
+            headerCategories.Mask.Type = MaskType.HideAll;
+            headerCategories.Totals = true;
+
+            headerCategories.HideHeader = hideHeader ? hideHeader : false;
+            header.Add(headerCategories);
+
+        }else{
+
+            headerCategories= new HeaderCategories();
+            headerCategories.Mask.Type = MaskType.ShowCodes;
+            headerCategories.Totals = false;
+            headerCategories.HideData = true;
+
+
+            headerFormula = new HeaderFormula();
+            headerFormula.Type = FormulaType.Expression;
+            headerFormula.Decimals = 0;
+            headerFormula.Priority = 0;
+
+            switch(groupName.toLowerCase()){
+                case "neg":
+                    headerCategories.Mask.Codes = Config.SentimentRange.Negative.join(",");
+                    headerFormula.Expression = _getSumOfCells(4)+(addMinus?"*(-1)":"");
+                    categoryTitle = new Label(9, "Negative");
+                    break;
+
+                case "neu":
+                    headerCategories.Mask.Codes = Config.SentimentRange.Neutral.join(",");
+                    headerFormula.Expression = _getSumOfCells(3);
+                    categoryTitle = new Label(9, "Neutral");
+                    break;
+
+                case "pos":
+                    headerCategories.Mask.Codes = Config.SentimentRange.Positive.join(",");
+                    headerFormula.Expression = _getSumOfCells(4);
+                    categoryTitle = new Label(9, "Positive");
+                    break;
+            }
+
+
+            headerFormula.Title = categoryTitle;
+
+            headerFormula.HideHeader = hideHeader ? hideHeader : false;
+
+            if(distribution && distribution == "1"){
+                headerCategories.Distributions.Enabled = true;
+                headerCategories.Distributions.Count = false;
+                headerCategories.Distributions.HorizontalPercents = true;
+                headerFormula.Expression +="/100";
+                headerFormula.Percent = true;
+            }
+            header.Add(headerCategories);
+            header.Add(headerFormula);
+        }
+        return header
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetCategoriesExpression
+     * @description function to get columnHeaderExpression for total or neg, neu, pos categories
+     * @param {String} groupName - "total", "neg", "neu","pos"
+     * @param {Boolean} addMinus - if you want to add minus to negative values
+     * @param {Boolean} hideHeader
+     * @param {String} distribution - 0 - for counts, 1 - for percents
+     * @returns {String}
+     */
+    function GetCategoriesExpression( groupName: String, addMinus, hideHeader, distribution ){
+        var expression = "";
+        if( groupName == "all" ){
+            expression = '[CAT]{totals:true';
+            expression += ';mask:emptyv';
+            if ( hideHeader )
+                expression += ';hideheader:true';
+            expression += '}'
+        }else{
+            var categoriesHeader = '[CAT]{totals:false;hidedata:true';
+            var formulaHeader = '[FORMULA]{decimals:0';
+            var formulaExpression;
+            var categoryLabel;
+            switch(groupName.toLowerCase()){
+                case "neg":
+                    formulaExpression = _getSumOfCells(4,7)+(addMinus?'*(-1)':'');
+                    categoryLabel = '"Negative"';
+                    break;
+
+                case "neu":
+                    formulaExpression = _getSumOfCells(3,4);
+                    categoryLabel = '"Neutral"';
+                    break;
+
+                case "pos":
+                    formulaExpression = _getSumOfCells(4,0);
+                    categoryLabel = '"Positive"';
+                    break;
+            }
+
+            if(distribution && distribution == "1"){
+                formulaExpression +="/100";
+                formulaHeader += ";percent:true";
+            }
+
+            formulaHeader += ';label:'+categoryLabel+';expression:"'+formulaExpression+'"';
+
+            if ( hideHeader )
+                formulaHeader += ';hideheader:true';
+            formulaHeader +='}'
+            categoriesHeader += "}"
+            expression = [categoriesHeader, formulaHeader].join("+")
+        }
+        return expression
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetChartHeader
+     * @description function to get Header containing Barchart
+     * @param {ChartComboType} type
+     * @param {Object[]} formulas - array of objects with formulas like {Formula: "cellv(col-25,row)", Color: (Config.Colors.NegNeuPosPalette.Positive)}
+     * @param {String} title
+     * @returns {HeaderChartCombo}
+     */
+    function GetChartHeader(type: ChartComboType, formulas, title){
+        var chartHeader: HeaderChartCombo = new HeaderChartCombo();
+        var chartValues = []
+        chartHeader.TypeOfChart = type;
+        chartHeader.Thickness = "80%";
+        chartHeader.CssClass = "chart-header";
+        chartHeader.ShowTitle = true;
+        chartHeader.Title = new Label(9, title?title:"Chart");
+
+        var chartValue: ChartComboValue;
+        for(var i = 0; i< formulas.length; i++) {
+            chartValue = new ChartComboValue();
+            chartValue.CssClass = "chart-value";
+            chartValue.Expression = formulas[i].Formula;
+            chartValue.BaseColor = new ChartComboColorSet([formulas[i].Color]);
+            chartValues.push(chartValue);
+        }
+
+        chartHeader.Values = chartValues;
+        return chartHeader;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetTAQuestionExpression
+     * @description function to get Expression for header containing Text Analytics variable
+     * @param {String} questionType - "overallsentiment", "categories", "positivementions", "negativementions", "categorysentiment"
+     * @param {String[]} mask
+     * @param {String} additionalStatement
+     * @returns {String}
+     */
+    function GetTAQuestionExpression(questionType, mask, additionalStatement){
+        var rowExpression;
+        var variableId = _folder.GetQuestionId(questionType);
+        rowExpression = variableId+'{id:'+variableId+';collapsed:true;totals:false'+( mask && mask.length > 0 ? (';mask:'+mask.join(",")) : null )+( additionalStatement ? (";"+additionalStatement) : null)+'}';
+        return rowExpression
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetTimePeriodHeader
+     * @description function to get Header for certain time period
+     * @param {String} unit - breaking by  "d" - for days, "w" - for weeks, "m" - for months, "q" - for quarters, "y" - for years
+     * @param {Number} from - rolling from
+     * @param {Number} to - rolling to
+     * @returns {HeaderQuestion}
+     */
+    function GetTimePeriodHeader(unit, from, to){
+        var project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
+        var questionnaireElement: QuestionnaireElement = project.CreateQuestionnaireElement(_folder.GetTimeVariableId());
+        var headerTimeSeries: HeaderQuestion;
+
+        headerTimeSeries = new HeaderQuestion(questionnaireElement);
+        headerTimeSeries.TimeSeries.FlatLayout = true;
+        headerTimeSeries.TimeSeries.RollingTimeseries.Enabled = true;
+
+        headerTimeSeries.TimeSeries.Time1 = TimeseriesTimeUnitType.Year;
+        switch (unit.toLowerCase()){
+            case "d":
+                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Month;
+                headerTimeSeries.TimeSeries.Time3 = TimeseriesTimeUnitType.DayOfMonth;
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Day;
+                break;
+            case "w":
+                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Week;
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Week;
+                break;
+            case "m":
+                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Month
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Month;;
+                break;
+            case "q":
+                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Quarter
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Quarter;
+                break;
+            case "y":
+            default:
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Year;
+                break;
+        }
+        headerTimeSeries.ShowTotals = false;
+        headerTimeSeries.TimeSeries.RollingTimeseries.From = from;
+        headerTimeSeries.TimeSeries.RollingTimeseries.To = to;
+
+        return headerTimeSeries
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function CreateTableFromExpression
+     * @description function to create table from columns and rows expression
+     * @param {String} rowHeaders
+     * @param {String} columnHeaders
+     */
+    function CreateTableFromExpression(rowHeaders, columnHeaders){
+        var headersArray = [rowHeaders];
+        if( columnHeaders ){
+            headersArray.push( columnHeaders )
+        }
+        var tableExpression = headersArray.join('^');
+        _table.AddHeaders(_globals.report, Config.DS_Main, tableExpression);
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html new file mode 100644 index 0000000..909523c --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html @@ -0,0 +1,829 @@ + + + + + TAThemeDistributionTable - Documentation + + + + + + + + + + + + + + + + +
+ +

TAThemeDistributionTable

+ + + + + + + +
+ +
+ +

+ TAThemeDistributionTable +

+ +

Class to work with ThemeDistribution table

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAThemeDistributionTable(globals, folder, table, sentiment)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFoldee + + + +

Text Analytics folder to build table from

table + + +Table + + + +
sentiment + + +String + + + +

"emptyv", "neg", "neu", "pos"

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addTimeSeriesColum()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _getCountsColumn() → {HeaderCollection}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +HeaderCollection + + +
+
+ + + + + + + + + +

(private) _getHeaderStatistics() → {Header}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Header + + +
+
+ + + + + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupConditionalFormatting}()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html new file mode 100644 index 0000000..0d573b7 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html @@ -0,0 +1,220 @@ + + + + + TAThemeDistributionTable.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAThemeDistributionTable.js

+ + + + + + + +
+
+
/**
+ * @class TAThemeDistributionTable
+ * @classdesc Class to work with ThemeDistribution table
+ *
+ * @constructs TAThemeDistributionTable
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFoldee} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} sentiment - "emptyv", "neg", "neu", "pos"
+ */
+class TAThemeDistributionTable{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _sentiment;
+    private var _percents;
+    private var _period;
+
+    function TAThemeDistributionTable(globals, folder, table, sentiment){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _sentiment = sentiment == "emptyv" ? "all" : sentiment;
+
+        _period = {
+            Unit: "m",
+            From: -11,
+            To: 0
+        };
+
+        _render();
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var qType = "categorysentiment";
+        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType);
+
+        _taTableUtils.CreateTableFromExpression(rowexpr);
+        _addTimeSeriesColumn();
+        _setupConditionalFormatting();
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _addTimeSeriesColum
+     */
+    private function _addTimeSeriesColumn(){
+        var headerTimeSeries = _taTableUtils.GetTimePeriodHeader(_period.Unit, _period.From, _period.To);
+        var columnsCollection: HeaderCollection = new HeaderCollection();
+
+        columnsCollection.AddRange(_getCountsColumn());
+        columnsCollection.Add(_getHeaderStatistics());
+
+        headerTimeSeries.SubHeaders.AddRange(columnsCollection);
+        _table.ColumnHeaders.Add(headerTimeSeries);
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _getCountsColumn
+     * @returns {HeaderCollection}
+     */
+    private function _getCountsColumn(){
+        var columnsCollection: HeaderCollection = _taTableUtils.GetCategoriesHeader(_sentiment, false, true, false);
+        return columnsCollection
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _getHeaderStatistics
+     * @returns {Header}
+     */
+    private function _getHeaderStatistics(){
+        var headerStatistics;
+        if( _sentiment == "all"){
+
+            headerStatistics = new HeaderStatistics();
+            headerStatistics.Statistics.Avg = true;
+
+        }else{
+
+            headerStatistics = new HeaderFormula();
+            headerStatistics.Type = FormulaType.Expression;
+            headerStatistics.Decimals = 0;
+            headerStatistics.Priority = 0;
+
+            switch (_sentiment) {
+                case "neg":
+                    headerStatistics.Expression = "-2";
+                    break;
+
+                case "neu":
+                    headerStatistics.Expression = "0";
+                    break;
+
+                case "pos":
+                    headerStatistics.Expression = "2";
+                    break;
+            }
+        }
+        headerStatistics.HideHeader = true;
+        headerStatistics.HideData = true;
+        return headerStatistics
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _setupConditionalFormatting}
+     */
+    private function _setupConditionalFormatting(){
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col+1, row)<(-1) AND cellv(col,row)<>EMPTYV() ',
+                    style: 'negative'
+                },
+
+                {
+                    expression: '(cellv(col+1, row)>=(-1)) AND (cellv(col+1, row)<=1) AND cellv(col,row)<>EMPTYV()',
+                    style: 'neutral'
+                },
+                {
+                    expression: 'cellv(col+1, row)>1 AND cellv(col,row)<>EMPTYV()',
+                    style: 'positive'
+                }
+            ],
+            "NegNeuPos",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "1-1000"
+            }
+        )
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html new file mode 100644 index 0000000..a88e082 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html @@ -0,0 +1,519 @@ + + + + + TATiles - Documentation + + + + + + + + + + + + + + + + +
+ +

TATiles

+ + + + + + + +
+ +
+ +

+ TATiles +

+ +

Class to work with Tiles on the Detailed analysis page

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATiles(globals, folder, table, sentiment, selectedCategory, distribution)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFoldee + + + +

Text Analytics folder to build table from

table + + +Table + + + +
sentiment + + +String + + + +

"total", "neg", "neu", "pos"

selectedCategory + + +String + + + +
distribution + + +String + + + +

0 for counts, 1 for percents

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html new file mode 100644 index 0000000..14962e1 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html @@ -0,0 +1,136 @@ + + + + + TATiles.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATiles.js

+ + + + + + + +
+
+
/**
+ * @class TATiles
+ * @classdesc Class to work with Tiles on the Detailed analysis page
+ *
+ * @constructs TATiles
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFoldee} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} sentiment - "total", "neg", "neu", "pos"
+ * @param {String} selectedCategory
+ * @param {String} distribution - 0 for counts, 1 for percents
+ */
+class TATiles{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _sentiment;
+    private var _distribution;
+    private var _selectedCategory;
+
+
+    function TATiles(globals, folder, table, sentiment, selectedCategory, distribution){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _sentiment = sentiment ? sentiment : "all";
+        _selectedCategory = selectedCategory != "emptyv" ? selectedCategory : "all";
+        _distribution = distribution ? distribution : "0";
+
+        _render();
+    }
+
+    /**
+     * @memberof TATiles
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TATiles
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var qType;
+        var mask;
+        if( _selectedCategory == "all" ){
+            qType = "os"
+            mask = false;
+        }else{
+            qType = "cs"
+            mask = [_selectedCategory];
+        }
+
+        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
+        var columnexpr = _taTableUtils.GetCategoriesExpression( _sentiment, false, true, _distribution);
+        _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr);
+
+        _table.Distribution.Enabled = true;
+        _table.Distribution.VerticalPercents = false;
+
+        if(_distribution == "1" && _sentiment != "all"){
+            _table.Distribution.HorizontalPercents = true;
+            _table.Distribution.Count = false;
+        }else{
+            _table.Distribution.HorizontalPercents = false;
+            _table.Distribution.Count = true;
+        }
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html new file mode 100644 index 0000000..710392f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html @@ -0,0 +1,862 @@ + + + + + TATopChangedTable - Documentation + + + + + + + + + + + + + + + + +
+ +

TATopChangedTable

+ + + + + + + +
+ +
+ +

+ TATopChangedTable +

+ +

Class to work with Most improved and most declined tables on the dashboard page

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATopChangedTable(globals, folder, table, sentiment, level, period, topN)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +

Text Analytics folder to build table from

table + + +Table + + + +
sentiment + + +String + + + +

"neg", "pos"

level + + +String + + + +

1, 2 or 3

period + + +String + + + +

m, y, d, w, q

topN + + +Number + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addChartColumn()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _addDifferenceColumn()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _addTimeSeriesColumn()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupSorting()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html new file mode 100644 index 0000000..d013b60 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html @@ -0,0 +1,188 @@ + + + + + TATopChangedTable.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATopChangedTable.js

+ + + + + + + +
+
+
/**
+ * @class TATopChangedTable
+ * @classdesc Class to work with Most improved and most declined tables on the dashboard page
+ *
+ * @constructs TATopChangedTable
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} sentiment - "neg", "pos"
+ * @param {String} level - 1, 2 or 3
+ * @param {String} period - m, y, d, w, q
+ * @param {Number} topN
+ */
+class TATopChangedTable{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _level;
+    private var _topN;
+    private var _sentiment;
+    private var _percents;
+    private var _period;
+
+    function TATopChangedTable(globals, folder, table, sentiment, level, period, topN){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _sentiment = sentiment ? true : false;
+        _level = parseInt(level);
+        _topN = topN ? topN : 5;
+        _period = {
+            Unit: period.toLowerCase().substr(0,1),
+            From: -1,
+            To: 0
+        };
+
+        _render();
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var qType = "categorysentiment";
+        var mask = _taMasks.GetCategoriesMask(_level);
+        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
+        _taTableUtils.CreateTableFromExpression(rowexpr);
+
+        _addTimeSeriesColumn();
+        _addDifferenceColumn();
+        _addChartColumn();
+        _setupSorting();
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _addTimeSeriesColumn
+     */
+    private function _addTimeSeriesColumn(){
+        var headerTimeSeries = _taTableUtils.GetTimePeriodHeader(_period.Unit, _period.From, _period.To);
+        var headerStatistics: HeaderStatistics = new HeaderStatistics();
+        headerStatistics.HideHeader = true;
+        headerStatistics.Statistics.Avg = true;
+        headerStatistics.SubHeaders.Add(headerTimeSeries);
+        _table.ColumnHeaders.Add(headerStatistics);
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _addDifferenceColumn
+     */
+    private function _addDifferenceColumn(){
+        var headerFormula: HeaderFormula = new HeaderFormula();
+        headerFormula.Type = FormulaType.Expression;
+        headerFormula.HideData = false;
+        headerFormula.Decimals = 1;
+        headerFormula.Expression = "cellv(col-1,row)-cellv(col-2,row)";
+        headerFormula.Title = new Label(9, " ");
+        headerFormula.HideHeader = true;
+
+        _table.ColumnHeaders.Add(headerFormula);
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _addChartColumn
+     */
+    private function _addChartColumn(){
+        var chartHeader = _taTableUtils.GetChartHeader(
+            ChartComboType.Bar,
+            [{
+                Formula: "cellv(col-1,row)",
+                Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative )
+            }],
+            "Change in avg. score");
+        _table.ColumnHeaders.Add(chartHeader);
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _setupSorting
+     */
+    private function _setupSorting(){
+        _taTableUtils.SetupRowsTableSorting( !_sentiment , 3, _topN );
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html new file mode 100644 index 0000000..c149ff3 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html @@ -0,0 +1,679 @@ + + + + + TATopSentimentTable - Documentation + + + + + + + + + + + + + + + + +
+ +

TATopSentimentTable

+ + + + + + + +
+ +
+ +

+ TATopSentimentTable +

+ +

Class to work with Most positive and most negative tables on the dashboard page

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATopSentimentTable(globals, folder, table, sentiment, level, topN)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +

Text Analytics folder to build table from

table + + +Table + + + +
sentiment + + +String + + + +

"neg", "pos"

level + + +String + + + +

1, 2 or 3

topN + + +Number + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addChartColum()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupSorting()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html new file mode 100644 index 0000000..5cd97bd --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html @@ -0,0 +1,146 @@ + + + + + TATopSentimentTable.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATopSentimentTable.js

+ + + + + + + +
+
+
/**
+ * @class TATopSentimentTable
+ * @classdesc Class to work with Most positive and most negative tables on the dashboard page
+ *
+ * @constructs TATopSentimentTable
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} sentiment - "neg", "pos"
+ * @param {String} level - 1, 2 or 3
+ * @param {Number} topN
+ */
+class TATopSentimentTable{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _level;
+    private var _topN;
+    private var _sentiment;
+    private var _percents;
+
+    function TATopSentimentTable(globals, folder, table, sentiment, level, topN){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _sentiment = sentiment ? true : false;
+        _level = parseInt(level);
+        _topN = topN ? topN : 5;
+
+        _render();
+    }
+
+    /**
+     * @memberof TATopSentimentTable
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TATopSentimentTable
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var qType = _sentiment ? "positivementions" : "negativementions";
+        var mask = _taMasks.GetCategoriesMask(_level);
+        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
+        var columnexpr = "[N]";
+        _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr);
+        _addChartColumn();
+        _setupSorting();
+    }
+
+    /**
+     * @memberof TATopSentimentTable
+     * @private
+     * @instance
+     * @function _addChartColum
+     */
+    private function _addChartColumn(){
+        var chartHeader = _taTableUtils.GetChartHeader(
+            ChartComboType.Bar,
+            [{
+                Formula: "cellv(col-1,row)",
+                Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative )
+            }],
+            "Count");
+        _table.ColumnHeaders.Add(chartHeader);
+    }
+
+    /**
+     * @memberof TATopSentimentTable
+     * @private
+     * @instance
+     * @function _setupSorting
+     */
+    private function _setupSorting(){
+        _taTableUtils.SetupRowsTableSorting( false, 1, _topN)
+    }
+}
+
+
+ + + + +
+ +
+ + + + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/global.html b/docs/text-analytics-template-codelibrary/0.0.120/global.html new file mode 100644 index 0000000..83de0f3 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/global.html @@ -0,0 +1,206 @@ + + + + + Global - Documentation + + + + + + + + + + + + + + + + +
+ +

Global

+ + + + + + + +
+ +
+ +

+ +

+ + +
+ +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

(private) _TALibrary :TALibrary

+ + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
Type:
+
    +
  • + +TALibrary + + +
  • +
+ + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/index.html b/docs/text-analytics-template-codelibrary/0.0.120/index.html new file mode 100644 index 0000000..24babf6 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/index.html @@ -0,0 +1,68 @@ + + + + + Home - Documentation + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+

TextAnalyticsTemplate_CodeLibrary

+
+ + + + + + +
+ +
+ + + + + + + \ No newline at end of file From c5ccf5010f65151564ab8a4a17a0b41c34cb12fb Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 11:36:07 +0300 Subject: [PATCH 002/224] docs --- .../0.0.120/scripts/linenumber.js | 25 + .../scripts/prettify/Apache-License-2.0.txt | 202 ++++++ .../0.0.120/scripts/prettify/lang-css.js | 2 + .../0.0.120/scripts/prettify/prettify.js | 28 + .../0.0.120/styles/jsdoc.css | 645 ++++++++++++++++++ .../0.0.120/styles/prettify.css | 79 +++ 6 files changed, 981 insertions(+) create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/styles/jsdoc.css create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js new file mode 100644 index 0000000..8d52f7e --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js @@ -0,0 +1,25 @@ +/*global document */ +(function() { + var source = document.getElementsByClassName('prettyprint source linenums'); + var i = 0; + var lineNumber = 0; + var lineId; + var lines; + var totalLines; + var anchorHash; + + if (source && source[0]) { + anchorHash = document.location.hash.substring(1); + lines = source[0].getElementsByTagName('li'); + totalLines = lines.length; + + for (; i < totalLines; i++) { + lineNumber++; + lineId = 'line' + lineNumber; + lines[i].id = lineId; + if (lineId === anchorHash) { + lines[i].className += ' selected'; + } + } + } +})(); diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js new file mode 100644 index 0000000..041e1f5 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js @@ -0,0 +1,2 @@ +PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", +/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js new file mode 100644 index 0000000..eef5ad7 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p ul { + padding: 0 10px; +} + +nav > ul > li > a { + color: #606; +} + +nav ul ul { + margin-bottom: 10px +} + +nav ul ul + ul { + margin-top: -10px; +} + +nav ul ul a { + color: hsl(207, 1%, 60%); + border-left: 1px solid hsl(207, 10%, 86%); +} + +nav ul ul a, +nav ul ul a:active { + padding-left: 20px +} + +nav h2 { + font-size: 12px; + margin: 0; + padding: 0; +} + +nav > h2 > a { + display: block; + margin: 10px 0 -10px; + color: #606 !important; +} + +footer { + color: hsl(0, 0%, 28%); + margin-left: 250px; + display: block; + padding: 15px; + font-style: italic; + font-size: 90%; +} + +.ancestors { + color: #999 +} + +.ancestors a { + color: #999 !important; +} + +.clear { + clear: both +} + +.important { + font-weight: bold; + color: #950B02; +} + +.yes-def { + text-indent: -1000px +} + +.type-signature { + color: #CA79CA +} + +.type-signature:last-child { + color: #eee; +} + +.name, .signature { + font-family: Consolas, Monaco, 'Andale Mono', monospace +} + +.signature { + color: #fc83ff; +} + +.details { + margin-top: 6px; + border-left: 2px solid #DDD; + line-height: 20px; + font-size: 14px; +} + +.details dt { + width: 120px; + float: left; + padding-left: 10px; +} + +.details dd { + margin-left: 70px; + margin-top: 6px; + margin-bottom: 6px; +} + +.details ul { + margin: 0 +} + +.details ul { + list-style-type: none +} + +.details pre.prettyprint { + margin: 0 +} + +.details .object-value { + padding-top: 0 +} + +.description { + margin-bottom: 1em; + margin-top: 1em; +} + +.code-caption { + font-style: italic; + font-size: 107%; + margin: 0; +} + +.prettyprint { + font-size: 14px; + overflow: auto; +} + +.prettyprint.source { + width: inherit; + line-height: 18px; + display: block; + background-color: #0d152a; + color: #aeaeae; +} + +.prettyprint code { + line-height: 18px; + display: block; + background-color: #0d152a; + color: #4D4E53; +} + +.prettyprint > code { + padding: 15px; +} + +.prettyprint .linenums code { + padding: 0 15px +} + +.prettyprint .linenums li:first-of-type code { + padding-top: 15px +} + +.prettyprint code span.line { + display: inline-block +} + +.prettyprint.linenums { + padding-left: 70px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.prettyprint.linenums ol { + padding-left: 0 +} + +.prettyprint.linenums li { + border-left: 3px #34446B solid; +} + +.prettyprint.linenums li.selected, .prettyprint.linenums li.selected * { + background-color: #34446B; +} + +.prettyprint.linenums li * { + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} + +.params, .props { + border-spacing: 0; + border: 1px solid #ddd; + border-collapse: collapse; + border-radius: 3px; + box-shadow: 0 1px 3px rgba(0,0,0,0.1); + width: 100%; + font-size: 14px; + margin: 1em 0; +} + +.params .type { + white-space: nowrap; +} + +.params code { + white-space: pre; +} + +.params td, .params .name, .props .name, .name code { + color: #4D4E53; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 100%; +} + +.params td, .params th, .props td, .props th { + margin: 0px; + text-align: left; + vertical-align: top; + padding: 10px; + display: table-cell; +} + +.params td { + border-top: 1px solid #eee +} + +.params thead tr, .props thead tr { + background-color: #fff; + font-weight: bold; +} + +.params .params thead tr, .props .props thead tr { + background-color: #fff; + font-weight: bold; +} + +.params td.description > p:first-child, .props td.description > p:first-child { + margin-top: 0; + padding-top: 0; +} + +.params td.description > p:last-child, .props td.description > p:last-child { + margin-bottom: 0; + padding-bottom: 0; +} + +span.param-type, .params td .param-type, .param-type dd { + color: #606; + font-family: Consolas, Monaco, 'Andale Mono', monospace +} + +.param-type dt, .param-type dd { + display: inline-block +} + +.param-type { + margin: 14px 0; +} + +.disabled { + color: #454545 +} + +/* navicon button */ +.navicon-button { + display: none; + position: relative; + padding: 2.0625rem 1.5rem; + transition: 0.25s; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + opacity: .8; +} +.navicon-button .navicon:before, .navicon-button .navicon:after { + transition: 0.25s; +} +.navicon-button:hover { + transition: 0.5s; + opacity: 1; +} +.navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after { + transition: 0.25s; +} +.navicon-button:hover .navicon:before { + top: .825rem; +} +.navicon-button:hover .navicon:after { + top: -.825rem; +} + +/* navicon */ +.navicon { + position: relative; + width: 2.5em; + height: .3125rem; + background: #000; + transition: 0.3s; + border-radius: 2.5rem; +} +.navicon:before, .navicon:after { + display: block; + content: ""; + height: .3125rem; + width: 2.5rem; + background: #000; + position: absolute; + z-index: -1; + transition: 0.3s 0.25s; + border-radius: 1rem; +} +.navicon:before { + top: .625rem; +} +.navicon:after { + top: -.625rem; +} + +/* open */ +.nav-trigger:checked + label:not(.steps) .navicon:before, +.nav-trigger:checked + label:not(.steps) .navicon:after { + top: 0 !important; +} + +.nav-trigger:checked + label .navicon:before, +.nav-trigger:checked + label .navicon:after { + transition: 0.5s; +} + +/* Minus */ +.nav-trigger:checked + label { + -webkit-transform: scale(0.75); + transform: scale(0.75); +} + +/* × and + */ +.nav-trigger:checked + label.plus .navicon, +.nav-trigger:checked + label.x .navicon { + background: transparent; +} + +.nav-trigger:checked + label.plus .navicon:before, +.nav-trigger:checked + label.x .navicon:before { + -webkit-transform: rotate(-45deg); + transform: rotate(-45deg); + background: #FFF; +} + +.nav-trigger:checked + label.plus .navicon:after, +.nav-trigger:checked + label.x .navicon:after { + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + background: #FFF; +} + +.nav-trigger:checked + label.plus { + -webkit-transform: scale(0.75) rotate(45deg); + transform: scale(0.75) rotate(45deg); +} + +.nav-trigger:checked ~ nav { + left: 0 !important; +} + +.nav-trigger:checked ~ .overlay { + display: block; +} + +.nav-trigger { + position: fixed; + top: 0; + clip: rect(0, 0, 0, 0); +} + +.overlay { + display: none; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: 100%; + background: hsla(0, 0%, 0%, 0.5); + z-index: 1; +} + +@media only screen and (min-width: 320px) and (max-width: 680px) { + body { + overflow-x: hidden; + } + + nav { + background: #FFF; + width: 250px; + height: 100%; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: -250px; + z-index: 3; + padding: 0 10px; + transition: left 0.2s; + } + + .navicon-button { + display: inline-block; + position: fixed; + top: 1.5em; + right: 0; + z-index: 2; + } + + #main { + width: 100%; + min-width: 360px; + } + + #main h1.page-title { + margin: 1em 0; + } + + #main section { + padding: 0; + } + + footer { + margin-left: 0; + } +} + +/** Add a '#' to static members */ +[data-type="member"] a::before { + content: '#'; + display: inline-block; + margin-left: -14px; + margin-right: 5px; +} diff --git a/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css b/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css new file mode 100644 index 0000000..d9521ec --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css @@ -0,0 +1,79 @@ +.pln { + color: #ddd; +} + +/* string content */ +.str { + color: #61ce3c; +} + +/* a keyword */ +.kwd { + color: #fbde2d; +} + +/* a comment */ +.com { + color: #aeaeae; +} + +/* a type name */ +.typ { + color: #8da6ce; +} + +/* a literal value */ +.lit { + color: #fbde2d; +} + +/* punctuation */ +.pun { + color: #ddd; +} + +/* lisp open bracket */ +.opn { + color: #000000; +} + +/* lisp close bracket */ +.clo { + color: #000000; +} + +/* a markup tag name */ +.tag { + color: #8da6ce; +} + +/* a markup attribute name */ +.atn { + color: #fbde2d; +} + +/* a markup attribute value */ +.atv { + color: #ddd; +} + +/* a declaration */ +.dec { + color: #EF5050; +} + +/* a variable name */ +.var { + color: #c82829; +} + +/* a function name */ +.fun { + color: #4271ae; +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; +} From 57461411f26b205b7a37684cae8494efc194288b Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 11:45:35 +0300 Subject: [PATCH 003/224] da config --- Static/Page_detailed_analysis.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index d328f17..3d3b7db 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -209,21 +209,21 @@ class Page_detailed_analysis{ var upgradeText = ""; context.component.Output.Append(upgradeText); From abf9a5bd1364b9ded8c4ded4574e219441c919f7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 11:51:08 +0300 Subject: [PATCH 004/224] docs --- .../0.0.120/Config.html | 1245 ----- .../0.0.120/Config.js.html | 226 - .../0.0.120/FilterComponents.html | 1002 ---- .../0.0.120/FilterComponents.js.html | 204 - .../0.0.120/Filters.html | 709 --- .../0.0.120/Filters.js.html | 107 - .../0.0.120/Hierarchy.html | 1573 ------ .../0.0.120/Hierarchy.js.html | 256 - .../0.0.120/JSON.html | 653 --- .../0.0.120/JSON.js.html | 128 - .../0.0.120/PageMaster.html | 878 --- .../0.0.120/Page_comments.html | 2618 --------- .../0.0.120/Page_comments.js.html | 323 -- .../0.0.120/Page_dashboard.html | 4905 ----------------- .../0.0.120/Page_dashboard.js.html | 463 -- .../0.0.120/Page_detailed_analysis.html | 2821 ---------- .../0.0.120/Page_detailed_analysis.js.html | 316 -- .../0.0.120/Page_filters.html | 1781 ------ .../0.0.120/Page_filters.js.html | 190 - .../0.0.120/ParameterUtilities.html | 817 --- .../0.0.120/ParameterUtilities.js.html | 152 - .../0.0.120/Parameters.html | 1748 ------ .../0.0.120/ReportMaster.html | 1005 ---- .../0.0.120/Static_Config.js.html | 226 - .../0.0.120/Static_Filters.js.html | 107 - .../0.0.120/Static_PageMaster.js.html | 133 - .../0.0.120/Static_Page_comments.js.html | 328 -- .../0.0.120/Static_Page_dashboard.js.html | 468 -- .../Static_Page_detailed_analysis.js.html | 322 -- .../0.0.120/Static_Page_filters.js.html | 196 - .../0.0.120/Static_Parameters.js.html | 208 - .../0.0.120/Static_ReportMaster.js.html | 121 - .../0.0.120/TADetailedAnalysisTable.html | 999 ---- .../0.0.120/TADetailedAnalysisTable.js.html | 320 -- .../0.0.120/TAFilters.html | 828 --- .../0.0.120/TAFilters.js.html | 155 - .../0.0.120/TAFolder.html | 1012 ---- .../0.0.120/TAFolder.js.html | 210 - .../0.0.120/TAHelper.html | 1121 ---- .../0.0.120/TAHelper.js.html | 180 - .../0.0.120/TAHitlistUtils.html | 691 --- .../0.0.120/TAHitlistUtils.js.html | 129 - .../0.0.120/TALibrary.html | 721 --- .../0.0.120/TALibrary.js.html | 144 - .../0.0.120/TAMasks.html | 702 --- .../0.0.120/TAMasks.js.html | 128 - .../0.0.120/TAParameters.html | 1516 ----- .../0.0.120/TAParameters.js.html | 251 - .../0.0.120/TATableData.html | 459 -- .../0.0.120/TATableData.js.html | 123 - .../0.0.120/TATableUtils.html | 2393 -------- .../0.0.120/TATableUtils.js.html | 427 -- .../0.0.120/TAThemeDistributionTable.html | 829 --- .../0.0.120/TAThemeDistributionTable.js.html | 220 - .../0.0.120/TATiles.html | 519 -- .../0.0.120/TATiles.js.html | 136 - .../0.0.120/TATopChangedTable.html | 862 --- .../0.0.120/TATopChangedTable.js.html | 188 - .../0.0.120/TATopSentimentTable.html | 679 --- .../0.0.120/TATopSentimentTable.js.html | 146 - .../0.0.120/global.html | 206 - .../0.0.120/index.html | 68 - .../0.0.120/scripts/linenumber.js | 25 - .../scripts/prettify/Apache-License-2.0.txt | 202 - .../0.0.120/scripts/prettify/lang-css.js | 2 - .../0.0.120/scripts/prettify/prettify.js | 28 - .../0.0.120/styles/jsdoc.css | 645 --- .../0.0.120/styles/prettify.css | 79 - 68 files changed, 43572 deletions(-) delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Config.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Config.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Filters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Filters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/JSON.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_comments.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_filters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Parameters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableData.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATiles.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/global.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/index.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/styles/jsdoc.css delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Config.html b/docs/text-analytics-template-codelibrary/0.0.120/Config.html deleted file mode 100644 index b320f80..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Config.html +++ /dev/null @@ -1,1245 +0,0 @@ - - - - - Config - Documentation - - - - - - - - - - - - - - - - -
- -

Config

- - - - - - - -
- -
- -

- Config -

- -

Contains configuration for the report.

- - -
- -
-
- - - - -

Constructor

- - -

new Config()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
Properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
DS_Main - - -String - - - -

value for datasource Id

CustomerLogo - - -String - - - -

link to the logo

CustomDateFormat - - -String - - - -

string that represents Date format which will be used in the report

TimeVariableId - - -String - - - -

date variable Id to use for trending tables and time variables. "interview_start" by default

VariablesToViewBy - - -Array.<String> - - - -

variables to break the detailed analysis table by. If not "null" will override values from survey tags

HitlistColumns - - -Array.<String> - - - -

variables to add to the end of the hitlist. If not "null" will override values from survey tags

FiltersQuestion - - -Array.<String> - - - -

variables for Filters page. If not "null" will override values from survey tags

Colors - - -Object - - - -

color palettes using in the report

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
DefaultColor - - -String - - - -

color for header

NegNeuPosPalette - - -Object - - - -

palette for negative - neutral - positive breaking

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
Negative - - -String - - - -

Negative color

Neutral - - -String - - - -

Neutral color

Positive - - -String - - - -

Positive color

- -
- -
SentimentRange - - -Object - - - -

negative - neutral - positive breaking by sentiment

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
Positive - - -Array.<Number> - - - -

array of positive sentiment's values

Neutral - - -Array.<Number> - - - -

array of neutral sentiment's values

Negative - - -Array.<Number> - - - -

array of negative sentiment's values

- -
TAQuestions - - -Array.<Object> - - - -

array of Text Analytics configurations for each verbatim question

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
DatasourceId - - -String - - - -

override DS_Main from config

DatabaseSchemaId - - -Number - - - -

id of the schema containing Text Analytics model

DatabaseTableName - - -String - - - -

name of the table containing Text Analytics model

IdColumnName - - -String - - - -

name of the column containing category id. "id" by default

TextColumnName - - -String - - - -

name of the column containing category name. "__l9" by default

RelationshipColumnName - - -String - - - -

name of the column containing parent id for subcategories and attributes. "parent" by default

TextSeparator - - -String - - - -

symbol which separate Parent and children names in the flat category name

TAFolderId - - -String - - - -

unique Id for each Text Analytics set

TAQuestionName - - -String - - - -

verbatim variable id

TAModelNo - - -String - - - -

model number used for Text Analytics

TimeVariableId - - -String - - - -

date variable Id to use for trending tables and time variables. Overrides Config value

VariablesToViewBy - - -Array.<String> - - - -

variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config

HitlistColumns - - -Array.<String> - - - -

variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config

- -
- - - - - - -
-

Config class that doesn't have a constructor.

-
- - - - - - - - - -
Example
- -
static var DS_Main = "ds0";
    static var CustomerLogo = null;
    static var CustomDateFormat = 'dd-MMM-yyyy';
    static var TimeVariableId = 'interview_start';
    static var  VariablesToViewBy = ["type", "source"];
    static var  HitlistColumns = ["membership_level"];
    static var FiltersQuestions = null;

    static var Colors = {
           DefaultColor: "#ffff00",
           NegNeuPosPalette: {
               Negative: "#fd9900",
               Neutral: "#cdd1d9",
               Positive: "#7cc700"
           }
       };

    static var SentimentRange = {
           Positive: [8,9,10,11],
           Neutral: [5,6,7],
           Negative: [1,2,3,4]
       }

    static var TAQuestions = [
    {
        DatasourceId: "ds0",

        DatabaseSchemaId: 4909,
        DatabaseTableName: "Retail 785",
        RelationshipColumnName: "parent",
        TextSeparator: "|",

        TAFolderId: "why785",
        TAQuestionName: "why",
        TAModelNo: "785",

        TimeVariableId: 'interview_start'
    }
    ];
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) GetTALibrary()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function that returns TALibrary from Config

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(static) SetTaLibrary(globals)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function that processes config and cashes all Text Analitycs data

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Config.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Config.js.html deleted file mode 100644 index 0c6e46f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Config.js.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - Config.js - Documentation - - - - - - - - - - - - - - - - -
- -

Config.js

- - - - - - - -
-
-
/**
- * Config class that doesn't have a constructor.
- * @class Config
- * @classdesc Contains configuration for the report.
- *
- * @prop {String} DS_Main - value for datasource Id
- * @prop {String} CustomerLogo - link to the logo
- *
- * @prop {String} CustomDateFormat - string that represents Date format which will be used in the report
- * @prop {String} TimeVariableId - date variable Id to use for trending tables and time variables. "interview_start" by default
- *
- * @prop {String[]} VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags
- * @prop {String[]} HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags
- * @prop {String[]} FiltersQuestion - variables for Filters page. If not "null" will override values from survey tags
- *
- * @prop {Object} Colors - color palettes using in the report
- * @prop {String} Colors.DefaultColor - color for header
- * @prop {Object} Colors.NegNeuPosPalette - palette for negative - neutral - positive breaking
- * @prop {String} Colors.NegNeuPosPalette.Negative - Negative color
- * @prop {String} Colors.NegNeuPosPalette.Neutral - Neutral color
- * @prop {String} Colors.NegNeuPosPalette.Positive - Positive color
- *
- * @prop {Object} SentimentRange - negative - neutral - positive breaking by sentiment
- * @prop {Number[]} SentimentRange.Positive - array of positive sentiment's values
- * @prop {Number[]} SentimentRange.Neutral - array of neutral sentiment's values
- * @prop {Number[]} SentimentRange.Negative - array of negative sentiment's values
- *
- * @prop {Object[]} TAQuestions - array of Text Analytics configurations for each verbatim question
- * @prop {String} TAQuestions.DatasourceId - override DS_Main from config
- * @prop {Number} TAQuestions.DatabaseSchemaId - id of the schema containing Text Analytics model
- * @prop {String} TAQuestions.DatabaseTableName - name of the table containing Text Analytics model
- * @prop {String} TAQuestions.IdColumnName - name of the column containing category id. "id" by default
- * @prop {String} TAQuestions.TextColumnName - name of the column containing category name. "__l9" by default
- * @prop {String} TAQuestions.RelationshipColumnName - name of the column containing parent id for subcategories and attributes. "parent" by default
- * @prop {String} TAQuestions.TextSeparator - symbol which separate Parent and children names in the flat category name
- * @prop {String} TAQuestions.TAFolderId - unique Id for each Text Analytics set
- * @prop {String} TAQuestions.TAQuestionName - verbatim variable id
- * @prop {String}  TAQuestions.TAModelNo - model number used for Text Analytics
- * @prop {String} TAQuestions.TimeVariableId - date variable Id to use for trending tables and time variables. Overrides Config value
- * @prop {String[]} TAQuestions.VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config
- * @prop {String[]} TAQuestions.HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config
- *
- * @example
- *     static var DS_Main = "ds0";
- *     static var CustomerLogo = null;
- *     static var CustomDateFormat = 'dd-MMM-yyyy';
- *     static var TimeVariableId = 'interview_start';
- *     static var  VariablesToViewBy = ["type", "source"];
- *     static var  HitlistColumns = ["membership_level"];
- *     static var FiltersQuestions = null;
- *
- *     static var Colors = {
- *            DefaultColor: "#ffff00",
- *            NegNeuPosPalette: {
- *                Negative: "#fd9900",
- *                Neutral: "#cdd1d9",
- *                Positive: "#7cc700"
- *            }
- *        };
- *
- *     static var SentimentRange = {
- *            Positive: [8,9,10,11],
- *            Neutral: [5,6,7],
- *            Negative: [1,2,3,4]
- *        }
- *
- *     static var TAQuestions = [
- *     {
- *         DatasourceId: "ds0",
- *
- *         DatabaseSchemaId: 4909,
- *         DatabaseTableName: "Retail 785",
- *         RelationshipColumnName: "parent",
- *         TextSeparator: "|",
- *
- *         TAFolderId: "why785",
- *         TAQuestionName: "why",
- *         TAModelNo: "785",
- *
- *         TimeVariableId: 'interview_start'
- *     }
- *     ];
- */
-public class Config {
-
-    static var DS_Main = "ds0";
-    static var CustomerLogo = null;
-    static var CustomDateFormat = 'dd-MMM-yyyy';
-    static var TimeVariableId = 'interview_start';
-    static var  VariablesToViewBy = ["type", "source"];
-    static var  HitlistColumns = ["membership_level"];
-    static var FiltersQuestions = null;
-
-    static var Colors = {
-        DefaultColor: "#ffff00",
-        NegNeuPosPalette: {
-            Negative: "#fd9900",
-            Neutral: "#cdd1d9",
-            Positive: "#7cc700"
-        }
-    };
-
-    static var SentimentRange = {
-        Positive: [8,9,10,11],
-        Neutral: [5,6,7],
-        Negative: [1,2,3,4]
-    }
-
-    static var TAQuestions = [
-
-
-        {
-            DatasourceId: "ds0",
-
-            DatabaseSchemaId: 4909,
-            DatabaseTableName: "Retail 785",
-            RelationshipColumnName: "parent",
-            TextSeparator: "|",
-
-            TAFolderId: "why785",
-            TAQuestionName: "why",
-            TAModelNo: "785",
-
-            TimeVariableId: 'interview_start'
-        }
-    ];
-
-    /**
-     * @memberof Config
-     * @private
-     * @static
-     * @prop _TALibrary
-     * @type {TALibrary}
-     * @description static variable containing all Text Analytics data
-     */
-    private static var _TALibrary: TALibrary;
-
-    /**
-     * @memberof Config
-     * @private
-     * @static
-     * @prop _haveTALibrary
-     * @type {boolean}
-     * @description static variable indicating that _TALibrary variable has been set
-     */
-    private static var _haveTALibrary;
-
-    /**
-     * @memberof Config
-     * @function SetTaLibrary
-     * @description function that processes config and cashes all Text Analitycs data
-     * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function SetTALibrary(globals){
-        if(!_haveTALibrary){
-            _TALibrary = new TALibrary(globals, TAQuestions);
-            _haveTALibrary = true;
-        }
-    }
-
-    /**
-     * @memberof Config
-     * @function GetTALibrary
-     * @description function that returns TALibrary from Config
-     */
-    static function GetTALibrary(){
-        return _TALibrary;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Aug 30 2016 15:59:55 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html deleted file mode 100644 index a3117ba..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html +++ /dev/null @@ -1,1002 +0,0 @@ - - - - - FilterComponents - Documentation - - - - - - - - - - - - - - - - -
- -

FilterComponents

- - - - - - - -
- -
- -

- FilterComponents -

- -

Class to process filters on Filter page

- - -
- -
-
- - - - -

Constructor

- - -

new FilterComponents(globals, taLib)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

taLib - - -TALibrary - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

ClearFilters()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to set all filter parameters to null

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetAllAnsweredFilterCodes() → {Array.<Object>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get selected filters information

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - -
-
    -
  • array of Objects with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
  • -
-
- - - -
-
- Type -
-
- -Array.<Object> - - -
-
- - - - - - - - - -

GetFilterInformation(filterNumber) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get filter information

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - -
-
    -
  • Object with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
  • -
-
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

GetFilterQuestion(filterNumber) → {Question}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Question object for the particular filter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Question - - -
-
- - - - - - - - - -

GetFilterTitle(filterNumber) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Title for the particular filter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetGlobalsFilterExpression() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get filter expression for all selected filters

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html deleted file mode 100644 index 8c04147..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - FilterComponents.js - Documentation - - - - - - - - - - - - - - - - -
- -

FilterComponents.js

- - - - - - - -
-
-
/**
- * @class FilterComponents
- * @classdesc Class to process filters on Filter page
- *
- * @constructs FilterComponents
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TALibrary} taLib
- */
-
-class FilterComponents{
-    private var _globals;
-    private var _filterQuestions;
-    private var _parameterUtilities;
-
-
-    function FilterComponents(globals,taLib){
-        _globals = globals;
-        var questionsArray = taLib.GetFiltersQuestions()
-        _filterQuestions = [];
-        var project  = _globals.report.DataSource.GetProject(Config.DS_Main);
-        for( var i = 0; i < questionsArray.length; i++ ){
-            _filterQuestions.push(project.GetQuestion( questionsArray[i]))
-        }
-
-        _parameterUtilities = new ParameterUtilities(_globals);
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetFilterQuestion
-     * @description function to get Question object for the particular filter
-     * @param {Number} filterNumber
-     * @returns {Question}
-     */
-    function GetFilterQuestion(filterNumber){
-        var filterQuestion = false;
-        if(_filterQuestions.length > filterNumber && ( _filterQuestions[(filterNumber)].QuestionType == QuestionType.Multi || _filterQuestions[(filterNumber)].QuestionType == QuestionType.Single )){
-            var filterQuestion = _filterQuestions[(filterNumber)];
-        }
-
-        return filterQuestion
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetFilterTitle
-     * @description function to get Title for the particular filter
-     * @param {Number} filterNumber
-     * @returns {String}
-     */
-    function GetFilterTitle(filterNumber){
-        var filterQuestion = GetFilterQuestion(filterNumber);
-        var label = "";
-        if(filterQuestion)
-            var label = filterQuestion.Title ? filterQuestion.Title : filterQuestion.QuestionId;
-
-        return label
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetGlobalsFilterExpression
-     * @description function to get filter expression for all selected filters
-     * @returns {String}
-     */
-    function GetGlobalsFilterExpression(){
-        var fExpr;
-        var filterExpressionSegments = [];
-        var codes = GetAllAnsweredFilterCodes()
-        for (var i = 0; i < codes.length; i++){
-            if( codes[i].questionType == QuestionType.Multi ) {
-                filterExpressionSegments.push ('ANY(' + codes[i].questionId + ',"' + codes[i].values.join('","') + '")');
-            }
-            else
-            {
-                filterExpressionSegments.push ('IN(' + codes[i].questionId + ',"' + codes[i].values.join('","') + '")');
-            }
-        }
-
-        fExpr = filterExpressionSegments.join(" AND ")
-        return fExpr
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetAllAnsweredFilterCodes
-     * @description function to get selected filters information
-     * @returns {Object[]} - array of Objects with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
-     */
-    function GetAllAnsweredFilterCodes(){
-        var answeredCodes = [];
-        for (var i = 0; i < _filterQuestions.length; i++){
-            var codes = GetFilterInformation(i);
-            if(codes && codes.values.length > 0){
-                answeredCodes.push(codes);
-            }
-        }
-        return answeredCodes
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetFilterInformation
-     * @description function to get filter information
-     * @param {Number} filterNumber
-     * @returns {Object} - Object with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
-     */
-    function GetFilterInformation(filterNumber){
-        var result = false;
-        var parameterName = 'FILTER' + (filterNumber +1);
-        var codes = _parameterUtilities.GetParameterCodes(parameterName);
-        if ( codes.length > 0 ){
-            var fTitle = GetFilterTitle(filterNumber);
-            var fId = _filterQuestions[filterNumber].QuestionId;
-            var fType = _filterQuestions[filterNumber].QuestionType
-            result = {
-                questionTitle: fTitle,
-                questionId: fId,
-                questionType: fType,
-                values: [],
-                texts: []
-            };
-            for ( var i = 0; i < codes.length; i++){
-                result.values.push(codes[i]);
-                result.texts.push(_filterQuestions[filterNumber].GetAnswer(codes[i]).Text)
-            }
-        }
-        return result
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function ClearFilters
-     * @description function to set all filter parameters to null
-     */
-    function ClearFilters(){
-        for (var i = 0; i < _filterQuestions.length; i++){
-            _globals.state.Parameters["FILTER"+(i+1)] = null;
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Filters.html b/docs/text-analytics-template-codelibrary/0.0.120/Filters.html deleted file mode 100644 index 3d6c6cd..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Filters.html +++ /dev/null @@ -1,709 +0,0 @@ - - - - - Filters - Documentation - - - - - - - - - - - - - - - - -
- -

Filters

- - - - - - - -
- -
- -

- Filters -

- -

Static class for Reportal Filter Components

- - -
- -
-
- - - - -

Constructor

- - -

new Filters()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) DateFilter(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to filtrate selected dates

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) FilterPageFilter(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to filtrate selected values on the filterpage

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TAHitlistSentimentFilter(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to filtrate only selected sentiment in the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TASelectedCategoryFilter(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to filtrate only selected category in the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Filters.js.html deleted file mode 100644 index 362ec77..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Filters.js.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - Filters.js - Documentation - - - - - - - - - - - - - - - - -
- -

Filters.js

- - - - - - - -
-
-
/**
-* @class Filters
-* @classdesc Static class for Reportal Filter Components
-*/
-class Filters {
-    /**
-     * @memberof Filters
-     * @function TASelectedCategoryFilter
-     * @description function to filtrate only selected category in the hitlist
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TASelectedCategoryFilter(context){
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetSelectedCategoryFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function TAHitlistSentimentFilter
-     * @description function to filtrate only selected sentiment in the hitlist
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TAHitlistSentimentFilter(context){
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT")
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function DateFilter
-     * @description function to filtrate selected dates
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function DateFilter(context){
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetDateFilterExpression("TA_DATE_FROM", "TA_DATE_TO");
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function FilterPageFilter
-     * @description function to filtrate selected values on the filterpage
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function FilterPageFilter(context){
-        var fExpr = "";
-        fExpr = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).GetGlobalsFilterExpression();
-        context.component.Expression = fExpr;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Aug 30 2016 16:04:46 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html deleted file mode 100644 index fa520df..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html +++ /dev/null @@ -1,1573 +0,0 @@ - - - - - Hierarchy - Documentation - - - - - - - - - - - - - - - - -
- -

Hierarchy

- - - - - - - -
- -
- -

- Hierarchy -

- -

Class to create Hierarchical structure from database table

- - -
- -
-
- - - - -

Constructor

- - -

new Hierarchy(globals, settings)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

settings - - -Object - - - -

object containing idColumnName, textColumnName, relationshipColumnName, textSeparator

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _createFlatEntry(row) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

creating object from db table row

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
row - - -Object - - - -

db table row

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

(private) _generateFlatList(rows)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

creating list of rows for variable _flat

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rows - - -Array.<Object> - - - -

list of rows from db table

- - - - - - - - - - - - - - - - - - - - - -

(private) _getDataTable() → {DataTable}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get DataTable from DatabaseDesigner

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -DataTable - - -
-
- - - - - - - - - -

(private) _mergeOptions(obj1, obj2) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to merge two sets of settings

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
obj1 - - -Object - - - -
obj2 - - -Object - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

(private) _setupHierarchy(level, parentObj)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

recursive function to parse db table to hierarchical view

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -Number - - - -
parentObj - - -Number - - - -
- - - - - - - - - - - - - - - - - - - - - -

GetFlatArray() → {Number}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Array of rows from db table

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Number - - -
-
- - - - - - - - - -

GetHierarchyArray() → {Array.<Object>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Array of hierarchical objects

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<Object> - - -
-
- - - - - - - - - -

GetLevelArray(level) → {Array.<Object>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Array of hierarchical objects of particular level

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<Object> - - -
-
- - - - - - - - - -

GetLevelsCount() → {Number}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Count of levels in the hierarchy

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Number - - -
-
- - - - - - - - - -

GetObjectById(id) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get particular row from db table

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html deleted file mode 100644 index 8c4d7b9..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - Hierarchy.js - Documentation - - - - - - - - - - - - - - - - -
- -

Hierarchy.js

- - - - - - - -
-
-
/**
- * @class Hierarchy
- * @classdesc Class to create Hierarchical structure from database table
- *
- * @constructs Hierarchy
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {Object} settings - object containing idColumnName, textColumnName, relationshipColumnName, textSeparator
- *
- */
-class Hierarchy{
-    private var _globals;
-    private var _settings;
-
-    private var _hierarchy = [];
-    private var _levels = [];
-    private var _flat = [];
-    private var _flatObject = {};
-
-    private var _defaultSettings = {
-        idColumnName: "id",
-        textColumnName: "__l9",
-        relationshipColumnName: "parent",
-        textSeparator: "|"
-    };
-
-    function Hierarchy(globals, settings) {
-        _globals = globals;
-        _settings = _mergeOptions(_defaultSettings, settings);
-        globals.log.LogDebug(_settings.schemaId)
-        var dataTable = _getDataTable();
-        _generateFlatList(dataTable.Rows)
-        _setupHierarchy(0, null);
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _mergeOptions
-     * @description function to merge two sets of settings
-     * @param {Object} obj1
-     * @param {Object} obj2
-     * @returns {Object}
-     */
-    private function _mergeOptions(obj1, obj2) {
-        var obj3 = {};
-        for (var attrname in obj1) {
-            obj3[attrname] = obj1[attrname];
-        }
-        for (var attrname in obj2) {
-            obj3[attrname] = obj2[attrname];
-        }
-        return obj3;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _getDataTable
-     * @description function to get DataTable from DatabaseDesigner
-     * @returns {DataTable}
-     */
-    private function _getDataTable() {
-        var schema = _globals.confirmit.GetDBDesignerSchema(_settings.schemaId);
-        var table = schema.GetDBDesignerTable(_settings.tableName);
-        var dataTable = table.GetDataTable();
-        return dataTable;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _generateFlatList
-     * @description creating list of rows for variable _flat
-     * @param {Object[]} rows - list of rows from db table
-     */
-    private function _generateFlatList(rows) {
-        for(var i = 0; i < rows.Count; ++i) {
-            var flatEntry = _createFlatEntry(rows[i]);
-            _flat.push(flatEntry);
-        }
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _createFlatEntry
-     * @description creating object from db table row
-     * @param {Object} row - db table row
-     * @returns {Object}
-     */
-    private function _createFlatEntry(row) {
-        var name = TAHelper.GetSelfName(row[_settings.textColumnName], _settings.textSeparator, _globals.log);
-        var flatEntry = {
-            id: row[_settings.idColumnName],
-            text: row[_settings.textColumnName],
-            name: name,
-            parent: row[_settings.relationshipColumnName]
-        };
-        return flatEntry;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetHierarchyArray
-     * @description function to get Array of hierarchical objects
-     * @returns {Object[]}
-     */
-    function GetHierarchyArray() {
-        return _hierarchy;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetLevelArray
-     * @description function to get Array of hierarchical objects of particular level
-     * @param {Number} level
-     * @returns {Object[]}
-     */
-    function GetLevelArray(level) {
-        return _levels[level];
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetLevelsCount
-     * @description function to get Count of levels in the hierarchy
-     * @returns {Number}
-     */
-    function GetLevelsCount() {
-        return _levels.length
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetFlatArray
-     * @description function to get Array of rows from db table
-     * @returns {Number}
-     */
-    function GetFlatArray() {
-        return _flat;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetObjectById
-     * @description function to get particular row from db table
-     * @param {String} id
-     * @returns {Object}
-     */
-    function GetObjectById(id) {
-        return _flatObject[id];
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _setupHierarchy
-     * @description recursive function to parse db table to hierarchical view
-     * @param {Number} level
-     * @param {Number} parentObj
-     */
-    private function _setupHierarchy( level, parentObj ) {
-        var parentObjId = parentObj ? parentObj.id  : "";
-
-        for(var i = 0; i < _flat.length; ++i) {
-            if( ( !parentObj && !_flat[i].parent ) || parentObjId.CompareTo( _flat[i].parent ? _flat[i].parent : "" ) == 0) {
-                var newObj = {
-                    id: _flat[i].id,
-                    text: _flat[i].text,
-                    name: _flat[i].name,
-                    parent: parentObjId,
-                    subcells: []
-                };
-                if( _levels.length <= level ) {
-                    _levels.push( [] );
-                }
-                _setupHierarchy( (level+1), newObj );
-                if( !parentObj ) {
-                    _hierarchy.push( newObj );
-                }
-                else {
-                    parentObj.subcells.push( newObj );
-                }
-                _levels[ level ].push( newObj );
-                _flatObject[ newObj.id ] = newObj;
-            }
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/JSON.html b/docs/text-analytics-template-codelibrary/0.0.120/JSON.html deleted file mode 100644 index 851c4d0..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/JSON.html +++ /dev/null @@ -1,653 +0,0 @@ - - - - - JSON - Documentation - - - - - - - - - - - - - - - - -
- -

JSON

- - - - - - - -
- -
- -

- JSON -

- -

Class with functions Helping working with reportal objects like JSON objects

- - -
- -
-
- - - - -

Constructor

- - -

new JSON()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private, static) _escapeEntities(str) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to replace some chars

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
str - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

(static) print(config, configName) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to create js variable from reportal object

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - - -Object - - - -

reportal object

configName - - -String - - - -

name for the js variable ('config' by degault)

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

(static) stringify(obj) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

implement JSON.stringify serialization

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
obj - - -Object - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html b/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html deleted file mode 100644 index da81f68..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - JSON.js - Documentation - - - - - - - - - - - - - - - - -
- -

JSON.js

- - - - - - - -
-
-
/**
-* @class JSON
-* @classdesc Class with functions Helping working with reportal objects like JSON objects
-*/
-class JSON
-{
-    /**
-     * @memberof JSON
-     * @function stringify
-     * @description implement JSON.stringify serialization
-     * @param {Object} obj
-     * @returns {String}
-     */
-    static function stringify(obj) {
-
-        var t = typeof (obj);
-        if (t != "object" || obj === null) {
-            // simple data type
-            if (t == "string") obj = '"'+ escapeEntities(obj) +'"';
-            else if(t=="number") obj = '"'+obj+'"';
-            return String(obj);
-        }
-        else {
-            // recurse array or object
-            var n, v, json = [], arr = (obj && obj.constructor == Array);
-            for (n in obj) {
-                v = obj[n]; t = typeof(v);
-                if (t == "string"){
-                    v = '"'+ _escapeEntities(v) +'"';
-                }
-                else if (t == "object" && v !== null) v = stringify(v);
-                json.push((arr ? "" : '"' + n + '":') + String(v));
-            }
-            return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
-        }
-    };
-
-    /**
-     * @memberof JSON
-     * @private
-     * @function _escapeEntities
-     * @description function to replace some chars
-     * @param {String} str
-     * @returns {String}
-     */
-    private static function _escapeEntities(str) {
-        var entitiesMap = {
-            '<': '&lt;',
-            '>': '&gt;',
-            '&': '&amp;',
-            '\"': '\\&quot;',
-            '\'':'&amp;apos;'
-        };
-        return str.replace(/[&<>\"\']/g, function(key) {
-            return entitiesMap[key];
-        });
-    }
-
-    /**
-     * @memberof JSON
-     * @function print
-     * @description function to create js variable from reportal object
-     * @param {Object} config - reportal object
-     * @param {String} configName - name for the js variable ('config' by degault)
-     * @returns {String}
-     */
-    static function print(config, configName){ // JSON.print prints JSON `config` to page as JavaScript variable with a specified `configName`
-        var varName = configName || 'config';
-        return '<script type="text/javascript">var '+ varName + '=' + stringify(config) +'</script>';
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html b/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html deleted file mode 100644 index 4762710..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html +++ /dev/null @@ -1,878 +0,0 @@ - - - - - PageMaster - Documentation - - - - - - - - - - - - - - - - -
- -

PageMaster

- - - - - - - -
- -
- -

- PageMaster -

- -

Static class for Reportal Page master components

- - -
- -
-
- - - - -

Constructor

- - -

new PageMaster()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) ClearFilters_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the Clear filters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) ClearFilters_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the clear filters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) Filters_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Ffilters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Filters_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the filters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) FilterSummary_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the filterSummary

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html deleted file mode 100644 index 5a12d0b..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html +++ /dev/null @@ -1,2618 +0,0 @@ - - - - - Page_comments - Documentation - - - - - - - - - - - - - - - - -
- -

Page_comments

- - - - - - - -
- -
- -

- Page_comments -

- -

Static class for Reportal Page comments components

- - -
- -
-
- - - - -

Constructor

- - -

new Page_comments()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) htlComments_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) htlComments_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) lstAttribute_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Attribute selector

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) lstCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Category selector

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) lstSubCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Sub Category selector

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtAttribute_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the the attributes list label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtAttribute_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the attributes selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtAttribute_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the sentiment selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Category selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtCategory_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the Category selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtCommentsScript_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the text

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtCommentsScript_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the script which processes hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtSentiment_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the the sentiment list label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtSubCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the the sub category list label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtSubCategory_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the sub Category selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.js.html deleted file mode 100644 index aaa23ea..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.js.html +++ /dev/null @@ -1,323 +0,0 @@ - - - - - Page_comments.js - Documentation - - - - - - - - - - - - - - - - -
- -

Page_comments.js

- - - - - - - -
-
-
/**
- * @class Page_comments
- * @classdesc Static class for Reportal Page comments components
- */
-class Page_comments{
-    private static var _filterComponents;
-    private static var _folder;
-    private static const _defaultParameters = [
-        {
-            Id: "TA_TOP_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_SUB_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_ATTRIBUTES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_COMMENTS_SENTIMENT",
-            Value: "emptyv"
-        }
-    ];
-
-    /**
-     * @memberof Page_comments
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        if(context.component.SubmitSource == "ClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
-        }
-        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "comments");
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        _folder = Config.GetTALibrary().GetFolderById();
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function htlComments_Hide
-     * @description function to hide the hitlist
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function htlComments_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function htlComments_Render
-     * @description function to render the hitlist
-     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function htlComments_Render(context){
-        var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component);
-        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-
-        if( selectedCategory ){
-            htlComments.AddTAColumn("categorysentiment", false, selectedCategory);
-        }
-
-        htlComments.AddTAColumn();
-        htlComments.AddColumn(_folder.GetTimeVariableId(), true);
-        htlComments.AddTAColumn("overallsentiment");
-        htlComments.AddTAColumn("categories");
-        htlComments.AddConfiguredColumns();
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCommentsScript_Hide
-     * @description function to hide the text
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCommentsScript_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCommentsScript_Render
-     * @description function to render the script which processes hitlist
-     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCommentsScript_Render(context){
-        var hitlistInit = "<script>"+
-                "Y.Global.on('hitlistloaded', function (e) {  "+
-                    "var upgradedHitlist = new Reportal.Hitlist({"+
-                        "hitlist: document.querySelector('.reportal-hitlist-container'),"+
-                        "headers: hitlistHeaders"+
-                    "});"+
-                "});"+
-            "</script>";
-        var hitlistHeaders = {};
-
-        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
-        if( selectedCategory){
-            hitlistHeaders["categorySentiment"]= _folder.GetQuestionId("categorysentiment")+"_"+selectedCategory;
-        }
-
-        hitlistHeaders["verbatim"] = _folder.GetQuestionId();
-
-        hitlistHeaders["date"] = _folder.GetTimeVariableId() ? _folder.GetTimeVariableId() : "interview_start";
-
-        hitlistHeaders["categories"] = _folder.GetQuestionId("categories");
-
-        hitlistHeaders["overallSentiment"] = _folder.GetQuestionId("overallSentiment");
-
-        hitlistHeaders["other"] = [];
-
-        var hitlistColumns = _folder.GetHitlistColumns();
-        for(var i = 0 ; i < hitlistColumns.length; i++){
-            hitlistHeaders["other"].push(hitlistColumns[i]);
-        }
-        context.component.Output.Append(JSON.print(hitlistHeaders, "hitlistHeaders"));
-        context.component.Output.Append(hitlistInit);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstCategory_Hide
-     * @description function to hide the Category selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstCategory_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstSubCategory_Hide
-     * @description function to hide the Sub Category selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstSubCategory_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstAttribute_Hide
-     * @description function to hide the Attribute selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstAttribute_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCategory_Hide
-     * @description function to hide the Category selector label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCategory_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCategory_Render
-     * @description function to render the Category selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCategory_Render(context){
-        var label = "Category";
-        context.component.Output.Append(label);
-    }
-
-
-    /**
-     * @memberof Page_comments
-     * @function txtSubCategory_Hide
-     * @description function to hide the the sub category list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtSubCategory_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtSubCategory_Render
-     * @description function to render the sub Category selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtSubCategory_Render(context){
-        var label = "Sub category";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Hide
-     * @description function to hide the the attributes list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtAttribute_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Render
-     * @description function to render the attributes selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtAttribute_Render(context){
-        var label = "Attribute";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtSentiment_Hide
-     * @description function to hide the the sentiment list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtSentiment_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Render
-     * @description function to render the sentiment selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtSentiment_Render(context){
-        var label = "Sentiment";
-        context.component.Output.Append(label);
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Aug 30 2016 15:59:55 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html deleted file mode 100644 index fded77b..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html +++ /dev/null @@ -1,4905 +0,0 @@ - - - - - Page_dashboard - Documentation - - - - - - - - - - - - - - - - -
- -

Page_dashboard

- - - - - - - -
- -
- -

- Page_dashboard -

- -

Static class for Reportal Page dashboard components

- - -
- -
-
- - - - -

Constructor

- - -

new Page_dashboard()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private, static) _renderTblMostChanged(context, sentiment)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

sentiment - - -String - - - -

"neg" or "pos"

- - - - - - - - - - - - - - - - - - - - - -

(private, static) _renderTblMostSentiment(context, sentiment)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

sentiment - - -String - - - -

"neg" or "pos"

- - - - - - - - - - - - - - - - - - - - - -

(static) Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostDeclined_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblMostDeclined_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostImproved_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblMostImproved_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostNegative_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblMostNegative_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostPositive_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblMostPositive_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblThemeDistribution_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblThemeDistribution_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtComparePeriods_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtComparePeriods_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtLevel_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtLevel_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostChangedInfo_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostChangedInfo_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostDeclined_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostDeclined_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostImproved_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostImproved_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostNegative_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostNegative_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostPositive_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostPositive_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtThemeDistribution_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtThemeDistribution_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtThemeDistributionScript_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtThemeDistributionScript_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtViewSentiment_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtViewSentiment_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.js.html deleted file mode 100644 index 48083e5..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.js.html +++ /dev/null @@ -1,463 +0,0 @@ - - - - - Page_dashboard.js - Documentation - - - - - - - - - - - - - - - - -
- -

Page_dashboard.js

- - - - - - - -
-
-
/**
- * @class Page_dashboard
- * @classdesc Static class for Reportal Page dashboard components
- */
-class Page_dashboard{
-    private static var _folder;
-    private static const _defaultParameters = [
-        {
-            Id: "TA_LEVEL",
-            Value: "0"
-        },
-
-        {
-            Id: "TA_COMPARE_PERIODS",
-            Value: "qoq"
-        },
-
-        {
-            Id: "TA_VIEW_SENTIMENT",
-            Value: "emptyv"
-        }
-    ];
-
-    /**
-     * @memberof Page_dashboard
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        if(context.component.SubmitSource == "ClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
-        }
-        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard");
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        _folder = Config.GetTALibrary().GetFolderById();
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @private
-     * @function _renderTblMostSentiment
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} sentiment - "neg" or "pos"
-     */
-    private static function _renderTblMostSentiment(context, sentiment){
-        var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
-        var globals = TAHelper.GetGlobals(context);
-        var table = context.component;
-        var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level);
-        topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @private
-     * @function _renderTblMostChanged
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} sentiment - "neg" or "pos"
-     */
-    private static function _renderTblMostChanged(context, sentiment){
-        var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
-        var globals = TAHelper.GetGlobals(context);
-        var table = context.component;
-        var period = context.state.Parameters.IsNull("TA_COMPARE_PERIODS") ? "qoq" : context.state.Parameters.GetString("TA_COMPARE_PERIODS");
-
-        var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period);
-        topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostPositive_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostPositive_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostPositive_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostPositive_Render(context){
-        _renderTblMostSentiment(context, true);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostNegative_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostNegative_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostNegative_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostNegative_Render(context){
-        _renderTblMostSentiment(context, false);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostImproved_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostImproved_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostImproved_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostImproved_Render(context){
-        _renderTblMostChanged(context, true);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostDeclined_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostDeclined_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostDeclined_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostDeclined_Render(context){
-        _renderTblMostChanged(context, false);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblThemeDistribution_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblThemeDistribution_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblThemeDistribution_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblThemeDistribution_Render(context){
-        var globals = TAHelper.GetGlobals(context);
-        var table = context.component;
-        var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT");
-
-        var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment);
-        themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table"]);
-        themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_TOP_CATEGORIES_SINGLE", "detailed_analysis");
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtLevel_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtLevel_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtLevel_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtLevel_Render(context){
-        var label = "View by";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostPositive_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostPositive_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostPositive_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostPositive_Render(context){
-        var label = "Top 5 most positive themes";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostNegative_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostNegative_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostNegative_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostNegative_Render(context){
-        var label = "Top 5 most negative themes";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtComparePeriods_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtComparePeriods_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtComparePeriods_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtComparePeriods_Render(context){
-        var label = "Compare";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostImproved_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostImproved_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostImproved_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostImproved_Render(context){
-        var label = "Top 5 most improved themes";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostChangedInfo_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostChangedInfo_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostChangedInfo_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostChangedInfo_Render(context){
-        var label = "Changes that are not statistically significant are marked in grey";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostDeclined_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostDeclined_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostDeclined_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostDeclined_Render(context){
-        var label = "Top 5 most declined themes";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistribution_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtThemeDistribution_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistribution_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtThemeDistribution_Render(context){
-        var label = "Theme distribution";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtViewSentiment_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtViewSentiment_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtViewSentiment_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtViewSentiment_Render(context){
-        var label = "View";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistributionScript_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtThemeDistributionScript_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistributionScript_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtThemeDistributionScript_Render(context){
-        var headers;
-        var hierarhy = _folder.GetHierarchy().GetHierarchyArray()
-
-        headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders();
-        var upgradeText = "<script type=\"text/javascript\">"+
-                "var upgradedTable = new Reportal.AggregatedTable("+
-                    "{"+
-                        "table: document.querySelector('table.reportal-hierarchy-table'),"+
-                        "hierarchy:"+
-                            "{"+
-                                "hierarchy: "+JSON.stringify(hierarhy)+","+
-                                "rowheaders:"+JSON.stringify(headers)+","+
-                                "search:{enabled:true}"+
-                            "},"+
-                        "fixedHeader: {hasListeners:false}"+
-                    "}"+
-                ")"+
-            "</script>";
-
-        context.component.Output.Append(upgradeText);
-        context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Aug 30 2016 15:59:55 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html deleted file mode 100644 index 56ad6f9..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html +++ /dev/null @@ -1,2821 +0,0 @@ - - - - - Page_detailed_analysis - Documentation - - - - - - - - - - - - - - - - -
- -

Page_detailed_analysis

- - - - - - - -
- -
- -

- Page_detailed_analysis -

- -

Static class for Reportal Page detailed_analysis components

- - -
- -
-
- - - - -

Constructor

- - -

new Page_detailed_analysis()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private, static) _buildTATiles(context, type)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

type - - -String - - - -

"all", "neg", "neu", "pos"

- - - - - - - - - - - - - - - - - - - - - -

(static) Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblDetailedAnalysis_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblDetailedAnalysis_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostPositive_RendertblNeutralCommentsTile_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblNegativeCommentsTile_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblNegativeCommentsTile_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblNeutralCommentsTile_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblPositiveCommentsTile_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblPositiveCommentsTile_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblTotalCommentsTile_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblTotalCommentsTile_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtCategory_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtDetailedAnalysisScript_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtDetailedAnalysisScript_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtViewBy_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtViewBy_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.js.html deleted file mode 100644 index 35147b6..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.js.html +++ /dev/null @@ -1,316 +0,0 @@ - - - - - Page_detailed_analysis.js - Documentation - - - - - - - - - - - - - - - - -
- -

Page_detailed_analysis.js

- - - - - - - -
-
-
/**
- * @class Page_detailed_analysis
- * @classdesc Static class for Reportal Page detailed_analysis components
- */
-class Page_detailed_analysis{
-    private static var _folder;
-    private static const _defaultParameters = [
-        {
-            Id: "TA_TOP_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-
-        {
-            Id: "TA_DISTRIBUTION_TOGGLE",
-            Value: "0"
-        },
-
-        {
-            Id: "TA_VIEW_BY",
-            Value: "emptyv"
-        }
-    ];
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        if(context.component.SubmitSource == "ClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
-        }
-        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "detailed_analysis");
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        _folder = Config.GetTALibrary().GetFolderById();
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @private
-     * @function _buildTATiles
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} type - "all", "neg", "neu", "pos"
-     */
-    static private function _buildTATiles(context, type){
-        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
-        new TATiles(TAHelper.GetGlobals(context), _folder, context.component, type, selectedCategory, distribution)
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblTotalCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblTotalCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblTotalCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblTotalCommentsTile_Render(context){
-        _buildTATiles(context, "all");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblPositiveCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblPositiveCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblPositiveCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblPositiveCommentsTile_Render(context){
-        _buildTATiles(context, "pos");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNeutralCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblNeutralCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblMostPositive_RendertblNeutralCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblNeutralCommentsTile_Render(context){
-        _buildTATiles(context, "neu");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNegativeCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblNegativeCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNegativeCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblNegativeCommentsTile_Render(context){
-        _buildTATiles(context, "neg");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblDetailedAnalysis_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblDetailedAnalysis_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblDetailedAnalysis_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblDetailedAnalysis_Render(context){
-        var globals = TAHelper.GetGlobals(context);
-        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        var selectedQuestion = context.state.Parameters.GetString("TA_VIEW_BY");
-        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
-        var hideEmptyRows = new ParameterUtilities(globals).GetCheckedValues("TA_HIDE_EMPTY_ROWS");
-        var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, selectedCategory, selectedQuestion, distribution);
-        detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]);
-        detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0));
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtDetailedAnalysisScript_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtDetailedAnalysisScript_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtDetailedAnalysisScript_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtDetailedAnalysisScript_Render(context){
-        var headers;
-        var hierarhy = _folder.GetHierarchy().GetHierarchyArray();
-        var taTableData = new TATableData(TAHelper.GetGlobals(context), "tblDetailedAnalysis");
-        var headers = taTableData.GetTableRowHeaders();
-        if( headers.length > 0){
-            var blocks = taTableData.GetBlocks();
-
-            var upgradeText = "<script type=\"text/javascript\">"+
-                    "var upgradedTable = new Reportal.AggregatedTable("+
-                        "{"+
-                            "table: document.querySelector('table.reportal-hierarchy-table'),"+
-                            "hierarchy:"+
-                                "{"+
-                                    "hierarchy: "+JSON.stringify(hierarhy)+","+
-                                    "rowheaders:"+JSON.stringify(headers)+","+
-                                    "search:{enabled:true},"+
-                                    "blocks:"+JSON.stringify(blocks)+","+
-                                    "column:"+ ( blocks.length > 0 ? 1 : 0 ) +""+
-                                "},"+
-                            "sorting:"+
-                                "{"+
-                                    "enabled: true,"+
-                                    "excludedColumns: [6]"+
-                                "},"+
-                            "fixedHeader: {hasListeners:false}"+
-                        "}"+
-                    ")"+
-                "</script>";
-
-            context.component.Output.Append(upgradeText);
-            context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
-            context.component.Output.Append(JSON.print(headers,"rowheaders"));
-            context.component.Output.Append(JSON.print(blocks,"blocks"));
-        }
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtViewBy_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtViewBy_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtViewBy_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtViewBy_Render(context){
-        context.component.Output.Append("View by:");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtCategory_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCategory_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtCategory_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCategory_Render(context){
-        context.component.Output.Append("Category");
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Aug 30 2016 15:59:55 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html deleted file mode 100644 index 4dbd73f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html +++ /dev/null @@ -1,1781 +0,0 @@ - - - - - Page_filters - Documentation - - - - - - - - - - - - - - - - -
- -

Page_filters

- - - - - - - -
- -
- -

- Page_filters -

- -

Static class for Reportal Page filters components

- - -
- -
-
- - - - -

Constructor

- - -

new Page_filters()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) btnClearFilters_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnClearFilters_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) btnSave_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnSave_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) btnSaveReturn_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnSaveReturn_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) lstFilterList_Hide(context, filterNumber) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtFilterTitle_Hide(context, filterNumber) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtFilterTitle_Render(context, filterNumber)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber - - -Number - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.js.html deleted file mode 100644 index 48e700b..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.js.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - Page_filters.js - Documentation - - - - - - - - - - - - - - - - -
- -

Page_filters.js

- - - - - - - -
-
-
/**
- * @class Page_filters
- * @classdesc Static class for Reportal Page filters components
- */
-class Page_filters{
-    private static var _filterComponents;
-    private static var _folder;
-    private static const _defaultParameters = [];
-
-    /**
-     * @memberof Page_filters
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        if(context.component.SubmitSource == "btnClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
-        }
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        _folder = Config.GetTALibrary().GetFolderById();
-        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSaveReturn_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnSaveReturn_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSaveReturn_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnSaveReturn_Render(context){
-        context.component.Label = new Label(9,"Save and Return");
-        context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE");
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSave_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnSave_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSave_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnSave_Render(context){
-        context.component.Label = new Label(9,"Save");
-        context.component.TargetPage = "filters";
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnClearFilters_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnClearFilters_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnClearFilters_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnClearFilters_Render(context){
-    context.component.Label = new Label(9,"Clear Filters");
-    context.component.TargetPage = "filters";
-}
-
-    /**
-     * @memberof Page_filters
-     * @function txtFilterTitle_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     * @returns {Boolean}
-     */
-    static function txtFilterTitle_Hide(context, filterNumber){
-    var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
-        return !filterQuestion
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function txtFilterTitle_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     */
-    static function txtFilterTitle_Render(context, filterNumber){
-    var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1);
-    if(filterTitle)
-        context.component.Output.Append(filterTitle);
-
-}
-    /**
-     * @memberof Page_filters
-     * @function lstFilterList_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     * @returns {Boolean}
-     */
-    static function lstFilterList_Hide(context, filterNumber){
-        var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
-        return !filterQuestion
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Aug 30 2016 15:59:55 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html deleted file mode 100644 index cc5117a..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html +++ /dev/null @@ -1,817 +0,0 @@ - - - - - ParameterUtilities - Documentation - - - - - - - - - - - - - - - - -
- -

ParameterUtilities

- - - - - - - -
- -
- -

- ParameterUtilities -

- -

Class to work with different parameters

- - -
- -
-
- - - - -

Constructor

- - -

new ParameterUtilities(globals)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetCheckedValues(parameterName) → {Array.<ParameterValueResponse>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get checked values for the multi string response parameter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameterName - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<ParameterValueResponse> - - -
-
- - - - - - - - - -

GetCheckedValues(valuesArray)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to set default value to parameters if they haven't been selected

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
valuesArray - - -Array.<Object> - - - -

array of objects like {Id: "ParameterId", Value: "defaultCode"}

- - - - - - - - - - - - - - - - - - - - - -

GetCheckedValues(parameterName) → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get checked codes for the multi string response parameter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameterName - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

LoadParameterValues(parameter, parameterValues)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to load possible values to string response parameter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
parameterValues - - -Array.<Object> - - - -

array of values like {Code: "AnswerCode", Label: "AnswerText"}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html deleted file mode 100644 index a6aa488..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - ParameterUtilities.js - Documentation - - - - - - - - - - - - - - - - -
- -

ParameterUtilities.js

- - - - - - - -
-
-
/**
- * @class ParameterUtilities
- * @classdesc Class to work with different parameters
- *
- * @constructs ParameterUtilities
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- */
-class ParameterUtilities {
-    private var _globals;
-
-    function ParameterUtilities(globals) {
-        _globals=globals
-    }
-
-    /**
-     * @memberof ParameterUtilities
-     * @instance
-     * @function LoadParameterValues
-     * @description function to load possible values to string response parameter
-     * @param {Parameter} parameter
-     * @param {Object[]} parameterValues - array of values like {Code: "AnswerCode", Label: "AnswerText"}
-     */
-    function LoadParameterValues(parameter, parameterValues) {
-        for (var i=0; i<parameterValues.length; ++i) {
-            var parameterValueResponse : ParameterValueResponse = new ParameterValueResponse();
-            parameterValueResponse.StringKeyValue = parameterValues[i].Code;
-
-            var labels : LanguageTextCollection = new LanguageTextCollection();
-            labels.Add(new LanguageText(_globals.report.CurrentLanguage, parameterValues[i].Label));
-
-            parameterValueResponse.LocalizedLabel = new Label(labels);
-            parameterValueResponse.StringValue = parameterValues[i].Label;
-
-            parameter.Items.Add(parameterValueResponse);
-        }
-    }
-
-    /**
-     * @memberof ParameterUtilities
-     * @instance
-     * @function GetCheckedValues
-     * @description function to get checked values for the multi string response parameter
-     * @param {String} parameterName
-     * @returns {ParameterValueResponse[]}
-     */
-    function GetCheckedValues(parameterName){
-        var values = []
-        if(!_globals.state.Parameters.IsNull(parameterName))
-        {
-            var selected:ParameterValueMultiSelect = _globals.state.Parameters[parameterName],
-            response: ParameterValueResponse;
-            for(var i=0;i<selected.Count;i++) // add selected columns to the new column set
-            {
-                response = selected[i];
-                values.push(response);
-            }
-        }
-        return values
-    }
-
-    /**
-     * @memberof ParameterUtilities
-     * @instance
-     * @function GetCheckedValues
-     * @description function to set default value to parameters if they haven't been selected
-     * @param {Object[]} valuesArray - array of objects like {Id: "ParameterId", Value: "defaultCode"}
-     */
-    function SetDefaultParameterValues(valuesArray){
-        for( var i = 0; i < valuesArray.length; i++ ){
-            if(!_globals.state.Parameters.GetString(valuesArray[i].Id))
-                _globals.state.Parameters[valuesArray[i].Id] = new ParameterValueResponse(valuesArray[i].Value);
-        }
-    }
-
-    /**
-     * @memberof ParameterUtilities
-     * @instance
-     * @function GetCheckedValues
-     * @description function to get checked codes for the multi string response parameter
-     * @param {String} parameterName
-     * @returns {String[]}
-     */
-    function GetParameterCodes(parameterName) {
-        var parameterValues : ParameterValueMultiSelect = _globals.state.Parameters[parameterName];
-        var codes = [];
-        if(parameterValues != null) {
-            for (var enumerator : Enumerator = new Enumerator(parameterValues) ; !enumerator.atEnd(); enumerator.moveNext()) {
-                var parameterValue : ParameterValueResponse = enumerator.item();
-                codes.push(parameterValue.StringKeyValue);
-            }
-
-        }
-        return codes;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html b/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html deleted file mode 100644 index c0b8784..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html +++ /dev/null @@ -1,1748 +0,0 @@ - - - - - Parameters - Documentation - - - - - - - - - - - - - - - - -
- -

Parameters

- - - - - - - -
- -
- -

- Parameters -

- -

Static class for Reportal parameter components

- - -
- -
-
- - - - -

Constructor

- - -

new Parameters()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) FILTER_Domain(context, filterNumber)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber - - -Number - - - -
- - - - - - - - - - - - - - - - - - - - - -

(static) TA_ATTRIBUTES_SINGLE_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_ATTRIBUTES_SINGLE_Mask(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_COMPARE_PERIODS_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_DISTRIBUTION_TOGGLE_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_HIDE_EMPTY_ROWS_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_LEVEL_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_SUB_CATEGORIES_SINGLE_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_SUB_CATEGORIES_SINGLE_Mask(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_TOP_CATEGORIES_SINGLE_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_VIEW_BY_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_VIEW_SENTIMENT_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html b/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html deleted file mode 100644 index 5fc308f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html +++ /dev/null @@ -1,1005 +0,0 @@ - - - - - ReportMaster - Documentation - - - - - - - - - - - - - - - - -
- -

ReportMaster

- - - - - - - -
- -
- -

- ReportMaster -

- -

Static class for Report Master components

- - -
- -
-
- - - - -

Constructor

- - -

new ReportMaster()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) btnApplyDateFilter_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnApplyDateFilter_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) btnClearDateFilter_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnClearDateFilter_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) CustomerLogo_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) CustomerLogo_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html deleted file mode 100644 index fdf7456..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - Static/Config.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Config.js

- - - - - - - -
-
-
/**
- * Config class that doesn't have a constructor.
- * @class Config
- * @classdesc Contains configuration for the report.
- *
- * @prop {String} DS_Main - value for datasource Id
- * @prop {String} CustomerLogo - link to the logo
- *
- * @prop {String} CustomDateFormat - string that represents Date format which will be used in the report
- * @prop {String} TimeVariableId - date variable Id to use for trending tables and time variables. "interview_start" by default
- *
- * @prop {String[]} VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags
- * @prop {String[]} HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags
- * @prop {String[]} FiltersQuestion - variables for Filters page. If not "null" will override values from survey tags
- *
- * @prop {Object} Colors - color palettes using in the report
- * @prop {String} Colors.DefaultColor - color for header
- * @prop {Object} Colors.NegNeuPosPalette - palette for negative - neutral - positive breaking
- * @prop {String} Colors.NegNeuPosPalette.Negative - Negative color
- * @prop {String} Colors.NegNeuPosPalette.Neutral - Neutral color
- * @prop {String} Colors.NegNeuPosPalette.Positive - Positive color
- *
- * @prop {Object} SentimentRange - negative - neutral - positive breaking by sentiment
- * @prop {Number[]} SentimentRange.Positive - array of positive sentiment's values
- * @prop {Number[]} SentimentRange.Neutral - array of neutral sentiment's values
- * @prop {Number[]} SentimentRange.Negative - array of negative sentiment's values
- *
- * @prop {Object[]} TAQuestions - array of Text Analytics configurations for each verbatim question
- * @prop {String} TAQuestions.DatasourceId - override DS_Main from config
- * @prop {Number} TAQuestions.DatabaseSchemaId - id of the schema containing Text Analytics model
- * @prop {String} TAQuestions.DatabaseTableName - name of the table containing Text Analytics model
- * @prop {String} TAQuestions.IdColumnName - name of the column containing category id. "id" by default
- * @prop {String} TAQuestions.TextColumnName - name of the column containing category name. "__l9" by default
- * @prop {String} TAQuestions.RelationshipColumnName - name of the column containing parent id for subcategories and attributes. "parent" by default
- * @prop {String} TAQuestions.TextSeparator - symbol which separate Parent and children names in the flat category name
- * @prop {String} TAQuestions.TAFolderId - unique Id for each Text Analytics set
- * @prop {String} TAQuestions.TAQuestionName - verbatim variable id
- * @prop {String}  TAQuestions.TAModelNo - model number used for Text Analytics
- * @prop {String} TAQuestions.TimeVariableId - date variable Id to use for trending tables and time variables. Overrides Config value
- * @prop {String[]} TAQuestions.VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config
- * @prop {String[]} TAQuestions.HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config
- *
- * @example
- *     static var DS_Main = "ds0";
- *     static var CustomerLogo = null;
- *     static var CustomDateFormat = 'dd-MMM-yyyy';
- *     static var TimeVariableId = 'interview_start';
- *     static var  VariablesToViewBy = ["type", "source"];
- *     static var  HitlistColumns = ["membership_level"];
- *     static var FiltersQuestions = null;
- *
- *     static var Colors = {
- *            DefaultColor: "#ffff00",
- *            NegNeuPosPalette: {
- *                Negative: "#fd9900",
- *                Neutral: "#cdd1d9",
- *                Positive: "#7cc700"
- *            }
- *        };
- *
- *     static var SentimentRange = {
- *            Positive: [8,9,10,11],
- *            Neutral: [5,6,7],
- *            Negative: [1,2,3,4]
- *        }
- *
- *     static var TAQuestions = [
- *     {
- *         DatasourceId: "ds0",
- *
- *         DatabaseSchemaId: 4909,
- *         DatabaseTableName: "Retail 785",
- *         RelationshipColumnName: "parent",
- *         TextSeparator: "|",
- *
- *         TAFolderId: "why785",
- *         TAQuestionName: "why",
- *         TAModelNo: "785",
- *
- *         TimeVariableId: 'interview_start'
- *     }
- *     ];
- */
-public class Config {
-
-    static var DS_Main = "ds0";
-    static var CustomerLogo = null;
-    static var CustomDateFormat = 'dd-MMM-yyyy';
-    static var TimeVariableId = 'interview_start';
-    static var  VariablesToViewBy = ["type", "source"];
-    static var  HitlistColumns = ["membership_level"];
-    static var FiltersQuestions = null;
-
-    static var Colors = {
-        DefaultColor: "#ffff00",
-        NegNeuPosPalette: {
-            Negative: "#fd9900",
-            Neutral: "#cdd1d9",
-            Positive: "#7cc700"
-        }
-    };
-
-    static var SentimentRange = {
-        Positive: [8,9,10,11],
-        Neutral: [5,6,7],
-        Negative: [1,2,3,4]
-    }
-
-    static var TAQuestions = [
-
-
-        {
-            DatasourceId: "ds0",
-
-            DatabaseSchemaId: 4909,
-            DatabaseTableName: "Retail 785",
-            RelationshipColumnName: "parent",
-            TextSeparator: "|",
-
-            TAFolderId: "why785",
-            TAQuestionName: "why",
-            TAModelNo: "785",
-
-            TimeVariableId: 'interview_start'
-        }
-    ];
-
-    /**
-     * @memberof Config
-     * @private
-     * @static
-     * @prop _TALibrary
-     * @type {TALibrary}
-     * @description static variable containing all Text Analytics data
-     */
-    private static var _TALibrary: TALibrary;
-
-    /**
-     * @memberof Config
-     * @private
-     * @static
-     * @prop _haveTALibrary
-     * @type {boolean}
-     * @description static variable indicating that _TALibrary variable has been set
-     */
-    private static var _haveTALibrary;
-
-    /**
-     * @memberof Config
-     * @function SetTaLibrary
-     * @description function that processes config and cashes all Text Analitycs data
-     * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function SetTALibrary(globals){
-        if(!_haveTALibrary){
-            _TALibrary = new TALibrary(globals, TAQuestions);
-            _haveTALibrary = true;
-        }
-    }
-
-    /**
-     * @memberof Config
-     * @function GetTALibrary
-     * @description function that returns TALibrary from Config
-     */
-    static function GetTALibrary(){
-        return _TALibrary;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html deleted file mode 100644 index 76b5fbb..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - Static/Filters.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Filters.js

- - - - - - - -
-
-
/**
-* @class Filters
-* @classdesc Static class for Reportal Filter Components
-*/
-class Filters {
-    /**
-     * @memberof Filters
-     * @function TASelectedCategoryFilter
-     * @description function to filtrate only selected category in the hitlist
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TASelectedCategoryFilter(context){
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetSelectedCategoryFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function TAHitlistSentimentFilter
-     * @description function to filtrate only selected sentiment in the hitlist
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TAHitlistSentimentFilter(context){
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT")
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function DateFilter
-     * @description function to filtrate selected dates
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function DateFilter(context){
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById()).GetDateFilterExpression("TA_DATE_FROM", "TA_DATE_TO");
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function FilterPageFilter
-     * @description function to filtrate selected values on the filterpage
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function FilterPageFilter(context){
-        var fExpr = "";
-        fExpr = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).GetGlobalsFilterExpression();
-        context.component.Expression = fExpr;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html deleted file mode 100644 index e3ba8a9..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - Static/PageMaster.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/PageMaster.js

- - - - - - - -
-
-
/**
- * @class PageMaster
- * @classdesc Static class for Reportal Page master components
- */
-class PageMaster{
-    private static var _filterComponents;
-
-    /**
-     * @memberof PageMaster
-     * @function Filters_Hide
-     * @description function to hide the Ffilters button
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Filters_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function Filters_Render
-     * @description function to render the filters button
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Filters_Render(context){
-        context.component.TargetPage = "filters"
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function FilterSummary_Render
-     * @description function to render the filterSummary
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function FilterSummary_Render(context){
-        var filterSummary ;
-        var summarySegments = [];
-        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
-
-        var codes = _filterComponents.GetAllAnsweredFilterCodes();
-        for( var i = 0 ; i < codes.length; i++){
-            summarySegments.push(( "<div>" + codes[i].questionTitle + " = "+ codes[i].texts.join(" | ")+"</div>"));
-        }
-
-        filterSummary = summarySegments.join("<span>AND</span>");
-        context.component.Output.Append(filterSummary);
-        if( codes.length > 0 )
-            context.component.Output.Append("<button title='Clear filters' onclick='javascript:document.querySelector(\'.filters-clear-button input\').click()' style = 'padding: 1px'><svg width='10' height='10' class='icon-circle-x'><use xmlns:xlink='http://www.w3.org/1999/xlink' xlink:href='/discoveryanalytics/svg-icons/stack/svg/sprite.stack.svg#circle-x'></use></svg></button>");
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function ClearFilters_Hide
-     * @description function to render the Clear filters button
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function ClearFilters_Hide(context){
-        var hideButton = true;
-        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
-
-        hideButton = !_filterComponents.GetAllAnsweredFilterCodes().length > 0;
-
-        return hideButton
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function ClearFilters_Render
-     * @description function to render the clear filters button
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function ClearFilters_Render(context){
-
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html deleted file mode 100644 index 4284558..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html +++ /dev/null @@ -1,328 +0,0 @@ - - - - - Static/Page_comments.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Page_comments.js

- - - - - - - -
-
-
/**
- * @class Page_comments
- * @classdesc Static class for Reportal Page comments components
- */
-class Page_comments{
-    private static var _filterComponents;
-    private static var _folder;
-    private static const _defaultParameters = [
-        {
-            Id: "TA_TOP_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_SUB_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_ATTRIBUTES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_COMMENTS_SENTIMENT",
-            Value: "emptyv"
-        }
-    ];
-
-    /**
-     * @memberof Page_comments
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        if(context.component.SubmitSource == "ClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
-        }
-
-        if(context.component.SubmitSource == "btnClearDateFilter"){
-            context.state.Parameters["TA_DATE_FROM"] = null;
-            context.state.Parameters["TA_DATE_TO"] = null;
-        }
-        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "comments");
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        _folder = Config.GetTALibrary().GetFolderById();
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function htlComments_Hide
-     * @description function to hide the hitlist
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function htlComments_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function htlComments_Render
-     * @description function to render the hitlist
-     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function htlComments_Render(context){
-        var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component);
-        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-
-        if( selectedCategory ){
-            htlComments.AddTAColumn("categorysentiment", false, selectedCategory);
-        }
-
-        htlComments.AddTAColumn();
-        htlComments.AddColumn(_folder.GetTimeVariableId(), true);
-        htlComments.AddTAColumn("overallsentiment");
-        htlComments.AddTAColumn("categories");
-        htlComments.AddConfiguredColumns();
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCommentsScript_Hide
-     * @description function to hide the text
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCommentsScript_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCommentsScript_Render
-     * @description function to render the script which processes hitlist
-     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCommentsScript_Render(context){
-        var hitlistInit = "<script>"+
-                "Y.Global.on('hitlistloaded', function (e) {  "+
-                    "var upgradedHitlist = new Reportal.Hitlist({"+
-                        "hitlist: document.querySelector('.reportal-hitlist-container'),"+
-                        "headers: hitlistHeaders"+
-                    "});"+
-                "});"+
-            "</script>";
-        var hitlistHeaders = {};
-
-        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
-        if( selectedCategory){
-            hitlistHeaders["categorySentiment"]= _folder.GetQuestionId("categorysentiment")+"_"+selectedCategory;
-        }
-
-        hitlistHeaders["verbatim"] = _folder.GetQuestionId();
-
-        hitlistHeaders["date"] = _folder.GetTimeVariableId() ? _folder.GetTimeVariableId() : "interview_start";
-
-        hitlistHeaders["categories"] = _folder.GetQuestionId("categories");
-
-        hitlistHeaders["overallSentiment"] = _folder.GetQuestionId("overallSentiment");
-
-        hitlistHeaders["other"] = [];
-
-        var hitlistColumns = _folder.GetHitlistColumns();
-        for(var i = 0 ; i < hitlistColumns.length; i++){
-            hitlistHeaders["other"].push(hitlistColumns[i]);
-        }
-        context.component.Output.Append(JSON.print(hitlistHeaders, "hitlistHeaders"));
-        context.component.Output.Append(hitlistInit);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstCategory_Hide
-     * @description function to hide the Category selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstCategory_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstSubCategory_Hide
-     * @description function to hide the Sub Category selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstSubCategory_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstAttribute_Hide
-     * @description function to hide the Attribute selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstAttribute_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCategory_Hide
-     * @description function to hide the Category selector label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCategory_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCategory_Render
-     * @description function to render the Category selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCategory_Render(context){
-        var label = "Category";
-        context.component.Output.Append(label);
-    }
-
-
-    /**
-     * @memberof Page_comments
-     * @function txtSubCategory_Hide
-     * @description function to hide the the sub category list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtSubCategory_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtSubCategory_Render
-     * @description function to render the sub Category selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtSubCategory_Render(context){
-        var label = "Sub category";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Hide
-     * @description function to hide the the attributes list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtAttribute_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Render
-     * @description function to render the attributes selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtAttribute_Render(context){
-        var label = "Attribute";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtSentiment_Hide
-     * @description function to hide the the sentiment list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtSentiment_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Render
-     * @description function to render the sentiment selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtSentiment_Render(context){
-        var label = "Sentiment";
-        context.component.Output.Append(label);
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html deleted file mode 100644 index fa0c434..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html +++ /dev/null @@ -1,468 +0,0 @@ - - - - - Static/Page_dashboard.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Page_dashboard.js

- - - - - - - -
-
-
/**
- * @class Page_dashboard
- * @classdesc Static class for Reportal Page dashboard components
- */
-class Page_dashboard{
-    private static var _folder;
-    private static const _defaultParameters = [
-        {
-            Id: "TA_LEVEL",
-            Value: "0"
-        },
-
-        {
-            Id: "TA_COMPARE_PERIODS",
-            Value: "qoq"
-        },
-
-        {
-            Id: "TA_VIEW_SENTIMENT",
-            Value: "emptyv"
-        }
-    ];
-
-    /**
-     * @memberof Page_dashboard
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        if(context.component.SubmitSource == "ClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
-        }
-
-        if(context.component.SubmitSource == "btnClearDateFilter"){
-            context.state.Parameters["TA_DATE_FROM"] = null;
-            context.state.Parameters["TA_DATE_TO"] = null;
-        }
-        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard");
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        _folder = Config.GetTALibrary().GetFolderById();
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @private
-     * @function _renderTblMostSentiment
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} sentiment - "neg" or "pos"
-     */
-    private static function _renderTblMostSentiment(context, sentiment){
-        var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
-        var globals = TAHelper.GetGlobals(context);
-        var table = context.component;
-        var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level);
-        topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @private
-     * @function _renderTblMostChanged
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} sentiment - "neg" or "pos"
-     */
-    private static function _renderTblMostChanged(context, sentiment){
-        var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
-        var globals = TAHelper.GetGlobals(context);
-        var table = context.component;
-        var period = context.state.Parameters.IsNull("TA_COMPARE_PERIODS") ? "qoq" : context.state.Parameters.GetString("TA_COMPARE_PERIODS");
-
-        var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period);
-        topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostPositive_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostPositive_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostPositive_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostPositive_Render(context){
-        _renderTblMostSentiment(context, true);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostNegative_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostNegative_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostNegative_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostNegative_Render(context){
-        _renderTblMostSentiment(context, false);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostImproved_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostImproved_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostImproved_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostImproved_Render(context){
-        _renderTblMostChanged(context, true);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostDeclined_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostDeclined_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostDeclined_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostDeclined_Render(context){
-        _renderTblMostChanged(context, false);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblThemeDistribution_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblThemeDistribution_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblThemeDistribution_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblThemeDistribution_Render(context){
-        var globals = TAHelper.GetGlobals(context);
-        var table = context.component;
-        var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT");
-
-        var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment);
-        themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table"]);
-        themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_TOP_CATEGORIES_SINGLE", "detailed_analysis");
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtLevel_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtLevel_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtLevel_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtLevel_Render(context){
-        var label = "View by";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostPositive_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostPositive_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostPositive_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostPositive_Render(context){
-        var label = "Top 5 most positive themes";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostNegative_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostNegative_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostNegative_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostNegative_Render(context){
-        var label = "Top 5 most negative themes";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtComparePeriods_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtComparePeriods_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtComparePeriods_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtComparePeriods_Render(context){
-        var label = "Compare";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostImproved_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostImproved_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostImproved_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostImproved_Render(context){
-        var label = "Top 5 most improved themes";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostChangedInfo_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostChangedInfo_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostChangedInfo_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostChangedInfo_Render(context){
-        var label = "Changes that are not statistically significant are marked in grey";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostDeclined_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostDeclined_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostDeclined_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostDeclined_Render(context){
-        var label = "Top 5 most declined themes";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistribution_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtThemeDistribution_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistribution_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtThemeDistribution_Render(context){
-        var label = "Theme distribution";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtViewSentiment_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtViewSentiment_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtViewSentiment_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtViewSentiment_Render(context){
-        var label = "View";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistributionScript_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtThemeDistributionScript_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistributionScript_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtThemeDistributionScript_Render(context){
-        var headers;
-        var hierarhy = _folder.GetHierarchy().GetHierarchyArray()
-
-        headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders();
-        var upgradeText = "<script type=\"text/javascript\">"+
-                "var upgradedTable = new Reportal.AggregatedTable("+
-                    "{"+
-                        "table: document.querySelector('table.reportal-hierarchy-table'),"+
-                        "hierarchy:"+
-                            "{"+
-                                "hierarchy: "+JSON.stringify(hierarhy)+","+
-                                "rowheaders:"+JSON.stringify(headers)+","+
-                                "search:{enabled:true}"+
-                            "},"+
-                        "fixedHeader: {hasListeners:false}"+
-                    "}"+
-                ")"+
-            "</script>";
-
-        context.component.Output.Append(upgradeText);
-        context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html deleted file mode 100644 index 749cf6b..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html +++ /dev/null @@ -1,322 +0,0 @@ - - - - - Static/Page_detailed_analysis.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Page_detailed_analysis.js

- - - - - - - -
-
-
/**
- * @class Page_detailed_analysis
- * @classdesc Static class for Reportal Page detailed_analysis components
- */
-class Page_detailed_analysis{
-    private static var _folder;
-    private static const _defaultParameters = [
-        {
-            Id: "TA_TOP_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-
-        {
-            Id: "TA_DISTRIBUTION_TOGGLE",
-            Value: "0"
-        },
-
-        {
-            Id: "TA_VIEW_BY",
-            Value: "emptyv"
-        }
-    ];
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        if(context.component.SubmitSource == "ClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
-        }
-
-        if(context.component.SubmitSource == "btnClearDateFilter"){
-            context.state.Parameters["TA_DATE_FROM"] = null;
-            context.state.Parameters["TA_DATE_TO"] = null;
-        }
-
-        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "detailed_analysis");
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        _folder = Config.GetTALibrary().GetFolderById();
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        taParams.ClearSubcategoriesParameters(null, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @private
-     * @function _buildTATiles
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} type - "all", "neg", "neu", "pos"
-     */
-    static private function _buildTATiles(context, type){
-        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
-        new TATiles(TAHelper.GetGlobals(context), _folder, context.component, type, selectedCategory, distribution)
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblTotalCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblTotalCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblTotalCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblTotalCommentsTile_Render(context){
-        _buildTATiles(context, "all");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblPositiveCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblPositiveCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblPositiveCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblPositiveCommentsTile_Render(context){
-        _buildTATiles(context, "pos");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNeutralCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblNeutralCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblMostPositive_RendertblNeutralCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblNeutralCommentsTile_Render(context){
-        _buildTATiles(context, "neu");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNegativeCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblNegativeCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNegativeCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblNegativeCommentsTile_Render(context){
-        _buildTATiles(context, "neg");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblDetailedAnalysis_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblDetailedAnalysis_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblDetailedAnalysis_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblDetailedAnalysis_Render(context){
-        var globals = TAHelper.GetGlobals(context);
-        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        var selectedQuestion = context.state.Parameters.GetString("TA_VIEW_BY");
-        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
-        var hideEmptyRows = new ParameterUtilities(globals).GetCheckedValues("TA_HIDE_EMPTY_ROWS");
-        var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, selectedCategory, selectedQuestion, distribution);
-        detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]);
-        detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0));
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtDetailedAnalysisScript_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtDetailedAnalysisScript_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtDetailedAnalysisScript_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtDetailedAnalysisScript_Render(context){
-        var headers;
-        var hierarhy = _folder.GetHierarchy().GetHierarchyArray();
-        var taTableData = new TATableData(TAHelper.GetGlobals(context), "tblDetailedAnalysis");
-        var headers = taTableData.GetTableRowHeaders();
-        if( headers.length > 0){
-            var blocks = taTableData.GetBlocks();
-
-            var upgradeText = "<script type=\"text/javascript\">"+
-                    "var upgradedTable = new Reportal.AggregatedTable("+
-                        "{"+
-                            "table: document.querySelector('table.reportal-hierarchy-table'),"+
-                            "hierarchy:"+
-                                "{"+
-                                    "hierarchy: "+JSON.stringify(hierarhy)+","+
-                                    "rowheaders:"+JSON.stringify(headers)+","+
-                                    "search:{enabled:true},"+
-                                    "blocks:"+JSON.stringify(blocks)+","+
-                                    "column:"+ ( blocks.length > 0 ? 1 : 0 ) +""+
-                                "},"+
-                            "sorting:"+
-                                "{"+
-                                    "enabled: true,"+
-                                    "excludedColumns: [6]"+
-                                "},"+
-                            "fixedHeader: {hasListeners:false}"+
-                        "}"+
-                    ")"+
-                "</script>";
-
-            context.component.Output.Append(upgradeText);
-            context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
-            context.component.Output.Append(JSON.print(headers,"rowheaders"));
-            context.component.Output.Append(JSON.print(blocks,"blocks"));
-        }
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtViewBy_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtViewBy_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtViewBy_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtViewBy_Render(context){
-        context.component.Output.Append("View by:");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtCategory_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCategory_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtCategory_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCategory_Render(context){
-        context.component.Output.Append("Category");
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html deleted file mode 100644 index 5b8db36..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - Static/Page_filters.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Page_filters.js

- - - - - - - -
-
-
/**
- * @class Page_filters
- * @classdesc Static class for Reportal Page filters components
- */
-class Page_filters{
-    private static var _filterComponents;
-    private static var _folder;
-    private static const _defaultParameters = [];
-
-    /**
-     * @memberof Page_filters
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        if(context.component.SubmitSource == "btnClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary()).ClearFilters()
-        }
-
-        if(context.component.SubmitSource == "btnClearDateFilter"){
-            context.state.Parameters["TA_DATE_FROM"] = null;
-            context.state.Parameters["TA_DATE_TO"] = null;
-        }
-
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        _folder = Config.GetTALibrary().GetFolderById();
-        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSaveReturn_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnSaveReturn_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSaveReturn_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnSaveReturn_Render(context){
-        context.component.Label = new Label(9,"Save and Return");
-        context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE");
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSave_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnSave_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSave_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnSave_Render(context){
-        context.component.Label = new Label(9,"Save");
-        context.component.TargetPage = "filters";
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnClearFilters_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnClearFilters_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnClearFilters_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnClearFilters_Render(context){
-    context.component.Label = new Label(9,"Clear Filters");
-    context.component.TargetPage = "filters";
-}
-
-    /**
-     * @memberof Page_filters
-     * @function txtFilterTitle_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     * @returns {Boolean}
-     */
-    static function txtFilterTitle_Hide(context, filterNumber){
-    var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
-        return !filterQuestion
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function txtFilterTitle_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     */
-    static function txtFilterTitle_Render(context, filterNumber){
-    var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1);
-    if(filterTitle)
-        context.component.Output.Append(filterTitle);
-
-}
-    /**
-     * @memberof Page_filters
-     * @function lstFilterList_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     * @returns {Boolean}
-     */
-    static function lstFilterList_Hide(context, filterNumber){
-        var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
-        return !filterQuestion
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html deleted file mode 100644 index f7e131f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - Static/Parameters.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Parameters.js

- - - - - - - -
-
-
/**
- * @class Parameters
- * @classdesc Static class for Reportal parameter components
- */
-class Parameters{
-
-    /**
-     * @memberof Parameters
-     * @function TA_LEVEL_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_LEVEL_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelsParameter(context.component, null);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_COMPARE_PERIODS_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_COMPARE_PERIODS_Domain(context){
-        var parameterValues = [
-            {Code: "wow", Label: "Current vs Last Week"},
-            {Code: "qoq", Label: "Current vs Last Quarter"},
-            {Code: "mom", Label: "Current vs Last Month"},
-            {Code: "yoy", Label: "Current vs Last Year"}
-        ];
-        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_TOP_CATEGORIES_SINGLE_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_TOP_CATEGORIES_SINGLE_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, null, 0, "-select-")
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_SUB_CATEGORIES_SINGLE_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_SUB_CATEGORIES_SINGLE_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, null, 1, "-select-")
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_ATTRIBUTES_SINGLE_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_ATTRIBUTES_SINGLE_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, null, 2, "-select-")
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_SUB_CATEGORIES_SINGLE_Mask
-     * @param {Object} context - {component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_SUB_CATEGORIES_SINGLE_Mask(context){
-        var category = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        if(category && category != "emptyv")
-            new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).MaskSelectedCategoryChildren(context.component,null,category,true)
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_ATTRIBUTES_SINGLE_Mask
-     * @param {Object} context - {component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_ATTRIBUTES_SINGLE_Mask(context){
-        var category = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-        if(category && category != "emptyv")
-            new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).MaskSelectedCategoryChildren(context.component,null,category,true)
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_VIEW_SENTIMENT_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_VIEW_SENTIMENT_Domain(context){
-        var parameterValues = [
-            {Code: "emptyv", Label: "All sentiments"},
-            {Code: "pos", Label: "Positive"},
-            {Code: "neu", Label: "Neutral"},
-            {Code: "neg", Label: "Negative"}
-        ]
-        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_DISTRIBUTION_TOGGLE_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_DISTRIBUTION_TOGGLE_Domain(context){
-        var parameterValues = [
-            {Code: 0, Label: "Count"},
-            {Code: 1, Label: "%"}
-        ]
-
-        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_VIEW_BY_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_VIEW_BY_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderViewByParameter(context.component, null, "-select-");
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_HIDE_EMPTY_ROWS_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_HIDE_EMPTY_ROWS_Domain(context){
-        var parameterValues = [
-            {Code: "hide", Label: "Hide categories with no hits"}
-        ]
-        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function FILTER_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     */
-    static function FILTER_Domain(context, filterNumber){
-        var filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        var filterQuestion = filterComponents.GetFilterQuestion(filterNumber -1 );
-        if(filterQuestion){
-            var parameterValues = [];
-            var answers = filterQuestion.GetAnswers()
-            for( var i = 0; i < answers.length; i++){
-                parameterValues.push({
-                    Code: answers[i].Precode,
-                    Label: answers[i].Text
-                });
-            }
-            new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html deleted file mode 100644 index b893a25..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - Static/ReportMaster.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/ReportMaster.js

- - - - - - - -
-
-
/**
- * @class ReportMaster
- * @classdesc Static class for Report Master components
- */
-class ReportMaster {
-    /**
-     * @memberof ReportMaster
-     * @function CustomerLogo_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function CustomerLogo_Hide(context) {
-        return false;
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function CustomerLogo_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function CustomerLogo_Render(context) {
-        if(Config.CustomerLogo !== null) {
-            context.component.Output.Append('<img class="customer-logo" src="' + Config.CustomerLogo + '">');
-        }
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function btnApplyDateFilter_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnApplyDateFilter_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function btnApplyDateFilter_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnApplyDateFilter_Render(context){
-        context.component.Label = new Label(9, "Apply");
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function btnClearDateFilter_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnClearDateFilter_Hide(context){
-        return (context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.IsNull("TA_DATE_TO"))
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function btnClearDateFilter_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnClearDateFilter_Render(context){
-        context.component.Label = new Label(9, "Clear Date Filters");
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html deleted file mode 100644 index 104e098..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html +++ /dev/null @@ -1,999 +0,0 @@ - - - - - TADetailedAnalysisTable - Documentation - - - - - - - - - - - - - - - - -
- -

TADetailedAnalysisTable

- - - - - - - -
- -
- -

- TADetailedAnalysisTable -

- -

Class to work with Detailed Analysis table

- - -
- -
-
- - - - -

Constructor

- - -

new TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFoldee - - - -

Text Analytics folder to build table from

table - - -Table - - - -
selectedCategory - - -String - - - -
selectedQuestion - - -String - - - -
distribution - - -String - - - -

"0" for counts "1" for percents

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addChartColumn()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _getColumnFormulaExpression()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _getColumnheadersExpression()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _getRowheadersExpression()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupConditionalFormatting()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupTableDistribution()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html deleted file mode 100644 index 2acc938..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html +++ /dev/null @@ -1,320 +0,0 @@ - - - - - TADetailedAnalysisTable.js - Documentation - - - - - - - - - - - - - - - - -
- -

TADetailedAnalysisTable.js

- - - - - - - -
-
-
/**
- * @class TADetailedAnalysisTable
- * @classdesc Class to work with Detailed Analysis table
- *
- * @constructs TADetailedAnalysisTable
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFoldee} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} selectedCategory
- * @param {String} selectedQuestion
- * @param {String} distribution - "0" for counts "1" for percents
- */
-class TADetailedAnalysisTable{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _selectedCategory;
-    private var _selectedQuestion;
-    private var _distribution;
-
-    function TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _selectedCategory = selectedCategory && selectedCategory != "emptyv" ? selectedCategory : "all";
-        _selectedQuestion = selectedQuestion && selectedQuestion != "emptyv" ? selectedQuestion : "all";
-        _distribution = distribution ? distribution : "0";
-        _render();
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var rowexpr = _getRowheadersExpression();
-        var colexpr = _getColumnheadersExpression();
-
-        _taTableUtils.CreateTableFromExpression(rowexpr, colexpr);
-        _setupTableDistribution();
-        _table.RowNesting = TableRowNestingType.Nesting;
-        _setupConditionalFormatting();
-        _addChartColumn();
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _getRowheadersExpression
-     */
-    private function _getRowheadersExpression(){
-        var rowexpr = "";
-
-        var blockHeader = "";
-        var qType = "categorysentiment";
-        var categoryHeader = "(";
-
-        var mask = false;
-        if( _selectedQuestion != "all" ){
-            blockHeader += _selectedQuestion+'{id:'+_selectedQuestion+';totals:false}/'
-        }
-
-        if(_distribution == "1"){
-            categoryHeader += _taTableUtils.GetTAQuestionExpression("overallsentiment",false,"hidedata:true") + "+";
-        }
-
-        if( _selectedCategory != "all" ){
-            mask = _taMasks.GetAllChildrenMask(_selectedCategory);
-            mask.push(_selectedCategory)
-        }
-
-        categoryHeader += _taTableUtils.GetTAQuestionExpression(qType, mask) + ")";
-
-        rowexpr += blockHeader + categoryHeader;
-
-        return rowexpr
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _getColumnheadersExpression
-     */
-    private function _getColumnheadersExpression(){
-        var columnexpr = "";
-        var columnbase = "[N]{hideheader:true;hidedata:true}";
-
-        var countformula = _getColumnFormulaExpression();
-
-        var columnstatistic = "[STATISTICS]{statistics:avg}";
-        var positivecolumn = _taTableUtils.GetCategoriesExpression( "pos", false, false, _distribution );
-        var neutralcolumn = _taTableUtils.GetCategoriesExpression( "neu", false, false, _distribution );
-        var negativecolumn = _taTableUtils.GetCategoriesExpression( "neg", false, false, _distribution );
-
-        columnexpr = [columnbase, countformula, columnstatistic, positivecolumn, neutralcolumn, negativecolumn].join("+");
-        return columnexpr
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _getColumnFormulaExpression
-     */
-    private function _getColumnFormulaExpression(){
-        var countformulaexpression;
-        var countformula = '[FORMULA]{decimals:0;label:"Comments";hideheader:true;percent:false';
-        if( _distribution == "1"){
-            countformula += ";percent:true";
-            countformulaexpression = '"IF((cellv(1,1)>0),(cellv(col-1,row)/cellv(1,1)),EMPTYV())"';
-        }else{
-            countformulaexpression = '"IF(cellv(col-1,row)>0,cellv(col-1,row),EMPTYV())"';
-        }
-        countformula += ";expression:"+countformulaexpression;
-        countformula += "}";
-
-        return countformula
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _setupTableDistribution
-     */
-    private function _setupTableDistribution(){
-        _table.Distribution.Enabled = true;
-        _table.Distribution.VerticalPercents = false;
-
-        if(_distribution == "1"){
-            _table.Distribution.HorizontalPercents = true;
-            _table.Distribution.Count = false;
-        }else{
-            _table.Distribution.HorizontalPercents = false;
-            _table.Distribution.Count = true;
-        }
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _addChartColumn
-     */
-    private function _addChartColumn(){
-        var chartHeader =  _taTableUtils.GetChartHeader(
-            ChartComboType.Bar100,
-            [
-                {
-                    Formula: "cellv(col-25,row)",
-                    Color: (Config.Colors.NegNeuPosPalette.Positive)
-                },
-                {
-                    Formula: "cellv(col-13,row)",
-                    Color: (Config.Colors.NegNeuPosPalette.Neutral)
-                },
-                {
-                    Formula: "cellv(col-1,row)",
-                    Color: (Config.Colors.NegNeuPosPalette.Negative)
-                }
-            ],
-            " ");
-        _table.ColumnHeaders.Add(chartHeader);
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _setupConditionalFormatting
-     */
-    private function _setupConditionalFormatting(){
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col,row)<(-1)',
-                    style: 'negative'
-                },
-
-                {
-                    expression: '(cellv(col, row)>=(-1)) AND (cellv(col, row)<=1)',
-                    style: 'neutral'
-                },
-                {
-                    expression: 'cellv(col, row)>1',
-                    style: 'positive'
-                }
-            ],
-            "NegNeuPos",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "3"
-            }
-        );
-
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col,row)>=0',
-                    style: 'negative'
-                },
-
-            ],
-            "Negative",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "39"
-            }
-        );
-
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col,row)>=0',
-                    style: 'neutral'
-                },
-
-            ],
-            "Negative",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "27"
-            }
-        );
-
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col,row)>=0',
-                    style: 'positive'
-                },
-
-            ],
-            "Negative",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "15"
-            }
-        );
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html deleted file mode 100644 index 575d770..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html +++ /dev/null @@ -1,828 +0,0 @@ - - - - - TAFilters - Documentation - - - - - - - - - - - - - - - - -
- -

TAFilters

- - - - - - - -
- -
- -

- TAFilters -

- -

Class to work with Text Analytics filters

- - -
- -
-
- - - - -

Constructor

- - -

new TAFilters(globals, folder)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFoldee - - - -

Text Analytics folder to build table from

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetDateFilterExpression(fromParameter, toParameter) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
fromParameter - - -String - - - -
toParameter - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetSelectedCategoryFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
categoriesParameter - - -String - - - -
subCategoriesParameter - - -String - - - -
attributesParameter - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetSentimentFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter, sentimentParameter) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
categoriesParameter - - -String - - - -
subCategoriesParameter - - -String - - - -
attributesParameter - - -String - - - -
sentimentParameter - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html deleted file mode 100644 index 6521474..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - TAFilters.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAFilters.js

- - - - - - - -
-
-
/**
- * @class TAFilters
- * @classdesc Class to work with Text Analytics filters
- *
- * @constructs TAFilters
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFoldee} folder - Text Analytics folder to build table from
- */
-class TAFilters{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _parameterUtilities: ParameterUtilities;
-
-    function TAFilters(globals, folder){
-        _globals = globals;
-        _folder = folder;
-    }
-
-    /**
-     * @memberof TAFilters
-     * @instance
-     * @function GetSelectedCategoryFilterExpression
-     * @param {String} categoriesParameter
-     * @param {String} subCategoriesParameter
-     * @param {String} attributesParameter
-     * @returns {String}
-     */
-    function GetSelectedCategoryFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter){
-        var fExpr;
-        var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter);
-
-        fExpr = selectedCategory ?('ANY(' + _folder.GetQuestionId("categories") + ',"'+selectedCategory+'")'):'NOT ISNULL('+_folder.GetQuestionId("overallSentiment")+')';
-
-        return fExpr;
-    }
-
-    /**
-     * @memberof TAFilters
-     * @instance
-     * @function GetSentimentFilterExpression
-     * @param {String} categoriesParameter
-     * @param {String} subCategoriesParameter
-     * @param {String} attributesParameter
-     * @param {String} sentimentParameter
-     * @returns {String}
-     */
-    function GetSentimentFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter, sentimentParameter){
-        var fExpr;
-        var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter);
-        var sentimentParameterValue = _globals.state.Parameters.GetString(sentimentParameter);
-        var sentimentRange = false;
-        switch( sentimentParameterValue ){
-            case "pos":
-                sentimentRange ='"'+Config.SentimentRange.Positive.join('","')+'"';
-                break;
-            case "neu":
-                sentimentRange ='"'+ Config.SentimentRange.Neutral.join('","') +'"';
-                break;
-            case "neg":
-                sentimentRange ='"' + Config.SentimentRange.Negative.join('","')+'"';
-                break;
-        }
-        var questionName = selectedCategory ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment");
-        fExpr = sentimentRange ?('IN(' + questionName + ','+sentimentRange+')') : '';
-        return fExpr;
-    }
-
-    /**
-     * @memberof TAFilters
-     * @instance
-     * @function GetDateFilterExpression
-     * @param {String} fromParameter
-     * @param {String} toParameter
-     * @returns {String}
-     */
-    function GetDateFilterExpression(fromParameter, toParameter){
-        var fExpr;
-        var isFrom = _globals.state.Parameters.IsNull(fromParameter);
-        var isTo = _globals.state.Parameters.IsNull(toParameter);
-        var fromExpr;
-        var toExpr;
-        var resultArray = [];
-        if(!isFrom)
-        {
-            fromExpr = _folder.GetTimeVariableId() + ' >= PValDate("' +fromParameter+'")';
-            resultArray.push(fromExpr);
-        }
-
-        if(!isTo){
-            toExpr = _folder.GetTimeVariableId() + ' <= PValDate("' +toParameter+'")';
-            resultArray.push(toExpr);
-        }
-
-        fExpr = resultArray.join(" AND ");
-
-        return fExpr
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html deleted file mode 100644 index 93f1551..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html +++ /dev/null @@ -1,1012 +0,0 @@ - - - - - TAFolder - Documentation - - - - - - - - - - - - - - - - -
- -

TAFolder

- - - - - - - -
- -
- -

- TAFolder -

- -

Class to work with Text Analytics variables

- - -
- -
-
- - - - -

Constructor

- - -

new TAFolder(globals, questionObj)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

questionObj - - -Object - - - -

Object from Config.TAQuestions[i]

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetDatasourceId() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get Id of the datasource

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetHierarchy() → {Hierarchy}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get Hierarchy for the text analytics set

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Hierarchy - - -
-
- - - - - - - - - -

GetHitlistColumns() → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get array of qIds to use in the end of the hitlist

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetId() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get unique Id for the text analytics set

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetQuestionId(questionType) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get id of text analytics variable (verbatim if no parameters)

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
questionType - - -String - - - -

type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetTimeVariableId() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get qId of time variable for the set

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetViewByVariables() → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get array of qIds to use in the detailed analysis table

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html deleted file mode 100644 index 5b4ba6b..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - TAFolder.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAFolder.js

- - - - - - - -
-
-
/**
- * @class TAFolder
- * @classdesc Class to work with Text Analytics variables
- *
- * @constructs TAFolder
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {Object} questionObj - Object from Config.TAQuestions[i]
- */
-class TAFolder{
-    private var _globals;
-
-    //TA Fields
-    private var _id: String;
-    private var _qName: String;
-    private var _modelNo: String;
-
-    //additional fields
-    private var _timeVariableId: String;
-    private var _datasourceId: String;
-    private var _variablesToViewBy;
-    private var _hitlistColumns;
-
-    private var _hierarchy: Hierarchy;
-
-
-    function TAFolder(globals, questionObj: Object){
-        _globals = globals;
-        _id = questionObj.TAQuestionId;
-        _qName = questionObj.TAQuestionName;
-        _modelNo = questionObj.TAModelNo;
-        _timeVariableId = TAHelper.GetConfiguredVariables(globals, [questionObj.TimeVariableId], null, null, ["interview_start"])[0];
-
-        _datasourceId = TAHelper.GetConfiguredVariables(globals, [questionObj.DatasourceId], [Config.DS_Main], null, ["ds0"])[0];
-        _variablesToViewBy = TAHelper.GetConfiguredVariables(globals, questionObj.VariablesToViewBy, Config.VariablesToViewBy, "ta_viewby", []);
-        _hitlistColumns = TAHelper.GetConfiguredVariables(globals, questionObj.HitlistColumns, Config.HitlistColumns, "hitlist", []);
-        _hierarchy = new Hierarchy(globals, {
-            schemaId: questionObj.DatabaseSchemaId,
-            tableName: questionObj.DatabaseTableName,
-            relationshipColumnName: questionObj.RelationshipColumnName,
-            textSeparator: questionObj.TextSeparator
-        });
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetQuestionId
-     * @description function to Get id of text analytics variable (verbatim if no parameters)
-     * @param {String} questionType - type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"
-     * @returns {String}
-     */
-    function GetQuestionId(questionType){
-        var postfix;
-        if(!questionType){
-            return _qName;
-        }
-        switch(questionType.toLowerCase()){
-            case "overallsentiment":
-            case "os":
-                postfix = "OverallSentiment";
-                break;
-            case "categories":
-            case "c":
-                postfix = "Categories";
-                break;
-            case "positivementions":
-            case "positive":
-            case "pm":
-                postfix = "PositiveMentions";
-                break;
-            case "negativementions":
-            case "negative":
-            case "nm":
-                postfix = "NegativeMentions";
-                break;
-            case "categorysentiment":
-            case "cs":
-                postfix = "CategorySentiment"
-                break;
-            default:
-                postfix = false;
-                break;
-        }
-
-        return _qName+( postfix ? (_modelNo + postfix) : "" );
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetHierarchy
-     * @description function to Get Hierarchy for the text analytics set
-     * @returns {Hierarchy}
-     */
-    function GetHierarchy(){
-        return _hierarchy;
-}
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetId
-     * @description function to Get unique Id for the text analytics set
-     * @returns {String}
-     */
-    function GetId(){
-        return _id;
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetTimeVariableId
-     * @description function to Get qId of time variable for the set
-     * @returns {String}
-     */
-    function GetTimeVariableId(){
-        return _timeVariableId;
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetDatasourceId
-     * @description function to Get Id of the datasource
-     * @returns {String}
-     */
-    function GetDatasourceId(){
-        return _datasourceId;
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetViewByVariables
-     * @description function to Get array of qIds to use in the detailed analysis table
-     * @returns {String[]}
-     */
-    function GetViewByVariables(){
-        return _variablesToViewBy;
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetHitlistColumns
-     * @description function to Get array of qIds to use in the end of the hitlist
-     * @returns {String[]}
-     */
-    function GetHitlistColumns(){
-        return _hitlistColumns;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html deleted file mode 100644 index 9a5daed..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html +++ /dev/null @@ -1,1121 +0,0 @@ - - - - - TAHelper - Documentation - - - - - - - - - - - - - - - - -
- -

TAHelper

- - - - - - - -
- -
- -

- TAHelper -

- -

Class cntaining additional static functions to work with text analytics

- - -
- -
-
- - - - -

Constructor

- - -

new TAHelper()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) GetConfiguredVariables(globals, questionConfig, config, tag, defaultValue) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get configured value from TAConfig or survey tags

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -
questionConfig - - -Object - - - -
config - - -Object - - - -
tag - - -Object - - - -
defaultValue - - -Object - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

(static) GetGlobals(context) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to retrieve global parameters from given context

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

(static) GetSelectedCategory(state, categoriesParameterName, subCategoriesParameterName, attribtesPararmeterNam) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get id of selected category, subcategory or attribute

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
state - - -ReportState - - - -
categoriesParameterName - - -String - - - -
subCategoriesParameterName - - -String - - - -
attribtesPararmeterNam - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

(static) GetSelfName(name, separator) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to trim out parents cateories from the category name

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -String - - - -
separator - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

(static) SetLastVisitedPage(globals, pageId)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to set the last visited page to the parameter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -
pageId - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html deleted file mode 100644 index e43fe60..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - TAHelper.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAHelper.js

- - - - - - - -
-
-
/**
- * @class TAHelper
- * @classdesc Class cntaining additional static functions to work with text analytics
- */
-class TAHelper{
-    /**
-     * @memberof TAHelper
-     * @function GetGlobals
-     * @description function to retrieve global parameters from given context
-     * @param {Object} context
-     * @returns {Object}
-     */
-    static function GetGlobals(context){
-        return {
-            pageContext: context.pageContext,
-            report: context.report,
-            user: context.user,
-            state: context.state,
-            confirmit: context.confirmit,
-            log: context.log
-        };
-    }
-
-    /**
-     * @memberof TAHelper
-     * @function GetSelectedCategory
-     * @description function to get id of selected category, subcategory or attribute
-     * @param {ReportState} state
-     * @param {String} categoriesParameterName
-     * @param {String} subCategoriesParameterName
-     * @param {String} attribtesPararmeterNam
-     * @returns {String}
-     */
-    static function GetSelectedCategory(state, categoriesParameterName, subCategoriesParameterName, attribtesPararmeterName){
-        var categoriesParameter;
-        if(categoriesParameterName)
-            categoriesParameter = state.Parameters.GetString(categoriesParameterName);
-
-
-        var subCategoriesParameter;
-        if(subCategoriesParameterName)
-            subCategoriesParameter= state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-
-
-        var attributesParameter;
-        if(attribtesPararmeterName)
-            attributesParameter = state.Parameters.GetString("TA_ATTRIBUTES_SINGLE");
-
-        var selectedCategory = false;
-
-        if(categoriesParameter && categoriesParameter != "emptyv"){
-            selectedCategory = categoriesParameter;
-        }
-
-        if(subCategoriesParameter && subCategoriesParameter != "emptyv"){
-            selectedCategory = subCategoriesParameter;
-        }
-
-        if(attributesParameter && attributesParameter != "emptyv"){
-            selectedCategory = attributesParameter;
-        }
-
-        return selectedCategory;
-    }
-
-    /**
-     * @memberof TAHelper
-     * @function GetSelfName
-     * @description function to trim out parents cateories from the category name
-     * @param {String} name
-     * @param {String} separator
-     * @returns {String}
-     */
-    static function GetSelfName(name, separator){
-        var index = name.lastIndexOf(separator);
-        return name.slice((index+1)).Trim();
-    }
-
-    /**
-     * @memberof TAHelper
-     * @function GetConfiguredVariables
-     * @description function to get configured value from TAConfig or survey tags
-     * @param {Object} globals
-     * @param {Object} questionConfig
-     * @param {Object} config
-     * @param {Object} tag
-     * @param {Object} defaultValue
-     * @returns {Object}
-     */
-    static function GetConfiguredVariables(globals, questionConfig, config, tag, defaultValue){
-        var result = [];
-        if(!questionConfig){
-            if( !config){
-                if(!tag){
-                    result = defaultValue
-                }else{
-                    var project = globals.report.DataSource.GetProject(Config.DS_Main);
-                    var questions = project.GetQuestionsWithAnswers(false, [tag]);
-                    for (var i = 0; i < questions.length; i++){
-                        result.push(questions[i].QuestionId);
-                    }
-                }
-            }else{
-                result = config;
-            }
-        }else{
-            result = questionConfig
-        }
-
-        return result;
-    }
-
-    /**
-     * @memberof TAHelper
-     * @function SetLastVisitedPage
-     * @description function to set the last visited page to the parameter
-     * @param {Object} globals
-     * @param {String} pageId
-     */
-    static function SetLastVisitedPage(globals, pageId){
-        globals.state.Parameters["TA_LAST_VISITED_PAGE"] = new ParameterValueResponse(pageId);
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html deleted file mode 100644 index 5e48bf0..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html +++ /dev/null @@ -1,691 +0,0 @@ - - - - - TAHitlistUtils - Documentation - - - - - - - - - - - - - - - - -
- -

TAHitlistUtils

- - - - - - - -
- -
- -

- TAHitlistUtils -

- -

Class to work with the hitlist

- - -
- -
-
- - - - -

Constructor

- - -

new TAHitlistUtils(globals, folder, hitlist)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -
hitlist - - -Hitlist - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

AddColumn(columnName, sortable)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to add a not text analytics variable to the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
columnName - - -String - - - -

variable qId

sortable - - -Boolean - - - -
- - - - - - - - - - - - - - - - - - - - - -

AddConfiguredColumns()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to add columns from config

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

AddTAColumn(columnName, sortable, postfix)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to add a text analytics variable to the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
columnName - - -String - - - -

type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"

sortable - - -Boolean - - - -
postfix - - -String - - - -

id of the selected category

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html deleted file mode 100644 index dbfcd17..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - TAHitlistUtils.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAHitlistUtils.js

- - - - - - - -
-
-
/**
- * @class TAHitlistUtils
- * @classdesc Class to work with the hitlist
- *
- * @constructs TAHitlistUtils
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder
- * @param {Hitlist} hitlist
- */
-class TAHitlistUtils{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _hitlist: HitList;
-
-    function TAHitlistUtils(globals, folder, hitlist){
-        _globals = globals;
-        _folder = folder;
-        _hitlist = hitlist;
-    }
-
-    /**
-     * @memberof TAHitlistUtils
-     * @instance
-     * @function AddTAColumn
-     * @description function to add a text analytics variable to the hitlist
-     * @param {String} columnName - type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"
-     * @param {Boolean} sortable
-     * @param {String} postfix - id of the selected category
-     */
-    function AddTAColumn(columnName, sortable, postfix){
-        var hitlistColumn: HitListColumn = new HitListColumn();
-        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
-        var columnId = _folder.GetQuestionId(columnName);
-        hitlistColumn.QuestionnaireElement = columnName == "categorysentiment" ? project.CreateQuestionnaireElement(columnId, postfix) : project.CreateQuestionnaireElement(columnId);
-        sortable ? (hitlistColumn.IsSortable = true) : null;
-        _hitlist.Columns.Add(hitlistColumn);
-    }
-
-    /**
-     * @memberof TAHitlistUtils
-     * @instance
-     * @function AddColumn
-     * @description function to add a not text analytics variable to the hitlist
-     * @param {String} columnName - variable qId
-     * @param {Boolean} sortable
-     */
-    function AddColumn(columnName, sortable){
-        var hitlistColumn: HitListColumn = new HitListColumn();
-        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
-
-        hitlistColumn.QuestionnaireElement = project.CreateQuestionnaireElement(columnName);
-        sortable ? (hitlistColumn.IsSortable = true) : null;
-        _hitlist.Columns.Add(hitlistColumn);
-    }
-
-    /**
-     * @memberof TAHitlistUtils
-     * @instance
-     * @function AddConfiguredColumns
-     * @description function to add columns from config
-     */
-    function AddConfiguredColumns(){
-        var hitlistColumn: HitListColumn;
-        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
-        var columns = _folder.GetHitlistColumns();
-        for( var i = 0; i < columns.length; i++){
-            hitlistColumn = new HitListColumn();
-            hitlistColumn.QuestionnaireElement = project.CreateQuestionnaireElement(columns[i]);
-            _hitlist.Columns.Add(hitlistColumn);
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html deleted file mode 100644 index 778588f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html +++ /dev/null @@ -1,721 +0,0 @@ - - - - - TALibrary - Documentation - - - - - - - - - - - - - - - - -
- -

TALibrary

- - - - - - - -
- -
- -

- TALibrary -

- -

Class to work with different TAFolders

- - -
- -
-
- - - - -

Constructor

- - -

new TALibrary(globals, folders)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folders - - -Array.<Object> - - - -

Config.TAQuestions

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetFiltersQuestions() → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetFolderById(id) → {TAFolder}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TAFolder - - -
-
- - - - - - - - - -

GetFolders() → {Array.<TAFolder>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<TAFolder> - - -
-
- - - - - - - - - -

SetCurrentFolder(id)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html deleted file mode 100644 index f1af8a1..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - TALibrary.js - Documentation - - - - - - - - - - - - - - - - -
- -

TALibrary.js

- - - - - - - -
-
-
/**
- * @class TALibrary
- * @classdesc Class to work with different TAFolders
- *
- * @constructs TALibrary
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {Object[]} folders - Config.TAQuestions
- */
-class TALibrary{
-    private var _globals;
-    private var _folders = [];
-    private var _currentFolder: TAFolder;
-    private var _filtersQuestions;
-
-
-    function TALibrary(globals,folders){
-        _globals = globals;
-
-        _filtersQuestions = TAHelper.GetConfiguredVariables(globals, null, Config.FiltersQuestions, "ta_filter", []);
-        var folder: TAFolder;
-        for(var i = 0 ; i < folders.length; i++){
-            folder = new TAFolder(_globals,folders[i]);
-            _folders.push(folder);
-        }
-
-        _currentFolder = _folders[0];
-    }
-
-    /**
-     * @memberof TALibrary
-     * @instance
-     * @function GetFolders
-     * @returns {TAFolder[]}
-     */
-    function GetFolders(){
-        return _folders;
-    }
-
-    /**
-     * @memberof TALibrary
-     * @instance
-     * @function GetFolderById
-     * @param {String} id
-     * @returns {TAFolder}
-     */
-    function GetFolderById(id){
-        if(id){
-
-            for(var i=0; i<_folders.length; i++){
-                if(_folders[i].id == id){
-                    return _folders[i];
-                    break;
-                }
-            }
-
-            throw new Error(201, "incorrect question Id");
-
-        }else{
-            return _folders[0];
-        }
-    }
-
-    /**
-     * @memberof TALibrary
-     * @instance
-     * @function GetFiltersQuestions
-     * @returns {String[]}
-     */
-    function GetFiltersQuestions(){
-        return _filtersQuestions;
-    }
-
-    /**
-     * @memberof TALibrary
-     * @instance
-     * @function SetCurrentFolder
-     * @param {String} id
-     */
-    function SetCurrentFolder(id){
-        for(var i=0; i<_folders.length; i++){
-            if(_folders[i].id == id){
-                _currentFolder = _folders[i];
-                break;
-            }
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html deleted file mode 100644 index 8f9c7c9..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html +++ /dev/null @@ -1,702 +0,0 @@ - - - - - TAMasks - Documentation - - - - - - - - - - - - - - - - -
- -

TAMasks

- - - - - - - -
- -
- -

- TAMasks -

- -

Class to work with different types of masks for text analytics

- - -
- -
-
- - - - -

Constructor

- - -

new TAMasks(globals, folder)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetAllChildrenMask(level) → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

returns all children and grand-children ids for the selected category

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetCategoriesMask(level) → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

returns all categories on the selected level

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetChildrenMask(level) → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

returns all children ids for the selected category

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html deleted file mode 100644 index 56f1441..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - TAMasks.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAMasks.js

- - - - - - - -
-
-
/**
- * @class TAMasks
- * @classdesc Class to work with different types of masks for text analytics
- *
- * @constructs TAMasks
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder
- */
-class TAMasks{
-    private var _globals;
-    private var _folder: TAFolder;
-
-    function TAMasks(globals, folder){
-        _globals = globals;
-        _folder = folder;
-    }
-
-    /**
-     * @memberof TAMasks
-     * @instance
-     * @function GetCategoriesMask
-     * @description returns all categories on the selected level
-     * @param {String} level
-     * @returns {String[]}
-     */
-    function GetCategoriesMask(level){
-        var mask = [];
-        var levelArray = _folder.GetHierarchy().GetLevelArray(parseInt(level));
-        for(var i = 0; i < levelArray.length; i++){
-            mask.push(levelArray[i].id);
-        }
-        return mask
-    }
-
-    /**
-     * @memberof TAMasks
-     * @instance
-     * @function GetChildrenMask
-     * @description returns all children ids for the selected category
-     * @param {String} level
-     * @returns {String[]}
-     */
-    function GetChildrenMask(category){
-        var mask = [];
-        var childrenArray = _folder.GetHierarchy().GetObjectById(category).subcells;
-        for(var i = 0; i < childrenArray.length; i++){
-            mask.push(childrenArray[i].id);
-        }
-
-        return mask
-    }
-
-    /**
-     * @memberof TAMasks
-     * @instance
-     * @function GetAllChildrenMask
-     * @description returns all children and grand-children ids for the selected category
-     * @param {String} level
-     * @returns {String[]}
-     */
-    function GetAllChildrenMask(category, mask){
-        var mask = mask ? mask : [];
-        var childrenArray = _folder.GetHierarchy().GetObjectById(category).subcells;
-        for(var i = 0; i < childrenArray.length; i++){
-            mask.push(childrenArray[i].id);
-            mask = GetAllChildrenMask(childrenArray[i].id, mask);
-        }
-
-        return mask
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html deleted file mode 100644 index 4f213b3..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html +++ /dev/null @@ -1,1516 +0,0 @@ - - - - - TAParameters - Documentation - - - - - - - - - - - - - - - - -
- -

TAParameters

- - - - - - - -
- -
- -

- TAParameters -

- -

Class to work with parameters using Text analytics variables

- - -
- -
-
- - - - -

Constructor

- - -

new TAParameters(globals, library)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

library - - -TALibrary - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addEmptyValue(EmptyValueLabel) → {Array.<Object>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
EmptyValueLabel - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<Object> - - -
-
- - - - - - - - - -

ClearSubcategoriesParameters(folderId, value, categoriesParameter, subcategoriesParameter, attributesParamete)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

clear subcategories andattributes parameters when another parent selected

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
folderId - - -String - - - -
value - - -String - - - -

empty value for that parameter "emptyv"

categoriesParameter - - -String - - - -
subcategoriesParameter - - -String - - - -
attributesParamete - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

MaskSelectedCategoryChildren(mask, folderId, category, addEmpty)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

masking children for the specified category

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
mask - - -Mask - - - -
folderId - - -String - - - -
category - - -String - - - -
addEmpty - - -Boolean - - - -
- - - - - - - - - - - - - - - - - - - - - -

RenderFoldersParameter(parameter)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

render parameter with list of TAFoders using in the report

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
- - - - - - - - - - - - - - - - - - - - - -

RenderLevelCategoriesParameter(parameter, folderId, level, emptyValueLabel)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

render parameter with list of categories on the specified level

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
folderId - - -String - - - -
level - - -String - - - -
emptyValueLabel - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

RenderLevelsParameter(parameter, folderId, emptyValueLabel)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

render parameter with list of levels in the hierarchy

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
folderId - - -String - - - -
emptyValueLabel - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

RenderViewByParameter(parameter, folderId, emptyValueLabel)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

render parameter with list of questions for the detailed analysis table

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
folderId - - -String - - - -
emptyValueLabel - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html deleted file mode 100644 index 6e70138..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - TAParameters.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAParameters.js

- - - - - - - -
-
-
/**
- * @class TAParameters
- * @classdesc Class to work with parameters using Text analytics variables
- *
- * @constructs TAParameters
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TALibrary} library
- */
-class TAParameters{
-    private var _globals;
-    private var _library: TALibrary;
-    private var _parameterUtilities: ParameterUtilities;
-
-    function TAParameters(globals, library){
-        _globals = globals;
-        _library = library;
-        _parameterUtilities = new ParameterUtilities(_globals);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @private
-     * @function _addEmptyValue
-     * @param {String} EmptyValueLabel
-     * @returns {Object[]}
-     */
-    private function _addEmptyValue(emptyValueLabel){
-            var parameterValues = [];
-        if(emptyValueLabel){
-            parameterValues.push({
-                Code : "emptyv",
-                Label: emptyValueLabel
-            });
-        }
-        return parameterValues
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function RenderFoldersParameter
-     * @description render parameter with list of TAFoders using in the report
-     * @param {Parameter} parameter
-     */
-    function RenderFoldersParameter(parameter){
-        var folders = _library.GetFolders();
-
-        var parameterValues = [];
-
-        for(var i = 0; i < folders.length; i++){
-            parameterValues.push({
-                Code: folders[i].id,
-                Label: folders[i].id
-            });
-        }
-        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function RenderLevelCategoriesParameter
-     * @description render parameter with list of categories on the specified level
-     * @param {Parameter} parameter
-     * @param {String} folderId
-     * @param {String} level
-     * @param {String} emptyValueLabel
-     */
-    function RenderLevelCategoriesParameter(parameter,folderId, level, emptyValueLabel){
-        var categories = _library.
-        GetFolderById(folderId).
-        GetHierarchy().
-        GetLevelArray(level);
-
-        var parameterValues = _addEmptyValue(emptyValueLabel);
-
-        for(var i = 0; i < categories.length; i++){
-            parameterValues.push({
-                Code: categories[i].id,
-                Label: categories[i].name
-            })
-        }
-        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function MaskSelectedCategoryChildren
-     * @description masking children for the specified category
-     * @param {Mask} mask
-     * @param {String} folderId
-     * @param {String} category
-     * @param {Boolean} addEmpty
-     */
-    function MaskSelectedCategoryChildren(mask,folderId,category,addEmpty){
-        var folder = _library.GetFolderById(folderId);
-        var taMasks = new TAMasks(_globals, folder);
-        var children = taMasks.GetChildrenMask(category);
-        mask.Access = ParameterAccessType.Inclusive;
-        if( addEmpty )
-            mask.Keys.Add("emptyv");
-        for ( var i = 0; i< children.length; i++)
-            mask.Keys.Add(children[i]);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function RenderLevelsParameter
-     * @description render parameter with list of levels in the hierarchy
-     * @param {Parameter} parameter
-     * @param {String} folderId
-     * @param {String} emptyValueLabel
-     */
-    function RenderLevelsParameter(parameter, folderId, emptyValueLabel){
-        var levelValues = [
-            {
-                Code: "0",
-                Label: "1st level (category)"
-            },
-            {
-                Code: "1",
-                Label: "2nd level (sub-category)"
-            },
-            {
-                Code: "2",
-                Label: "3rd level (attributes)"
-            }
-        ];
-        var parameterValues = _addEmptyValue(emptyValueLabel);
-        var folder = _library.GetFolderById(folderId);
-        var hierarchy = folder.GetHierarchy();
-        var levelsCount=hierarchy.GetLevelsCount();
-
-        for( var i = 0; i < levelsCount; i++){
-            parameterValues.push( levelValues[i] );
-        }
-
-        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function RenderViewByParameter
-     * @description render parameter with list of questions for the detailed analysis table
-     * @param {Parameter} parameter
-     * @param {String} folderId
-     * @param {String} emptyValueLabel
-     */
-    function RenderViewByParameter(parameter, folderId, emptyValueLabel){
-        var parameterValues = _addEmptyValue(emptyValueLabel);
-        var folder = _library.GetFolderById(folderId);
-        var variables = folder.GetViewByVariables();
-        var project = _globals.report.DataSource.GetProject(folder.GetDatasourceId());
-        var question: Question;
-        for( var i = 0; i < variables.length; i++){
-            question = project.GetQuestion( variables[i] );
-            parameterValues.push({
-                Code: variables[i],
-                Label: question.Title ? question.Title : variables[i]
-            });
-        }
-
-        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function ClearSubcategoriesParameters
-     * @description clear subcategories andattributes parameters when another parent selected
-     * @param {String} folderId
-     * @param {String} value - empty value for that parameter "emptyv"
-     * @param {String} categoriesParameter
-     * @param {String} subcategoriesParameter
-     * @param {String} attributesParamete
-     */
-    function ClearSubcategoriesParameters(folderId, value, categoriesParameter, subcategoriesParameter, attributesParameter){
-        var folder = _library.GetFolderById(folderId);
-        var topCategory = _globals.state.Parameters.GetString(categoriesParameter);
-        var subCategory = _globals.state.Parameters.GetString(subcategoriesParameter);
-        if(subCategory && subCategory != value){
-            if (folder.GetHierarchy().GetObjectById(subCategory).parent != topCategory){
-                _globals.state.Parameters[subcategoriesParameter] = new ParameterValueResponse(value);
-                if ( attributesParameter ){
-                    _globals.state.Parameters[attributesParameter] = new ParameterValueResponse(value);
-                }
-            }
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html deleted file mode 100644 index 8f40fda..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html +++ /dev/null @@ -1,459 +0,0 @@ - - - - - TATableData - Documentation - - - - - - - - - - - - - - - - -
- -

TATableData

- - - - - - - -
- -
- -

- TATableData -

- -

Class to get Data from built table

- - -
- -
-
- - - - -

Constructor

- - -

new TATableData(globals, tableName)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

tableName - - -String - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetBlocks() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get parent rowheader ids

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetTableRowHeaders() → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get rowheaders with ids

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - -
-
    -
  • object with ids, titles and row indexes
  • -
-
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html deleted file mode 100644 index 7827469..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - TATableData.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATableData.js

- - - - - - - -
-
-
/**
- * @class TATableData
- * @classdesc Class to get Data from built table
- *
- * @constructs TATableData
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {String} tableName
- */
-class TATableData{
-    private var _globals;
-    private var _tableName;
-
-    function  TATableData(globals, tableName){
-        _globals = globals;
-        _tableName = tableName
-    }
-
-    /**
-     * @memberof TATableData
-     * @instance
-     * @function GetTableRowHeaders
-     * @description function to get rowheaders with ids
-     * @returns {Object} - object with ids, titles and row indexes
-     */
-    function GetTableRowHeaders(){
-        var rowheaders={
-            length: 0
-        };
-        var rowHeaderTitles = _globals.report.TableUtils.GetRowHeaderCategoryTitles(_tableName);
-        var rowHeaderIds = _globals.report.TableUtils.GetRowHeaderCategoryIds(_tableName);
-        for(var i=0; i<rowHeaderIds.length;i++){
-            rowheaders[rowHeaderIds[i][0]+((rowHeaderIds[i].length>1)?("_block"+rowHeaderIds[i][1]):"")] = {title: rowHeaderTitles[i][0], index: i, categoryId: rowHeaderIds[i][0], blockId: ((rowHeaderIds[i].length>1)?("block"+rowHeaderIds[i][1]):null)};
-            rowheaders.length++;
-        }
-        return rowheaders;
-    }
-
-    /**
-     * @memberof TATableData
-     * @instance
-     * @function GetBlocks
-     * @description function to get parent rowheader ids
-     * @returns {String}
-     */
-    function GetBlocks(){
-        var blocks = [];
-        var rowHeaderIds = _globals.report.TableUtils.GetRowHeaderCategoryIds(_tableName);
-        var blockExists = false;
-        if(rowHeaderIds.length >0 && rowHeaderIds[0].length > 1){
-            for(var i=0; i<rowHeaderIds.length; i++){
-                blockExists = false;
-                for(var j = 0; j < blocks.length; j++){
-                    if( ("block"+rowHeaderIds[i][1]) == blocks[j]){
-                        blockExists = true;
-                        break;
-                    }
-                }
-
-                if( !blockExists ){
-                    blocks.push("block"+rowHeaderIds[i][1]);
-                }
-            }
-        }
-        return blocks
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html deleted file mode 100644 index f89eea0..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html +++ /dev/null @@ -1,2393 +0,0 @@ - - - - - TATableUtils - Documentation - - - - - - - - - - - - - - - - -
- -

TATableUtils

- - - - - - - -
- -
- -

- TATableUtils -

- -

Class to work with tables using Text Analytics variables

- - -
- -
-
- - - - -

Constructor

- - -

new TATableUtils(globals, folder, table)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -
table - - -Table - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _getSumOfCells(cellsNumber, offset) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get formula expression for sum of previous columns

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
cellsNumber - - -Number - - - -
offset - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

AddClasses(classes)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
classes - - -Array.<String> - - - -
- - - - - - - - - - - - - - - - - - - - - -

CreateTableFromExpression(rowHeaders, columnHeaders)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to create table from columns and rows expression

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rowHeaders - - -String - - - -
columnHeaders - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

GetCategoriesExpression(groupName, addMinus, hideHeader, distribution) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get columnHeaderExpression for total or neg, neu, pos categories

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupName - - -String - - - -

"total", "neg", "neu","pos"

addMinus - - -Boolean - - - -

if you want to add minus to negative values

hideHeader - - -Boolean - - - -
distribution - - -String - - - -

0 - for counts, 1 - for percents

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetCategoriesHeader(groupName, addMinus, hideHeader, distribution) → {HeaderCollection}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get columnHeader for total or neg, neu, pos categories

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupName - - -String - - - -

"total", "neg", "neu","pos"

addMinus - - -Boolean - - - -

if you want to add minus to negative values

hideHeader - - -Boolean - - - -
distribution - - -String - - - -

0 - for counts, 1 - for percents

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -HeaderCollection - - -
-
- - - - - - - - - -

GetChartHeader(type, formulas, title) → {HeaderChartCombo}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Header containing Barchart

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -ChartComboType - - - -
formulas - - -Array.<Object> - - - -

array of objects with formulas like {Formula: "cellv(col-25,row)", Color: (Config.Colors.NegNeuPosPalette.Positive)}

title - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -HeaderChartCombo - - -
-
- - - - - - - - - -

GetTAQuestionExpression(questionType, mask, additionalStatement) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Expression for header containing Text Analytics variable

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
questionType - - -String - - - -

"overallsentiment", "categories", "positivementions", "negativementions", "categorysentiment"

mask - - -Array.<String> - - - -
additionalStatement - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetTimePeriodHeader(unit, from, to) → {HeaderQuestion}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Header for certain time period

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
unit - - -String - - - -

breaking by "d" - for days, "w" - for weeks, "m" - for months, "q" - for quarters, "y" - for years

from - - -Number - - - -

rolling from

to - - -Number - - - -

rolling to

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -HeaderQuestion - - -
-
- - - - - - - - - -

SetupConditionalFormatting(conditions, name, applyTo)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
conditions - - -Array.<Object> - - - -

array of objects like { expression: 'cellv(col,row)<(-1)', style: 'negative'}

name - - -String - - - -
applyTo - - -Object - - - -

define area in object like {axis: Area.Columns, direction: Area.Left, indexes: "3"}

- - - - - - - - - - - - - - - - - - - - - -

SetupDrilldown(parameterId, pageIDs)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameterId - - -String - - - -
pageIDs - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

SetupHideEmptyRows(parameterId)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameterId - - -Boolean - - - -
- - - - - - - - - - - - - - - - - - - - - -

SetupRowsTableSorting(directionAscending, position, topN)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
directionAscending - - -Boolean - - - -
position - - -Byte - - - -
topN - - -Number - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html deleted file mode 100644 index 7fb999e..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html +++ /dev/null @@ -1,427 +0,0 @@ - - - - - TATableUtils.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATableUtils.js

- - - - - - - -
-
-
/**
- * @class TATableUtils
- * @classdesc Class to work with tables using Text Analytics variables
- *
- * @constructs TATableUtils
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param  {TAFolder} folder
- * @param {Table} table
- */
-class TATableUtils{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _table: Table;
-
-    function TATableUtils(globals, folder, table){
-        _globals = globals;
-        _folder = folder;
-        _table = table;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetupRowsTableSorting
-     * @param {Boolean} directionAscending
-     * @param {Byte} position
-     * @param {Number} topN
-     */
-    function SetupRowsTableSorting(directionAscending: Boolean, position: Byte, topN){
-        _table.Sorting.Rows.Enabled = true;
-        _table.Sorting.Rows.SortByType = TableSortByType.Position;
-        _table.Sorting.Rows.Direction = directionAscending ? TableSortDirection.Ascending : TableSortDirection.Descending;
-        _table.Sorting.Rows.Position = position;
-        _table.Sorting.Rows.PositionDirection =  TableSortByPositionType.FromStart;
-        _table.Sorting.Rows.TopN = topN ? topN : 0;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetupConditionalFormatting
-     * @param {Object[]} conditions - array of objects like { expression: 'cellv(col,row)<(-1)', style: 'negative'}
-     * @param {String} name
-     * @param {Object} applyTo - define area in object like {axis: Area.Columns, direction: Area.Left, indexes: "3"}
-     */
-    function SetupConditionalFormatting(conditions, name, applyTo){
-        var formatter : ConditionalFormatting = _table.ConditionalFormatting;
-
-        var area : Area = new Area();
-
-        area.Name = name;
-        area.ApplyTo(applyTo.axis, applyTo.direction, applyTo.indexes);
-
-        for(var i = 0; i< conditions.length; i++){
-            var condition: Condition = new Condition();
-            condition.Expression = conditions[i].expression;
-            condition.Style = conditions[i].style;
-            area.AddCondition(condition);
-        }
-
-        formatter.AddArea(area);
-
-        _table.ConditionalFormatting = formatter;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetupDrilldown
-     * @param {String} parameterId
-     * @param {String} pageIDs
-     */
-    function SetupDrilldown(parameterId: String, pageIDs){
-        _table.Drilling.Rows.Enabled = true;
-        _table.Drilling.Rows.Type = DrilldownType.SetParameter;
-        _table.Drilling.Rows.ParameterID = parameterId;
-        _table.Drilling.Rows.TargetPages = pageIDs;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetupHideEmptyRows
-     * @param {Boolean} parameterId
-     */
-    function SetupHideEmptyRows(hideEmptyRows){
-        _table.RemoveEmptyHeaders.Rows = hideEmptyRows;
-    }
-
-    /**
-    * @memberof TATableUtils
-    * @instance
-    * @function AddClasses
-    * @param {String[]} classes
-    */
-    function AddClasses(classes){
-        _table.CssClass = ( ( !_table.CssClass ) ? "" : (_table.CssClass + " " ) ) + classes.join(" ");
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @private
-     * @function _getSumOfCells
-     * @description function to get formula expression for sum of previous columns
-     * @param {Number} cellsNumber
-     * @param {Number} offset
-     * @returns {String}
-     */
-    private function _getSumOfCells(cellsNumber,offset){
-        var cellsSum;
-        var cellsValues = [];
-        var columnNumber;
-        for( var i = 1; i <= cellsNumber; i++){
-            columnNumber = i + ( offset ? offset : 0);
-            cellsValues.push(("IF(cellv(col-"+columnNumber+",row) = EMPTYV(), 0, cellv(col-"+columnNumber+",row))"));
-        }
-
-        cellsSum = "IF(("+cellsValues.join('+')+") = 0, EMPTYV(), "+cellsValues.join('+')+")"
-        return cellsSum
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetCategoriesHeader
-     * @description function to get columnHeader for total or neg, neu, pos categories
-     * @param {String} groupName - "total", "neg", "neu","pos"
-     * @param {Boolean} addMinus - if you want to add minus to negative values
-     * @param {Boolean} hideHeader
-     * @param {String} distribution - 0 - for counts, 1 - for percents
-     * @returns {HeaderCollection}
-     */
-    function GetCategoriesHeader(groupName: String, addMinus, hideHeader, distribution){
-        var header: HeaderCollection = new HeaderCollection();
-        var headerFormula : HeaderFormula;
-        var headerCategories: HeaderCategories;
-        var categoryTitle: Label;
-        if( groupName == "all" ){
-            headerCategories= new HeaderCategories();
-            headerCategories.Mask.Type = MaskType.HideAll;
-            headerCategories.Totals = true;
-
-            headerCategories.HideHeader = hideHeader ? hideHeader : false;
-            header.Add(headerCategories);
-
-        }else{
-
-            headerCategories= new HeaderCategories();
-            headerCategories.Mask.Type = MaskType.ShowCodes;
-            headerCategories.Totals = false;
-            headerCategories.HideData = true;
-
-
-            headerFormula = new HeaderFormula();
-            headerFormula.Type = FormulaType.Expression;
-            headerFormula.Decimals = 0;
-            headerFormula.Priority = 0;
-
-            switch(groupName.toLowerCase()){
-                case "neg":
-                    headerCategories.Mask.Codes = Config.SentimentRange.Negative.join(",");
-                    headerFormula.Expression = _getSumOfCells(4)+(addMinus?"*(-1)":"");
-                    categoryTitle = new Label(9, "Negative");
-                    break;
-
-                case "neu":
-                    headerCategories.Mask.Codes = Config.SentimentRange.Neutral.join(",");
-                    headerFormula.Expression = _getSumOfCells(3);
-                    categoryTitle = new Label(9, "Neutral");
-                    break;
-
-                case "pos":
-                    headerCategories.Mask.Codes = Config.SentimentRange.Positive.join(",");
-                    headerFormula.Expression = _getSumOfCells(4);
-                    categoryTitle = new Label(9, "Positive");
-                    break;
-            }
-
-
-            headerFormula.Title = categoryTitle;
-
-            headerFormula.HideHeader = hideHeader ? hideHeader : false;
-
-            if(distribution && distribution == "1"){
-                headerCategories.Distributions.Enabled = true;
-                headerCategories.Distributions.Count = false;
-                headerCategories.Distributions.HorizontalPercents = true;
-                headerFormula.Expression +="/100";
-                headerFormula.Percent = true;
-            }
-            header.Add(headerCategories);
-            header.Add(headerFormula);
-        }
-        return header
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetCategoriesExpression
-     * @description function to get columnHeaderExpression for total or neg, neu, pos categories
-     * @param {String} groupName - "total", "neg", "neu","pos"
-     * @param {Boolean} addMinus - if you want to add minus to negative values
-     * @param {Boolean} hideHeader
-     * @param {String} distribution - 0 - for counts, 1 - for percents
-     * @returns {String}
-     */
-    function GetCategoriesExpression( groupName: String, addMinus, hideHeader, distribution ){
-        var expression = "";
-        if( groupName == "all" ){
-            expression = '[CAT]{totals:true';
-            expression += ';mask:emptyv';
-            if ( hideHeader )
-                expression += ';hideheader:true';
-            expression += '}'
-        }else{
-            var categoriesHeader = '[CAT]{totals:false;hidedata:true';
-            var formulaHeader = '[FORMULA]{decimals:0';
-            var formulaExpression;
-            var categoryLabel;
-            switch(groupName.toLowerCase()){
-                case "neg":
-                    formulaExpression = _getSumOfCells(4,7)+(addMinus?'*(-1)':'');
-                    categoryLabel = '"Negative"';
-                    break;
-
-                case "neu":
-                    formulaExpression = _getSumOfCells(3,4);
-                    categoryLabel = '"Neutral"';
-                    break;
-
-                case "pos":
-                    formulaExpression = _getSumOfCells(4,0);
-                    categoryLabel = '"Positive"';
-                    break;
-            }
-
-            if(distribution && distribution == "1"){
-                formulaExpression +="/100";
-                formulaHeader += ";percent:true";
-            }
-
-            formulaHeader += ';label:'+categoryLabel+';expression:"'+formulaExpression+'"';
-
-            if ( hideHeader )
-                formulaHeader += ';hideheader:true';
-            formulaHeader +='}'
-            categoriesHeader += "}"
-            expression = [categoriesHeader, formulaHeader].join("+")
-        }
-        return expression
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetChartHeader
-     * @description function to get Header containing Barchart
-     * @param {ChartComboType} type
-     * @param {Object[]} formulas - array of objects with formulas like {Formula: "cellv(col-25,row)", Color: (Config.Colors.NegNeuPosPalette.Positive)}
-     * @param {String} title
-     * @returns {HeaderChartCombo}
-     */
-    function GetChartHeader(type: ChartComboType, formulas, title){
-        var chartHeader: HeaderChartCombo = new HeaderChartCombo();
-        var chartValues = []
-        chartHeader.TypeOfChart = type;
-        chartHeader.Thickness = "80%";
-        chartHeader.CssClass = "chart-header";
-        chartHeader.ShowTitle = true;
-        chartHeader.Title = new Label(9, title?title:"Chart");
-
-        var chartValue: ChartComboValue;
-        for(var i = 0; i< formulas.length; i++) {
-            chartValue = new ChartComboValue();
-            chartValue.CssClass = "chart-value";
-            chartValue.Expression = formulas[i].Formula;
-            chartValue.BaseColor = new ChartComboColorSet([formulas[i].Color]);
-            chartValues.push(chartValue);
-        }
-
-        chartHeader.Values = chartValues;
-        return chartHeader;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetTAQuestionExpression
-     * @description function to get Expression for header containing Text Analytics variable
-     * @param {String} questionType - "overallsentiment", "categories", "positivementions", "negativementions", "categorysentiment"
-     * @param {String[]} mask
-     * @param {String} additionalStatement
-     * @returns {String}
-     */
-    function GetTAQuestionExpression(questionType, mask, additionalStatement){
-        var rowExpression;
-        var variableId = _folder.GetQuestionId(questionType);
-        rowExpression = variableId+'{id:'+variableId+';collapsed:true;totals:false'+( mask && mask.length > 0 ? (';mask:'+mask.join(",")) : null )+( additionalStatement ? (";"+additionalStatement) : null)+'}';
-        return rowExpression
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetTimePeriodHeader
-     * @description function to get Header for certain time period
-     * @param {String} unit - breaking by  "d" - for days, "w" - for weeks, "m" - for months, "q" - for quarters, "y" - for years
-     * @param {Number} from - rolling from
-     * @param {Number} to - rolling to
-     * @returns {HeaderQuestion}
-     */
-    function GetTimePeriodHeader(unit, from, to){
-        var project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
-        var questionnaireElement: QuestionnaireElement = project.CreateQuestionnaireElement(_folder.GetTimeVariableId());
-        var headerTimeSeries: HeaderQuestion;
-
-        headerTimeSeries = new HeaderQuestion(questionnaireElement);
-        headerTimeSeries.TimeSeries.FlatLayout = true;
-        headerTimeSeries.TimeSeries.RollingTimeseries.Enabled = true;
-
-        headerTimeSeries.TimeSeries.Time1 = TimeseriesTimeUnitType.Year;
-        switch (unit.toLowerCase()){
-            case "d":
-                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Month;
-                headerTimeSeries.TimeSeries.Time3 = TimeseriesTimeUnitType.DayOfMonth;
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Day;
-                break;
-            case "w":
-                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Week;
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Week;
-                break;
-            case "m":
-                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Month
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Month;;
-                break;
-            case "q":
-                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Quarter
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Quarter;
-                break;
-            case "y":
-            default:
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Year;
-                break;
-        }
-        headerTimeSeries.ShowTotals = false;
-        headerTimeSeries.TimeSeries.RollingTimeseries.From = from;
-        headerTimeSeries.TimeSeries.RollingTimeseries.To = to;
-
-        return headerTimeSeries
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function CreateTableFromExpression
-     * @description function to create table from columns and rows expression
-     * @param {String} rowHeaders
-     * @param {String} columnHeaders
-     */
-    function CreateTableFromExpression(rowHeaders, columnHeaders){
-        var headersArray = [rowHeaders];
-        if( columnHeaders ){
-            headersArray.push( columnHeaders )
-        }
-        var tableExpression = headersArray.join('^');
-        _table.AddHeaders(_globals.report, Config.DS_Main, tableExpression);
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html deleted file mode 100644 index 909523c..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html +++ /dev/null @@ -1,829 +0,0 @@ - - - - - TAThemeDistributionTable - Documentation - - - - - - - - - - - - - - - - -
- -

TAThemeDistributionTable

- - - - - - - -
- -
- -

- TAThemeDistributionTable -

- -

Class to work with ThemeDistribution table

- - -
- -
-
- - - - -

Constructor

- - -

new TAThemeDistributionTable(globals, folder, table, sentiment)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFoldee - - - -

Text Analytics folder to build table from

table - - -Table - - - -
sentiment - - -String - - - -

"emptyv", "neg", "neu", "pos"

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addTimeSeriesColum()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _getCountsColumn() → {HeaderCollection}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -HeaderCollection - - -
-
- - - - - - - - - -

(private) _getHeaderStatistics() → {Header}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Header - - -
-
- - - - - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupConditionalFormatting}()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html deleted file mode 100644 index 0d573b7..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - TAThemeDistributionTable.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAThemeDistributionTable.js

- - - - - - - -
-
-
/**
- * @class TAThemeDistributionTable
- * @classdesc Class to work with ThemeDistribution table
- *
- * @constructs TAThemeDistributionTable
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFoldee} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} sentiment - "emptyv", "neg", "neu", "pos"
- */
-class TAThemeDistributionTable{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _sentiment;
-    private var _percents;
-    private var _period;
-
-    function TAThemeDistributionTable(globals, folder, table, sentiment){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _sentiment = sentiment == "emptyv" ? "all" : sentiment;
-
-        _period = {
-            Unit: "m",
-            From: -11,
-            To: 0
-        };
-
-        _render();
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var qType = "categorysentiment";
-        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType);
-
-        _taTableUtils.CreateTableFromExpression(rowexpr);
-        _addTimeSeriesColumn();
-        _setupConditionalFormatting();
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _addTimeSeriesColum
-     */
-    private function _addTimeSeriesColumn(){
-        var headerTimeSeries = _taTableUtils.GetTimePeriodHeader(_period.Unit, _period.From, _period.To);
-        var columnsCollection: HeaderCollection = new HeaderCollection();
-
-        columnsCollection.AddRange(_getCountsColumn());
-        columnsCollection.Add(_getHeaderStatistics());
-
-        headerTimeSeries.SubHeaders.AddRange(columnsCollection);
-        _table.ColumnHeaders.Add(headerTimeSeries);
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _getCountsColumn
-     * @returns {HeaderCollection}
-     */
-    private function _getCountsColumn(){
-        var columnsCollection: HeaderCollection = _taTableUtils.GetCategoriesHeader(_sentiment, false, true, false);
-        return columnsCollection
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _getHeaderStatistics
-     * @returns {Header}
-     */
-    private function _getHeaderStatistics(){
-        var headerStatistics;
-        if( _sentiment == "all"){
-
-            headerStatistics = new HeaderStatistics();
-            headerStatistics.Statistics.Avg = true;
-
-        }else{
-
-            headerStatistics = new HeaderFormula();
-            headerStatistics.Type = FormulaType.Expression;
-            headerStatistics.Decimals = 0;
-            headerStatistics.Priority = 0;
-
-            switch (_sentiment) {
-                case "neg":
-                    headerStatistics.Expression = "-2";
-                    break;
-
-                case "neu":
-                    headerStatistics.Expression = "0";
-                    break;
-
-                case "pos":
-                    headerStatistics.Expression = "2";
-                    break;
-            }
-        }
-        headerStatistics.HideHeader = true;
-        headerStatistics.HideData = true;
-        return headerStatistics
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _setupConditionalFormatting}
-     */
-    private function _setupConditionalFormatting(){
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col+1, row)<(-1) AND cellv(col,row)<>EMPTYV() ',
-                    style: 'negative'
-                },
-
-                {
-                    expression: '(cellv(col+1, row)>=(-1)) AND (cellv(col+1, row)<=1) AND cellv(col,row)<>EMPTYV()',
-                    style: 'neutral'
-                },
-                {
-                    expression: 'cellv(col+1, row)>1 AND cellv(col,row)<>EMPTYV()',
-                    style: 'positive'
-                }
-            ],
-            "NegNeuPos",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "1-1000"
-            }
-        )
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html deleted file mode 100644 index a88e082..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html +++ /dev/null @@ -1,519 +0,0 @@ - - - - - TATiles - Documentation - - - - - - - - - - - - - - - - -
- -

TATiles

- - - - - - - -
- -
- -

- TATiles -

- -

Class to work with Tiles on the Detailed analysis page

- - -
- -
-
- - - - -

Constructor

- - -

new TATiles(globals, folder, table, sentiment, selectedCategory, distribution)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFoldee - - - -

Text Analytics folder to build table from

table - - -Table - - - -
sentiment - - -String - - - -

"total", "neg", "neu", "pos"

selectedCategory - - -String - - - -
distribution - - -String - - - -

0 for counts, 1 for percents

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html deleted file mode 100644 index 14962e1..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - TATiles.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATiles.js

- - - - - - - -
-
-
/**
- * @class TATiles
- * @classdesc Class to work with Tiles on the Detailed analysis page
- *
- * @constructs TATiles
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFoldee} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} sentiment - "total", "neg", "neu", "pos"
- * @param {String} selectedCategory
- * @param {String} distribution - 0 for counts, 1 for percents
- */
-class TATiles{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _sentiment;
-    private var _distribution;
-    private var _selectedCategory;
-
-
-    function TATiles(globals, folder, table, sentiment, selectedCategory, distribution){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _sentiment = sentiment ? sentiment : "all";
-        _selectedCategory = selectedCategory != "emptyv" ? selectedCategory : "all";
-        _distribution = distribution ? distribution : "0";
-
-        _render();
-    }
-
-    /**
-     * @memberof TATiles
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TATiles
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var qType;
-        var mask;
-        if( _selectedCategory == "all" ){
-            qType = "os"
-            mask = false;
-        }else{
-            qType = "cs"
-            mask = [_selectedCategory];
-        }
-
-        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
-        var columnexpr = _taTableUtils.GetCategoriesExpression( _sentiment, false, true, _distribution);
-        _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr);
-
-        _table.Distribution.Enabled = true;
-        _table.Distribution.VerticalPercents = false;
-
-        if(_distribution == "1" && _sentiment != "all"){
-            _table.Distribution.HorizontalPercents = true;
-            _table.Distribution.Count = false;
-        }else{
-            _table.Distribution.HorizontalPercents = false;
-            _table.Distribution.Count = true;
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html deleted file mode 100644 index 710392f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html +++ /dev/null @@ -1,862 +0,0 @@ - - - - - TATopChangedTable - Documentation - - - - - - - - - - - - - - - - -
- -

TATopChangedTable

- - - - - - - -
- -
- -

- TATopChangedTable -

- -

Class to work with Most improved and most declined tables on the dashboard page

- - -
- -
-
- - - - -

Constructor

- - -

new TATopChangedTable(globals, folder, table, sentiment, level, period, topN)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -

Text Analytics folder to build table from

table - - -Table - - - -
sentiment - - -String - - - -

"neg", "pos"

level - - -String - - - -

1, 2 or 3

period - - -String - - - -

m, y, d, w, q

topN - - -Number - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addChartColumn()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _addDifferenceColumn()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _addTimeSeriesColumn()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupSorting()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html deleted file mode 100644 index d013b60..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - TATopChangedTable.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATopChangedTable.js

- - - - - - - -
-
-
/**
- * @class TATopChangedTable
- * @classdesc Class to work with Most improved and most declined tables on the dashboard page
- *
- * @constructs TATopChangedTable
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} sentiment - "neg", "pos"
- * @param {String} level - 1, 2 or 3
- * @param {String} period - m, y, d, w, q
- * @param {Number} topN
- */
-class TATopChangedTable{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _level;
-    private var _topN;
-    private var _sentiment;
-    private var _percents;
-    private var _period;
-
-    function TATopChangedTable(globals, folder, table, sentiment, level, period, topN){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _sentiment = sentiment ? true : false;
-        _level = parseInt(level);
-        _topN = topN ? topN : 5;
-        _period = {
-            Unit: period.toLowerCase().substr(0,1),
-            From: -1,
-            To: 0
-        };
-
-        _render();
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var qType = "categorysentiment";
-        var mask = _taMasks.GetCategoriesMask(_level);
-        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
-        _taTableUtils.CreateTableFromExpression(rowexpr);
-
-        _addTimeSeriesColumn();
-        _addDifferenceColumn();
-        _addChartColumn();
-        _setupSorting();
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _addTimeSeriesColumn
-     */
-    private function _addTimeSeriesColumn(){
-        var headerTimeSeries = _taTableUtils.GetTimePeriodHeader(_period.Unit, _period.From, _period.To);
-        var headerStatistics: HeaderStatistics = new HeaderStatistics();
-        headerStatistics.HideHeader = true;
-        headerStatistics.Statistics.Avg = true;
-        headerStatistics.SubHeaders.Add(headerTimeSeries);
-        _table.ColumnHeaders.Add(headerStatistics);
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _addDifferenceColumn
-     */
-    private function _addDifferenceColumn(){
-        var headerFormula: HeaderFormula = new HeaderFormula();
-        headerFormula.Type = FormulaType.Expression;
-        headerFormula.HideData = false;
-        headerFormula.Decimals = 1;
-        headerFormula.Expression = "cellv(col-1,row)-cellv(col-2,row)";
-        headerFormula.Title = new Label(9, " ");
-        headerFormula.HideHeader = true;
-
-        _table.ColumnHeaders.Add(headerFormula);
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _addChartColumn
-     */
-    private function _addChartColumn(){
-        var chartHeader = _taTableUtils.GetChartHeader(
-            ChartComboType.Bar,
-            [{
-                Formula: "cellv(col-1,row)",
-                Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative )
-            }],
-            "Change in avg. score");
-        _table.ColumnHeaders.Add(chartHeader);
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _setupSorting
-     */
-    private function _setupSorting(){
-        _taTableUtils.SetupRowsTableSorting( !_sentiment , 3, _topN );
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html deleted file mode 100644 index c149ff3..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html +++ /dev/null @@ -1,679 +0,0 @@ - - - - - TATopSentimentTable - Documentation - - - - - - - - - - - - - - - - -
- -

TATopSentimentTable

- - - - - - - -
- -
- -

- TATopSentimentTable -

- -

Class to work with Most positive and most negative tables on the dashboard page

- - -
- -
-
- - - - -

Constructor

- - -

new TATopSentimentTable(globals, folder, table, sentiment, level, topN)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -

Text Analytics folder to build table from

table - - -Table - - - -
sentiment - - -String - - - -

"neg", "pos"

level - - -String - - - -

1, 2 or 3

topN - - -Number - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addChartColum()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupSorting()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html deleted file mode 100644 index 5cd97bd..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - TATopSentimentTable.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATopSentimentTable.js

- - - - - - - -
-
-
/**
- * @class TATopSentimentTable
- * @classdesc Class to work with Most positive and most negative tables on the dashboard page
- *
- * @constructs TATopSentimentTable
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} sentiment - "neg", "pos"
- * @param {String} level - 1, 2 or 3
- * @param {Number} topN
- */
-class TATopSentimentTable{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _level;
-    private var _topN;
-    private var _sentiment;
-    private var _percents;
-
-    function TATopSentimentTable(globals, folder, table, sentiment, level, topN){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _sentiment = sentiment ? true : false;
-        _level = parseInt(level);
-        _topN = topN ? topN : 5;
-
-        _render();
-    }
-
-    /**
-     * @memberof TATopSentimentTable
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TATopSentimentTable
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var qType = _sentiment ? "positivementions" : "negativementions";
-        var mask = _taMasks.GetCategoriesMask(_level);
-        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
-        var columnexpr = "[N]";
-        _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr);
-        _addChartColumn();
-        _setupSorting();
-    }
-
-    /**
-     * @memberof TATopSentimentTable
-     * @private
-     * @instance
-     * @function _addChartColum
-     */
-    private function _addChartColumn(){
-        var chartHeader = _taTableUtils.GetChartHeader(
-            ChartComboType.Bar,
-            [{
-                Formula: "cellv(col-1,row)",
-                Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative )
-            }],
-            "Count");
-        _table.ColumnHeaders.Add(chartHeader);
-    }
-
-    /**
-     * @memberof TATopSentimentTable
-     * @private
-     * @instance
-     * @function _setupSorting
-     */
-    private function _setupSorting(){
-        _taTableUtils.SetupRowsTableSorting( false, 1, _topN)
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/global.html b/docs/text-analytics-template-codelibrary/0.0.120/global.html deleted file mode 100644 index 83de0f3..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/global.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - Global - Documentation - - - - - - - - - - - - - - - - -
- -

Global

- - - - - - - -
- -
- -

- -

- - -
- -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
- - - - - - - - - - - - -

Members

- - - -

(private) _TALibrary :TALibrary

- - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
Type:
-
    -
  • - -TALibrary - - -
  • -
- - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Aug 26 2016 16:42:49 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/index.html b/docs/text-analytics-template-codelibrary/0.0.120/index.html deleted file mode 100644 index 24babf6..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Home - Documentation - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-

TextAnalyticsTemplate_CodeLibrary

-
- - - - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Fri Sep 02 2016 16:23:27 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js deleted file mode 100644 index 8d52f7e..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js +++ /dev/null @@ -1,25 +0,0 @@ -/*global document */ -(function() { - var source = document.getElementsByClassName('prettyprint source linenums'); - var i = 0; - var lineNumber = 0; - var lineId; - var lines; - var totalLines; - var anchorHash; - - if (source && source[0]) { - anchorHash = document.location.hash.substring(1); - lines = source[0].getElementsByTagName('li'); - totalLines = lines.length; - - for (; i < totalLines; i++) { - lineNumber++; - lineId = 'line' + lineNumber; - lines[i].id = lineId; - if (lineId === anchorHash) { - lines[i].className += ' selected'; - } - } - } -})(); diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt deleted file mode 100644 index d645695..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js deleted file mode 100644 index 041e1f5..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", -/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js deleted file mode 100644 index eef5ad7..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js +++ /dev/null @@ -1,28 +0,0 @@ -var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; -(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= -[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), -l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, -q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, -q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, -"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), -a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} -for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], -"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], -H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], -J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ -I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), -["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", -/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), -["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", -hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= -!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p ul { - padding: 0 10px; -} - -nav > ul > li > a { - color: #606; -} - -nav ul ul { - margin-bottom: 10px -} - -nav ul ul + ul { - margin-top: -10px; -} - -nav ul ul a { - color: hsl(207, 1%, 60%); - border-left: 1px solid hsl(207, 10%, 86%); -} - -nav ul ul a, -nav ul ul a:active { - padding-left: 20px -} - -nav h2 { - font-size: 12px; - margin: 0; - padding: 0; -} - -nav > h2 > a { - display: block; - margin: 10px 0 -10px; - color: #606 !important; -} - -footer { - color: hsl(0, 0%, 28%); - margin-left: 250px; - display: block; - padding: 15px; - font-style: italic; - font-size: 90%; -} - -.ancestors { - color: #999 -} - -.ancestors a { - color: #999 !important; -} - -.clear { - clear: both -} - -.important { - font-weight: bold; - color: #950B02; -} - -.yes-def { - text-indent: -1000px -} - -.type-signature { - color: #CA79CA -} - -.type-signature:last-child { - color: #eee; -} - -.name, .signature { - font-family: Consolas, Monaco, 'Andale Mono', monospace -} - -.signature { - color: #fc83ff; -} - -.details { - margin-top: 6px; - border-left: 2px solid #DDD; - line-height: 20px; - font-size: 14px; -} - -.details dt { - width: 120px; - float: left; - padding-left: 10px; -} - -.details dd { - margin-left: 70px; - margin-top: 6px; - margin-bottom: 6px; -} - -.details ul { - margin: 0 -} - -.details ul { - list-style-type: none -} - -.details pre.prettyprint { - margin: 0 -} - -.details .object-value { - padding-top: 0 -} - -.description { - margin-bottom: 1em; - margin-top: 1em; -} - -.code-caption { - font-style: italic; - font-size: 107%; - margin: 0; -} - -.prettyprint { - font-size: 14px; - overflow: auto; -} - -.prettyprint.source { - width: inherit; - line-height: 18px; - display: block; - background-color: #0d152a; - color: #aeaeae; -} - -.prettyprint code { - line-height: 18px; - display: block; - background-color: #0d152a; - color: #4D4E53; -} - -.prettyprint > code { - padding: 15px; -} - -.prettyprint .linenums code { - padding: 0 15px -} - -.prettyprint .linenums li:first-of-type code { - padding-top: 15px -} - -.prettyprint code span.line { - display: inline-block -} - -.prettyprint.linenums { - padding-left: 70px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.prettyprint.linenums ol { - padding-left: 0 -} - -.prettyprint.linenums li { - border-left: 3px #34446B solid; -} - -.prettyprint.linenums li.selected, .prettyprint.linenums li.selected * { - background-color: #34446B; -} - -.prettyprint.linenums li * { - -webkit-user-select: text; - -moz-user-select: text; - -ms-user-select: text; - user-select: text; -} - -.params, .props { - border-spacing: 0; - border: 1px solid #ddd; - border-collapse: collapse; - border-radius: 3px; - box-shadow: 0 1px 3px rgba(0,0,0,0.1); - width: 100%; - font-size: 14px; - margin: 1em 0; -} - -.params .type { - white-space: nowrap; -} - -.params code { - white-space: pre; -} - -.params td, .params .name, .props .name, .name code { - color: #4D4E53; - font-family: Consolas, Monaco, 'Andale Mono', monospace; - font-size: 100%; -} - -.params td, .params th, .props td, .props th { - margin: 0px; - text-align: left; - vertical-align: top; - padding: 10px; - display: table-cell; -} - -.params td { - border-top: 1px solid #eee -} - -.params thead tr, .props thead tr { - background-color: #fff; - font-weight: bold; -} - -.params .params thead tr, .props .props thead tr { - background-color: #fff; - font-weight: bold; -} - -.params td.description > p:first-child, .props td.description > p:first-child { - margin-top: 0; - padding-top: 0; -} - -.params td.description > p:last-child, .props td.description > p:last-child { - margin-bottom: 0; - padding-bottom: 0; -} - -span.param-type, .params td .param-type, .param-type dd { - color: #606; - font-family: Consolas, Monaco, 'Andale Mono', monospace -} - -.param-type dt, .param-type dd { - display: inline-block -} - -.param-type { - margin: 14px 0; -} - -.disabled { - color: #454545 -} - -/* navicon button */ -.navicon-button { - display: none; - position: relative; - padding: 2.0625rem 1.5rem; - transition: 0.25s; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - opacity: .8; -} -.navicon-button .navicon:before, .navicon-button .navicon:after { - transition: 0.25s; -} -.navicon-button:hover { - transition: 0.5s; - opacity: 1; -} -.navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after { - transition: 0.25s; -} -.navicon-button:hover .navicon:before { - top: .825rem; -} -.navicon-button:hover .navicon:after { - top: -.825rem; -} - -/* navicon */ -.navicon { - position: relative; - width: 2.5em; - height: .3125rem; - background: #000; - transition: 0.3s; - border-radius: 2.5rem; -} -.navicon:before, .navicon:after { - display: block; - content: ""; - height: .3125rem; - width: 2.5rem; - background: #000; - position: absolute; - z-index: -1; - transition: 0.3s 0.25s; - border-radius: 1rem; -} -.navicon:before { - top: .625rem; -} -.navicon:after { - top: -.625rem; -} - -/* open */ -.nav-trigger:checked + label:not(.steps) .navicon:before, -.nav-trigger:checked + label:not(.steps) .navicon:after { - top: 0 !important; -} - -.nav-trigger:checked + label .navicon:before, -.nav-trigger:checked + label .navicon:after { - transition: 0.5s; -} - -/* Minus */ -.nav-trigger:checked + label { - -webkit-transform: scale(0.75); - transform: scale(0.75); -} - -/* × and + */ -.nav-trigger:checked + label.plus .navicon, -.nav-trigger:checked + label.x .navicon { - background: transparent; -} - -.nav-trigger:checked + label.plus .navicon:before, -.nav-trigger:checked + label.x .navicon:before { - -webkit-transform: rotate(-45deg); - transform: rotate(-45deg); - background: #FFF; -} - -.nav-trigger:checked + label.plus .navicon:after, -.nav-trigger:checked + label.x .navicon:after { - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - background: #FFF; -} - -.nav-trigger:checked + label.plus { - -webkit-transform: scale(0.75) rotate(45deg); - transform: scale(0.75) rotate(45deg); -} - -.nav-trigger:checked ~ nav { - left: 0 !important; -} - -.nav-trigger:checked ~ .overlay { - display: block; -} - -.nav-trigger { - position: fixed; - top: 0; - clip: rect(0, 0, 0, 0); -} - -.overlay { - display: none; - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: 0; - width: 100%; - height: 100%; - background: hsla(0, 0%, 0%, 0.5); - z-index: 1; -} - -@media only screen and (min-width: 320px) and (max-width: 680px) { - body { - overflow-x: hidden; - } - - nav { - background: #FFF; - width: 250px; - height: 100%; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: -250px; - z-index: 3; - padding: 0 10px; - transition: left 0.2s; - } - - .navicon-button { - display: inline-block; - position: fixed; - top: 1.5em; - right: 0; - z-index: 2; - } - - #main { - width: 100%; - min-width: 360px; - } - - #main h1.page-title { - margin: 1em 0; - } - - #main section { - padding: 0; - } - - footer { - margin-left: 0; - } -} - -/** Add a '#' to static members */ -[data-type="member"] a::before { - content: '#'; - display: inline-block; - margin-left: -14px; - margin-right: 5px; -} diff --git a/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css b/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css deleted file mode 100644 index d9521ec..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css +++ /dev/null @@ -1,79 +0,0 @@ -.pln { - color: #ddd; -} - -/* string content */ -.str { - color: #61ce3c; -} - -/* a keyword */ -.kwd { - color: #fbde2d; -} - -/* a comment */ -.com { - color: #aeaeae; -} - -/* a type name */ -.typ { - color: #8da6ce; -} - -/* a literal value */ -.lit { - color: #fbde2d; -} - -/* punctuation */ -.pun { - color: #ddd; -} - -/* lisp open bracket */ -.opn { - color: #000000; -} - -/* lisp close bracket */ -.clo { - color: #000000; -} - -/* a markup tag name */ -.tag { - color: #8da6ce; -} - -/* a markup attribute name */ -.atn { - color: #fbde2d; -} - -/* a markup attribute value */ -.atv { - color: #ddd; -} - -/* a declaration */ -.dec { - color: #EF5050; -} - -/* a variable name */ -.var { - color: #c82829; -} - -/* a function name */ -.fun { - color: #4271ae; -} - -/* Specify class=linenums on a pre to get line numbering */ -ol.linenums { - margin-top: 0; - margin-bottom: 0; -} From 2b710dc00d71a605a45f26acd8b685f5e96a08ee Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 11:53:18 +0300 Subject: [PATCH 005/224] docs --- .../0.0.120/Config.html | 1245 +++++ .../0.0.120/FilterComponents.html | 1025 ++++ .../0.0.120/FilterComponents.js.html | 204 + .../0.0.120/Filters.html | 709 +++ .../0.0.120/Hierarchy.html | 1573 ++++++ .../0.0.120/Hierarchy.js.html | 265 + .../0.0.120/JSON.html | 653 +++ .../0.0.120/JSON.js.html | 128 + .../0.0.120/PageMaster.html | 1162 ++++ .../0.0.120/Page_comments.html | 2618 +++++++++ .../0.0.120/Page_dashboard.html | 4905 +++++++++++++++++ .../0.0.120/Page_detailed_analysis.html | 2821 ++++++++++ .../0.0.120/Page_filters.html | 1781 ++++++ .../0.0.120/ParameterUtilities.html | 817 +++ .../0.0.120/ParameterUtilities.js.html | 156 + .../0.0.120/Parameters.html | 1877 +++++++ .../0.0.120/ReportMaster.html | 1005 ++++ .../0.0.120/Static_Config.js.html | 226 + .../0.0.120/Static_Filters.js.html | 127 + .../0.0.120/Static_PageMaster.js.html | 162 + .../0.0.120/Static_Page_comments.js.html | 411 ++ .../0.0.120/Static_Page_dashboard.js.html | 485 ++ .../Static_Page_detailed_analysis.js.html | 339 ++ .../0.0.120/Static_Page_filters.js.html | 208 + .../0.0.120/Static_Parameters.js.html | 226 + .../0.0.120/Static_ReportMaster.js.html | 122 + .../0.0.120/TADetailedAnalysisTable.html | 999 ++++ .../0.0.120/TADetailedAnalysisTable.js.html | 330 ++ .../0.0.120/TAFilters.html | 828 +++ .../0.0.120/TAFilters.js.html | 155 + .../0.0.120/TAFolder.html | 1012 ++++ .../0.0.120/TAFolder.js.html | 216 + .../0.0.120/TAHelper.html | 1121 ++++ .../0.0.120/TAHelper.js.html | 187 + .../0.0.120/TAHitlistUtils.html | 691 +++ .../0.0.120/TAHitlistUtils.js.html | 135 + .../0.0.120/TALibrary.html | 721 +++ .../0.0.120/TALibrary.js.html | 155 + .../0.0.120/TAMasks.html | 702 +++ .../0.0.120/TAMasks.js.html | 128 + .../0.0.120/TAParameters.html | 1516 +++++ .../0.0.120/TAParameters.js.html | 251 + .../0.0.120/TATableData.html | 459 ++ .../0.0.120/TATableData.js.html | 123 + .../0.0.120/TATableUtils.html | 2633 +++++++++ .../0.0.120/TATableUtils.js.html | 472 ++ .../0.0.120/TAThemeDistributionTable.html | 829 +++ .../0.0.120/TAThemeDistributionTable.js.html | 221 + .../0.0.120/TATiles.html | 519 ++ .../0.0.120/TATiles.js.html | 136 + .../0.0.120/TATopChangedTable.html | 862 +++ .../0.0.120/TATopChangedTable.js.html | 188 + .../0.0.120/TATopSentimentTable.html | 679 +++ .../0.0.120/TATopSentimentTable.js.html | 147 + .../0.0.120/index.html | 68 + .../0.0.120/scripts/linenumber.js | 25 + .../scripts/prettify/Apache-License-2.0.txt | 202 + .../0.0.120/scripts/prettify/lang-css.js | 2 + .../0.0.120/scripts/prettify/prettify.js | 28 + .../0.0.120/styles/jsdoc.css | 645 +++ .../0.0.120/styles/prettify.css | 79 + 61 files changed, 42714 insertions(+) create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Config.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Filters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/JSON.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Parameters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableData.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATiles.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/index.html create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/styles/jsdoc.css create mode 100644 docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Config.html b/docs/text-analytics-template-codelibrary/0.0.120/Config.html new file mode 100644 index 0000000..bcd7ae1 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Config.html @@ -0,0 +1,1245 @@ + + + + + Config - Documentation + + + + + + + + + + + + + + + + +
+ +

Config

+ + + + + + + +
+ +
+ +

+ Config +

+ +

Contains configuration for the report.

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Config()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
DS_Main + + +String + + + +

value for datasource Id

CustomerLogo + + +String + + + +

link to the logo

CustomDateFormat + + +String + + + +

string that represents Date format which will be used in the report

TimeVariableId + + +String + + + +

date variable Id to use for trending tables and time variables. "interview_start" by default

VariablesToViewBy + + +Array.<String> + + + +

variables to break the detailed analysis table by. If not "null" will override values from survey tags

HitlistColumns + + +Array.<String> + + + +

variables to add to the end of the hitlist. If not "null" will override values from survey tags

FiltersQuestion + + +Array.<String> + + + +

variables for Filters page. If not "null" will override values from survey tags

Colors + + +Object + + + +

color palettes using in the report

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
DefaultColor + + +String + + + +

color for header

NegNeuPosPalette + + +Object + + + +

palette for negative - neutral - positive breaking

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
Negative + + +String + + + +

Negative color

Neutral + + +String + + + +

Neutral color

Positive + + +String + + + +

Positive color

+ +
+ +
SentimentRange + + +Object + + + +

negative - neutral - positive breaking by sentiment

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
Positive + + +Array.<Number> + + + +

array of positive sentiment's values

Neutral + + +Array.<Number> + + + +

array of neutral sentiment's values

Negative + + +Array.<Number> + + + +

array of negative sentiment's values

+ +
TAQuestions + + +Array.<Object> + + + +

array of Text Analytics configurations for each verbatim question

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
DatasourceId + + +String + + + +

override DS_Main from config

DatabaseSchemaId + + +Number + + + +

id of the schema containing Text Analytics model

DatabaseTableName + + +String + + + +

name of the table containing Text Analytics model

IdColumnName + + +String + + + +

name of the column containing category id. "id" by default

TextColumnName + + +String + + + +

name of the column containing category name. "__l9" by default

RelationshipColumnName + + +String + + + +

name of the column containing parent id for subcategories and attributes. "parent" by default

TextSeparator + + +String + + + +

symbol which separate Parent and children names in the flat category name

TAFolderId + + +String + + + +

unique Id for each Text Analytics set

TAQuestionName + + +String + + + +

verbatim variable id

TAModelNo + + +String + + + +

model number used for Text Analytics

TimeVariableId + + +String + + + +

date variable Id to use for trending tables and time variables. Overrides Config value

VariablesToViewBy + + +Array.<String> + + + +

variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config

HitlistColumns + + +Array.<String> + + + +

variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config

+ +
+ + + + + + +
+

Config class that doesn't have a constructor.

+
+ + + + + + + + + +
Example
+ +
static var DS_Main = "ds0";
    static var CustomerLogo = null;
    static var CustomDateFormat = 'dd-MMM-yyyy';
    static var TimeVariableId = 'interview_start';
    static var  VariablesToViewBy = ["type", "source"];
    static var  HitlistColumns = ["membership_level"];
    static var FiltersQuestions = null;

    static var Colors = {
           DefaultColor: "#ffff00",
           NegNeuPosPalette: {
               Negative: "#fd9900",
               Neutral: "#cdd1d9",
               Positive: "#7cc700"
           }
       };

    static var SentimentRange = {
           Positive: [8,9,10,11],
           Neutral: [5,6,7],
           Negative: [1,2,3,4]
       }

    static var TAQuestions = [
    {
        DatasourceId: "ds0",

        DatabaseSchemaId: 4909,
        DatabaseTableName: "Retail 785",
        RelationshipColumnName: "parent",
        TextSeparator: "|",

        TAFolderId: "why785",
        TAQuestionName: "why",
        TAModelNo: "785",

        TimeVariableId: 'interview_start'
    }
    ];
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) GetTALibrary()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function that returns TALibrary from Config

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(static) SetTaLibrary(globals)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function that processes config and cashes all Text Analitycs data

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html new file mode 100644 index 0000000..63daf79 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html @@ -0,0 +1,1025 @@ + + + + + FilterComponents - Documentation + + + + + + + + + + + + + + + + +
+ +

FilterComponents

+ + + + + + + +
+ +
+ +

+ FilterComponents +

+ +

Class to process filters on Filter page

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new FilterComponents(globals, questionsArray, dataSource)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

questionsArray + + +Array.<String> + + + +
dataSource + + +String + + + +

ds id

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

ClearFilters()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to set all filter parameters to null

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetAllAnsweredFilterCodes() → {Array.<Object>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get selected filters information

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + +
+
    +
  • array of Objects with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
  • +
+
+ + + +
+
+ Type +
+
+ +Array.<Object> + + +
+
+ + + + + + + + + +

GetFilterInformation(filterNumber) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get filter information

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + +
+
    +
  • Object with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
  • +
+
+ + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

GetFilterQuestion(filterNumber) → {Question}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Question object for the particular filter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Question + + +
+
+ + + + + + + + + +

GetFilterTitle(filterNumber) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Title for the particular filter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetGlobalsFilterExpression() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get filter expression for all selected filters

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html new file mode 100644 index 0000000..5da05ac --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html @@ -0,0 +1,204 @@ + + + + + FilterComponents.js - Documentation + + + + + + + + + + + + + + + + +
+ +

FilterComponents.js

+ + + + + + + +
+
+
/**
+ * @class FilterComponents
+ * @classdesc Class to process filters on Filter page
+ *
+ * @constructs FilterComponents
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {String[]} questionsArray
+ * @param {String} dataSource - ds id
+ */
+
+class FilterComponents{
+    private var _globals;
+    private var _filterQuestions;
+    private var _parameterUtilities;
+
+
+    function FilterComponents(globals,questionsArray, dataSource){
+        _globals = globals;
+        _filterQuestions = [];
+        var project  = _globals.report.DataSource.GetProject(dataSource);
+        for( var i = 0; i < questionsArray.length; i++ ){
+            _filterQuestions.push(project.GetQuestion( questionsArray[i]))
+        }
+
+        _parameterUtilities = new ParameterUtilities(_globals);
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetFilterQuestion
+     * @description function to get Question object for the particular filter
+     * @param {Number} filterNumber
+     * @returns {Question}
+     */
+    function GetFilterQuestion(filterNumber){
+        var filterQuestion = false;
+        if(_filterQuestions.length > filterNumber && ( _filterQuestions[(filterNumber)].QuestionType == QuestionType.Multi || _filterQuestions[(filterNumber)].QuestionType == QuestionType.Single )){
+            var filterQuestion = _filterQuestions[(filterNumber)];
+        }
+
+        return filterQuestion
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetFilterTitle
+     * @description function to get Title for the particular filter
+     * @param {Number} filterNumber
+     * @returns {String}
+     */
+    function GetFilterTitle(filterNumber){
+        var filterQuestion = GetFilterQuestion(filterNumber);
+        var label = "";
+        if(filterQuestion)
+            var label = filterQuestion.Title ? filterQuestion.Title : filterQuestion.QuestionId;
+
+        return label
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetGlobalsFilterExpression
+     * @description function to get filter expression for all selected filters
+     * @returns {String}
+     */
+    function GetGlobalsFilterExpression(){
+        var fExpr;
+        var filterExpressionSegments = [];
+        var codes = GetAllAnsweredFilterCodes()
+        for (var i = 0; i < codes.length; i++){
+            if( codes[i].questionType == QuestionType.Multi ) {
+                filterExpressionSegments.push ('ANY(' + codes[i].questionId + ',"' + codes[i].values.join('","') + '")');
+            }
+            else
+            {
+                filterExpressionSegments.push ('IN(' + codes[i].questionId + ',"' + codes[i].values.join('","') + '")');
+            }
+        }
+
+        fExpr = filterExpressionSegments.join(" AND ")
+        return fExpr
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetAllAnsweredFilterCodes
+     * @description function to get selected filters information
+     * @returns {Object[]} - array of Objects with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
+     */
+    function GetAllAnsweredFilterCodes(){
+        var answeredCodes = [];
+        for (var i = 0; i < _filterQuestions.length; i++){
+            var codes = GetFilterInformation(i);
+            if(codes && codes.values.length > 0){
+                answeredCodes.push(codes);
+            }
+        }
+        return answeredCodes
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function GetFilterInformation
+     * @description function to get filter information
+     * @param {Number} filterNumber
+     * @returns {Object} - Object with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
+     */
+    function GetFilterInformation(filterNumber){
+        var result = false;
+        var parameterName = 'FILTER' + (filterNumber +1);
+        var codes = _parameterUtilities.GetParameterCodes(parameterName);
+        if ( codes.length > 0 ){
+            var fTitle = GetFilterTitle(filterNumber);
+            var fId = _filterQuestions[filterNumber].QuestionId;
+            var fType = _filterQuestions[filterNumber].QuestionType
+            result = {
+                questionTitle: fTitle,
+                questionId: fId,
+                questionType: fType,
+                values: [],
+                texts: []
+            };
+            for ( var i = 0; i < codes.length; i++){
+                result.values.push(codes[i]);
+                result.texts.push(_filterQuestions[filterNumber].GetAnswer(codes[i]).Text)
+            }
+        }
+        return result
+    }
+
+    /**
+     * @memberof FilterComponents
+     * @instance
+     * @function ClearFilters
+     * @description function to set all filter parameters to null
+     */
+    function ClearFilters(){
+        for (var i = 0; i < _filterQuestions.length; i++){
+            _globals.state.Parameters["FILTER"+(i+1)] = null;
+        }
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Filters.html b/docs/text-analytics-template-codelibrary/0.0.120/Filters.html new file mode 100644 index 0000000..e842ab6 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Filters.html @@ -0,0 +1,709 @@ + + + + + Filters - Documentation + + + + + + + + + + + + + + + + +
+ +

Filters

+ + + + + + + +
+ +
+ +

+ Filters +

+ +

Static class for Reportal Filter Components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Filters()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) DateFilter(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to filtrate selected dates

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) FilterPageFilter(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to filtrate selected values on the filterpage

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TAHitlistSentimentFilter(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to filtrate only selected sentiment in the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TASelectedCategoryFilter(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to filtrate only selected category in the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html new file mode 100644 index 0000000..97509bb --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html @@ -0,0 +1,1573 @@ + + + + + Hierarchy - Documentation + + + + + + + + + + + + + + + + +
+ +

Hierarchy

+ + + + + + + +
+ +
+ +

+ Hierarchy +

+ +

Class to create Hierarchical structure from database table

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Hierarchy(globals, settings)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

settings + + +Object + + + +

object containing idColumnName, textColumnName, relationshipColumnName, textSeparator

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _createFlatEntry(row) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

creating object from db table row

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
row + + +Object + + + +

db table row

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

(private) _generateFlatList(rows)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

creating list of rows for variable _flat

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rows + + +Array.<Object> + + + +

list of rows from db table

+ + + + + + + + + + + + + + + + + + + + + +

(private) _getDataTable() → {DataTable}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get DataTable from DatabaseDesigner

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +DataTable + + +
+
+ + + + + + + + + +

(private) _mergeOptions(obj1, obj2) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to merge two sets of settings

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
obj1 + + +Object + + + +
obj2 + + +Object + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

(private) _setupHierarchy(level, parentObj)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

recursive function to parse db table to hierarchical view

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +Number + + + +
parentObj + + +Number + + + +
+ + + + + + + + + + + + + + + + + + + + + +

GetFlatArray() → {Number}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Array of rows from db table

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Number + + +
+
+ + + + + + + + + +

GetHierarchyArray() → {Array.<Object>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Array of hierarchical objects

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Object> + + +
+
+ + + + + + + + + +

GetLevelArray(level) → {Array.<Object>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Array of hierarchical objects of particular level

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Object> + + +
+
+ + + + + + + + + +

GetLevelsCount() → {Number}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Count of levels in the hierarchy

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Number + + +
+
+ + + + + + + + + +

GetObjectById(id) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get particular row from db table

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html new file mode 100644 index 0000000..1792839 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html @@ -0,0 +1,265 @@ + + + + + Hierarchy.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Hierarchy.js

+ + + + + + + +
+
+
/**
+ * @class Hierarchy
+ * @classdesc Class to create Hierarchical structure from database table
+ *
+ * @constructs Hierarchy
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {Object} settings - object containing idColumnName, textColumnName, relationshipColumnName, textSeparator
+ *
+ */
+class Hierarchy{
+    private var _globals;
+    private var _settings;
+
+    private var _hierarchy = [];
+    private var _levels = [];
+    private var _flat = [];
+    private var _flatObject = {};
+
+    private var _defaultSettings = {
+        idColumnName: "id",
+        textColumnName: "__l9",
+        relationshipColumnName: "parent",
+        textSeparator: "|"
+    };
+
+    function Hierarchy(globals, settings) {
+        _globals = globals;
+        _settings = _mergeOptions(_defaultSettings, settings);
+        globals.log.LogDebug(_settings.schemaId);
+        var dataTable = _getDataTable();
+        _generateFlatList(dataTable.Rows)
+        _setupHierarchy(0, null);
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _mergeOptions
+     * @description function to merge two sets of settings
+     * @param {Object} obj1
+     * @param {Object} obj2
+     * @returns {Object}
+     */
+    private function _mergeOptions(obj1, obj2) {
+        var obj3 = {};
+        for (var attrname in obj1) {
+            obj3[attrname] = obj1[attrname];
+        }
+        for (var attrname in obj2) {
+            obj3[attrname] = obj2[attrname];
+        }
+        return obj3;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _getDataTable
+     * @description function to get DataTable from DatabaseDesigner
+     * @returns {DataTable}
+     */
+    private function _getDataTable() {
+        var schema = _globals.confirmit.GetDBDesignerSchema(_settings.schemaId);
+        var table = schema.GetDBDesignerTable(_settings.tableName);
+        var dataTable = table.GetDataTable();
+        return dataTable;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _generateFlatList
+     * @description creating list of rows for variable _flat
+     * @param {Object[]} rows - list of rows from db table
+     */
+    private function _generateFlatList(rows) {
+        for(var i = 0; i < rows.Count; ++i) {
+            var flatEntry = _createFlatEntry(rows[i]);
+            _flat.push(flatEntry);
+        }
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _createFlatEntry
+     * @description creating object from db table row
+     * @param {Object} row - db table row
+     * @returns {Object}
+     */
+    private function _createFlatEntry(row) {
+        var name = TAHelper.GetSelfName(row[_settings.textColumnName], _settings.textSeparator, _globals.log);
+        var flatEntry = {
+            id: row[_settings.idColumnName].toLowerCase(),
+            text: row[_settings.textColumnName],
+            name: name,
+            parent: row[_settings.relationshipColumnName] ? row[_settings.relationshipColumnName].toLowerCase() : null
+        };
+        return flatEntry;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetHierarchyArray
+     * @description function to get Array of hierarchical objects
+     * @returns {Object[]}
+     */
+    function GetHierarchyArray() {
+        return _hierarchy;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetLevelArray
+     * @description function to get Array of hierarchical objects of particular level
+     * @param {Number} level
+     * @returns {Object[]}
+     */
+    function GetLevelArray(level) {
+        if(_levels.length > level) {
+            return _levels[level];
+        }else{
+            throw new Error(201, "Hierarchy level index is out of range");
+        }
+
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetLevelsCount
+     * @description function to get Count of levels in the hierarchy
+     * @returns {Number}
+     */
+    function GetLevelsCount() {
+        return _levels.length
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetFlatArray
+     * @description function to get Array of rows from db table
+     * @returns {Number}
+     */
+    function GetFlatArray() {
+        return _flat;
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @instance
+     * @function GetObjectById
+     * @description function to get particular row from db table
+     * @param {String} id
+     * @returns {Object}
+     */
+    function GetObjectById(id) {
+        if(_flatObject[id]) {
+            return _flatObject[id];
+        }else{
+            throw new Error(201, "Hierarchy object id doesn't exist");
+        }
+    }
+
+    /**
+     * @memberof Hierarchy
+     * @private
+     * @instance
+     * @function _setupHierarchy
+     * @description recursive function to parse db table to hierarchical view
+     * @param {Number} level
+     * @param {Number} parentObj
+     */
+    private function _setupHierarchy( level, parentObj ) {
+        var parentObjId = parentObj ? parentObj.id  : "";
+
+        for(var i = 0; i < _flat.length; ++i) {
+            if( ( !parentObj && !_flat[i].parent ) || parentObjId.CompareTo( _flat[i].parent ? _flat[i].parent : "" ) == 0) {
+                var newObj = {
+                    id: _flat[i].id,
+                    text: _flat[i].text,
+                    name: _flat[i].name,
+                    parent: parentObjId,
+                    subcells: []
+                };
+                if( _levels.length <= level ) {
+                    _levels.push( [] );
+                }
+                _setupHierarchy( (level+1), newObj );
+                if( !parentObj ) {
+                    _hierarchy.push( newObj );
+                }
+                else {
+                    parentObj.subcells.push( newObj );
+                }
+                _levels[ level ].push( newObj );
+                _flatObject[ newObj.id ] = newObj;
+            }
+        }
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/JSON.html b/docs/text-analytics-template-codelibrary/0.0.120/JSON.html new file mode 100644 index 0000000..606bebb --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/JSON.html @@ -0,0 +1,653 @@ + + + + + JSON - Documentation + + + + + + + + + + + + + + + + +
+ +

JSON

+ + + + + + + +
+ +
+ +

+ JSON +

+ +

Class with functions Helping working with reportal objects like JSON objects

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new JSON()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private, static) _escapeEntities(str) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to replace some chars

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
str + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

(static) print(config, configName) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to create js variable from reportal object

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
config + + +Object + + + +

reportal object

configName + + +String + + + +

name for the js variable ('config' by degault)

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

(static) stringify(obj) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

implement JSON.stringify serialization

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
obj + + +Object + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html b/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html new file mode 100644 index 0000000..3ab7bd3 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html @@ -0,0 +1,128 @@ + + + + + JSON.js - Documentation + + + + + + + + + + + + + + + + +
+ +

JSON.js

+ + + + + + + +
+
+
/**
+* @class JSON
+* @classdesc Class with functions Helping working with reportal objects like JSON objects
+*/
+class JSON
+{
+    /**
+     * @memberof JSON
+     * @function stringify
+     * @description implement JSON.stringify serialization
+     * @param {Object} obj
+     * @returns {String}
+     */
+    static function stringify(obj) {
+
+        var t = typeof (obj);
+        if (t != "object" || obj === null) {
+            // simple data type
+            if (t == "string") obj = '"'+ _escapeEntities(obj) +'"';
+            else if(t=="number") obj = '"'+obj+'"';
+            return String(obj);
+        }
+        else {
+            // recurse array or object
+            var n, v, json = [], arr = (obj && obj.constructor == Array);
+            for (n in obj) {
+                v = obj[n]; t = typeof(v);
+                if (t == "string"){
+                    v = '"'+ _escapeEntities(v) +'"';
+                }
+                else if (t == "object" && v !== null) v = stringify(v);
+                json.push((arr ? "" : '"' + n + '":') + String(v));
+            }
+            return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
+        }
+    };
+
+    /**
+     * @memberof JSON
+     * @private
+     * @function _escapeEntities
+     * @description function to replace some chars
+     * @param {String} str
+     * @returns {String}
+     */
+    private static function _escapeEntities(str) {
+        var entitiesMap = {
+            '<': '&lt;',
+            '>': '&gt;',
+            '&': '&amp;',
+            '\"': '\\&quot;',
+            '\'':'&amp;apos;'
+        };
+        return str.replace(/[&<>\"\']/g, function(key) {
+            return entitiesMap[key];
+        });
+    }
+
+    /**
+     * @memberof JSON
+     * @function print
+     * @description function to create js variable from reportal object
+     * @param {Object} config - reportal object
+     * @param {String} configName - name for the js variable ('config' by degault)
+     * @returns {String}
+     */
+    static function print(config, configName){ // JSON.print prints JSON `config` to page as JavaScript variable with a specified `configName`
+        var varName = configName || 'config';
+        return '<script type="text/javascript">var '+ varName + '=' + stringify(config) +'</script>';
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html b/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html new file mode 100644 index 0000000..38c92d3 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html @@ -0,0 +1,1162 @@ + + + + + PageMaster - Documentation + + + + + + + + + + + + + + + + +
+ +

PageMaster

+ + + + + + + +
+ +
+ +

+ PageMaster +

+ +

Static class for Reportal Page master components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new PageMaster()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) ClearFilters_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the Clear filters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) ClearFilters_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the clear filters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) Filters_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Ffilters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Filters_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the filters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) FiltersButtonHtml_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Filters button html

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) FiltersButtonHtml_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the filters button

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) FilterSummary_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the filterSummary

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html new file mode 100644 index 0000000..c79c7b1 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html @@ -0,0 +1,2618 @@ + + + + + Page_comments - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_comments

+ + + + + + + +
+ +
+ +

+ Page_comments +

+ +

Static class for Reportal Page comments components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Page_comments()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) htlComments_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) htlComments_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) lstAttribute_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Attribute selector

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) lstCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Category selector

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) lstSubCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Sub Category selector

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtAttribute_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the the attributes list label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtAttribute_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the attributes selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtAttribute_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the sentiment selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the Category selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtCategory_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the Category selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtCommentsScript_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the text

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtCommentsScript_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the script which processes hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtSentiment_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the the sentiment list label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtSubCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the the sub category list label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtSubCategory_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the sub Category selector label

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html new file mode 100644 index 0000000..ec5dc53 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html @@ -0,0 +1,4905 @@ + + + + + Page_dashboard - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_dashboard

+ + + + + + + +
+ +
+ +

+ Page_dashboard +

+ +

Static class for Reportal Page dashboard components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Page_dashboard()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private, static) _renderTblMostChanged(context, sentiment)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

sentiment + + +String + + + +

"neg" or "pos"

+ + + + + + + + + + + + + + + + + + + + + +

(private, static) _renderTblMostSentiment(context, sentiment)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

sentiment + + +String + + + +

"neg" or "pos"

+ + + + + + + + + + + + + + + + + + + + + +

(static) Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostDeclined_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblMostDeclined_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostImproved_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblMostImproved_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostNegative_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblMostNegative_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostPositive_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblMostPositive_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblThemeDistribution_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblThemeDistribution_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtComparePeriods_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtComparePeriods_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtLevel_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtLevel_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostChangedInfo_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostChangedInfo_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostDeclined_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostDeclined_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostImproved_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostImproved_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostNegative_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostNegative_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtMostPositive_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtMostPositive_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtThemeDistribution_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtThemeDistribution_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtThemeDistributionScript_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtThemeDistributionScript_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtViewSentiment_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtViewSentiment_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html new file mode 100644 index 0000000..1dab98f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html @@ -0,0 +1,2821 @@ + + + + + Page_detailed_analysis - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_detailed_analysis

+ + + + + + + +
+ +
+ +

+ Page_detailed_analysis +

+ +

Static class for Reportal Page detailed_analysis components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Page_detailed_analysis()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private, static) _buildTATiles(context, type)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

type + + +String + + + +

"all", "neg", "neu", "pos"

+ + + + + + + + + + + + + + + + + + + + + +

(static) Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblDetailedAnalysis_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblDetailedAnalysis_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblMostPositive_RendertblNeutralCommentsTile_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblNegativeCommentsTile_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblNegativeCommentsTile_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblNeutralCommentsTile_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblPositiveCommentsTile_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblPositiveCommentsTile_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) tblTotalCommentsTile_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) tblTotalCommentsTile_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtCategory_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtCategory_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtDetailedAnalysisScript_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtDetailedAnalysisScript_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtViewBy_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtViewBy_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html new file mode 100644 index 0000000..243b237 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html @@ -0,0 +1,1781 @@ + + + + + Page_filters - Documentation + + + + + + + + + + + + + + + + +
+ +

Page_filters

+ + + + + + + +
+ +
+ +

+ Page_filters +

+ +

Static class for Reportal Page filters components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Page_filters()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) btnClearFilters_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnClearFilters_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) btnSave_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnSave_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) btnSaveReturn_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnSaveReturn_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to hide the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) lstFilterList_Hide(context, filterNumber) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to render the page

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) txtFilterTitle_Hide(context, filterNumber) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) txtFilterTitle_Render(context, filterNumber)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html new file mode 100644 index 0000000..8240eeb --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html @@ -0,0 +1,817 @@ + + + + + ParameterUtilities - Documentation + + + + + + + + + + + + + + + + +
+ +

ParameterUtilities

+ + + + + + + +
+ +
+ +

+ ParameterUtilities +

+ +

Class to work with different parameters

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new ParameterUtilities(globals)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetCheckedValues(valuesArray)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to set default value to parameters if they haven't been selected

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
valuesArray + + +Array.<Object> + + + +

array of objects like {Id: "ParameterId", Value: "defaultCode"}

+ + + + + + + + + + + + + + + + + + + + + +

GetCheckedValues(parameterName) → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get checked codes for the multi string response parameter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameterName + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetCheckedValues(parameterName) → {Array.<ParameterValueResponse>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get checked values for the multi string response parameter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameterName + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<ParameterValueResponse> + + +
+
+ + + + + + + + + +

LoadParameterValues(parameter, parameterValues)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to load possible values to string response parameter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
parameterValues + + +Array.<Object> + + + +

array of values like {Code: "AnswerCode", Label: "AnswerText"}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html new file mode 100644 index 0000000..19a92a6 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html @@ -0,0 +1,156 @@ + + + + + ParameterUtilities.js - Documentation + + + + + + + + + + + + + + + + +
+ +

ParameterUtilities.js

+ + + + + + + +
+
+
/**
+ * @class ParameterUtilities
+ * @classdesc Class to work with different parameters
+ *
+ * @constructs ParameterUtilities
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ */
+class ParameterUtilities {
+    private var _globals;
+
+    function ParameterUtilities(globals) {
+        _globals=globals
+    }
+
+    /**
+     * @memberof ParameterUtilities
+     * @instance
+     * @function LoadParameterValues
+     * @description function to load possible values to string response parameter
+     * @param {Parameter} parameter
+     * @param {Object[]} parameterValues - array of values like {Code: "AnswerCode", Label: "AnswerText"}
+     */
+    function LoadParameterValues(parameter, parameterValues) {
+        for (var i=0; i<parameterValues.length; ++i) {
+            var parameterValueResponse : ParameterValueResponse = new ParameterValueResponse();
+            parameterValueResponse.StringKeyValue = parameterValues[i].Code;
+
+            var labels : LanguageTextCollection = new LanguageTextCollection();
+            labels.Add(new LanguageText(_globals.report.CurrentLanguage, parameterValues[i].Label));
+
+            parameterValueResponse.LocalizedLabel = new Label(labels);
+            parameterValueResponse.StringValue = parameterValues[i].Label;
+
+            parameter.Items.Add(parameterValueResponse);
+        }
+    }
+
+    /**
+     * @memberof ParameterUtilities
+     * @instance
+     * @function GetCheckedValues
+     * @description function to get checked values for the multi string response parameter
+     * @param {String} parameterName
+     * @returns {ParameterValueResponse[]}
+     */
+    function GetCheckedValues(parameterName){
+        var values = []
+        if(!_globals.state.Parameters.IsNull(parameterName))
+        {
+            var selected:ParameterValueMultiSelect = _globals.state.Parameters[parameterName],
+            response: ParameterValueResponse;
+            for(var i=0;i<selected.Count;i++) // add selected columns to the new column set
+            {
+                response = selected[i];
+                values.push(response);
+            }
+        }
+        return values
+    }
+
+    /**
+     * @memberof ParameterUtilities
+     * @instance
+     * @function GetCheckedValues
+     * @description function to set default value to parameters if they haven't been selected
+     * @param {Object[]} valuesArray - array of objects like {Id: "ParameterId", Value: "defaultCode"}
+     */
+    function SetDefaultParameterValues(valuesArray){
+        for( var i = 0; i < valuesArray.length; i++ ){
+            try {
+                if (!_globals.state.Parameters.GetString(valuesArray[i].Id))
+                    _globals.state.Parameters[valuesArray[i].Id] = new ParameterValueResponse(valuesArray[i].Value);
+            }catch(e){
+                _globals.log.LogDebug(e);
+            }
+        }
+    }
+
+    /**
+     * @memberof ParameterUtilities
+     * @instance
+     * @function GetCheckedValues
+     * @description function to get checked codes for the multi string response parameter
+     * @param {String} parameterName
+     * @returns {String[]}
+     */
+    function GetParameterCodes(parameterName) {
+        var parameterValues : ParameterValueMultiSelect = _globals.state.Parameters[parameterName] ? _globals.state.Parameters[parameterName]: ParameterValueMultiSelect(null);
+        var codes = [];
+        if(parameterValues != null) {
+            for (var enumerator : Enumerator = new Enumerator(parameterValues) ; !enumerator.atEnd(); enumerator.moveNext()) {
+                var parameterValue : ParameterValueResponse = enumerator.item();
+                codes.push(parameterValue.StringKeyValue);
+            }
+
+        }
+        return codes;
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html b/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html new file mode 100644 index 0000000..7946411 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html @@ -0,0 +1,1877 @@ + + + + + Parameters - Documentation + + + + + + + + + + + + + + + + +
+ +

Parameters

+ + + + + + + +
+ +
+ +

+ Parameters +

+ +

Static class for Reportal parameter components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new Parameters()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) FILTER_Domain(context, filterNumber)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber + + +Number + + + +
+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_ATTRIBUTES_SINGLE_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_ATTRIBUTES_SINGLE_Mask(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_COMPARE_PERIODS_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_DISTRIBUTION_TOGGLE_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_FOLDERS_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_HIDE_EMPTY_ROWS_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_LEVEL_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_SUB_CATEGORIES_SINGLE_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_SUB_CATEGORIES_SINGLE_Mask(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_TOP_CATEGORIES_SINGLE_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_VIEW_BY_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) TA_VIEW_SENTIMENT_Domain(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html b/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html new file mode 100644 index 0000000..5c8ac6b --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html @@ -0,0 +1,1005 @@ + + + + + ReportMaster - Documentation + + + + + + + + + + + + + + + + +
+ +

ReportMaster

+ + + + + + + +
+ +
+ +

+ ReportMaster +

+ +

Static class for Report Master components

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new ReportMaster()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) btnApplyDateFilter_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnApplyDateFilter_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) btnClearDateFilter_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) btnClearDateFilter_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + +

(static) CustomerLogo_Hide(context) → {Boolean}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Boolean + + +
+
+ + + + + + + + + +

(static) CustomerLogo_Render(context)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html new file mode 100644 index 0000000..95e78ac --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html @@ -0,0 +1,226 @@ + + + + + Static/Config.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Config.js

+ + + + + + + +
+
+
/**
+ * Config class that doesn't have a constructor.
+ * @class Config
+ * @classdesc Contains configuration for the report.
+ *
+ * @prop {String} DS_Main - value for datasource Id
+ * @prop {String} CustomerLogo - link to the logo
+ *
+ * @prop {String} CustomDateFormat - string that represents Date format which will be used in the report
+ * @prop {String} TimeVariableId - date variable Id to use for trending tables and time variables. "interview_start" by default
+ *
+ * @prop {String[]} VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags
+ * @prop {String[]} HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags
+ * @prop {String[]} FiltersQuestion - variables for Filters page. If not "null" will override values from survey tags
+ *
+ * @prop {Object} Colors - color palettes using in the report
+ * @prop {String} Colors.DefaultColor - color for header
+ * @prop {Object} Colors.NegNeuPosPalette - palette for negative - neutral - positive breaking
+ * @prop {String} Colors.NegNeuPosPalette.Negative - Negative color
+ * @prop {String} Colors.NegNeuPosPalette.Neutral - Neutral color
+ * @prop {String} Colors.NegNeuPosPalette.Positive - Positive color
+ *
+ * @prop {Object} SentimentRange - negative - neutral - positive breaking by sentiment
+ * @prop {Number[]} SentimentRange.Positive - array of positive sentiment's values
+ * @prop {Number[]} SentimentRange.Neutral - array of neutral sentiment's values
+ * @prop {Number[]} SentimentRange.Negative - array of negative sentiment's values
+ *
+ * @prop {Object[]} TAQuestions - array of Text Analytics configurations for each verbatim question
+ * @prop {String} TAQuestions.DatasourceId - override DS_Main from config
+ * @prop {Number} TAQuestions.DatabaseSchemaId - id of the schema containing Text Analytics model
+ * @prop {String} TAQuestions.DatabaseTableName - name of the table containing Text Analytics model
+ * @prop {String} TAQuestions.IdColumnName - name of the column containing category id. "id" by default
+ * @prop {String} TAQuestions.TextColumnName - name of the column containing category name. "__l9" by default
+ * @prop {String} TAQuestions.RelationshipColumnName - name of the column containing parent id for subcategories and attributes. "parent" by default
+ * @prop {String} TAQuestions.TextSeparator - symbol which separate Parent and children names in the flat category name
+ * @prop {String} TAQuestions.TAFolderId - unique Id for each Text Analytics set
+ * @prop {String} TAQuestions.TAQuestionName - verbatim variable id
+ * @prop {String}  TAQuestions.TAModelNo - model number used for Text Analytics
+ * @prop {String} TAQuestions.TimeVariableId - date variable Id to use for trending tables and time variables. Overrides Config value
+ * @prop {String[]} TAQuestions.VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config
+ * @prop {String[]} TAQuestions.HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config
+ *
+ * @example
+ *     static var DS_Main = "ds0";
+ *     static var CustomerLogo = null;
+ *     static var CustomDateFormat = 'dd-MMM-yyyy';
+ *     static var TimeVariableId = 'interview_start';
+ *     static var  VariablesToViewBy = ["type", "source"];
+ *     static var  HitlistColumns = ["membership_level"];
+ *     static var FiltersQuestions = null;
+ *
+ *     static var Colors = {
+ *            DefaultColor: "#ffff00",
+ *            NegNeuPosPalette: {
+ *                Negative: "#fd9900",
+ *                Neutral: "#cdd1d9",
+ *                Positive: "#7cc700"
+ *            }
+ *        };
+ *
+ *     static var SentimentRange = {
+ *            Positive: [8,9,10,11],
+ *            Neutral: [5,6,7],
+ *            Negative: [1,2,3,4]
+ *        }
+ *
+ *     static var TAQuestions = [
+ *     {
+ *         DatasourceId: "ds0",
+ *
+ *         DatabaseSchemaId: 4909,
+ *         DatabaseTableName: "Retail 785",
+ *         RelationshipColumnName: "parent",
+ *         TextSeparator: "|",
+ *
+ *         TAFolderId: "why785",
+ *         TAQuestionName: "why",
+ *         TAModelNo: "785",
+ *
+ *         TimeVariableId: 'interview_start'
+ *     }
+ *     ];
+ */
+public class Config {
+
+    static var DS_Main = "ds0";
+    static var CustomerLogo = null;
+    static var CustomDateFormat = 'dd-MMM-yyyy';
+    static var TimeVariableId = 'interview_start';
+    static var  VariablesToViewBy = ["type", "source"];
+    static var  HitlistColumns = ["membership_level"];
+    static var FiltersQuestions = null;
+
+    static var Colors = {
+        DefaultColor: "#ffff00",
+        NegNeuPosPalette: {
+            Negative: "#fd9900",
+            Neutral: "#cdd1d9",
+            Positive: "#7cc700"
+        }
+    };
+
+    static var SentimentRange = {
+        Positive: [8,9,10,11],
+        Neutral: [5,6,7],
+        Negative: [1,2,3,4]
+    }
+
+    static var TAQuestions = [
+
+
+        {
+            DatasourceId: "ds0",
+
+            DatabaseSchemaId: 4909,
+            DatabaseTableName: "Retail 785",
+            RelationshipColumnName: "parent",
+            TextSeparator: "|",
+
+            TAFolderId: "why785",
+            TAQuestionName: "why",
+            TAModelNo: "785",
+
+            TimeVariableId: 'interview_start'
+        }
+    ];
+
+    /**
+     * @memberof Config
+     * @private
+     * @static
+     * @prop _TALibrary
+     * @type {TALibrary}
+     * @description static variable containing all Text Analytics data
+     */
+    private static var _TALibrary: TALibrary;
+
+    /**
+     * @memberof Config
+     * @private
+     * @static
+     * @prop _haveTALibrary
+     * @type {boolean}
+     * @description static variable indicating that _TALibrary variable has been set
+     */
+    private static var _haveTALibrary;
+
+    /**
+     * @memberof Config
+     * @function SetTaLibrary
+     * @description function that processes config and cashes all Text Analitycs data
+     * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function SetTALibrary(globals){
+        if(!_haveTALibrary){
+            _TALibrary = new TALibrary(globals, TAQuestions, FiltersQuestions, this);
+            _haveTALibrary = true;
+        }
+    }
+
+    /**
+     * @memberof Config
+     * @function GetTALibrary
+     * @description function that returns TALibrary from Config
+     */
+    static function GetTALibrary(){
+        return _TALibrary;
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html new file mode 100644 index 0000000..6fe3b08 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html @@ -0,0 +1,127 @@ + + + + + Static/Filters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Filters.js

+ + + + + + + +
+
+
/**
+* @class Filters
+* @classdesc Static class for Reportal Filter Components
+*/
+class Filters {
+    /**
+     * @memberof Filters
+     * @function TASelectedCategoryFilter
+     * @description function to filtrate only selected category in the hitlist
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TASelectedCategoryFilter(context){
+        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+        /*try {
+            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+        }catch(e){
+            selectedFolder = null;
+        }*/
+
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSelectedCategoryFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function TAHitlistSentimentFilter
+     * @description function to filtrate only selected sentiment in the hitlist
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TAHitlistSentimentFilter(context){
+        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+        /*try {
+            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+        }catch(e){
+            selectedFolder = null;
+        }*/
+
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT")
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function DateFilter
+     * @description function to filtrate selected dates
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function DateFilter(context){
+        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+        /*try {
+            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+        }catch(e){
+            selectedFolder = null;
+        }*/
+        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetDateFilterExpression("TA_DATE_FROM", "TA_DATE_TO");
+        context.component.Expression = fExpr;
+    }
+
+    /**
+     * @memberof Filters
+     * @function FilterPageFilter
+     * @description function to filtrate selected values on the filterpage
+     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function FilterPageFilter(context){
+        var fExpr = "";
+        fExpr = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main).GetGlobalsFilterExpression();
+        context.component.Expression = fExpr
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html new file mode 100644 index 0000000..c314126 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html @@ -0,0 +1,162 @@ + + + + + Static/PageMaster.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/PageMaster.js

+ + + + + + + +
+
+
/**
+ * @class PageMaster
+ * @classdesc Static class for Reportal Page master components
+ */
+class PageMaster{
+    private static var _filterComponents;
+
+    /**
+     * @memberof PageMaster
+     * @function FiltersButtonHtml_Hide
+     * @description function to hide the Filters button html
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function FiltersButtonHtml_Hide(context){
+        var filterQuestions = Config.GetTALibrary().GetFilterQuestions()
+        return filterQuestions.length == 0
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function FiltersButtonHtml_Render
+     * @description function to render the filters button
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function FiltersButtonHtml_Render(context){
+        var htmlText = '<button type="button" class="filter-button" onclick="javascript:document.querySelector(\'.goToFiltersPage input\').click()" title="Filters">'+
+            '<svg width="16" height="12" viewBox="0 0 16 12">'+
+            '<path xmlns="http://www.w3.org/2000/svg" d="M 0 0 l 6 6 v 6 l 4 -1 V 6 l 6 -6 Z"></path>'+
+            '</svg>'+
+            '<svg width="10" height="10" viewBox="0 0 10 10">'+
+            '<path xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" fill-rule="evenodd" d="M 10 4 H 6 V 0 H 4 v 4 H 0 v 2 h 4 v 4 h 2 V 6 h 4 Z"></path>'+
+            '</svg>'+
+            '</button>';
+        context.component.Output.Append(htmlText);
+    }
+    /**
+     * @memberof PageMaster
+     * @function Filters_Hide
+     * @description function to hide the Ffilters button
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Filters_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function Filters_Render
+     * @description function to render the filters button
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Filters_Render(context){
+        context.component.TargetPage = "filters"
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function FilterSummary_Render
+     * @description function to render the filterSummary
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function FilterSummary_Render(context){
+        var filterSummary ;
+        var summarySegments = [];
+        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main);
+
+        var codes = _filterComponents.GetAllAnsweredFilterCodes();
+        for( var i = 0 ; i < codes.length; i++){
+            summarySegments.push(( "<div>" + codes[i].questionTitle + " = "+ codes[i].texts.join(" | ")+"</div>"));
+        }
+
+        filterSummary = summarySegments.join("<span>AND</span>");
+        context.component.Output.Append(filterSummary);
+        if( codes.length > 0 )
+            context.component.Output.Append("<button title='Clear filters' onclick='javascript:document.querySelector(\".filters-clear-button input\").click()' style = 'padding: 1px'><svg width='10' height='10' class='icon-circle-x'><use xmlns:xlink='http://www.w3.org/1999/xlink' xlink:href='/discoveryanalytics/svg-icons/stack/svg/sprite.stack.svg#circle-x'></use></svg></button>");
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function ClearFilters_Hide
+     * @description function to render the Clear filters button
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function ClearFilters_Hide(context){
+        var hideButton = true;
+        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main);
+
+        hideButton = !_filterComponents.GetAllAnsweredFilterCodes().length > 0;
+
+        return hideButton
+    }
+
+    /**
+     * @memberof PageMaster
+     * @function ClearFilters_Render
+     * @description function to render the clear filters button
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function ClearFilters_Render(context){
+
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html new file mode 100644 index 0000000..ca0467d --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html @@ -0,0 +1,411 @@ + + + + + Static/Page_comments.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Page_comments.js

+ + + + + + + +
+
+
/**
+ * @class Page_comments
+ * @classdesc Static class for Reportal Page comments components
+ */
+class Page_comments{
+    private static var _filterComponents;
+    private static var _folder;
+    private static const _defaultParameters = [
+        {
+            Id: "TA_TOP_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_SUB_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_ATTRIBUTES_SINGLE",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_COMMENTS_SENTIMENT",
+            Value: "emptyv"
+        },
+        {
+            Id: "TA_FOLDERS",
+            Value: Config.TAQuestions[0].TAFolderId
+        }
+    ];
+
+    /**
+     * @memberof Page_comments
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+    Config.SetTALibrary(TAHelper.GetGlobals(context));
+        if(context.component.SubmitSource == "ClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main).ClearFilters()
+        }
+
+        if(context.component.SubmitSource == "btnClearDateFilter"){
+            context.state.Parameters["TA_DATE_FROM"] = null;
+            context.state.Parameters["TA_DATE_TO"] = null;
+        }
+        if(context.component.SubmitSource == "lstQuestions") {
+            context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null;
+            context.state.Parameters["TA_LEVEL"] = null;
+            context.state.Parameters["TA_SUB_CATEGORIES_SINGLE"] = null;
+            context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null;
+            context.state.Parameters["TA_VIEW_BY"] = null;
+        }
+
+        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "comments");
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+
+        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        //context.log.LogDebug("page render: "+context.state.Parameters["TA_FOLDERS"]);
+        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+        /*try {
+            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+        } catch(e){
+            selectedFolder = null;
+        }*/
+        _folder = Config.GetTALibrary().GetFolderById(selectedFolder);
+        taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function htlComments_Hide
+     * @description function to hide the hitlist
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function htlComments_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function htlComments_Render
+     * @description function to render the hitlist
+     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function htlComments_Render(context){
+        if(!Config.GetTALibrary()){
+            Config.SetTALibrary(TAHelper.GetGlobals(context));
+        }
+        if(!_folder){
+            //context.log.LogDebug("htl render: "+context.state.Parameters["TA_FOLDERS"]);
+            //var selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+            //_folder =Config.GetTALibrary().GetFolderById(selectedFolder);
+
+            var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+			/*try {
+				selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+			} catch(e){
+				selectedFolder = null;
+			}*/
+			 _folder = Config.GetTALibrary().GetFolderById(selectedFolder);
+			
+			
+        }
+        context.log.LogDebug("htl render1");
+        var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component);
+        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        if( selectedCategory ){
+            htlComments.AddTAColumn("categorysentiment", false, selectedCategory);
+
+        }
+    context.log.LogDebug("htl render2");
+        htlComments.AddTAColumn("verbatim");
+    context.log.LogDebug("htl render3");
+        htlComments.AddColumn(_folder.GetTimeVariableId(), true);
+    context.log.LogDebug("htl render4");
+        context.log.LogDebug("time var: "+ _folder.GetTimeVariableId());
+    context.log.LogDebug("htl render5");
+        htlComments.AddTAColumn("overallsentiment");
+    context.log.LogDebug("htl render6");
+        //htlComments.AddTAColumn("categories");
+        htlComments.AddConfiguredColumns();
+    context.log.LogDebug("htl render7");
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCommentsScript_Hide
+     * @description function to hide the text
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCommentsScript_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCommentsScript_Render
+     * @description function to render the script which processes hitlist
+     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCommentsScript_Render(context){
+        var hitlistInit = "<script>"+
+                "Y.Global.on('hitlistloaded', function (e) {  "+
+                    "var upgradedHitlist = new Reportal.Hitlist({"+
+                        "hitlist: document.querySelector('.reportal-hitlist-container'),"+
+                        "headers: hitlistHeaders,"+
+                        "sentimentConfig: sentimentConfig"+
+                    "});"+
+                "});"+
+            "</script>";
+        var hitlistHeaders = {};
+
+        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
+
+        hitlistHeaders["sentiment"] = []
+
+        if( selectedCategory){
+            hitlistHeaders["sentiment"].push( {
+                    name: _folder.GetQuestionId("categorysentiment")+"_"+selectedCategory
+            } );
+        }
+
+        hitlistHeaders["verbatim"] = [{
+            name: _folder.GetQuestionId(),
+            title: "Comments",
+            main: true
+        }];
+
+        hitlistHeaders["date"] = [{
+            name: _folder.GetTimeVariableId() ? _folder.GetTimeVariableId() : "interview_start",
+            title: "Date"
+        }];
+
+        /*
+            hitlistHeaders["categories"] = {
+                name: _folder.GetQuestionId("categories")
+            };
+         */
+
+        hitlistHeaders["sentiment"].push( {
+            name: _folder.GetQuestionId("overallSentiment"),
+            title: "Overall Sentiment"
+        });
+
+        hitlistHeaders["other"] = [];
+
+        var hitlistColumns = _folder.GetHitlistColumns();
+        for(var i = 0 ; i < hitlistColumns.length; i++){
+            hitlistHeaders["other"].push( {
+                name: hitlistColumns[i]
+            });
+        }
+
+        var sentimentConfig = [
+            {
+                sentiment: "positive",
+                range: {min: (Config.SentimentRange.Positive[0]-6), max: (Config.SentimentRange.Positive[Config.SentimentRange.Positive.length - 1]-6)}
+            },
+            {
+                sentiment: "neutral",
+                range: {min: (Config.SentimentRange.Neutral[0]-6), max: (Config.SentimentRange.Neutral[Config.SentimentRange.Neutral.length - 1]-6)}
+            },
+            {
+                sentiment: "negative",
+                range: {min: (Config.SentimentRange.Negative[0]-6), max: (Config.SentimentRange.Negative[Config.SentimentRange.Negative.length - 1]-6)}
+            }
+        ];
+        context.component.Output.Append(JSON.print(hitlistHeaders, "hitlistHeaders"));
+        context.component.Output.Append(JSON.print(sentimentConfig,"sentimentConfig"));
+        context.component.Output.Append(hitlistInit);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstCategory_Hide
+     * @description function to hide the Category selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstCategory_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstSubCategory_Hide
+     * @description function to hide the Sub Category selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstSubCategory_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function lstAttribute_Hide
+     * @description function to hide the Attribute selector
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function lstAttribute_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCategory_Hide
+     * @description function to hide the Category selector label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCategory_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtCategory_Render
+     * @description function to render the Category selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCategory_Render(context){
+        var label = "Category";
+        context.component.Output.Append(label);
+    }
+
+
+    /**
+     * @memberof Page_comments
+     * @function txtSubCategory_Hide
+     * @description function to hide the the sub category list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtSubCategory_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtSubCategory_Render
+     * @description function to render the sub Category selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtSubCategory_Render(context){
+        var label = "Sub category";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Hide
+     * @description function to hide the the attributes list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtAttribute_Hide(context){
+        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Render
+     * @description function to render the attributes selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtAttribute_Render(context){
+        var label = "Attribute";
+        context.component.Output.Append(label);
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtSentiment_Hide
+     * @description function to hide the the sentiment list label
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtSentiment_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_comments
+     * @function txtAttribute_Render
+     * @description function to render the sentiment selector label
+     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtSentiment_Render(context){
+        var label = "Sentiment";
+        context.component.Output.Append(label);
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html new file mode 100644 index 0000000..9ee5900 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html @@ -0,0 +1,485 @@ + + + + + Static/Page_dashboard.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Page_dashboard.js

+ + + + + + + +
+
+
/**
+ * @class Page_dashboard
+ * @classdesc Static class for Reportal Page dashboard components
+ */
+class Page_dashboard{
+    private static var _folder;
+    private static const _defaultParameters = [
+    {
+        Id: "TA_LEVEL",
+        Value: "0"
+    },
+
+    {
+        Id: "TA_COMPARE_PERIODS",
+        Value: "qoq"
+    },
+
+    {
+        Id: "TA_VIEW_SENTIMENT",
+        Value: "emptyv"
+    }
+];
+
+    /**
+     * @memberof Page_dashboard
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+    Config.SetTALibrary(TAHelper.GetGlobals(context));
+    if(context.component.SubmitSource == "ClearFilters"){
+        new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(),Config.DS_Main).ClearFilters()
+    }
+    if(context.component.SubmitSource == "btnClearDateFilter"){
+        context.state.Parameters["TA_DATE_FROM"] = null;
+        context.state.Parameters["TA_DATE_TO"] = null;
+    }
+    if(context.component.SubmitSource == "lstQuestions") {
+        context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null;
+        context.state.Parameters["TA_LEVEL"] = null;
+        context.state.Parameters["TA_SUB_CATEGORIES_SINGLE"] = null;
+        context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null;
+        context.state.Parameters["TA_VIEW_BY"] = null;
+    }
+
+    TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard");
+    var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+    paramUtils.SetDefaultParameterValues(_defaultParameters);
+    var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+    var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+    /*try {
+        selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+    }catch(e){
+        selectedFolder = null;
+    }*/
+    _folder = Config.GetTALibrary().GetFolderById(selectedFolder);
+    taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @private
+     * @function _renderTblMostSentiment
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} sentiment - "neg" or "pos"
+     */
+    private static function _renderTblMostSentiment(context, sentiment){
+    var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
+    var globals = TAHelper.GetGlobals(context);
+    var table = context.component;
+    var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level);
+    topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
+    topSentimentTable.GetTATableUtils().ClearTableDistributions();
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @private
+     * @function _renderTblMostChanged
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} sentiment - "neg" or "pos"
+     */
+    private static function _renderTblMostChanged(context, sentiment){
+    var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
+    var globals = TAHelper.GetGlobals(context);
+    var table = context.component;
+    var period = context.state.Parameters.IsNull("TA_COMPARE_PERIODS") ? "qoq" : context.state.Parameters.GetString("TA_COMPARE_PERIODS");
+
+    var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period);
+    topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
+    topChangedTable.GetTATableUtils().ClearTableDistributions();
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostPositive_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostPositive_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostPositive_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostPositive_Render(context){
+    _renderTblMostSentiment(context, true);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostNegative_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostNegative_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostNegative_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostNegative_Render(context){
+    _renderTblMostSentiment(context, false);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostImproved_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostImproved_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostImproved_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostImproved_Render(context){
+    _renderTblMostChanged(context, true);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostDeclined_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblMostDeclined_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblMostDeclined_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblMostDeclined_Render(context){
+    _renderTblMostChanged(context, false);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblThemeDistribution_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblThemeDistribution_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function tblThemeDistribution_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblThemeDistribution_Render(context){
+    var globals = TAHelper.GetGlobals(context);
+    var table = context.component;
+    var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT");
+
+    var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment,Config);
+    themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "striped-columns", "reportal-hierarchy-table"]);
+    themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_TOP_CATEGORIES_SINGLE", "detailed_analysis");
+    themeDistributionTable.GetTATableUtils().ClearTableDistributions();
+    themeDistributionTable.GetTATableUtils().SetupDataSupressing(1);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtLevel_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtLevel_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtLevel_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtLevel_Render(context){
+    var label = "View by";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostPositive_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostPositive_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostPositive_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostPositive_Render(context){
+    var label = "Top 5 most positive themes";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostNegative_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostNegative_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostNegative_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostNegative_Render(context){
+    var label = "Top 5 most negative themes";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtComparePeriods_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtComparePeriods_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtComparePeriods_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtComparePeriods_Render(context){
+    var label = "Compare";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostImproved_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostImproved_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostImproved_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostImproved_Render(context){
+    var label = "Top 5 most improved themes";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostChangedInfo_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostChangedInfo_Hide(context){
+    return false
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostChangedInfo_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostChangedInfo_Render(context){
+    var label = "Changes that are not statistically significant are marked in grey";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostDeclined_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtMostDeclined_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtMostDeclined_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtMostDeclined_Render(context){
+    var label = "Top 5 most declined themes";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistribution_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtThemeDistribution_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistribution_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtThemeDistribution_Render(context){
+    var label = "Theme distribution";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtViewSentiment_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtViewSentiment_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtViewSentiment_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtViewSentiment_Render(context){
+    var label = "View";
+    context.component.Output.Append(label);
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistributionScript_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtThemeDistributionScript_Hide(context){
+    return false;
+}
+
+    /**
+     * @memberof Page_dashboard
+     * @function txtThemeDistributionScript_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtThemeDistributionScript_Render(context){
+    var headers;
+    var hierarhy = _folder.GetHierarchy().GetHierarchyArray()
+
+    headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders();
+    var upgradeText = "<script type=\"text/javascript\">"+
+        "var upgradedTable = new Reportal.TAhierarchy("+
+        "{"+
+            "source: document.querySelector('table.reportal-hierarchy-table'),"+
+            "blocks: [],"+
+            "search:{},"+
+            "floatingHeader:{},"+
+            "hierarchy:"+JSON.stringify(hierarhy)+","+
+            "rowheaders:"+JSON.stringify(headers)+","+
+            "clearLinks:true"+
+        "}"+
+        ")"+
+        "</script>";
+
+    context.component.Output.Append(upgradeText);
+    context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
+}
+}
+
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html new file mode 100644 index 0000000..77ceaa2 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html @@ -0,0 +1,339 @@ + + + + + Static/Page_detailed_analysis.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Page_detailed_analysis.js

+ + + + + + + +
+
+
/**
+ * @class Page_detailed_analysis
+ * @classdesc Static class for Reportal Page detailed_analysis components
+ */
+class Page_detailed_analysis{
+    private static var _folder;
+    private static const _defaultParameters = [
+        {
+            Id: "TA_TOP_CATEGORIES_SINGLE",
+            Value: "emptyv"
+        },
+
+        {
+            Id: "TA_DISTRIBUTION_TOGGLE",
+            Value: "0"
+        },
+
+        {
+            Id: "TA_VIEW_BY",
+            Value: "emptyv"
+        }
+    ];
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        if(context.component.SubmitSource == "ClearFilters"){
+            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main).ClearFilters()
+        }
+
+        if(context.component.SubmitSource == "btnClearDateFilter"){
+            context.state.Parameters["TA_DATE_FROM"] = null;
+            context.state.Parameters["TA_DATE_TO"] = null;
+        }
+        if(context.component.SubmitSource == "lstQuestions") {
+            context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null;
+            context.state.Parameters["TA_LEVEL"] = null;
+            context.state.Parameters["TA_SUB_CATEGORIES_SINGLE"] = null;
+            context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null;
+            context.state.Parameters["TA_VIEW_BY"] = null;
+        }
+
+        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "detailed_analysis");
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+
+        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
+        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+        /*try {
+            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+        }catch(e){
+            selectedFolder = null;
+        }*/
+        _folder =Config.GetTALibrary().GetFolderById(selectedFolder);
+        taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+        taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @private
+     * @function _buildTATiles
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {String} type - "all", "neg", "neu", "pos"
+     */
+    static private function _buildTATiles(context, type){
+        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
+        new TATiles(TAHelper.GetGlobals(context), _folder, context.component, type, selectedCategory, distribution)
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblTotalCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblTotalCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblTotalCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblTotalCommentsTile_Render(context){
+        _buildTATiles(context, "all");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblPositiveCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblPositiveCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblPositiveCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblPositiveCommentsTile_Render(context){
+        _buildTATiles(context, "pos");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNeutralCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblNeutralCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblMostPositive_RendertblNeutralCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblNeutralCommentsTile_Render(context){
+        _buildTATiles(context, "neu");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNegativeCommentsTile_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblNegativeCommentsTile_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblNegativeCommentsTile_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblNegativeCommentsTile_Render(context){
+        _buildTATiles(context, "neg");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblDetailedAnalysis_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function tblDetailedAnalysis_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function tblDetailedAnalysis_Render
+     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function tblDetailedAnalysis_Render(context){
+        var globals = TAHelper.GetGlobals(context);
+        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        var selectedQuestion = context.state.Parameters.GetString("TA_VIEW_BY");
+        //var project =  globals.report.DataSource.GetProject(Config.DS_Main);
+        var project =  globals.report.DataSource.GetProject(_folder.GetDatasourceId());
+        var selectedQuestionType = false;
+        if(selectedQuestion && selectedQuestion != "emptyv")
+            selectedQuestionType =  project.GetQuestion(selectedQuestion).QuestionType;
+        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
+        var hideEmptyRows = new ParameterUtilities(globals).GetCheckedValues("TA_HIDE_EMPTY_ROWS");
+        var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, selectedCategory, selectedQuestion, distribution, ( selectedQuestionType == QuestionType.Multi));
+        detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]);
+        detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0));
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtDetailedAnalysisScript_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtDetailedAnalysisScript_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtDetailedAnalysisScript_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtDetailedAnalysisScript_Render(context){
+        var headers;
+        var hierarhy = _folder.GetHierarchy().GetHierarchyArray();
+        var taTableData = new TATableData(TAHelper.GetGlobals(context), "tblDetailedAnalysis");
+        var headers = taTableData.GetTableRowHeaders();
+        if( headers.length > 0){
+            var blocks = taTableData.GetBlocks();
+
+            var upgradeText = "<script type=\"text/javascript\">"+
+                    "var upgradedTable = new Reportal.TAhierarchy("+
+                "{"+
+                "source: document.querySelector('table.reportal-hierarchy-table'),"+
+                "hierarchy: "+JSON.stringify(hierarhy)+","+
+                "rowheaders:"+JSON.stringify(headers)+","+
+                "search:{},"+
+                "blocks:"+JSON.stringify(blocks)+","+
+                "floatingHeader: {},"+
+                "column:"+ ( blocks.length > 0 ? 1 : 0 ) +","+
+                "sorting:"+
+                "{"+
+                "enabled: true,"+
+                "excludedColumns: [6]"+
+                "},"+
+                "}"+
+                ")"+
+                "</script>";
+
+            context.component.Output.Append(upgradeText);
+            context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
+            context.component.Output.Append(JSON.print(headers,"rowheaders"));
+            context.component.Output.Append(JSON.print(blocks,"blocks"));
+        }
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtViewBy_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtViewBy_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtViewBy_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtViewBy_Render(context){
+        context.component.Output.Append("View by:");
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtCategory_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function txtCategory_Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_detailed_analysis
+     * @function txtCategory_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function txtCategory_Render(context){
+        context.component.Output.Append("Category");
+    }
+}
+
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html new file mode 100644 index 0000000..8b5da2f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html @@ -0,0 +1,208 @@ + + + + + Static/Page_filters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Page_filters.js

+ + + + + + + +
+
+
/**
+ * @class Page_filters
+ * @classdesc Static class for Reportal Page filters components
+ */
+class Page_filters{
+    private static var _filterComponents;
+    private static var _folder;
+    private static const _defaultParameters = [];
+
+    /**
+     * @memberof Page_filters
+     * @function Hide
+     * @description function to hide the page
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function Hide(context){
+        return false;
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function Render
+     * @description function to render the page
+     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function Render(context){
+        Config.SetTALibrary(TAHelper.GetGlobals(context));
+        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main);
+        if(context.component.SubmitSource == "btnClearFilters"){
+                _filterComponents.ClearFilters();
+            }
+        if(context.component.SubmitSource == "btnClearDateFilter"){
+            context.state.Parameters["TA_DATE_FROM"] = null;
+            context.state.Parameters["TA_DATE_TO"] = null;
+        }
+        if(context.component.SubmitSource == "lstQuestions") {
+            context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null;
+            context.state.Parameters["TA_LEVEL"] = null;
+            context.state.Parameters["TA_SUB_CATEGORIES_SINGLE"] = null;
+            context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null;
+            context.state.Parameters["TA_VIEW_BY"] = null;
+        }
+
+        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
+        paramUtils.SetDefaultParameterValues(_defaultParameters);
+        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+        /*try {
+            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+        }catch(e){
+            selectedFolder = null;
+        }*/
+        _folder = Config.GetTALibrary().GetFolderById(selectedFolder);
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSaveReturn_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnSaveReturn_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSaveReturn_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnSaveReturn_Render(context){
+        context.component.Label = new Label(9,"Save and Return");
+        context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE");
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSave_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnSave_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnSave_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnSave_Render(context){
+        context.component.Label = new Label(9,"Save");
+        context.component.TargetPage = "filters";
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnClearFilters_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnClearFilters_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function btnClearFilters_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnClearFilters_Render(context){
+    context.component.Label = new Label(9,"Clear Filters");
+    context.component.TargetPage = "filters";
+}
+
+    /**
+     * @memberof Page_filters
+     * @function txtFilterTitle_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     * @returns {Boolean}
+     */
+    static function txtFilterTitle_Hide(context, filterNumber){
+    var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
+        return !filterQuestion
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function txtFilterTitle_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     */
+    static function txtFilterTitle_Render(context, filterNumber){
+    var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1);
+    if(filterTitle)
+        context.component.Output.Append(filterTitle);
+    }
+
+    /**
+     * @memberof Page_filters
+     * @function lstFilterList_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     * @returns {Boolean}
+     */
+    static function lstFilterList_Hide(context, filterNumber){
+        var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
+        return !filterQuestion
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html new file mode 100644 index 0000000..ee52f6c --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html @@ -0,0 +1,226 @@ + + + + + Static/Parameters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/Parameters.js

+ + + + + + + +
+
+
/**
+ * @class Parameters
+ * @classdesc Static class for Reportal parameter components
+ */
+class Parameters{
+    private static function getSelectedFolder(context) {
+        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
+        return selectedFolder;
+        /*try {
+            selectedFolder = context.state.Parameters.GetString("TA_FOLDERS");
+        } catch(e){
+            selectedFolder = null;
+        } finally {}*/
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_FOLDERS_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_FOLDERS_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderFoldersParameter(context.component);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_LEVEL_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_LEVEL_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelsParameter(context.component, getSelectedFolder(context));
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_COMPARE_PERIODS_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_COMPARE_PERIODS_Domain(context){
+        var parameterValues = [
+            {Code: "wow", Label: "Current vs Last Week"},
+            {Code: "mom", Label: "Current vs Last Month"},
+            {Code: "qoq", Label: "Current vs Last Quarter"},
+            {Code: "yoy", Label: "Current vs Last Year"}
+        ];
+        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_TOP_CATEGORIES_SINGLE_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_TOP_CATEGORIES_SINGLE_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 0, "-select-")
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_SUB_CATEGORIES_SINGLE_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_SUB_CATEGORIES_SINGLE_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 1, "-select-")
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_ATTRIBUTES_SINGLE_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_ATTRIBUTES_SINGLE_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 2, "-select-")
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_SUB_CATEGORIES_SINGLE_Mask
+     * @param {Object} context - {component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_SUB_CATEGORIES_SINGLE_Mask(context){
+        var category = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
+        if(category && category != "emptyv")
+            new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).MaskSelectedCategoryChildren(context.component,getSelectedFolder(context),category,true)
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_ATTRIBUTES_SINGLE_Mask
+     * @param {Object} context - {component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_ATTRIBUTES_SINGLE_Mask(context){
+        var category = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+        if(category && category != "emptyv")
+            new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).MaskSelectedCategoryChildren(context.component,getSelectedFolder(context),category,true)
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_VIEW_SENTIMENT_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_VIEW_SENTIMENT_Domain(context){
+        var parameterValues = [
+            {Code: "emptyv", Label: "All sentiments"},
+            {Code: "pos", Label: "Positive"},
+            {Code: "neu", Label: "Neutral"},
+            {Code: "neg", Label: "Negative"}
+        ]
+        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_DISTRIBUTION_TOGGLE_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_DISTRIBUTION_TOGGLE_Domain(context){
+        var parameterValues = [
+            {Code: 0, Label: "Count"},
+            {Code: 1, Label: "%"}
+        ]
+
+        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_VIEW_BY_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_VIEW_BY_Domain(context){
+        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderViewByParameter(context.component, getSelectedFolder(context), "-select-");
+    }
+
+    /**
+     * @memberof Parameters
+     * @function TA_HIDE_EMPTY_ROWS_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function TA_HIDE_EMPTY_ROWS_Domain(context){
+        var parameterValues = [
+            {Code: "hide", Label: "Hide categories with no hits"}
+        ]
+        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+    }
+
+    /**
+     * @memberof Parameters
+     * @function FILTER_Domain
+     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @param {Number} filterNumber
+     */
+    static function FILTER_Domain(context, filterNumber){
+        var filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main);
+        var filterQuestion = filterComponents.GetFilterQuestion(filterNumber -1 );
+        if(filterQuestion){
+            var parameterValues = [];
+            var answers = filterQuestion.GetAnswers()
+            for( var i = 0; i < answers.length; i++){
+                parameterValues.push({
+                    Code: answers[i].Precode,
+                    Label: answers[i].Text
+                });
+            }
+            new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
+        }
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html new file mode 100644 index 0000000..cb83a0a --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html @@ -0,0 +1,122 @@ + + + + + Static/ReportMaster.js - Documentation + + + + + + + + + + + + + + + + +
+ +

Static/ReportMaster.js

+ + + + + + + +
+
+
/**
+ * @class ReportMaster
+ * @classdesc Static class for Report Master components
+ */
+class ReportMaster {
+
+    /**
+     * @memberof ReportMaster
+     * @function CustomerLogo_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function CustomerLogo_Hide(context) {
+        return false;
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function CustomerLogo_Render
+     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function CustomerLogo_Render(context) {
+        if(Config.CustomerLogo !== null) {
+            context.component.Output.Append('<img class="customer-logo" src="' + Config.CustomerLogo + '" height="60px" >');
+        }
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function btnApplyDateFilter_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnApplyDateFilter_Hide(context){
+        return false
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function btnApplyDateFilter_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnApplyDateFilter_Render(context){
+        context.component.Label = new Label(9, "Apply");
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function btnClearDateFilter_Hide
+     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     * @returns {Boolean}
+     */
+    static function btnClearDateFilter_Hide(context){
+        return (context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.IsNull("TA_DATE_TO"))
+    }
+
+    /**
+     * @memberof ReportMaster
+     * @function btnClearDateFilter_Render
+     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+     */
+    static function btnClearDateFilter_Render(context){
+        context.component.Label = new Label(9, "Clear Date Filters");
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html new file mode 100644 index 0000000..0126b9d --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html @@ -0,0 +1,999 @@ + + + + + TADetailedAnalysisTable - Documentation + + + + + + + + + + + + + + + + +
+ +

TADetailedAnalysisTable

+ + + + + + + +
+ +
+ +

+ TADetailedAnalysisTable +

+ +

Class to work with Detailed Analysis table

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFoldee + + + +

Text Analytics folder to build table from

table + + +Table + + + +
selectedCategory + + +String + + + +
selectedQuestion + + +String + + + +
distribution + + +String + + + +

"0" for counts "1" for percents

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addChartColumn()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _getColumnFormulaExpression()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _getColumnheadersExpression()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _getRowheadersExpression()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupConditionalFormatting()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupTableDistribution()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html new file mode 100644 index 0000000..3a6465e --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html @@ -0,0 +1,330 @@ + + + + + TADetailedAnalysisTable.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TADetailedAnalysisTable.js

+ + + + + + + +
+
+
/**
+ * @class TADetailedAnalysisTable
+ * @classdesc Class to work with Detailed Analysis table
+ *
+ * @constructs TADetailedAnalysisTable
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFoldee} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} selectedCategory
+ * @param {String} selectedQuestion
+ * @param {String} distribution - "0" for counts "1" for percents
+ */
+class TADetailedAnalysisTable{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _selectedCategory;
+    private var _selectedQuestion;
+    private var _distribution;
+    private var _multiQuestion;
+
+    function TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution, multiQuestion){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _selectedCategory = selectedCategory && selectedCategory != "emptyv" ? selectedCategory : "all";
+        _selectedQuestion = selectedQuestion && selectedQuestion != "emptyv" ? selectedQuestion : "all";
+        _distribution = distribution ? distribution : "0";
+        _multiQuestion = multiQuestion;
+        _render();
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var rowexpr = _getRowheadersExpression();
+        var colexpr = _getColumnheadersExpression();
+
+        _taTableUtils.CreateTableFromExpression(rowexpr, colexpr);
+        _setupTableDistribution();
+        _table.RowNesting = TableRowNestingType.Nesting;
+        _setupConditionalFormatting();
+        _addChartColumn();
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _getRowheadersExpression
+     */
+    private function _getRowheadersExpression(){
+        var rowexpr = "";
+
+        var blockHeader = "";
+        var qType = "categorysentiment";
+        var categoryHeader = "(";
+
+        var mask = false;
+
+        if(_distribution == "1"){
+            blockHeader += _taTableUtils.GetTAQuestionExpression("overallsentiment",false,"hidedata:true") + "+";
+        }
+
+        if( _selectedQuestion != "all" ){
+            blockHeader += _selectedQuestion+'{id:'+_selectedQuestion+';totals:false'
+
+            if(_multiQuestion){
+                blockHeader+= ";collapsed:true";
+            }
+
+            blockHeader += "}/";
+        }
+
+        if( _selectedCategory != "all" ){
+            mask = _taMasks.GetAllChildrenMask(_selectedCategory);
+            mask.push(_selectedCategory)
+        }
+
+        categoryHeader += _taTableUtils.GetTAQuestionExpression(qType, mask) + ")";
+
+        rowexpr += blockHeader + categoryHeader;
+
+        return rowexpr
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _getColumnheadersExpression
+     */
+    private function _getColumnheadersExpression(){
+        var columnexpr = "";
+        var columnbase = "[N]{hideheader:true;hidedata:true}";
+
+        var countformula = _getColumnFormulaExpression();
+
+        var columnstatistic = "[STATISTICS]{statistics:avg}";
+        var positivecolumn = _taTableUtils.GetCategoriesExpression( "pos", false, false, _distribution, Config.SentimentRange );
+        var neutralcolumn = _taTableUtils.GetCategoriesExpression( "neu", false, false, _distribution, Config.SentimentRange );
+        var negativecolumn = _taTableUtils.GetCategoriesExpression( "neg", false, false, _distribution, Config.SentimentRange );
+
+        columnexpr = [columnbase, countformula, columnstatistic, positivecolumn, neutralcolumn, negativecolumn].join("+");
+        return columnexpr
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _getColumnFormulaExpression
+     */
+    private function _getColumnFormulaExpression(){
+        var countformulaexpression;
+        var countformula = '[FORMULA]{decimals:0;label:"Comments";hideheader:true';
+        if( _distribution == "1"){
+            countformula += ";percent:true";
+            countformulaexpression = '"IF((cellv(1,1)>0),(cellv(col-1,row)/cellv(1,1)),EMPTYV())"';
+        }else{
+            countformula += ";percent:false";
+            countformulaexpression = '"IF(cellv(col-1,row)>0,cellv(col-1,row),EMPTYV())"';
+        }
+        countformula += ";expression:"+countformulaexpression;
+        countformula += "}";
+
+        return countformula
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _setupTableDistribution
+     */
+    private function _setupTableDistribution(){
+        _table.Distribution.Enabled = true;
+        _table.Distribution.VerticalPercents = false;
+
+        if(_distribution == "1"){
+            _table.Distribution.HorizontalPercents = true;
+            _table.Distribution.Count = false;
+        }else{
+            _table.Distribution.HorizontalPercents = false;
+            _table.Distribution.Count = true;
+        }
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _addChartColumn
+     */
+    private function _addChartColumn(){
+        var chartHeader =  _taTableUtils.GetChartHeader(
+            ChartComboType.Bar100,
+            [
+                {
+                    Formula: "cellv(col-25,row)",
+                    Color: (Config.Colors.NegNeuPosPalette.Positive)
+                },
+                {
+                    Formula: "cellv(col-13,row)",
+                    Color: (Config.Colors.NegNeuPosPalette.Neutral)
+                },
+                {
+                    Formula: "cellv(col-1,row)",
+                    Color: (Config.Colors.NegNeuPosPalette.Negative)
+                }
+            ],
+            " ");
+        _table.ColumnHeaders.Add(chartHeader);
+    }
+
+    /**
+     * @memberof TADetailedAnalysisTable
+     * @private
+     * @instance
+     * @function _setupConditionalFormatting
+     */
+    private function _setupConditionalFormatting(){
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col,row)<(-1)',
+                    style: 'negative'
+                },
+
+                {
+                    expression: '(cellv(col, row)>=(-1)) AND (cellv(col, row)<=1)',
+                    style: 'neutral'
+                },
+                {
+                    expression: 'cellv(col, row)>1',
+                    style: 'positive'
+                }
+            ],
+            "NegNeuPos",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "3"
+            }
+        );
+
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col,row)>=0',
+                    style: 'negative'
+                },
+
+            ],
+            "Negative",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "39"
+            }
+        );
+
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col,row)>=0',
+                    style: 'neutral'
+                },
+
+            ],
+            "Negative",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "27"
+            }
+        );
+
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col,row)>=0',
+                    style: 'positive'
+                },
+
+            ],
+            "Negative",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "15"
+            }
+        );
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html new file mode 100644 index 0000000..f904379 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html @@ -0,0 +1,828 @@ + + + + + TAFilters - Documentation + + + + + + + + + + + + + + + + +
+ +

TAFilters

+ + + + + + + +
+ +
+ +

+ TAFilters +

+ +

Class to work with Text Analytics filters

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAFilters(globals, folder)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +

Text Analytics folder to build table from

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetDateFilterExpression(fromParameter, toParameter) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fromParameter + + +String + + + +
toParameter + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetSelectedCategoryFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
categoriesParameter + + +String + + + +
subCategoriesParameter + + +String + + + +
attributesParameter + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetSentimentFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter, sentimentParameter) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
categoriesParameter + + +String + + + +
subCategoriesParameter + + +String + + + +
attributesParameter + + +String + + + +
sentimentParameter + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html new file mode 100644 index 0000000..55fc625 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html @@ -0,0 +1,155 @@ + + + + + TAFilters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAFilters.js

+ + + + + + + +
+
+
/**
+ * @class TAFilters
+ * @classdesc Class to work with Text Analytics filters
+ *
+ * @constructs TAFilters
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder - Text Analytics folder to build table from
+ */
+class TAFilters{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _parameterUtilities: ParameterUtilities;
+
+    function TAFilters(globals, folder){
+        _globals = globals;
+        _folder = folder;
+    }
+
+    /**
+     * @memberof TAFilters
+     * @instance
+     * @function GetSelectedCategoryFilterExpression
+     * @param {String} categoriesParameter
+     * @param {String} subCategoriesParameter
+     * @param {String} attributesParameter
+     * @returns {String}
+     */
+    function GetSelectedCategoryFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter){
+        var fExpr;
+        var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter);
+
+        fExpr = selectedCategory ?('ANY(' + _folder.GetQuestionId("categories") + ',"'+selectedCategory+'")'):'NOT ISNULL('+_folder.GetQuestionId("overallSentiment")+')';
+
+        return fExpr;
+    }
+
+    /**
+     * @memberof TAFilters
+     * @instance
+     * @function GetSentimentFilterExpression
+     * @param {String} categoriesParameter
+     * @param {String} subCategoriesParameter
+     * @param {String} attributesParameter
+     * @param {String} sentimentParameter
+     * @returns {String}
+     */
+    function GetSentimentFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter, sentimentParameter){
+        var fExpr;
+        var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter);
+        var sentimentParameterValue = _globals.state.Parameters.GetString(sentimentParameter);
+        var sentimentRange = false;
+        switch( sentimentParameterValue ){
+            case "pos":
+                sentimentRange ='"'+Config.SentimentRange.Positive.join('","')+'"';
+                break;
+            case "neu":
+                sentimentRange ='"'+ Config.SentimentRange.Neutral.join('","') +'"';
+                break;
+            case "neg":
+                sentimentRange ='"' + Config.SentimentRange.Negative.join('","')+'"';
+                break;
+        }
+        var questionName = selectedCategory ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment");
+        fExpr = sentimentRange ?('IN(' + questionName + ','+sentimentRange+')') : '';
+        return fExpr;
+    }
+
+    /**
+     * @memberof TAFilters
+     * @instance
+     * @function GetDateFilterExpression
+     * @param {String} fromParameter
+     * @param {String} toParameter
+     * @returns {String}
+     */
+    function GetDateFilterExpression(fromParameter, toParameter){
+        var fExpr;
+        var isFrom = _globals.state.Parameters.IsNull(fromParameter);
+        var isTo = _globals.state.Parameters.IsNull(toParameter);
+        var fromExpr;
+        var toExpr;
+        var resultArray = [];
+        if(!isFrom)
+        {
+            fromExpr = _folder.GetTimeVariableId() + ' >= PValDate("' +fromParameter+'")';
+            resultArray.push(fromExpr);
+        }
+
+        if(!isTo){
+            toExpr = _folder.GetTimeVariableId() + ' <= PValDate("' +toParameter+'")';
+            resultArray.push(toExpr);
+        }
+
+        fExpr = resultArray.join(" AND ");
+
+        return fExpr
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html new file mode 100644 index 0000000..1ed477f --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html @@ -0,0 +1,1012 @@ + + + + + TAFolder - Documentation + + + + + + + + + + + + + + + + +
+ +

TAFolder

+ + + + + + + +
+ +
+ +

+ TAFolder +

+ +

Class to work with Text Analytics variables

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAFolder(globals, questionObj)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

questionObj + + +Object + + + +

Object from Config.TAQuestions[i]

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetDatasourceId() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get Id of the datasource

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetHierarchy() → {Hierarchy}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get Hierarchy for the text analytics set

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Hierarchy + + +
+
+ + + + + + + + + +

GetHitlistColumns() → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get array of qIds to use in the end of the hitlist

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetId() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get unique Id for the text analytics set

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetQuestionId(questionType) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get id of text analytics variable (verbatim if no parameters)

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
questionType + + +String + + + +

type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetTimeVariableId() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get qId of time variable for the set

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetViewByVariables() → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to Get array of qIds to use in the detailed analysis table

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html new file mode 100644 index 0000000..9e31da7 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html @@ -0,0 +1,216 @@ + + + + + TAFolder.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAFolder.js

+ + + + + + + +
+
+
/**
+ * @class TAFolder
+ * @classdesc Class to work with Text Analytics variables
+ *
+ * @constructs TAFolder
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {Object} questionObj - Object from Config.TAQuestions[i]
+ */
+class TAFolder{
+    private var _globals;
+
+    //TA Fields
+    private var _id: String;
+    private var _qName: String;
+    private var _modelNo: String;
+
+    //additional fields
+    private var _timeVariableId: String;
+    private var _datasourceId: String;
+    private var _variablesToViewBy;
+    private var _hitlistColumns;
+
+    private var _hierarchy: Hierarchy;
+
+
+    function TAFolder(globals, questionIndex, config){
+        _globals = globals;
+        _id = config.TAQuestions[questionIndex].TAFolderId;
+        _qName = config.TAQuestions[questionIndex].TAQuestionName;
+        _modelNo = config.TAQuestions[questionIndex].TAModelNo;
+        _timeVariableId = TAHelper.GetConfiguredVariables(globals,[config.TAQuestions[questionIndex].TimeVariableId], [config.TimeVariableId], null, ["interview_start"])[0];
+
+        _datasourceId = TAHelper.GetConfiguredVariables(globals,[config.TAQuestions[questionIndex].DatasourceId], [config.DS_Main], null, ["ds0"])[0];
+
+        var variablesToViewBy = TAHelper.GetTagsFromSurvey(globals, _datasourceId, ["ta_viewby"]);
+        _variablesToViewBy = TAHelper.GetConfiguredVariables(globals, config.TAQuestions[questionIndex].VariablesToViewBy, config.VariablesToViewBy, variablesToViewBy, []);
+
+        var hitlistColumns = TAHelper.GetTagsFromSurvey(globals, _datasourceId, ["ta_hitlist"]);
+        _hitlistColumns = TAHelper.GetConfiguredVariables(globals, config.TAQuestions[questionIndex].HitlistColumns, config.HitlistColumns, hitlistColumns, []);
+
+        _hierarchy = new Hierarchy(globals, {
+            schemaId: config.TAQuestions[questionIndex].DatabaseSchemaId,
+            tableName: config.TAQuestions[questionIndex].DatabaseTableName,
+            relationshipColumnName: config.TAQuestions[questionIndex].RelationshipColumnName,
+            textSeparator: config.TAQuestions[questionIndex].TextSeparator != "" ? config.TAQuestions[questionIndex].TextSeparator: null
+        });
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetQuestionId
+     * @description function to Get id of text analytics variable (verbatim if no parameters)
+     * @param {String} questionType - type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"
+     * @returns {String}
+     */
+    function GetQuestionId(questionType){
+        var postfix;
+        if(!questionType){
+            return _qName;
+        }
+        switch(questionType.toLowerCase()){
+            case "overallsentiment":
+            case "os":
+                postfix = "OverallSentiment";
+                break;
+            case "categories":
+            case "c":
+                postfix = "Categories";
+                break;
+            case "positivementions":
+            case "positive":
+            case "pm":
+                postfix = "PositiveMentions";
+                break;
+            case "negativementions":
+            case "negative":
+            case "nm":
+                postfix = "NegativeMentions";
+                break;
+            case "categorysentiment":
+            case "cs":
+                postfix = "CategorySentiment"
+                break;
+            case "verbatim":
+            default:
+                postfix = false;
+                break;
+        }
+
+        return _qName+( postfix ? (_modelNo + postfix) : "" );
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetHierarchy
+     * @description function to Get Hierarchy for the text analytics set
+     * @returns {Hierarchy}
+     */
+    function GetHierarchy(){
+        return _hierarchy;
+}
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetId
+     * @description function to Get unique Id for the text analytics set
+     * @returns {String}
+     */
+    function GetId(){
+        return _id;
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetTimeVariableId
+     * @description function to Get qId of time variable for the set
+     * @returns {String}
+     */
+    function GetTimeVariableId(){
+        return _timeVariableId;
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetDatasourceId
+     * @description function to Get Id of the datasource
+     * @returns {String}
+     */
+    function GetDatasourceId(){
+        return _datasourceId;
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetViewByVariables
+     * @description function to Get array of qIds to use in the detailed analysis table
+     * @returns {String[]}
+     */
+    function GetViewByVariables(){
+        return _variablesToViewBy;
+    }
+
+    /**
+     * @memberof TAFolder
+     * @instance
+     * @function GetHitlistColumns
+     * @description function to Get array of qIds to use in the end of the hitlist
+     * @returns {String[]}
+     */
+    function GetHitlistColumns(){
+        return _hitlistColumns;
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html new file mode 100644 index 0000000..1089fd2 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html @@ -0,0 +1,1121 @@ + + + + + TAHelper - Documentation + + + + + + + + + + + + + + + + +
+ +

TAHelper

+ + + + + + + +
+ +
+ +

+ TAHelper +

+ +

Class cntaining additional static functions to work with text analytics

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAHelper()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(static) GetConfiguredVariables(globals, questionConfig, config, tag, defaultValue) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get configured value from TAConfig or survey tags

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +
questionConfig + + +Object + + + +
config + + +Object + + + +
tag + + +Object + + + +
defaultValue + + +Object + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

(static) GetGlobals(context) → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to retrieve global parameters from given context

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
context + + +Object + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

(static) GetSelectedCategory(state, categoriesParameterName, subCategoriesParameterName, attribtesPararmeterNam) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get id of selected category, subcategory or attribute

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
state + + +ReportState + + + +
categoriesParameterName + + +String + + + +
subCategoriesParameterName + + +String + + + +
attribtesPararmeterNam + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

(static) GetSelfName(name, separator) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to trim out parents cateories from the category name

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + +String + + + +
separator + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

(static) SetLastVisitedPage(globals, pageId)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to set the last visited page to the parameter

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +
pageId + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html new file mode 100644 index 0000000..1a3f92a --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html @@ -0,0 +1,187 @@ + + + + + TAHelper.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAHelper.js

+ + + + + + + +
+
+
/**
+ * @class TAHelper
+ * @classdesc Class cntaining additional static functions to work with text analytics
+ */
+class TAHelper{
+    /**
+     * @memberof TAHelper
+     * @function GetGlobals
+     * @description function to retrieve global parameters from given context
+     * @param {Object} context
+     * @returns {Object}
+     */
+    static function GetGlobals(context){
+        return {
+            pageContext: context.pageContext,
+            report: context.report,
+            user: context.user,
+            state: context.state,
+            confirmit: context.confirmit,
+            log: context.log
+        };
+    }
+
+    /**
+     * @memberof TAHelper
+     * @function GetSelectedCategory
+     * @description function to get id of selected category, subcategory or attribute
+     * @param {ReportState} state
+     * @param {String} categoriesParameterName
+     * @param {String} subCategoriesParameterName
+     * @param {String} attribtesPararmeterNam
+     * @returns {String}
+     */
+    static function GetSelectedCategory(state, categoriesParameterName, subCategoriesParameterName, attribtesPararmeterName){
+        var categoriesParameter;
+        if(categoriesParameterName)
+            categoriesParameter = state.Parameters.GetString(categoriesParameterName);
+
+
+        var subCategoriesParameter;
+        if(subCategoriesParameterName)
+            subCategoriesParameter= state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
+
+
+        var attributesParameter;
+        if(attribtesPararmeterName)
+            attributesParameter = state.Parameters.GetString("TA_ATTRIBUTES_SINGLE");
+
+        var selectedCategory = false;
+
+        if(categoriesParameter && categoriesParameter != "emptyv"){
+            selectedCategory = categoriesParameter;
+        }
+
+        if(subCategoriesParameter && subCategoriesParameter != "emptyv"){
+            selectedCategory = subCategoriesParameter;
+        }
+
+        if(attributesParameter && attributesParameter != "emptyv"){
+            selectedCategory = attributesParameter;
+        }
+
+        return selectedCategory;
+    }
+
+    /**
+     * @memberof TAHelper
+     * @function GetSelfName
+     * @description function to trim out parents cateories from the category name
+     * @param {String} name
+     * @param {String} separator
+     * @returns {String}
+     */
+    static function GetSelfName(name, separator){
+        var index = name.lastIndexOf(separator);
+        return name.slice((index+1)).Trim();
+    }
+
+    /**
+     * @memberof TAHelper
+     * @function GetConfiguredVariables
+     * @description function to get configured value from TAConfig or survey tags
+     * @param {Object} globals
+     * @param {Object} questionConfig
+     * @param {Object} config
+     * @param {Object} tag
+     * @param {Object} defaultValue
+     * @returns {Object}
+     */
+    static function GetConfiguredVariables(globals,questionConfig, config, tag, defaultValue){
+        var result = [];
+        if(!questionConfig || questionConfig.length == 0 || !questionConfig[0]){
+            if( !config || config.length == 0 || !config[0]){
+                if(!tag || tag.length == 0 || !tag[0]){
+                    result = defaultValue;
+                }else{
+                    result = tag
+                }
+            }else{
+                result = config;
+            }
+        }else{
+            result = questionConfig
+        }
+        return result;
+    }
+
+    static function GetTagsFromSurvey(globals, datasourceId, tags){
+        var result = false;
+        var project = globals.report.DataSource.GetProject(datasourceId);
+        var questions = project.GetQuestionsWithAnswers(false, tags);
+        if(questions.length > 0)
+            result = [];
+        for (var i = 0; i < questions.length; i++){
+            result.push(questions[i].QuestionId);
+        }
+        return result;
+    }
+
+    /**
+     * @memberof TAHelper
+     * @function SetLastVisitedPage
+     * @description function to set the last visited page to the parameter
+     * @param {Object} globals
+     * @param {String} pageId
+     */
+    static function SetLastVisitedPage(globals, pageId){
+        globals.state.Parameters["TA_LAST_VISITED_PAGE"] = new ParameterValueResponse(pageId);
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html new file mode 100644 index 0000000..b435e26 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html @@ -0,0 +1,691 @@ + + + + + TAHitlistUtils - Documentation + + + + + + + + + + + + + + + + +
+ +

TAHitlistUtils

+ + + + + + + +
+ +
+ +

+ TAHitlistUtils +

+ +

Class to work with the hitlist

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAHitlistUtils(globals, folder, hitlist)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +
hitlist + + +Hitlist + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

AddColumn(columnName, sortable)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to add a not text analytics variable to the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnName + + +String + + + +

variable qId

sortable + + +Boolean + + + +
+ + + + + + + + + + + + + + + + + + + + + +

AddConfiguredColumns()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to add columns from config

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

AddTAColumn(columnName, sortable, postfix)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to add a text analytics variable to the hitlist

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnName + + +String + + + +

type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"

sortable + + +Boolean + + + +
postfix + + +String + + + +

id of the selected category

+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html new file mode 100644 index 0000000..7cb2e1a --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html @@ -0,0 +1,135 @@ + + + + + TAHitlistUtils.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAHitlistUtils.js

+ + + + + + + +
+
+
/**
+ * @class TAHitlistUtils
+ * @classdesc Class to work with the hitlist
+ *
+ * @constructs TAHitlistUtils
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder
+ * @param {Hitlist} hitlist
+ */
+class TAHitlistUtils{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _hitlist: HitList;
+
+    function TAHitlistUtils(globals, folder, hitlist){
+        _globals = globals;
+        _folder = folder;
+        _hitlist = hitlist;
+    }
+
+    /**
+     * @memberof TAHitlistUtils
+     * @instance
+     * @function AddTAColumn
+     * @description function to add a text analytics variable to the hitlist
+     * @param {String} columnName - type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"
+     * @param {Boolean} sortable
+     * @param {String} postfix - id of the selected category
+     */
+    function AddTAColumn(columnName, sortable, postfix){
+        var hitlistColumn: HitListColumn = new HitListColumn();
+    var dsId = _folder.GetDatasourceId();
+
+        var project: Project = _globals.report.DataSource.GetProject(dsId);
+
+        var columnId = _folder.GetQuestionId(columnName);
+
+
+        hitlistColumn.QuestionnaireElement = columnName == "categorysentiment" ? project.CreateQuestionnaireElement(columnId, postfix) : project.CreateQuestionnaireElement(columnId);
+        sortable ? (hitlistColumn.IsSortable = true) : null;
+        _hitlist.Columns.Add(hitlistColumn);
+
+    }
+
+    /**
+     * @memberof TAHitlistUtils
+     * @instance
+     * @function AddColumn
+     * @description function to add a not text analytics variable to the hitlist
+     * @param {String} columnName - variable qId
+     * @param {Boolean} sortable
+     */
+    function AddColumn(columnName, sortable){
+        var hitlistColumn: HitListColumn = new HitListColumn();
+        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
+
+        hitlistColumn.QuestionnaireElement = project.CreateQuestionnaireElement(columnName);
+        sortable ? (hitlistColumn.IsSortable = true) : null;
+        _hitlist.Columns.Add(hitlistColumn);
+    }
+
+    /**
+     * @memberof TAHitlistUtils
+     * @instance
+     * @function AddConfiguredColumns
+     * @description function to add columns from config
+     */
+    function AddConfiguredColumns(){
+        var hitlistColumn: HitListColumn;
+        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
+        var columns = _folder.GetHitlistColumns();
+        for( var i = 0; i < columns.length; i++){
+            hitlistColumn = new HitListColumn();
+            hitlistColumn.QuestionnaireElement = project.CreateQuestionnaireElement(columns[i]);
+            _hitlist.Columns.Add(hitlistColumn);
+        }
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html new file mode 100644 index 0000000..753427a --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html @@ -0,0 +1,721 @@ + + + + + TALibrary - Documentation + + + + + + + + + + + + + + + + +
+ +

TALibrary

+ + + + + + + +
+ +
+ +

+ TALibrary +

+ +

Class to work with different TAFolders

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TALibrary(globals, folders)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folders + + +Array.<Object> + + + +

Config.TAQuestions

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetFilterQuestions() → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetFolderById(id) → {TAFolder}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TAFolder + + +
+
+ + + + + + + + + +

GetFolders() → {Array.<TAFolder>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<TAFolder> + + +
+
+ + + + + + + + + +

SetCurrentFolder(id)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html new file mode 100644 index 0000000..1c80e93 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html @@ -0,0 +1,155 @@ + + + + + TALibrary.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TALibrary.js

+ + + + + + + +
+
+
/**
+ * @class TALibrary
+ * @classdesc Class to work with different TAFolders
+ *
+ * @constructs TALibrary
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {Object[]} folders - Config.TAQuestions
+ */
+class TALibrary{
+    private var _globals;
+    private var _folders = [];
+    private var _currentFolder: TAFolder;
+    private var _filterQuestions;
+
+
+    function TALibrary(globals,config){
+        _globals = globals;
+        var filterQuestions = TAHelper.GetTagsFromSurvey(globals, config.DS_Main, ["ta_filter"]);
+        _filterQuestions = TAHelper.GetConfiguredVariables(globals, null, config.FilterQuestions, filterQuestions, []);
+        var folder: TAFolder;
+        for(var i = 0 ; i < config.TAQuestions.length; i++){
+                folder = new TAFolder(_globals,i, config);
+                _folders.push(folder);
+            }
+            _currentFolder = _folders[0];
+    }
+
+    /**
+     * @memberof TALibrary
+     * @instance
+     * @function GetFolders
+     * @returns {TAFolder[]}
+     */
+    function GetFolders(){
+        return _folders;
+    }
+
+    /**
+     * @memberof TALibrary
+     * @instance
+     * @function GetFolderById
+     * @param {String} id
+     * @returns {TAFolder}
+     */
+    function GetFolderById(id){
+    var result;
+        if(id){
+            for(var i=0; i<_folders.length; i++){
+                if(_folders[i].GetId() == id){
+                    result = _folders[i];
+                    break;
+                }
+            }
+            if(!result) {
+                throw new Error(201, "incorrect question Id");
+            }
+            return result
+        }else{
+            return _folders[0];
+        }
+    }
+
+    /**
+     * @memberof TALibrary
+     * @instance
+     * @function GetFilterQuestions
+     * @returns {String[]}
+     */
+    function GetFilterQuestions(){
+        return _filterQuestions;
+    }
+
+    /**
+     * @memberof TALibrary
+     * @instance
+     * @function SetCurrentFolder
+     * @param {String} id
+     */
+    function SetCurrentFolder(id){
+        for(var i=0; i<_folders.length; i++){
+            if(_folders[i].id == id){
+                _currentFolder = _folders[i];
+                break;
+            }
+        }
+    }
+
+    static function GetTAFoldersParameterValue(context) {
+        var selectedFolder = null;
+        try {
+            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
+        } catch(e) {
+            selectedFolder = null;
+        } finally {
+            return selectedFolder;
+        }
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html new file mode 100644 index 0000000..c6264dd --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html @@ -0,0 +1,702 @@ + + + + + TAMasks - Documentation + + + + + + + + + + + + + + + + +
+ +

TAMasks

+ + + + + + + +
+ +
+ +

+ TAMasks +

+ +

Class to work with different types of masks for text analytics

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAMasks(globals, folder)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetAllChildrenMask(level) → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

returns all children and grand-children ids for the selected category

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetCategoriesMask(level) → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

returns all categories on the selected level

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + +

GetChildrenMask(level) → {Array.<String>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

returns all children ids for the selected category

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
level + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<String> + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html new file mode 100644 index 0000000..98ce964 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html @@ -0,0 +1,128 @@ + + + + + TAMasks.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAMasks.js

+ + + + + + + +
+
+
/**
+ * @class TAMasks
+ * @classdesc Class to work with different types of masks for text analytics
+ *
+ * @constructs TAMasks
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder
+ */
+class TAMasks{
+    private var _globals;
+    private var _folder: TAFolder;
+
+    function TAMasks(globals, folder){
+        _globals = globals;
+        _folder = folder;
+    }
+
+    /**
+     * @memberof TAMasks
+     * @instance
+     * @function GetCategoriesMask
+     * @description returns all categories on the selected level
+     * @param {String} level
+     * @returns {String[]}
+     */
+    function GetCategoriesMask(level){
+        var mask = [];
+        var levelArray = _folder.GetHierarchy().GetLevelArray(parseInt(level));
+        for(var i = 0; i < levelArray.length; i++){
+            mask.push(levelArray[i].id);
+        }
+        return mask
+    }
+
+    /**
+     * @memberof TAMasks
+     * @instance
+     * @function GetChildrenMask
+     * @description returns all children ids for the selected category
+     * @param {String} level
+     * @returns {String[]}
+     */
+    function GetChildrenMask(category){
+        var mask = [];
+        var childrenArray = _folder.GetHierarchy().GetObjectById(category).subcells;
+        for(var i = 0; i < childrenArray.length; i++){
+            mask.push(childrenArray[i].id);
+        }
+
+        return mask
+    }
+
+    /**
+     * @memberof TAMasks
+     * @instance
+     * @function GetAllChildrenMask
+     * @description returns all children and grand-children ids for the selected category
+     * @param {String} level
+     * @returns {String[]}
+     */
+    function GetAllChildrenMask(category, mask){
+        var mask = mask ? mask : [];
+        var childrenArray = _folder.GetHierarchy().GetObjectById(category).subcells;
+        for(var i = 0; i < childrenArray.length; i++){
+            mask.push(childrenArray[i].id);
+            mask = GetAllChildrenMask(childrenArray[i].id, mask);
+        }
+
+        return mask
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html new file mode 100644 index 0000000..b71f35c --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html @@ -0,0 +1,1516 @@ + + + + + TAParameters - Documentation + + + + + + + + + + + + + + + + +
+ +

TAParameters

+ + + + + + + +
+ +
+ +

+ TAParameters +

+ +

Class to work with parameters using Text analytics variables

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAParameters(globals, library)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

library + + +TALibrary + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addEmptyValue(EmptyValueLabel) → {Array.<Object>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
EmptyValueLabel + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Object> + + +
+
+ + + + + + + + + +

ClearSubcategoriesParameters(folderId, value, categoriesParameter, subcategoriesParameter, attributesParamete)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

clear subcategories andattributes parameters when another parent selected

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
folderId + + +String + + + +
value + + +String + + + +

empty value for that parameter "emptyv"

categoriesParameter + + +String + + + +
subcategoriesParameter + + +String + + + +
attributesParamete + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

MaskSelectedCategoryChildren(mask, folderId, category, addEmpty)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

masking children for the specified category

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mask + + +Mask + + + +
folderId + + +String + + + +
category + + +String + + + +
addEmpty + + +Boolean + + + +
+ + + + + + + + + + + + + + + + + + + + + +

RenderFoldersParameter(parameter)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

render parameter with list of TAFoders using in the report

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
+ + + + + + + + + + + + + + + + + + + + + +

RenderLevelCategoriesParameter(parameter, folderId, level, emptyValueLabel)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

render parameter with list of categories on the specified level

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
folderId + + +String + + + +
level + + +String + + + +
emptyValueLabel + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

RenderLevelsParameter(parameter, folderId, emptyValueLabel)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

render parameter with list of levels in the hierarchy

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
folderId + + +String + + + +
emptyValueLabel + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

RenderViewByParameter(parameter, folderId, emptyValueLabel)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

render parameter with list of questions for the detailed analysis table

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameter + + +Parameter + + + +
folderId + + +String + + + +
emptyValueLabel + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html new file mode 100644 index 0000000..7f39201 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html @@ -0,0 +1,251 @@ + + + + + TAParameters.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAParameters.js

+ + + + + + + +
+
+
/**
+ * @class TAParameters
+ * @classdesc Class to work with parameters using Text analytics variables
+ *
+ * @constructs TAParameters
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TALibrary} library
+ */
+class TAParameters{
+    private var _globals;
+    private var _library: TALibrary;
+    private var _parameterUtilities: ParameterUtilities;
+
+    function TAParameters(globals, library){
+        _globals = globals;
+        _library = library;
+        _parameterUtilities = new ParameterUtilities(_globals);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @private
+     * @function _addEmptyValue
+     * @param {String} EmptyValueLabel
+     * @returns {Object[]}
+     */
+    private function _addEmptyValue(emptyValueLabel){
+            var parameterValues = [];
+        if(emptyValueLabel){
+            parameterValues.push({
+                Code : "emptyv",
+                Label: emptyValueLabel
+            });
+        }
+        return parameterValues
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function RenderFoldersParameter
+     * @description render parameter with list of TAFoders using in the report
+     * @param {Parameter} parameter
+     */
+    function RenderFoldersParameter(parameter){
+        var folders = _library.GetFolders();
+
+        var parameterValues = [];
+
+        for(var i = 0; i < folders.length; i++){
+            parameterValues.push({
+                Code: folders[i].GetId(),
+                Label: folders[i].GetId()
+            });
+        }
+        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function RenderLevelCategoriesParameter
+     * @description render parameter with list of categories on the specified level
+     * @param {Parameter} parameter
+     * @param {String} folderId
+     * @param {String} level
+     * @param {String} emptyValueLabel
+     */
+    function RenderLevelCategoriesParameter(parameter,folderId, level, emptyValueLabel){
+        var categories = _library.
+        GetFolderById(folderId).
+        GetHierarchy().
+        GetLevelArray(level);
+
+        var parameterValues = _addEmptyValue(emptyValueLabel);
+
+        for(var i = 0; i < categories.length; i++){
+            parameterValues.push({
+                Code: categories[i].id,
+                Label: categories[i].name
+            })
+        }
+        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function MaskSelectedCategoryChildren
+     * @description masking children for the specified category
+     * @param {Mask} mask
+     * @param {String} folderId
+     * @param {String} category
+     * @param {Boolean} addEmpty
+     */
+    function MaskSelectedCategoryChildren(mask,folderId,category,addEmpty){
+        var folder = _library.GetFolderById(folderId);
+        var taMasks = new TAMasks(_globals, folder);
+        var children = taMasks.GetChildrenMask(category);
+        mask.Access = ParameterAccessType.Inclusive;
+        if( addEmpty )
+            mask.Keys.Add("emptyv");
+        for ( var i = 0; i< children.length; i++)
+            mask.Keys.Add(children[i]);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function RenderLevelsParameter
+     * @description render parameter with list of levels in the hierarchy
+     * @param {Parameter} parameter
+     * @param {String} folderId
+     * @param {String} emptyValueLabel
+     */
+    function RenderLevelsParameter(parameter, folderId, emptyValueLabel){
+        var levelValues = [
+            {
+                Code: "0",
+                Label: "1st level (category)"
+            },
+            {
+                Code: "1",
+                Label: "2nd level (sub-category)"
+            },
+            {
+                Code: "2",
+                Label: "3rd level (attributes)"
+            }
+        ];
+        var parameterValues = _addEmptyValue(emptyValueLabel);
+        var folder = _library.GetFolderById(folderId);
+        var hierarchy = folder.GetHierarchy();
+        var levelsCount=hierarchy.GetLevelsCount();
+
+        for( var i = 0; i < levelsCount; i++){
+            parameterValues.push( levelValues[i] );
+        }
+
+        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function RenderViewByParameter
+     * @description render parameter with list of questions for the detailed analysis table
+     * @param {Parameter} parameter
+     * @param {String} folderId
+     * @param {String} emptyValueLabel
+     */
+    function RenderViewByParameter(parameter, folderId, emptyValueLabel){
+        var parameterValues = _addEmptyValue(emptyValueLabel);
+        var folder = _library.GetFolderById(folderId);
+        var variables = folder.GetViewByVariables();
+        var project = _globals.report.DataSource.GetProject(folder.GetDatasourceId());
+        var question: Question;
+        for( var i = 0; i < variables.length; i++){
+            question = project.GetQuestion( variables[i] );
+            parameterValues.push({
+                Code: variables[i],
+                Label: question.Title ? question.Title : variables[i]
+            });
+        }
+
+        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
+    }
+
+    /**
+     * @memberof TAParameters
+     * @instance
+     * @function ClearSubcategoriesParameters
+     * @description clear subcategories andattributes parameters when another parent selected
+     * @param {String} folderId
+     * @param {String} value - empty value for that parameter "emptyv"
+     * @param {String} categoriesParameter
+     * @param {String} subcategoriesParameter
+     * @param {String} attributesParamete
+     */
+    function ClearSubcategoriesParameters(folderId, value, categoriesParameter, subcategoriesParameter, attributesParameter){
+        var folder = _library.GetFolderById(folderId);
+        var topCategory = _globals.state.Parameters.GetString(categoriesParameter);
+        var subCategory = _globals.state.Parameters.GetString(subcategoriesParameter);
+        if(subCategory && subCategory != value){
+            if (folder.GetHierarchy().GetObjectById(subCategory).parent != topCategory){
+                _globals.state.Parameters[subcategoriesParameter] = new ParameterValueResponse(value);
+                if ( attributesParameter ){
+                    _globals.state.Parameters[attributesParameter] = new ParameterValueResponse(value);
+                }
+            }
+        }
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html new file mode 100644 index 0000000..dcf5759 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html @@ -0,0 +1,459 @@ + + + + + TATableData - Documentation + + + + + + + + + + + + + + + + +
+ +

TATableData

+ + + + + + + +
+ +
+ +

+ TATableData +

+ +

Class to get Data from built table

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATableData(globals, tableName)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

tableName + + +String + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

GetBlocks() → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get parent rowheader ids

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetTableRowHeaders() → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get rowheaders with ids

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + +
+
    +
  • object with ids, titles and row indexes
  • +
+
+ + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html new file mode 100644 index 0000000..83afd99 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html @@ -0,0 +1,123 @@ + + + + + TATableData.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATableData.js

+ + + + + + + +
+
+
/**
+ * @class TATableData
+ * @classdesc Class to get Data from built table
+ *
+ * @constructs TATableData
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {String} tableName
+ */
+class TATableData{
+    private var _globals;
+    private var _tableName;
+
+    function  TATableData(globals, tableName){
+        _globals = globals;
+        _tableName = tableName
+    }
+
+    /**
+     * @memberof TATableData
+     * @instance
+     * @function GetTableRowHeaders
+     * @description function to get rowheaders with ids
+     * @returns {Object} - object with ids, titles and row indexes
+     */
+    function GetTableRowHeaders(){
+        var rowheaders={
+            length: 0
+        };
+        var rowHeaderTitles = _globals.report.TableUtils.GetRowHeaderCategoryTitles(_tableName);
+        var rowHeaderIds = _globals.report.TableUtils.GetRowHeaderCategoryIds(_tableName);
+        for(var i=0; i<rowHeaderIds.length;i++){
+            rowheaders[rowHeaderIds[i][0]+((rowHeaderIds[i].length>1)?("_block"+rowHeaderIds[i][1]):"")] = {title: rowHeaderTitles[i][0], index: i, categoryId: rowHeaderIds[i][0].toLowerCase(), blockId: ((rowHeaderIds[i].length>1)?("block"+rowHeaderIds[i][1]):null)};
+            rowheaders.length++;
+        }
+        return rowheaders;
+    }
+
+    /**
+     * @memberof TATableData
+     * @instance
+     * @function GetBlocks
+     * @description function to get parent rowheader ids
+     * @returns {String}
+     */
+    function GetBlocks(){
+        var blocks = [];
+        var rowHeaderIds = _globals.report.TableUtils.GetRowHeaderCategoryIds(_tableName);
+        var blockExists = false;
+        if(rowHeaderIds.length >0 && rowHeaderIds[0].length > 1){
+            for(var i=0; i<rowHeaderIds.length; i++){
+                blockExists = false;
+                for(var j = 0; j < blocks.length; j++){
+                    if( ("block"+rowHeaderIds[i][1]) == blocks[j]){
+                        blockExists = true;
+                        break;
+                    }
+                }
+
+                if( !blockExists ){
+                    blocks.push("block"+rowHeaderIds[i][1]);
+                }
+            }
+        }
+        return blocks
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html new file mode 100644 index 0000000..372346b --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html @@ -0,0 +1,2633 @@ + + + + + TATableUtils - Documentation + + + + + + + + + + + + + + + + +
+ +

TATableUtils

+ + + + + + + +
+ +
+ +

+ TATableUtils +

+ +

Class to work with tables using Text Analytics variables

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATableUtils(globals, folder, table)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +
table + + +Table + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _getSumOfCells(cellsNumber, offset) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get formula expression for sum of previous columns

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cellsNumber + + +Number + + + +
offset + + +Number + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

AddClasses(classes)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
classes + + +Array.<String> + + + +
+ + + + + + + + + + + + + + + + + + + + + +

ClearTableDistributions()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to clear distributions presets for table

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

CreateTableFromExpression(rowHeaders, columnHeaders)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to create table from columns and rows expression

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowHeaders + + +String + + + +
columnHeaders + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

GetCategoriesExpression(groupName, addMinus, hideHeader, distribution) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get columnHeaderExpression for total or neg, neu, pos categories

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
groupName + + +String + + + +

"total", "neg", "neu","pos"

addMinus + + +Boolean + + + +

if you want to add minus to negative values

hideHeader + + +Boolean + + + +
distribution + + +String + + + +

0 - for counts, 1 - for percents

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetCategoriesHeader(groupName, addMinus, hideHeader, distribution) → {HeaderCollection}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get columnHeader for total or neg, neu, pos categories

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
groupName + + +String + + + +

"total", "neg", "neu","pos"

addMinus + + +Boolean + + + +

if you want to add minus to negative values

hideHeader + + +Boolean + + + +
distribution + + +String + + + +

0 - for counts, 1 - for percents

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +HeaderCollection + + +
+
+ + + + + + + + + +

GetChartHeader(type, formulas, title) → {HeaderChartCombo}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Header containing Barchart

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +ChartComboType + + + +
formulas + + +Array.<Object> + + + +

array of objects with formulas like {Formula: "cellv(col-25,row)", Color: (Config.Colors.NegNeuPosPalette.Positive)}

title + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +HeaderChartCombo + + +
+
+ + + + + + + + + +

GetTAQuestionExpression(questionType, mask, additionalStatement) → {String}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Expression for header containing Text Analytics variable

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
questionType + + +String + + + +

"overallsentiment", "categories", "positivementions", "negativementions", "categorysentiment"

mask + + +Array.<String> + + + +
additionalStatement + + +String + + + +
+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +String + + +
+
+ + + + + + + + + +

GetTimePeriodHeader(unit, from, to) → {HeaderQuestion}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to get Header for certain time period

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
unit + + +String + + + +

breaking by "d" - for days, "w" - for weeks, "m" - for months, "q" - for quarters, "y" - for years

from + + +Number + + + +

rolling from

to + + +Number + + + +

rolling to

+ + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +HeaderQuestion + + +
+
+ + + + + + + + + +

SetDataSupressing(baseLessThen)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

function to set suppression

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
baseLessThen + + +Number + + + +
+ + + + + + + + + + + + + + + + + + + + + +

SetupConditionalFormatting(conditions, name, applyTo)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
conditions + + +Array.<Object> + + + +

array of objects like { expression: 'cellv(col,row)<(-1)', style: 'negative'}

name + + +String + + + +
applyTo + + +Object + + + +

define area in object like {axis: Area.Columns, direction: Area.Left, indexes: "3"}

+ + + + + + + + + + + + + + + + + + + + + +

SetupDrilldown(parameterId, pageIDs)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameterId + + +String + + + +
pageIDs + + +String + + + +
+ + + + + + + + + + + + + + + + + + + + + +

SetupHideEmptyRows(parameterId)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
parameterId + + +Boolean + + + +
+ + + + + + + + + + + + + + + + + + + + + +

SetupRowsTableSorting(directionAscending, position, topN, positionFromEnd)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
directionAscending + + +Boolean + + + +
position + + +Byte + + + +
topN + + +Number + + + +
positionFromEnd + + +Boolean + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html new file mode 100644 index 0000000..75a0728 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html @@ -0,0 +1,472 @@ + + + + + TATableUtils.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATableUtils.js

+ + + + + + + +
+
+
/**
+ * @class TATableUtils
+ * @classdesc Class to work with tables using Text Analytics variables
+ *
+ * @constructs TATableUtils
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param  {TAFolder} folder
+ * @param {Table} table
+ */
+class TATableUtils{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _table: Table;
+
+    function TATableUtils(globals, folder, table){
+        _globals = globals;
+        _folder = folder;
+        _table = table;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetupRowsTableSorting
+     * @param {Boolean} directionAscending
+     * @param {Byte} position
+     * @param {Number} topN
+     * @param {Boolean} positionFromEnd
+     */
+    function SetupRowsTableSorting(directionAscending: Boolean, position: Byte, topN, positionFromEnd){
+        _table.Sorting.Rows.Enabled = true;
+        _table.Sorting.Rows.SortByType = TableSortByType.Position;
+        _table.Sorting.Rows.Direction = directionAscending ? TableSortDirection.Ascending : TableSortDirection.Descending;
+        _table.Sorting.Rows.Position = position;
+        _table.Sorting.Rows.PositionDirection =  positionFromEnd ? TableSortByPositionType.FromEnd : TableSortByPositionType.FromStart;
+        _table.Sorting.Rows.TopN = topN ? topN : 0;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetupConditionalFormatting
+     * @param {Object[]} conditions - array of objects like { expression: 'cellv(col,row)<(-1)', style: 'negative'}
+     * @param {String} name
+     * @param {Object} applyTo - define area in object like {axis: Area.Columns, direction: Area.Left, indexes: "3"}
+     */
+    function SetupConditionalFormatting(conditions, name, applyTo){
+        var formatter : ConditionalFormatting = _table.ConditionalFormatting;
+
+        var area : Area = new Area();
+
+        area.Name = name;
+        area.ApplyTo(applyTo.axis, applyTo.direction, applyTo.indexes);
+
+        for(var i = 0; i< conditions.length; i++){
+            var condition: Condition = new Condition();
+            condition.Expression = conditions[i].expression;
+            condition.Style = conditions[i].style;
+            area.AddCondition(condition);
+        }
+
+        formatter.AddArea(area);
+
+        _table.ConditionalFormatting = formatter;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetupDrilldown
+     * @param {String} parameterId
+     * @param {String} pageIDs
+     */
+    function SetupDrilldown(parameterId: String, pageIDs){
+        _table.Drilling.Rows.Enabled = true;
+        _table.Drilling.Rows.Type = DrilldownType.SetParameter;
+        _table.Drilling.Rows.ParameterID = parameterId;
+        _table.Drilling.Rows.TargetPages = pageIDs;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetupHideEmptyRows
+     * @param {Boolean} parameterId
+     */
+    function SetupHideEmptyRows(hideEmptyRows){
+        _table.RemoveEmptyHeaders.Rows = hideEmptyRows;
+    }
+
+    /**
+    * @memberof TATableUtils
+    * @instance
+    * @function AddClasses
+    * @param {String[]} classes
+    */
+    function AddClasses(classes){
+        _table.CssClass = ( ( !_table.CssClass ) ? "" : (_table.CssClass + " " ) ) + classes.join(" ");
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @private
+     * @function _getSumOfCells
+     * @description function to get formula expression for sum of previous columns
+     * @param {Number} cellsNumber
+     * @param {Number} offset
+     * @returns {String}
+     */
+    private function _getSumOfCells(cellsNumber,offset){
+        var cellsSum;
+        var cellsValues = [];
+        var columnNumber;
+        for( var i = 1; i <= cellsNumber; i++){
+            columnNumber = i + ( offset ? offset : 0);
+            cellsValues.push(("IF(cellv(col-"+columnNumber+",row) = EMPTYV(), 0, cellv(col-"+columnNumber+",row))"));
+        }
+
+        cellsSum = "IF(("+cellsValues.join('+')+") = 0, EMPTYV(), "+cellsValues.join('+')+")"
+        return cellsSum
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetCategoriesHeader
+     * @description function to get columnHeader for total or neg, neu, pos categories
+     * @param {String} groupName - "total", "neg", "neu","pos"
+     * @param {Boolean} addMinus - if you want to add minus to negative values
+     * @param {Boolean} hideHeader
+     * @param {String} distribution - 0 - for counts, 1 - for percents
+     * @returns {HeaderCollection}
+     */
+    function GetCategoriesHeader(groupName: String, addMinus, hideHeader, distribution, config){
+        var header: HeaderCollection = new HeaderCollection();
+        var headerFormula : HeaderFormula;
+        var headerCategories: HeaderCategories;
+        var categoryTitle: Label;
+        var defaultConfig = {
+            Positive: [8,9,10,11],
+            Neutral: [5,6,7],
+            Negative: [1,2,3,4]
+        };
+        var configuration = config ? config : defaultConfig;
+        if( groupName == "all" ){
+            headerCategories= new HeaderCategories();
+            headerCategories.Mask.Type = MaskType.HideAll;
+            headerCategories.Totals = true;
+
+            headerCategories.HideHeader = hideHeader ? hideHeader : false;
+            header.Add(headerCategories);
+
+        }else{
+
+            headerCategories= new HeaderCategories();
+            headerCategories.Mask.Type = MaskType.ShowCodes;
+            headerCategories.Totals = false;
+            headerCategories.HideData = true;
+
+
+            headerFormula = new HeaderFormula();
+            headerFormula.Type = FormulaType.Expression;
+            headerFormula.Decimals = 0;
+            headerFormula.Priority = 0;
+
+            switch(groupName.toLowerCase()){
+                case "neg":
+                    headerCategories.Mask.Codes = configuration.Negative.join(",");
+                    headerFormula.Expression = _getSumOfCells(configuration.Negative.length)+(addMinus?"*(-1)":"");
+                    categoryTitle = new Label(9, "Negative");
+                    break;
+
+                case "neu":
+                    headerCategories.Mask.Codes = configuration.Neutral.join(",");
+                    headerFormula.Expression = _getSumOfCells(configuration.Neutral.length);
+                    categoryTitle = new Label(9, "Neutral");
+                    break;
+
+                case "pos":
+                    headerCategories.Mask.Codes = configuration.Positive.join(",");
+                    headerFormula.Expression = _getSumOfCells(configuration.Positive.length);
+                    categoryTitle = new Label(9, "Positive");
+                    break;
+            }
+
+
+            headerFormula.Title = categoryTitle;
+
+            headerFormula.HideHeader = hideHeader ? hideHeader : false;
+
+            if(distribution && distribution == "1"){
+                headerCategories.Distributions.Enabled = true;
+                headerCategories.Distributions.Count = false;
+                headerCategories.Distributions.HorizontalPercents = true;
+                headerFormula.Expression +="/100";
+                headerFormula.Percent = true;
+            }
+            header.Add(headerCategories);
+            header.Add(headerFormula);
+        }
+        return header
+    }
+
+
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetCategoriesExpression
+     * @description function to get columnHeaderExpression for total or neg, neu, pos categories
+     * @param {String} groupName - "total", "neg", "neu","pos"
+     * @param {Boolean} addMinus - if you want to add minus to negative values
+     * @param {Boolean} hideHeader
+     * @param {String} distribution - 0 - for counts, 1 - for percents
+     * @returns {String}
+     */
+    function GetCategoriesExpression( groupName: String, addMinus, hideHeader, distribution, config ){
+        var expression = "";
+        var defaultConfig = {
+            Positive: [8,9,10,11],
+            Neutral: [5,6,7],
+            Negative: [1,2,3,4]
+        };
+    var configuration = config ? config : defaultConfig;
+        if( groupName == "all" ){
+            expression = '[CAT]{totals:true';
+            expression += ';mask:emptyv';
+            if ( hideHeader )
+                expression += ';hideheader:true';
+            expression += '}'
+        }else{
+            var categoriesHeader = '[CAT]{totals:false;hidedata:true';
+            var formulaHeader = '[FORMULA]{decimals:0';
+            var formulaExpression;
+            var categoryLabel;
+            switch(groupName.toLowerCase()){
+                case "neg":
+                    formulaExpression = _getSumOfCells(configuration.Negative.length, (configuration.Positive.length+configuration.Neutral.length))+(addMinus?'*(-1)':'');
+                    categoryLabel = '"Negative"';
+                    break;
+
+                case "neu":
+                    formulaExpression = _getSumOfCells(configuration.Neutral.length,(configuration.Positive.length));
+                    categoryLabel = '"Neutral"';
+                    break;
+
+                case "pos":
+                    formulaExpression = _getSumOfCells(configuration.Positive.length,0);
+                    categoryLabel = '"Positive"';
+                    break;
+            }
+
+            if(distribution && distribution == "1"){
+                formulaExpression +="/100";
+                formulaHeader += ";percent:true";
+            }
+
+            formulaHeader += ';label:'+categoryLabel+';expression:"'+formulaExpression+'"';
+
+            if ( hideHeader )
+                formulaHeader += ';hideheader:true';
+            formulaHeader +='}'
+            categoriesHeader += "}"
+            expression = [categoriesHeader, formulaHeader].join("+")
+        }
+        return expression
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetChartHeader
+     * @description function to get Header containing Barchart
+     * @param {ChartComboType} type
+     * @param {Object[]} formulas - array of objects with formulas like {Formula: "cellv(col-25,row)", Color: (Config.Colors.NegNeuPosPalette.Positive)}
+     * @param {String} title
+     * @returns {HeaderChartCombo}
+     */
+    function GetChartHeader(type: ChartComboType, formulas, title){
+        var chartHeader: HeaderChartCombo = new HeaderChartCombo();
+        var chartValues = []
+        chartHeader.TypeOfChart = type;
+        chartHeader.Thickness = "80%";
+        chartHeader.CssClass = "chart-header";
+        chartHeader.ShowTitle = true;
+        chartHeader.Title = new Label(9, title?title:"Chart");
+
+        var chartValue: ChartComboValue;
+        for(var i = 0; i< formulas.length; i++) {
+            chartValue = new ChartComboValue();
+            chartValue.CssClass = "chart-value";
+            chartValue.Expression = formulas[i].Formula;
+            chartValue.BaseColor = new ChartComboColorSet([formulas[i].Color]);
+            chartValues.push(chartValue);
+        }
+
+        chartHeader.Values = chartValues;
+        return chartHeader;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetTAQuestionExpression
+     * @description function to get Expression for header containing Text Analytics variable
+     * @param {String} questionType - "overallsentiment", "categories", "positivementions", "negativementions", "categorysentiment"
+     * @param {String[]} mask
+     * @param {String} additionalStatement
+     * @returns {String}
+     */
+    function GetTAQuestionExpression(questionType, mask, additionalStatement){
+        var rowExpression;
+        var variableId = _folder.GetQuestionId(questionType);
+        rowExpression = variableId+'{id:'+variableId+';collapsed:true;totals:false'+( mask && mask.length > 0 ? (';mask:'+mask.join(",")) : null )+( additionalStatement ? (";"+additionalStatement) : null)+'}';
+        return rowExpression
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function GetTimePeriodHeader
+     * @description function to get Header for certain time period
+     * @param {String} unit - breaking by  "d" - for days, "w" - for weeks, "m" - for months, "q" - for quarters, "y" - for years
+     * @param {Number} from - rolling from
+     * @param {Number} to - rolling to
+     * @returns {HeaderQuestion}
+     */
+    function GetTimePeriodHeader(unit, from, to){
+        var project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
+        var questionnaireElement: QuestionnaireElement = project.CreateQuestionnaireElement(_folder.GetTimeVariableId());
+        var headerTimeSeries: HeaderQuestion;
+
+        headerTimeSeries = new HeaderQuestion(questionnaireElement);
+        headerTimeSeries.TimeSeries.FlatLayout = true;
+        headerTimeSeries.TimeSeries.RollingTimeseries.Enabled = true;
+
+        headerTimeSeries.TimeSeries.Time1 = TimeseriesTimeUnitType.Year;
+        switch (unit.toLowerCase()){
+            case "d":
+                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Month;
+                headerTimeSeries.TimeSeries.Time3 = TimeseriesTimeUnitType.DayOfMonth;
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Day;
+                break;
+            case "w":
+                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Week;
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Week;
+                break;
+            case "m":
+                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Month
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Month;;
+                break;
+            case "q":
+                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Quarter
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Quarter;
+                break;
+            case "y":
+            default:
+                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Year;
+                break;
+        }
+        headerTimeSeries.ShowTotals = false;
+        headerTimeSeries.TimeSeries.RollingTimeseries.From = from;
+        headerTimeSeries.TimeSeries.RollingTimeseries.To = to;
+
+        return headerTimeSeries
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function CreateTableFromExpression
+     * @description function to create table from columns and rows expression
+     * @param {String} rowHeaders
+     * @param {String} columnHeaders
+     */
+    function CreateTableFromExpression(rowHeaders, columnHeaders){
+        var headersArray = [rowHeaders];
+        if( columnHeaders ){
+            headersArray.push( columnHeaders )
+        }
+        var tableExpression = headersArray.join('^');
+        //_table.AddHeaders(_globals.report, Config.DS_Main, tableExpression);
+        _table.AddHeaders(_globals.report, _folder.GetDatasourceId(), tableExpression);
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function ClearTableDistributions
+     * @description function to clear distributions presets for table
+     */
+    function ClearTableDistributions(){
+        _table.Distribution.Count = false;
+        _table.Distribution.VerticalPercents = false;
+        _table.Distribution.HorizontalPercents = false;
+    }
+
+    /**
+     * @memberof TATableUtils
+     * @instance
+     * @function SetDataSupressing
+     * @description function to set suppression
+     * @param {Number} baseLessThen
+     */
+    function SetupDataSupressing(baseLessThan){
+        _table.SuppressData.SuppressData = true;
+        _table.SuppressData.BaseDisplay = BaseDisplayOption.Hide;
+        _table.SuppressData.BaseLessThan = baseLessThan;
+        _table.SuppressData.DistributionMeasure = DistributionMeasureType.InnermostColumn;
+        _table.SuppressData.CellDisplay = BaseDisplayOption.Hide;
+        _table.SuppressData.CellLimit = 1;
+    }
+}
+
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html new file mode 100644 index 0000000..04fa64d --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html @@ -0,0 +1,829 @@ + + + + + TAThemeDistributionTable - Documentation + + + + + + + + + + + + + + + + +
+ +

TAThemeDistributionTable

+ + + + + + + +
+ +
+ +

+ TAThemeDistributionTable +

+ +

Class to work with ThemeDistribution table

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TAThemeDistributionTable(globals, folder, table, sentiment)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFoldee + + + +

Text Analytics folder to build table from

table + + +Table + + + +
sentiment + + +String + + + +

"emptyv", "neg", "neu", "pos"

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addTimeSeriesColum()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _getCountsColumn() → {HeaderCollection}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +HeaderCollection + + +
+
+ + + + + + + + + +

(private) _getHeaderStatistics() → {Header}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Header + + +
+
+ + + + + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupConditionalFormatting}()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html new file mode 100644 index 0000000..65b9a76 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html @@ -0,0 +1,221 @@ + + + + + TAThemeDistributionTable.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TAThemeDistributionTable.js

+ + + + + + + +
+
+
/**
+ * @class TAThemeDistributionTable
+ * @classdesc Class to work with ThemeDistribution table
+ *
+ * @constructs TAThemeDistributionTable
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFoldee} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} sentiment - "emptyv", "neg", "neu", "pos"
+ */
+class TAThemeDistributionTable{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _sentiment;
+    private var _percents;
+    private var _period;
+    private var _config;
+
+    function TAThemeDistributionTable(globals, folder, table, sentiment,config){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _sentiment = sentiment == "emptyv" ? "all" : sentiment;
+
+        _period = {
+            Unit: "m",
+            From: -11,
+            To: 0
+        };
+        _config = config;
+        _render();
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var qType = "categorysentiment";
+        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType);
+
+        _taTableUtils.CreateTableFromExpression(rowexpr);
+        _addTimeSeriesColumn();
+        _setupConditionalFormatting();
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _addTimeSeriesColum
+     */
+    private function _addTimeSeriesColumn(){
+        var headerTimeSeries = _taTableUtils.GetTimePeriodHeader(_period.Unit, _period.From, _period.To);
+        var columnsCollection: HeaderCollection = new HeaderCollection();
+
+        columnsCollection.AddRange(_getCountsColumn());
+        columnsCollection.Add(_getHeaderStatistics());
+
+        headerTimeSeries.SubHeaders.AddRange(columnsCollection);
+        _table.ColumnHeaders.Add(headerTimeSeries);
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _getCountsColumn
+     * @returns {HeaderCollection}
+     */
+    private function _getCountsColumn(){
+        var columnsCollection: HeaderCollection = _taTableUtils.GetCategoriesHeader(_sentiment, false, true, false, Config.SentimentRange);
+        return columnsCollection
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _getHeaderStatistics
+     * @returns {Header}
+     */
+    private function _getHeaderStatistics(){
+        var headerStatistics;
+        if( _sentiment == "all"){
+
+            headerStatistics = new HeaderStatistics();
+            headerStatistics.Statistics.Avg = true;
+
+        }else{
+
+            headerStatistics = new HeaderFormula();
+            headerStatistics.Type = FormulaType.Expression;
+            headerStatistics.Decimals = 0;
+            headerStatistics.Priority = 0;
+
+            switch (_sentiment) {
+                case "neg":
+                    headerStatistics.Expression = "-6";
+                    break;
+
+                case "neu":
+                    headerStatistics.Expression = "0";
+                    break;
+
+                case "pos":
+                    headerStatistics.Expression = "6";
+                    break;
+            }
+        }
+        headerStatistics.HideHeader = true;
+        headerStatistics.HideData = true;
+        return headerStatistics
+    }
+
+    /**
+     * @memberof TAThemeDistributionTable
+     * @private
+     * @instance
+     * @function _setupConditionalFormatting}
+     */
+    private function _setupConditionalFormatting(){
+        _taTableUtils.SetupConditionalFormatting(
+            [
+                {
+                    expression: 'cellv(col+1, row)<('+(_config.SentimentRange.Neutral[0] - 5)+') AND cellv(col,row)<>EMPTYV() ',
+                    style: 'negative'
+                },
+
+                {
+                    expression: '(cellv(col+1, row)>=('+(_config.SentimentRange.Neutral[0] - 5)+')) AND (cellv(col+1, row)<='+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+') AND cellv(col,row)<>EMPTYV()',
+                    style: 'neutral'
+                },
+                {
+                    expression: 'cellv(col+1, row)>'+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+' AND cellv(col,row)<>EMPTYV()',
+                    style: 'positive'
+                }
+            ],
+            "NegNeuPos",
+            {
+                axis: Area.Columns,
+                direction: Area.Left,
+                indexes: "1-1000"
+            }
+        )
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html new file mode 100644 index 0000000..ba438ce --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html @@ -0,0 +1,519 @@ + + + + + TATiles - Documentation + + + + + + + + + + + + + + + + +
+ +

TATiles

+ + + + + + + +
+ +
+ +

+ TATiles +

+ +

Class to work with Tiles on the Detailed analysis page

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATiles(globals, folder, table, sentiment, selectedCategory, distribution)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFoldee + + + +

Text Analytics folder to build table from

table + + +Table + + + +
sentiment + + +String + + + +

"total", "neg", "neu", "pos"

selectedCategory + + +String + + + +
distribution + + +String + + + +

0 for counts, 1 for percents

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html new file mode 100644 index 0000000..068537a --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html @@ -0,0 +1,136 @@ + + + + + TATiles.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATiles.js

+ + + + + + + +
+
+
/**
+ * @class TATiles
+ * @classdesc Class to work with Tiles on the Detailed analysis page
+ *
+ * @constructs TATiles
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFoldee} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} sentiment - "total", "neg", "neu", "pos"
+ * @param {String} selectedCategory
+ * @param {String} distribution - 0 for counts, 1 for percents
+ */
+class TATiles{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _sentiment;
+    private var _distribution;
+    private var _selectedCategory;
+
+
+    function TATiles(globals, folder, table, sentiment, selectedCategory, distribution){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _sentiment = sentiment ? sentiment : "all";
+        _selectedCategory = selectedCategory != "emptyv" ? selectedCategory : "all";
+        _distribution = distribution ? distribution : "0";
+
+        _render();
+    }
+
+    /**
+     * @memberof TATiles
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TATiles
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var qType;
+        var mask;
+        if( _selectedCategory == "all" ){
+            qType = "os"
+            mask = false;
+        }else{
+            qType = "cs"
+            mask = [_selectedCategory];
+        }
+
+        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
+        var columnexpr = _taTableUtils.GetCategoriesExpression( _sentiment, false, true, _distribution);
+        _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr);
+
+        _table.Distribution.Enabled = true;
+        _table.Distribution.VerticalPercents = false;
+
+        if(_distribution == "1" && _sentiment != "all"){
+            _table.Distribution.HorizontalPercents = true;
+            _table.Distribution.Count = false;
+        }else{
+            _table.Distribution.HorizontalPercents = false;
+            _table.Distribution.Count = true;
+        }
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html new file mode 100644 index 0000000..353a74a --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html @@ -0,0 +1,862 @@ + + + + + TATopChangedTable - Documentation + + + + + + + + + + + + + + + + +
+ +

TATopChangedTable

+ + + + + + + +
+ +
+ +

+ TATopChangedTable +

+ +

Class to work with Most improved and most declined tables on the dashboard page

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATopChangedTable(globals, folder, table, sentiment, level, period, topN)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +

Text Analytics folder to build table from

table + + +Table + + + +
sentiment + + +String + + + +

"neg", "pos"

level + + +String + + + +

1, 2 or 3

period + + +String + + + +

m, y, d, w, q

topN + + +Number + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addChartColumn()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _addDifferenceColumn()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _addTimeSeriesColumn()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupSorting()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html new file mode 100644 index 0000000..3de0f7d --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html @@ -0,0 +1,188 @@ + + + + + TATopChangedTable.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATopChangedTable.js

+ + + + + + + +
+
+
/**
+ * @class TATopChangedTable
+ * @classdesc Class to work with Most improved and most declined tables on the dashboard page
+ *
+ * @constructs TATopChangedTable
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} sentiment - "neg", "pos"
+ * @param {String} level - 1, 2 or 3
+ * @param {String} period - m, y, d, w, q
+ * @param {Number} topN
+ */
+class TATopChangedTable{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _level;
+    private var _topN;
+    private var _sentiment;
+    private var _percents;
+    private var _period;
+
+    function TATopChangedTable(globals, folder, table, sentiment, level, period, topN){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _sentiment = sentiment ? true : false;
+        _level = parseInt(level);
+        _topN = topN ? topN : 5;
+        _period = {
+            Unit: period.toLowerCase().substr(0,1),
+            From: -1,
+            To: 0
+        };
+
+        _render();
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var qType = "categorysentiment";
+        var mask = _taMasks.GetCategoriesMask(_level);
+        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
+        _taTableUtils.CreateTableFromExpression(rowexpr);
+
+        _addTimeSeriesColumn();
+        _addDifferenceColumn();
+        _addChartColumn();
+        _setupSorting();
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _addTimeSeriesColumn
+     */
+    private function _addTimeSeriesColumn(){
+        var headerTimeSeries = _taTableUtils.GetTimePeriodHeader(_period.Unit, _period.From, _period.To);
+        var headerStatistics: HeaderStatistics = new HeaderStatistics();
+        headerStatistics.HideHeader = true;
+        headerStatistics.Statistics.Avg = true;
+        headerStatistics.SubHeaders.Add(headerTimeSeries);
+        _table.ColumnHeaders.Add(headerStatistics);
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _addDifferenceColumn
+     */
+    private function _addDifferenceColumn(){
+        var headerFormula: HeaderFormula = new HeaderFormula();
+        headerFormula.Type = FormulaType.Expression;
+        headerFormula.HideData = false;
+        headerFormula.Decimals = 1;
+        headerFormula.Expression = "cellv(col-1,row)-cellv(col-2,row)";
+        headerFormula.Title = new Label(9, " ");
+        headerFormula.HideHeader = true;
+
+        _table.ColumnHeaders.Add(headerFormula);
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _addChartColumn
+     */
+    private function _addChartColumn(){
+        var chartHeader = _taTableUtils.GetChartHeader(
+            ChartComboType.Bar,
+            [{
+                Formula: "cellv(col-1,row)",
+                Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative )
+            }],
+            "Change in avg. score");
+        _table.ColumnHeaders.Add(chartHeader);
+    }
+
+    /**
+     * @memberof TATopChangedTable
+     * @private
+     * @instance
+     * @function _setupSorting
+     */
+    private function _setupSorting(){
+        _taTableUtils.SetupRowsTableSorting( !_sentiment , 3, _topN );
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html new file mode 100644 index 0000000..312f9b8 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html @@ -0,0 +1,679 @@ + + + + + TATopSentimentTable - Documentation + + + + + + + + + + + + + + + + +
+ +

TATopSentimentTable

+ + + + + + + +
+ +
+ +

+ TATopSentimentTable +

+ +

Class to work with Most positive and most negative tables on the dashboard page

+ + +
+ +
+
+ + + + +

Constructor

+ + +

new TATopSentimentTable(globals, folder, table, sentiment, level, topN)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
globals + + +Object + + + +

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder + + +TAFolder + + + +

Text Analytics folder to build table from

table + + +Table + + + +
sentiment + + +String + + + +

"neg", "pos"

level + + +String + + + +

1, 2 or 3

topN + + +Number + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

(private) _addChartColum()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _render()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

(private) _setupSorting()

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GetTATableUtils() → {TATAbleUtils}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +TATAbleUtils + + +
+
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html new file mode 100644 index 0000000..7f2677c --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html @@ -0,0 +1,147 @@ + + + + + TATopSentimentTable.js - Documentation + + + + + + + + + + + + + + + + +
+ +

TATopSentimentTable.js

+ + + + + + + +
+
+
/**
+ * @class TATopSentimentTable
+ * @classdesc Class to work with Most positive and most negative tables on the dashboard page
+ *
+ * @constructs TATopSentimentTable
+ * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
+ * @param {TAFolder} folder - Text Analytics folder to build table from
+ * @param {Table} table
+ * @param {String} sentiment - "neg", "pos"
+ * @param {String} level - 1, 2 or 3
+ * @param {Number} topN
+ */
+class TATopSentimentTable{
+    private var _globals;
+    private var _folder: TAFolder;
+    private var _taTableUtils: TATableUtils;
+    private var _taMasks: TAMasks;
+    private var _table: Table;
+    private var _level;
+    private var _topN;
+    private var _sentiment;
+    private var _distribution;
+
+    function TATopSentimentTable(globals, folder, table, sentiment, level, topN, distribution){
+        _globals = globals;
+        _folder = folder;
+        _taMasks = new TAMasks(globals, folder);
+        _table = table;
+        _taTableUtils = new TATableUtils(globals, folder, table);
+        _sentiment = sentiment ? true : false;
+        _level = parseInt(level);
+        _topN = topN ? topN : 5;
+        _distribution = distribution ? distribution : "0";
+        _render();
+    }
+
+    /**
+     * @memberof TATopSentimentTable
+     * @instance
+     * @function GetTATableUtils
+     * @returns {TATAbleUtils}
+     */
+    function GetTATableUtils(){
+        return _taTableUtils;
+    }
+
+    /**
+     * @memberof TATopSentimentTable
+     * @private
+     * @instance
+     * @function _render
+     */
+    private function _render(){
+        var qType = "categorysentiment";
+        var mask = _taMasks.GetCategoriesMask(_level);
+        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
+        var sentiment = _sentiment ? "pos" : "neg";
+        var columnexpr = _taTableUtils.GetCategoriesExpression( sentiment, false, false, _distribution, Config.SentimentRange );
+        _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr);
+        _addChartColumn();
+        _setupSorting();
+    }
+
+    /**
+     * @memberof TATopSentimentTable
+     * @private
+     * @instance
+     * @function _addChartColum
+     */
+    private function _addChartColumn(){
+        var chartHeader = _taTableUtils.GetChartHeader(
+            ChartComboType.Bar,
+            [{
+                Formula: "cellv(col-1,row)",
+                Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative )
+            }],
+            "Count");
+        _table.ColumnHeaders.Add(chartHeader);
+    }
+
+    /**
+     * @memberof TATopSentimentTable
+     * @private
+     * @instance
+     * @function _setupSorting
+     */
+    private function _setupSorting(){
+        _taTableUtils.SetupRowsTableSorting( false, 2, _topN, true);
+    }
+}
+
+
+ + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + diff --git a/docs/text-analytics-template-codelibrary/0.0.120/index.html b/docs/text-analytics-template-codelibrary/0.0.120/index.html new file mode 100644 index 0000000..bf12c35 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/index.html @@ -0,0 +1,68 @@ + + + + + Home - Documentation + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+

TextAnalyticsTemplate_CodeLibrary

+
+ + + + + + +
+ +
+ +
+ Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. +
+ + + + + \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js new file mode 100644 index 0000000..8d52f7e --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js @@ -0,0 +1,25 @@ +/*global document */ +(function() { + var source = document.getElementsByClassName('prettyprint source linenums'); + var i = 0; + var lineNumber = 0; + var lineId; + var lines; + var totalLines; + var anchorHash; + + if (source && source[0]) { + anchorHash = document.location.hash.substring(1); + lines = source[0].getElementsByTagName('li'); + totalLines = lines.length; + + for (; i < totalLines; i++) { + lineNumber++; + lineId = 'line' + lineNumber; + lines[i].id = lineId; + if (lineId === anchorHash) { + lines[i].className += ' selected'; + } + } + } +})(); diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js new file mode 100644 index 0000000..041e1f5 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js @@ -0,0 +1,2 @@ +PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", +/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js new file mode 100644 index 0000000..eef5ad7 --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p ul { + padding: 0 10px; +} + +nav > ul > li > a { + color: #606; +} + +nav ul ul { + margin-bottom: 10px +} + +nav ul ul + ul { + margin-top: -10px; +} + +nav ul ul a { + color: hsl(207, 1%, 60%); + border-left: 1px solid hsl(207, 10%, 86%); +} + +nav ul ul a, +nav ul ul a:active { + padding-left: 20px +} + +nav h2 { + font-size: 12px; + margin: 0; + padding: 0; +} + +nav > h2 > a { + display: block; + margin: 10px 0 -10px; + color: #606 !important; +} + +footer { + color: hsl(0, 0%, 28%); + margin-left: 250px; + display: block; + padding: 15px; + font-style: italic; + font-size: 90%; +} + +.ancestors { + color: #999 +} + +.ancestors a { + color: #999 !important; +} + +.clear { + clear: both +} + +.important { + font-weight: bold; + color: #950B02; +} + +.yes-def { + text-indent: -1000px +} + +.type-signature { + color: #CA79CA +} + +.type-signature:last-child { + color: #eee; +} + +.name, .signature { + font-family: Consolas, Monaco, 'Andale Mono', monospace +} + +.signature { + color: #fc83ff; +} + +.details { + margin-top: 6px; + border-left: 2px solid #DDD; + line-height: 20px; + font-size: 14px; +} + +.details dt { + width: 120px; + float: left; + padding-left: 10px; +} + +.details dd { + margin-left: 70px; + margin-top: 6px; + margin-bottom: 6px; +} + +.details ul { + margin: 0 +} + +.details ul { + list-style-type: none +} + +.details pre.prettyprint { + margin: 0 +} + +.details .object-value { + padding-top: 0 +} + +.description { + margin-bottom: 1em; + margin-top: 1em; +} + +.code-caption { + font-style: italic; + font-size: 107%; + margin: 0; +} + +.prettyprint { + font-size: 14px; + overflow: auto; +} + +.prettyprint.source { + width: inherit; + line-height: 18px; + display: block; + background-color: #0d152a; + color: #aeaeae; +} + +.prettyprint code { + line-height: 18px; + display: block; + background-color: #0d152a; + color: #4D4E53; +} + +.prettyprint > code { + padding: 15px; +} + +.prettyprint .linenums code { + padding: 0 15px +} + +.prettyprint .linenums li:first-of-type code { + padding-top: 15px +} + +.prettyprint code span.line { + display: inline-block +} + +.prettyprint.linenums { + padding-left: 70px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.prettyprint.linenums ol { + padding-left: 0 +} + +.prettyprint.linenums li { + border-left: 3px #34446B solid; +} + +.prettyprint.linenums li.selected, .prettyprint.linenums li.selected * { + background-color: #34446B; +} + +.prettyprint.linenums li * { + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} + +.params, .props { + border-spacing: 0; + border: 1px solid #ddd; + border-collapse: collapse; + border-radius: 3px; + box-shadow: 0 1px 3px rgba(0,0,0,0.1); + width: 100%; + font-size: 14px; + margin: 1em 0; +} + +.params .type { + white-space: nowrap; +} + +.params code { + white-space: pre; +} + +.params td, .params .name, .props .name, .name code { + color: #4D4E53; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 100%; +} + +.params td, .params th, .props td, .props th { + margin: 0px; + text-align: left; + vertical-align: top; + padding: 10px; + display: table-cell; +} + +.params td { + border-top: 1px solid #eee +} + +.params thead tr, .props thead tr { + background-color: #fff; + font-weight: bold; +} + +.params .params thead tr, .props .props thead tr { + background-color: #fff; + font-weight: bold; +} + +.params td.description > p:first-child, .props td.description > p:first-child { + margin-top: 0; + padding-top: 0; +} + +.params td.description > p:last-child, .props td.description > p:last-child { + margin-bottom: 0; + padding-bottom: 0; +} + +span.param-type, .params td .param-type, .param-type dd { + color: #606; + font-family: Consolas, Monaco, 'Andale Mono', monospace +} + +.param-type dt, .param-type dd { + display: inline-block +} + +.param-type { + margin: 14px 0; +} + +.disabled { + color: #454545 +} + +/* navicon button */ +.navicon-button { + display: none; + position: relative; + padding: 2.0625rem 1.5rem; + transition: 0.25s; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + opacity: .8; +} +.navicon-button .navicon:before, .navicon-button .navicon:after { + transition: 0.25s; +} +.navicon-button:hover { + transition: 0.5s; + opacity: 1; +} +.navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after { + transition: 0.25s; +} +.navicon-button:hover .navicon:before { + top: .825rem; +} +.navicon-button:hover .navicon:after { + top: -.825rem; +} + +/* navicon */ +.navicon { + position: relative; + width: 2.5em; + height: .3125rem; + background: #000; + transition: 0.3s; + border-radius: 2.5rem; +} +.navicon:before, .navicon:after { + display: block; + content: ""; + height: .3125rem; + width: 2.5rem; + background: #000; + position: absolute; + z-index: -1; + transition: 0.3s 0.25s; + border-radius: 1rem; +} +.navicon:before { + top: .625rem; +} +.navicon:after { + top: -.625rem; +} + +/* open */ +.nav-trigger:checked + label:not(.steps) .navicon:before, +.nav-trigger:checked + label:not(.steps) .navicon:after { + top: 0 !important; +} + +.nav-trigger:checked + label .navicon:before, +.nav-trigger:checked + label .navicon:after { + transition: 0.5s; +} + +/* Minus */ +.nav-trigger:checked + label { + -webkit-transform: scale(0.75); + transform: scale(0.75); +} + +/* × and + */ +.nav-trigger:checked + label.plus .navicon, +.nav-trigger:checked + label.x .navicon { + background: transparent; +} + +.nav-trigger:checked + label.plus .navicon:before, +.nav-trigger:checked + label.x .navicon:before { + -webkit-transform: rotate(-45deg); + transform: rotate(-45deg); + background: #FFF; +} + +.nav-trigger:checked + label.plus .navicon:after, +.nav-trigger:checked + label.x .navicon:after { + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + background: #FFF; +} + +.nav-trigger:checked + label.plus { + -webkit-transform: scale(0.75) rotate(45deg); + transform: scale(0.75) rotate(45deg); +} + +.nav-trigger:checked ~ nav { + left: 0 !important; +} + +.nav-trigger:checked ~ .overlay { + display: block; +} + +.nav-trigger { + position: fixed; + top: 0; + clip: rect(0, 0, 0, 0); +} + +.overlay { + display: none; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: 100%; + background: hsla(0, 0%, 0%, 0.5); + z-index: 1; +} + +@media only screen and (min-width: 320px) and (max-width: 680px) { + body { + overflow-x: hidden; + } + + nav { + background: #FFF; + width: 250px; + height: 100%; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: -250px; + z-index: 3; + padding: 0 10px; + transition: left 0.2s; + } + + .navicon-button { + display: inline-block; + position: fixed; + top: 1.5em; + right: 0; + z-index: 2; + } + + #main { + width: 100%; + min-width: 360px; + } + + #main h1.page-title { + margin: 1em 0; + } + + #main section { + padding: 0; + } + + footer { + margin-left: 0; + } +} + +/** Add a '#' to static members */ +[data-type="member"] a::before { + content: '#'; + display: inline-block; + margin-left: -14px; + margin-right: 5px; +} diff --git a/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css b/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css new file mode 100644 index 0000000..d9521ec --- /dev/null +++ b/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css @@ -0,0 +1,79 @@ +.pln { + color: #ddd; +} + +/* string content */ +.str { + color: #61ce3c; +} + +/* a keyword */ +.kwd { + color: #fbde2d; +} + +/* a comment */ +.com { + color: #aeaeae; +} + +/* a type name */ +.typ { + color: #8da6ce; +} + +/* a literal value */ +.lit { + color: #fbde2d; +} + +/* punctuation */ +.pun { + color: #ddd; +} + +/* lisp open bracket */ +.opn { + color: #000000; +} + +/* lisp close bracket */ +.clo { + color: #000000; +} + +/* a markup tag name */ +.tag { + color: #8da6ce; +} + +/* a markup attribute name */ +.atn { + color: #fbde2d; +} + +/* a markup attribute value */ +.atv { + color: #ddd; +} + +/* a declaration */ +.dec { + color: #EF5050; +} + +/* a variable name */ +.var { + color: #c82829; +} + +/* a function name */ +.fun { + color: #4271ae; +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; +} From 714b55203f84250dc76e26bf0dfd1486dfd652a8 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 11:59:46 +0300 Subject: [PATCH 006/224] docs --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 472556c..b086f88 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "text-analytics-template-codelibrary", + "name": "TextAnalyticsTemplate_CodeLibrary", "version": "0.0.120", "description": "Text analytics template Codelibrary", "main": "index.js", "scripts": { "test": "", "docs": "node_modules/.bin/jsdoc --configure jsdoc.conf --verbose", - "docs-commit": "git subtree push --prefix docs/text-analytics-template-codelibrary origin gh-pages" + "docs-commit": "git subtree push --prefix docs/TextAnalyticsTemplate_CodeLibrary/0.0.120 origin gh-pages" }, "repository": { "type": "git", From a5a4f0ed31225b6b1ebb05ce77fe258e78c6f221 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 12:06:37 +0300 Subject: [PATCH 007/224] docs --- .../0.0.120/Config.html | 1245 ----- .../0.0.120/FilterComponents.html | 1025 ---- .../0.0.120/FilterComponents.js.html | 204 - .../0.0.120/Filters.html | 709 --- .../0.0.120/Hierarchy.html | 1573 ------ .../0.0.120/Hierarchy.js.html | 265 - .../0.0.120/JSON.html | 653 --- .../0.0.120/JSON.js.html | 128 - .../0.0.120/PageMaster.html | 1162 ---- .../0.0.120/Page_comments.html | 2618 --------- .../0.0.120/Page_dashboard.html | 4905 ----------------- .../0.0.120/Page_detailed_analysis.html | 2821 ---------- .../0.0.120/Page_filters.html | 1781 ------ .../0.0.120/ParameterUtilities.html | 817 --- .../0.0.120/ParameterUtilities.js.html | 156 - .../0.0.120/Parameters.html | 1877 ------- .../0.0.120/ReportMaster.html | 1005 ---- .../0.0.120/Static_Config.js.html | 226 - .../0.0.120/Static_Filters.js.html | 127 - .../0.0.120/Static_PageMaster.js.html | 162 - .../0.0.120/Static_Page_comments.js.html | 411 -- .../0.0.120/Static_Page_dashboard.js.html | 485 -- .../Static_Page_detailed_analysis.js.html | 339 -- .../0.0.120/Static_Page_filters.js.html | 208 - .../0.0.120/Static_Parameters.js.html | 226 - .../0.0.120/Static_ReportMaster.js.html | 122 - .../0.0.120/TADetailedAnalysisTable.html | 999 ---- .../0.0.120/TADetailedAnalysisTable.js.html | 330 -- .../0.0.120/TAFilters.html | 828 --- .../0.0.120/TAFilters.js.html | 155 - .../0.0.120/TAFolder.html | 1012 ---- .../0.0.120/TAFolder.js.html | 216 - .../0.0.120/TAHelper.html | 1121 ---- .../0.0.120/TAHelper.js.html | 187 - .../0.0.120/TAHitlistUtils.html | 691 --- .../0.0.120/TAHitlistUtils.js.html | 135 - .../0.0.120/TALibrary.html | 721 --- .../0.0.120/TALibrary.js.html | 155 - .../0.0.120/TAMasks.html | 702 --- .../0.0.120/TAMasks.js.html | 128 - .../0.0.120/TAParameters.html | 1516 ----- .../0.0.120/TAParameters.js.html | 251 - .../0.0.120/TATableData.html | 459 -- .../0.0.120/TATableData.js.html | 123 - .../0.0.120/TATableUtils.html | 2633 --------- .../0.0.120/TATableUtils.js.html | 472 -- .../0.0.120/TAThemeDistributionTable.html | 829 --- .../0.0.120/TAThemeDistributionTable.js.html | 221 - .../0.0.120/TATiles.html | 519 -- .../0.0.120/TATiles.js.html | 136 - .../0.0.120/TATopChangedTable.html | 862 --- .../0.0.120/TATopChangedTable.js.html | 188 - .../0.0.120/TATopSentimentTable.html | 679 --- .../0.0.120/TATopSentimentTable.js.html | 147 - .../0.0.120/index.html | 68 - .../0.0.120/scripts/linenumber.js | 25 - .../scripts/prettify/Apache-License-2.0.txt | 202 - .../0.0.120/scripts/prettify/lang-css.js | 2 - .../0.0.120/scripts/prettify/prettify.js | 28 - .../0.0.120/styles/jsdoc.css | 645 --- .../0.0.120/styles/prettify.css | 79 - 61 files changed, 42714 deletions(-) delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Config.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Filters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/JSON.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Parameters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableData.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATiles.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/index.html delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/styles/jsdoc.css delete mode 100644 docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Config.html b/docs/text-analytics-template-codelibrary/0.0.120/Config.html deleted file mode 100644 index bcd7ae1..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Config.html +++ /dev/null @@ -1,1245 +0,0 @@ - - - - - Config - Documentation - - - - - - - - - - - - - - - - -
- -

Config

- - - - - - - -
- -
- -

- Config -

- -

Contains configuration for the report.

- - -
- -
-
- - - - -

Constructor

- - -

new Config()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
Properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
DS_Main - - -String - - - -

value for datasource Id

CustomerLogo - - -String - - - -

link to the logo

CustomDateFormat - - -String - - - -

string that represents Date format which will be used in the report

TimeVariableId - - -String - - - -

date variable Id to use for trending tables and time variables. "interview_start" by default

VariablesToViewBy - - -Array.<String> - - - -

variables to break the detailed analysis table by. If not "null" will override values from survey tags

HitlistColumns - - -Array.<String> - - - -

variables to add to the end of the hitlist. If not "null" will override values from survey tags

FiltersQuestion - - -Array.<String> - - - -

variables for Filters page. If not "null" will override values from survey tags

Colors - - -Object - - - -

color palettes using in the report

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
DefaultColor - - -String - - - -

color for header

NegNeuPosPalette - - -Object - - - -

palette for negative - neutral - positive breaking

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
Negative - - -String - - - -

Negative color

Neutral - - -String - - - -

Neutral color

Positive - - -String - - - -

Positive color

- -
- -
SentimentRange - - -Object - - - -

negative - neutral - positive breaking by sentiment

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
Positive - - -Array.<Number> - - - -

array of positive sentiment's values

Neutral - - -Array.<Number> - - - -

array of neutral sentiment's values

Negative - - -Array.<Number> - - - -

array of negative sentiment's values

- -
TAQuestions - - -Array.<Object> - - - -

array of Text Analytics configurations for each verbatim question

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
DatasourceId - - -String - - - -

override DS_Main from config

DatabaseSchemaId - - -Number - - - -

id of the schema containing Text Analytics model

DatabaseTableName - - -String - - - -

name of the table containing Text Analytics model

IdColumnName - - -String - - - -

name of the column containing category id. "id" by default

TextColumnName - - -String - - - -

name of the column containing category name. "__l9" by default

RelationshipColumnName - - -String - - - -

name of the column containing parent id for subcategories and attributes. "parent" by default

TextSeparator - - -String - - - -

symbol which separate Parent and children names in the flat category name

TAFolderId - - -String - - - -

unique Id for each Text Analytics set

TAQuestionName - - -String - - - -

verbatim variable id

TAModelNo - - -String - - - -

model number used for Text Analytics

TimeVariableId - - -String - - - -

date variable Id to use for trending tables and time variables. Overrides Config value

VariablesToViewBy - - -Array.<String> - - - -

variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config

HitlistColumns - - -Array.<String> - - - -

variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config

- -
- - - - - - -
-

Config class that doesn't have a constructor.

-
- - - - - - - - - -
Example
- -
static var DS_Main = "ds0";
    static var CustomerLogo = null;
    static var CustomDateFormat = 'dd-MMM-yyyy';
    static var TimeVariableId = 'interview_start';
    static var  VariablesToViewBy = ["type", "source"];
    static var  HitlistColumns = ["membership_level"];
    static var FiltersQuestions = null;

    static var Colors = {
           DefaultColor: "#ffff00",
           NegNeuPosPalette: {
               Negative: "#fd9900",
               Neutral: "#cdd1d9",
               Positive: "#7cc700"
           }
       };

    static var SentimentRange = {
           Positive: [8,9,10,11],
           Neutral: [5,6,7],
           Negative: [1,2,3,4]
       }

    static var TAQuestions = [
    {
        DatasourceId: "ds0",

        DatabaseSchemaId: 4909,
        DatabaseTableName: "Retail 785",
        RelationshipColumnName: "parent",
        TextSeparator: "|",

        TAFolderId: "why785",
        TAQuestionName: "why",
        TAModelNo: "785",

        TimeVariableId: 'interview_start'
    }
    ];
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) GetTALibrary()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function that returns TALibrary from Config

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(static) SetTaLibrary(globals)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function that processes config and cashes all Text Analitycs data

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html deleted file mode 100644 index 63daf79..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.html +++ /dev/null @@ -1,1025 +0,0 @@ - - - - - FilterComponents - Documentation - - - - - - - - - - - - - - - - -
- -

FilterComponents

- - - - - - - -
- -
- -

- FilterComponents -

- -

Class to process filters on Filter page

- - -
- -
-
- - - - -

Constructor

- - -

new FilterComponents(globals, questionsArray, dataSource)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

questionsArray - - -Array.<String> - - - -
dataSource - - -String - - - -

ds id

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

ClearFilters()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to set all filter parameters to null

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetAllAnsweredFilterCodes() → {Array.<Object>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get selected filters information

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - -
-
    -
  • array of Objects with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
  • -
-
- - - -
-
- Type -
-
- -Array.<Object> - - -
-
- - - - - - - - - -

GetFilterInformation(filterNumber) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get filter information

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - -
-
    -
  • Object with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
  • -
-
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

GetFilterQuestion(filterNumber) → {Question}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Question object for the particular filter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Question - - -
-
- - - - - - - - - -

GetFilterTitle(filterNumber) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Title for the particular filter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetGlobalsFilterExpression() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get filter expression for all selected filters

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html b/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html deleted file mode 100644 index 5da05ac..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/FilterComponents.js.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - FilterComponents.js - Documentation - - - - - - - - - - - - - - - - -
- -

FilterComponents.js

- - - - - - - -
-
-
/**
- * @class FilterComponents
- * @classdesc Class to process filters on Filter page
- *
- * @constructs FilterComponents
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {String[]} questionsArray
- * @param {String} dataSource - ds id
- */
-
-class FilterComponents{
-    private var _globals;
-    private var _filterQuestions;
-    private var _parameterUtilities;
-
-
-    function FilterComponents(globals,questionsArray, dataSource){
-        _globals = globals;
-        _filterQuestions = [];
-        var project  = _globals.report.DataSource.GetProject(dataSource);
-        for( var i = 0; i < questionsArray.length; i++ ){
-            _filterQuestions.push(project.GetQuestion( questionsArray[i]))
-        }
-
-        _parameterUtilities = new ParameterUtilities(_globals);
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetFilterQuestion
-     * @description function to get Question object for the particular filter
-     * @param {Number} filterNumber
-     * @returns {Question}
-     */
-    function GetFilterQuestion(filterNumber){
-        var filterQuestion = false;
-        if(_filterQuestions.length > filterNumber && ( _filterQuestions[(filterNumber)].QuestionType == QuestionType.Multi || _filterQuestions[(filterNumber)].QuestionType == QuestionType.Single )){
-            var filterQuestion = _filterQuestions[(filterNumber)];
-        }
-
-        return filterQuestion
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetFilterTitle
-     * @description function to get Title for the particular filter
-     * @param {Number} filterNumber
-     * @returns {String}
-     */
-    function GetFilterTitle(filterNumber){
-        var filterQuestion = GetFilterQuestion(filterNumber);
-        var label = "";
-        if(filterQuestion)
-            var label = filterQuestion.Title ? filterQuestion.Title : filterQuestion.QuestionId;
-
-        return label
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetGlobalsFilterExpression
-     * @description function to get filter expression for all selected filters
-     * @returns {String}
-     */
-    function GetGlobalsFilterExpression(){
-        var fExpr;
-        var filterExpressionSegments = [];
-        var codes = GetAllAnsweredFilterCodes()
-        for (var i = 0; i < codes.length; i++){
-            if( codes[i].questionType == QuestionType.Multi ) {
-                filterExpressionSegments.push ('ANY(' + codes[i].questionId + ',"' + codes[i].values.join('","') + '")');
-            }
-            else
-            {
-                filterExpressionSegments.push ('IN(' + codes[i].questionId + ',"' + codes[i].values.join('","') + '")');
-            }
-        }
-
-        fExpr = filterExpressionSegments.join(" AND ")
-        return fExpr
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetAllAnsweredFilterCodes
-     * @description function to get selected filters information
-     * @returns {Object[]} - array of Objects with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
-     */
-    function GetAllAnsweredFilterCodes(){
-        var answeredCodes = [];
-        for (var i = 0; i < _filterQuestions.length; i++){
-            var codes = GetFilterInformation(i);
-            if(codes && codes.values.length > 0){
-                answeredCodes.push(codes);
-            }
-        }
-        return answeredCodes
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function GetFilterInformation
-     * @description function to get filter information
-     * @param {Number} filterNumber
-     * @returns {Object} - Object with Filter information and answers like { questionTitle: "Title", questionId: "qId", values: [1,2], texts: ["one", "two"]}
-     */
-    function GetFilterInformation(filterNumber){
-        var result = false;
-        var parameterName = 'FILTER' + (filterNumber +1);
-        var codes = _parameterUtilities.GetParameterCodes(parameterName);
-        if ( codes.length > 0 ){
-            var fTitle = GetFilterTitle(filterNumber);
-            var fId = _filterQuestions[filterNumber].QuestionId;
-            var fType = _filterQuestions[filterNumber].QuestionType
-            result = {
-                questionTitle: fTitle,
-                questionId: fId,
-                questionType: fType,
-                values: [],
-                texts: []
-            };
-            for ( var i = 0; i < codes.length; i++){
-                result.values.push(codes[i]);
-                result.texts.push(_filterQuestions[filterNumber].GetAnswer(codes[i]).Text)
-            }
-        }
-        return result
-    }
-
-    /**
-     * @memberof FilterComponents
-     * @instance
-     * @function ClearFilters
-     * @description function to set all filter parameters to null
-     */
-    function ClearFilters(){
-        for (var i = 0; i < _filterQuestions.length; i++){
-            _globals.state.Parameters["FILTER"+(i+1)] = null;
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Filters.html b/docs/text-analytics-template-codelibrary/0.0.120/Filters.html deleted file mode 100644 index e842ab6..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Filters.html +++ /dev/null @@ -1,709 +0,0 @@ - - - - - Filters - Documentation - - - - - - - - - - - - - - - - -
- -

Filters

- - - - - - - -
- -
- -

- Filters -

- -

Static class for Reportal Filter Components

- - -
- -
-
- - - - -

Constructor

- - -

new Filters()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) DateFilter(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to filtrate selected dates

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) FilterPageFilter(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to filtrate selected values on the filterpage

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TAHitlistSentimentFilter(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to filtrate only selected sentiment in the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TASelectedCategoryFilter(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to filtrate only selected category in the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html deleted file mode 100644 index 97509bb..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.html +++ /dev/null @@ -1,1573 +0,0 @@ - - - - - Hierarchy - Documentation - - - - - - - - - - - - - - - - -
- -

Hierarchy

- - - - - - - -
- -
- -

- Hierarchy -

- -

Class to create Hierarchical structure from database table

- - -
- -
-
- - - - -

Constructor

- - -

new Hierarchy(globals, settings)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

settings - - -Object - - - -

object containing idColumnName, textColumnName, relationshipColumnName, textSeparator

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _createFlatEntry(row) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

creating object from db table row

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
row - - -Object - - - -

db table row

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

(private) _generateFlatList(rows)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

creating list of rows for variable _flat

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rows - - -Array.<Object> - - - -

list of rows from db table

- - - - - - - - - - - - - - - - - - - - - -

(private) _getDataTable() → {DataTable}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get DataTable from DatabaseDesigner

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -DataTable - - -
-
- - - - - - - - - -

(private) _mergeOptions(obj1, obj2) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to merge two sets of settings

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
obj1 - - -Object - - - -
obj2 - - -Object - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

(private) _setupHierarchy(level, parentObj)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

recursive function to parse db table to hierarchical view

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -Number - - - -
parentObj - - -Number - - - -
- - - - - - - - - - - - - - - - - - - - - -

GetFlatArray() → {Number}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Array of rows from db table

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Number - - -
-
- - - - - - - - - -

GetHierarchyArray() → {Array.<Object>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Array of hierarchical objects

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<Object> - - -
-
- - - - - - - - - -

GetLevelArray(level) → {Array.<Object>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Array of hierarchical objects of particular level

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<Object> - - -
-
- - - - - - - - - -

GetLevelsCount() → {Number}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Count of levels in the hierarchy

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Number - - -
-
- - - - - - - - - -

GetObjectById(id) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get particular row from db table

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html deleted file mode 100644 index 1792839..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Hierarchy.js.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - Hierarchy.js - Documentation - - - - - - - - - - - - - - - - -
- -

Hierarchy.js

- - - - - - - -
-
-
/**
- * @class Hierarchy
- * @classdesc Class to create Hierarchical structure from database table
- *
- * @constructs Hierarchy
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {Object} settings - object containing idColumnName, textColumnName, relationshipColumnName, textSeparator
- *
- */
-class Hierarchy{
-    private var _globals;
-    private var _settings;
-
-    private var _hierarchy = [];
-    private var _levels = [];
-    private var _flat = [];
-    private var _flatObject = {};
-
-    private var _defaultSettings = {
-        idColumnName: "id",
-        textColumnName: "__l9",
-        relationshipColumnName: "parent",
-        textSeparator: "|"
-    };
-
-    function Hierarchy(globals, settings) {
-        _globals = globals;
-        _settings = _mergeOptions(_defaultSettings, settings);
-        globals.log.LogDebug(_settings.schemaId);
-        var dataTable = _getDataTable();
-        _generateFlatList(dataTable.Rows)
-        _setupHierarchy(0, null);
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _mergeOptions
-     * @description function to merge two sets of settings
-     * @param {Object} obj1
-     * @param {Object} obj2
-     * @returns {Object}
-     */
-    private function _mergeOptions(obj1, obj2) {
-        var obj3 = {};
-        for (var attrname in obj1) {
-            obj3[attrname] = obj1[attrname];
-        }
-        for (var attrname in obj2) {
-            obj3[attrname] = obj2[attrname];
-        }
-        return obj3;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _getDataTable
-     * @description function to get DataTable from DatabaseDesigner
-     * @returns {DataTable}
-     */
-    private function _getDataTable() {
-        var schema = _globals.confirmit.GetDBDesignerSchema(_settings.schemaId);
-        var table = schema.GetDBDesignerTable(_settings.tableName);
-        var dataTable = table.GetDataTable();
-        return dataTable;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _generateFlatList
-     * @description creating list of rows for variable _flat
-     * @param {Object[]} rows - list of rows from db table
-     */
-    private function _generateFlatList(rows) {
-        for(var i = 0; i < rows.Count; ++i) {
-            var flatEntry = _createFlatEntry(rows[i]);
-            _flat.push(flatEntry);
-        }
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _createFlatEntry
-     * @description creating object from db table row
-     * @param {Object} row - db table row
-     * @returns {Object}
-     */
-    private function _createFlatEntry(row) {
-        var name = TAHelper.GetSelfName(row[_settings.textColumnName], _settings.textSeparator, _globals.log);
-        var flatEntry = {
-            id: row[_settings.idColumnName].toLowerCase(),
-            text: row[_settings.textColumnName],
-            name: name,
-            parent: row[_settings.relationshipColumnName] ? row[_settings.relationshipColumnName].toLowerCase() : null
-        };
-        return flatEntry;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetHierarchyArray
-     * @description function to get Array of hierarchical objects
-     * @returns {Object[]}
-     */
-    function GetHierarchyArray() {
-        return _hierarchy;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetLevelArray
-     * @description function to get Array of hierarchical objects of particular level
-     * @param {Number} level
-     * @returns {Object[]}
-     */
-    function GetLevelArray(level) {
-        if(_levels.length > level) {
-            return _levels[level];
-        }else{
-            throw new Error(201, "Hierarchy level index is out of range");
-        }
-
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetLevelsCount
-     * @description function to get Count of levels in the hierarchy
-     * @returns {Number}
-     */
-    function GetLevelsCount() {
-        return _levels.length
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetFlatArray
-     * @description function to get Array of rows from db table
-     * @returns {Number}
-     */
-    function GetFlatArray() {
-        return _flat;
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @instance
-     * @function GetObjectById
-     * @description function to get particular row from db table
-     * @param {String} id
-     * @returns {Object}
-     */
-    function GetObjectById(id) {
-        if(_flatObject[id]) {
-            return _flatObject[id];
-        }else{
-            throw new Error(201, "Hierarchy object id doesn't exist");
-        }
-    }
-
-    /**
-     * @memberof Hierarchy
-     * @private
-     * @instance
-     * @function _setupHierarchy
-     * @description recursive function to parse db table to hierarchical view
-     * @param {Number} level
-     * @param {Number} parentObj
-     */
-    private function _setupHierarchy( level, parentObj ) {
-        var parentObjId = parentObj ? parentObj.id  : "";
-
-        for(var i = 0; i < _flat.length; ++i) {
-            if( ( !parentObj && !_flat[i].parent ) || parentObjId.CompareTo( _flat[i].parent ? _flat[i].parent : "" ) == 0) {
-                var newObj = {
-                    id: _flat[i].id,
-                    text: _flat[i].text,
-                    name: _flat[i].name,
-                    parent: parentObjId,
-                    subcells: []
-                };
-                if( _levels.length <= level ) {
-                    _levels.push( [] );
-                }
-                _setupHierarchy( (level+1), newObj );
-                if( !parentObj ) {
-                    _hierarchy.push( newObj );
-                }
-                else {
-                    parentObj.subcells.push( newObj );
-                }
-                _levels[ level ].push( newObj );
-                _flatObject[ newObj.id ] = newObj;
-            }
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/JSON.html b/docs/text-analytics-template-codelibrary/0.0.120/JSON.html deleted file mode 100644 index 606bebb..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/JSON.html +++ /dev/null @@ -1,653 +0,0 @@ - - - - - JSON - Documentation - - - - - - - - - - - - - - - - -
- -

JSON

- - - - - - - -
- -
- -

- JSON -

- -

Class with functions Helping working with reportal objects like JSON objects

- - -
- -
-
- - - - -

Constructor

- - -

new JSON()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private, static) _escapeEntities(str) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to replace some chars

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
str - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

(static) print(config, configName) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to create js variable from reportal object

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - - -Object - - - -

reportal object

configName - - -String - - - -

name for the js variable ('config' by degault)

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

(static) stringify(obj) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

implement JSON.stringify serialization

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
obj - - -Object - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html b/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html deleted file mode 100644 index 3ab7bd3..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/JSON.js.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - JSON.js - Documentation - - - - - - - - - - - - - - - - -
- -

JSON.js

- - - - - - - -
-
-
/**
-* @class JSON
-* @classdesc Class with functions Helping working with reportal objects like JSON objects
-*/
-class JSON
-{
-    /**
-     * @memberof JSON
-     * @function stringify
-     * @description implement JSON.stringify serialization
-     * @param {Object} obj
-     * @returns {String}
-     */
-    static function stringify(obj) {
-
-        var t = typeof (obj);
-        if (t != "object" || obj === null) {
-            // simple data type
-            if (t == "string") obj = '"'+ _escapeEntities(obj) +'"';
-            else if(t=="number") obj = '"'+obj+'"';
-            return String(obj);
-        }
-        else {
-            // recurse array or object
-            var n, v, json = [], arr = (obj && obj.constructor == Array);
-            for (n in obj) {
-                v = obj[n]; t = typeof(v);
-                if (t == "string"){
-                    v = '"'+ _escapeEntities(v) +'"';
-                }
-                else if (t == "object" && v !== null) v = stringify(v);
-                json.push((arr ? "" : '"' + n + '":') + String(v));
-            }
-            return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
-        }
-    };
-
-    /**
-     * @memberof JSON
-     * @private
-     * @function _escapeEntities
-     * @description function to replace some chars
-     * @param {String} str
-     * @returns {String}
-     */
-    private static function _escapeEntities(str) {
-        var entitiesMap = {
-            '<': '&lt;',
-            '>': '&gt;',
-            '&': '&amp;',
-            '\"': '\\&quot;',
-            '\'':'&amp;apos;'
-        };
-        return str.replace(/[&<>\"\']/g, function(key) {
-            return entitiesMap[key];
-        });
-    }
-
-    /**
-     * @memberof JSON
-     * @function print
-     * @description function to create js variable from reportal object
-     * @param {Object} config - reportal object
-     * @param {String} configName - name for the js variable ('config' by degault)
-     * @returns {String}
-     */
-    static function print(config, configName){ // JSON.print prints JSON `config` to page as JavaScript variable with a specified `configName`
-        var varName = configName || 'config';
-        return '<script type="text/javascript">var '+ varName + '=' + stringify(config) +'</script>';
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html b/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html deleted file mode 100644 index 38c92d3..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/PageMaster.html +++ /dev/null @@ -1,1162 +0,0 @@ - - - - - PageMaster - Documentation - - - - - - - - - - - - - - - - -
- -

PageMaster

- - - - - - - -
- -
- -

- PageMaster -

- -

Static class for Reportal Page master components

- - -
- -
-
- - - - -

Constructor

- - -

new PageMaster()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) ClearFilters_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the Clear filters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) ClearFilters_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the clear filters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) Filters_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Ffilters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Filters_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the filters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) FiltersButtonHtml_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Filters button html

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) FiltersButtonHtml_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the filters button

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) FilterSummary_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the filterSummary

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html deleted file mode 100644 index c79c7b1..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_comments.html +++ /dev/null @@ -1,2618 +0,0 @@ - - - - - Page_comments - Documentation - - - - - - - - - - - - - - - - -
- -

Page_comments

- - - - - - - -
- -
- -

- Page_comments -

- -

Static class for Reportal Page comments components

- - -
- -
-
- - - - -

Constructor

- - -

new Page_comments()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) htlComments_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) htlComments_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) lstAttribute_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Attribute selector

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) lstCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Category selector

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) lstSubCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Sub Category selector

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtAttribute_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the the attributes list label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtAttribute_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the attributes selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtAttribute_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the sentiment selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the Category selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtCategory_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the Category selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtCommentsScript_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the text

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtCommentsScript_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the script which processes hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtSentiment_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the the sentiment list label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtSubCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the the sub category list label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtSubCategory_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the sub Category selector label

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html deleted file mode 100644 index ec5dc53..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_dashboard.html +++ /dev/null @@ -1,4905 +0,0 @@ - - - - - Page_dashboard - Documentation - - - - - - - - - - - - - - - - -
- -

Page_dashboard

- - - - - - - -
- -
- -

- Page_dashboard -

- -

Static class for Reportal Page dashboard components

- - -
- -
-
- - - - -

Constructor

- - -

new Page_dashboard()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private, static) _renderTblMostChanged(context, sentiment)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

sentiment - - -String - - - -

"neg" or "pos"

- - - - - - - - - - - - - - - - - - - - - -

(private, static) _renderTblMostSentiment(context, sentiment)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

sentiment - - -String - - - -

"neg" or "pos"

- - - - - - - - - - - - - - - - - - - - - -

(static) Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostDeclined_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblMostDeclined_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostImproved_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblMostImproved_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostNegative_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblMostNegative_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostPositive_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblMostPositive_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblThemeDistribution_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblThemeDistribution_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtComparePeriods_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtComparePeriods_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtLevel_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtLevel_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostChangedInfo_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostChangedInfo_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostDeclined_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostDeclined_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostImproved_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostImproved_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostNegative_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostNegative_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtMostPositive_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtMostPositive_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtThemeDistribution_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtThemeDistribution_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtThemeDistributionScript_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtThemeDistributionScript_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtViewSentiment_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtViewSentiment_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html deleted file mode 100644 index 1dab98f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_detailed_analysis.html +++ /dev/null @@ -1,2821 +0,0 @@ - - - - - Page_detailed_analysis - Documentation - - - - - - - - - - - - - - - - -
- -

Page_detailed_analysis

- - - - - - - -
- -
- -

- Page_detailed_analysis -

- -

Static class for Reportal Page detailed_analysis components

- - -
- -
-
- - - - -

Constructor

- - -

new Page_detailed_analysis()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private, static) _buildTATiles(context, type)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

type - - -String - - - -

"all", "neg", "neu", "pos"

- - - - - - - - - - - - - - - - - - - - - -

(static) Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblDetailedAnalysis_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblDetailedAnalysis_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblMostPositive_RendertblNeutralCommentsTile_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblNegativeCommentsTile_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblNegativeCommentsTile_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblNeutralCommentsTile_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblPositiveCommentsTile_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblPositiveCommentsTile_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) tblTotalCommentsTile_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) tblTotalCommentsTile_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtCategory_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtCategory_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtDetailedAnalysisScript_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtDetailedAnalysisScript_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtViewBy_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtViewBy_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html b/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html deleted file mode 100644 index 243b237..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Page_filters.html +++ /dev/null @@ -1,1781 +0,0 @@ - - - - - Page_filters - Documentation - - - - - - - - - - - - - - - - -
- -

Page_filters

- - - - - - - -
- -
- -

- Page_filters -

- -

Static class for Reportal Page filters components

- - -
- -
-
- - - - -

Constructor

- - -

new Page_filters()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) btnClearFilters_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnClearFilters_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) btnSave_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnSave_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) btnSaveReturn_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnSaveReturn_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to hide the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) lstFilterList_Hide(context, filterNumber) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to render the page

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) txtFilterTitle_Hide(context, filterNumber) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) txtFilterTitle_Render(context, filterNumber)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber - - -Number - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html deleted file mode 100644 index 8240eeb..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.html +++ /dev/null @@ -1,817 +0,0 @@ - - - - - ParameterUtilities - Documentation - - - - - - - - - - - - - - - - -
- -

ParameterUtilities

- - - - - - - -
- -
- -

- ParameterUtilities -

- -

Class to work with different parameters

- - -
- -
-
- - - - -

Constructor

- - -

new ParameterUtilities(globals)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetCheckedValues(valuesArray)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to set default value to parameters if they haven't been selected

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
valuesArray - - -Array.<Object> - - - -

array of objects like {Id: "ParameterId", Value: "defaultCode"}

- - - - - - - - - - - - - - - - - - - - - -

GetCheckedValues(parameterName) → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get checked codes for the multi string response parameter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameterName - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetCheckedValues(parameterName) → {Array.<ParameterValueResponse>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get checked values for the multi string response parameter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameterName - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<ParameterValueResponse> - - -
-
- - - - - - - - - -

LoadParameterValues(parameter, parameterValues)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to load possible values to string response parameter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
parameterValues - - -Array.<Object> - - - -

array of values like {Code: "AnswerCode", Label: "AnswerText"}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html b/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html deleted file mode 100644 index 19a92a6..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/ParameterUtilities.js.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - ParameterUtilities.js - Documentation - - - - - - - - - - - - - - - - -
- -

ParameterUtilities.js

- - - - - - - -
-
-
/**
- * @class ParameterUtilities
- * @classdesc Class to work with different parameters
- *
- * @constructs ParameterUtilities
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- */
-class ParameterUtilities {
-    private var _globals;
-
-    function ParameterUtilities(globals) {
-        _globals=globals
-    }
-
-    /**
-     * @memberof ParameterUtilities
-     * @instance
-     * @function LoadParameterValues
-     * @description function to load possible values to string response parameter
-     * @param {Parameter} parameter
-     * @param {Object[]} parameterValues - array of values like {Code: "AnswerCode", Label: "AnswerText"}
-     */
-    function LoadParameterValues(parameter, parameterValues) {
-        for (var i=0; i<parameterValues.length; ++i) {
-            var parameterValueResponse : ParameterValueResponse = new ParameterValueResponse();
-            parameterValueResponse.StringKeyValue = parameterValues[i].Code;
-
-            var labels : LanguageTextCollection = new LanguageTextCollection();
-            labels.Add(new LanguageText(_globals.report.CurrentLanguage, parameterValues[i].Label));
-
-            parameterValueResponse.LocalizedLabel = new Label(labels);
-            parameterValueResponse.StringValue = parameterValues[i].Label;
-
-            parameter.Items.Add(parameterValueResponse);
-        }
-    }
-
-    /**
-     * @memberof ParameterUtilities
-     * @instance
-     * @function GetCheckedValues
-     * @description function to get checked values for the multi string response parameter
-     * @param {String} parameterName
-     * @returns {ParameterValueResponse[]}
-     */
-    function GetCheckedValues(parameterName){
-        var values = []
-        if(!_globals.state.Parameters.IsNull(parameterName))
-        {
-            var selected:ParameterValueMultiSelect = _globals.state.Parameters[parameterName],
-            response: ParameterValueResponse;
-            for(var i=0;i<selected.Count;i++) // add selected columns to the new column set
-            {
-                response = selected[i];
-                values.push(response);
-            }
-        }
-        return values
-    }
-
-    /**
-     * @memberof ParameterUtilities
-     * @instance
-     * @function GetCheckedValues
-     * @description function to set default value to parameters if they haven't been selected
-     * @param {Object[]} valuesArray - array of objects like {Id: "ParameterId", Value: "defaultCode"}
-     */
-    function SetDefaultParameterValues(valuesArray){
-        for( var i = 0; i < valuesArray.length; i++ ){
-            try {
-                if (!_globals.state.Parameters.GetString(valuesArray[i].Id))
-                    _globals.state.Parameters[valuesArray[i].Id] = new ParameterValueResponse(valuesArray[i].Value);
-            }catch(e){
-                _globals.log.LogDebug(e);
-            }
-        }
-    }
-
-    /**
-     * @memberof ParameterUtilities
-     * @instance
-     * @function GetCheckedValues
-     * @description function to get checked codes for the multi string response parameter
-     * @param {String} parameterName
-     * @returns {String[]}
-     */
-    function GetParameterCodes(parameterName) {
-        var parameterValues : ParameterValueMultiSelect = _globals.state.Parameters[parameterName] ? _globals.state.Parameters[parameterName]: ParameterValueMultiSelect(null);
-        var codes = [];
-        if(parameterValues != null) {
-            for (var enumerator : Enumerator = new Enumerator(parameterValues) ; !enumerator.atEnd(); enumerator.moveNext()) {
-                var parameterValue : ParameterValueResponse = enumerator.item();
-                codes.push(parameterValue.StringKeyValue);
-            }
-
-        }
-        return codes;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html b/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html deleted file mode 100644 index 7946411..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Parameters.html +++ /dev/null @@ -1,1877 +0,0 @@ - - - - - Parameters - Documentation - - - - - - - - - - - - - - - - -
- -

Parameters

- - - - - - - -
- -
- -

- Parameters -

- -

Static class for Reportal parameter components

- - -
- -
-
- - - - -

Constructor

- - -

new Parameters()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) FILTER_Domain(context, filterNumber)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

filterNumber - - -Number - - - -
- - - - - - - - - - - - - - - - - - - - - -

(static) TA_ATTRIBUTES_SINGLE_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_ATTRIBUTES_SINGLE_Mask(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_COMPARE_PERIODS_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_DISTRIBUTION_TOGGLE_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_FOLDERS_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_HIDE_EMPTY_ROWS_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_LEVEL_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_SUB_CATEGORIES_SINGLE_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_SUB_CATEGORIES_SINGLE_Mask(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_TOP_CATEGORIES_SINGLE_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_VIEW_BY_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) TA_VIEW_SENTIMENT_Domain(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html b/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html deleted file mode 100644 index 5c8ac6b..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/ReportMaster.html +++ /dev/null @@ -1,1005 +0,0 @@ - - - - - ReportMaster - Documentation - - - - - - - - - - - - - - - - -
- -

ReportMaster

- - - - - - - -
- -
- -

- ReportMaster -

- -

Static class for Report Master components

- - -
- -
-
- - - - -

Constructor

- - -

new ReportMaster()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) btnApplyDateFilter_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnApplyDateFilter_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) btnClearDateFilter_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) btnClearDateFilter_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - -

(static) CustomerLogo_Hide(context) → {Boolean}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Boolean - - -
-
- - - - - - - - - -

(static) CustomerLogo_Render(context)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -

{component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html deleted file mode 100644 index 95e78ac..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Config.js.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - Static/Config.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Config.js

- - - - - - - -
-
-
/**
- * Config class that doesn't have a constructor.
- * @class Config
- * @classdesc Contains configuration for the report.
- *
- * @prop {String} DS_Main - value for datasource Id
- * @prop {String} CustomerLogo - link to the logo
- *
- * @prop {String} CustomDateFormat - string that represents Date format which will be used in the report
- * @prop {String} TimeVariableId - date variable Id to use for trending tables and time variables. "interview_start" by default
- *
- * @prop {String[]} VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags
- * @prop {String[]} HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags
- * @prop {String[]} FiltersQuestion - variables for Filters page. If not "null" will override values from survey tags
- *
- * @prop {Object} Colors - color palettes using in the report
- * @prop {String} Colors.DefaultColor - color for header
- * @prop {Object} Colors.NegNeuPosPalette - palette for negative - neutral - positive breaking
- * @prop {String} Colors.NegNeuPosPalette.Negative - Negative color
- * @prop {String} Colors.NegNeuPosPalette.Neutral - Neutral color
- * @prop {String} Colors.NegNeuPosPalette.Positive - Positive color
- *
- * @prop {Object} SentimentRange - negative - neutral - positive breaking by sentiment
- * @prop {Number[]} SentimentRange.Positive - array of positive sentiment's values
- * @prop {Number[]} SentimentRange.Neutral - array of neutral sentiment's values
- * @prop {Number[]} SentimentRange.Negative - array of negative sentiment's values
- *
- * @prop {Object[]} TAQuestions - array of Text Analytics configurations for each verbatim question
- * @prop {String} TAQuestions.DatasourceId - override DS_Main from config
- * @prop {Number} TAQuestions.DatabaseSchemaId - id of the schema containing Text Analytics model
- * @prop {String} TAQuestions.DatabaseTableName - name of the table containing Text Analytics model
- * @prop {String} TAQuestions.IdColumnName - name of the column containing category id. "id" by default
- * @prop {String} TAQuestions.TextColumnName - name of the column containing category name. "__l9" by default
- * @prop {String} TAQuestions.RelationshipColumnName - name of the column containing parent id for subcategories and attributes. "parent" by default
- * @prop {String} TAQuestions.TextSeparator - symbol which separate Parent and children names in the flat category name
- * @prop {String} TAQuestions.TAFolderId - unique Id for each Text Analytics set
- * @prop {String} TAQuestions.TAQuestionName - verbatim variable id
- * @prop {String}  TAQuestions.TAModelNo - model number used for Text Analytics
- * @prop {String} TAQuestions.TimeVariableId - date variable Id to use for trending tables and time variables. Overrides Config value
- * @prop {String[]} TAQuestions.VariablesToViewBy -variables to break the detailed analysis table by. If not "null" will override values from survey tags. If not "null" will override values from Config
- * @prop {String[]} TAQuestions.HitlistColumns - variables to add to the end of the hitlist. If not "null" will override values from survey tags. If not "null" will override values from Config
- *
- * @example
- *     static var DS_Main = "ds0";
- *     static var CustomerLogo = null;
- *     static var CustomDateFormat = 'dd-MMM-yyyy';
- *     static var TimeVariableId = 'interview_start';
- *     static var  VariablesToViewBy = ["type", "source"];
- *     static var  HitlistColumns = ["membership_level"];
- *     static var FiltersQuestions = null;
- *
- *     static var Colors = {
- *            DefaultColor: "#ffff00",
- *            NegNeuPosPalette: {
- *                Negative: "#fd9900",
- *                Neutral: "#cdd1d9",
- *                Positive: "#7cc700"
- *            }
- *        };
- *
- *     static var SentimentRange = {
- *            Positive: [8,9,10,11],
- *            Neutral: [5,6,7],
- *            Negative: [1,2,3,4]
- *        }
- *
- *     static var TAQuestions = [
- *     {
- *         DatasourceId: "ds0",
- *
- *         DatabaseSchemaId: 4909,
- *         DatabaseTableName: "Retail 785",
- *         RelationshipColumnName: "parent",
- *         TextSeparator: "|",
- *
- *         TAFolderId: "why785",
- *         TAQuestionName: "why",
- *         TAModelNo: "785",
- *
- *         TimeVariableId: 'interview_start'
- *     }
- *     ];
- */
-public class Config {
-
-    static var DS_Main = "ds0";
-    static var CustomerLogo = null;
-    static var CustomDateFormat = 'dd-MMM-yyyy';
-    static var TimeVariableId = 'interview_start';
-    static var  VariablesToViewBy = ["type", "source"];
-    static var  HitlistColumns = ["membership_level"];
-    static var FiltersQuestions = null;
-
-    static var Colors = {
-        DefaultColor: "#ffff00",
-        NegNeuPosPalette: {
-            Negative: "#fd9900",
-            Neutral: "#cdd1d9",
-            Positive: "#7cc700"
-        }
-    };
-
-    static var SentimentRange = {
-        Positive: [8,9,10,11],
-        Neutral: [5,6,7],
-        Negative: [1,2,3,4]
-    }
-
-    static var TAQuestions = [
-
-
-        {
-            DatasourceId: "ds0",
-
-            DatabaseSchemaId: 4909,
-            DatabaseTableName: "Retail 785",
-            RelationshipColumnName: "parent",
-            TextSeparator: "|",
-
-            TAFolderId: "why785",
-            TAQuestionName: "why",
-            TAModelNo: "785",
-
-            TimeVariableId: 'interview_start'
-        }
-    ];
-
-    /**
-     * @memberof Config
-     * @private
-     * @static
-     * @prop _TALibrary
-     * @type {TALibrary}
-     * @description static variable containing all Text Analytics data
-     */
-    private static var _TALibrary: TALibrary;
-
-    /**
-     * @memberof Config
-     * @private
-     * @static
-     * @prop _haveTALibrary
-     * @type {boolean}
-     * @description static variable indicating that _TALibrary variable has been set
-     */
-    private static var _haveTALibrary;
-
-    /**
-     * @memberof Config
-     * @function SetTaLibrary
-     * @description function that processes config and cashes all Text Analitycs data
-     * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function SetTALibrary(globals){
-        if(!_haveTALibrary){
-            _TALibrary = new TALibrary(globals, TAQuestions, FiltersQuestions, this);
-            _haveTALibrary = true;
-        }
-    }
-
-    /**
-     * @memberof Config
-     * @function GetTALibrary
-     * @description function that returns TALibrary from Config
-     */
-    static function GetTALibrary(){
-        return _TALibrary;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html deleted file mode 100644 index 6fe3b08..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Filters.js.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - Static/Filters.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Filters.js

- - - - - - - -
-
-
/**
-* @class Filters
-* @classdesc Static class for Reportal Filter Components
-*/
-class Filters {
-    /**
-     * @memberof Filters
-     * @function TASelectedCategoryFilter
-     * @description function to filtrate only selected category in the hitlist
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TASelectedCategoryFilter(context){
-        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-        /*try {
-            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-        }catch(e){
-            selectedFolder = null;
-        }*/
-
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSelectedCategoryFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function TAHitlistSentimentFilter
-     * @description function to filtrate only selected sentiment in the hitlist
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TAHitlistSentimentFilter(context){
-        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-        /*try {
-            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-        }catch(e){
-            selectedFolder = null;
-        }*/
-
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT")
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function DateFilter
-     * @description function to filtrate selected dates
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function DateFilter(context){
-        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-        /*try {
-            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-        }catch(e){
-            selectedFolder = null;
-        }*/
-        var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetDateFilterExpression("TA_DATE_FROM", "TA_DATE_TO");
-        context.component.Expression = fExpr;
-    }
-
-    /**
-     * @memberof Filters
-     * @function FilterPageFilter
-     * @description function to filtrate selected values on the filterpage
-     * @param {Object} context - {component: filter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function FilterPageFilter(context){
-        var fExpr = "";
-        fExpr = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main).GetGlobalsFilterExpression();
-        context.component.Expression = fExpr
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html deleted file mode 100644 index c314126..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_PageMaster.js.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - Static/PageMaster.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/PageMaster.js

- - - - - - - -
-
-
/**
- * @class PageMaster
- * @classdesc Static class for Reportal Page master components
- */
-class PageMaster{
-    private static var _filterComponents;
-
-    /**
-     * @memberof PageMaster
-     * @function FiltersButtonHtml_Hide
-     * @description function to hide the Filters button html
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function FiltersButtonHtml_Hide(context){
-        var filterQuestions = Config.GetTALibrary().GetFilterQuestions()
-        return filterQuestions.length == 0
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function FiltersButtonHtml_Render
-     * @description function to render the filters button
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function FiltersButtonHtml_Render(context){
-        var htmlText = '<button type="button" class="filter-button" onclick="javascript:document.querySelector(\'.goToFiltersPage input\').click()" title="Filters">'+
-            '<svg width="16" height="12" viewBox="0 0 16 12">'+
-            '<path xmlns="http://www.w3.org/2000/svg" d="M 0 0 l 6 6 v 6 l 4 -1 V 6 l 6 -6 Z"></path>'+
-            '</svg>'+
-            '<svg width="10" height="10" viewBox="0 0 10 10">'+
-            '<path xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" fill-rule="evenodd" d="M 10 4 H 6 V 0 H 4 v 4 H 0 v 2 h 4 v 4 h 2 V 6 h 4 Z"></path>'+
-            '</svg>'+
-            '</button>';
-        context.component.Output.Append(htmlText);
-    }
-    /**
-     * @memberof PageMaster
-     * @function Filters_Hide
-     * @description function to hide the Ffilters button
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Filters_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function Filters_Render
-     * @description function to render the filters button
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Filters_Render(context){
-        context.component.TargetPage = "filters"
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function FilterSummary_Render
-     * @description function to render the filterSummary
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function FilterSummary_Render(context){
-        var filterSummary ;
-        var summarySegments = [];
-        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main);
-
-        var codes = _filterComponents.GetAllAnsweredFilterCodes();
-        for( var i = 0 ; i < codes.length; i++){
-            summarySegments.push(( "<div>" + codes[i].questionTitle + " = "+ codes[i].texts.join(" | ")+"</div>"));
-        }
-
-        filterSummary = summarySegments.join("<span>AND</span>");
-        context.component.Output.Append(filterSummary);
-        if( codes.length > 0 )
-            context.component.Output.Append("<button title='Clear filters' onclick='javascript:document.querySelector(\".filters-clear-button input\").click()' style = 'padding: 1px'><svg width='10' height='10' class='icon-circle-x'><use xmlns:xlink='http://www.w3.org/1999/xlink' xlink:href='/discoveryanalytics/svg-icons/stack/svg/sprite.stack.svg#circle-x'></use></svg></button>");
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function ClearFilters_Hide
-     * @description function to render the Clear filters button
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function ClearFilters_Hide(context){
-        var hideButton = true;
-        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main);
-
-        hideButton = !_filterComponents.GetAllAnsweredFilterCodes().length > 0;
-
-        return hideButton
-    }
-
-    /**
-     * @memberof PageMaster
-     * @function ClearFilters_Render
-     * @description function to render the clear filters button
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function ClearFilters_Render(context){
-
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html deleted file mode 100644 index ca0467d..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_comments.js.html +++ /dev/null @@ -1,411 +0,0 @@ - - - - - Static/Page_comments.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Page_comments.js

- - - - - - - -
-
-
/**
- * @class Page_comments
- * @classdesc Static class for Reportal Page comments components
- */
-class Page_comments{
-    private static var _filterComponents;
-    private static var _folder;
-    private static const _defaultParameters = [
-        {
-            Id: "TA_TOP_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_SUB_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_ATTRIBUTES_SINGLE",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_COMMENTS_SENTIMENT",
-            Value: "emptyv"
-        },
-        {
-            Id: "TA_FOLDERS",
-            Value: Config.TAQuestions[0].TAFolderId
-        }
-    ];
-
-    /**
-     * @memberof Page_comments
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-    Config.SetTALibrary(TAHelper.GetGlobals(context));
-        if(context.component.SubmitSource == "ClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main).ClearFilters()
-        }
-
-        if(context.component.SubmitSource == "btnClearDateFilter"){
-            context.state.Parameters["TA_DATE_FROM"] = null;
-            context.state.Parameters["TA_DATE_TO"] = null;
-        }
-        if(context.component.SubmitSource == "lstQuestions") {
-            context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null;
-            context.state.Parameters["TA_LEVEL"] = null;
-            context.state.Parameters["TA_SUB_CATEGORIES_SINGLE"] = null;
-            context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null;
-            context.state.Parameters["TA_VIEW_BY"] = null;
-        }
-
-        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "comments");
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-
-        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        //context.log.LogDebug("page render: "+context.state.Parameters["TA_FOLDERS"]);
-        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-        /*try {
-            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-        } catch(e){
-            selectedFolder = null;
-        }*/
-        _folder = Config.GetTALibrary().GetFolderById(selectedFolder);
-        taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function htlComments_Hide
-     * @description function to hide the hitlist
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function htlComments_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function htlComments_Render
-     * @description function to render the hitlist
-     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function htlComments_Render(context){
-        if(!Config.GetTALibrary()){
-            Config.SetTALibrary(TAHelper.GetGlobals(context));
-        }
-        if(!_folder){
-            //context.log.LogDebug("htl render: "+context.state.Parameters["TA_FOLDERS"]);
-            //var selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-            //_folder =Config.GetTALibrary().GetFolderById(selectedFolder);
-
-            var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-			/*try {
-				selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-			} catch(e){
-				selectedFolder = null;
-			}*/
-			 _folder = Config.GetTALibrary().GetFolderById(selectedFolder);
-			
-			
-        }
-        context.log.LogDebug("htl render1");
-        var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component);
-        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        if( selectedCategory ){
-            htlComments.AddTAColumn("categorysentiment", false, selectedCategory);
-
-        }
-    context.log.LogDebug("htl render2");
-        htlComments.AddTAColumn("verbatim");
-    context.log.LogDebug("htl render3");
-        htlComments.AddColumn(_folder.GetTimeVariableId(), true);
-    context.log.LogDebug("htl render4");
-        context.log.LogDebug("time var: "+ _folder.GetTimeVariableId());
-    context.log.LogDebug("htl render5");
-        htlComments.AddTAColumn("overallsentiment");
-    context.log.LogDebug("htl render6");
-        //htlComments.AddTAColumn("categories");
-        htlComments.AddConfiguredColumns();
-    context.log.LogDebug("htl render7");
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCommentsScript_Hide
-     * @description function to hide the text
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCommentsScript_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCommentsScript_Render
-     * @description function to render the script which processes hitlist
-     * @param {Object} context - {component: hitlist, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCommentsScript_Render(context){
-        var hitlistInit = "<script>"+
-                "Y.Global.on('hitlistloaded', function (e) {  "+
-                    "var upgradedHitlist = new Reportal.Hitlist({"+
-                        "hitlist: document.querySelector('.reportal-hitlist-container'),"+
-                        "headers: hitlistHeaders,"+
-                        "sentimentConfig: sentimentConfig"+
-                    "});"+
-                "});"+
-            "</script>";
-        var hitlistHeaders = {};
-
-        var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE")
-
-        hitlistHeaders["sentiment"] = []
-
-        if( selectedCategory){
-            hitlistHeaders["sentiment"].push( {
-                    name: _folder.GetQuestionId("categorysentiment")+"_"+selectedCategory
-            } );
-        }
-
-        hitlistHeaders["verbatim"] = [{
-            name: _folder.GetQuestionId(),
-            title: "Comments",
-            main: true
-        }];
-
-        hitlistHeaders["date"] = [{
-            name: _folder.GetTimeVariableId() ? _folder.GetTimeVariableId() : "interview_start",
-            title: "Date"
-        }];
-
-        /*
-            hitlistHeaders["categories"] = {
-                name: _folder.GetQuestionId("categories")
-            };
-         */
-
-        hitlistHeaders["sentiment"].push( {
-            name: _folder.GetQuestionId("overallSentiment"),
-            title: "Overall Sentiment"
-        });
-
-        hitlistHeaders["other"] = [];
-
-        var hitlistColumns = _folder.GetHitlistColumns();
-        for(var i = 0 ; i < hitlistColumns.length; i++){
-            hitlistHeaders["other"].push( {
-                name: hitlistColumns[i]
-            });
-        }
-
-        var sentimentConfig = [
-            {
-                sentiment: "positive",
-                range: {min: (Config.SentimentRange.Positive[0]-6), max: (Config.SentimentRange.Positive[Config.SentimentRange.Positive.length - 1]-6)}
-            },
-            {
-                sentiment: "neutral",
-                range: {min: (Config.SentimentRange.Neutral[0]-6), max: (Config.SentimentRange.Neutral[Config.SentimentRange.Neutral.length - 1]-6)}
-            },
-            {
-                sentiment: "negative",
-                range: {min: (Config.SentimentRange.Negative[0]-6), max: (Config.SentimentRange.Negative[Config.SentimentRange.Negative.length - 1]-6)}
-            }
-        ];
-        context.component.Output.Append(JSON.print(hitlistHeaders, "hitlistHeaders"));
-        context.component.Output.Append(JSON.print(sentimentConfig,"sentimentConfig"));
-        context.component.Output.Append(hitlistInit);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstCategory_Hide
-     * @description function to hide the Category selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstCategory_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstSubCategory_Hide
-     * @description function to hide the Sub Category selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstSubCategory_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function lstAttribute_Hide
-     * @description function to hide the Attribute selector
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function lstAttribute_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCategory_Hide
-     * @description function to hide the Category selector label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCategory_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtCategory_Render
-     * @description function to render the Category selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCategory_Render(context){
-        var label = "Category";
-        context.component.Output.Append(label);
-    }
-
-
-    /**
-     * @memberof Page_comments
-     * @function txtSubCategory_Hide
-     * @description function to hide the the sub category list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtSubCategory_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtSubCategory_Render
-     * @description function to render the sub Category selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtSubCategory_Render(context){
-        var label = "Sub category";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Hide
-     * @description function to hide the the attributes list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtAttribute_Hide(context){
-        var parameterValue = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-        return ((! parameterValue) || parameterValue == "emptyv" || _folder.GetHierarchy().GetObjectById(parameterValue).subcells.length == 0)
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Render
-     * @description function to render the attributes selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtAttribute_Render(context){
-        var label = "Attribute";
-        context.component.Output.Append(label);
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtSentiment_Hide
-     * @description function to hide the the sentiment list label
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtSentiment_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_comments
-     * @function txtAttribute_Render
-     * @description function to render the sentiment selector label
-     * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtSentiment_Render(context){
-        var label = "Sentiment";
-        context.component.Output.Append(label);
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html deleted file mode 100644 index 9ee5900..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_dashboard.js.html +++ /dev/null @@ -1,485 +0,0 @@ - - - - - Static/Page_dashboard.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Page_dashboard.js

- - - - - - - -
-
-
/**
- * @class Page_dashboard
- * @classdesc Static class for Reportal Page dashboard components
- */
-class Page_dashboard{
-    private static var _folder;
-    private static const _defaultParameters = [
-    {
-        Id: "TA_LEVEL",
-        Value: "0"
-    },
-
-    {
-        Id: "TA_COMPARE_PERIODS",
-        Value: "qoq"
-    },
-
-    {
-        Id: "TA_VIEW_SENTIMENT",
-        Value: "emptyv"
-    }
-];
-
-    /**
-     * @memberof Page_dashboard
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-    Config.SetTALibrary(TAHelper.GetGlobals(context));
-    if(context.component.SubmitSource == "ClearFilters"){
-        new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(),Config.DS_Main).ClearFilters()
-    }
-    if(context.component.SubmitSource == "btnClearDateFilter"){
-        context.state.Parameters["TA_DATE_FROM"] = null;
-        context.state.Parameters["TA_DATE_TO"] = null;
-    }
-    if(context.component.SubmitSource == "lstQuestions") {
-        context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null;
-        context.state.Parameters["TA_LEVEL"] = null;
-        context.state.Parameters["TA_SUB_CATEGORIES_SINGLE"] = null;
-        context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null;
-        context.state.Parameters["TA_VIEW_BY"] = null;
-    }
-
-    TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard");
-    var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-    paramUtils.SetDefaultParameterValues(_defaultParameters);
-    var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-    var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-    /*try {
-        selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-    }catch(e){
-        selectedFolder = null;
-    }*/
-    _folder = Config.GetTALibrary().GetFolderById(selectedFolder);
-    taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @private
-     * @function _renderTblMostSentiment
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} sentiment - "neg" or "pos"
-     */
-    private static function _renderTblMostSentiment(context, sentiment){
-    var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
-    var globals = TAHelper.GetGlobals(context);
-    var table = context.component;
-    var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level);
-    topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
-    topSentimentTable.GetTATableUtils().ClearTableDistributions();
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @private
-     * @function _renderTblMostChanged
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} sentiment - "neg" or "pos"
-     */
-    private static function _renderTblMostChanged(context, sentiment){
-    var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL");
-    var globals = TAHelper.GetGlobals(context);
-    var table = context.component;
-    var period = context.state.Parameters.IsNull("TA_COMPARE_PERIODS") ? "qoq" : context.state.Parameters.GetString("TA_COMPARE_PERIODS");
-
-    var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period);
-    topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]);
-    topChangedTable.GetTATableUtils().ClearTableDistributions();
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostPositive_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostPositive_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostPositive_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostPositive_Render(context){
-    _renderTblMostSentiment(context, true);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostNegative_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostNegative_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostNegative_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostNegative_Render(context){
-    _renderTblMostSentiment(context, false);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostImproved_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostImproved_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostImproved_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostImproved_Render(context){
-    _renderTblMostChanged(context, true);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostDeclined_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblMostDeclined_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblMostDeclined_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblMostDeclined_Render(context){
-    _renderTblMostChanged(context, false);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblThemeDistribution_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblThemeDistribution_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function tblThemeDistribution_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblThemeDistribution_Render(context){
-    var globals = TAHelper.GetGlobals(context);
-    var table = context.component;
-    var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT");
-
-    var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment,Config);
-    themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "striped-columns", "reportal-hierarchy-table"]);
-    themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_TOP_CATEGORIES_SINGLE", "detailed_analysis");
-    themeDistributionTable.GetTATableUtils().ClearTableDistributions();
-    themeDistributionTable.GetTATableUtils().SetupDataSupressing(1);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtLevel_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtLevel_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtLevel_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtLevel_Render(context){
-    var label = "View by";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostPositive_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostPositive_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostPositive_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostPositive_Render(context){
-    var label = "Top 5 most positive themes";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostNegative_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostNegative_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostNegative_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostNegative_Render(context){
-    var label = "Top 5 most negative themes";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtComparePeriods_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtComparePeriods_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtComparePeriods_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtComparePeriods_Render(context){
-    var label = "Compare";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostImproved_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostImproved_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostImproved_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostImproved_Render(context){
-    var label = "Top 5 most improved themes";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostChangedInfo_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostChangedInfo_Hide(context){
-    return false
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostChangedInfo_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostChangedInfo_Render(context){
-    var label = "Changes that are not statistically significant are marked in grey";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostDeclined_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtMostDeclined_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtMostDeclined_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtMostDeclined_Render(context){
-    var label = "Top 5 most declined themes";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistribution_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtThemeDistribution_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistribution_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtThemeDistribution_Render(context){
-    var label = "Theme distribution";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtViewSentiment_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtViewSentiment_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtViewSentiment_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtViewSentiment_Render(context){
-    var label = "View";
-    context.component.Output.Append(label);
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistributionScript_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtThemeDistributionScript_Hide(context){
-    return false;
-}
-
-    /**
-     * @memberof Page_dashboard
-     * @function txtThemeDistributionScript_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtThemeDistributionScript_Render(context){
-    var headers;
-    var hierarhy = _folder.GetHierarchy().GetHierarchyArray()
-
-    headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders();
-    var upgradeText = "<script type=\"text/javascript\">"+
-        "var upgradedTable = new Reportal.TAhierarchy("+
-        "{"+
-            "source: document.querySelector('table.reportal-hierarchy-table'),"+
-            "blocks: [],"+
-            "search:{},"+
-            "floatingHeader:{},"+
-            "hierarchy:"+JSON.stringify(hierarhy)+","+
-            "rowheaders:"+JSON.stringify(headers)+","+
-            "clearLinks:true"+
-        "}"+
-        ")"+
-        "</script>";
-
-    context.component.Output.Append(upgradeText);
-    context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
-}
-}
-
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html deleted file mode 100644 index 77ceaa2..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_detailed_analysis.js.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - Static/Page_detailed_analysis.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Page_detailed_analysis.js

- - - - - - - -
-
-
/**
- * @class Page_detailed_analysis
- * @classdesc Static class for Reportal Page detailed_analysis components
- */
-class Page_detailed_analysis{
-    private static var _folder;
-    private static const _defaultParameters = [
-        {
-            Id: "TA_TOP_CATEGORIES_SINGLE",
-            Value: "emptyv"
-        },
-
-        {
-            Id: "TA_DISTRIBUTION_TOGGLE",
-            Value: "0"
-        },
-
-        {
-            Id: "TA_VIEW_BY",
-            Value: "emptyv"
-        }
-    ];
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        if(context.component.SubmitSource == "ClearFilters"){
-            new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main).ClearFilters()
-        }
-
-        if(context.component.SubmitSource == "btnClearDateFilter"){
-            context.state.Parameters["TA_DATE_FROM"] = null;
-            context.state.Parameters["TA_DATE_TO"] = null;
-        }
-        if(context.component.SubmitSource == "lstQuestions") {
-            context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null;
-            context.state.Parameters["TA_LEVEL"] = null;
-            context.state.Parameters["TA_SUB_CATEGORIES_SINGLE"] = null;
-            context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null;
-            context.state.Parameters["TA_VIEW_BY"] = null;
-        }
-
-        TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "detailed_analysis");
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-
-        var taParams  = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary());
-        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-        /*try {
-            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-        }catch(e){
-            selectedFolder = null;
-        }*/
-        _folder =Config.GetTALibrary().GetFolderById(selectedFolder);
-        taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-        taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @private
-     * @function _buildTATiles
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {String} type - "all", "neg", "neu", "pos"
-     */
-    static private function _buildTATiles(context, type){
-        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
-        new TATiles(TAHelper.GetGlobals(context), _folder, context.component, type, selectedCategory, distribution)
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblTotalCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblTotalCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblTotalCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblTotalCommentsTile_Render(context){
-        _buildTATiles(context, "all");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblPositiveCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblPositiveCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblPositiveCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblPositiveCommentsTile_Render(context){
-        _buildTATiles(context, "pos");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNeutralCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblNeutralCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblMostPositive_RendertblNeutralCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblNeutralCommentsTile_Render(context){
-        _buildTATiles(context, "neu");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNegativeCommentsTile_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblNegativeCommentsTile_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblNegativeCommentsTile_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblNegativeCommentsTile_Render(context){
-        _buildTATiles(context, "neg");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblDetailedAnalysis_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function tblDetailedAnalysis_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function tblDetailedAnalysis_Render
-     * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function tblDetailedAnalysis_Render(context){
-        var globals = TAHelper.GetGlobals(context);
-        var selectedCategory = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        var selectedQuestion = context.state.Parameters.GetString("TA_VIEW_BY");
-        //var project =  globals.report.DataSource.GetProject(Config.DS_Main);
-        var project =  globals.report.DataSource.GetProject(_folder.GetDatasourceId());
-        var selectedQuestionType = false;
-        if(selectedQuestion && selectedQuestion != "emptyv")
-            selectedQuestionType =  project.GetQuestion(selectedQuestion).QuestionType;
-        var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE");
-        var hideEmptyRows = new ParameterUtilities(globals).GetCheckedValues("TA_HIDE_EMPTY_ROWS");
-        var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, selectedCategory, selectedQuestion, distribution, ( selectedQuestionType == QuestionType.Multi));
-        detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]);
-        detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0));
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtDetailedAnalysisScript_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtDetailedAnalysisScript_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtDetailedAnalysisScript_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtDetailedAnalysisScript_Render(context){
-        var headers;
-        var hierarhy = _folder.GetHierarchy().GetHierarchyArray();
-        var taTableData = new TATableData(TAHelper.GetGlobals(context), "tblDetailedAnalysis");
-        var headers = taTableData.GetTableRowHeaders();
-        if( headers.length > 0){
-            var blocks = taTableData.GetBlocks();
-
-            var upgradeText = "<script type=\"text/javascript\">"+
-                    "var upgradedTable = new Reportal.TAhierarchy("+
-                "{"+
-                "source: document.querySelector('table.reportal-hierarchy-table'),"+
-                "hierarchy: "+JSON.stringify(hierarhy)+","+
-                "rowheaders:"+JSON.stringify(headers)+","+
-                "search:{},"+
-                "blocks:"+JSON.stringify(blocks)+","+
-                "floatingHeader: {},"+
-                "column:"+ ( blocks.length > 0 ? 1 : 0 ) +","+
-                "sorting:"+
-                "{"+
-                "enabled: true,"+
-                "excludedColumns: [6]"+
-                "},"+
-                "}"+
-                ")"+
-                "</script>";
-
-            context.component.Output.Append(upgradeText);
-            context.component.Output.Append(JSON.print(hierarhy,"hierarchy"));
-            context.component.Output.Append(JSON.print(headers,"rowheaders"));
-            context.component.Output.Append(JSON.print(blocks,"blocks"));
-        }
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtViewBy_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtViewBy_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtViewBy_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtViewBy_Render(context){
-        context.component.Output.Append("View by:");
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtCategory_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function txtCategory_Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_detailed_analysis
-     * @function txtCategory_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function txtCategory_Render(context){
-        context.component.Output.Append("Category");
-    }
-}
-
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html deleted file mode 100644 index 8b5da2f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Page_filters.js.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - Static/Page_filters.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Page_filters.js

- - - - - - - -
-
-
/**
- * @class Page_filters
- * @classdesc Static class for Reportal Page filters components
- */
-class Page_filters{
-    private static var _filterComponents;
-    private static var _folder;
-    private static const _defaultParameters = [];
-
-    /**
-     * @memberof Page_filters
-     * @function Hide
-     * @description function to hide the page
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function Hide(context){
-        return false;
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function Render
-     * @description function to render the page
-     * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function Render(context){
-        Config.SetTALibrary(TAHelper.GetGlobals(context));
-        _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main);
-        if(context.component.SubmitSource == "btnClearFilters"){
-                _filterComponents.ClearFilters();
-            }
-        if(context.component.SubmitSource == "btnClearDateFilter"){
-            context.state.Parameters["TA_DATE_FROM"] = null;
-            context.state.Parameters["TA_DATE_TO"] = null;
-        }
-        if(context.component.SubmitSource == "lstQuestions") {
-            context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null;
-            context.state.Parameters["TA_LEVEL"] = null;
-            context.state.Parameters["TA_SUB_CATEGORIES_SINGLE"] = null;
-            context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null;
-            context.state.Parameters["TA_VIEW_BY"] = null;
-        }
-
-        var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context));
-        paramUtils.SetDefaultParameterValues(_defaultParameters);
-        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-        /*try {
-            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-        }catch(e){
-            selectedFolder = null;
-        }*/
-        _folder = Config.GetTALibrary().GetFolderById(selectedFolder);
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSaveReturn_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnSaveReturn_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSaveReturn_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnSaveReturn_Render(context){
-        context.component.Label = new Label(9,"Save and Return");
-        context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE");
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSave_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnSave_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnSave_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnSave_Render(context){
-        context.component.Label = new Label(9,"Save");
-        context.component.TargetPage = "filters";
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnClearFilters_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnClearFilters_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function btnClearFilters_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnClearFilters_Render(context){
-    context.component.Label = new Label(9,"Clear Filters");
-    context.component.TargetPage = "filters";
-}
-
-    /**
-     * @memberof Page_filters
-     * @function txtFilterTitle_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     * @returns {Boolean}
-     */
-    static function txtFilterTitle_Hide(context, filterNumber){
-    var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
-        return !filterQuestion
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function txtFilterTitle_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     */
-    static function txtFilterTitle_Render(context, filterNumber){
-    var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1);
-    if(filterTitle)
-        context.component.Output.Append(filterTitle);
-    }
-
-    /**
-     * @memberof Page_filters
-     * @function lstFilterList_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     * @returns {Boolean}
-     */
-    static function lstFilterList_Hide(context, filterNumber){
-        var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
-        return !filterQuestion
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html deleted file mode 100644 index ee52f6c..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_Parameters.js.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - Static/Parameters.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/Parameters.js

- - - - - - - -
-
-
/**
- * @class Parameters
- * @classdesc Static class for Reportal parameter components
- */
-class Parameters{
-    private static function getSelectedFolder(context) {
-        var selectedFolder = TALibrary.GetTAFoldersParameterValue(context);
-        return selectedFolder;
-        /*try {
-            selectedFolder = context.state.Parameters.GetString("TA_FOLDERS");
-        } catch(e){
-            selectedFolder = null;
-        } finally {}*/
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_FOLDERS_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_FOLDERS_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderFoldersParameter(context.component);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_LEVEL_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_LEVEL_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelsParameter(context.component, getSelectedFolder(context));
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_COMPARE_PERIODS_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_COMPARE_PERIODS_Domain(context){
-        var parameterValues = [
-            {Code: "wow", Label: "Current vs Last Week"},
-            {Code: "mom", Label: "Current vs Last Month"},
-            {Code: "qoq", Label: "Current vs Last Quarter"},
-            {Code: "yoy", Label: "Current vs Last Year"}
-        ];
-        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_TOP_CATEGORIES_SINGLE_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_TOP_CATEGORIES_SINGLE_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 0, "-select-")
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_SUB_CATEGORIES_SINGLE_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_SUB_CATEGORIES_SINGLE_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 1, "-select-")
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_ATTRIBUTES_SINGLE_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_ATTRIBUTES_SINGLE_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 2, "-select-")
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_SUB_CATEGORIES_SINGLE_Mask
-     * @param {Object} context - {component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_SUB_CATEGORIES_SINGLE_Mask(context){
-        var category = context.state.Parameters.GetString("TA_TOP_CATEGORIES_SINGLE");
-        if(category && category != "emptyv")
-            new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).MaskSelectedCategoryChildren(context.component,getSelectedFolder(context),category,true)
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_ATTRIBUTES_SINGLE_Mask
-     * @param {Object} context - {component: mask, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_ATTRIBUTES_SINGLE_Mask(context){
-        var category = context.state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-        if(category && category != "emptyv")
-            new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).MaskSelectedCategoryChildren(context.component,getSelectedFolder(context),category,true)
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_VIEW_SENTIMENT_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_VIEW_SENTIMENT_Domain(context){
-        var parameterValues = [
-            {Code: "emptyv", Label: "All sentiments"},
-            {Code: "pos", Label: "Positive"},
-            {Code: "neu", Label: "Neutral"},
-            {Code: "neg", Label: "Negative"}
-        ]
-        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_DISTRIBUTION_TOGGLE_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_DISTRIBUTION_TOGGLE_Domain(context){
-        var parameterValues = [
-            {Code: 0, Label: "Count"},
-            {Code: 1, Label: "%"}
-        ]
-
-        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_VIEW_BY_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_VIEW_BY_Domain(context){
-        new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderViewByParameter(context.component, getSelectedFolder(context), "-select-");
-    }
-
-    /**
-     * @memberof Parameters
-     * @function TA_HIDE_EMPTY_ROWS_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function TA_HIDE_EMPTY_ROWS_Domain(context){
-        var parameterValues = [
-            {Code: "hide", Label: "Hide categories with no hits"}
-        ]
-        new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-    }
-
-    /**
-     * @memberof Parameters
-     * @function FILTER_Domain
-     * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @param {Number} filterNumber
-     */
-    static function FILTER_Domain(context, filterNumber){
-        var filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main);
-        var filterQuestion = filterComponents.GetFilterQuestion(filterNumber -1 );
-        if(filterQuestion){
-            var parameterValues = [];
-            var answers = filterQuestion.GetAnswers()
-            for( var i = 0; i < answers.length; i++){
-                parameterValues.push({
-                    Code: answers[i].Precode,
-                    Label: answers[i].Text
-                });
-            }
-            new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues);
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html b/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html deleted file mode 100644 index cb83a0a..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/Static_ReportMaster.js.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - Static/ReportMaster.js - Documentation - - - - - - - - - - - - - - - - -
- -

Static/ReportMaster.js

- - - - - - - -
-
-
/**
- * @class ReportMaster
- * @classdesc Static class for Report Master components
- */
-class ReportMaster {
-
-    /**
-     * @memberof ReportMaster
-     * @function CustomerLogo_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function CustomerLogo_Hide(context) {
-        return false;
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function CustomerLogo_Render
-     * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function CustomerLogo_Render(context) {
-        if(Config.CustomerLogo !== null) {
-            context.component.Output.Append('<img class="customer-logo" src="' + Config.CustomerLogo + '" height="60px" >');
-        }
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function btnApplyDateFilter_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnApplyDateFilter_Hide(context){
-        return false
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function btnApplyDateFilter_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnApplyDateFilter_Render(context){
-        context.component.Label = new Label(9, "Apply");
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function btnClearDateFilter_Hide
-     * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     * @returns {Boolean}
-     */
-    static function btnClearDateFilter_Hide(context){
-        return (context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.IsNull("TA_DATE_TO"))
-    }
-
-    /**
-     * @memberof ReportMaster
-     * @function btnClearDateFilter_Render
-     * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
-     */
-    static function btnClearDateFilter_Render(context){
-        context.component.Label = new Label(9, "Clear Date Filters");
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html deleted file mode 100644 index 0126b9d..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.html +++ /dev/null @@ -1,999 +0,0 @@ - - - - - TADetailedAnalysisTable - Documentation - - - - - - - - - - - - - - - - -
- -

TADetailedAnalysisTable

- - - - - - - -
- -
- -

- TADetailedAnalysisTable -

- -

Class to work with Detailed Analysis table

- - -
- -
-
- - - - -

Constructor

- - -

new TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFoldee - - - -

Text Analytics folder to build table from

table - - -Table - - - -
selectedCategory - - -String - - - -
selectedQuestion - - -String - - - -
distribution - - -String - - - -

"0" for counts "1" for percents

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addChartColumn()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _getColumnFormulaExpression()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _getColumnheadersExpression()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _getRowheadersExpression()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupConditionalFormatting()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupTableDistribution()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html deleted file mode 100644 index 3a6465e..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TADetailedAnalysisTable.js.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - TADetailedAnalysisTable.js - Documentation - - - - - - - - - - - - - - - - -
- -

TADetailedAnalysisTable.js

- - - - - - - -
-
-
/**
- * @class TADetailedAnalysisTable
- * @classdesc Class to work with Detailed Analysis table
- *
- * @constructs TADetailedAnalysisTable
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFoldee} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} selectedCategory
- * @param {String} selectedQuestion
- * @param {String} distribution - "0" for counts "1" for percents
- */
-class TADetailedAnalysisTable{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _selectedCategory;
-    private var _selectedQuestion;
-    private var _distribution;
-    private var _multiQuestion;
-
-    function TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution, multiQuestion){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _selectedCategory = selectedCategory && selectedCategory != "emptyv" ? selectedCategory : "all";
-        _selectedQuestion = selectedQuestion && selectedQuestion != "emptyv" ? selectedQuestion : "all";
-        _distribution = distribution ? distribution : "0";
-        _multiQuestion = multiQuestion;
-        _render();
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var rowexpr = _getRowheadersExpression();
-        var colexpr = _getColumnheadersExpression();
-
-        _taTableUtils.CreateTableFromExpression(rowexpr, colexpr);
-        _setupTableDistribution();
-        _table.RowNesting = TableRowNestingType.Nesting;
-        _setupConditionalFormatting();
-        _addChartColumn();
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _getRowheadersExpression
-     */
-    private function _getRowheadersExpression(){
-        var rowexpr = "";
-
-        var blockHeader = "";
-        var qType = "categorysentiment";
-        var categoryHeader = "(";
-
-        var mask = false;
-
-        if(_distribution == "1"){
-            blockHeader += _taTableUtils.GetTAQuestionExpression("overallsentiment",false,"hidedata:true") + "+";
-        }
-
-        if( _selectedQuestion != "all" ){
-            blockHeader += _selectedQuestion+'{id:'+_selectedQuestion+';totals:false'
-
-            if(_multiQuestion){
-                blockHeader+= ";collapsed:true";
-            }
-
-            blockHeader += "}/";
-        }
-
-        if( _selectedCategory != "all" ){
-            mask = _taMasks.GetAllChildrenMask(_selectedCategory);
-            mask.push(_selectedCategory)
-        }
-
-        categoryHeader += _taTableUtils.GetTAQuestionExpression(qType, mask) + ")";
-
-        rowexpr += blockHeader + categoryHeader;
-
-        return rowexpr
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _getColumnheadersExpression
-     */
-    private function _getColumnheadersExpression(){
-        var columnexpr = "";
-        var columnbase = "[N]{hideheader:true;hidedata:true}";
-
-        var countformula = _getColumnFormulaExpression();
-
-        var columnstatistic = "[STATISTICS]{statistics:avg}";
-        var positivecolumn = _taTableUtils.GetCategoriesExpression( "pos", false, false, _distribution, Config.SentimentRange );
-        var neutralcolumn = _taTableUtils.GetCategoriesExpression( "neu", false, false, _distribution, Config.SentimentRange );
-        var negativecolumn = _taTableUtils.GetCategoriesExpression( "neg", false, false, _distribution, Config.SentimentRange );
-
-        columnexpr = [columnbase, countformula, columnstatistic, positivecolumn, neutralcolumn, negativecolumn].join("+");
-        return columnexpr
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _getColumnFormulaExpression
-     */
-    private function _getColumnFormulaExpression(){
-        var countformulaexpression;
-        var countformula = '[FORMULA]{decimals:0;label:"Comments";hideheader:true';
-        if( _distribution == "1"){
-            countformula += ";percent:true";
-            countformulaexpression = '"IF((cellv(1,1)>0),(cellv(col-1,row)/cellv(1,1)),EMPTYV())"';
-        }else{
-            countformula += ";percent:false";
-            countformulaexpression = '"IF(cellv(col-1,row)>0,cellv(col-1,row),EMPTYV())"';
-        }
-        countformula += ";expression:"+countformulaexpression;
-        countformula += "}";
-
-        return countformula
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _setupTableDistribution
-     */
-    private function _setupTableDistribution(){
-        _table.Distribution.Enabled = true;
-        _table.Distribution.VerticalPercents = false;
-
-        if(_distribution == "1"){
-            _table.Distribution.HorizontalPercents = true;
-            _table.Distribution.Count = false;
-        }else{
-            _table.Distribution.HorizontalPercents = false;
-            _table.Distribution.Count = true;
-        }
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _addChartColumn
-     */
-    private function _addChartColumn(){
-        var chartHeader =  _taTableUtils.GetChartHeader(
-            ChartComboType.Bar100,
-            [
-                {
-                    Formula: "cellv(col-25,row)",
-                    Color: (Config.Colors.NegNeuPosPalette.Positive)
-                },
-                {
-                    Formula: "cellv(col-13,row)",
-                    Color: (Config.Colors.NegNeuPosPalette.Neutral)
-                },
-                {
-                    Formula: "cellv(col-1,row)",
-                    Color: (Config.Colors.NegNeuPosPalette.Negative)
-                }
-            ],
-            " ");
-        _table.ColumnHeaders.Add(chartHeader);
-    }
-
-    /**
-     * @memberof TADetailedAnalysisTable
-     * @private
-     * @instance
-     * @function _setupConditionalFormatting
-     */
-    private function _setupConditionalFormatting(){
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col,row)<(-1)',
-                    style: 'negative'
-                },
-
-                {
-                    expression: '(cellv(col, row)>=(-1)) AND (cellv(col, row)<=1)',
-                    style: 'neutral'
-                },
-                {
-                    expression: 'cellv(col, row)>1',
-                    style: 'positive'
-                }
-            ],
-            "NegNeuPos",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "3"
-            }
-        );
-
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col,row)>=0',
-                    style: 'negative'
-                },
-
-            ],
-            "Negative",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "39"
-            }
-        );
-
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col,row)>=0',
-                    style: 'neutral'
-                },
-
-            ],
-            "Negative",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "27"
-            }
-        );
-
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col,row)>=0',
-                    style: 'positive'
-                },
-
-            ],
-            "Negative",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "15"
-            }
-        );
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html deleted file mode 100644 index f904379..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.html +++ /dev/null @@ -1,828 +0,0 @@ - - - - - TAFilters - Documentation - - - - - - - - - - - - - - - - -
- -

TAFilters

- - - - - - - -
- -
- -

- TAFilters -

- -

Class to work with Text Analytics filters

- - -
- -
-
- - - - -

Constructor

- - -

new TAFilters(globals, folder)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -

Text Analytics folder to build table from

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetDateFilterExpression(fromParameter, toParameter) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
fromParameter - - -String - - - -
toParameter - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetSelectedCategoryFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
categoriesParameter - - -String - - - -
subCategoriesParameter - - -String - - - -
attributesParameter - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetSentimentFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter, sentimentParameter) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
categoriesParameter - - -String - - - -
subCategoriesParameter - - -String - - - -
attributesParameter - - -String - - - -
sentimentParameter - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html deleted file mode 100644 index 55fc625..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAFilters.js.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - TAFilters.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAFilters.js

- - - - - - - -
-
-
/**
- * @class TAFilters
- * @classdesc Class to work with Text Analytics filters
- *
- * @constructs TAFilters
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder - Text Analytics folder to build table from
- */
-class TAFilters{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _parameterUtilities: ParameterUtilities;
-
-    function TAFilters(globals, folder){
-        _globals = globals;
-        _folder = folder;
-    }
-
-    /**
-     * @memberof TAFilters
-     * @instance
-     * @function GetSelectedCategoryFilterExpression
-     * @param {String} categoriesParameter
-     * @param {String} subCategoriesParameter
-     * @param {String} attributesParameter
-     * @returns {String}
-     */
-    function GetSelectedCategoryFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter){
-        var fExpr;
-        var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter);
-
-        fExpr = selectedCategory ?('ANY(' + _folder.GetQuestionId("categories") + ',"'+selectedCategory+'")'):'NOT ISNULL('+_folder.GetQuestionId("overallSentiment")+')';
-
-        return fExpr;
-    }
-
-    /**
-     * @memberof TAFilters
-     * @instance
-     * @function GetSentimentFilterExpression
-     * @param {String} categoriesParameter
-     * @param {String} subCategoriesParameter
-     * @param {String} attributesParameter
-     * @param {String} sentimentParameter
-     * @returns {String}
-     */
-    function GetSentimentFilterExpression(categoriesParameter, subCategoriesParameter, attributesParameter, sentimentParameter){
-        var fExpr;
-        var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter);
-        var sentimentParameterValue = _globals.state.Parameters.GetString(sentimentParameter);
-        var sentimentRange = false;
-        switch( sentimentParameterValue ){
-            case "pos":
-                sentimentRange ='"'+Config.SentimentRange.Positive.join('","')+'"';
-                break;
-            case "neu":
-                sentimentRange ='"'+ Config.SentimentRange.Neutral.join('","') +'"';
-                break;
-            case "neg":
-                sentimentRange ='"' + Config.SentimentRange.Negative.join('","')+'"';
-                break;
-        }
-        var questionName = selectedCategory ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment");
-        fExpr = sentimentRange ?('IN(' + questionName + ','+sentimentRange+')') : '';
-        return fExpr;
-    }
-
-    /**
-     * @memberof TAFilters
-     * @instance
-     * @function GetDateFilterExpression
-     * @param {String} fromParameter
-     * @param {String} toParameter
-     * @returns {String}
-     */
-    function GetDateFilterExpression(fromParameter, toParameter){
-        var fExpr;
-        var isFrom = _globals.state.Parameters.IsNull(fromParameter);
-        var isTo = _globals.state.Parameters.IsNull(toParameter);
-        var fromExpr;
-        var toExpr;
-        var resultArray = [];
-        if(!isFrom)
-        {
-            fromExpr = _folder.GetTimeVariableId() + ' >= PValDate("' +fromParameter+'")';
-            resultArray.push(fromExpr);
-        }
-
-        if(!isTo){
-            toExpr = _folder.GetTimeVariableId() + ' <= PValDate("' +toParameter+'")';
-            resultArray.push(toExpr);
-        }
-
-        fExpr = resultArray.join(" AND ");
-
-        return fExpr
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html deleted file mode 100644 index 1ed477f..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.html +++ /dev/null @@ -1,1012 +0,0 @@ - - - - - TAFolder - Documentation - - - - - - - - - - - - - - - - -
- -

TAFolder

- - - - - - - -
- -
- -

- TAFolder -

- -

Class to work with Text Analytics variables

- - -
- -
-
- - - - -

Constructor

- - -

new TAFolder(globals, questionObj)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

questionObj - - -Object - - - -

Object from Config.TAQuestions[i]

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetDatasourceId() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get Id of the datasource

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetHierarchy() → {Hierarchy}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get Hierarchy for the text analytics set

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Hierarchy - - -
-
- - - - - - - - - -

GetHitlistColumns() → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get array of qIds to use in the end of the hitlist

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetId() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get unique Id for the text analytics set

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetQuestionId(questionType) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get id of text analytics variable (verbatim if no parameters)

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
questionType - - -String - - - -

type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetTimeVariableId() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get qId of time variable for the set

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetViewByVariables() → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to Get array of qIds to use in the detailed analysis table

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html deleted file mode 100644 index 9e31da7..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAFolder.js.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - TAFolder.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAFolder.js

- - - - - - - -
-
-
/**
- * @class TAFolder
- * @classdesc Class to work with Text Analytics variables
- *
- * @constructs TAFolder
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {Object} questionObj - Object from Config.TAQuestions[i]
- */
-class TAFolder{
-    private var _globals;
-
-    //TA Fields
-    private var _id: String;
-    private var _qName: String;
-    private var _modelNo: String;
-
-    //additional fields
-    private var _timeVariableId: String;
-    private var _datasourceId: String;
-    private var _variablesToViewBy;
-    private var _hitlistColumns;
-
-    private var _hierarchy: Hierarchy;
-
-
-    function TAFolder(globals, questionIndex, config){
-        _globals = globals;
-        _id = config.TAQuestions[questionIndex].TAFolderId;
-        _qName = config.TAQuestions[questionIndex].TAQuestionName;
-        _modelNo = config.TAQuestions[questionIndex].TAModelNo;
-        _timeVariableId = TAHelper.GetConfiguredVariables(globals,[config.TAQuestions[questionIndex].TimeVariableId], [config.TimeVariableId], null, ["interview_start"])[0];
-
-        _datasourceId = TAHelper.GetConfiguredVariables(globals,[config.TAQuestions[questionIndex].DatasourceId], [config.DS_Main], null, ["ds0"])[0];
-
-        var variablesToViewBy = TAHelper.GetTagsFromSurvey(globals, _datasourceId, ["ta_viewby"]);
-        _variablesToViewBy = TAHelper.GetConfiguredVariables(globals, config.TAQuestions[questionIndex].VariablesToViewBy, config.VariablesToViewBy, variablesToViewBy, []);
-
-        var hitlistColumns = TAHelper.GetTagsFromSurvey(globals, _datasourceId, ["ta_hitlist"]);
-        _hitlistColumns = TAHelper.GetConfiguredVariables(globals, config.TAQuestions[questionIndex].HitlistColumns, config.HitlistColumns, hitlistColumns, []);
-
-        _hierarchy = new Hierarchy(globals, {
-            schemaId: config.TAQuestions[questionIndex].DatabaseSchemaId,
-            tableName: config.TAQuestions[questionIndex].DatabaseTableName,
-            relationshipColumnName: config.TAQuestions[questionIndex].RelationshipColumnName,
-            textSeparator: config.TAQuestions[questionIndex].TextSeparator != "" ? config.TAQuestions[questionIndex].TextSeparator: null
-        });
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetQuestionId
-     * @description function to Get id of text analytics variable (verbatim if no parameters)
-     * @param {String} questionType - type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"
-     * @returns {String}
-     */
-    function GetQuestionId(questionType){
-        var postfix;
-        if(!questionType){
-            return _qName;
-        }
-        switch(questionType.toLowerCase()){
-            case "overallsentiment":
-            case "os":
-                postfix = "OverallSentiment";
-                break;
-            case "categories":
-            case "c":
-                postfix = "Categories";
-                break;
-            case "positivementions":
-            case "positive":
-            case "pm":
-                postfix = "PositiveMentions";
-                break;
-            case "negativementions":
-            case "negative":
-            case "nm":
-                postfix = "NegativeMentions";
-                break;
-            case "categorysentiment":
-            case "cs":
-                postfix = "CategorySentiment"
-                break;
-            case "verbatim":
-            default:
-                postfix = false;
-                break;
-        }
-
-        return _qName+( postfix ? (_modelNo + postfix) : "" );
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetHierarchy
-     * @description function to Get Hierarchy for the text analytics set
-     * @returns {Hierarchy}
-     */
-    function GetHierarchy(){
-        return _hierarchy;
-}
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetId
-     * @description function to Get unique Id for the text analytics set
-     * @returns {String}
-     */
-    function GetId(){
-        return _id;
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetTimeVariableId
-     * @description function to Get qId of time variable for the set
-     * @returns {String}
-     */
-    function GetTimeVariableId(){
-        return _timeVariableId;
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetDatasourceId
-     * @description function to Get Id of the datasource
-     * @returns {String}
-     */
-    function GetDatasourceId(){
-        return _datasourceId;
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetViewByVariables
-     * @description function to Get array of qIds to use in the detailed analysis table
-     * @returns {String[]}
-     */
-    function GetViewByVariables(){
-        return _variablesToViewBy;
-    }
-
-    /**
-     * @memberof TAFolder
-     * @instance
-     * @function GetHitlistColumns
-     * @description function to Get array of qIds to use in the end of the hitlist
-     * @returns {String[]}
-     */
-    function GetHitlistColumns(){
-        return _hitlistColumns;
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html deleted file mode 100644 index 1089fd2..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.html +++ /dev/null @@ -1,1121 +0,0 @@ - - - - - TAHelper - Documentation - - - - - - - - - - - - - - - - -
- -

TAHelper

- - - - - - - -
- -
- -

- TAHelper -

- -

Class cntaining additional static functions to work with text analytics

- - -
- -
-
- - - - -

Constructor

- - -

new TAHelper()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(static) GetConfiguredVariables(globals, questionConfig, config, tag, defaultValue) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get configured value from TAConfig or survey tags

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -
questionConfig - - -Object - - - -
config - - -Object - - - -
tag - - -Object - - - -
defaultValue - - -Object - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

(static) GetGlobals(context) → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to retrieve global parameters from given context

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
context - - -Object - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - -

(static) GetSelectedCategory(state, categoriesParameterName, subCategoriesParameterName, attribtesPararmeterNam) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get id of selected category, subcategory or attribute

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
state - - -ReportState - - - -
categoriesParameterName - - -String - - - -
subCategoriesParameterName - - -String - - - -
attribtesPararmeterNam - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

(static) GetSelfName(name, separator) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to trim out parents cateories from the category name

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -String - - - -
separator - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

(static) SetLastVisitedPage(globals, pageId)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to set the last visited page to the parameter

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -
pageId - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html deleted file mode 100644 index 1a3f92a..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAHelper.js.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - TAHelper.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAHelper.js

- - - - - - - -
-
-
/**
- * @class TAHelper
- * @classdesc Class cntaining additional static functions to work with text analytics
- */
-class TAHelper{
-    /**
-     * @memberof TAHelper
-     * @function GetGlobals
-     * @description function to retrieve global parameters from given context
-     * @param {Object} context
-     * @returns {Object}
-     */
-    static function GetGlobals(context){
-        return {
-            pageContext: context.pageContext,
-            report: context.report,
-            user: context.user,
-            state: context.state,
-            confirmit: context.confirmit,
-            log: context.log
-        };
-    }
-
-    /**
-     * @memberof TAHelper
-     * @function GetSelectedCategory
-     * @description function to get id of selected category, subcategory or attribute
-     * @param {ReportState} state
-     * @param {String} categoriesParameterName
-     * @param {String} subCategoriesParameterName
-     * @param {String} attribtesPararmeterNam
-     * @returns {String}
-     */
-    static function GetSelectedCategory(state, categoriesParameterName, subCategoriesParameterName, attribtesPararmeterName){
-        var categoriesParameter;
-        if(categoriesParameterName)
-            categoriesParameter = state.Parameters.GetString(categoriesParameterName);
-
-
-        var subCategoriesParameter;
-        if(subCategoriesParameterName)
-            subCategoriesParameter= state.Parameters.GetString("TA_SUB_CATEGORIES_SINGLE");
-
-
-        var attributesParameter;
-        if(attribtesPararmeterName)
-            attributesParameter = state.Parameters.GetString("TA_ATTRIBUTES_SINGLE");
-
-        var selectedCategory = false;
-
-        if(categoriesParameter && categoriesParameter != "emptyv"){
-            selectedCategory = categoriesParameter;
-        }
-
-        if(subCategoriesParameter && subCategoriesParameter != "emptyv"){
-            selectedCategory = subCategoriesParameter;
-        }
-
-        if(attributesParameter && attributesParameter != "emptyv"){
-            selectedCategory = attributesParameter;
-        }
-
-        return selectedCategory;
-    }
-
-    /**
-     * @memberof TAHelper
-     * @function GetSelfName
-     * @description function to trim out parents cateories from the category name
-     * @param {String} name
-     * @param {String} separator
-     * @returns {String}
-     */
-    static function GetSelfName(name, separator){
-        var index = name.lastIndexOf(separator);
-        return name.slice((index+1)).Trim();
-    }
-
-    /**
-     * @memberof TAHelper
-     * @function GetConfiguredVariables
-     * @description function to get configured value from TAConfig or survey tags
-     * @param {Object} globals
-     * @param {Object} questionConfig
-     * @param {Object} config
-     * @param {Object} tag
-     * @param {Object} defaultValue
-     * @returns {Object}
-     */
-    static function GetConfiguredVariables(globals,questionConfig, config, tag, defaultValue){
-        var result = [];
-        if(!questionConfig || questionConfig.length == 0 || !questionConfig[0]){
-            if( !config || config.length == 0 || !config[0]){
-                if(!tag || tag.length == 0 || !tag[0]){
-                    result = defaultValue;
-                }else{
-                    result = tag
-                }
-            }else{
-                result = config;
-            }
-        }else{
-            result = questionConfig
-        }
-        return result;
-    }
-
-    static function GetTagsFromSurvey(globals, datasourceId, tags){
-        var result = false;
-        var project = globals.report.DataSource.GetProject(datasourceId);
-        var questions = project.GetQuestionsWithAnswers(false, tags);
-        if(questions.length > 0)
-            result = [];
-        for (var i = 0; i < questions.length; i++){
-            result.push(questions[i].QuestionId);
-        }
-        return result;
-    }
-
-    /**
-     * @memberof TAHelper
-     * @function SetLastVisitedPage
-     * @description function to set the last visited page to the parameter
-     * @param {Object} globals
-     * @param {String} pageId
-     */
-    static function SetLastVisitedPage(globals, pageId){
-        globals.state.Parameters["TA_LAST_VISITED_PAGE"] = new ParameterValueResponse(pageId);
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html deleted file mode 100644 index b435e26..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.html +++ /dev/null @@ -1,691 +0,0 @@ - - - - - TAHitlistUtils - Documentation - - - - - - - - - - - - - - - - -
- -

TAHitlistUtils

- - - - - - - -
- -
- -

- TAHitlistUtils -

- -

Class to work with the hitlist

- - -
- -
-
- - - - -

Constructor

- - -

new TAHitlistUtils(globals, folder, hitlist)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -
hitlist - - -Hitlist - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

AddColumn(columnName, sortable)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to add a not text analytics variable to the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
columnName - - -String - - - -

variable qId

sortable - - -Boolean - - - -
- - - - - - - - - - - - - - - - - - - - - -

AddConfiguredColumns()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to add columns from config

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

AddTAColumn(columnName, sortable, postfix)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to add a text analytics variable to the hitlist

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
columnName - - -String - - - -

type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"

sortable - - -Boolean - - - -
postfix - - -String - - - -

id of the selected category

- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html deleted file mode 100644 index 7cb2e1a..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAHitlistUtils.js.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - TAHitlistUtils.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAHitlistUtils.js

- - - - - - - -
-
-
/**
- * @class TAHitlistUtils
- * @classdesc Class to work with the hitlist
- *
- * @constructs TAHitlistUtils
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder
- * @param {Hitlist} hitlist
- */
-class TAHitlistUtils{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _hitlist: HitList;
-
-    function TAHitlistUtils(globals, folder, hitlist){
-        _globals = globals;
-        _folder = folder;
-        _hitlist = hitlist;
-    }
-
-    /**
-     * @memberof TAHitlistUtils
-     * @instance
-     * @function AddTAColumn
-     * @description function to add a text analytics variable to the hitlist
-     * @param {String} columnName - type of the question "overallsentiment" or "os", "categories" or "c", "positivementions" or "positive" or "pm", "negativementions" or "negative" or "nm", "categorysentiment" or "cs"
-     * @param {Boolean} sortable
-     * @param {String} postfix - id of the selected category
-     */
-    function AddTAColumn(columnName, sortable, postfix){
-        var hitlistColumn: HitListColumn = new HitListColumn();
-    var dsId = _folder.GetDatasourceId();
-
-        var project: Project = _globals.report.DataSource.GetProject(dsId);
-
-        var columnId = _folder.GetQuestionId(columnName);
-
-
-        hitlistColumn.QuestionnaireElement = columnName == "categorysentiment" ? project.CreateQuestionnaireElement(columnId, postfix) : project.CreateQuestionnaireElement(columnId);
-        sortable ? (hitlistColumn.IsSortable = true) : null;
-        _hitlist.Columns.Add(hitlistColumn);
-
-    }
-
-    /**
-     * @memberof TAHitlistUtils
-     * @instance
-     * @function AddColumn
-     * @description function to add a not text analytics variable to the hitlist
-     * @param {String} columnName - variable qId
-     * @param {Boolean} sortable
-     */
-    function AddColumn(columnName, sortable){
-        var hitlistColumn: HitListColumn = new HitListColumn();
-        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
-
-        hitlistColumn.QuestionnaireElement = project.CreateQuestionnaireElement(columnName);
-        sortable ? (hitlistColumn.IsSortable = true) : null;
-        _hitlist.Columns.Add(hitlistColumn);
-    }
-
-    /**
-     * @memberof TAHitlistUtils
-     * @instance
-     * @function AddConfiguredColumns
-     * @description function to add columns from config
-     */
-    function AddConfiguredColumns(){
-        var hitlistColumn: HitListColumn;
-        var project : Project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
-        var columns = _folder.GetHitlistColumns();
-        for( var i = 0; i < columns.length; i++){
-            hitlistColumn = new HitListColumn();
-            hitlistColumn.QuestionnaireElement = project.CreateQuestionnaireElement(columns[i]);
-            _hitlist.Columns.Add(hitlistColumn);
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html deleted file mode 100644 index 753427a..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.html +++ /dev/null @@ -1,721 +0,0 @@ - - - - - TALibrary - Documentation - - - - - - - - - - - - - - - - -
- -

TALibrary

- - - - - - - -
- -
- -

- TALibrary -

- -

Class to work with different TAFolders

- - -
- -
-
- - - - -

Constructor

- - -

new TALibrary(globals, folders)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folders - - -Array.<Object> - - - -

Config.TAQuestions

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetFilterQuestions() → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetFolderById(id) → {TAFolder}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TAFolder - - -
-
- - - - - - - - - -

GetFolders() → {Array.<TAFolder>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<TAFolder> - - -
-
- - - - - - - - - -

SetCurrentFolder(id)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html deleted file mode 100644 index 1c80e93..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TALibrary.js.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - TALibrary.js - Documentation - - - - - - - - - - - - - - - - -
- -

TALibrary.js

- - - - - - - -
-
-
/**
- * @class TALibrary
- * @classdesc Class to work with different TAFolders
- *
- * @constructs TALibrary
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {Object[]} folders - Config.TAQuestions
- */
-class TALibrary{
-    private var _globals;
-    private var _folders = [];
-    private var _currentFolder: TAFolder;
-    private var _filterQuestions;
-
-
-    function TALibrary(globals,config){
-        _globals = globals;
-        var filterQuestions = TAHelper.GetTagsFromSurvey(globals, config.DS_Main, ["ta_filter"]);
-        _filterQuestions = TAHelper.GetConfiguredVariables(globals, null, config.FilterQuestions, filterQuestions, []);
-        var folder: TAFolder;
-        for(var i = 0 ; i < config.TAQuestions.length; i++){
-                folder = new TAFolder(_globals,i, config);
-                _folders.push(folder);
-            }
-            _currentFolder = _folders[0];
-    }
-
-    /**
-     * @memberof TALibrary
-     * @instance
-     * @function GetFolders
-     * @returns {TAFolder[]}
-     */
-    function GetFolders(){
-        return _folders;
-    }
-
-    /**
-     * @memberof TALibrary
-     * @instance
-     * @function GetFolderById
-     * @param {String} id
-     * @returns {TAFolder}
-     */
-    function GetFolderById(id){
-    var result;
-        if(id){
-            for(var i=0; i<_folders.length; i++){
-                if(_folders[i].GetId() == id){
-                    result = _folders[i];
-                    break;
-                }
-            }
-            if(!result) {
-                throw new Error(201, "incorrect question Id");
-            }
-            return result
-        }else{
-            return _folders[0];
-        }
-    }
-
-    /**
-     * @memberof TALibrary
-     * @instance
-     * @function GetFilterQuestions
-     * @returns {String[]}
-     */
-    function GetFilterQuestions(){
-        return _filterQuestions;
-    }
-
-    /**
-     * @memberof TALibrary
-     * @instance
-     * @function SetCurrentFolder
-     * @param {String} id
-     */
-    function SetCurrentFolder(id){
-        for(var i=0; i<_folders.length; i++){
-            if(_folders[i].id == id){
-                _currentFolder = _folders[i];
-                break;
-            }
-        }
-    }
-
-    static function GetTAFoldersParameterValue(context) {
-        var selectedFolder = null;
-        try {
-            selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null;
-        } catch(e) {
-            selectedFolder = null;
-        } finally {
-            return selectedFolder;
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html deleted file mode 100644 index c6264dd..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.html +++ /dev/null @@ -1,702 +0,0 @@ - - - - - TAMasks - Documentation - - - - - - - - - - - - - - - - -
- -

TAMasks

- - - - - - - -
- -
- -

- TAMasks -

- -

Class to work with different types of masks for text analytics

- - -
- -
-
- - - - -

Constructor

- - -

new TAMasks(globals, folder)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetAllChildrenMask(level) → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

returns all children and grand-children ids for the selected category

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetCategoriesMask(level) → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

returns all categories on the selected level

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - -

GetChildrenMask(level) → {Array.<String>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

returns all children ids for the selected category

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
level - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<String> - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html deleted file mode 100644 index 98ce964..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAMasks.js.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - TAMasks.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAMasks.js

- - - - - - - -
-
-
/**
- * @class TAMasks
- * @classdesc Class to work with different types of masks for text analytics
- *
- * @constructs TAMasks
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder
- */
-class TAMasks{
-    private var _globals;
-    private var _folder: TAFolder;
-
-    function TAMasks(globals, folder){
-        _globals = globals;
-        _folder = folder;
-    }
-
-    /**
-     * @memberof TAMasks
-     * @instance
-     * @function GetCategoriesMask
-     * @description returns all categories on the selected level
-     * @param {String} level
-     * @returns {String[]}
-     */
-    function GetCategoriesMask(level){
-        var mask = [];
-        var levelArray = _folder.GetHierarchy().GetLevelArray(parseInt(level));
-        for(var i = 0; i < levelArray.length; i++){
-            mask.push(levelArray[i].id);
-        }
-        return mask
-    }
-
-    /**
-     * @memberof TAMasks
-     * @instance
-     * @function GetChildrenMask
-     * @description returns all children ids for the selected category
-     * @param {String} level
-     * @returns {String[]}
-     */
-    function GetChildrenMask(category){
-        var mask = [];
-        var childrenArray = _folder.GetHierarchy().GetObjectById(category).subcells;
-        for(var i = 0; i < childrenArray.length; i++){
-            mask.push(childrenArray[i].id);
-        }
-
-        return mask
-    }
-
-    /**
-     * @memberof TAMasks
-     * @instance
-     * @function GetAllChildrenMask
-     * @description returns all children and grand-children ids for the selected category
-     * @param {String} level
-     * @returns {String[]}
-     */
-    function GetAllChildrenMask(category, mask){
-        var mask = mask ? mask : [];
-        var childrenArray = _folder.GetHierarchy().GetObjectById(category).subcells;
-        for(var i = 0; i < childrenArray.length; i++){
-            mask.push(childrenArray[i].id);
-            mask = GetAllChildrenMask(childrenArray[i].id, mask);
-        }
-
-        return mask
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html deleted file mode 100644 index b71f35c..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.html +++ /dev/null @@ -1,1516 +0,0 @@ - - - - - TAParameters - Documentation - - - - - - - - - - - - - - - - -
- -

TAParameters

- - - - - - - -
- -
- -

- TAParameters -

- -

Class to work with parameters using Text analytics variables

- - -
- -
-
- - - - -

Constructor

- - -

new TAParameters(globals, library)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

library - - -TALibrary - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addEmptyValue(EmptyValueLabel) → {Array.<Object>}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
EmptyValueLabel - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Array.<Object> - - -
-
- - - - - - - - - -

ClearSubcategoriesParameters(folderId, value, categoriesParameter, subcategoriesParameter, attributesParamete)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

clear subcategories andattributes parameters when another parent selected

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
folderId - - -String - - - -
value - - -String - - - -

empty value for that parameter "emptyv"

categoriesParameter - - -String - - - -
subcategoriesParameter - - -String - - - -
attributesParamete - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

MaskSelectedCategoryChildren(mask, folderId, category, addEmpty)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

masking children for the specified category

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
mask - - -Mask - - - -
folderId - - -String - - - -
category - - -String - - - -
addEmpty - - -Boolean - - - -
- - - - - - - - - - - - - - - - - - - - - -

RenderFoldersParameter(parameter)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

render parameter with list of TAFoders using in the report

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
- - - - - - - - - - - - - - - - - - - - - -

RenderLevelCategoriesParameter(parameter, folderId, level, emptyValueLabel)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

render parameter with list of categories on the specified level

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
folderId - - -String - - - -
level - - -String - - - -
emptyValueLabel - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

RenderLevelsParameter(parameter, folderId, emptyValueLabel)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

render parameter with list of levels in the hierarchy

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
folderId - - -String - - - -
emptyValueLabel - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

RenderViewByParameter(parameter, folderId, emptyValueLabel)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

render parameter with list of questions for the detailed analysis table

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameter - - -Parameter - - - -
folderId - - -String - - - -
emptyValueLabel - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html deleted file mode 100644 index 7f39201..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAParameters.js.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - TAParameters.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAParameters.js

- - - - - - - -
-
-
/**
- * @class TAParameters
- * @classdesc Class to work with parameters using Text analytics variables
- *
- * @constructs TAParameters
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TALibrary} library
- */
-class TAParameters{
-    private var _globals;
-    private var _library: TALibrary;
-    private var _parameterUtilities: ParameterUtilities;
-
-    function TAParameters(globals, library){
-        _globals = globals;
-        _library = library;
-        _parameterUtilities = new ParameterUtilities(_globals);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @private
-     * @function _addEmptyValue
-     * @param {String} EmptyValueLabel
-     * @returns {Object[]}
-     */
-    private function _addEmptyValue(emptyValueLabel){
-            var parameterValues = [];
-        if(emptyValueLabel){
-            parameterValues.push({
-                Code : "emptyv",
-                Label: emptyValueLabel
-            });
-        }
-        return parameterValues
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function RenderFoldersParameter
-     * @description render parameter with list of TAFoders using in the report
-     * @param {Parameter} parameter
-     */
-    function RenderFoldersParameter(parameter){
-        var folders = _library.GetFolders();
-
-        var parameterValues = [];
-
-        for(var i = 0; i < folders.length; i++){
-            parameterValues.push({
-                Code: folders[i].GetId(),
-                Label: folders[i].GetId()
-            });
-        }
-        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function RenderLevelCategoriesParameter
-     * @description render parameter with list of categories on the specified level
-     * @param {Parameter} parameter
-     * @param {String} folderId
-     * @param {String} level
-     * @param {String} emptyValueLabel
-     */
-    function RenderLevelCategoriesParameter(parameter,folderId, level, emptyValueLabel){
-        var categories = _library.
-        GetFolderById(folderId).
-        GetHierarchy().
-        GetLevelArray(level);
-
-        var parameterValues = _addEmptyValue(emptyValueLabel);
-
-        for(var i = 0; i < categories.length; i++){
-            parameterValues.push({
-                Code: categories[i].id,
-                Label: categories[i].name
-            })
-        }
-        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function MaskSelectedCategoryChildren
-     * @description masking children for the specified category
-     * @param {Mask} mask
-     * @param {String} folderId
-     * @param {String} category
-     * @param {Boolean} addEmpty
-     */
-    function MaskSelectedCategoryChildren(mask,folderId,category,addEmpty){
-        var folder = _library.GetFolderById(folderId);
-        var taMasks = new TAMasks(_globals, folder);
-        var children = taMasks.GetChildrenMask(category);
-        mask.Access = ParameterAccessType.Inclusive;
-        if( addEmpty )
-            mask.Keys.Add("emptyv");
-        for ( var i = 0; i< children.length; i++)
-            mask.Keys.Add(children[i]);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function RenderLevelsParameter
-     * @description render parameter with list of levels in the hierarchy
-     * @param {Parameter} parameter
-     * @param {String} folderId
-     * @param {String} emptyValueLabel
-     */
-    function RenderLevelsParameter(parameter, folderId, emptyValueLabel){
-        var levelValues = [
-            {
-                Code: "0",
-                Label: "1st level (category)"
-            },
-            {
-                Code: "1",
-                Label: "2nd level (sub-category)"
-            },
-            {
-                Code: "2",
-                Label: "3rd level (attributes)"
-            }
-        ];
-        var parameterValues = _addEmptyValue(emptyValueLabel);
-        var folder = _library.GetFolderById(folderId);
-        var hierarchy = folder.GetHierarchy();
-        var levelsCount=hierarchy.GetLevelsCount();
-
-        for( var i = 0; i < levelsCount; i++){
-            parameterValues.push( levelValues[i] );
-        }
-
-        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function RenderViewByParameter
-     * @description render parameter with list of questions for the detailed analysis table
-     * @param {Parameter} parameter
-     * @param {String} folderId
-     * @param {String} emptyValueLabel
-     */
-    function RenderViewByParameter(parameter, folderId, emptyValueLabel){
-        var parameterValues = _addEmptyValue(emptyValueLabel);
-        var folder = _library.GetFolderById(folderId);
-        var variables = folder.GetViewByVariables();
-        var project = _globals.report.DataSource.GetProject(folder.GetDatasourceId());
-        var question: Question;
-        for( var i = 0; i < variables.length; i++){
-            question = project.GetQuestion( variables[i] );
-            parameterValues.push({
-                Code: variables[i],
-                Label: question.Title ? question.Title : variables[i]
-            });
-        }
-
-        _parameterUtilities.LoadParameterValues(parameter, parameterValues);
-    }
-
-    /**
-     * @memberof TAParameters
-     * @instance
-     * @function ClearSubcategoriesParameters
-     * @description clear subcategories andattributes parameters when another parent selected
-     * @param {String} folderId
-     * @param {String} value - empty value for that parameter "emptyv"
-     * @param {String} categoriesParameter
-     * @param {String} subcategoriesParameter
-     * @param {String} attributesParamete
-     */
-    function ClearSubcategoriesParameters(folderId, value, categoriesParameter, subcategoriesParameter, attributesParameter){
-        var folder = _library.GetFolderById(folderId);
-        var topCategory = _globals.state.Parameters.GetString(categoriesParameter);
-        var subCategory = _globals.state.Parameters.GetString(subcategoriesParameter);
-        if(subCategory && subCategory != value){
-            if (folder.GetHierarchy().GetObjectById(subCategory).parent != topCategory){
-                _globals.state.Parameters[subcategoriesParameter] = new ParameterValueResponse(value);
-                if ( attributesParameter ){
-                    _globals.state.Parameters[attributesParameter] = new ParameterValueResponse(value);
-                }
-            }
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html deleted file mode 100644 index dcf5759..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.html +++ /dev/null @@ -1,459 +0,0 @@ - - - - - TATableData - Documentation - - - - - - - - - - - - - - - - -
- -

TATableData

- - - - - - - -
- -
- -

- TATableData -

- -

Class to get Data from built table

- - -
- -
-
- - - - -

Constructor

- - -

new TATableData(globals, tableName)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

tableName - - -String - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

GetBlocks() → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get parent rowheader ids

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetTableRowHeaders() → {Object}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get rowheaders with ids

-
- - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - -
-
    -
  • object with ids, titles and row indexes
  • -
-
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html deleted file mode 100644 index 83afd99..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATableData.js.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - TATableData.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATableData.js

- - - - - - - -
-
-
/**
- * @class TATableData
- * @classdesc Class to get Data from built table
- *
- * @constructs TATableData
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {String} tableName
- */
-class TATableData{
-    private var _globals;
-    private var _tableName;
-
-    function  TATableData(globals, tableName){
-        _globals = globals;
-        _tableName = tableName
-    }
-
-    /**
-     * @memberof TATableData
-     * @instance
-     * @function GetTableRowHeaders
-     * @description function to get rowheaders with ids
-     * @returns {Object} - object with ids, titles and row indexes
-     */
-    function GetTableRowHeaders(){
-        var rowheaders={
-            length: 0
-        };
-        var rowHeaderTitles = _globals.report.TableUtils.GetRowHeaderCategoryTitles(_tableName);
-        var rowHeaderIds = _globals.report.TableUtils.GetRowHeaderCategoryIds(_tableName);
-        for(var i=0; i<rowHeaderIds.length;i++){
-            rowheaders[rowHeaderIds[i][0]+((rowHeaderIds[i].length>1)?("_block"+rowHeaderIds[i][1]):"")] = {title: rowHeaderTitles[i][0], index: i, categoryId: rowHeaderIds[i][0].toLowerCase(), blockId: ((rowHeaderIds[i].length>1)?("block"+rowHeaderIds[i][1]):null)};
-            rowheaders.length++;
-        }
-        return rowheaders;
-    }
-
-    /**
-     * @memberof TATableData
-     * @instance
-     * @function GetBlocks
-     * @description function to get parent rowheader ids
-     * @returns {String}
-     */
-    function GetBlocks(){
-        var blocks = [];
-        var rowHeaderIds = _globals.report.TableUtils.GetRowHeaderCategoryIds(_tableName);
-        var blockExists = false;
-        if(rowHeaderIds.length >0 && rowHeaderIds[0].length > 1){
-            for(var i=0; i<rowHeaderIds.length; i++){
-                blockExists = false;
-                for(var j = 0; j < blocks.length; j++){
-                    if( ("block"+rowHeaderIds[i][1]) == blocks[j]){
-                        blockExists = true;
-                        break;
-                    }
-                }
-
-                if( !blockExists ){
-                    blocks.push("block"+rowHeaderIds[i][1]);
-                }
-            }
-        }
-        return blocks
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html deleted file mode 100644 index 372346b..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.html +++ /dev/null @@ -1,2633 +0,0 @@ - - - - - TATableUtils - Documentation - - - - - - - - - - - - - - - - -
- -

TATableUtils

- - - - - - - -
- -
- -

- TATableUtils -

- -

Class to work with tables using Text Analytics variables

- - -
- -
-
- - - - -

Constructor

- - -

new TATableUtils(globals, folder, table)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -
table - - -Table - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _getSumOfCells(cellsNumber, offset) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get formula expression for sum of previous columns

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
cellsNumber - - -Number - - - -
offset - - -Number - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

AddClasses(classes)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
classes - - -Array.<String> - - - -
- - - - - - - - - - - - - - - - - - - - - -

ClearTableDistributions()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to clear distributions presets for table

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

CreateTableFromExpression(rowHeaders, columnHeaders)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to create table from columns and rows expression

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rowHeaders - - -String - - - -
columnHeaders - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

GetCategoriesExpression(groupName, addMinus, hideHeader, distribution) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get columnHeaderExpression for total or neg, neu, pos categories

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupName - - -String - - - -

"total", "neg", "neu","pos"

addMinus - - -Boolean - - - -

if you want to add minus to negative values

hideHeader - - -Boolean - - - -
distribution - - -String - - - -

0 - for counts, 1 - for percents

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetCategoriesHeader(groupName, addMinus, hideHeader, distribution) → {HeaderCollection}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get columnHeader for total or neg, neu, pos categories

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupName - - -String - - - -

"total", "neg", "neu","pos"

addMinus - - -Boolean - - - -

if you want to add minus to negative values

hideHeader - - -Boolean - - - -
distribution - - -String - - - -

0 - for counts, 1 - for percents

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -HeaderCollection - - -
-
- - - - - - - - - -

GetChartHeader(type, formulas, title) → {HeaderChartCombo}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Header containing Barchart

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -ChartComboType - - - -
formulas - - -Array.<Object> - - - -

array of objects with formulas like {Formula: "cellv(col-25,row)", Color: (Config.Colors.NegNeuPosPalette.Positive)}

title - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -HeaderChartCombo - - -
-
- - - - - - - - - -

GetTAQuestionExpression(questionType, mask, additionalStatement) → {String}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Expression for header containing Text Analytics variable

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
questionType - - -String - - - -

"overallsentiment", "categories", "positivementions", "negativementions", "categorysentiment"

mask - - -Array.<String> - - - -
additionalStatement - - -String - - - -
- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -String - - -
-
- - - - - - - - - -

GetTimePeriodHeader(unit, from, to) → {HeaderQuestion}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to get Header for certain time period

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
unit - - -String - - - -

breaking by "d" - for days, "w" - for weeks, "m" - for months, "q" - for quarters, "y" - for years

from - - -Number - - - -

rolling from

to - - -Number - - - -

rolling to

- - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -HeaderQuestion - - -
-
- - - - - - - - - -

SetDataSupressing(baseLessThen)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-

function to set suppression

-
- - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
baseLessThen - - -Number - - - -
- - - - - - - - - - - - - - - - - - - - - -

SetupConditionalFormatting(conditions, name, applyTo)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
conditions - - -Array.<Object> - - - -

array of objects like { expression: 'cellv(col,row)<(-1)', style: 'negative'}

name - - -String - - - -
applyTo - - -Object - - - -

define area in object like {axis: Area.Columns, direction: Area.Left, indexes: "3"}

- - - - - - - - - - - - - - - - - - - - - -

SetupDrilldown(parameterId, pageIDs)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameterId - - -String - - - -
pageIDs - - -String - - - -
- - - - - - - - - - - - - - - - - - - - - -

SetupHideEmptyRows(parameterId)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parameterId - - -Boolean - - - -
- - - - - - - - - - - - - - - - - - - - - -

SetupRowsTableSorting(directionAscending, position, topN, positionFromEnd)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
directionAscending - - -Boolean - - - -
position - - -Byte - - - -
topN - - -Number - - - -
positionFromEnd - - -Boolean - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html deleted file mode 100644 index 75a0728..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATableUtils.js.html +++ /dev/null @@ -1,472 +0,0 @@ - - - - - TATableUtils.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATableUtils.js

- - - - - - - -
-
-
/**
- * @class TATableUtils
- * @classdesc Class to work with tables using Text Analytics variables
- *
- * @constructs TATableUtils
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param  {TAFolder} folder
- * @param {Table} table
- */
-class TATableUtils{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _table: Table;
-
-    function TATableUtils(globals, folder, table){
-        _globals = globals;
-        _folder = folder;
-        _table = table;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetupRowsTableSorting
-     * @param {Boolean} directionAscending
-     * @param {Byte} position
-     * @param {Number} topN
-     * @param {Boolean} positionFromEnd
-     */
-    function SetupRowsTableSorting(directionAscending: Boolean, position: Byte, topN, positionFromEnd){
-        _table.Sorting.Rows.Enabled = true;
-        _table.Sorting.Rows.SortByType = TableSortByType.Position;
-        _table.Sorting.Rows.Direction = directionAscending ? TableSortDirection.Ascending : TableSortDirection.Descending;
-        _table.Sorting.Rows.Position = position;
-        _table.Sorting.Rows.PositionDirection =  positionFromEnd ? TableSortByPositionType.FromEnd : TableSortByPositionType.FromStart;
-        _table.Sorting.Rows.TopN = topN ? topN : 0;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetupConditionalFormatting
-     * @param {Object[]} conditions - array of objects like { expression: 'cellv(col,row)<(-1)', style: 'negative'}
-     * @param {String} name
-     * @param {Object} applyTo - define area in object like {axis: Area.Columns, direction: Area.Left, indexes: "3"}
-     */
-    function SetupConditionalFormatting(conditions, name, applyTo){
-        var formatter : ConditionalFormatting = _table.ConditionalFormatting;
-
-        var area : Area = new Area();
-
-        area.Name = name;
-        area.ApplyTo(applyTo.axis, applyTo.direction, applyTo.indexes);
-
-        for(var i = 0; i< conditions.length; i++){
-            var condition: Condition = new Condition();
-            condition.Expression = conditions[i].expression;
-            condition.Style = conditions[i].style;
-            area.AddCondition(condition);
-        }
-
-        formatter.AddArea(area);
-
-        _table.ConditionalFormatting = formatter;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetupDrilldown
-     * @param {String} parameterId
-     * @param {String} pageIDs
-     */
-    function SetupDrilldown(parameterId: String, pageIDs){
-        _table.Drilling.Rows.Enabled = true;
-        _table.Drilling.Rows.Type = DrilldownType.SetParameter;
-        _table.Drilling.Rows.ParameterID = parameterId;
-        _table.Drilling.Rows.TargetPages = pageIDs;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetupHideEmptyRows
-     * @param {Boolean} parameterId
-     */
-    function SetupHideEmptyRows(hideEmptyRows){
-        _table.RemoveEmptyHeaders.Rows = hideEmptyRows;
-    }
-
-    /**
-    * @memberof TATableUtils
-    * @instance
-    * @function AddClasses
-    * @param {String[]} classes
-    */
-    function AddClasses(classes){
-        _table.CssClass = ( ( !_table.CssClass ) ? "" : (_table.CssClass + " " ) ) + classes.join(" ");
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @private
-     * @function _getSumOfCells
-     * @description function to get formula expression for sum of previous columns
-     * @param {Number} cellsNumber
-     * @param {Number} offset
-     * @returns {String}
-     */
-    private function _getSumOfCells(cellsNumber,offset){
-        var cellsSum;
-        var cellsValues = [];
-        var columnNumber;
-        for( var i = 1; i <= cellsNumber; i++){
-            columnNumber = i + ( offset ? offset : 0);
-            cellsValues.push(("IF(cellv(col-"+columnNumber+",row) = EMPTYV(), 0, cellv(col-"+columnNumber+",row))"));
-        }
-
-        cellsSum = "IF(("+cellsValues.join('+')+") = 0, EMPTYV(), "+cellsValues.join('+')+")"
-        return cellsSum
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetCategoriesHeader
-     * @description function to get columnHeader for total or neg, neu, pos categories
-     * @param {String} groupName - "total", "neg", "neu","pos"
-     * @param {Boolean} addMinus - if you want to add minus to negative values
-     * @param {Boolean} hideHeader
-     * @param {String} distribution - 0 - for counts, 1 - for percents
-     * @returns {HeaderCollection}
-     */
-    function GetCategoriesHeader(groupName: String, addMinus, hideHeader, distribution, config){
-        var header: HeaderCollection = new HeaderCollection();
-        var headerFormula : HeaderFormula;
-        var headerCategories: HeaderCategories;
-        var categoryTitle: Label;
-        var defaultConfig = {
-            Positive: [8,9,10,11],
-            Neutral: [5,6,7],
-            Negative: [1,2,3,4]
-        };
-        var configuration = config ? config : defaultConfig;
-        if( groupName == "all" ){
-            headerCategories= new HeaderCategories();
-            headerCategories.Mask.Type = MaskType.HideAll;
-            headerCategories.Totals = true;
-
-            headerCategories.HideHeader = hideHeader ? hideHeader : false;
-            header.Add(headerCategories);
-
-        }else{
-
-            headerCategories= new HeaderCategories();
-            headerCategories.Mask.Type = MaskType.ShowCodes;
-            headerCategories.Totals = false;
-            headerCategories.HideData = true;
-
-
-            headerFormula = new HeaderFormula();
-            headerFormula.Type = FormulaType.Expression;
-            headerFormula.Decimals = 0;
-            headerFormula.Priority = 0;
-
-            switch(groupName.toLowerCase()){
-                case "neg":
-                    headerCategories.Mask.Codes = configuration.Negative.join(",");
-                    headerFormula.Expression = _getSumOfCells(configuration.Negative.length)+(addMinus?"*(-1)":"");
-                    categoryTitle = new Label(9, "Negative");
-                    break;
-
-                case "neu":
-                    headerCategories.Mask.Codes = configuration.Neutral.join(",");
-                    headerFormula.Expression = _getSumOfCells(configuration.Neutral.length);
-                    categoryTitle = new Label(9, "Neutral");
-                    break;
-
-                case "pos":
-                    headerCategories.Mask.Codes = configuration.Positive.join(",");
-                    headerFormula.Expression = _getSumOfCells(configuration.Positive.length);
-                    categoryTitle = new Label(9, "Positive");
-                    break;
-            }
-
-
-            headerFormula.Title = categoryTitle;
-
-            headerFormula.HideHeader = hideHeader ? hideHeader : false;
-
-            if(distribution && distribution == "1"){
-                headerCategories.Distributions.Enabled = true;
-                headerCategories.Distributions.Count = false;
-                headerCategories.Distributions.HorizontalPercents = true;
-                headerFormula.Expression +="/100";
-                headerFormula.Percent = true;
-            }
-            header.Add(headerCategories);
-            header.Add(headerFormula);
-        }
-        return header
-    }
-
-
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetCategoriesExpression
-     * @description function to get columnHeaderExpression for total or neg, neu, pos categories
-     * @param {String} groupName - "total", "neg", "neu","pos"
-     * @param {Boolean} addMinus - if you want to add minus to negative values
-     * @param {Boolean} hideHeader
-     * @param {String} distribution - 0 - for counts, 1 - for percents
-     * @returns {String}
-     */
-    function GetCategoriesExpression( groupName: String, addMinus, hideHeader, distribution, config ){
-        var expression = "";
-        var defaultConfig = {
-            Positive: [8,9,10,11],
-            Neutral: [5,6,7],
-            Negative: [1,2,3,4]
-        };
-    var configuration = config ? config : defaultConfig;
-        if( groupName == "all" ){
-            expression = '[CAT]{totals:true';
-            expression += ';mask:emptyv';
-            if ( hideHeader )
-                expression += ';hideheader:true';
-            expression += '}'
-        }else{
-            var categoriesHeader = '[CAT]{totals:false;hidedata:true';
-            var formulaHeader = '[FORMULA]{decimals:0';
-            var formulaExpression;
-            var categoryLabel;
-            switch(groupName.toLowerCase()){
-                case "neg":
-                    formulaExpression = _getSumOfCells(configuration.Negative.length, (configuration.Positive.length+configuration.Neutral.length))+(addMinus?'*(-1)':'');
-                    categoryLabel = '"Negative"';
-                    break;
-
-                case "neu":
-                    formulaExpression = _getSumOfCells(configuration.Neutral.length,(configuration.Positive.length));
-                    categoryLabel = '"Neutral"';
-                    break;
-
-                case "pos":
-                    formulaExpression = _getSumOfCells(configuration.Positive.length,0);
-                    categoryLabel = '"Positive"';
-                    break;
-            }
-
-            if(distribution && distribution == "1"){
-                formulaExpression +="/100";
-                formulaHeader += ";percent:true";
-            }
-
-            formulaHeader += ';label:'+categoryLabel+';expression:"'+formulaExpression+'"';
-
-            if ( hideHeader )
-                formulaHeader += ';hideheader:true';
-            formulaHeader +='}'
-            categoriesHeader += "}"
-            expression = [categoriesHeader, formulaHeader].join("+")
-        }
-        return expression
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetChartHeader
-     * @description function to get Header containing Barchart
-     * @param {ChartComboType} type
-     * @param {Object[]} formulas - array of objects with formulas like {Formula: "cellv(col-25,row)", Color: (Config.Colors.NegNeuPosPalette.Positive)}
-     * @param {String} title
-     * @returns {HeaderChartCombo}
-     */
-    function GetChartHeader(type: ChartComboType, formulas, title){
-        var chartHeader: HeaderChartCombo = new HeaderChartCombo();
-        var chartValues = []
-        chartHeader.TypeOfChart = type;
-        chartHeader.Thickness = "80%";
-        chartHeader.CssClass = "chart-header";
-        chartHeader.ShowTitle = true;
-        chartHeader.Title = new Label(9, title?title:"Chart");
-
-        var chartValue: ChartComboValue;
-        for(var i = 0; i< formulas.length; i++) {
-            chartValue = new ChartComboValue();
-            chartValue.CssClass = "chart-value";
-            chartValue.Expression = formulas[i].Formula;
-            chartValue.BaseColor = new ChartComboColorSet([formulas[i].Color]);
-            chartValues.push(chartValue);
-        }
-
-        chartHeader.Values = chartValues;
-        return chartHeader;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetTAQuestionExpression
-     * @description function to get Expression for header containing Text Analytics variable
-     * @param {String} questionType - "overallsentiment", "categories", "positivementions", "negativementions", "categorysentiment"
-     * @param {String[]} mask
-     * @param {String} additionalStatement
-     * @returns {String}
-     */
-    function GetTAQuestionExpression(questionType, mask, additionalStatement){
-        var rowExpression;
-        var variableId = _folder.GetQuestionId(questionType);
-        rowExpression = variableId+'{id:'+variableId+';collapsed:true;totals:false'+( mask && mask.length > 0 ? (';mask:'+mask.join(",")) : null )+( additionalStatement ? (";"+additionalStatement) : null)+'}';
-        return rowExpression
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function GetTimePeriodHeader
-     * @description function to get Header for certain time period
-     * @param {String} unit - breaking by  "d" - for days, "w" - for weeks, "m" - for months, "q" - for quarters, "y" - for years
-     * @param {Number} from - rolling from
-     * @param {Number} to - rolling to
-     * @returns {HeaderQuestion}
-     */
-    function GetTimePeriodHeader(unit, from, to){
-        var project = _globals.report.DataSource.GetProject(_folder.GetDatasourceId());
-        var questionnaireElement: QuestionnaireElement = project.CreateQuestionnaireElement(_folder.GetTimeVariableId());
-        var headerTimeSeries: HeaderQuestion;
-
-        headerTimeSeries = new HeaderQuestion(questionnaireElement);
-        headerTimeSeries.TimeSeries.FlatLayout = true;
-        headerTimeSeries.TimeSeries.RollingTimeseries.Enabled = true;
-
-        headerTimeSeries.TimeSeries.Time1 = TimeseriesTimeUnitType.Year;
-        switch (unit.toLowerCase()){
-            case "d":
-                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Month;
-                headerTimeSeries.TimeSeries.Time3 = TimeseriesTimeUnitType.DayOfMonth;
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Day;
-                break;
-            case "w":
-                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Week;
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Week;
-                break;
-            case "m":
-                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Month
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Month;;
-                break;
-            case "q":
-                headerTimeSeries.TimeSeries.Time2 = TimeseriesTimeUnitType.Quarter
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Quarter;
-                break;
-            case "y":
-            default:
-                headerTimeSeries.TimeSeries.RollingTimeseries.Unit = RollingUnitType.Year;
-                break;
-        }
-        headerTimeSeries.ShowTotals = false;
-        headerTimeSeries.TimeSeries.RollingTimeseries.From = from;
-        headerTimeSeries.TimeSeries.RollingTimeseries.To = to;
-
-        return headerTimeSeries
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function CreateTableFromExpression
-     * @description function to create table from columns and rows expression
-     * @param {String} rowHeaders
-     * @param {String} columnHeaders
-     */
-    function CreateTableFromExpression(rowHeaders, columnHeaders){
-        var headersArray = [rowHeaders];
-        if( columnHeaders ){
-            headersArray.push( columnHeaders )
-        }
-        var tableExpression = headersArray.join('^');
-        //_table.AddHeaders(_globals.report, Config.DS_Main, tableExpression);
-        _table.AddHeaders(_globals.report, _folder.GetDatasourceId(), tableExpression);
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function ClearTableDistributions
-     * @description function to clear distributions presets for table
-     */
-    function ClearTableDistributions(){
-        _table.Distribution.Count = false;
-        _table.Distribution.VerticalPercents = false;
-        _table.Distribution.HorizontalPercents = false;
-    }
-
-    /**
-     * @memberof TATableUtils
-     * @instance
-     * @function SetDataSupressing
-     * @description function to set suppression
-     * @param {Number} baseLessThen
-     */
-    function SetupDataSupressing(baseLessThan){
-        _table.SuppressData.SuppressData = true;
-        _table.SuppressData.BaseDisplay = BaseDisplayOption.Hide;
-        _table.SuppressData.BaseLessThan = baseLessThan;
-        _table.SuppressData.DistributionMeasure = DistributionMeasureType.InnermostColumn;
-        _table.SuppressData.CellDisplay = BaseDisplayOption.Hide;
-        _table.SuppressData.CellLimit = 1;
-    }
-}
-
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html deleted file mode 100644 index 04fa64d..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.html +++ /dev/null @@ -1,829 +0,0 @@ - - - - - TAThemeDistributionTable - Documentation - - - - - - - - - - - - - - - - -
- -

TAThemeDistributionTable

- - - - - - - -
- -
- -

- TAThemeDistributionTable -

- -

Class to work with ThemeDistribution table

- - -
- -
-
- - - - -

Constructor

- - -

new TAThemeDistributionTable(globals, folder, table, sentiment)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFoldee - - - -

Text Analytics folder to build table from

table - - -Table - - - -
sentiment - - -String - - - -

"emptyv", "neg", "neu", "pos"

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addTimeSeriesColum()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _getCountsColumn() → {HeaderCollection}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -HeaderCollection - - -
-
- - - - - - - - - -

(private) _getHeaderStatistics() → {Header}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Header - - -
-
- - - - - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupConditionalFormatting}()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html deleted file mode 100644 index 65b9a76..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TAThemeDistributionTable.js.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - TAThemeDistributionTable.js - Documentation - - - - - - - - - - - - - - - - -
- -

TAThemeDistributionTable.js

- - - - - - - -
-
-
/**
- * @class TAThemeDistributionTable
- * @classdesc Class to work with ThemeDistribution table
- *
- * @constructs TAThemeDistributionTable
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFoldee} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} sentiment - "emptyv", "neg", "neu", "pos"
- */
-class TAThemeDistributionTable{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _sentiment;
-    private var _percents;
-    private var _period;
-    private var _config;
-
-    function TAThemeDistributionTable(globals, folder, table, sentiment,config){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _sentiment = sentiment == "emptyv" ? "all" : sentiment;
-
-        _period = {
-            Unit: "m",
-            From: -11,
-            To: 0
-        };
-        _config = config;
-        _render();
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var qType = "categorysentiment";
-        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType);
-
-        _taTableUtils.CreateTableFromExpression(rowexpr);
-        _addTimeSeriesColumn();
-        _setupConditionalFormatting();
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _addTimeSeriesColum
-     */
-    private function _addTimeSeriesColumn(){
-        var headerTimeSeries = _taTableUtils.GetTimePeriodHeader(_period.Unit, _period.From, _period.To);
-        var columnsCollection: HeaderCollection = new HeaderCollection();
-
-        columnsCollection.AddRange(_getCountsColumn());
-        columnsCollection.Add(_getHeaderStatistics());
-
-        headerTimeSeries.SubHeaders.AddRange(columnsCollection);
-        _table.ColumnHeaders.Add(headerTimeSeries);
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _getCountsColumn
-     * @returns {HeaderCollection}
-     */
-    private function _getCountsColumn(){
-        var columnsCollection: HeaderCollection = _taTableUtils.GetCategoriesHeader(_sentiment, false, true, false, Config.SentimentRange);
-        return columnsCollection
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _getHeaderStatistics
-     * @returns {Header}
-     */
-    private function _getHeaderStatistics(){
-        var headerStatistics;
-        if( _sentiment == "all"){
-
-            headerStatistics = new HeaderStatistics();
-            headerStatistics.Statistics.Avg = true;
-
-        }else{
-
-            headerStatistics = new HeaderFormula();
-            headerStatistics.Type = FormulaType.Expression;
-            headerStatistics.Decimals = 0;
-            headerStatistics.Priority = 0;
-
-            switch (_sentiment) {
-                case "neg":
-                    headerStatistics.Expression = "-6";
-                    break;
-
-                case "neu":
-                    headerStatistics.Expression = "0";
-                    break;
-
-                case "pos":
-                    headerStatistics.Expression = "6";
-                    break;
-            }
-        }
-        headerStatistics.HideHeader = true;
-        headerStatistics.HideData = true;
-        return headerStatistics
-    }
-
-    /**
-     * @memberof TAThemeDistributionTable
-     * @private
-     * @instance
-     * @function _setupConditionalFormatting}
-     */
-    private function _setupConditionalFormatting(){
-        _taTableUtils.SetupConditionalFormatting(
-            [
-                {
-                    expression: 'cellv(col+1, row)<('+(_config.SentimentRange.Neutral[0] - 5)+') AND cellv(col,row)<>EMPTYV() ',
-                    style: 'negative'
-                },
-
-                {
-                    expression: '(cellv(col+1, row)>=('+(_config.SentimentRange.Neutral[0] - 5)+')) AND (cellv(col+1, row)<='+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+') AND cellv(col,row)<>EMPTYV()',
-                    style: 'neutral'
-                },
-                {
-                    expression: 'cellv(col+1, row)>'+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+' AND cellv(col,row)<>EMPTYV()',
-                    style: 'positive'
-                }
-            ],
-            "NegNeuPos",
-            {
-                axis: Area.Columns,
-                direction: Area.Left,
-                indexes: "1-1000"
-            }
-        )
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html deleted file mode 100644 index ba438ce..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.html +++ /dev/null @@ -1,519 +0,0 @@ - - - - - TATiles - Documentation - - - - - - - - - - - - - - - - -
- -

TATiles

- - - - - - - -
- -
- -

- TATiles -

- -

Class to work with Tiles on the Detailed analysis page

- - -
- -
-
- - - - -

Constructor

- - -

new TATiles(globals, folder, table, sentiment, selectedCategory, distribution)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFoldee - - - -

Text Analytics folder to build table from

table - - -Table - - - -
sentiment - - -String - - - -

"total", "neg", "neu", "pos"

selectedCategory - - -String - - - -
distribution - - -String - - - -

0 for counts, 1 for percents

- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html deleted file mode 100644 index 068537a..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATiles.js.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - TATiles.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATiles.js

- - - - - - - -
-
-
/**
- * @class TATiles
- * @classdesc Class to work with Tiles on the Detailed analysis page
- *
- * @constructs TATiles
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFoldee} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} sentiment - "total", "neg", "neu", "pos"
- * @param {String} selectedCategory
- * @param {String} distribution - 0 for counts, 1 for percents
- */
-class TATiles{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _sentiment;
-    private var _distribution;
-    private var _selectedCategory;
-
-
-    function TATiles(globals, folder, table, sentiment, selectedCategory, distribution){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _sentiment = sentiment ? sentiment : "all";
-        _selectedCategory = selectedCategory != "emptyv" ? selectedCategory : "all";
-        _distribution = distribution ? distribution : "0";
-
-        _render();
-    }
-
-    /**
-     * @memberof TATiles
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TATiles
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var qType;
-        var mask;
-        if( _selectedCategory == "all" ){
-            qType = "os"
-            mask = false;
-        }else{
-            qType = "cs"
-            mask = [_selectedCategory];
-        }
-
-        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
-        var columnexpr = _taTableUtils.GetCategoriesExpression( _sentiment, false, true, _distribution);
-        _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr);
-
-        _table.Distribution.Enabled = true;
-        _table.Distribution.VerticalPercents = false;
-
-        if(_distribution == "1" && _sentiment != "all"){
-            _table.Distribution.HorizontalPercents = true;
-            _table.Distribution.Count = false;
-        }else{
-            _table.Distribution.HorizontalPercents = false;
-            _table.Distribution.Count = true;
-        }
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html deleted file mode 100644 index 353a74a..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.html +++ /dev/null @@ -1,862 +0,0 @@ - - - - - TATopChangedTable - Documentation - - - - - - - - - - - - - - - - -
- -

TATopChangedTable

- - - - - - - -
- -
- -

- TATopChangedTable -

- -

Class to work with Most improved and most declined tables on the dashboard page

- - -
- -
-
- - - - -

Constructor

- - -

new TATopChangedTable(globals, folder, table, sentiment, level, period, topN)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -

Text Analytics folder to build table from

table - - -Table - - - -
sentiment - - -String - - - -

"neg", "pos"

level - - -String - - - -

1, 2 or 3

period - - -String - - - -

m, y, d, w, q

topN - - -Number - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addChartColumn()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _addDifferenceColumn()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _addTimeSeriesColumn()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupSorting()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html deleted file mode 100644 index 3de0f7d..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATopChangedTable.js.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - TATopChangedTable.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATopChangedTable.js

- - - - - - - -
-
-
/**
- * @class TATopChangedTable
- * @classdesc Class to work with Most improved and most declined tables on the dashboard page
- *
- * @constructs TATopChangedTable
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} sentiment - "neg", "pos"
- * @param {String} level - 1, 2 or 3
- * @param {String} period - m, y, d, w, q
- * @param {Number} topN
- */
-class TATopChangedTable{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _level;
-    private var _topN;
-    private var _sentiment;
-    private var _percents;
-    private var _period;
-
-    function TATopChangedTable(globals, folder, table, sentiment, level, period, topN){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _sentiment = sentiment ? true : false;
-        _level = parseInt(level);
-        _topN = topN ? topN : 5;
-        _period = {
-            Unit: period.toLowerCase().substr(0,1),
-            From: -1,
-            To: 0
-        };
-
-        _render();
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var qType = "categorysentiment";
-        var mask = _taMasks.GetCategoriesMask(_level);
-        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
-        _taTableUtils.CreateTableFromExpression(rowexpr);
-
-        _addTimeSeriesColumn();
-        _addDifferenceColumn();
-        _addChartColumn();
-        _setupSorting();
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _addTimeSeriesColumn
-     */
-    private function _addTimeSeriesColumn(){
-        var headerTimeSeries = _taTableUtils.GetTimePeriodHeader(_period.Unit, _period.From, _period.To);
-        var headerStatistics: HeaderStatistics = new HeaderStatistics();
-        headerStatistics.HideHeader = true;
-        headerStatistics.Statistics.Avg = true;
-        headerStatistics.SubHeaders.Add(headerTimeSeries);
-        _table.ColumnHeaders.Add(headerStatistics);
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _addDifferenceColumn
-     */
-    private function _addDifferenceColumn(){
-        var headerFormula: HeaderFormula = new HeaderFormula();
-        headerFormula.Type = FormulaType.Expression;
-        headerFormula.HideData = false;
-        headerFormula.Decimals = 1;
-        headerFormula.Expression = "cellv(col-1,row)-cellv(col-2,row)";
-        headerFormula.Title = new Label(9, " ");
-        headerFormula.HideHeader = true;
-
-        _table.ColumnHeaders.Add(headerFormula);
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _addChartColumn
-     */
-    private function _addChartColumn(){
-        var chartHeader = _taTableUtils.GetChartHeader(
-            ChartComboType.Bar,
-            [{
-                Formula: "cellv(col-1,row)",
-                Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative )
-            }],
-            "Change in avg. score");
-        _table.ColumnHeaders.Add(chartHeader);
-    }
-
-    /**
-     * @memberof TATopChangedTable
-     * @private
-     * @instance
-     * @function _setupSorting
-     */
-    private function _setupSorting(){
-        _taTableUtils.SetupRowsTableSorting( !_sentiment , 3, _topN );
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html deleted file mode 100644 index 312f9b8..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.html +++ /dev/null @@ -1,679 +0,0 @@ - - - - - TATopSentimentTable - Documentation - - - - - - - - - - - - - - - - -
- -

TATopSentimentTable

- - - - - - - -
- -
- -

- TATopSentimentTable -

- -

Class to work with Most positive and most negative tables on the dashboard page

- - -
- -
-
- - - - -

Constructor

- - -

new TATopSentimentTable(globals, folder, table, sentiment, level, topN)

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
globals - - -Object - - - -

object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}

folder - - -TAFolder - - - -

Text Analytics folder to build table from

table - - -Table - - - -
sentiment - - -String - - - -

"neg", "pos"

level - - -String - - - -

1, 2 or 3

topN - - -Number - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -

Methods

- - - - - - -

(private) _addChartColum()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _render()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(private) _setupSorting()

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

GetTATableUtils() → {TATAbleUtils}

- - - - - - -
- - -
Source:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -TATAbleUtils - - -
-
- - - - - - - - - - -
- -
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html b/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html deleted file mode 100644 index 7f2677c..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/TATopSentimentTable.js.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - TATopSentimentTable.js - Documentation - - - - - - - - - - - - - - - - -
- -

TATopSentimentTable.js

- - - - - - - -
-
-
/**
- * @class TATopSentimentTable
- * @classdesc Class to work with Most positive and most negative tables on the dashboard page
- *
- * @constructs TATopSentimentTable
- * @param {Object} globals - object of global report variables {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
- * @param {TAFolder} folder - Text Analytics folder to build table from
- * @param {Table} table
- * @param {String} sentiment - "neg", "pos"
- * @param {String} level - 1, 2 or 3
- * @param {Number} topN
- */
-class TATopSentimentTable{
-    private var _globals;
-    private var _folder: TAFolder;
-    private var _taTableUtils: TATableUtils;
-    private var _taMasks: TAMasks;
-    private var _table: Table;
-    private var _level;
-    private var _topN;
-    private var _sentiment;
-    private var _distribution;
-
-    function TATopSentimentTable(globals, folder, table, sentiment, level, topN, distribution){
-        _globals = globals;
-        _folder = folder;
-        _taMasks = new TAMasks(globals, folder);
-        _table = table;
-        _taTableUtils = new TATableUtils(globals, folder, table);
-        _sentiment = sentiment ? true : false;
-        _level = parseInt(level);
-        _topN = topN ? topN : 5;
-        _distribution = distribution ? distribution : "0";
-        _render();
-    }
-
-    /**
-     * @memberof TATopSentimentTable
-     * @instance
-     * @function GetTATableUtils
-     * @returns {TATAbleUtils}
-     */
-    function GetTATableUtils(){
-        return _taTableUtils;
-    }
-
-    /**
-     * @memberof TATopSentimentTable
-     * @private
-     * @instance
-     * @function _render
-     */
-    private function _render(){
-        var qType = "categorysentiment";
-        var mask = _taMasks.GetCategoriesMask(_level);
-        var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask);
-        var sentiment = _sentiment ? "pos" : "neg";
-        var columnexpr = _taTableUtils.GetCategoriesExpression( sentiment, false, false, _distribution, Config.SentimentRange );
-        _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr);
-        _addChartColumn();
-        _setupSorting();
-    }
-
-    /**
-     * @memberof TATopSentimentTable
-     * @private
-     * @instance
-     * @function _addChartColum
-     */
-    private function _addChartColumn(){
-        var chartHeader = _taTableUtils.GetChartHeader(
-            ChartComboType.Bar,
-            [{
-                Formula: "cellv(col-1,row)",
-                Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative )
-            }],
-            "Count");
-        _table.ColumnHeaders.Add(chartHeader);
-    }
-
-    /**
-     * @memberof TATopSentimentTable
-     * @private
-     * @instance
-     * @function _setupSorting
-     */
-    private function _setupSorting(){
-        _taTableUtils.SetupRowsTableSorting( false, 2, _topN, true);
-    }
-}
-
-
- - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - diff --git a/docs/text-analytics-template-codelibrary/0.0.120/index.html b/docs/text-analytics-template-codelibrary/0.0.120/index.html deleted file mode 100644 index bf12c35..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Home - Documentation - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-

TextAnalyticsTemplate_CodeLibrary

-
- - - - - - -
- -
- -
- Documentation generated by JSDoc 3.4.0 on Tue Dec 20 2016 11:52:28 GMT+0300 (Russia TZ 2 Standard Time) using the docdash theme. -
- - - - - \ No newline at end of file diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js deleted file mode 100644 index 8d52f7e..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/scripts/linenumber.js +++ /dev/null @@ -1,25 +0,0 @@ -/*global document */ -(function() { - var source = document.getElementsByClassName('prettyprint source linenums'); - var i = 0; - var lineNumber = 0; - var lineId; - var lines; - var totalLines; - var anchorHash; - - if (source && source[0]) { - anchorHash = document.location.hash.substring(1); - lines = source[0].getElementsByTagName('li'); - totalLines = lines.length; - - for (; i < totalLines; i++) { - lineNumber++; - lineId = 'line' + lineNumber; - lines[i].id = lineId; - if (lineId === anchorHash) { - lines[i].className += ' selected'; - } - } - } -})(); diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt deleted file mode 100644 index d645695..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/Apache-License-2.0.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js deleted file mode 100644 index 041e1f5..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/lang-css.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", -/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); diff --git a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js b/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js deleted file mode 100644 index eef5ad7..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/scripts/prettify/prettify.js +++ /dev/null @@ -1,28 +0,0 @@ -var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; -(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= -[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), -l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, -q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, -q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, -"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), -a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} -for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], -"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], -H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], -J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ -I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), -["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", -/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), -["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", -hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= -!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p ul { - padding: 0 10px; -} - -nav > ul > li > a { - color: #606; -} - -nav ul ul { - margin-bottom: 10px -} - -nav ul ul + ul { - margin-top: -10px; -} - -nav ul ul a { - color: hsl(207, 1%, 60%); - border-left: 1px solid hsl(207, 10%, 86%); -} - -nav ul ul a, -nav ul ul a:active { - padding-left: 20px -} - -nav h2 { - font-size: 12px; - margin: 0; - padding: 0; -} - -nav > h2 > a { - display: block; - margin: 10px 0 -10px; - color: #606 !important; -} - -footer { - color: hsl(0, 0%, 28%); - margin-left: 250px; - display: block; - padding: 15px; - font-style: italic; - font-size: 90%; -} - -.ancestors { - color: #999 -} - -.ancestors a { - color: #999 !important; -} - -.clear { - clear: both -} - -.important { - font-weight: bold; - color: #950B02; -} - -.yes-def { - text-indent: -1000px -} - -.type-signature { - color: #CA79CA -} - -.type-signature:last-child { - color: #eee; -} - -.name, .signature { - font-family: Consolas, Monaco, 'Andale Mono', monospace -} - -.signature { - color: #fc83ff; -} - -.details { - margin-top: 6px; - border-left: 2px solid #DDD; - line-height: 20px; - font-size: 14px; -} - -.details dt { - width: 120px; - float: left; - padding-left: 10px; -} - -.details dd { - margin-left: 70px; - margin-top: 6px; - margin-bottom: 6px; -} - -.details ul { - margin: 0 -} - -.details ul { - list-style-type: none -} - -.details pre.prettyprint { - margin: 0 -} - -.details .object-value { - padding-top: 0 -} - -.description { - margin-bottom: 1em; - margin-top: 1em; -} - -.code-caption { - font-style: italic; - font-size: 107%; - margin: 0; -} - -.prettyprint { - font-size: 14px; - overflow: auto; -} - -.prettyprint.source { - width: inherit; - line-height: 18px; - display: block; - background-color: #0d152a; - color: #aeaeae; -} - -.prettyprint code { - line-height: 18px; - display: block; - background-color: #0d152a; - color: #4D4E53; -} - -.prettyprint > code { - padding: 15px; -} - -.prettyprint .linenums code { - padding: 0 15px -} - -.prettyprint .linenums li:first-of-type code { - padding-top: 15px -} - -.prettyprint code span.line { - display: inline-block -} - -.prettyprint.linenums { - padding-left: 70px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.prettyprint.linenums ol { - padding-left: 0 -} - -.prettyprint.linenums li { - border-left: 3px #34446B solid; -} - -.prettyprint.linenums li.selected, .prettyprint.linenums li.selected * { - background-color: #34446B; -} - -.prettyprint.linenums li * { - -webkit-user-select: text; - -moz-user-select: text; - -ms-user-select: text; - user-select: text; -} - -.params, .props { - border-spacing: 0; - border: 1px solid #ddd; - border-collapse: collapse; - border-radius: 3px; - box-shadow: 0 1px 3px rgba(0,0,0,0.1); - width: 100%; - font-size: 14px; - margin: 1em 0; -} - -.params .type { - white-space: nowrap; -} - -.params code { - white-space: pre; -} - -.params td, .params .name, .props .name, .name code { - color: #4D4E53; - font-family: Consolas, Monaco, 'Andale Mono', monospace; - font-size: 100%; -} - -.params td, .params th, .props td, .props th { - margin: 0px; - text-align: left; - vertical-align: top; - padding: 10px; - display: table-cell; -} - -.params td { - border-top: 1px solid #eee -} - -.params thead tr, .props thead tr { - background-color: #fff; - font-weight: bold; -} - -.params .params thead tr, .props .props thead tr { - background-color: #fff; - font-weight: bold; -} - -.params td.description > p:first-child, .props td.description > p:first-child { - margin-top: 0; - padding-top: 0; -} - -.params td.description > p:last-child, .props td.description > p:last-child { - margin-bottom: 0; - padding-bottom: 0; -} - -span.param-type, .params td .param-type, .param-type dd { - color: #606; - font-family: Consolas, Monaco, 'Andale Mono', monospace -} - -.param-type dt, .param-type dd { - display: inline-block -} - -.param-type { - margin: 14px 0; -} - -.disabled { - color: #454545 -} - -/* navicon button */ -.navicon-button { - display: none; - position: relative; - padding: 2.0625rem 1.5rem; - transition: 0.25s; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - opacity: .8; -} -.navicon-button .navicon:before, .navicon-button .navicon:after { - transition: 0.25s; -} -.navicon-button:hover { - transition: 0.5s; - opacity: 1; -} -.navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after { - transition: 0.25s; -} -.navicon-button:hover .navicon:before { - top: .825rem; -} -.navicon-button:hover .navicon:after { - top: -.825rem; -} - -/* navicon */ -.navicon { - position: relative; - width: 2.5em; - height: .3125rem; - background: #000; - transition: 0.3s; - border-radius: 2.5rem; -} -.navicon:before, .navicon:after { - display: block; - content: ""; - height: .3125rem; - width: 2.5rem; - background: #000; - position: absolute; - z-index: -1; - transition: 0.3s 0.25s; - border-radius: 1rem; -} -.navicon:before { - top: .625rem; -} -.navicon:after { - top: -.625rem; -} - -/* open */ -.nav-trigger:checked + label:not(.steps) .navicon:before, -.nav-trigger:checked + label:not(.steps) .navicon:after { - top: 0 !important; -} - -.nav-trigger:checked + label .navicon:before, -.nav-trigger:checked + label .navicon:after { - transition: 0.5s; -} - -/* Minus */ -.nav-trigger:checked + label { - -webkit-transform: scale(0.75); - transform: scale(0.75); -} - -/* × and + */ -.nav-trigger:checked + label.plus .navicon, -.nav-trigger:checked + label.x .navicon { - background: transparent; -} - -.nav-trigger:checked + label.plus .navicon:before, -.nav-trigger:checked + label.x .navicon:before { - -webkit-transform: rotate(-45deg); - transform: rotate(-45deg); - background: #FFF; -} - -.nav-trigger:checked + label.plus .navicon:after, -.nav-trigger:checked + label.x .navicon:after { - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - background: #FFF; -} - -.nav-trigger:checked + label.plus { - -webkit-transform: scale(0.75) rotate(45deg); - transform: scale(0.75) rotate(45deg); -} - -.nav-trigger:checked ~ nav { - left: 0 !important; -} - -.nav-trigger:checked ~ .overlay { - display: block; -} - -.nav-trigger { - position: fixed; - top: 0; - clip: rect(0, 0, 0, 0); -} - -.overlay { - display: none; - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: 0; - width: 100%; - height: 100%; - background: hsla(0, 0%, 0%, 0.5); - z-index: 1; -} - -@media only screen and (min-width: 320px) and (max-width: 680px) { - body { - overflow-x: hidden; - } - - nav { - background: #FFF; - width: 250px; - height: 100%; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: -250px; - z-index: 3; - padding: 0 10px; - transition: left 0.2s; - } - - .navicon-button { - display: inline-block; - position: fixed; - top: 1.5em; - right: 0; - z-index: 2; - } - - #main { - width: 100%; - min-width: 360px; - } - - #main h1.page-title { - margin: 1em 0; - } - - #main section { - padding: 0; - } - - footer { - margin-left: 0; - } -} - -/** Add a '#' to static members */ -[data-type="member"] a::before { - content: '#'; - display: inline-block; - margin-left: -14px; - margin-right: 5px; -} diff --git a/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css b/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css deleted file mode 100644 index d9521ec..0000000 --- a/docs/text-analytics-template-codelibrary/0.0.120/styles/prettify.css +++ /dev/null @@ -1,79 +0,0 @@ -.pln { - color: #ddd; -} - -/* string content */ -.str { - color: #61ce3c; -} - -/* a keyword */ -.kwd { - color: #fbde2d; -} - -/* a comment */ -.com { - color: #aeaeae; -} - -/* a type name */ -.typ { - color: #8da6ce; -} - -/* a literal value */ -.lit { - color: #fbde2d; -} - -/* punctuation */ -.pun { - color: #ddd; -} - -/* lisp open bracket */ -.opn { - color: #000000; -} - -/* lisp close bracket */ -.clo { - color: #000000; -} - -/* a markup tag name */ -.tag { - color: #8da6ce; -} - -/* a markup attribute name */ -.atn { - color: #fbde2d; -} - -/* a markup attribute value */ -.atv { - color: #ddd; -} - -/* a declaration */ -.dec { - color: #EF5050; -} - -/* a variable name */ -.var { - color: #c82829; -} - -/* a function name */ -.fun { - color: #4271ae; -} - -/* Specify class=linenums on a pre to get line numbering */ -ol.linenums { - margin-top: 0; - margin-bottom: 0; -} From 8c616359d19b908f6faea3a2ecd5bc4f7faea7bc Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 14:33:43 +0300 Subject: [PATCH 008/224] TAFolder parameter add comments --- TAParameters.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TAParameters.js b/TAParameters.js index 768ce44..2168cd9 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -47,11 +47,14 @@ class TAParameters{ var folders = _library.GetFolders(); var parameterValues = []; - + var project; + var question; for(var i = 0; i < folders.length; i++){ + project = _globals.report.DataSource.GetProject(folders[i].GetDatasourceId()); + question = project.GetQuestion(folders[i].GetQuestionId()); parameterValues.push({ Code: folders[i].GetId(), - Label: folders[i].GetId() + Label: folders[i].GetId() + " " + question.GetText() }); } _parameterUtilities.LoadParameterValues(parameter, parameterValues); From dcce21ea26f559aad477e388c107040a367dc5ff Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 14:41:11 +0300 Subject: [PATCH 009/224] TAFolder parameter add comments --- TAParameters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TAParameters.js b/TAParameters.js index 2168cd9..ad79cd4 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -51,10 +51,10 @@ class TAParameters{ var question; for(var i = 0; i < folders.length; i++){ project = _globals.report.DataSource.GetProject(folders[i].GetDatasourceId()); - question = project.GetQuestion(folders[i].GetQuestionId()); + //question = project.GetQuestion(folders[i].GetQuestionId()); parameterValues.push({ Code: folders[i].GetId(), - Label: folders[i].GetId() + " " + question.GetText() + Label: folders[i].GetId() //+ " " + question.GetText() }); } _parameterUtilities.LoadParameterValues(parameter, parameterValues); From 5f01d2a397dc666ad11bb8d524bff210b31bcb29 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 14:50:56 +0300 Subject: [PATCH 010/224] TAFolder parameter add comments --- TAParameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAParameters.js b/TAParameters.js index ad79cd4..fee70fb 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -51,7 +51,7 @@ class TAParameters{ var question; for(var i = 0; i < folders.length; i++){ project = _globals.report.DataSource.GetProject(folders[i].GetDatasourceId()); - //question = project.GetQuestion(folders[i].GetQuestionId()); + question = project.GetQuestion(folders[i].GetQuestionId()); parameterValues.push({ Code: folders[i].GetId(), Label: folders[i].GetId() //+ " " + question.GetText() From 6a08a1641b1c147bcfad6da88cac005c641c7c92 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 20 Dec 2016 15:19:39 +0300 Subject: [PATCH 011/224] TAFolder parameter add comments --- TAParameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAParameters.js b/TAParameters.js index fee70fb..990d283 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -54,7 +54,7 @@ class TAParameters{ question = project.GetQuestion(folders[i].GetQuestionId()); parameterValues.push({ Code: folders[i].GetId(), - Label: folders[i].GetId() //+ " " + question.GetText() + Label: folders[i].GetId() + " " + question.Text }); } _parameterUtilities.LoadParameterValues(parameter, parameterValues); From 0c3c9fac23fd9e491dc3a969d54a140093e0e67f Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 21 Dec 2016 11:09:36 +0300 Subject: [PATCH 012/224] TAFolder parameter add comments --- TAParameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAParameters.js b/TAParameters.js index 990d283..8cc54f0 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -54,7 +54,7 @@ class TAParameters{ question = project.GetQuestion(folders[i].GetQuestionId()); parameterValues.push({ Code: folders[i].GetId(), - Label: folders[i].GetId() + " " + question.Text + Label: folders[i].GetId() + " - " + question.Text }); } _parameterUtilities.LoadParameterValues(parameter, parameterValues); From fafef12bc49434eb96408b025ba5006b6ef13709 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 21 Dec 2016 11:39:07 +0300 Subject: [PATCH 013/224] TAFolder parameter add comments --- TAParameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAParameters.js b/TAParameters.js index 8cc54f0..117378c 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -54,7 +54,7 @@ class TAParameters{ question = project.GetQuestion(folders[i].GetQuestionId()); parameterValues.push({ Code: folders[i].GetId(), - Label: folders[i].GetId() + " - " + question.Text + Label: folders[i].GetId() + (question.Text ? " - " + question.Text : "") }); } _parameterUtilities.LoadParameterValues(parameter, parameterValues); From 4f953bd6881ace1381e0fae04cc0e9779ce5f16c Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 21 Dec 2016 15:58:11 +0300 Subject: [PATCH 014/224] Hitlist bug debug --- Static/Filters.js | 3 ++- TALibrary.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Static/Filters.js b/Static/Filters.js index 91b4474..2ead8ba 100644 --- a/Static/Filters.js +++ b/Static/Filters.js @@ -36,7 +36,8 @@ class Filters { }*/ var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT") - context.component.Expression = fExpr; + context.log.LogDebug("filter expr: " + fExpr); + context.component.Expression = fExpr; } /** diff --git a/TALibrary.js b/TALibrary.js index b1bd186..a4cfe4e 100644 --- a/TALibrary.js +++ b/TALibrary.js @@ -92,6 +92,7 @@ class TALibrary{ } catch(e) { selectedFolder = null; } finally { + context.log.LogDebug("selected folder: "+selectedFolder); return selectedFolder; } } From ea72962b2d032c1b719a5a1d31500acb9e6410b9 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 17 Jan 2017 13:23:05 +0300 Subject: [PATCH 015/224] Hitlist bug debug --- Static/Page_dashboard.js | 58 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 72ab851..9588d87 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -3,6 +3,7 @@ * @classdesc Static class for Reportal Page dashboard components */ class Page_dashboard{ + private static var _filterComponents; private static var _folder; private static const _defaultParameters = [ { @@ -40,9 +41,7 @@ class Page_dashboard{ */ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); - if(context.component.SubmitSource == "ClearFilters"){ - new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(),Config.DS_Main).ClearFilters() - } + if(context.component.SubmitSource == "btnClearDateFilter"){ context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; @@ -66,6 +65,10 @@ class Page_dashboard{ selectedFolder = null; }*/ _folder = Config.GetTALibrary().GetFolderById(selectedFolder); + _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + if(context.component.SubmitSource == "ClearFilters"){ + _filterComponents.ClearFilters() + } taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); } @@ -424,4 +427,53 @@ class Page_dashboard{ context.component.Output.Append(upgradeText); context.component.Output.Append(JSON.print(hierarhy,"hierarchy")); } + + /** + * @memberof Page_filters + * @function btnSave_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @returns {Boolean} + */ + static function btnSave_Hide(context){ + return false +} + + /** + * @memberof Page_filters + * @function btnSave_Render + * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function btnSave_Render(context){ + context.component.Label = new Label(9,"Save"); + //context.component.TargetPage = "filters"; +} + + static function txtFilterTitle_Hide(context, filterNumber){ + var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); + return !filterQuestion +} + + /** + * @memberof Page_filters + * @function txtFilterTitle_Render + * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + */ + static function txtFilterTitle_Render(context, filterNumber){ + var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1); + if(filterTitle) + context.component.Output.Append(filterTitle); +} + + /** + * @memberof Page_filters + * @function lstFilterList_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + * @returns {Boolean} + */ + static function lstFilterList_Hide(context, filterNumber){ + var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); + return !filterQuestion +} } From e84626fce8ff6d9175dcceb531c477355b016d15 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 19 Jan 2017 15:59:11 +0300 Subject: [PATCH 016/224] folder parameter label --- TAParameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAParameters.js b/TAParameters.js index 117378c..f630a2b 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -54,7 +54,7 @@ class TAParameters{ question = project.GetQuestion(folders[i].GetQuestionId()); parameterValues.push({ Code: folders[i].GetId(), - Label: folders[i].GetId() + (question.Text ? " - " + question.Text : "") + Label: folders[i].GetId() //+ (question.Text ? " - " + question.Text : "") }); } _parameterUtilities.LoadParameterValues(parameter, parameterValues); From 61b14960d974c9b9e0cd16f033a0656ee0b5218a Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 15:30:34 +0300 Subject: [PATCH 017/224] filterpanel rendering --- Static/FilterPanel.js | 106 +++++++++++++++++++++++++++++++++++++++ Static/Page_Filters.js | 28 ++++------- Static/Page_dashboard.js | 19 +++---- 3 files changed, 125 insertions(+), 28 deletions(-) create mode 100644 Static/FilterPanel.js diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js new file mode 100644 index 0000000..fe81273 --- /dev/null +++ b/Static/FilterPanel.js @@ -0,0 +1,106 @@ +/** + * Created by MariaSo on 20/01/2017. + */ +class FilterPanel{ + private var _filterComponents; + + function FilterPanel(filterComponents){ + _filterComponents = filterComponents; + } + + /** + * @memberof FilterPanel + * @function btnSaveReturn_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @returns {Boolean} + */ + static function btnSaveReturn_Hide(context){ + return false +} + + /** + * @memberof FilterPanel + * @function btnSaveReturn_Render + * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function btnSaveReturn_Render(context){ + context.component.Label = new Label(9,"Save and Return"); + context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE"); +} + + /** + * @memberof FilterPanel + * @function btnSave_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @returns {Boolean} + */ + static function btnSave_Hide(context){ + return false +} + + /** + * @memberof FilterPanel + * @function btnSave_Render + * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function btnSave_Render(context){ + context.component.Label = new Label(9,"Save"); + context.component.TargetPage = "filters"; +} + + /** + * @memberof FilterPanel + * @function btnClearFilters_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @returns {Boolean} + */ + static function btnClearFilters_Hide(context){ + return false +} + + /** + * @memberof FilterPanel + * @function btnClearFilters_Render + * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function btnClearFilters_Render(context){ + context.component.Label = new Label(9,"Clear Filters"); + context.component.TargetPage = "filters"; +} + + /** + * @memberof FilterPanel + * @function txtFilterTitle_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + * @returns {Boolean} + */ + function txtFilterTitle_Hide(context, filterNumber){ + var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); + return !filterQuestion +} + + /** + * @memberof FilterPanel + * @function txtFilterTitle_Render + * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + */ + function txtFilterTitle_Render(context, filterNumber){ + var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1); + if(filterTitle) + context.component.Output.Append(filterTitle); +} + + /** + * @memberof FilterPanel + * @function lstFilterList_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + * @returns {Boolean} + */ + function lstFilterList_Hide(context, filterNumber){ + var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); + return !filterQuestion +} +} \ No newline at end of file diff --git a/Static/Page_Filters.js b/Static/Page_Filters.js index 36da358..5c68611 100644 --- a/Static/Page_Filters.js +++ b/Static/Page_Filters.js @@ -6,7 +6,7 @@ class Page_filters{ private static var _filterComponents; private static var _folder; private static const _defaultParameters = []; - + private static var _filter_panel; /** * @memberof Page_filters * @function Hide @@ -27,6 +27,7 @@ class Page_filters{ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "btnClearFilters"){ _filterComponents.ClearFilters(); } @@ -60,7 +61,7 @@ class Page_filters{ * @returns {Boolean} */ static function btnSaveReturn_Hide(context){ - return false + return filterPanel.btnSaveReturn_Hide(context); } /** @@ -69,8 +70,7 @@ class Page_filters{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSaveReturn_Render(context){ - context.component.Label = new Label(9,"Save and Return"); - context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE"); + _filter_panel.btnSaveReturn_Render(context) } /** @@ -80,7 +80,7 @@ class Page_filters{ * @returns {Boolean} */ static function btnSave_Hide(context){ - return false + return _filter_panel.btnSave_Hide(context); } /** @@ -89,8 +89,7 @@ class Page_filters{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ - context.component.Label = new Label(9,"Save"); - context.component.TargetPage = "filters"; + _filter_panel.btnSave_Render(context); } /** @@ -100,7 +99,7 @@ class Page_filters{ * @returns {Boolean} */ static function btnClearFilters_Hide(context){ - return false + return _filter_panel.btnClearFilters_Hide(context); } /** @@ -109,8 +108,7 @@ class Page_filters{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnClearFilters_Render(context){ - context.component.Label = new Label(9,"Clear Filters"); - context.component.TargetPage = "filters"; + _filter_panel.btnClearFilters_Render(context); } /** @@ -121,8 +119,7 @@ class Page_filters{ * @returns {Boolean} */ static function txtFilterTitle_Hide(context, filterNumber){ - var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); - return !filterQuestion + return _filter_panel.txtFilterTitle_Hide(context, filterNumber); } /** @@ -132,9 +129,7 @@ class Page_filters{ * @param {Number} filterNumber */ static function txtFilterTitle_Render(context, filterNumber){ - var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1); - if(filterTitle) - context.component.Output.Append(filterTitle); + _filter_panel.txtFilterTitle_Render(context, filterNumber) } /** @@ -145,7 +140,6 @@ class Page_filters{ * @returns {Boolean} */ static function lstFilterList_Hide(context, filterNumber){ - var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); - return !filterQuestion + return _filter_panel.lstFilterList_Hide(context, filterNumber); } } \ No newline at end of file diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 9588d87..24eb246 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -4,6 +4,7 @@ */ class Page_dashboard{ private static var _filterComponents; + private static var _filter_panel; private static var _folder; private static const _defaultParameters = [ { @@ -66,6 +67,7 @@ class Page_dashboard{ }*/ _folder = Config.GetTALibrary().GetFolderById(selectedFolder); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "ClearFilters"){ _filterComponents.ClearFilters() } @@ -429,13 +431,13 @@ class Page_dashboard{ } /** - * @memberof Page_filters + * @memberof Page_dashoboard * @function btnSave_Hide * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} * @returns {Boolean} */ static function btnSave_Hide(context){ - return false + return _filter_panel.btnSave_Hide(context); } /** @@ -444,13 +446,11 @@ class Page_dashboard{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ - context.component.Label = new Label(9,"Save"); - //context.component.TargetPage = "filters"; + _filter_panel.btnSave_Render(context); } static function txtFilterTitle_Hide(context, filterNumber){ - var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); - return !filterQuestion + return _filter_panel.txtFilterTitle_Hide(context, filterNumber); } /** @@ -460,9 +460,7 @@ class Page_dashboard{ * @param {Number} filterNumber */ static function txtFilterTitle_Render(context, filterNumber){ - var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1); - if(filterTitle) - context.component.Output.Append(filterTitle); + _filter_panel.txtFilterTitle_Render(context, filterNumber); } /** @@ -473,7 +471,6 @@ class Page_dashboard{ * @returns {Boolean} */ static function lstFilterList_Hide(context, filterNumber){ - var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); - return !filterQuestion + return _filter_panel.lstFilterList_Hide(context, filterNumber); } } From bc84903f6ca0c49156cfcd94621e5456514deaed Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 15:33:06 +0300 Subject: [PATCH 018/224] filterpanel rendering --- Static/Page_Filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_Filters.js b/Static/Page_Filters.js index 5c68611..329e0b0 100644 --- a/Static/Page_Filters.js +++ b/Static/Page_Filters.js @@ -61,7 +61,7 @@ class Page_filters{ * @returns {Boolean} */ static function btnSaveReturn_Hide(context){ - return filterPanel.btnSaveReturn_Hide(context); + return _filter_anel.btnSaveReturn_Hide(context); } /** From 50c2f258972ed286a943011ff3fb13b625e580c5 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 15:34:09 +0300 Subject: [PATCH 019/224] filterpanel rendering --- Static/Page_Filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_Filters.js b/Static/Page_Filters.js index 329e0b0..ab22f51 100644 --- a/Static/Page_Filters.js +++ b/Static/Page_Filters.js @@ -61,7 +61,7 @@ class Page_filters{ * @returns {Boolean} */ static function btnSaveReturn_Hide(context){ - return _filter_anel.btnSaveReturn_Hide(context); + return _filter_panel.btnSaveReturn_Hide(context); } /** From 6333742bbfc92eeec926fe778469ceed4d5a020b Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 15:39:24 +0300 Subject: [PATCH 020/224] filterpanel rendering --- Static/FilterPanel.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index fe81273..202a880 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -14,7 +14,7 @@ class FilterPanel{ * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} * @returns {Boolean} */ - static function btnSaveReturn_Hide(context){ + function btnSaveReturn_Hide(context){ return false } @@ -23,7 +23,7 @@ class FilterPanel{ * @function btnSaveReturn_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - static function btnSaveReturn_Render(context){ + function btnSaveReturn_Render(context){ context.component.Label = new Label(9,"Save and Return"); context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE"); } @@ -34,7 +34,7 @@ class FilterPanel{ * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} * @returns {Boolean} */ - static function btnSave_Hide(context){ + function btnSave_Hide(context){ return false } @@ -43,9 +43,8 @@ class FilterPanel{ * @function btnSave_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - static function btnSave_Render(context){ + function btnSave_Render(context){ context.component.Label = new Label(9,"Save"); - context.component.TargetPage = "filters"; } /** @@ -54,7 +53,7 @@ class FilterPanel{ * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} * @returns {Boolean} */ - static function btnClearFilters_Hide(context){ + function btnClearFilters_Hide(context){ return false } @@ -63,7 +62,7 @@ class FilterPanel{ * @function btnClearFilters_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - static function btnClearFilters_Render(context){ + function btnClearFilters_Render(context){ context.component.Label = new Label(9,"Clear Filters"); context.component.TargetPage = "filters"; } From 8a1924428ac6146111de1a3508ff8fc460ca4b99 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 15:43:03 +0300 Subject: [PATCH 021/224] filterpanel rendering --- Static/FilterPanel.js | 2 ++ Static/Page_dashboard.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 202a880..5f62b72 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -44,7 +44,9 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ function btnSave_Render(context){ + context.log.LogDebug("btnSave_render statrt"); context.component.Label = new Label(9,"Save"); + context.log.LogDebug("btnSave_render end"); } /** diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 24eb246..2dc3111 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -446,7 +446,9 @@ class Page_dashboard{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ + context.log.LogDebug("page button save start"); _filter_panel.btnSave_Render(context); + context.log.LogDebug("page button save end"); } static function txtFilterTitle_Hide(context, filterNumber){ From 56da98cd98bdc1f3a61b96cec2ed67371d4c2f5d Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 15:48:28 +0300 Subject: [PATCH 022/224] filterpanel rendering --- Static/Page_dashboard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 2dc3111..4e102a5 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -447,6 +447,8 @@ class Page_dashboard{ */ static function btnSave_Render(context){ context.log.LogDebug("page button save start"); + var fp = _filter_panel; + context.log.LogDebug("page button save start 1"); _filter_panel.btnSave_Render(context); context.log.LogDebug("page button save end"); } From b5785b157dcc816a1328c121d0bc1effa9f69579 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 15:51:00 +0300 Subject: [PATCH 023/224] filterpanel rendering --- Static/FilterPanel.js | 7 ++++--- Static/Page_dashboard.js | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 5f62b72..f26fde6 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -44,9 +44,10 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ function btnSave_Render(context){ - context.log.LogDebug("btnSave_render statrt"); - context.component.Label = new Label(9,"Save"); - context.log.LogDebug("btnSave_render end"); + return "Save" + //context.log.LogDebug("btnSave_render statrt"); + //context.component.Label = new Label(9,"Save"); + //context.log.LogDebug("btnSave_render end"); } /** diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 4e102a5..247e7ea 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -449,8 +449,8 @@ class Page_dashboard{ context.log.LogDebug("page button save start"); var fp = _filter_panel; context.log.LogDebug("page button save start 1"); - _filter_panel.btnSave_Render(context); - context.log.LogDebug("page button save end"); + //_filter_panel.btnSave_Render(context); + context.log.LogDebug("page button save end" + _filter_panel.btnSave_Render(context)); } static function txtFilterTitle_Hide(context, filterNumber){ From 5a14c92565955a259ad2cad471a46b0a41f3d00f Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 15:57:44 +0300 Subject: [PATCH 024/224] filterpanel rendering --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 247e7ea..040a4a2 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -450,7 +450,7 @@ class Page_dashboard{ var fp = _filter_panel; context.log.LogDebug("page button save start 1"); //_filter_panel.btnSave_Render(context); - context.log.LogDebug("page button save end" + _filter_panel.btnSave_Render(context)); + context.log.LogDebug("page button save end" + _filter_panel.btnSave_Hide(context)); } static function txtFilterTitle_Hide(context, filterNumber){ From 2876748a4f7ccc7958af244f6a2858b945aa9c8f Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:06:43 +0300 Subject: [PATCH 025/224] filterpanel rendering --- Static/FilterPanel.js | 3 +-- Static/Page_dashboard.js | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index f26fde6..2a725dd 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -44,8 +44,7 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ function btnSave_Render(context){ - return "Save" - //context.log.LogDebug("btnSave_render statrt"); + //context.component.Label = new Label(9,"Save"); //context.log.LogDebug("btnSave_render end"); } diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 040a4a2..e02549c 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -450,6 +450,7 @@ class Page_dashboard{ var fp = _filter_panel; context.log.LogDebug("page button save start 1"); //_filter_panel.btnSave_Render(context); + context.component.Label = new Label(9,"Save") context.log.LogDebug("page button save end" + _filter_panel.btnSave_Hide(context)); } From 850d42554e40135595bb3ae1894a9f48bef95fbc Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:13:18 +0300 Subject: [PATCH 026/224] filterpanel rendering --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index e02549c..f124f58 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -451,7 +451,7 @@ class Page_dashboard{ context.log.LogDebug("page button save start 1"); //_filter_panel.btnSave_Render(context); context.component.Label = new Label(9,"Save") - context.log.LogDebug("page button save end" + _filter_panel.btnSave_Hide(context)); + //context.log.LogDebug("page button save end" + _filter_panel.btnSave_Hide(context)); } static function txtFilterTitle_Hide(context, filterNumber){ From 3aa1b5b80c08ff1cdbfcca9a4b9493f9b8015704 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:20:24 +0300 Subject: [PATCH 027/224] filterpanel rendering --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index f124f58..e02549c 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -451,7 +451,7 @@ class Page_dashboard{ context.log.LogDebug("page button save start 1"); //_filter_panel.btnSave_Render(context); context.component.Label = new Label(9,"Save") - //context.log.LogDebug("page button save end" + _filter_panel.btnSave_Hide(context)); + context.log.LogDebug("page button save end" + _filter_panel.btnSave_Hide(context)); } static function txtFilterTitle_Hide(context, filterNumber){ From 46c9aa721624ab935233f3da458d69c64a7d1d06 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:24:47 +0300 Subject: [PATCH 028/224] filterpanel rendering --- Static/FilterPanel.js | 4 ++-- Static/Page_dashboard.js | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 2a725dd..7fb1cfa 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -43,10 +43,10 @@ class FilterPanel{ * @function btnSave_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - function btnSave_Render(context){ + function btnSave_Render1(context){ //context.component.Label = new Label(9,"Save"); - //context.log.LogDebug("btnSave_render end"); + context.log.LogDebug("btnSave_render end"); } /** diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index e02549c..cf8f5c1 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -447,11 +447,10 @@ class Page_dashboard{ */ static function btnSave_Render(context){ context.log.LogDebug("page button save start"); - var fp = _filter_panel; + context.component.Label = new Label(9,"Save"); context.log.LogDebug("page button save start 1"); - //_filter_panel.btnSave_Render(context); - context.component.Label = new Label(9,"Save") - context.log.LogDebug("page button save end" + _filter_panel.btnSave_Hide(context)); + _filter_panel.btnSave_Render1(context); + context.log.LogDebug("page button save start 2"); } static function txtFilterTitle_Hide(context, filterNumber){ From 9ff991f0511dacb2d5aa161ded6d3ed93ada5ff3 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:28:16 +0300 Subject: [PATCH 029/224] filterpanel rendering --- Static/FilterPanel.js | 5 ++--- Static/Page_dashboard.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 7fb1cfa..202ffff 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -43,10 +43,9 @@ class FilterPanel{ * @function btnSave_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - function btnSave_Render1(context){ - + function btnSave_Render(context){ //context.component.Label = new Label(9,"Save"); - context.log.LogDebug("btnSave_render end"); + var b=2+2; } /** diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index cf8f5c1..1c1dd8b 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -449,7 +449,7 @@ class Page_dashboard{ context.log.LogDebug("page button save start"); context.component.Label = new Label(9,"Save"); context.log.LogDebug("page button save start 1"); - _filter_panel.btnSave_Render1(context); + _filter_panel.btnSave_Render(context); context.log.LogDebug("page button save start 2"); } From f61ab39a7a748c22b15bc5ab176735600d34a379 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:34:45 +0300 Subject: [PATCH 030/224] filterpanel rendering --- Static/Page_dashboard.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1c1dd8b..fb74001 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -449,7 +449,11 @@ class Page_dashboard{ context.log.LogDebug("page button save start"); context.component.Label = new Label(9,"Save"); context.log.LogDebug("page button save start 1"); - _filter_panel.btnSave_Render(context); + try { + _filter_panel.btnSave_Render(context); + }catch(e){ + log.LogDebug("buttonError: "+e); + } context.log.LogDebug("page button save start 2"); } From 23e3027b43dbf468213353f8d3a1396e51ba1924 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:40:15 +0300 Subject: [PATCH 031/224] filterpanel rendering --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index fb74001..941a7ee 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -452,7 +452,7 @@ class Page_dashboard{ try { _filter_panel.btnSave_Render(context); }catch(e){ - log.LogDebug("buttonError: "+e); + context.log.LogDebug("buttonError: "+e); } context.log.LogDebug("page button save start 2"); } From 0dcea99a8cb538d9c40ec0690a153b1ba5664464 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:42:36 +0300 Subject: [PATCH 032/224] filterpanel rendering --- Static/Page_dashboard.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 941a7ee..390dcb4 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -449,11 +449,8 @@ class Page_dashboard{ context.log.LogDebug("page button save start"); context.component.Label = new Label(9,"Save"); context.log.LogDebug("page button save start 1"); - try { _filter_panel.btnSave_Render(context); - }catch(e){ - context.log.LogDebug("buttonError: "+e); - } + context.log.LogDebug("page button save start 2"); } From 0d49ca9269c1efa8a1a737a8b7c7d5ad5cfa77c7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 16:55:21 +0300 Subject: [PATCH 033/224] filterpanel rendering --- Static/FilterPanel.js | 3 +-- Static/Page_dashboard.js | 7 +------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 202ffff..202a880 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -44,8 +44,7 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ function btnSave_Render(context){ - //context.component.Label = new Label(9,"Save"); - var b=2+2; + context.component.Label = new Label(9,"Save"); } /** diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 390dcb4..24eb246 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -446,12 +446,7 @@ class Page_dashboard{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ - context.log.LogDebug("page button save start"); - context.component.Label = new Label(9,"Save"); - context.log.LogDebug("page button save start 1"); - _filter_panel.btnSave_Render(context); - - context.log.LogDebug("page button save start 2"); + _filter_panel.btnSave_Render(context); } static function txtFilterTitle_Hide(context, filterNumber){ From 2ae74ba7fca30fbddc2c562b26ea79ba04b0f379 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 17:04:55 +0300 Subject: [PATCH 034/224] filterpanel rendering --- Static/Page_dashboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 24eb246..fd160e9 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -446,6 +446,7 @@ class Page_dashboard{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ + context.log.LogDebug("btnSave "+_filter_panel); _filter_panel.btnSave_Render(context); } From c4c0c16b0d7fda67e18d76a61dc0773e625698e3 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 17:06:54 +0300 Subject: [PATCH 035/224] filterpanel rendering --- Static/Page_dashboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index fd160e9..559c2cd 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -437,6 +437,7 @@ class Page_dashboard{ * @returns {Boolean} */ static function btnSave_Hide(context){ + context.log.LogDebug("btnSave_Hide "+_filter_panel); return _filter_panel.btnSave_Hide(context); } From 680351fd67de28b8f15ffed3b3e67548a1570dd0 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 17:09:39 +0300 Subject: [PATCH 036/224] filterpanel rendering --- Static/Page_dashboard.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 559c2cd..bdc54c9 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -437,7 +437,6 @@ class Page_dashboard{ * @returns {Boolean} */ static function btnSave_Hide(context){ - context.log.LogDebug("btnSave_Hide "+_filter_panel); return _filter_panel.btnSave_Hide(context); } @@ -447,7 +446,7 @@ class Page_dashboard{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ - context.log.LogDebug("btnSave "+_filter_panel); + context.log.LogDebug("btnSave "+_filterComponents); _filter_panel.btnSave_Render(context); } From 3d046def336d67963054a3f3732d2295aa9c9979 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 17:17:05 +0300 Subject: [PATCH 037/224] filterpanel rendering --- Static/Page_dashboard.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index bdc54c9..4ea2bdf 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -41,12 +41,14 @@ class Page_dashboard{ * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function Render(context){ + context.log.LogDebug("pd1"); Config.SetTALibrary(TAHelper.GetGlobals(context)); - + context.log.LogDebug("pd2"); if(context.component.SubmitSource == "btnClearDateFilter"){ context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; } + context.log.LogDebug("pd3"); if(context.component.SubmitSource == "lstQuestions") { context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null; context.state.Parameters["TA_LEVEL"] = null; @@ -54,25 +56,35 @@ class Page_dashboard{ context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null; context.state.Parameters["TA_VIEW_BY"] = null; } - + context.log.LogDebug("pd4"); TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard"); + context.log.LogDebug("pd5"); var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context)); + context.log.LogDebug("pd6"); paramUtils.SetDefaultParameterValues(_defaultParameters); + context.log.LogDebug("pd6"); var taParams = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary()); + context.log.LogDebug("pd7"); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); /*try { selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null; }catch(e){ selectedFolder = null; }*/ + context.log.LogDebug("pd8"); _folder = Config.GetTALibrary().GetFolderById(selectedFolder); + context.log.LogDebug("pd9"); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + context.log.LogDebug("pd10"); _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "ClearFilters"){ _filterComponents.ClearFilters() } + context.log.LogDebug("pd11"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); + context.log.LogDebug("pd12"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); + context.log.LogDebug("pd13"); } /** From 234faa708736f746b93cea29afb34992be01bca9 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 20 Jan 2017 17:19:17 +0300 Subject: [PATCH 038/224] filterpanel rendering --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 4ea2bdf..ffce49c 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -459,7 +459,7 @@ class Page_dashboard{ */ static function btnSave_Render(context){ context.log.LogDebug("btnSave "+_filterComponents); - _filter_panel.btnSave_Render(context); + // _filter_panel.btnSave_Render(context); } static function txtFilterTitle_Hide(context, filterNumber){ From b200c3c177aa460ab2b4bc4e413f4a97d12fe93e Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 23 Jan 2017 15:09:21 +0300 Subject: [PATCH 039/224] filterpanel rendering static buttons functions --- Static/FilterPanel.js | 12 ++++++------ Static/Page_Filters.js | 14 +++++++------- Static/Page_dashboard.js | 7 ++----- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 202a880..c831318 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -14,7 +14,7 @@ class FilterPanel{ * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} * @returns {Boolean} */ - function btnSaveReturn_Hide(context){ + static function btnSaveReturn_Hide(context){ return false } @@ -23,7 +23,7 @@ class FilterPanel{ * @function btnSaveReturn_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - function btnSaveReturn_Render(context){ + static function btnSaveReturn_Render(context){ context.component.Label = new Label(9,"Save and Return"); context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE"); } @@ -34,7 +34,7 @@ class FilterPanel{ * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} * @returns {Boolean} */ - function btnSave_Hide(context){ + static function btnSave_Hide(context){ return false } @@ -43,7 +43,7 @@ class FilterPanel{ * @function btnSave_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - function btnSave_Render(context){ + static function btnSave_Render(context){ context.component.Label = new Label(9,"Save"); } @@ -53,7 +53,7 @@ class FilterPanel{ * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} * @returns {Boolean} */ - function btnClearFilters_Hide(context){ + static function btnClearFilters_Hide(context){ return false } @@ -62,7 +62,7 @@ class FilterPanel{ * @function btnClearFilters_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - function btnClearFilters_Render(context){ + static function btnClearFilters_Render(context){ context.component.Label = new Label(9,"Clear Filters"); context.component.TargetPage = "filters"; } diff --git a/Static/Page_Filters.js b/Static/Page_Filters.js index ab22f51..848ae6d 100644 --- a/Static/Page_Filters.js +++ b/Static/Page_Filters.js @@ -61,7 +61,7 @@ class Page_filters{ * @returns {Boolean} */ static function btnSaveReturn_Hide(context){ - return _filter_panel.btnSaveReturn_Hide(context); + return FilterPanel.btnSaveReturn_Hide(context); } /** @@ -70,7 +70,7 @@ class Page_filters{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSaveReturn_Render(context){ - _filter_panel.btnSaveReturn_Render(context) + FilterPanel.btnSaveReturn_Render(context) } /** @@ -80,7 +80,7 @@ class Page_filters{ * @returns {Boolean} */ static function btnSave_Hide(context){ - return _filter_panel.btnSave_Hide(context); + return FilterPanel.btnSave_Hide(context); } /** @@ -89,7 +89,7 @@ class Page_filters{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ - _filter_panel.btnSave_Render(context); + FilterPanel.btnSave_Render(context); } /** @@ -99,7 +99,7 @@ class Page_filters{ * @returns {Boolean} */ static function btnClearFilters_Hide(context){ - return _filter_panel.btnClearFilters_Hide(context); + return FilterPanel.btnClearFilters_Hide(context); } /** @@ -108,8 +108,8 @@ class Page_filters{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnClearFilters_Render(context){ - _filter_panel.btnClearFilters_Render(context); -} + FilterPanel.btnClearFilters_Render(context); + } /** * @memberof Page_filters diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index ffce49c..1647a82 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -41,9 +41,7 @@ class Page_dashboard{ * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function Render(context){ - context.log.LogDebug("pd1"); Config.SetTALibrary(TAHelper.GetGlobals(context)); - context.log.LogDebug("pd2"); if(context.component.SubmitSource == "btnClearDateFilter"){ context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; @@ -449,7 +447,7 @@ class Page_dashboard{ * @returns {Boolean} */ static function btnSave_Hide(context){ - return _filter_panel.btnSave_Hide(context); + return FilterPanel.btnSave_Hide(context); } /** @@ -458,8 +456,7 @@ class Page_dashboard{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ - context.log.LogDebug("btnSave "+_filterComponents); - // _filter_panel.btnSave_Render(context); + FilterPanel.btnSave_Render(context); } static function txtFilterTitle_Hide(context, filterNumber){ From 7c10fa7ed3401f8001298bce00f7349a56e9b905 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 23 Jan 2017 17:31:36 +0300 Subject: [PATCH 040/224] Hierarchy table on page dashboard test --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1647a82..26f9f96 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -423,7 +423,7 @@ class Page_dashboard{ headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders(); var upgradeText = ""; + context.component.Output.Append(script) + +} } \ No newline at end of file From 940a2c2df84269e94663501f53f34db06b6889c4 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 23 Jan 2017 19:47:04 +0300 Subject: [PATCH 046/224] filterpanel processing --- Static/PageMaster.js | 8 -------- Static/ReportMaster.js | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 6c8b116..5f110d6 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -102,13 +102,5 @@ class PageMaster{ static function ClearFilters_Render(context){ } - static function txtFilterPanelScript_Render(context){ - var script = ""; - context.component.Output.Append(script) -} } \ No newline at end of file diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index d6007e5..1f9c7f0 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -62,4 +62,13 @@ class ReportMaster { static function btnClearDateFilter_Render(context){ context.component.Label = new Label(9, "Clear Date Filters"); } + static function txtFilterPanelScript_Render(context){ + var script = ""; + context.component.Output.Append(script) + +} } \ No newline at end of file From 3d92f042c07d9c4e20d7f1b2e0865a6d1b98d8f8 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 25 Jan 2017 15:56:44 +0300 Subject: [PATCH 047/224] filterpanel processing --- Static/PageMaster.js | 2 ++ Static/Page_dashboard.js | 12 ------------ TALibrary.js | 1 - 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 5f110d6..328b0b6 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -65,6 +65,8 @@ class PageMaster{ var filterSummary ; var summarySegments = []; _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + var selectedFolder = Config.GetTALibrary().GetTAFoldersParameterValue(context); + summarySegments.push(( "
Selected question = "+ selectedFolder+"
")); var codes = _filterComponents.GetAllAnsweredFilterCodes(); for( var i = 0 ; i < codes.length; i++){ diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 7f575fe..a49341d 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -46,7 +46,6 @@ class Page_dashboard{ context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; } - context.log.LogDebug("pd3"); if(context.component.SubmitSource == "lstQuestions") { context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null; context.state.Parameters["TA_LEVEL"] = null; @@ -54,35 +53,24 @@ class Page_dashboard{ context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null; context.state.Parameters["TA_VIEW_BY"] = null; } - context.log.LogDebug("pd4"); TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard"); - context.log.LogDebug("pd5"); var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context)); - context.log.LogDebug("pd6"); paramUtils.SetDefaultParameterValues(_defaultParameters); - context.log.LogDebug("pd6"); var taParams = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary()); - context.log.LogDebug("pd7"); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); /*try { selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null; }catch(e){ selectedFolder = null; }*/ - context.log.LogDebug("pd8"); _folder = Config.GetTALibrary().GetFolderById(selectedFolder); - context.log.LogDebug("pd9"); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); - context.log.LogDebug("pd10"); _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "ClearFilters"){ _filterComponents.ClearFilters() } - context.log.LogDebug("pd11"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); - context.log.LogDebug("pd12"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); - context.log.LogDebug("pd13"); } /** diff --git a/TALibrary.js b/TALibrary.js index a4cfe4e..b1bd186 100644 --- a/TALibrary.js +++ b/TALibrary.js @@ -92,7 +92,6 @@ class TALibrary{ } catch(e) { selectedFolder = null; } finally { - context.log.LogDebug("selected folder: "+selectedFolder); return selectedFolder; } } From 3960689e7a0c06329c4de9e24481b4f92d45f673 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 25 Jan 2017 16:17:25 +0300 Subject: [PATCH 048/224] filterpanel processing --- Static/PageMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 328b0b6..b5090c2 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -65,7 +65,7 @@ class PageMaster{ var filterSummary ; var summarySegments = []; _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); - var selectedFolder = Config.GetTALibrary().GetTAFoldersParameterValue(context); + var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); summarySegments.push(( "
Selected question = "+ selectedFolder+"
")); var codes = _filterComponents.GetAllAnsweredFilterCodes(); From 5335a9538b83e2771c941bd3969412e3a2d39026 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 30 Jan 2017 16:45:52 +0300 Subject: [PATCH 049/224] filterpanel processing --- Static/PageMaster.js | 11 +++++++++++ Static/Page_dashboard.js | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index b5090c2..28adc7b 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -68,6 +68,17 @@ class PageMaster{ var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); summarySegments.push(( "
Selected question = "+ selectedFolder+"
")); + var startDate = context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToString(); + + if(startDate){ + summarySegments.push(("
Start date = " + startDate + "
")); + } + var endDate = context.state.Parameters.IsNull("TA_DATE_TO") && context.state.Parameters.GetDate("TA_DATE_TO").ToString(); + + if(endDate){ + summarySegments.push(("
End date = " + endDate + "
")); + } + var codes = _filterComponents.GetAllAnsweredFilterCodes(); for( var i = 0 ; i < codes.length; i++){ summarySegments.push(( "
" + codes[i].questionTitle + " = "+ codes[i].texts.join(" | ")+"
")); diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index a49341d..e2a04a9 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -67,7 +67,9 @@ class Page_dashboard{ _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "ClearFilters"){ - _filterComponents.ClearFilters() + _filterComponents.ClearFilters(); + context.state.Parameters["TA_DATE_FROM"] = null; + context.state.Parameters["TA_DATE_TO"] = null; } taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); From 5887f4d0d6ca6b2bc6ccf82b33c125059d39a52a Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 30 Jan 2017 16:52:53 +0300 Subject: [PATCH 050/224] filterpanel processing --- Static/PageMaster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 28adc7b..4ea5b5c 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -68,12 +68,12 @@ class PageMaster{ var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); summarySegments.push(( "
Selected question = "+ selectedFolder+"
")); - var startDate = context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToString(); + var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToString(); if(startDate){ summarySegments.push(("
Start date = " + startDate + "
")); } - var endDate = context.state.Parameters.IsNull("TA_DATE_TO") && context.state.Parameters.GetDate("TA_DATE_TO").ToString(); + var endDate = !context.state.Parameters.IsNull("TA_DATE_TO") && context.state.Parameters.GetDate("TA_DATE_TO").ToString(); if(endDate){ summarySegments.push(("
End date = " + endDate + "
")); From 17c431e56c0206baac7d87ab64b623fe2f027026 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 30 Jan 2017 16:55:23 +0300 Subject: [PATCH 051/224] filterpanel processing --- Static/PageMaster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 4ea5b5c..60461fc 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -68,12 +68,12 @@ class PageMaster{ var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); summarySegments.push(( "
Selected question = "+ selectedFolder+"
")); - var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToString(); + var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); if(startDate){ summarySegments.push(("
Start date = " + startDate + "
")); } - var endDate = !context.state.Parameters.IsNull("TA_DATE_TO") && context.state.Parameters.GetDate("TA_DATE_TO").ToString(); + var endDate = !context.state.Parameters.IsNull("TA_DATE_TO") && context.state.Parameters.GetDate("TA_DATE_TO").ToShortDateString(); if(endDate){ summarySegments.push(("
End date = " + endDate + "
")); From 95654e0553e00834115f40d92cf72e133e005cf1 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 30 Jan 2017 16:59:42 +0300 Subject: [PATCH 052/224] filterpanel processing --- Static/PageMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 60461fc..131fbd3 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -86,7 +86,7 @@ class PageMaster{ filterSummary = summarySegments.join("AND"); context.component.Output.Append(filterSummary); - if( codes.length > 0 ) + if( codes.length > 0 || startDate || endDate) context.component.Output.Append(""); } From eb85dd91f38dfae8410ef6610e0f98bd7475ecd9 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 30 Jan 2017 18:24:18 +0300 Subject: [PATCH 053/224] filterpanel processing --- Static/Page_dashboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index e2a04a9..168f5ff 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -67,9 +67,10 @@ class Page_dashboard{ _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "ClearFilters"){ - _filterComponents.ClearFilters(); context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; + _filterComponents.ClearFilters(); + } taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); From 186b4e1747bc8a06cd6ba4c5396a64d460e69e02 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 31 Jan 2017 13:58:00 +0300 Subject: [PATCH 054/224] filterpanel processing --- Static/Page_dashboard.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 168f5ff..b4e6ca7 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -42,7 +42,7 @@ class Page_dashboard{ */ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); - if(context.component.SubmitSource == "btnClearDateFilter"){ + if(context.component.SubmitSource == "ClearFilters"){ context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; } @@ -58,19 +58,11 @@ class Page_dashboard{ paramUtils.SetDefaultParameterValues(_defaultParameters); var taParams = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary()); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - /*try { - selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null; - }catch(e){ - selectedFolder = null; - }*/ _folder = Config.GetTALibrary().GetFolderById(selectedFolder); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "ClearFilters"){ - context.state.Parameters["TA_DATE_FROM"] = null; - context.state.Parameters["TA_DATE_TO"] = null; _filterComponents.ClearFilters(); - } taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); From e1c64f212b5d3a1f22deb49f3d9f3e690768e0a1 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 31 Jan 2017 16:40:45 +0300 Subject: [PATCH 055/224] filterpanel processing --- Static/Page_dashboard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index b4e6ca7..431db04 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -43,8 +43,10 @@ class Page_dashboard{ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); if(context.component.SubmitSource == "ClearFilters"){ + context.log.LogDebug("clear date start"); context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; + context.log.LogDebug("clear date : "+context.state.Parameters.GetDate("TA_DATE_FROM").ToString()); } if(context.component.SubmitSource == "lstQuestions") { context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null; From 68d6184b18b41f81c66af2c3d3c41075f5203046 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 31 Jan 2017 16:45:39 +0300 Subject: [PATCH 056/224] filterpanel processing --- Static/Page_dashboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 431db04..35fc97e 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -42,6 +42,7 @@ class Page_dashboard{ */ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); + context.log.LogDebug("clear date start 1: "+context.component.SubmitSource); if(context.component.SubmitSource == "ClearFilters"){ context.log.LogDebug("clear date start"); context.state.Parameters["TA_DATE_FROM"] = null; From a93ff1324448f3239950c93693d5daeaf8692ee5 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 31 Jan 2017 16:50:33 +0300 Subject: [PATCH 057/224] filterpanel processing --- Static/PageMaster.js | 2 +- Static/Page_dashboard.js | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 131fbd3..171197b 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -101,7 +101,7 @@ class PageMaster{ var hideButton = true; _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); - hideButton = !_filterComponents.GetAllAnsweredFilterCodes().length > 0; + hideButton = !_filterComponents.GetAllAnsweredFilterCodes().length > 0 || !context.state.Parameters.IsNull("TA_DATE_FROM") || !context.state.Parameters.IsNull("TA_DATE_TO"); return hideButton } diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 35fc97e..1230018 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -42,13 +42,6 @@ class Page_dashboard{ */ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); - context.log.LogDebug("clear date start 1: "+context.component.SubmitSource); - if(context.component.SubmitSource == "ClearFilters"){ - context.log.LogDebug("clear date start"); - context.state.Parameters["TA_DATE_FROM"] = null; - context.state.Parameters["TA_DATE_TO"] = null; - context.log.LogDebug("clear date : "+context.state.Parameters.GetDate("TA_DATE_FROM").ToString()); - } if(context.component.SubmitSource == "lstQuestions") { context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null; context.state.Parameters["TA_LEVEL"] = null; @@ -66,6 +59,8 @@ class Page_dashboard{ _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "ClearFilters"){ _filterComponents.ClearFilters(); + context.state.Parameters["TA_DATE_FROM"] = null; + context.state.Parameters["TA_DATE_TO"] = null; } taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); From 5f08a06e9234cdd9c078c3bd562ac6420d65f896 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 31 Jan 2017 17:05:18 +0300 Subject: [PATCH 058/224] filterpanel processing --- Static/PageMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 171197b..3ed36cd 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -101,7 +101,7 @@ class PageMaster{ var hideButton = true; _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); - hideButton = !_filterComponents.GetAllAnsweredFilterCodes().length > 0 || !context.state.Parameters.IsNull("TA_DATE_FROM") || !context.state.Parameters.IsNull("TA_DATE_TO"); + hideButton = !_filterComponents.GetAllAnsweredFilterCodes().length > 0 && context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.IsNull("TA_DATE_TO"); return hideButton } From 2744013b9ef67613122de15f4c1ab448b98f8718 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 12:18:20 +0300 Subject: [PATCH 059/224] filterpanel processing --- Static/PageMaster.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 3ed36cd..bf1e14d 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -116,4 +116,41 @@ class PageMaster{ } + static function txtQuestion_Hide(context){ + return false + +} + static function txtQuestion_Render(context){ + label = 'Question'; + context.component.Output.Append(label); + +} + + static function txtDateFrom_Hide(context){ + return false + +} + static function txtDateFrom_Render(context){ + label = 'From'; + context.component.Output.Append(label); + +} + + static function txtDateTo_Hide(context){ + return false + +} + static function txtDateTo_Render(context){ + label = 'To'; + context.component.Output.Append(label); + +} + + static function btnApplyFilters_Hide(context){ + return false +} + static function btnApplyFilters_Render(context){ + FilterPanel.btnSave_Render(context); +} + } \ No newline at end of file From f2cd8d496d5f9bc75d603b3c5c11c49a9120fb70 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 12:30:32 +0300 Subject: [PATCH 060/224] filterpanel processing --- Static/PageMaster.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index bf1e14d..a68788a 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -121,7 +121,7 @@ class PageMaster{ } static function txtQuestion_Render(context){ - label = 'Question'; + var label = 'Question'; context.component.Output.Append(label); } @@ -131,7 +131,7 @@ class PageMaster{ } static function txtDateFrom_Render(context){ - label = 'From'; + var label = 'From'; context.component.Output.Append(label); } @@ -141,7 +141,7 @@ class PageMaster{ } static function txtDateTo_Render(context){ - label = 'To'; + var label = 'To'; context.component.Output.Append(label); } From 7267806c941d8491e7facf31c23205c8cc1530f0 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 15:16:57 +0300 Subject: [PATCH 061/224] filterpanel processing --- Static/PageMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index a68788a..a068123 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -66,7 +66,7 @@ class PageMaster{ var summarySegments = []; _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - summarySegments.push(( "
Selected question = "+ selectedFolder+"
")); + summarySegments.push(( "
Selected question = "+ Config.GetTALibrary.GetFolderById(selectedFolder).GetId()+"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); From 44c207369e7f01ba1e59d10771f37b417b26e8d7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 15:33:00 +0300 Subject: [PATCH 062/224] filterpanel processing --- Static/PageMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index a068123..15ab63b 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -66,7 +66,7 @@ class PageMaster{ var summarySegments = []; _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - summarySegments.push(( "
Selected question = "+ Config.GetTALibrary.GetFolderById(selectedFolder).GetId()+"
")); + summarySegments.push(( selectedFolder || "
Selected question = "+selectedFolder+"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); From 6d361dafa9c2d09a196e7cd1304ff2198828633c Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 15:39:53 +0300 Subject: [PATCH 063/224] filterpanel processing --- Static/PageMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 15ab63b..6dcb39c 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -66,7 +66,7 @@ class PageMaster{ var summarySegments = []; _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - summarySegments.push(( selectedFolder || "
Selected question = "+selectedFolder+"
")); + summarySegments.push(( selectedFolder && "
Selected question = "+selectedFolder+"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); From 4784faf1b5665ce6a956445e0485aea020abc445 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 16:19:30 +0300 Subject: [PATCH 064/224] filterpanel processing --- Static/PageMaster.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 6dcb39c..1ae225c 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -66,7 +66,10 @@ class PageMaster{ var summarySegments = []; _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - summarySegments.push(( selectedFolder && "
Selected question = "+selectedFolder+"
")); + if(selectedFolder) + summarySegments.push(("
Selected question = "+selectedFolder ? +selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId() +"
")); + + var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); From 6b7affe929f87e0dd9f7711004fce8d98696e70b Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 16:20:17 +0300 Subject: [PATCH 065/224] filterpanel processing --- Static/PageMaster.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 1ae225c..e27a44f 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -64,12 +64,11 @@ class PageMaster{ static function FilterSummary_Render(context){ var filterSummary ; var summarySegments = []; + Config.SetTALibrary(); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - if(selectedFolder) - summarySegments.push(("
Selected question = "+selectedFolder ? +selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId() +"
")); - - + if(selectedFolder) + summarySegments.push(("
Selected question = "+selectedFolder ? +selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId() +"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); From 0b28a0c5cfd1d533b102240dc645d0f738a64fca Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 16:29:16 +0300 Subject: [PATCH 066/224] filterpanel processing --- Static/PageMaster.js | 1 - 1 file changed, 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index e27a44f..3c81cd4 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -67,7 +67,6 @@ class PageMaster{ Config.SetTALibrary(); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - if(selectedFolder) summarySegments.push(("
Selected question = "+selectedFolder ? +selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId() +"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); From 382be9a3950ec6f17516820314bb897fda38f858 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 16:36:31 +0300 Subject: [PATCH 067/224] filterpanel processing --- Static/PageMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 3c81cd4..1361ae2 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -67,7 +67,7 @@ class PageMaster{ Config.SetTALibrary(); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - summarySegments.push(("
Selected question = "+selectedFolder ? +selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId() +"
")); + summarySegments.push(("
Selected question = "+selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId() +"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); From 06910a8c22cc5a7bf8b34562121fb0da5b87258b Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Feb 2017 16:43:27 +0300 Subject: [PATCH 068/224] filterpanel processing --- Static/PageMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 1361ae2..f95f534 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -67,7 +67,7 @@ class PageMaster{ Config.SetTALibrary(); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - summarySegments.push(("
Selected question = "+selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId() +"
")); + summarySegments.push(("
Selected question = "+(selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId()) +"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); From ad7a095a69d7381989502ed65a70854d72f92530 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 3 Feb 2017 15:02:09 +0300 Subject: [PATCH 069/224] filterpanel processing --- Static/Page_comments.js | 25 +++++++++++++++++++++++++ Static/Page_detailed_analysis.js | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index cbb2e90..26e8945 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -351,4 +351,29 @@ class Page_comments{ var label = "Sentiment"; context.component.Output.Append(label); } + + static function txtFilterTitle_Hide(context, filterNumber){ + return _filter_panel.txtFilterTitle_Hide(context, filterNumber); +} + + /** + * @memberof Page_filters + * @function txtFilterTitle_Render + * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + */ + static function txtFilterTitle_Render(context, filterNumber){ + _filter_panel.txtFilterTitle_Render(context, filterNumber); +} + + /** + * @memberof Page_filters + * @function lstFilterList_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + * @returns {Boolean} + */ + static function lstFilterList_Hide(context, filterNumber){ + return _filter_panel.lstFilterList_Hide(context, filterNumber); +} } \ No newline at end of file diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 42b3bd8..7b8acc9 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -278,4 +278,29 @@ class Page_detailed_analysis{ static function txtCategory_Render(context){ context.component.Output.Append("Category"); } + + static function txtFilterTitle_Hide(context, filterNumber){ + return _filter_panel.txtFilterTitle_Hide(context, filterNumber); +} + + /** + * @memberof Page_filters + * @function txtFilterTitle_Render + * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + */ + static function txtFilterTitle_Render(context, filterNumber){ + _filter_panel.txtFilterTitle_Render(context, filterNumber); +} + + /** + * @memberof Page_filters + * @function lstFilterList_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @param {Number} filterNumber + * @returns {Boolean} + */ + static function lstFilterList_Hide(context, filterNumber){ + return _filter_panel.lstFilterList_Hide(context, filterNumber); +} } From 0b3f2153a20137d2cda6f77bf45f572418194eba Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 3 Feb 2017 15:19:22 +0300 Subject: [PATCH 070/224] filterpanel processing --- Static/Page_comments.js | 4 +++- Static/Page_detailed_analysis.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index 26e8945..d469fcc 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -75,7 +75,9 @@ class Page_comments{ } catch(e){ selectedFolder = null; }*/ - _folder = Config.GetTALibrary().GetFolderById(selectedFolder); + _folder = Config.GetTALibrary().GetFolderById(selectedFolder); + _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + _filter_panel = new FilterPanel(_filterComponents); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); } diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 7b8acc9..9d099a5 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -67,7 +67,9 @@ class Page_detailed_analysis{ }catch(e){ selectedFolder = null; }*/ - _folder =Config.GetTALibrary().GetFolderById(selectedFolder); + _folder = Config.GetTALibrary().GetFolderById(selectedFolder); + _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + _filter_panel = new FilterPanel(_filterComponents); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); } From e85e1a35ca899ed648297bcd25a4faf4d70b3097 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 3 Feb 2017 15:25:25 +0300 Subject: [PATCH 071/224] filterpanel processing --- Static/Page_comments.js | 1 + Static/Page_detailed_analysis.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index d469fcc..2e4e167 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -4,6 +4,7 @@ */ class Page_comments{ private static var _filterComponents; + private static var _filter_panel; private static var _folder; private static const _defaultParameters = [ { diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 9d099a5..fe09615 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -3,6 +3,8 @@ * @classdesc Static class for Reportal Page detailed_analysis components */ class Page_detailed_analysis{ + private static var _filterComponents; + private static var _filter_panel; private static var _folder; private static const _defaultParameters = [ { From 7463eb3c99db8383e2cd4852e548f6cd97433d81 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 3 Feb 2017 15:28:35 +0300 Subject: [PATCH 072/224] filterpanel processing --- Static/Page_comments.js | 9 ++++----- Static/Page_detailed_analysis.js | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index 2e4e167..07f20f2 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -48,14 +48,13 @@ class Page_comments{ */ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); + _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); if(context.component.SubmitSource == "ClearFilters"){ - new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main).ClearFilters() - } - - if(context.component.SubmitSource == "btnClearDateFilter"){ + _filterComponents.ClearFilters(); context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; } + if(context.component.SubmitSource == "lstQuestions") { context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null; context.state.Parameters["TA_LEVEL"] = null; @@ -77,7 +76,7 @@ class Page_comments{ selectedFolder = null; }*/ _folder = Config.GetTALibrary().GetFolderById(selectedFolder); - _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + _filter_panel = new FilterPanel(_filterComponents); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index fe09615..5c8ba4b 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -42,14 +42,13 @@ class Page_detailed_analysis{ */ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); + _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); if(context.component.SubmitSource == "ClearFilters"){ - new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main).ClearFilters() - } - - if(context.component.SubmitSource == "btnClearDateFilter"){ + _filterComponents.ClearFilters(); context.state.Parameters["TA_DATE_FROM"] = null; context.state.Parameters["TA_DATE_TO"] = null; } + if(context.component.SubmitSource == "lstQuestions") { context.state.Parameters["TA_ATTRIBUTES_SINGLE"] = null; context.state.Parameters["TA_LEVEL"] = null; @@ -70,7 +69,7 @@ class Page_detailed_analysis{ selectedFolder = null; }*/ _folder = Config.GetTALibrary().GetFolderById(selectedFolder); - _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + _filter_panel = new FilterPanel(_filterComponents); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); From c3118d1203406ad41bcaebcca1f190a362cef475 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 3 Feb 2017 15:50:50 +0300 Subject: [PATCH 073/224] filterpanel processing --- Static/Page_Filters.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Static/Page_Filters.js b/Static/Page_Filters.js index 848ae6d..4648302 100644 --- a/Static/Page_Filters.js +++ b/Static/Page_Filters.js @@ -142,4 +142,34 @@ class Page_filters{ static function lstFilterList_Hide(context, filterNumber){ return _filter_panel.lstFilterList_Hide(context, filterNumber); } + + static function txtQuestion_Hide(context){ + return false + +} + static function txtQuestion_Render(context){ + var label = 'Question'; + context.component.Output.Append(label); + +} + + static function txtDateFrom_Hide(context){ + return false + +} + static function txtDateFrom_Render(context){ + var label = 'From'; + context.component.Output.Append(label); + +} + + static function txtDateTo_Hide(context){ + return false + +} + static function txtDateTo_Render(context){ + var label = 'To'; + context.component.Output.Append(label); + +} } \ No newline at end of file From cfe05fc51c5c0740608003673bfe4ace9af6f883 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 3 Feb 2017 16:11:16 +0300 Subject: [PATCH 074/224] filterpanel processing --- Static/Page_Filters.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Static/Page_Filters.js b/Static/Page_Filters.js index 4648302..adc0f19 100644 --- a/Static/Page_Filters.js +++ b/Static/Page_Filters.js @@ -30,6 +30,8 @@ class Page_filters{ _filter_panel = new FilterPanel(_filterComponents); if(context.component.SubmitSource == "btnClearFilters"){ _filterComponents.ClearFilters(); + context.state.Parameters["TA_DATE_FROM"] = null; + context.state.Parameters["TA_DATE_TO"] = null; } if(context.component.SubmitSource == "btnClearDateFilter"){ context.state.Parameters["TA_DATE_FROM"] = null; From d64f99da3e588f7599895d52d5e78c6b4b7e616e Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 7 Feb 2017 16:45:56 +0300 Subject: [PATCH 075/224] neutrals bug fixing --- TAThemeDistributionTable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TAThemeDistributionTable.js b/TAThemeDistributionTable.js index 153944a..684938e 100644 --- a/TAThemeDistributionTable.js +++ b/TAThemeDistributionTable.js @@ -125,8 +125,8 @@ class TAThemeDistributionTable{ break; } } - headerStatistics.HideHeader = true; - headerStatistics.HideData = true; + //headerStatistics.HideHeader = true; + //headerStatistics.HideData = true; return headerStatistics } From 3406fd58d22cf0f2894663b9abbe179521f585fd Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 7 Feb 2017 17:00:51 +0300 Subject: [PATCH 076/224] neutrals bug fixing --- TADetailedAnalysisTable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index 1bd577a..4758a81 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -201,16 +201,16 @@ class TADetailedAnalysisTable{ _taTableUtils.SetupConditionalFormatting( [ { - expression: 'cellv(col,row)<(-1)', + expression: 'cellv(col, row)<('+(Config.SentimentRange.Neutral[0] - 5)+') AND cellv(col,row)<>EMPTYV() ', style: 'negative' }, { - expression: '(cellv(col, row)>=(-1)) AND (cellv(col, row)<=1)', + expression: '(cellv(col, row)>=('+(Config.SentimentRange.Neutral[0] - 5)+')) AND (cellv(col, row)<='+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+') AND cellv(col,row)<>EMPTYV()', style: 'neutral' }, { - expression: 'cellv(col, row)>1', + expression: 'cellv(col, row)>'+(Config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+' AND cellv(col,row)<>EMPTYV()', style: 'positive' } ], From 03e285ab9ff8ec78c4ce43456e543262bb528915 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 7 Feb 2017 17:06:47 +0300 Subject: [PATCH 077/224] neutrals bug fixing --- TADetailedAnalysisTable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index 4758a81..f79dbac 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -206,11 +206,11 @@ class TADetailedAnalysisTable{ }, { - expression: '(cellv(col, row)>=('+(Config.SentimentRange.Neutral[0] - 5)+')) AND (cellv(col, row)<='+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+') AND cellv(col,row)<>EMPTYV()', + expression: '(cellv(col, row)>=('+(Config.SentimentRange.Neutral[0] - 5)+')) AND (cellv(col, row)<='+(Config.SentimentRange.Neutral[Config.SentimentRange.Neutral.length - 1] - 5)+') AND cellv(col,row)<>EMPTYV()', style: 'neutral' }, { - expression: 'cellv(col, row)>'+(Config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+' AND cellv(col,row)<>EMPTYV()', + expression: 'cellv(col, row)>'+(Config.SentimentRange.Neutral[Config.SentimentRange.Neutral.length - 1] - 5)+' AND cellv(col,row)<>EMPTYV()', style: 'positive' } ], From 26756791261fdd6b481a4b155f1a5cec6fefcdb4 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 7 Feb 2017 17:17:25 +0300 Subject: [PATCH 078/224] neutrals bug fixing --- TADetailedAnalysisTable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index f79dbac..6e38e28 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -201,16 +201,16 @@ class TADetailedAnalysisTable{ _taTableUtils.SetupConditionalFormatting( [ { - expression: 'cellv(col, row)<('+(Config.SentimentRange.Neutral[0] - 5)+') AND cellv(col,row)<>EMPTYV() ', + expression: 'cellv(col, row)<('+(Config.SentimentRange.Neutral[0] - 6)+') AND cellv(col,row)<>EMPTYV() ', style: 'negative' }, { - expression: '(cellv(col, row)>=('+(Config.SentimentRange.Neutral[0] - 5)+')) AND (cellv(col, row)<='+(Config.SentimentRange.Neutral[Config.SentimentRange.Neutral.length - 1] - 5)+') AND cellv(col,row)<>EMPTYV()', + expression: '(cellv(col, row)>=('+(Config.SentimentRange.Neutral[0] - 6)+')) AND (cellv(col, row)<='+(Config.SentimentRange.Neutral[Config.SentimentRange.Neutral.length - 1] - 6)+') AND cellv(col,row)<>EMPTYV()', style: 'neutral' }, { - expression: 'cellv(col, row)>'+(Config.SentimentRange.Neutral[Config.SentimentRange.Neutral.length - 1] - 5)+' AND cellv(col,row)<>EMPTYV()', + expression: 'cellv(col, row)>'+(Config.SentimentRange.Neutral[Config.SentimentRange.Neutral.length - 1] - 6)+' AND cellv(col,row)<>EMPTYV()', style: 'positive' } ], From 1a037cfce68907111526b1f24f72170133c1f005 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 7 Feb 2017 17:21:53 +0300 Subject: [PATCH 079/224] neutrals bug fixing --- TAThemeDistributionTable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TAThemeDistributionTable.js b/TAThemeDistributionTable.js index 684938e..37669b5 100644 --- a/TAThemeDistributionTable.js +++ b/TAThemeDistributionTable.js @@ -140,16 +140,16 @@ class TAThemeDistributionTable{ _taTableUtils.SetupConditionalFormatting( [ { - expression: 'cellv(col+1, row)<('+(_config.SentimentRange.Neutral[0] - 5)+') AND cellv(col,row)<>EMPTYV() ', + expression: 'cellv(col+1, row)<('+(_config.SentimentRange.Neutral[0] - 6)+') AND cellv(col,row)<>EMPTYV() ', style: 'negative' }, { - expression: '(cellv(col+1, row)>=('+(_config.SentimentRange.Neutral[0] - 5)+')) AND (cellv(col+1, row)<='+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+') AND cellv(col,row)<>EMPTYV()', + expression: '(cellv(col+1, row)>=('+(_config.SentimentRange.Neutral[0] - 6)+')) AND (cellv(col+1, row)<='+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 6)+') AND cellv(col,row)<>EMPTYV()', style: 'neutral' }, { - expression: 'cellv(col+1, row)>'+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 5)+' AND cellv(col,row)<>EMPTYV()', + expression: 'cellv(col+1, row)>'+(_config.SentimentRange.Neutral[_config.SentimentRange.Neutral.length - 1] - 6)+' AND cellv(col,row)<>EMPTYV()', style: 'positive' } ], From a69e579fed7ca8b0045c9c1fa4dbdf84be077ac3 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 8 Feb 2017 12:06:25 +0300 Subject: [PATCH 080/224] neutrals bug fixing --- Static/ReportMaster.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 1f9c7f0..95cb730 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -70,5 +70,9 @@ class ReportMaster { ""; context.component.Output.Append(script) +} + + static function hierarchyComponent_Render(context) { + return !context.report.PersonalizedQuestion } } \ No newline at end of file From da85e0505a8a362b2641c6ebcb29fc158a8b33a1 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 27 Oct 2016 16:25:14 +0300 Subject: [PATCH 081/224] clearing table properties preset --- TATableUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TATableUtils.js b/TATableUtils.js index 9dc2328..8a06b8e 100644 --- a/TATableUtils.js +++ b/TATableUtils.js @@ -411,4 +411,4 @@ class TATableUtils{ _table.SuppressData.CellDisplay = BaseDisplayOption.Hide; _table.SuppressData.CellLimit = 1; } -} +} \ No newline at end of file From 996a6ad69e8fb032c6a0dafa01d1b7867ccb754b Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 27 Oct 2016 16:38:28 +0300 Subject: [PATCH 082/224] Confirmit ASA merge --- Static/Page_dashboard.js | 101 ++++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 49 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1230018..8929257 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -7,21 +7,21 @@ class Page_dashboard{ private static var _filter_panel; private static var _folder; private static const _defaultParameters = [ - { - Id: "TA_LEVEL", - Value: "0" - }, - - { - Id: "TA_COMPARE_PERIODS", - Value: "qoq" - }, - - { - Id: "TA_VIEW_SENTIMENT", - Value: "emptyv" - } -]; + { + Id: "TA_LEVEL", + Value: "0" + }, + + { + Id: "TA_COMPARE_PERIODS", + Value: "qoq" + }, + + { + Id: "TA_VIEW_SENTIMENT", + Value: "emptyv" + } + ]; /** * @memberof Page_dashboard @@ -31,8 +31,8 @@ class Page_dashboard{ * @returns {Boolean} */ static function Hide(context){ - return false; -} + return false; + } /** * @memberof Page_dashboard @@ -74,13 +74,16 @@ class Page_dashboard{ * @param {String} sentiment - "neg" or "pos" */ private static function _renderTblMostSentiment(context, sentiment){ - var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL"); - var globals = TAHelper.GetGlobals(context); - var table = context.component; - var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level); - topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); - topSentimentTable.GetTATableUtils().ClearTableDistributions(); -} + + var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL"); + var globals = TAHelper.GetGlobals(context); + var table = context.component; + var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level); + topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); + if(level == 0) + topSentimentTable.GetTATableUtils().SetupDrilldown("TA_TOP_CATEGORIES_SINGLE","detailed_analysis"); + topSentimentTable.GetTATableUtils().ClearTableDistributions(); + } /** * @memberof Page_dashboard @@ -95,10 +98,10 @@ class Page_dashboard{ var table = context.component; var period = context.state.Parameters.IsNull("TA_COMPARE_PERIODS") ? "qoq" : context.state.Parameters.GetString("TA_COMPARE_PERIODS"); - var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period); - topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); - topChangedTable.GetTATableUtils().ClearTableDistributions(); -} + var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period); + topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); + topChangedTable.GetTATableUtils().ClearTableDistributions(); + } /** * @memberof Page_dashboard @@ -107,8 +110,8 @@ class Page_dashboard{ * @returns {Boolean} */ static function tblMostPositive_Hide(context){ - return false; -} + return false; + } /** * @memberof Page_dashboard @@ -116,8 +119,8 @@ class Page_dashboard{ * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function tblMostPositive_Render(context){ - _renderTblMostSentiment(context, true); -} + _renderTblMostSentiment(context, true); + } /** * @memberof Page_dashboard @@ -126,8 +129,8 @@ class Page_dashboard{ * @returns {Boolean} */ static function tblMostNegative_Hide(context){ - return false; -} + return false; + } /** * @memberof Page_dashboard @@ -135,8 +138,8 @@ class Page_dashboard{ * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function tblMostNegative_Render(context){ - _renderTblMostSentiment(context, false); -} + _renderTblMostSentiment(context, false); + } /** * @memberof Page_dashboard @@ -145,8 +148,8 @@ class Page_dashboard{ * @returns {Boolean} */ static function tblMostImproved_Hide(context){ - return false; -} + return false; + } /** * @memberof Page_dashboard @@ -154,8 +157,8 @@ class Page_dashboard{ * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function tblMostImproved_Render(context){ - _renderTblMostChanged(context, true); -} + _renderTblMostChanged(context, true); + } /** * @memberof Page_dashboard @@ -164,8 +167,8 @@ class Page_dashboard{ * @returns {Boolean} */ static function tblMostDeclined_Hide(context){ - return false; -} + return false; + } /** * @memberof Page_dashboard @@ -173,8 +176,8 @@ class Page_dashboard{ * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function tblMostDeclined_Render(context){ - _renderTblMostChanged(context, false); -} + _renderTblMostChanged(context, false); + } /** * @memberof Page_dashboard @@ -183,8 +186,8 @@ class Page_dashboard{ * @returns {Boolean} */ static function tblThemeDistribution_Hide(context){ - return false; -} + return false; + } /** * @memberof Page_dashboard @@ -192,9 +195,9 @@ class Page_dashboard{ * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function tblThemeDistribution_Render(context){ - var globals = TAHelper.GetGlobals(context); - var table = context.component; - var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT"); + var globals = TAHelper.GetGlobals(context); + var table = context.component; + var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT"); var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment,Config); themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "striped-columns", "reportal-hierarchy-table"]); From 4a7eddd0e0304b2d8bb0ae0a563faffb369fa771 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 8 Feb 2017 16:23:49 +0300 Subject: [PATCH 083/224] neutrals bug fixing --- Static/ReportMaster.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 95cb730..b2439cf 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -72,7 +72,16 @@ class ReportMaster { } - static function hierarchyComponent_Render(context) { + static function hierarchyComponent_Hide(context) { return !context.report.PersonalizedQuestion } + + static function txtHierarchyLabel_Hide(context) { + return !context.report.PersonalizedQuestion +} + + static function txtHierarchyLabel_Render(context) { + var label = "Hierarchy"; + context.component.Output.Append(label); +} } \ No newline at end of file From 7ecec08ffed7ca31f054282aaf7d8c13f31f31ca Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 8 Feb 2017 16:36:15 +0300 Subject: [PATCH 084/224] hierarchy component --- Static/ReportMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index b2439cf..355655e 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -81,7 +81,7 @@ class ReportMaster { } static function txtHierarchyLabel_Render(context) { - var label = "Hierarchy"; + var label = "Hierarchy:"; context.component.Output.Append(label); } } \ No newline at end of file From 283da248c77dc41cf77cc8b4ea41ab2f119f70f2 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 8 Feb 2017 18:02:05 +0300 Subject: [PATCH 085/224] hierarchy component --- Static/PageMaster.js | 13 +++++++++++++ Static/ReportMaster.js | 11 ----------- TAThemeDistributionTable.js | 4 ++-- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index f95f534..df2b466 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -154,4 +154,17 @@ class PageMaster{ FilterPanel.btnSave_Render(context); } + static function hierarchyComponent_Hide(context) { + return !context.report.PersonalizedQuestion +} + + static function txtHierarchyLabel_Hide(context) { + return !context.report.PersonalizedQuestion +} + + static function txtHierarchyLabel_Render(context) { + var label = "Hierarchy:"; + context.component.Output.Append(label); +} + } \ No newline at end of file diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 355655e..eb7d0d7 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -72,16 +72,5 @@ class ReportMaster { } - static function hierarchyComponent_Hide(context) { - return !context.report.PersonalizedQuestion -} - - static function txtHierarchyLabel_Hide(context) { - return !context.report.PersonalizedQuestion -} - static function txtHierarchyLabel_Render(context) { - var label = "Hierarchy:"; - context.component.Output.Append(label); -} } \ No newline at end of file diff --git a/TAThemeDistributionTable.js b/TAThemeDistributionTable.js index 37669b5..cdf3690 100644 --- a/TAThemeDistributionTable.js +++ b/TAThemeDistributionTable.js @@ -125,8 +125,8 @@ class TAThemeDistributionTable{ break; } } - //headerStatistics.HideHeader = true; - //headerStatistics.HideData = true; + headerStatistics.HideHeader = true; + headerStatistics.HideData = true; return headerStatistics } From bcc2f65926cac1e84d80c045c93209e625da37f1 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 10 Feb 2017 16:18:30 +0300 Subject: [PATCH 086/224] detailed analysis fix --- Static/PageMaster.js | 2 +- Static/Page_dashboard.js | 2 +- Static/Page_detailed_analysis.js | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index df2b466..cb728e9 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -163,7 +163,7 @@ class PageMaster{ } static function txtHierarchyLabel_Render(context) { - var label = "Hierarchy:"; + var label = "Hierarchy"; context.component.Output.Append(label); } diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 8929257..17c9274 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -418,7 +418,7 @@ class Page_dashboard{ "},"+ "search:{},"+ "fixedHeader:{},"+ - "clearLinks:true"+ + "clearLinks:false"+ "}"+ ")"+ ""; diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 5c8ba4b..c645c1b 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -219,20 +219,24 @@ class Page_detailed_analysis{ var blocks = taTableData.GetBlocks(); var upgradeText = ""; From 40a0b97d6dc6d4a241d3d3818c193ea3a249cd10 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 10 Feb 2017 16:31:53 +0300 Subject: [PATCH 087/224] detailed analysis fix --- Static/Page_detailed_analysis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index c645c1b..e24ed94 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -232,8 +232,8 @@ class Page_detailed_analysis{ "{"+ "enabled: true,"+ "excludedColumns: [6]"+ - "},"+ - "}"+ + "}"+ + "},"+ "floatingHeader: {},"+ "search:{},"+ From 2d0f0ffd0b12706bdcc890285651e2621a1cf226 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 10 Feb 2017 16:33:22 +0300 Subject: [PATCH 088/224] detailed analysis fix --- Static/Page_detailed_analysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index e24ed94..7403e34 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -219,7 +219,7 @@ class Page_detailed_analysis{ var blocks = taTableData.GetBlocks(); var upgradeText = ""; From 56a2acfab27efcdff797c408ae67124ff40b1123 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 10 Feb 2017 16:59:28 +0300 Subject: [PATCH 090/224] detailed analysis fix --- Static/Page_detailed_analysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index f1bb833..15d73cd 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -221,7 +221,7 @@ class Page_detailed_analysis{ var upgradeText = ""; From 2f771e4dd933bad00b89d63b350c3cd9e32145b7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Feb 2017 17:38:43 +0300 Subject: [PATCH 105/224] drilldowns from all levels --- Static/Page_dashboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index d069e31..1e0734f 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -84,7 +84,7 @@ class Page_dashboard{ var table = context.component; var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level); topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); - topSentimentTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis, comments"); + topSentimentTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis,comments"); topSentimentTable.GetTATableUtils().ClearTableDistributions(); } @@ -104,7 +104,7 @@ class Page_dashboard{ var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period); topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); topChangedTable.GetTATableUtils().ClearTableDistributions(); - topChangedTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis"); + topChangedTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis,comments"); } /** @@ -205,7 +205,7 @@ class Page_dashboard{ var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment,Config); themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "striped-columns", "reportal-hierarchy-table"]); - themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "detailed_analysis"); + themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "detailed_analysis,comments"); themeDistributionTable.GetTATableUtils().ClearTableDistributions(); themeDistributionTable.GetTATableUtils().SetupDataSupressing(1); } From 1058efee8c26c3d10ebdb9afb1ad37a12b8f8cc6 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Feb 2017 18:15:15 +0300 Subject: [PATCH 106/224] drilldowns from all levels --- Static/Page_dashboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1e0734f..9ddc287 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -84,7 +84,7 @@ class Page_dashboard{ var table = context.component; var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level); topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); - topSentimentTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis,comments"); + topSentimentTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis"); topSentimentTable.GetTATableUtils().ClearTableDistributions(); } @@ -104,7 +104,7 @@ class Page_dashboard{ var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period); topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); topChangedTable.GetTATableUtils().ClearTableDistributions(); - topChangedTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis,comments"); + topChangedTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","comments"); } /** @@ -205,7 +205,7 @@ class Page_dashboard{ var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment,Config); themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "striped-columns", "reportal-hierarchy-table"]); - themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "detailed_analysis,comments"); + themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "detailed_analysis"); themeDistributionTable.GetTATableUtils().ClearTableDistributions(); themeDistributionTable.GetTATableUtils().SetupDataSupressing(1); } From 9e05f6682f9039ab54fc8ccdfb1038924b1a17a7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Feb 2017 18:20:56 +0300 Subject: [PATCH 107/224] drilldowns from all levels --- Static/Page_comments.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index a969103..f8653a3 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -6,6 +6,7 @@ class Page_comments{ private static var _filterComponents; private static var _filter_panel; private static var _folder; + private static var _selectedCategory; private static const _defaultParameters = [ { Id: "TA_ALL_CATEGORIES", @@ -84,6 +85,14 @@ class Page_comments{ _filter_panel = new FilterPanel(_filterComponents); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); + + if(context.component.SubmitSource == "lstCategory" || context.component.SubmitSource == "lstSubCategory" || context.component.SubmitSource == "lstAttribute"){ + _selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); + context.state.Parameters['TA_ALL_CATEGORIES'] = new ParameterValueResponse(_selectedCategory); + }else { + _selectedCategory = context.state.Parameters.GetString('TA_ALL_CATEGORIES'); + TAHelper.SetSelectedCategory(context.state, _folder.GetHierarchy(), _selectedCategory, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE",context.log); + } } /** @@ -123,14 +132,13 @@ class Page_comments{ } var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component); - var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); + var selectedCategory = _selectedCategory if( selectedCategory ){ htlComments.AddTAColumn("categorysentiment", false, selectedCategory); } htlComments.AddTAColumn("verbatim"); htlComments.AddColumn(_folder.GetTimeVariableId(), true); - context.log.LogDebug("time var: "+ _folder.GetTimeVariableId()); htlComments.AddTAColumn("overallsentiment"); //htlComments.AddTAColumn("categories"); htlComments.AddConfiguredColumns(); @@ -165,7 +173,7 @@ class Page_comments{ ""; var hitlistHeaders = {}; - var selectedCategory = TAHelper.GetSelectedCategory(context.state, "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE") + var selectedCategory = _selectedCategory; hitlistHeaders["sentiment"] = [] From 57991462d4eeb90ea2ad9793ad8369c2177dd388 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 14 Feb 2017 12:41:38 +0300 Subject: [PATCH 108/224] drilldowns from all levels --- Static/Page_detailed_analysis.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 5f1ae15..5700eba 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -212,6 +212,7 @@ class Page_detailed_analysis{ var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, _selectedCategory, selectedQuestion, distribution, ( selectedQuestionType == QuestionType.Multi)); detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]); detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0)); + detailedAnalysisTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","comments"); } /** From 59f781728a1ddcb3e81f5b968e1afad4c76be97d Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 14 Feb 2017 14:24:17 +0300 Subject: [PATCH 109/224] drilldowns from all levels --- Static/Page_dashboard.js | 2 +- Static/Page_detailed_analysis.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 9ddc287..4e3fa4b 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -411,7 +411,7 @@ class Page_dashboard{ headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders(); var upgradeText = ""; context.component.Output.Append(script) + var darkPrimaryColor = Config.Design.darkPrimaryColor; + var defaultPrimaryColor = Config.Design.defaultPrimaryColor; + var lightPrimaryColor = Config.Design.lightPrimaryColor; + var textPrimaryColor = Config.Design.textPrimaryColor; + var darkAccentColor = Config.Design.darkAccentColor; + var defaultAccentColor = Config.Design.defaultAccentColor; + var lightAccentColor = Config.Design.lightAccentColor; + var primaryBackgroundColor = Config.Design.primaryBackgroundColor; + var primaryTextColor = Config.Design.primaryTextColor; + var secondaryTextColor = Config.Design.secondaryTextColor; + var disabledTextColor = Config.Design.disabledTextColor; + var dividerColor = Config.Design.dividerColor; + var lightDividerColor = Config.Design.lightDividerColor; + var positiveColor = Config.Design.positiveColor; + var neutralColor = Config.Design.neutralColor; + var negativeColor = Config.Design.negativeColor; + + var str = ""; + + context.component.Output.Append(str); + } From ab2b4d8f782a6f7d43709422bd08e6a251d12941 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 20 Feb 2017 15:39:29 +0300 Subject: [PATCH 123/224] Translations --- Static/Page_dashboard.js | 5 +++++ Translations.js | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 Translations.js diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1f3653b..26d3430 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -6,6 +6,7 @@ class Page_dashboard{ private static var _filterComponents; private static var _filter_panel; private static var _folder; + private static var _currentLanguage; private static const _defaultParameters = [ { Id: "TA_LEVEL", @@ -69,6 +70,10 @@ class Page_dashboard{ } taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); + + _currentLanguage = context.report.CurrentLanguage; + + context.component.Title = new LanguageText(_currentLanguage, Translations.dictionary['dashboard'][_currentLanguage]); } /** diff --git a/Translations.js b/Translations.js new file mode 100644 index 0000000..d088510 --- /dev/null +++ b/Translations.js @@ -0,0 +1,8 @@ +class Translations{ + static var dictionary = { + 'Dashboard': { + '9' : 'Dashboardddd' + + } + } +} From fd8d53b67ff6615d7c0cfcf6989c8ca77e68ccc7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 20 Feb 2017 15:52:30 +0300 Subject: [PATCH 124/224] Translations --- Static/Page_dashboard.js | 1 - 1 file changed, 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 26d3430..3ee1b58 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -73,7 +73,6 @@ class Page_dashboard{ _currentLanguage = context.report.CurrentLanguage; - context.component.Title = new LanguageText(_currentLanguage, Translations.dictionary['dashboard'][_currentLanguage]); } /** From babf96b0b8927712c6bdd8433480eaebe465a997 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 20 Feb 2017 16:32:59 +0300 Subject: [PATCH 125/224] Translations --- Static/PageMaster.js | 4 +++- Translations.js | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index cb728e9..92a381c 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -5,6 +5,7 @@ class PageMaster{ private static var _filterComponents; + /** * @memberof PageMaster * @function FiltersButtonHtml_Hide @@ -67,7 +68,8 @@ class PageMaster{ Config.SetTALibrary(); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - summarySegments.push(("
Selected question = "+(selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId()) +"
")); + var currentLaguage = context.report.CurrentLanguage; + summarySegments.push(("
"+Translations.dictionary['Selected question'][currentLaguage]+" = "+(selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId()) +"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); diff --git a/Translations.js b/Translations.js index d088510..0fa2fef 100644 --- a/Translations.js +++ b/Translations.js @@ -1,8 +1,13 @@ class Translations{ static var dictionary = { 'Dashboard': { - '9' : 'Dashboardddd' + '9' : 'Dashboardddd', + '25': 'Главная страница' + }, + 'Selected question': { + '9' : 'Selected question', + '25': 'Выбранный вопрос' } } } From 0de2d1f26d3ffd0d5beeb28a35e6ad2f24d65ef8 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 21 Feb 2017 14:43:28 +0300 Subject: [PATCH 126/224] Translations --- Static/PageMaster.js | 7 ++++--- Static/Page_dashboard.js | 14 ++++++++------ Translations.js | 40 +++++++++++++++++++++++++++++++--------- 3 files changed, 43 insertions(+), 18 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 92a381c..e15e43f 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -69,17 +69,18 @@ class PageMaster{ _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); var currentLaguage = context.report.CurrentLanguage; - summarySegments.push(("
"+Translations.dictionary['Selected question'][currentLaguage]+" = "+(selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId()) +"
")); + var curDictionary = Translations.dictionary(currentLaguage); + summarySegments.push(("
"+curDictionary['Selected question']+" = "+(selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId()) +"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); if(startDate){ - summarySegments.push(("
Start date = " + startDate + "
")); + summarySegments.push(("
"+curDictionary['Start date']+" = " + startDate + "
")); } var endDate = !context.state.Parameters.IsNull("TA_DATE_TO") && context.state.Parameters.GetDate("TA_DATE_TO").ToShortDateString(); if(endDate){ - summarySegments.push(("
End date = " + endDate + "
")); + summarySegments.push(("
"+curDictionary['End date']+" = " + endDate + "
")); } var codes = _filterComponents.GetAllAnsweredFilterCodes(); diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 3ee1b58..1b8c856 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -7,6 +7,7 @@ class Page_dashboard{ private static var _filter_panel; private static var _folder; private static var _currentLanguage; + private static var _curDictionary; private static const _defaultParameters = [ { Id: "TA_LEVEL", @@ -72,6 +73,7 @@ class Page_dashboard{ taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); _currentLanguage = context.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); } @@ -231,7 +233,7 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtLevel_Render(context){ - var label = "View by"; + var label = _curDictionary['View by']; context.component.Output.Append(label); } @@ -251,7 +253,7 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtMostPositive_Render(context){ - var label = "Top 5 most positive themes"; + var label = _curDictionary['Top 5 most positive themes']; context.component.Output.Append(label); } @@ -271,7 +273,7 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtMostNegative_Render(context){ - var label = "Top 5 most negative themes"; + var label = _curDictionary["Top 5 most negative themes"]; context.component.Output.Append(label); } @@ -291,7 +293,7 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtComparePeriods_Render(context){ - var label = "Compare"; + var label = _curDictionary["Compare"]; context.component.Output.Append(label); } @@ -311,7 +313,7 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtMostImproved_Render(context){ - var label = "Top 5 most improved themes"; + var label = _curDictionary["Top 5 most improved themes"]; context.component.Output.Append(label); } @@ -351,7 +353,7 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtMostDeclined_Render(context){ - var label = "Top 5 most declined themes"; + var label = _curDictionary["Top 5 most declined themes"]; context.component.Output.Append(label); } diff --git a/Translations.js b/Translations.js index 0fa2fef..30d7418 100644 --- a/Translations.js +++ b/Translations.js @@ -1,13 +1,35 @@ class Translations{ - static var dictionary = { - 'Dashboard': { - '9' : 'Dashboardddd', - '25': 'Главная страница' - - }, - 'Selected question': { - '9' : 'Selected question', - '25': 'Выбранный вопрос' + static function dictionary(language) { + switch(language) { + case '25' : + return { + 'Dashboard': 'Главная страница', + 'Selected question': 'Выбранный вопрос', + 'View by': 'Уровень иерархии', + 'Top 5 most positive themes': '5 лучших тем', + 'Top 5 most negative themes': '5 худших тем', + 'Start date': 'Дата начала', + 'End date': 'Дата окончания', + 'Compare': 'Сравнить', + 'Top 5 most improved themes': '5 тем ставших лучше', + 'Top 5 most declined themes': '5 тем ставших хуже' + }; + break; + case '9' : + default: + return { + 'Dashboard': 'Dashboard', + 'Selected question': 'Selected question', + 'View by': 'View by', + 'Top 5 most positive themes': 'Top 5 most positive themes', + 'Top 5 most negative themes': 'Top 5 most negative themes', + 'Start date': 'Start date', + 'End date': 'End date', + 'Compare': 'Compare', + 'Top 5 most improved themes': 'Top 5 most improved themes', + 'Top 5 most declined themes': 'Top 5 most declined themes' + }; + break } } } From ae7c104bde9fff8e91e44793e2691afad0ab8eff Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 21 Feb 2017 15:17:48 +0300 Subject: [PATCH 127/224] Translations --- Translations.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Translations.js b/Translations.js index 30d7418..8beb75d 100644 --- a/Translations.js +++ b/Translations.js @@ -1,7 +1,7 @@ class Translations{ static function dictionary(language) { switch(language) { - case '25' : + case 25 : return { 'Dashboard': 'Главная страница', 'Selected question': 'Выбранный вопрос', @@ -15,7 +15,7 @@ class Translations{ 'Top 5 most declined themes': '5 тем ставших хуже' }; break; - case '9' : + case 9 : default: return { 'Dashboard': 'Dashboard', @@ -29,7 +29,7 @@ class Translations{ 'Top 5 most improved themes': 'Top 5 most improved themes', 'Top 5 most declined themes': 'Top 5 most declined themes' }; - break + break; } } } From 77037e6626320e9ed37521dd765fa1ae7a1c9e46 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 21 Feb 2017 16:21:01 +0300 Subject: [PATCH 128/224] Translations --- Static/Page_dashboard.js | 64 ++++++++++++++++++++++++++++++++++++++-- Translations.js | 14 +++++++-- 2 files changed, 74 insertions(+), 4 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1b8c856..2f49ec9 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -373,7 +373,7 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtThemeDistribution_Render(context){ - var label = "Theme distribution"; + var label = _curDictionary["Theme distribution"]; context.component.Output.Append(label); } @@ -393,7 +393,67 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtViewSentiment_Render(context){ - var label = "View"; + var label = _curDictionary["View"]; + context.component.Output.Append(label); +} + + /** + * @memberof Page_dashboard + * @function txtViewSentiment_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @returns {Boolean} + */ + static function txtPositive_Hide(context){ + return false; +} + + /** + * @memberof Page_dashboard + * @function txtViewSentiment_Render + * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function txtPositive_Render(context){ + var label = _curDictionary["Positive"]; + context.component.Output.Append(label); +} + + /** + * @memberof Page_dashboard + * @function txtViewSentiment_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @returns {Boolean} + */ + static function txtNeutral_Hide(context){ + return false; +} + + /** + * @memberof Page_dashboard + * @function txtViewSentiment_Render + * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function txtNeutral_Render(context){ + var label = _curDictionary["Neutral"]; + context.component.Output.Append(label); +} + + /** + * @memberof Page_dashboard + * @function txtViewSentiment_Hide + * @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + * @returns {Boolean} + */ + static function txtNegative_Hide(context){ + return false; +} + + /** + * @memberof Page_dashboard + * @function txtViewSentiment_Render + * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function txtNegative_Render(context){ + var label = _curDictionary["Negative"]; context.component.Output.Append(label); } diff --git a/Translations.js b/Translations.js index 8beb75d..0449704 100644 --- a/Translations.js +++ b/Translations.js @@ -12,7 +12,12 @@ class Translations{ 'End date': 'Дата окончания', 'Compare': 'Сравнить', 'Top 5 most improved themes': '5 тем ставших лучше', - 'Top 5 most declined themes': '5 тем ставших хуже' + 'Top 5 most declined themes': '5 тем ставших хуже', + 'Theme distribution': 'Изменение тем', + 'View': 'Показывать', + 'Positive': "Положительные", + 'Neutral': 'Нейтральные', + 'Negative': 'Отрицательные' }; break; case 9 : @@ -27,7 +32,12 @@ class Translations{ 'End date': 'End date', 'Compare': 'Compare', 'Top 5 most improved themes': 'Top 5 most improved themes', - 'Top 5 most declined themes': 'Top 5 most declined themes' + 'Top 5 most declined themes': 'Top 5 most declined themes', + 'Theme distribution': 'Theme distribution', + 'View': 'View', + 'Positive': 'Positive', + 'Neutral': 'Neutral', + 'Negative': 'Negative' }; break; } From bbc36b14377e48ae61e4c25669485ff3958f85a7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 21 Feb 2017 17:32:28 +0300 Subject: [PATCH 129/224] Translations --- Static/Page_dashboard.js | 6 ++++++ Translations.js | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 2f49ec9..1b5306d 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -497,6 +497,12 @@ class Page_dashboard{ context.component.Output.Append(upgradeText); context.component.Output.Append(JSON.print(hierarhy,"hierarchy")); + + var categoriesText = "" + context.component.Output.Append(categoriesText); } /** diff --git a/Translations.js b/Translations.js index 0449704..42bbf46 100644 --- a/Translations.js +++ b/Translations.js @@ -6,8 +6,8 @@ class Translations{ 'Dashboard': 'Главная страница', 'Selected question': 'Выбранный вопрос', 'View by': 'Уровень иерархии', - 'Top 5 most positive themes': '5 лучших тем', - 'Top 5 most negative themes': '5 худших тем', + 'Top 5 most positive themes': '5 хороших тем', + 'Top 5 most negative themes': '5 плохих тем', 'Start date': 'Дата начала', 'End date': 'Дата окончания', 'Compare': 'Сравнить', @@ -17,7 +17,8 @@ class Translations{ 'View': 'Показывать', 'Positive': "Положительные", 'Neutral': 'Нейтральные', - 'Negative': 'Отрицательные' + 'Negative': 'Отрицательные', + 'Categories': 'Категории' }; break; case 9 : @@ -37,7 +38,8 @@ class Translations{ 'View': 'View', 'Positive': 'Positive', 'Neutral': 'Neutral', - 'Negative': 'Negative' + 'Negative': 'Negative', + 'Categories': 'Categories' }; break; } From 4295bff779f4201904944bebfc6e67c6de3ea0fd Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 21 Feb 2017 17:39:42 +0300 Subject: [PATCH 130/224] Translations --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1b5306d..7c1c987 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -499,7 +499,7 @@ class Page_dashboard{ context.component.Output.Append(JSON.print(hierarhy,"hierarchy")); var categoriesText = "" context.component.Output.Append(categoriesText); From 9b9a026ea63874cf838edb152f4360cf52ee02d2 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 21 Feb 2017 17:43:57 +0300 Subject: [PATCH 131/224] Translations --- Static/Page_dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 7c1c987..520d6cc 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -499,8 +499,8 @@ class Page_dashboard{ context.component.Output.Append(JSON.print(hierarhy,"hierarchy")); var categoriesText = "" context.component.Output.Append(categoriesText); } From 8616cb1fc56433e8ef8a658e4d5057d0447a9b48 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 22 Feb 2017 13:02:42 +0300 Subject: [PATCH 132/224] Translations --- Static/Page_dashboard.js | 5 ++--- TATopSentimentTable.js | 4 +++- Translations.js | 6 ++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 520d6cc..6b22ba2 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -490,7 +490,6 @@ class Page_dashboard{ "},"+ "search:{},"+ "fixedHeader:{},"+ - "}"+ ")"+ ""; @@ -500,8 +499,8 @@ class Page_dashboard{ var categoriesText = "" + "z.forEach(item => item.innerHTML = '"+Translations.dictionary(_currentLanguage)['Categories']+"');" + + ""; context.component.Output.Append(categoriesText); } diff --git a/TATopSentimentTable.js b/TATopSentimentTable.js index 2b295bc..a69b893 100644 --- a/TATopSentimentTable.js +++ b/TATopSentimentTable.js @@ -17,6 +17,7 @@ class TATopSentimentTable{ private var _taMasks: TAMasks; private var _table: Table; private var _level; + private var _currentLanguage; private var _topN; private var _sentiment; private var _distribution; @@ -31,6 +32,7 @@ class TATopSentimentTable{ _level = parseInt(level); _topN = topN ? topN : 5; _distribution = distribution ? distribution : "0"; + _currentLanguage = globals.report.CurrentLanguage; _render(); } @@ -74,7 +76,7 @@ class TATopSentimentTable{ Formula: "cellv(col-1,row)", Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative ) }], - "Count"); + Translations.dictionary(_currentLanguage)['Count']); _table.ColumnHeaders.Add(chartHeader); } diff --git a/Translations.js b/Translations.js index 42bbf46..cd054ec 100644 --- a/Translations.js +++ b/Translations.js @@ -18,7 +18,8 @@ class Translations{ 'Positive': "Положительные", 'Neutral': 'Нейтральные', 'Negative': 'Отрицательные', - 'Categories': 'Категории' + 'Categories': 'Категории', + 'Count': 'Количество' }; break; case 9 : @@ -39,7 +40,8 @@ class Translations{ 'Positive': 'Positive', 'Neutral': 'Neutral', 'Negative': 'Negative', - 'Categories': 'Categories' + 'Categories': 'Categories', + 'Count': 'Count' }; break; } From ad3e9f38ce2f217ecfd2b22fcdbdb71123b6371a Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 22 Feb 2017 13:26:05 +0300 Subject: [PATCH 133/224] Translations --- TATopChangedTable.js | 4 +++- Translations.js | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/TATopChangedTable.js b/TATopChangedTable.js index d3a621b..f6eff92 100644 --- a/TATopChangedTable.js +++ b/TATopChangedTable.js @@ -22,6 +22,7 @@ class TATopChangedTable{ private var _sentiment; private var _percents; private var _period; + private var _currentLanguage; function TATopChangedTable(globals, folder, table, sentiment, level, period, topN){ _globals = globals; @@ -37,6 +38,7 @@ class TATopChangedTable{ From: -1, To: 0 }; + _currentLanguage = globals.report.CurrentLanguage; _render(); } @@ -118,7 +120,7 @@ class TATopChangedTable{ Formula: "cellv(col-1,row)", Color: ( _sentiment ? Config.Colors.NegNeuPosPalette.Positive : Config.Colors.NegNeuPosPalette.Negative ) }], - "Change in avg. score"); + Translations.dictionary(_currentLanguage)['Change in avg. score']); _table.ColumnHeaders.Add(chartHeader); } diff --git a/Translations.js b/Translations.js index cd054ec..ffab13c 100644 --- a/Translations.js +++ b/Translations.js @@ -19,7 +19,8 @@ class Translations{ 'Neutral': 'Нейтральные', 'Negative': 'Отрицательные', 'Categories': 'Категории', - 'Count': 'Количество' + 'Count': 'Количество', + 'Change in avg. score': 'Изменение средней оценки' }; break; case 9 : @@ -41,7 +42,8 @@ class Translations{ 'Neutral': 'Neutral', 'Negative': 'Negative', 'Categories': 'Categories', - 'Count': 'Count' + 'Count': 'Count', + 'Change in avg. score': 'Change in avg. score' }; break; } From 7e74cccac3b3683399f903b6e16065fe9ecf57be Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 22 Feb 2017 14:30:08 +0300 Subject: [PATCH 134/224] Translations --- TAParameters.js | 10 +++++++--- Translations.js | 11 +++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/TAParameters.js b/TAParameters.js index c78ed26..7a48169 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -10,11 +10,15 @@ class TAParameters{ private var _globals; private var _library: TALibrary; private var _parameterUtilities: ParameterUtilities; + private var _currentLanguage; + private var _curDictionary; function TAParameters(globals, library){ _globals = globals; _library = library; _parameterUtilities = new ParameterUtilities(_globals); + _currentLanguage = globals.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); } /** @@ -136,15 +140,15 @@ class TAParameters{ var levelValues = [ { Code: "0", - Label: "1st level (category)" + Label: _curDictionary["1st level (category)"] }, { Code: "1", - Label: "2nd level (sub-category)" + Label: _curDictionary["2nd level (sub-category)"] }, { Code: "2", - Label: "3rd level (attributes)" + Label: _curDictionary["3rd level (attributes)"] } ]; var parameterValues = _addEmptyValue(emptyValueLabel); diff --git a/Translations.js b/Translations.js index ffab13c..41c151e 100644 --- a/Translations.js +++ b/Translations.js @@ -20,7 +20,11 @@ class Translations{ 'Negative': 'Отрицательные', 'Categories': 'Категории', 'Count': 'Количество', - 'Change in avg. score': 'Изменение средней оценки' + 'Change in avg. score': 'Изменение средней оценки', + '1st level (category)': '1-й уровень (категории)', + '2nd level (sub-category)': '2-й уровень (подкатегории)', + '3rd level (attributes)': '3-й уровень (аттрибуты)' + }; break; case 9 : @@ -43,7 +47,10 @@ class Translations{ 'Negative': 'Negative', 'Categories': 'Categories', 'Count': 'Count', - 'Change in avg. score': 'Change in avg. score' + 'Change in avg. score': 'Change in avg. score', + '1st level (category)': '1st level (category)', + '2nd level (sub-category)': '2nd level (sub-category)', + '3rd level (attributes)': '3rd level (attributes)' }; break; } From 97b2e8fec3a149f9a9ea2466f5cd8b6ec44928a9 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 22 Feb 2017 18:02:22 +0300 Subject: [PATCH 135/224] Translations --- Static/Parameters.js | 20 ++++++++++++-------- Translations.js | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/Static/Parameters.js b/Static/Parameters.js index 718c21e..54fc01b 100644 --- a/Static/Parameters.js +++ b/Static/Parameters.js @@ -37,11 +37,13 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_COMPARE_PERIODS_Domain(context){ + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); var parameterValues = [ - {Code: "wow", Label: "Current vs Last Week"}, - {Code: "mom", Label: "Current vs Last Month"}, - {Code: "qoq", Label: "Current vs Last Quarter"}, - {Code: "yoy", Label: "Current vs Last Year"} + {Code: "wow", Label: currentDictionary["Current vs Last Week"]}, + {Code: "mom", Label: currentDictionary["Current vs Last Month"]}, + {Code: "qoq", Label: currentDictionary["Current vs Last Quarter"]}, + {Code: "yoy", Label: currentDictionary["Current vs Last Year"]} ]; new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues); } @@ -110,11 +112,13 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_VIEW_SENTIMENT_Domain(context){ + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); var parameterValues = [ - {Code: "emptyv", Label: "All sentiments"}, - {Code: "pos", Label: "Positive"}, - {Code: "neu", Label: "Neutral"}, - {Code: "neg", Label: "Negative"} + {Code: "emptyv", Label: currentDictionary["All sentiments"]}, + {Code: "pos", Label: currentDictionary["Positive"]}, + {Code: "neu", Label: currentDictionary["Neutral"]}, + {Code: "neg", Label: currentDictionary["Negative"]} ] new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues); } diff --git a/Translations.js b/Translations.js index 41c151e..50db78d 100644 --- a/Translations.js +++ b/Translations.js @@ -23,7 +23,12 @@ class Translations{ 'Change in avg. score': 'Изменение средней оценки', '1st level (category)': '1-й уровень (категории)', '2nd level (sub-category)': '2-й уровень (подкатегории)', - '3rd level (attributes)': '3-й уровень (аттрибуты)' + '3rd level (attributes)': '3-й уровень (аттрибуты)', + 'Current vs Last Week': 'Текущая и предыдущая недели', + 'Current vs Last Month': 'Текущий и предыдущий месяц', + 'Current vs Last Quarter': 'Текущий и предыдущий квартал', + 'Current vs Last Year': 'Текущий и предыдущий год', + 'All sentiments': 'Все комментарии' }; break; @@ -50,7 +55,12 @@ class Translations{ 'Change in avg. score': 'Change in avg. score', '1st level (category)': '1st level (category)', '2nd level (sub-category)': '2nd level (sub-category)', - '3rd level (attributes)': '3rd level (attributes)' + '3rd level (attributes)': '3rd level (attributes)', + 'Current vs Last Week': 'Current vs Last Week', + 'Current vs Last Month': 'Current vs Last Month', + 'Current vs Last Quarter': 'Current vs Last Quarter', + 'Current vs Last Year': 'Current vs Last Year', + 'All sentiments': 'All sentiments' }; break; } From 95c889646b54d15a25e020c03147d0d37971809a Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 28 Feb 2017 14:10:57 +0300 Subject: [PATCH 136/224] Translations --- Languages.js | 6 ++++++ Static/FilterPanel.js | 16 +++++++++++++++- Static/Page_dashboard.js | 30 +++++++++++++++++++++++++++++- Static/Parameters.js | 9 +++++++++ Translations.js | 6 ++++-- 5 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 Languages.js diff --git a/Languages.js b/Languages.js new file mode 100644 index 0000000..013dc66 --- /dev/null +++ b/Languages.js @@ -0,0 +1,6 @@ +class Languages{ + static var List = { + 9: 'English', + 25: 'Russian' + } +} \ No newline at end of file diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index c831318..db6cf72 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -3,9 +3,11 @@ */ class FilterPanel{ private var _filterComponents; + private var _current_dictionary; - function FilterPanel(filterComponents){ + function FilterPanel(filterComponents, currentDictionary){ _filterComponents = filterComponents; + _current_dictionary = currentDictionary; } /** @@ -102,4 +104,16 @@ class FilterPanel{ var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1); return !filterQuestion } + + function txtLanguage_Render(context){ + var LanguageTitle = _current_dictionary['Language']; +} + + function txtLanguage_Hide(context){ + return !context.report.Languages.length > 1 +} + + function lstLanguage_Hide(context){ + return !context.report.Languages.length > 1 +} } \ No newline at end of file diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 6b22ba2..4785f85 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -63,7 +63,9 @@ class Page_dashboard{ var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); _folder = Config.GetTALibrary().GetFolderById(selectedFolder); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); - _filter_panel = new FilterPanel(_filterComponents); + _currentLanguage = context.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); + _filter_panel = new FilterPanel(_filterComponents,_curDictionary); if(context.component.SubmitSource == "ClearFilters"){ _filterComponents.ClearFilters(); context.state.Parameters["TA_DATE_FROM"] = null; @@ -547,4 +549,30 @@ class Page_dashboard{ static function lstFilterList_Hide(context, filterNumber){ return _filter_panel.lstFilterList_Hide(context, filterNumber); } + +/** +* @memberof Page_filters +* @function lstFilterList_Hide +* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} +* @param {Number} filterNumber +* @returns {Boolean} +*/ +static function lstLanguage_Hide(context){ + return _filter_panel.lstLanguage_Hide(context); +} + +/** +* @memberof Page_filters +* @function lstFilterList_Hide +* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} +* @param {Number} filterNumber +* @returns {Boolean} +*/ +static function ltxtLanguage_Hide(context){ + return _filter_panel.txtLanguage_Hide(context); +} + + static function ltxtLanguage_Render(context){ + return _filter_panel.txtLanguage_Render(context); +} } diff --git a/Static/Parameters.js b/Static/Parameters.js index 54fc01b..9e2edfe 100644 --- a/Static/Parameters.js +++ b/Static/Parameters.js @@ -13,6 +13,15 @@ class Parameters{ } finally {}*/ } + static function LANGUAGES_Domain(context){ + var selectedLanguages = context.report.Languages; + var parameterValues =[] + for(var i = 0 ; i < selectedLanguages.length; i++){ + parameterValues.push({Code: selectedLanguages[i], Label: Languages.List[selectedLanguages[i]]}); + } + new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues); + } + /** * @memberof Parameters * @function TA_FOLDERS_Domain diff --git a/Translations.js b/Translations.js index 50db78d..ee872a7 100644 --- a/Translations.js +++ b/Translations.js @@ -28,7 +28,8 @@ class Translations{ 'Current vs Last Month': 'Текущий и предыдущий месяц', 'Current vs Last Quarter': 'Текущий и предыдущий квартал', 'Current vs Last Year': 'Текущий и предыдущий год', - 'All sentiments': 'Все комментарии' + 'All sentiments': 'Все комментарии', + 'Language': 'Язык' }; break; @@ -60,7 +61,8 @@ class Translations{ 'Current vs Last Month': 'Current vs Last Month', 'Current vs Last Quarter': 'Current vs Last Quarter', 'Current vs Last Year': 'Current vs Last Year', - 'All sentiments': 'All sentiments' + 'All sentiments': 'All sentiments', + 'Language': 'Language' }; break; } From 8df7ab589db9dd64fedcdfae3082f49f0426c318 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 28 Feb 2017 14:14:42 +0300 Subject: [PATCH 137/224] Translations --- Languages.js | 4 +++- Static/FilterPanel.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Languages.js b/Languages.js index 013dc66..66608ce 100644 --- a/Languages.js +++ b/Languages.js @@ -1,6 +1,8 @@ class Languages{ static var List = { 9: 'English', - 25: 'Russian' + 25: 'Russian', + 28: 'Albanian', + 6153: 'English(Ireland)' } } \ No newline at end of file diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index db6cf72..d8f2deb 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -107,6 +107,7 @@ class FilterPanel{ function txtLanguage_Render(context){ var LanguageTitle = _current_dictionary['Language']; + context.component.Output.Append(LanguageTitle); } function txtLanguage_Hide(context){ From 54f4b339a333ddeb44c3884e6bc77ae546816fe9 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 28 Feb 2017 15:51:48 +0300 Subject: [PATCH 138/224] Translations --- Static/Page_dashboard.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 4785f85..d967bf8 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -47,6 +47,8 @@ class Page_dashboard{ * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function Render(context){ + _currentLanguage = context.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); Config.SetTALibrary(TAHelper.GetGlobals(context)); if(context.component.SubmitSource == "lstQuestions") { context.state.Parameters["TA_ALL_CATEGORIES"] = null; @@ -56,15 +58,20 @@ class Page_dashboard{ context.state.Parameters["TA_TOP_CATEGORIES_SINGLE"] = null; context.state.Parameters["TA_VIEW_BY"] = null; } + + if(context.component.SubmitSource == "lstLanguage"){ + context.report.CurrentLanguage = parseInt(context.state.Parameters.GetString('LANGUAGE')); + } TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard"); var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context)); + _defaultParameters.push({Id: 'LANGUAGE', Value: _currentLanguage.ToString()}); + paramUtils.SetDefaultParameterValues(_defaultParameters); var taParams = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary()); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); _folder = Config.GetTALibrary().GetFolderById(selectedFolder); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); - _currentLanguage = context.report.CurrentLanguage; - _curDictionary = Translations.dictionary(_currentLanguage); + _filter_panel = new FilterPanel(_filterComponents,_curDictionary); if(context.component.SubmitSource == "ClearFilters"){ _filterComponents.ClearFilters(); From 5bb559cfc1fd97d2adc1a4ff299153020726a966 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 28 Feb 2017 16:00:23 +0300 Subject: [PATCH 139/224] Translations --- Static/Parameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Parameters.js b/Static/Parameters.js index 9e2edfe..1c5bac3 100644 --- a/Static/Parameters.js +++ b/Static/Parameters.js @@ -13,7 +13,7 @@ class Parameters{ } finally {}*/ } - static function LANGUAGES_Domain(context){ + static function LANGUAGE_Domain(context){ var selectedLanguages = context.report.Languages; var parameterValues =[] for(var i = 0 ; i < selectedLanguages.length; i++){ From 965ae51164ca7968aada2d0ac0fd61d4a3a73bee Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 28 Feb 2017 16:00:57 +0300 Subject: [PATCH 140/224] Translations --- Static/Page_dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index d967bf8..c4fae5b 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -575,11 +575,11 @@ static function lstLanguage_Hide(context){ * @param {Number} filterNumber * @returns {Boolean} */ -static function ltxtLanguage_Hide(context){ +static function txtLanguage_Hide(context){ return _filter_panel.txtLanguage_Hide(context); } - static function ltxtLanguage_Render(context){ + static function txtLanguage_Render(context){ return _filter_panel.txtLanguage_Render(context); } } From 25f7622847bf8a2bc7b94c2ca01023b30523a250 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 28 Feb 2017 16:20:53 +0300 Subject: [PATCH 141/224] Translations --- Static/Page_comments.js | 1 + Static/Page_dashboard.js | 4 +--- Static/PermissionScript.js | 8 ++++++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 Static/PermissionScript.js diff --git a/Static/Page_comments.js b/Static/Page_comments.js index b4322d7..6768bf1 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -71,6 +71,7 @@ class Page_comments{ TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "comments"); var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context)); + paramUtils.SetDefaultParameterValues(_defaultParameters); var taParams = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary()); diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index c4fae5b..1cd9b06 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -59,9 +59,7 @@ class Page_dashboard{ context.state.Parameters["TA_VIEW_BY"] = null; } - if(context.component.SubmitSource == "lstLanguage"){ - context.report.CurrentLanguage = parseInt(context.state.Parameters.GetString('LANGUAGE')); - } + TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard"); var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context)); _defaultParameters.push({Id: 'LANGUAGE', Value: _currentLanguage.ToString()}); diff --git a/Static/PermissionScript.js b/Static/PermissionScript.js new file mode 100644 index 0000000..468e6a4 --- /dev/null +++ b/Static/PermissionScript.js @@ -0,0 +1,8 @@ +class PermissionScript{ + static function Render(context){ + if (!context.state.Parameters.GetString('LANGUAGE')) + context.report.CurrentLanguage = 9; + else if(context.state.Parameters.GetString('LANGUAGE') != parseInt(context.report.CurrentLanguage)) + context.report.CurrentLanguage = parseInt(context.state.Parameters.GetString('LANGUAGE')); +} +} From 877b9fd804abd343dee805e5af989ceff23493e9 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 28 Feb 2017 16:29:26 +0300 Subject: [PATCH 142/224] Translations --- Static/PermissionScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/PermissionScript.js b/Static/PermissionScript.js index 468e6a4..04e416d 100644 --- a/Static/PermissionScript.js +++ b/Static/PermissionScript.js @@ -2,7 +2,7 @@ class PermissionScript{ static function Render(context){ if (!context.state.Parameters.GetString('LANGUAGE')) context.report.CurrentLanguage = 9; - else if(context.state.Parameters.GetString('LANGUAGE') != parseInt(context.report.CurrentLanguage)) + else if(parseInt(context.state.Parameters.GetString('LANGUAGE')) != context.report.CurrentLanguage) context.report.CurrentLanguage = parseInt(context.state.Parameters.GetString('LANGUAGE')); } } From af4e520d5e124e0b30deecdd76211c8a0ac5a2b2 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 1 Mar 2017 13:12:57 +0300 Subject: [PATCH 143/224] Translations --- Languages.js | 8 -------- Static/FilterPanel.js | 11 ----------- Static/Page_dashboard.js | 31 ++----------------------------- Static/Parameters.js | 8 -------- Static/PermissionScript.js | 8 -------- 5 files changed, 2 insertions(+), 64 deletions(-) delete mode 100644 Languages.js delete mode 100644 Static/PermissionScript.js diff --git a/Languages.js b/Languages.js deleted file mode 100644 index 66608ce..0000000 --- a/Languages.js +++ /dev/null @@ -1,8 +0,0 @@ -class Languages{ - static var List = { - 9: 'English', - 25: 'Russian', - 28: 'Albanian', - 6153: 'English(Ireland)' - } -} \ No newline at end of file diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index d8f2deb..b5e4f1c 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -105,16 +105,5 @@ class FilterPanel{ return !filterQuestion } - function txtLanguage_Render(context){ - var LanguageTitle = _current_dictionary['Language']; - context.component.Output.Append(LanguageTitle); -} - - function txtLanguage_Hide(context){ - return !context.report.Languages.length > 1 -} - function lstLanguage_Hide(context){ - return !context.report.Languages.length > 1 -} } \ No newline at end of file diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1cd9b06..4609777 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -62,7 +62,7 @@ class Page_dashboard{ TAHelper.SetLastVisitedPage(TAHelper.GetGlobals(context), "dashboard"); var paramUtils = new ParameterUtilities(TAHelper.GetGlobals(context)); - _defaultParameters.push({Id: 'LANGUAGE', Value: _currentLanguage.ToString()}); + paramUtils.SetDefaultParameterValues(_defaultParameters); var taParams = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary()); @@ -79,9 +79,6 @@ class Page_dashboard{ taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); taParams.ClearSubcategoriesParameters(selectedFolder, "emptyv", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE"); - _currentLanguage = context.report.CurrentLanguage; - _curDictionary = Translations.dictionary(_currentLanguage); - } /** @@ -555,29 +552,5 @@ class Page_dashboard{ return _filter_panel.lstFilterList_Hide(context, filterNumber); } -/** -* @memberof Page_filters -* @function lstFilterList_Hide -* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} -* @param {Number} filterNumber -* @returns {Boolean} -*/ -static function lstLanguage_Hide(context){ - return _filter_panel.lstLanguage_Hide(context); -} - -/** -* @memberof Page_filters -* @function lstFilterList_Hide -* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} -* @param {Number} filterNumber -* @returns {Boolean} -*/ -static function txtLanguage_Hide(context){ - return _filter_panel.txtLanguage_Hide(context); -} - - static function txtLanguage_Render(context){ - return _filter_panel.txtLanguage_Render(context); -} +/ } diff --git a/Static/Parameters.js b/Static/Parameters.js index 1c5bac3..23c6e51 100644 --- a/Static/Parameters.js +++ b/Static/Parameters.js @@ -13,14 +13,6 @@ class Parameters{ } finally {}*/ } - static function LANGUAGE_Domain(context){ - var selectedLanguages = context.report.Languages; - var parameterValues =[] - for(var i = 0 ; i < selectedLanguages.length; i++){ - parameterValues.push({Code: selectedLanguages[i], Label: Languages.List[selectedLanguages[i]]}); - } - new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues); - } /** * @memberof Parameters diff --git a/Static/PermissionScript.js b/Static/PermissionScript.js deleted file mode 100644 index 04e416d..0000000 --- a/Static/PermissionScript.js +++ /dev/null @@ -1,8 +0,0 @@ -class PermissionScript{ - static function Render(context){ - if (!context.state.Parameters.GetString('LANGUAGE')) - context.report.CurrentLanguage = 9; - else if(parseInt(context.state.Parameters.GetString('LANGUAGE')) != context.report.CurrentLanguage) - context.report.CurrentLanguage = parseInt(context.state.Parameters.GetString('LANGUAGE')); -} -} From d611bcc4c1dcb3665cd787b13a1829769d8cf2c9 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 1 Mar 2017 13:29:42 +0300 Subject: [PATCH 144/224] Translations --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 4609777..7fac3ca 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -552,5 +552,5 @@ class Page_dashboard{ return _filter_panel.lstFilterList_Hide(context, filterNumber); } -/ + } From 77ff6a6dcc88abc3af4c4f869b9198732481861c Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 1 Mar 2017 17:12:00 +0300 Subject: [PATCH 145/224] Translations --- Static/FilterPanel.js | 4 ++-- Static/PageMaster.js | 8 ++++---- Translations.js | 16 ++++++++++++++-- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index b5e4f1c..427d944 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -46,7 +46,7 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ - context.component.Label = new Label(9,"Save"); + context.component.Label = new Label(context.report.CurrentLanguage,_current_dictionary["Save"]); } /** @@ -65,7 +65,7 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnClearFilters_Render(context){ - context.component.Label = new Label(9,"Clear Filters"); + context.component.Label = new Label(context.report.CurrentLanguage,_current_dictionary["Clear filters"]); context.component.TargetPage = "filters"; } diff --git a/Static/PageMaster.js b/Static/PageMaster.js index e15e43f..4e2d71c 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -125,7 +125,7 @@ class PageMaster{ } static function txtQuestion_Render(context){ - var label = 'Question'; + var label = Translations.dictionary(context.report.CurrentLanguage)['Question']; context.component.Output.Append(label); } @@ -135,7 +135,7 @@ class PageMaster{ } static function txtDateFrom_Render(context){ - var label = 'From'; + var label = Translations.dictionary(context.report.CurrentLanguage)['From']; context.component.Output.Append(label); } @@ -145,7 +145,7 @@ class PageMaster{ } static function txtDateTo_Render(context){ - var label = 'To'; + var label = Translations.dictionary(context.report.CurrentLanguage)['To']; context.component.Output.Append(label); } @@ -166,7 +166,7 @@ class PageMaster{ } static function txtHierarchyLabel_Render(context) { - var label = "Hierarchy"; + var label = Translations.dictionary(context.report.CurrentLanguage)["Hierarchy"]; context.component.Output.Append(label); } diff --git a/Translations.js b/Translations.js index ee872a7..1f8178d 100644 --- a/Translations.js +++ b/Translations.js @@ -29,7 +29,13 @@ class Translations{ 'Current vs Last Quarter': 'Текущий и предыдущий квартал', 'Current vs Last Year': 'Текущий и предыдущий год', 'All sentiments': 'Все комментарии', - 'Language': 'Язык' + 'Language': 'Язык', + 'Save': 'Сохранить', + 'Clear filters': 'Очистить фильтры', + 'Question': 'Вопрос', + 'From': 'С', + 'To': 'По', + 'Hierarchy': 'Иерархия' }; break; @@ -62,7 +68,13 @@ class Translations{ 'Current vs Last Quarter': 'Current vs Last Quarter', 'Current vs Last Year': 'Current vs Last Year', 'All sentiments': 'All sentiments', - 'Language': 'Language' + 'Language': 'Language', + 'Save': 'Save', + 'Clear filters': 'Clear filters', + 'Question': 'Question', + 'From': 'From', + 'To': 'To', + 'Hierarchy': 'Hierarchy' }; break; } From 091bf2ae0df2b273a29098a55b0ef5c3865e9e29 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 1 Mar 2017 17:37:11 +0300 Subject: [PATCH 146/224] Translations --- Static/FilterPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 427d944..2594077 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -45,7 +45,7 @@ class FilterPanel{ * @function btnSave_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - static function btnSave_Render(context){ + function btnSave_Render(context){ context.component.Label = new Label(context.report.CurrentLanguage,_current_dictionary["Save"]); } @@ -64,7 +64,7 @@ class FilterPanel{ * @function btnClearFilters_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - static function btnClearFilters_Render(context){ + function btnClearFilters_Render(context){ context.component.Label = new Label(context.report.CurrentLanguage,_current_dictionary["Clear filters"]); context.component.TargetPage = "filters"; } From 2ac32460cad77990935d80c49924fa77e3afbff2 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 1 Mar 2017 17:48:08 +0300 Subject: [PATCH 147/224] Translations --- Static/FilterPanel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 2594077..9421a29 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -45,8 +45,8 @@ class FilterPanel{ * @function btnSave_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - function btnSave_Render(context){ - context.component.Label = new Label(context.report.CurrentLanguage,_current_dictionary["Save"]); + static function btnSave_Render(context){ + context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionarycontext.report.CurrentLanguage)["Save"]); } /** @@ -64,8 +64,8 @@ class FilterPanel{ * @function btnClearFilters_Render * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ - function btnClearFilters_Render(context){ - context.component.Label = new Label(context.report.CurrentLanguage,_current_dictionary["Clear filters"]); + static function btnClearFilters_Render(context){ + context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionarycontext.report.CurrentLanguage)["Clear filters"]); context.component.TargetPage = "filters"; } From 7b9fa133426398ef11f362422d3f8e75f5c16fcc Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 1 Mar 2017 17:49:58 +0300 Subject: [PATCH 148/224] Translations --- Static/FilterPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 9421a29..5ff290e 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -46,7 +46,7 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSave_Render(context){ - context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionarycontext.report.CurrentLanguage)["Save"]); + context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionary(context.report.CurrentLanguage)["Save"]); } /** From 986fea8ed9954e25daa956edb1f97ba3ff83aa3b Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 1 Mar 2017 17:51:08 +0300 Subject: [PATCH 149/224] Translations --- Static/FilterPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 5ff290e..069164d 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -65,7 +65,7 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnClearFilters_Render(context){ - context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionarycontext.report.CurrentLanguage)["Clear filters"]); + context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionary(context.report.CurrentLanguage)["Clear filters"]); context.component.TargetPage = "filters"; } From 5822ee7d43651ac2348489c3674e87291c0e0fc0 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 2 Mar 2017 12:00:07 +0300 Subject: [PATCH 150/224] Translations --- Static/PageMaster.js | 7 +++++++ Translations.js | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 4e2d71c..469f9d9 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -169,5 +169,12 @@ class PageMaster{ var label = Translations.dictionary(context.report.CurrentLanguage)["Hierarchy"]; context.component.Output.Append(label); } + static function txtPageTitle_Hide(context){ + return false +} + static function txtPageTitle_Render(context){ + var label = Translations.dictionary(context.report.CurrentLanguage)["What people are talking about"]; + context.component.Output.Append(label); +} } \ No newline at end of file diff --git a/Translations.js b/Translations.js index 1f8178d..d79b85a 100644 --- a/Translations.js +++ b/Translations.js @@ -35,7 +35,8 @@ class Translations{ 'Question': 'Вопрос', 'From': 'С', 'To': 'По', - 'Hierarchy': 'Иерархия' + 'Hierarchy': 'Иерархия', + 'What people are talking about': 'О чем говоят люди' }; break; @@ -74,7 +75,8 @@ class Translations{ 'Question': 'Question', 'From': 'From', 'To': 'To', - 'Hierarchy': 'Hierarchy' + 'Hierarchy': 'Hierarchy', + 'What people are talking about': 'What people are talking about' }; break; } From ad995d4fe672249b13965d51e8791f814d3e1f9b Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 3 Mar 2017 11:39:28 +0300 Subject: [PATCH 151/224] Hitlist with categorization --- Static/Page_comments.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index 6768bf1..df9f22b 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -142,7 +142,7 @@ class Page_comments{ htlComments.AddTAColumn("verbatim"); htlComments.AddColumn(_folder.GetTimeVariableId(), true); htlComments.AddTAColumn("overallsentiment"); - //htlComments.AddTAColumn("categories"); + htlComments.AddTAColumn("categories"); htlComments.AddConfiguredColumns(); } @@ -196,11 +196,11 @@ class Page_comments{ title: "Date" }]; - /* + hitlistHeaders["categories"] = { name: _folder.GetQuestionId("categories") }; - */ + hitlistHeaders["sentiment"].push( { name: _folder.GetQuestionId("overallSentiment"), From 271f391d68a5d72650f8f9eed0609e68352aff38 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Fri, 3 Mar 2017 11:54:27 +0300 Subject: [PATCH 152/224] Hitlist with categorization --- Static/Page_comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index df9f22b..4151f0f 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -197,9 +197,9 @@ class Page_comments{ }]; - hitlistHeaders["categories"] = { + hitlistHeaders["categories"] = [{ name: _folder.GetQuestionId("categories") - }; + }]; hitlistHeaders["sentiment"].push( { From 23c4a44e6e2776228f33f8f3a09268d5800e7abe Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 9 Mar 2017 12:30:06 +0300 Subject: [PATCH 153/224] multiple drilldown --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 7fac3ca..0d24f49 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -95,7 +95,7 @@ class Page_dashboard{ var table = context.component; var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level); topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); - topSentimentTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis"); + topSentimentTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis, comments"); topSentimentTable.GetTATableUtils().ClearTableDistributions(); } From 58612269e9283b4cc8c9bd5a3edad794546b41c7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 9 Mar 2017 12:34:11 +0300 Subject: [PATCH 154/224] Multiple drilldown --- Static/Page_dashboard.js | 4 ++-- Static/Page_detailed_analysis.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 0d24f49..1bf2381 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -115,7 +115,7 @@ class Page_dashboard{ var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period); topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); topChangedTable.GetTATableUtils().ClearTableDistributions(); - topChangedTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","comments"); + topChangedTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis, comments"); } /** @@ -216,7 +216,7 @@ class Page_dashboard{ var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment,Config); themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "striped-columns", "reportal-hierarchy-table"]); - themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "detailed_analysis"); + themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "detailed_analysis, comments"); themeDistributionTable.GetTATableUtils().ClearTableDistributions(); themeDistributionTable.GetTATableUtils().SetupDataSupressing(1); } diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 81f62dc..21a481d 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -213,7 +213,7 @@ class Page_detailed_analysis{ var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, _selectedCategory, selectedQuestion, distribution, ( selectedQuestionType == QuestionType.Multi)); detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]); detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0)); - detailedAnalysisTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","comments"); + detailedAnalysisTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "comments"); } /** From 3bd1e007c1feeb1c59cf1a380314f14fe729d429 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 15:17:59 +0300 Subject: [PATCH 155/224] translations --- TAFolder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/TAFolder.js b/TAFolder.js index a497b98..bcbfefd 100644 --- a/TAFolder.js +++ b/TAFolder.js @@ -42,6 +42,7 @@ class TAFolder{ schemaId: config.TAQuestions[questionIndex].DatabaseSchemaId, tableName: config.TAQuestions[questionIndex].DatabaseTableName, relationshipColumnName: config.TAQuestions[questionIndex].RelationshipColumnName, + textColumnName: "__l"+globals.report.CurrentLanguage, textSeparator: config.TAQuestions[questionIndex].TextSeparator != "" ? config.TAQuestions[questionIndex].TextSeparator: null }); } From d7cb44fd86201cb19eae36167564559f00758fc1 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 15:24:27 +0300 Subject: [PATCH 156/224] translations --- Hierarchy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Hierarchy.js b/Hierarchy.js index 7b7e91c..db3d6a6 100644 --- a/Hierarchy.js +++ b/Hierarchy.js @@ -93,6 +93,7 @@ class Hierarchy{ * @returns {Object} */ private function _createFlatEntry(row) { + _globals.log(row); var name = TAHelper.GetSelfName(row[_settings.textColumnName], _settings.textSeparator, _globals.log); var flatEntry = { id: row[_settings.idColumnName].toLowerCase(), From 43e72c2896ffe900324893e035d86836caad30d8 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 15:30:45 +0300 Subject: [PATCH 157/224] translations --- Hierarchy.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Hierarchy.js b/Hierarchy.js index db3d6a6..d439d01 100644 --- a/Hierarchy.js +++ b/Hierarchy.js @@ -25,10 +25,15 @@ class Hierarchy{ function Hierarchy(globals, settings) { _globals = globals; - _settings = _mergeOptions(_defaultSettings, settings); + globals.log.LogDebug(_settings.schemaId); var dataTable = _getDataTable(); + if(!dataTable.Columns.Contains(settings.textColumnName)) + settings.textColumnName = "__l9" + + _settings = _mergeOptions(_defaultSettings, settings); _generateFlatList(dataTable.Rows) + _setupHierarchy(0, null); } @@ -93,7 +98,6 @@ class Hierarchy{ * @returns {Object} */ private function _createFlatEntry(row) { - _globals.log(row); var name = TAHelper.GetSelfName(row[_settings.textColumnName], _settings.textSeparator, _globals.log); var flatEntry = { id: row[_settings.idColumnName].toLowerCase(), From 90bb3b890535fb0a1fbdc56cf9b48dc59bf64eb6 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 15:36:19 +0300 Subject: [PATCH 158/224] translations --- Hierarchy.js | 6 ++++-- TAFolder.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Hierarchy.js b/Hierarchy.js index d439d01..2c5cac4 100644 --- a/Hierarchy.js +++ b/Hierarchy.js @@ -28,12 +28,14 @@ class Hierarchy{ globals.log.LogDebug(_settings.schemaId); var dataTable = _getDataTable(); + globals.log.LogDebug("gdt"); if(!dataTable.Columns.Contains(settings.textColumnName)) settings.textColumnName = "__l9" - + globals.log.LogDebug("set cur l"); _settings = _mergeOptions(_defaultSettings, settings); + globals.log.LogDebug("merge options"); _generateFlatList(dataTable.Rows) - + globals.log.LogDebug("gfl"); _setupHierarchy(0, null); } diff --git a/TAFolder.js b/TAFolder.js index bcbfefd..ea52ad5 100644 --- a/TAFolder.js +++ b/TAFolder.js @@ -37,7 +37,7 @@ class TAFolder{ var hitlistColumns = TAHelper.GetTagsFromSurvey(globals, _datasourceId, ["ta_hitlist"]); _hitlistColumns = TAHelper.GetConfiguredVariables(globals, config.TAQuestions[questionIndex].HitlistColumns, config.HitlistColumns, hitlistColumns, []); - + globals.log.LogDebug('before hierarchy'); _hierarchy = new Hierarchy(globals, { schemaId: config.TAQuestions[questionIndex].DatabaseSchemaId, tableName: config.TAQuestions[questionIndex].DatabaseTableName, From b99e5976a375e21f616a143dd97bd26a0d1bd970 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 15:40:21 +0300 Subject: [PATCH 159/224] translations --- Hierarchy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Hierarchy.js b/Hierarchy.js index 2c5cac4..ba14b1d 100644 --- a/Hierarchy.js +++ b/Hierarchy.js @@ -24,6 +24,7 @@ class Hierarchy{ }; function Hierarchy(globals, settings) { + globals.log.LogDebug("hier"); _globals = globals; globals.log.LogDebug(_settings.schemaId); From a7500d07fd8396f0057156e304085b49a48c8e74 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 15:45:41 +0300 Subject: [PATCH 160/224] translations --- Hierarchy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Hierarchy.js b/Hierarchy.js index ba14b1d..f6b85fd 100644 --- a/Hierarchy.js +++ b/Hierarchy.js @@ -26,14 +26,14 @@ class Hierarchy{ function Hierarchy(globals, settings) { globals.log.LogDebug("hier"); _globals = globals; - + _settings = _mergeOptions(_defaultSettings, settings); globals.log.LogDebug(_settings.schemaId); var dataTable = _getDataTable(); globals.log.LogDebug("gdt"); - if(!dataTable.Columns.Contains(settings.textColumnName)) - settings.textColumnName = "__l9" + if(!dataTable.Columns.Contains(_settings.textColumnName)) + _settings.textColumnName = "__l9" globals.log.LogDebug("set cur l"); - _settings = _mergeOptions(_defaultSettings, settings); + globals.log.LogDebug("merge options"); _generateFlatList(dataTable.Rows) globals.log.LogDebug("gfl"); From 8a49f06fe15cca169aaed46113809437dd0a69e3 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 17:01:38 +0300 Subject: [PATCH 161/224] translations --- Static/Page_detailed_analysis.js | 13 +++++--- Translations.js | 57 +++++++++++++++++--------------- 2 files changed, 40 insertions(+), 30 deletions(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 21a481d..872f238 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -7,6 +7,8 @@ class Page_detailed_analysis{ private static var _filter_panel; private static var _folder; private static var _selectedCategory; + private static var _currentLanguage; + private static var _curDictionary; private static const _defaultParameters = [ { Id: "TA_ALL_CATEGORIES", @@ -54,7 +56,9 @@ class Page_detailed_analysis{ */ static function Render(context){ Config.SetTALibrary(TAHelper.GetGlobals(context)); - _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); + _currentLanguage = context.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); + _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); if(context.component.SubmitSource == "ClearFilters"){ _filterComponents.ClearFilters(); context.state.Parameters["TA_DATE_FROM"] = null; @@ -304,7 +308,8 @@ class Page_detailed_analysis{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtCategory_Render(context){ - context.component.Output.Append("Category"); + var label = _curDictionary['Category']; + context.component.Output.Append(label); } static function txtFilterTitle_Hide(context, filterNumber){ @@ -376,7 +381,7 @@ class Page_detailed_analysis{ * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtSubCategory_Render(context){ - var label = "Sub category"; + var label = _curDictionary['Sub category']; context.component.Output.Append(label); } @@ -399,7 +404,7 @@ class Page_detailed_analysis{ * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtAttribute_Render(context){ - var label = "Attribute"; + var label = _curDictionary['Attribute']; context.component.Output.Append(label); } } diff --git a/Translations.js b/Translations.js index d79b85a..a917650 100644 --- a/Translations.js +++ b/Translations.js @@ -3,41 +3,43 @@ class Translations{ switch(language) { case 25 : return { - 'Dashboard': 'Главная страница', - 'Selected question': 'Выбранный вопрос', - 'View by': 'Уровень иерархии', - 'Top 5 most positive themes': '5 хороших тем', - 'Top 5 most negative themes': '5 плохих тем', - 'Start date': 'Дата начала', - 'End date': 'Дата окончания', - 'Compare': 'Сравнить', - 'Top 5 most improved themes': '5 тем ставших лучше', - 'Top 5 most declined themes': '5 тем ставших хуже', - 'Theme distribution': 'Изменение тем', - 'View': 'Показывать', - 'Positive': "Положительные", - 'Neutral': 'Нейтральные', - 'Negative': 'Отрицательные', - 'Categories': 'Категории', - 'Count': 'Количество', - 'Change in avg. score': 'Изменение средней оценки', '1st level (category)': '1-й уровень (категории)', '2nd level (sub-category)': '2-й уровень (подкатегории)', '3rd level (attributes)': '3-й уровень (аттрибуты)', - 'Current vs Last Week': 'Текущая и предыдущая недели', + 'All sentiments': 'Все комментарии', + 'Attribute': 'Аттрибут', + 'Categories': 'Категории', + 'Category': 'Категория', + 'Change in avg. score': 'Изменение средней оценки', + 'Clear filters': 'Очистить фильтры', + 'Compare': 'Сравнить', + 'Count': 'Количество', 'Current vs Last Month': 'Текущий и предыдущий месяц', 'Current vs Last Quarter': 'Текущий и предыдущий квартал', + 'Current vs Last Week': 'Текущая и предыдущая недели', 'Current vs Last Year': 'Текущий и предыдущий год', - 'All sentiments': 'Все комментарии', + 'Dashboard': 'Главная страница', + 'End date': 'Дата окончания', + 'From': 'С', + 'Hierarchy': 'Иерархия', 'Language': 'Язык', - 'Save': 'Сохранить', - 'Clear filters': 'Очистить фильтры', + 'Negative': 'Отрицательные', + 'Neutral': 'Нейтральные', + 'Positive': "Положительные", 'Question': 'Вопрос', - 'From': 'С', + 'Save': 'Сохранить', + 'Selected question': 'Выбранный вопрос', + 'Start date': 'Дата начала', + 'Sub category': 'Подкатегория', + 'Theme distribution': 'Изменение тем', 'To': 'По', - 'Hierarchy': 'Иерархия', + 'Top 5 most declined themes': '5 тем ставших хуже', + 'Top 5 most improved themes': '5 тем ставших лучше', + 'Top 5 most negative themes': '5 плохих тем', + 'Top 5 most positive themes': '5 хороших тем', + 'View': 'Показывать', + 'View by': 'Уровень иерархии', 'What people are talking about': 'О чем говоят люди' - }; break; case 9 : @@ -76,7 +78,10 @@ class Translations{ 'From': 'From', 'To': 'To', 'Hierarchy': 'Hierarchy', - 'What people are talking about': 'What people are talking about' + 'What people are talking about': 'What people are talking about', + 'Category': 'Category', + 'Sub category': 'Sub category', + 'Attribute': 'Attribute' }; break; } From e030cce53aa2ea5d82732706d3051424407869e6 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 17:10:11 +0300 Subject: [PATCH 162/224] translations --- Static/Page_detailed_analysis.js | 61 ++++++++++++++++++++++++++++++++ Translations.js | 4 ++- 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 872f238..3b11531 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -407,5 +407,66 @@ class Page_detailed_analysis{ var label = _curDictionary['Attribute']; context.component.Output.Append(label); } + + + static function txtTotalComments_Hide(context){ + return false +} + + /** + * @memberof Page_comments + * @function txtSubCategory_Render + * @description function to render the sub Category selector label + * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function txtTotalComments_Render(context){ + var label = _curDictionary['Total comments']; + context.component.Output.Append(label); +} + + static function txtPositive_Hide(context){ + return false +} + + /** + * @memberof Page_comments + * @function txtSubCategory_Render + * @description function to render the sub Category selector label + * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function txtPositive_Render(context){ + var label = _curDictionary['Positive']; + context.component.Output.Append(label); +} + + static function txtNeutral_Hide(context){ + return false +} + + /** + * @memberof Page_comments + * @function txtSubCategory_Render + * @description function to render the sub Category selector label + * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function txtNeutral_Render(context){ + var label = _curDictionary['Neutral']; + context.component.Output.Append(label); +} + + static function txtNegative_Hide(context){ + return false +} + + /** + * @memberof Page_comments + * @function txtSubCategory_Render + * @description function to render the sub Category selector label + * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} + */ + static function txtNegative_Render(context){ + var label = _curDictionary['Negative']; + context.component.Output.Append(label); +} } diff --git a/Translations.js b/Translations.js index a917650..db09623 100644 --- a/Translations.js +++ b/Translations.js @@ -37,6 +37,7 @@ class Translations{ 'Top 5 most improved themes': '5 тем ставших лучше', 'Top 5 most negative themes': '5 плохих тем', 'Top 5 most positive themes': '5 хороших тем', + 'Total comments': 'Все комментарии', 'View': 'Показывать', 'View by': 'Уровень иерархии', 'What people are talking about': 'О чем говоят люди' @@ -81,7 +82,8 @@ class Translations{ 'What people are talking about': 'What people are talking about', 'Category': 'Category', 'Sub category': 'Sub category', - 'Attribute': 'Attribute' + 'Attribute': 'Attribute', + 'Total comments': 'Total comments' }; break; } From 9c9fba18f8309888485e24677c45aed07883bd0d Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 17:32:18 +0300 Subject: [PATCH 163/224] translations --- Static/Parameters.js | 34 +++++++++++++++++++++++++--------- Translations.js | 9 +++++++-- 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/Static/Parameters.js b/Static/Parameters.js index 23c6e51..90c215e 100644 --- a/Static/Parameters.js +++ b/Static/Parameters.js @@ -38,8 +38,9 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_COMPARE_PERIODS_Domain(context){ - var currentLanguage = context.report.CurrentLanguage; - var currentDictionary = Translations.dictionary(currentLanguage); + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); + var parameterValues = [ {Code: "wow", Label: currentDictionary["Current vs Last Week"]}, {Code: "mom", Label: currentDictionary["Current vs Last Month"]}, @@ -55,7 +56,9 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_ALL_CATEGORIES_Domain(context){ - new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderAllCategoriesParameter(context.component, getSelectedFolder(context),"-select-") + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); + new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderAllCategoriesParameter(context.component, getSelectedFolder(context),currentDictionary["-select-"]) } /** @@ -64,7 +67,10 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_TOP_CATEGORIES_SINGLE_Domain(context){ - new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 0, "-select-") + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); + + new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 0, currentDictionary["-select-"]) } /** @@ -73,7 +79,9 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_SUB_CATEGORIES_SINGLE_Domain(context){ - new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 1, "-select-") + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); + new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 1, currentDictionary["-select-"]) } /** @@ -82,7 +90,9 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_ATTRIBUTES_SINGLE_Domain(context){ - new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 2, "-select-") + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); + new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderLevelCategoriesParameter(context.component, getSelectedFolder(context), 2, currentDictionary["-select-"]) } /** @@ -130,8 +140,10 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_DISTRIBUTION_TOGGLE_Domain(context){ + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); var parameterValues = [ - {Code: 0, Label: "Count"}, + {Code: 0, Label: currentDictionary["Count"]}, {Code: 1, Label: "%"} ] @@ -144,7 +156,9 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_VIEW_BY_Domain(context){ - new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderViewByParameter(context.component, getSelectedFolder(context), "-select-"); + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); + new TAParameters(TAHelper.GetGlobals(context),Config.GetTALibrary()).RenderViewByParameter(context.component, getSelectedFolder(context), currentDictionary["-select-"]); } /** @@ -153,8 +167,10 @@ class Parameters{ * @param {Object} context - {component: parameter, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function TA_HIDE_EMPTY_ROWS_Domain(context){ + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); var parameterValues = [ - {Code: "hide", Label: "Hide categories with no hits"} + {Code: "hide", Label: currentDictionary["Hide categories with no hits"]} ] new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues); } diff --git a/Translations.js b/Translations.js index db09623..05c8e18 100644 --- a/Translations.js +++ b/Translations.js @@ -3,6 +3,7 @@ class Translations{ switch(language) { case 25 : return { + '-select-': '-выберите-', '1st level (category)': '1-й уровень (категории)', '2nd level (sub-category)': '2-й уровень (подкатегории)', '3rd level (attributes)': '3-й уровень (аттрибуты)', @@ -21,6 +22,7 @@ class Translations{ 'Dashboard': 'Главная страница', 'End date': 'Дата окончания', 'From': 'С', + 'Hide categories with no hits': 'Скрыть пустые категории', 'Hierarchy': 'Иерархия', 'Language': 'Язык', 'Negative': 'Отрицательные', @@ -40,7 +42,8 @@ class Translations{ 'Total comments': 'Все комментарии', 'View': 'Показывать', 'View by': 'Уровень иерархии', - 'What people are talking about': 'О чем говоят люди' + 'What people are talking about': 'О чем говоят люди', + }; break; case 9 : @@ -83,7 +86,9 @@ class Translations{ 'Category': 'Category', 'Sub category': 'Sub category', 'Attribute': 'Attribute', - 'Total comments': 'Total comments' + 'Total comments': 'Total comments', + '-select-': '-select-', + 'Hide categories with no hits': 'Hide categories with no hits' }; break; } From dc296ec80c0a9103657a12018ff82849e41f838a Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Mon, 13 Mar 2017 18:09:08 +0300 Subject: [PATCH 164/224] translations --- Translations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations.js b/Translations.js index 05c8e18..d73ccc8 100644 --- a/Translations.js +++ b/Translations.js @@ -42,7 +42,7 @@ class Translations{ 'Total comments': 'Все комментарии', 'View': 'Показывать', 'View by': 'Уровень иерархии', - 'What people are talking about': 'О чем говоят люди', + 'What people are talking about': 'О чем говоят люди' }; break; From 1a05da534b280584229050a2a8b17380c89d1295 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 14 Mar 2017 14:24:59 +0300 Subject: [PATCH 165/224] translations --- Static/Page_detailed_analysis.js | 3 ++- Translations.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 3b11531..60da834 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -289,7 +289,8 @@ class Page_detailed_analysis{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtViewBy_Render(context){ - context.component.Output.Append("View by:"); + var label = _curDictionary['View by:']; + context.component.Output.Append(label); } /** diff --git a/Translations.js b/Translations.js index d73ccc8..04cd326 100644 --- a/Translations.js +++ b/Translations.js @@ -42,6 +42,7 @@ class Translations{ 'Total comments': 'Все комментарии', 'View': 'Показывать', 'View by': 'Уровень иерархии', + 'View by:': 'Разбить по:', 'What people are talking about': 'О чем говоят люди' }; @@ -88,7 +89,8 @@ class Translations{ 'Attribute': 'Attribute', 'Total comments': 'Total comments', '-select-': '-select-', - 'Hide categories with no hits': 'Hide categories with no hits' + 'Hide categories with no hits': 'Hide categories with no hits', + 'View by:': 'View by:' }; break; } From e5a251758fc7c771082c8b97945105046b6fe5d7 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Tue, 14 Mar 2017 14:42:20 +0300 Subject: [PATCH 166/224] translations --- TADetailedAnalysisTable.js | 11 ++++++++--- TATableUtils.js | 18 +++++++++++------- Translations.js | 6 +++++- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index 6e38e28..f782130 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -20,9 +20,13 @@ class TADetailedAnalysisTable{ private var _selectedQuestion; private var _distribution; private var _multiQuestion; + private var _currentLanguage; + private var _curDictionary; function TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution, multiQuestion){ _globals = globals; + _currentLanguage = _globals.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); _folder = folder; _taMasks = new TAMasks(globals, folder); _table = table; @@ -31,6 +35,7 @@ class TADetailedAnalysisTable{ _selectedQuestion = selectedQuestion && selectedQuestion != "emptyv" ? selectedQuestion : "all"; _distribution = distribution ? distribution : "0"; _multiQuestion = multiQuestion; + var currentLanguage = _render(); } @@ -131,7 +136,7 @@ class TADetailedAnalysisTable{ */ private function _getColumnFormulaExpression(){ var countformulaexpression; - var countformula = '[FORMULA]{decimals:0;label:"Comments";hideheader:true'; + var countformula = '[FORMULA]{decimals:0;label:"'+_curDictionary['Comments']+'";hideheader:true'; if( _distribution == "1"){ countformula += ";percent:true"; countformulaexpression = '"IF((cellv(1,1)>0),(cellv(col-1,row)/cellv(1,1)),EMPTYV())"'; @@ -246,7 +251,7 @@ class TADetailedAnalysisTable{ }, ], - "Negative", + "Neutral", { axis: Area.Columns, direction: Area.Left, @@ -262,7 +267,7 @@ class TADetailedAnalysisTable{ }, ], - "Negative", + "Positive", { axis: Area.Columns, direction: Area.Left, diff --git a/TATableUtils.js b/TATableUtils.js index 8a06b8e..c9c6beb 100644 --- a/TATableUtils.js +++ b/TATableUtils.js @@ -11,9 +11,13 @@ class TATableUtils{ private var _globals; private var _folder: TAFolder; private var _table: Table; + private var _currentLanguage; + private var _curDictionary; function TATableUtils(globals, folder, table){ _globals = globals; + _currentLanguage = _globals.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); _folder = folder; _table = table; } @@ -168,19 +172,19 @@ class TATableUtils{ case "neg": headerCategories.Mask.Codes = configuration.Negative.join(","); headerFormula.Expression = _getSumOfCells(configuration.Negative.length)+(addMinus?"*(-1)":""); - categoryTitle = new Label(9, "Negative"); + categoryTitle = new Label(_currentLanguage, _curDictionary["Negative"]); break; case "neu": headerCategories.Mask.Codes = configuration.Neutral.join(","); headerFormula.Expression = _getSumOfCells(configuration.Neutral.length); - categoryTitle = new Label(9, "Neutral"); + categoryTitle = new Label(_currentLanguage, _curDictionary["Neutral"]); break; case "pos": headerCategories.Mask.Codes = configuration.Positive.join(","); headerFormula.Expression = _getSumOfCells(configuration.Positive.length); - categoryTitle = new Label(9, "Positive"); + categoryTitle = new Label(_currentLanguage, _curDictionary["Positive"]); break; } @@ -237,17 +241,17 @@ class TATableUtils{ switch(groupName.toLowerCase()){ case "neg": formulaExpression = _getSumOfCells(configuration.Negative.length, (configuration.Positive.length+configuration.Neutral.length))+(addMinus?'*(-1)':''); - categoryLabel = '"Negative"'; + categoryLabel = '"'+_curDictionary['Negative']+'"'; break; case "neu": formulaExpression = _getSumOfCells(configuration.Neutral.length,(configuration.Positive.length)); - categoryLabel = '"Neutral"'; + categoryLabel = '"'+_curDictionary['Neutral']+'"'; break; case "pos": formulaExpression = _getSumOfCells(configuration.Positive.length,0); - categoryLabel = '"Positive"'; + categoryLabel = '"'+_curDictionary['Positive']+'"'; break; } @@ -284,7 +288,7 @@ class TATableUtils{ chartHeader.Thickness = "80%"; chartHeader.CssClass = "chart-header"; chartHeader.ShowTitle = true; - chartHeader.Title = new Label(9, title?title:"Chart"); + chartHeader.Title = new Label(_currentLanguage, title?title:_curDictionary["Chart"]); var chartValue: ChartComboValue; for(var i = 0; i< formulas.length; i++) { diff --git a/Translations.js b/Translations.js index 04cd326..319bb4d 100644 --- a/Translations.js +++ b/Translations.js @@ -12,7 +12,9 @@ class Translations{ 'Categories': 'Категории', 'Category': 'Категория', 'Change in avg. score': 'Изменение средней оценки', + 'Chart': 'График', 'Clear filters': 'Очистить фильтры', + 'Comments': 'Комментарии', 'Compare': 'Сравнить', 'Count': 'Количество', 'Current vs Last Month': 'Текущий и предыдущий месяц', @@ -90,7 +92,9 @@ class Translations{ 'Total comments': 'Total comments', '-select-': '-select-', 'Hide categories with no hits': 'Hide categories with no hits', - 'View by:': 'View by:' + 'View by:': 'View by:', + 'Comments': 'Comments', + 'Chart': 'Chart' }; break; } From a409346b7e5e0a54662731afca46d6efaddb0c4f Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 15:09:15 +0300 Subject: [PATCH 167/224] translations --- Static/Page_comments.js | 18 +++++++++++------- Translations.js | 8 +++++++- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index 4151f0f..5db9f0f 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -7,6 +7,8 @@ class Page_comments{ private static var _filter_panel; private static var _folder; private static var _selectedCategory; + private static var _currentLanguage; + private static var _curDictionary; private static const _defaultParameters = [ { Id: "TA_ALL_CATEGORIES", @@ -52,6 +54,8 @@ class Page_comments{ * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function Render(context){ + _currentLanguage = context.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); Config.SetTALibrary(TAHelper.GetGlobals(context)); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); if(context.component.SubmitSource == "ClearFilters"){ @@ -187,13 +191,13 @@ class Page_comments{ hitlistHeaders["verbatim"] = [{ name: _folder.GetQuestionId(), - title: "Comments", + title: _curDictionary["Comments"], main: true }]; hitlistHeaders["date"] = [{ name: _folder.GetTimeVariableId() ? _folder.GetTimeVariableId() : "interview_start", - title: "Date" + title: _curDictionary["Date"] }]; @@ -204,7 +208,7 @@ class Page_comments{ hitlistHeaders["sentiment"].push( { name: _folder.GetQuestionId("overallSentiment"), - title: "Overall Sentiment" + title: _curDictionary["Overall Sentiment"] }); hitlistHeaders["other"] = []; @@ -288,7 +292,7 @@ class Page_comments{ * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtCategory_Render(context){ - var label = "Category"; + var label = _curDictionary["Category"]; context.component.Output.Append(label); } @@ -312,7 +316,7 @@ class Page_comments{ * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtSubCategory_Render(context){ - var label = "Sub category"; + var label = _curDictionary["Sub category"]; context.component.Output.Append(label); } @@ -335,7 +339,7 @@ class Page_comments{ * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtAttribute_Render(context){ - var label = "Attribute"; + var label = _curDictionary["Attribute"]; context.component.Output.Append(label); } @@ -357,7 +361,7 @@ class Page_comments{ * @param {Object} context - {component: text, pageContext: this.pageContext,report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtSentiment_Render(context){ - var label = "Sentiment"; + var label = _curDictionary["Sentiment"]; context.component.Output.Append(label); } diff --git a/Translations.js b/Translations.js index 319bb4d..5b27a4c 100644 --- a/Translations.js +++ b/Translations.js @@ -22,6 +22,7 @@ class Translations{ 'Current vs Last Week': 'Текущая и предыдущая недели', 'Current vs Last Year': 'Текущий и предыдущий год', 'Dashboard': 'Главная страница', + 'Date': 'Дата', 'End date': 'Дата окончания', 'From': 'С', 'Hide categories with no hits': 'Скрыть пустые категории', @@ -29,10 +30,12 @@ class Translations{ 'Language': 'Язык', 'Negative': 'Отрицательные', 'Neutral': 'Нейтральные', + 'Overall Sentiment': 'Общие впечатления', 'Positive': "Положительные", 'Question': 'Вопрос', 'Save': 'Сохранить', 'Selected question': 'Выбранный вопрос', + 'Sentiment': 'Впечатление', 'Start date': 'Дата начала', 'Sub category': 'Подкатегория', 'Theme distribution': 'Изменение тем', @@ -94,7 +97,10 @@ class Translations{ 'Hide categories with no hits': 'Hide categories with no hits', 'View by:': 'View by:', 'Comments': 'Comments', - 'Chart': 'Chart' + 'Chart': 'Chart', + 'Date': 'Date', + 'Overall Sentiment': 'Overall Sentiment', + 'Sentiment': 'Sentiment' }; break; } From 3e1c485a0407a49aac6671a1554c1b112b0fbc57 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 15:20:15 +0300 Subject: [PATCH 168/224] translations --- Static/FilterPanel.js | 2 +- Static/Page_Filters.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Static/FilterPanel.js b/Static/FilterPanel.js index 069164d..a61f650 100644 --- a/Static/FilterPanel.js +++ b/Static/FilterPanel.js @@ -26,7 +26,7 @@ class FilterPanel{ * @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function btnSaveReturn_Render(context){ - context.component.Label = new Label(9,"Save and Return"); + context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionary(context.report.CurrentLanguage)["Save and return"]); context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE"); } diff --git a/Static/Page_Filters.js b/Static/Page_Filters.js index 6c9d67a..df3260d 100644 --- a/Static/Page_Filters.js +++ b/Static/Page_Filters.js @@ -6,6 +6,8 @@ class Page_filters{ private static var _filterComponents; private static var _folder; private static const _defaultParameters = []; + private static var _currentLanguage; + private static var _curDictionary; private static var _filter_panel; /** * @memberof Page_filters @@ -25,6 +27,8 @@ class Page_filters{ * @param {Object} context - {component: page, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function Render(context){ + _currentLanguage = context.report.CurrentLanguage; + _curDictionary = Translations.dictionary(_currentLanguage); Config.SetTALibrary(TAHelper.GetGlobals(context)); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); _filter_panel = new FilterPanel(_filterComponents); @@ -151,7 +155,7 @@ class Page_filters{ } static function txtQuestion_Render(context){ - var label = 'Question'; + var label = _curDictionary['Question']; context.component.Output.Append(label); } @@ -161,7 +165,7 @@ class Page_filters{ } static function txtDateFrom_Render(context){ - var label = 'From'; + var label = _curDictionary['From']; context.component.Output.Append(label); } @@ -171,7 +175,7 @@ class Page_filters{ } static function txtDateTo_Render(context){ - var label = 'To'; + var label = _curDictionary['To']; context.component.Output.Append(label); } From b0b8983df22b0ad263cc034c9ecd40be812b024a Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 16:00:38 +0300 Subject: [PATCH 169/224] folders logic --- Static/PageMaster.js | 2 +- TAFolder.js | 8 +++++++- TAParameters.js | 2 +- Translations.js | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Static/PageMaster.js b/Static/PageMaster.js index 469f9d9..09b719d 100644 --- a/Static/PageMaster.js +++ b/Static/PageMaster.js @@ -70,7 +70,7 @@ class PageMaster{ var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); var currentLaguage = context.report.CurrentLanguage; var curDictionary = Translations.dictionary(currentLaguage); - summarySegments.push(("
"+curDictionary['Selected question']+" = "+(selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetId()) +"
")); + summarySegments.push(("
"+curDictionary['Selected question']+" = "+(selectedFolder ? selectedFolder : Config.GetTALibrary().GetFolderById(selectedFolder).GetName()) +"
")); var startDate = !context.state.Parameters.IsNull("TA_DATE_FROM") && context.state.Parameters.GetDate("TA_DATE_FROM").ToShortDateString(); diff --git a/TAFolder.js b/TAFolder.js index ea52ad5..4fef6eb 100644 --- a/TAFolder.js +++ b/TAFolder.js @@ -11,6 +11,7 @@ class TAFolder{ //TA Fields private var _id: String; + private var _folderName; private var _qName: String; private var _modelNo: String; @@ -25,7 +26,8 @@ class TAFolder{ function TAFolder(globals, questionIndex, config){ _globals = globals; - _id = config.TAQuestions[questionIndex].TAFolderId; + _id = config.TAQuestions[questionIndex].TAQuestionName+config.TAQuestions[questionIndex].TAModelNo; + _folderName = config.TAQuestions[questionIndex].TAFolderId; _qName = config.TAQuestions[questionIndex].TAQuestionName; _modelNo = config.TAQuestions[questionIndex].TAModelNo; _timeVariableId = TAHelper.GetConfiguredVariables(globals,[config.TAQuestions[questionIndex].TimeVariableId], [config.TimeVariableId], null, ["interview_start"])[0]; @@ -114,6 +116,10 @@ class TAFolder{ return _id; } + function GetName(){ + return _folderName; +} + /** * @memberof TAFolder * @instance diff --git a/TAParameters.js b/TAParameters.js index 7a48169..cf8649b 100644 --- a/TAParameters.js +++ b/TAParameters.js @@ -58,7 +58,7 @@ class TAParameters{ question = project.GetQuestion(folders[i].GetQuestionId()); parameterValues.push({ Code: folders[i].GetId(), - Label: folders[i].GetId() //+ (question.Text ? " - " + question.Text : "") + Label: folders[i].GetName() //+ (question.Text ? " - " + question.Text : "") }); } _parameterUtilities.LoadParameterValues(parameter, parameterValues); diff --git a/Translations.js b/Translations.js index 5b27a4c..c0811ab 100644 --- a/Translations.js +++ b/Translations.js @@ -34,6 +34,7 @@ class Translations{ 'Positive': "Положительные", 'Question': 'Вопрос', 'Save': 'Сохранить', + 'Save and return': 'Сщхранить и вернуться', 'Selected question': 'Выбранный вопрос', 'Sentiment': 'Впечатление', 'Start date': 'Дата начала', @@ -100,7 +101,8 @@ class Translations{ 'Chart': 'Chart', 'Date': 'Date', 'Overall Sentiment': 'Overall Sentiment', - 'Sentiment': 'Sentiment' + 'Sentiment': 'Sentiment', + 'Save and return': 'Save and return' }; break; } From fedca279e82ab1975f8c370ccb1d317a19a48ba9 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 16:14:12 +0300 Subject: [PATCH 170/224] folders logic --- Static/Page_comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index 5db9f0f..edbc63a 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -32,7 +32,7 @@ class Page_comments{ }, { Id: "TA_FOLDERS", - Value: Config.TAQuestions[0].TAFolderId + Value: (Config.TAQuestions[0].TAQuestionName+Config.TAQuestions[0].TAModelNo) } ]; From 1079f63177a0b6e7f7671abd28f4e1a77062d0fc Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 16:16:07 +0300 Subject: [PATCH 171/224] folders logic --- Static/Page_dashboard.js | 6 +++++- Static/Page_detailed_analysis.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 1bf2381..8ce0221 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -26,7 +26,11 @@ class Page_dashboard{ { Id: "TA_ALL_CATEGORIES", Value: "emptyv" - } + }, + { + Id: "TA_FOLDERS", + Value: (Config.TAQuestions[0].TAQuestionName+Config.TAQuestions[0].TAModelNo) + } ]; /** diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 60da834..c483ce6 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -34,7 +34,11 @@ class Page_detailed_analysis{ { Id: "TA_VIEW_BY", Value: "emptyv" - } + }, + { + Id: "TA_FOLDERS", + Value: (Config.TAQuestions[0].TAQuestionName+Config.TAQuestions[0].TAModelNo) + } ]; /** From 8e90eece4820c7432016a670faf06e541ea173f6 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 17:31:20 +0300 Subject: [PATCH 172/224] hierarchy table search fix --- Static/Page_dashboard.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 8ce0221..6289b08 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -481,6 +481,10 @@ class Page_dashboard{ * @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function txtThemeDistributionScript_Render(context){ + var categoriesText = ""; var headers; var hierarhy = _folder.GetHierarchy().GetHierarchyArray() @@ -502,14 +506,12 @@ class Page_dashboard{ ")"+ ""; + context.component.Output.Append(categoriesText); context.component.Output.Append(upgradeText); context.component.Output.Append(JSON.print(hierarhy,"hierarchy")); - var categoriesText = ""; - context.component.Output.Append(categoriesText); + + } /** From 30419e2d9938a4849c1155b12614cdafd8610f52 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 18:00:01 +0300 Subject: [PATCH 173/224] hierarchy table search fix --- Static/Page_detailed_analysis.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index c483ce6..a5f6053 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -262,7 +262,10 @@ class Page_detailed_analysis{ "enabled: true,"+ "excludedColumns: [6]"+ "},"+ - "clearLinks: false"+ + "clearLinks: false,"+ + "search: {" + + "enabled: true"+ + "}"+ "},"+ "floatingHeader: {},"+ "search:{}"+ From eed5b607a79d7cdc1b1e951b296b0072d08076d6 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 18:14:06 +0300 Subject: [PATCH 174/224] hierarchy table search fix --- Static/Page_detailed_analysis.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index a5f6053..643e1b2 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -257,16 +257,17 @@ class Page_detailed_analysis{ "blocks:"+JSON.stringify(blocks)+","+ "column:"+ ( blocks.length > 0 ? 1 : 0 ) +","+ - "sorting:"+ - "{"+ - "enabled: true,"+ - "excludedColumns: [6]"+ - "},"+ + "clearLinks: false,"+ "search: {" + "enabled: true"+ "}"+ "},"+ + "sorting:"+ + "{"+ + "enabled: true,"+ + "excludedColumns: [6]"+ + "},"+ "floatingHeader: {},"+ "search:{}"+ "}"+ From fe8f9015024e2b70c051c4f7771dd1fd964494ac Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Wed, 15 Mar 2017 18:16:50 +0300 Subject: [PATCH 175/224] hierarchy table search fix --- Static/Page_detailed_analysis.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 643e1b2..208e880 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -268,8 +268,7 @@ class Page_detailed_analysis{ "enabled: true,"+ "excludedColumns: [6]"+ "},"+ - "floatingHeader: {},"+ - "search:{}"+ + "fixedHeader: {}"+ "}"+ ")"+ ""; From 4fe5ac51f86392e81381d3762ecfd82862bf3adf Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 16 Mar 2017 11:19:03 +0300 Subject: [PATCH 176/224] hierarchy table search fix --- TADetailedAnalysisTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index f782130..bf111cf 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -177,7 +177,7 @@ class TADetailedAnalysisTable{ */ private function _addChartColumn(){ var chartHeader = _taTableUtils.GetChartHeader( - ChartComboType.Bar100, + ChartComboType.Bar, [ { Formula: "cellv(col-25,row)", From 2824a686b118221d3420bc4526ccbbd6e8dd3f0f Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 16 Mar 2017 11:25:33 +0300 Subject: [PATCH 177/224] hierarchy table search fix --- TADetailedAnalysisTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index bf111cf..f782130 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -177,7 +177,7 @@ class TADetailedAnalysisTable{ */ private function _addChartColumn(){ var chartHeader = _taTableUtils.GetChartHeader( - ChartComboType.Bar, + ChartComboType.Bar100, [ { Formula: "cellv(col-25,row)", From 6893aca9782ac2f119263293305adf6307e61b28 Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 16 Mar 2017 12:16:03 +0300 Subject: [PATCH 178/224] hierarchy table search fix --- TADetailedAnalysisTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index f782130..bf111cf 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -177,7 +177,7 @@ class TADetailedAnalysisTable{ */ private function _addChartColumn(){ var chartHeader = _taTableUtils.GetChartHeader( - ChartComboType.Bar100, + ChartComboType.Bar, [ { Formula: "cellv(col-25,row)", From fadd83fa417630829ebace2208cbb303fe89f48c Mon Sep 17 00:00:00 2001 From: Son-tsss Date: Thu, 16 Mar 2017 12:42:53 +0300 Subject: [PATCH 179/224] hierarchy table search fix --- Static/Page_detailed_analysis.js | 7 +++++-- Static/Parameters.js | 9 +++++++++ TADetailedAnalysisTable.js | 7 +++++-- Translations.js | 4 +++- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 208e880..76c22b8 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -217,8 +217,11 @@ class Page_detailed_analysis{ if(selectedQuestion && selectedQuestion != "emptyv") selectedQuestionType = project.GetQuestion(selectedQuestion).QuestionType; var distribution = context.state.Parameters.GetString("TA_DISTRIBUTION_TOGGLE"); - var hideEmptyRows = new ParameterUtilities(globals).GetCheckedValues("TA_HIDE_EMPTY_ROWS"); - var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, _selectedCategory, selectedQuestion, distribution, ( selectedQuestionType == QuestionType.Multi)); + var parameterUtilities = new ParameterUtilities(globals) + var hideEmptyRows = parameterUtilities.GetCheckedValues("TA_HIDE_EMPTY_ROWS"); + var toggleChartValue = parameterUtilities.GetCheckedValues("TA_TOGGLE_BARCHART"); + var toggleChart = (toggleChartValue.length > 0) + var detailedAnalysisTable = new TADetailedAnalysisTable(globals, _folder, context.component, _selectedCategory, selectedQuestion, distribution, ( selectedQuestionType == QuestionType.Multi), toggleChart); detailedAnalysisTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-fixed-header", "reportal-hierarchy-table", "reportal-barchart", "detailed-analysis-table"]); detailedAnalysisTable.GetTATableUtils().SetupHideEmptyRows((hideEmptyRows.length >0)); detailedAnalysisTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "comments"); diff --git a/Static/Parameters.js b/Static/Parameters.js index 90c215e..b7e2135 100644 --- a/Static/Parameters.js +++ b/Static/Parameters.js @@ -196,4 +196,13 @@ class Parameters{ new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues); } } + + static function TA_TOGGLE_CHART_Domain(context){ + var currentLanguage = context.report.CurrentLanguage; + var currentDictionary = Translations.dictionary(currentLanguage); + var parameterValues = [ + {Code: "toggle", Label: currentDictionary["Toggle chart view"]} + ] + new ParameterUtilities(TAHelper.GetGlobals(context)).LoadParameterValues(context.component, parameterValues); + } } \ No newline at end of file diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index bf111cf..99efbdd 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -22,8 +22,9 @@ class TADetailedAnalysisTable{ private var _multiQuestion; private var _currentLanguage; private var _curDictionary; + private var _bar100; - function TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution, multiQuestion){ + function TADetailedAnalysisTable(globals, folder, table, selectedCategory, selectedQuestion, distribution, multiQuestion, bar100){ _globals = globals; _currentLanguage = _globals.report.CurrentLanguage; _curDictionary = Translations.dictionary(_currentLanguage); @@ -35,6 +36,7 @@ class TADetailedAnalysisTable{ _selectedQuestion = selectedQuestion && selectedQuestion != "emptyv" ? selectedQuestion : "all"; _distribution = distribution ? distribution : "0"; _multiQuestion = multiQuestion; + _bar100 = bar100 ? bar100 : false; var currentLanguage = _render(); } @@ -176,8 +178,9 @@ class TADetailedAnalysisTable{ * @function _addChartColumn */ private function _addChartColumn(){ + var chartType = _bar100 ? ChartComboType.Bar100 : ChartComboType.Bar var chartHeader = _taTableUtils.GetChartHeader( - ChartComboType.Bar, + chartType, [ { Formula: "cellv(col-25,row)", diff --git a/Translations.js b/Translations.js index c0811ab..72e599e 100644 --- a/Translations.js +++ b/Translations.js @@ -41,6 +41,7 @@ class Translations{ 'Sub category': 'Подкатегория', 'Theme distribution': 'Изменение тем', 'To': 'По', + 'Toggle chart view': 'переключить вид чарта', 'Top 5 most declined themes': '5 тем ставших хуже', 'Top 5 most improved themes': '5 тем ставших лучше', 'Top 5 most negative themes': '5 плохих тем', @@ -102,7 +103,8 @@ class Translations{ 'Date': 'Date', 'Overall Sentiment': 'Overall Sentiment', 'Sentiment': 'Sentiment', - 'Save and return': 'Save and return' + 'Save and return': 'Save and return', + 'Toggle chart view': 'Toggle chart view' }; break; } From d8886dc54c332acf572f81659bcf32f7b3cfb809 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Fri, 24 Mar 2017 16:08:30 +0300 Subject: [PATCH 180/224] make filterpanel wider --- Static/ReportMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 4fe1f5c..661c719 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -65,7 +65,7 @@ class ReportMaster { static function txtFilterPanelScript_Render(context){ var script = ""; context.component.Output.Append(script) From 1dffb5350dac8574f0ad72450508e7617316c6e6 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Fri, 24 Mar 2017 16:22:28 +0300 Subject: [PATCH 181/224] separate translations from cl --- Translations.js | 112 ------------------------------------------------ 1 file changed, 112 deletions(-) delete mode 100644 Translations.js diff --git a/Translations.js b/Translations.js deleted file mode 100644 index 72e599e..0000000 --- a/Translations.js +++ /dev/null @@ -1,112 +0,0 @@ -class Translations{ - static function dictionary(language) { - switch(language) { - case 25 : - return { - '-select-': '-выберите-', - '1st level (category)': '1-й уровень (категории)', - '2nd level (sub-category)': '2-й уровень (подкатегории)', - '3rd level (attributes)': '3-й уровень (аттрибуты)', - 'All sentiments': 'Все комментарии', - 'Attribute': 'Аттрибут', - 'Categories': 'Категории', - 'Category': 'Категория', - 'Change in avg. score': 'Изменение средней оценки', - 'Chart': 'График', - 'Clear filters': 'Очистить фильтры', - 'Comments': 'Комментарии', - 'Compare': 'Сравнить', - 'Count': 'Количество', - 'Current vs Last Month': 'Текущий и предыдущий месяц', - 'Current vs Last Quarter': 'Текущий и предыдущий квартал', - 'Current vs Last Week': 'Текущая и предыдущая недели', - 'Current vs Last Year': 'Текущий и предыдущий год', - 'Dashboard': 'Главная страница', - 'Date': 'Дата', - 'End date': 'Дата окончания', - 'From': 'С', - 'Hide categories with no hits': 'Скрыть пустые категории', - 'Hierarchy': 'Иерархия', - 'Language': 'Язык', - 'Negative': 'Отрицательные', - 'Neutral': 'Нейтральные', - 'Overall Sentiment': 'Общие впечатления', - 'Positive': "Положительные", - 'Question': 'Вопрос', - 'Save': 'Сохранить', - 'Save and return': 'Сщхранить и вернуться', - 'Selected question': 'Выбранный вопрос', - 'Sentiment': 'Впечатление', - 'Start date': 'Дата начала', - 'Sub category': 'Подкатегория', - 'Theme distribution': 'Изменение тем', - 'To': 'По', - 'Toggle chart view': 'переключить вид чарта', - 'Top 5 most declined themes': '5 тем ставших хуже', - 'Top 5 most improved themes': '5 тем ставших лучше', - 'Top 5 most negative themes': '5 плохих тем', - 'Top 5 most positive themes': '5 хороших тем', - 'Total comments': 'Все комментарии', - 'View': 'Показывать', - 'View by': 'Уровень иерархии', - 'View by:': 'Разбить по:', - 'What people are talking about': 'О чем говоят люди' - - }; - break; - case 9 : - default: - return { - 'Dashboard': 'Dashboard', - 'Selected question': 'Selected question', - 'View by': 'View by', - 'Top 5 most positive themes': 'Top 5 most positive themes', - 'Top 5 most negative themes': 'Top 5 most negative themes', - 'Start date': 'Start date', - 'End date': 'End date', - 'Compare': 'Compare', - 'Top 5 most improved themes': 'Top 5 most improved themes', - 'Top 5 most declined themes': 'Top 5 most declined themes', - 'Theme distribution': 'Theme distribution', - 'View': 'View', - 'Positive': 'Positive', - 'Neutral': 'Neutral', - 'Negative': 'Negative', - 'Categories': 'Categories', - 'Count': 'Count', - 'Change in avg. score': 'Change in avg. score', - '1st level (category)': '1st level (category)', - '2nd level (sub-category)': '2nd level (sub-category)', - '3rd level (attributes)': '3rd level (attributes)', - 'Current vs Last Week': 'Current vs Last Week', - 'Current vs Last Month': 'Current vs Last Month', - 'Current vs Last Quarter': 'Current vs Last Quarter', - 'Current vs Last Year': 'Current vs Last Year', - 'All sentiments': 'All sentiments', - 'Language': 'Language', - 'Save': 'Save', - 'Clear filters': 'Clear filters', - 'Question': 'Question', - 'From': 'From', - 'To': 'To', - 'Hierarchy': 'Hierarchy', - 'What people are talking about': 'What people are talking about', - 'Category': 'Category', - 'Sub category': 'Sub category', - 'Attribute': 'Attribute', - 'Total comments': 'Total comments', - '-select-': '-select-', - 'Hide categories with no hits': 'Hide categories with no hits', - 'View by:': 'View by:', - 'Comments': 'Comments', - 'Chart': 'Chart', - 'Date': 'Date', - 'Overall Sentiment': 'Overall Sentiment', - 'Sentiment': 'Sentiment', - 'Save and return': 'Save and return', - 'Toggle chart view': 'Toggle chart view' - }; - break; - } - } -} From 0164e6171a597c0f66ca38e6dc3f64be362c1cb9 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Fri, 31 Mar 2017 12:31:21 +0300 Subject: [PATCH 182/224] fix tiles --- TATableUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TATableUtils.js b/TATableUtils.js index c9c6beb..81b0587 100644 --- a/TATableUtils.js +++ b/TATableUtils.js @@ -234,7 +234,7 @@ class TATableUtils{ expression += ';hideheader:true'; expression += '}' }else{ - var categoriesHeader = '[CAT]{totals:false;hidedata:true'; + var categoriesHeader = '[CAT]{totals:false';//;hidedata:true'; var formulaHeader = '[FORMULA]{decimals:0'; var formulaExpression; var categoryLabel; From c340680c91b58bad88ac696337904ac2ce40dc8c Mon Sep 17 00:00:00 2001 From: son-tsss Date: Fri, 31 Mar 2017 12:37:28 +0300 Subject: [PATCH 183/224] fix tiles --- TATableUtils.js | 2 +- TATiles.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TATableUtils.js b/TATableUtils.js index 81b0587..c9c6beb 100644 --- a/TATableUtils.js +++ b/TATableUtils.js @@ -234,7 +234,7 @@ class TATableUtils{ expression += ';hideheader:true'; expression += '}' }else{ - var categoriesHeader = '[CAT]{totals:false';//;hidedata:true'; + var categoriesHeader = '[CAT]{totals:false;hidedata:true'; var formulaHeader = '[FORMULA]{decimals:0'; var formulaExpression; var categoryLabel; diff --git a/TATiles.js b/TATiles.js index 6b15327..66b17e3 100644 --- a/TATiles.js +++ b/TATiles.js @@ -62,7 +62,7 @@ class TATiles{ } var rowexpr = _taTableUtils.GetTAQuestionExpression(qType, mask); - var columnexpr = _taTableUtils.GetCategoriesExpression( _sentiment, false, true, _distribution); + var columnexpr = _taTableUtils.GetCategoriesExpression( _sentiment, false, true, _distribution, Config.SentimentRange); _taTableUtils.CreateTableFromExpression(rowexpr, columnexpr); _table.Distribution.Enabled = true; From 6d36a7fb61e566fb8cfe7cdaaa492c67a7f74b82 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 12:10:24 +0300 Subject: [PATCH 184/224] QA DA page bug --- Static/Page_detailed_analysis.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 76c22b8..12f4999 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -244,6 +244,7 @@ class Page_detailed_analysis{ */ static function txtDetailedAnalysisScript_Render(context){ var headers; + context.log.LogDebug("selectedCat: "+ _selectedCategory) var hierarhy = _selectedCategory == 'emptyv'? _folder.GetHierarchy().GetHierarchyArray() : [_folder.GetHierarchy().GetObjectById(_selectedCategory)]; var taTableData = new TATableData(TAHelper.GetGlobals(context), "tblDetailedAnalysis"); var headers = taTableData.GetTableRowHeaders(); From 004b127bb268ff6965a7ab129a538520c05acb31 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 12:24:13 +0300 Subject: [PATCH 185/224] QA DA page bug --- TAHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAHelper.js b/TAHelper.js index 9e341e0..d817939 100644 --- a/TAHelper.js +++ b/TAHelper.js @@ -46,7 +46,7 @@ class TAHelper{ if(attribtesPararmeterName) attributesParameter = state.Parameters.GetString(attribtesPararmeterName); - var selectedCategory = false; + var selectedCategory = "emptyv"; if(categoriesParameter && categoriesParameter != "emptyv"){ selectedCategory = categoriesParameter; From 43bd7091879d50232ea33e9bd0f5db8b2346d98b Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 12:37:09 +0300 Subject: [PATCH 186/224] QA DA page bug --- Static/Page_comments.js | 1 - TAFilters.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index edbc63a..5c4c912 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -141,7 +141,6 @@ class Page_comments{ var selectedCategory = _selectedCategory if( selectedCategory && selectedCategory != "emptyv" ){ htlComments.AddTAColumn("categorysentiment", false, selectedCategory); - } htlComments.AddTAColumn("verbatim"); htlComments.AddColumn(_folder.GetTimeVariableId(), true); diff --git a/TAFilters.js b/TAFilters.js index 9ed32a8..0cfdf09 100644 --- a/TAFilters.js +++ b/TAFilters.js @@ -60,7 +60,7 @@ class TAFilters{ sentimentRange ='"' + Config.SentimentRange.Negative.join('","')+'"'; break; } - var questionName = selectedCategory ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment"); + var questionName = selectedCategory && selectedCategory != "emptyv" ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment"); fExpr = sentimentRange ?('IN(' + questionName + ','+sentimentRange+')') : ''; return fExpr; } From 2c0305fba64ad9ca7817d1c54bb1f114dfd1e009 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 12:43:24 +0300 Subject: [PATCH 187/224] QA DA page bug --- TAFilters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAFilters.js b/TAFilters.js index 0cfdf09..aab8d9d 100644 --- a/TAFilters.js +++ b/TAFilters.js @@ -60,7 +60,7 @@ class TAFilters{ sentimentRange ='"' + Config.SentimentRange.Negative.join('","')+'"'; break; } - var questionName = selectedCategory && selectedCategory != "emptyv" ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment"); + var questionName = (selectedCategory && selectedCategory != "emptyv") ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment"); fExpr = sentimentRange ?('IN(' + questionName + ','+sentimentRange+')') : ''; return fExpr; } From 510239dfd3be18491bd9ab9d754f0dafec008089 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 12:49:09 +0300 Subject: [PATCH 188/224] QA DA page bug --- TAFilters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAFilters.js b/TAFilters.js index aab8d9d..b3b687c 100644 --- a/TAFilters.js +++ b/TAFilters.js @@ -60,7 +60,7 @@ class TAFilters{ sentimentRange ='"' + Config.SentimentRange.Negative.join('","')+'"'; break; } - var questionName = (selectedCategory && selectedCategory != "emptyv") ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment"); + var questionName = (selectedCategory != "emptyv") ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment"); fExpr = sentimentRange ?('IN(' + questionName + ','+sentimentRange+')') : ''; return fExpr; } From 2767bce5ecf582561ad107058fd556dd8d96852d Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 12:53:24 +0300 Subject: [PATCH 189/224] QA DA page bug --- Static/Filters.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Static/Filters.js b/Static/Filters.js index f88a341..4c64aa8 100644 --- a/Static/Filters.js +++ b/Static/Filters.js @@ -36,7 +36,8 @@ class Filters { }*/ var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT"); - context.component.Expression = fExpr; + context.log.LogDebug("fExpr: "+fExpr) + context.component.Expression = fExpr; } /** From 4dc23425609ea5fc29b236d64c847b5d79bf7a13 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 13:03:30 +0300 Subject: [PATCH 190/224] QA DA page bug --- Static/Filters.js | 1 - TAFilters.js | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Static/Filters.js b/Static/Filters.js index 4c64aa8..05f1cd5 100644 --- a/Static/Filters.js +++ b/Static/Filters.js @@ -36,7 +36,6 @@ class Filters { }*/ var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT"); - context.log.LogDebug("fExpr: "+fExpr) context.component.Expression = fExpr; } diff --git a/TAFilters.js b/TAFilters.js index b3b687c..9ba5f2e 100644 --- a/TAFilters.js +++ b/TAFilters.js @@ -29,7 +29,7 @@ class TAFilters{ var fExpr; var selectedCategory = TAHelper.GetSelectedCategory(_globals.state, categoriesParameter, subCategoriesParameter, attributesParameter); - fExpr = selectedCategory ?('ANY(' + _folder.GetQuestionId("categories") + ',"'+selectedCategory+'")'):'NOT ISNULL('+_folder.GetQuestionId("overallSentiment")+')'; + fExpr = (selectedCategory && selectedCategory !="emptyv") ?('ANY(' + _folder.GetQuestionId("categories") + ',"'+selectedCategory+'")'):'NOT ISNULL('+_folder.GetQuestionId("overallSentiment")+')'; return fExpr; } @@ -60,7 +60,8 @@ class TAFilters{ sentimentRange ='"' + Config.SentimentRange.Negative.join('","')+'"'; break; } - var questionName = (selectedCategory != "emptyv") ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment"); + var questionName = (selectedCategory && selectedCategory != "emptyv") ? (_folder.GetQuestionId("categorysentiment")+"_"+selectedCategory) : _folder.GetQuestionId("overallsentiment"); + fExpr = sentimentRange ?('IN(' + questionName + ','+sentimentRange+')') : ''; return fExpr; } From cd9af7d1b3bb0da1dbb69b5ad18e4bb089650562 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 17:49:39 +0300 Subject: [PATCH 191/224] DividerColor bug --- Static/ReportMaster.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 661c719..246c051 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -142,9 +142,9 @@ class ReportMaster { "\n;}.reportal-hierarchy-table>tbody>tr>td[class*=_dc]:nth-last-child(even) {background: " + primaryBackgroundColor + "\n;}.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {background-color: " + primaryBackgroundColor + "\n;}.reportal-hierarchy-table tr.firstInBlock:not(:first-child)>td {border-top: 3px " + dividerColor + - "\n double !important;}.hitlist-dropdown-button,.yui-calcontainer>table .calnav,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn {background: " + lightPrimaryColor + + "\n double !important;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn,.yui-calcontainer>table .calnav,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn {background: " + lightPrimaryColor + "\n !important;}.hitlist-dropdown-button:after {border-color: " + darkPrimaryColor + - "\n transparent transparent;}.hitlist-dropdown-button:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + defaultPrimaryColor + + "\n transparent transparent;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + defaultPrimaryColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + textPrimaryColor + "\n !important;}.hitlist-filter,.yui-calcontainer>table td.calcell.today>a {background: " + lightAccentColor + "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + @@ -153,7 +153,7 @@ class ReportMaster { "\n !important;}.hitlist-dropdown-panel .hitlist-filter-item>label,.yui-calcontainer>table .calweekdaycell,.yui-calcontainer>table .calnav {color: " + secondaryTextColor + "\n !important;}.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover {background: " + secondaryTextColor + "\n !important;}.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply:hover,.hitlist-nav-button:hover, .hitlist-nav-page:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn.yui-default:hover {background: " + darkAccentColor + - "\n !important;}.reportal-hitlist-container .yui3-datatable-columns,.reportal-hitlist-container .yui3-datatable-header {border-top: 1px solid " + dividerColor + + "\n !important;}.reportal-hitlist-container .yui3-datatable-columns,.reportal-hitlist-container .yui3-datatable-header,.reportal-hitlist-container .yui3-datatable-cell {border-bottom: 1px solid " + dividerColor + "\n !important;}.yui-calcontainer {border: 1px solid " + dividerColor + "\n !important;}.reportal-hitlist-container .hitlist-date-info {color: " + secondaryTextColor + "\n;}.reportal-hitlist-container .hitlist-nav-prev.disabled,.reportal-hitlist-container .hitlist-nav-next.disabled {color: " + disabledTextColor + @@ -167,7 +167,7 @@ class ReportMaster { str += ""; - context.component.Output.Append(str); + text.Output.Append(str); } From 2b3fae6719e96067beb8a2b77b2eb81ed5f028a0 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 17:53:07 +0300 Subject: [PATCH 192/224] DividerColor bug --- Static/ReportMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 246c051..203f5f0 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -167,7 +167,7 @@ class ReportMaster { str += ""; - text.Output.Append(str); + context.component.Output.Append(str); } From 5986e877ee8fcc72b9065c26654fe8a8e8663658 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 18:06:11 +0300 Subject: [PATCH 193/224] DividerColor bug --- Static/ReportMaster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 203f5f0..be5f1f5 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -153,13 +153,13 @@ class ReportMaster { "\n !important;}.hitlist-dropdown-panel .hitlist-filter-item>label,.yui-calcontainer>table .calweekdaycell,.yui-calcontainer>table .calnav {color: " + secondaryTextColor + "\n !important;}.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover {background: " + secondaryTextColor + "\n !important;}.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply:hover,.hitlist-nav-button:hover, .hitlist-nav-page:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn.yui-default:hover {background: " + darkAccentColor + - "\n !important;}.reportal-hitlist-container .yui3-datatable-columns,.reportal-hitlist-container .yui3-datatable-header,.reportal-hitlist-container .yui3-datatable-cell {border-bottom: 1px solid " + dividerColor + - "\n !important;}.yui-calcontainer {border: 1px solid " + dividerColor + + "\n !important;}.reportal-hitlist-container .yui3-datatable-columns,.reportal-hitlist-container .yui3-datatable-header,.reportal-hitlist-container .yui3-datatable-cell {border-bottom: 1px solid " + lightDividerColor + "\n !important;}.reportal-hitlist-container .hitlist-date-info {color: " + secondaryTextColor + "\n;}.reportal-hitlist-container .hitlist-nav-prev.disabled,.reportal-hitlist-container .hitlist-nav-next.disabled {color: " + disabledTextColor + "\n !important;}.dd-target-button .dd-target-button-arrow {border-color: transparent transparent transparent " + secondaryTextColor + "\n;}.dd-wrapper,.dd-wrapper .dd-header,.dd-wrapper .dd-header .dd-search-input,.dd-wrapper .dd-header .dd-items a,.dd-wrapper .dd-button-menu {border-color: " + lightDividerColor + "\n !important;}.dd-wrapper .dd-header {background-color: " + lightDividerColor + + "\n !important;}.yui-calcontainer {border: 1px solid " + dividerColor + "\n !important;}.yui-calcontainer>table .calnavleft:before, .yui-calcontainer>table .calnavright:before {border: 1px solid " + defaultAccentColor + "\n;}.yui-calcontainer>table td.calcell.calcellhover>a {background: " + darkPrimaryColor + "\n !important;}table>thead td.sortable:not(.hierarchy-search-visible):after {color: " + primaryTextColor + From 8587fbc79c98d5fb89dad5c2c150ffcf32f834fa Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 18:23:29 +0300 Subject: [PATCH 194/224] text colors in hitlist --- Static/ReportMaster.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index be5f1f5..ddb98ad 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -92,7 +92,7 @@ class ReportMaster { str += "* {outline-color: " + darkAccentColor + "\n;}a:hover, .link:hover {color: " + darkAccentColor + "\n;}.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.dd-wrapper .dd-button-menu button:hover {background-color: " + darkAccentColor + - "\n;}body, body.reportal-viewmode,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative {color: " + primaryTextColor + + "\n;}body, body.reportal-viewmode,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.reportal-hitlist-container .yui3-datatable-cell,.reportal-hitlist-container .yui3-datatable-cell:hover,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {color: " + primaryTextColor + "\n;}[class^=icon-],.yui3-menu-horizontal ul > li > a {fill: " + primaryTextColor + "\n;}body, body.reportal-viewmode,.yui3-menu-horizontal ul > li > a {background-color: " + defaultPrimaryColor + "\n;}.report-filters-horizontal,.yui3-menu-horizontal ul > li.css-menu-selected > a, .yui3-menu-horizontal ul > li.css-menu-child-selected > a, .yui3-menu-horizontal ul > li.css-menu-topitem > a:hover, .yui3-menu-horizontal ul > li > a.yui3-menu-label-menuvisible:not(.css-menu-sublabel),.yui3-menu-horizontal ul ul > li.yui3-menuitem-active > a, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-active, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-menuvisible,.reportal-table>thead>tr>td, .reportal-table>thead>tr>th,.reportal-table.reportal-barchart>thead>tr,.reportal-table .btn.hierarchy-search.visible {background-color: " + lightPrimaryColor + @@ -166,7 +166,6 @@ class ReportMaster { "\n;}"; str += ""; - context.component.Output.Append(str); } From caeb886d0f29322c9c0bdedb9ba2f61dcdcabaf8 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Mon, 10 Apr 2017 18:28:49 +0300 Subject: [PATCH 195/224] text colors in hitlist --- Static/ReportMaster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index ddb98ad..8873bc4 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -92,7 +92,7 @@ class ReportMaster { str += "* {outline-color: " + darkAccentColor + "\n;}a:hover, .link:hover {color: " + darkAccentColor + "\n;}.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.dd-wrapper .dd-button-menu button:hover {background-color: " + darkAccentColor + - "\n;}body, body.reportal-viewmode,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.reportal-hitlist-container .yui3-datatable-cell,.reportal-hitlist-container .yui3-datatable-cell:hover,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {color: " + primaryTextColor + + "\n;}body, body.reportal-viewmode,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative {color: " + primaryTextColor + "\n;}[class^=icon-],.yui3-menu-horizontal ul > li > a {fill: " + primaryTextColor + "\n;}body, body.reportal-viewmode,.yui3-menu-horizontal ul > li > a {background-color: " + defaultPrimaryColor + "\n;}.report-filters-horizontal,.yui3-menu-horizontal ul > li.css-menu-selected > a, .yui3-menu-horizontal ul > li.css-menu-child-selected > a, .yui3-menu-horizontal ul > li.css-menu-topitem > a:hover, .yui3-menu-horizontal ul > li > a.yui3-menu-label-menuvisible:not(.css-menu-sublabel),.yui3-menu-horizontal ul ul > li.yui3-menuitem-active > a, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-active, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-menuvisible,.reportal-table>thead>tr>td, .reportal-table>thead>tr>th,.reportal-table.reportal-barchart>thead>tr,.reportal-table .btn.hierarchy-search.visible {background-color: " + lightPrimaryColor + @@ -128,7 +128,7 @@ class ReportMaster { "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):after {border-left: 1px solid " + secondaryTextColor + "\n;}[type=radio]:checked:focus + label:before,[type=radio]:not(:checked):focus + label:before,[type=checkbox]:checked:focus + label:before,[type=checkbox]:not(:checked):focus + label:before {border: 1px solid " + secondaryTextColor + "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):before,.reportal-select.reportal-dropdown>span:after,.reportal-collapsed-row .reportal-collapse-button:before,.reportal-uncollapsed-row .reportal-collapse-button:before,.hitlist-dropdown-button:after,.dd-target-button.dd-button-selected .dd-target-button-arrow {border-color: " + secondaryTextColor + - "\n transparent transparent;}.yui3-menu-horizontal ul > li > a,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel {color: " + primaryTextColor + + "\n transparent transparent;}.yui3-menu-horizontal ul > li > a,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel,.reportal-hitlist-container .yui3-datatable-cell,.reportal-hitlist-container .yui3-datatable-cell:hover,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {color: " + primaryTextColor + "\n !important;}.yui3-menu-horizontal ul ul > li > *:nth-last-child(2):before {border-color: transparent transparent transparent " + defaultPrimaryColor + "\n;}.reportal-select select,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {border: 1px solid " + dividerColor + "\n;}.reportal-table .btn.hierarchy-search.visible {border-bottom: 1px solid " + dividerColor + From b5854a0b2ee7061ea038f0a8924aa4189aee8a34 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 14:53:35 +0300 Subject: [PATCH 196/224] color config --- Static/ReportMaster.js | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 8873bc4..c18432e 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -92,7 +92,7 @@ class ReportMaster { str += "* {outline-color: " + darkAccentColor + "\n;}a:hover, .link:hover {color: " + darkAccentColor + "\n;}.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.dd-wrapper .dd-button-menu button:hover {background-color: " + darkAccentColor + - "\n;}body, body.reportal-viewmode,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative {color: " + primaryTextColor + + "\n;}body, body.reportal-viewmode,.reportal-select select,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {color: " + primaryTextColor + "\n;}[class^=icon-],.yui3-menu-horizontal ul > li > a {fill: " + primaryTextColor + "\n;}body, body.reportal-viewmode,.yui3-menu-horizontal ul > li > a {background-color: " + defaultPrimaryColor + "\n;}.report-filters-horizontal,.yui3-menu-horizontal ul > li.css-menu-selected > a, .yui3-menu-horizontal ul > li.css-menu-child-selected > a, .yui3-menu-horizontal ul > li.css-menu-topitem > a:hover, .yui3-menu-horizontal ul > li > a.yui3-menu-label-menuvisible:not(.css-menu-sublabel),.yui3-menu-horizontal ul ul > li.yui3-menuitem-active > a, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-active, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-menuvisible,.reportal-table>thead>tr>td, .reportal-table>thead>tr>th,.reportal-table.reportal-barchart>thead>tr,.reportal-table .btn.hierarchy-search.visible {background-color: " + lightPrimaryColor + @@ -105,20 +105,22 @@ class ReportMaster { "\n !important;}a:active, a:visited, .link:active, .link:visited {color: " + defaultAccentColor + "\n;}.btn.btn-primary, button.btn-primary,.dd-wrapper .dd-button-menu button {background-color: " + defaultAccentColor + "\n;}.dd-wrapper .dd-button-menu button:focus {outline-color: " + defaultAccentColor + - "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.filter-bar .well-filter-summary,.toggle input:checked + label {color: " + textPrimaryColor + - "\n;}.filter-bar .filter-button {background-color: " + textPrimaryColor + - "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + textPrimaryColor + + "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.filter-bar .well-filter-summary,.filter-bar div {color: " + textPrimaryColor + "\n;}.icon-face-positive,.cf_positive {fill: " + positiveColor + "\n;}.cf_positive {color: " + positiveColor + "\n;}.icon-face-neutral,.cf_neutral {fill: " + neutralColor + "\n;}.cf_neutral {color: " + neutralColor + "\n;}.icon-face-negative,.cf_negative {fill: " + negativeColor + "\n;}.cf_negative {color: " + negativeColor + + "\n;}.filter-bar .filter-button {background-color: " + dividerColor + + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + dividerColor + + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {border-color: " + dividerColor + + "\n;}.toggle input:checked + label {background: " + dividerColor + + "\n;}.toggle input:not(checked) + label {color: " + dividerColor + "\n;}.filter-bar .filter-button {fill: " + darkPrimaryColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus,.filter-bar .well-filter-summary:hover {background-color: " + darkPrimaryColor + - "\n;}.toggle input:checked + label {background: " + darkPrimaryColor + - "\n;}.toggle input:checked + label {border-color: " + darkPrimaryColor + - "\n;}.toggle input:not(checked) + label {color: " + darkPrimaryColor + + "\n;}.filter-bar div {background: " + darkPrimaryColor + + "\n;}[type=radio] + label, [type=checkbox] + label {color: " + darkPrimaryColor + "\n;}.filter-bar .well-filter-summary {background: " + secondaryTextColor + "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + "\n;}[type=radio] + label:after {background-color: " + secondaryTextColor + @@ -127,27 +129,28 @@ class ReportMaster { "\n;}.legend .cf_negative:before,.reportal-table>tbody>tr>td.cf_negative:after {background: " + negativeColor + "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):after {border-left: 1px solid " + secondaryTextColor + "\n;}[type=radio]:checked:focus + label:before,[type=radio]:not(:checked):focus + label:before,[type=checkbox]:checked:focus + label:before,[type=checkbox]:not(:checked):focus + label:before {border: 1px solid " + secondaryTextColor + - "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):before,.reportal-select.reportal-dropdown>span:after,.reportal-collapsed-row .reportal-collapse-button:before,.reportal-uncollapsed-row .reportal-collapse-button:before,.hitlist-dropdown-button:after,.dd-target-button.dd-button-selected .dd-target-button-arrow {border-color: " + secondaryTextColor + + "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):before,.reportal-select.reportal-dropdown>span:after,.hitlist-dropdown-button:after {border-color: " + dividerColor + "\n transparent transparent;}.yui3-menu-horizontal ul > li > a,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel,.reportal-hitlist-container .yui3-datatable-cell,.reportal-hitlist-container .yui3-datatable-cell:hover,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {color: " + primaryTextColor + "\n !important;}.yui3-menu-horizontal ul ul > li > *:nth-last-child(2):before {border-color: transparent transparent transparent " + defaultPrimaryColor + "\n;}.reportal-select select,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {border: 1px solid " + dividerColor + "\n;}.reportal-table .btn.hierarchy-search.visible {border-bottom: 1px solid " + dividerColor + - "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {border-color: " + dividerColor + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {background-color: " + lightDividerColor + "\n;}[type=radio]:disabled + label, [type=checkbox]:disabled + label {color: " + disabledTextColor + - "\n;}[type=\"checkbox\"] + label:before,[type=radio] + label:before,.reportal-no-children .reportal-collapse-button:before {border: 1px solid " + disabledTextColor + + "\n;}[type=\"checkbox\"] + label:before,[type=radio] + label:before {border: 1px solid " + lightDividerColor + + "\n;}.reportal-table>tbody>tr>td {border-bottom: 1px solid " + lightDividerColor + "\n;}.toggle label,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {border: solid 1px " + dividerColor + "\n;}table>thead td.sortable:not(.hierarchy-search-visible):after {color: " + primaryTextColor + - "\n;}.reportal-table>tbody>tr>td {border-bottom: 1px solid " + lightDividerColor + "\n;}.reportal-hierarchy-table>tbody>tr>td[class*=_dc]:nth-last-child(even) {background: " + primaryBackgroundColor + "\n;}.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {background-color: " + primaryBackgroundColor + "\n;}.reportal-hierarchy-table tr.firstInBlock:not(:first-child)>td {border-top: 3px " + dividerColor + - "\n double !important;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn,.yui-calcontainer>table .calnav,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn {background: " + lightPrimaryColor + + "\n double !important;}.reportal-collapsed-row .reportal-collapse-button:before,.reportal-uncollapsed-row .reportal-collapse-button:before,.dd-target-button.dd-button-selected .dd-target-button-arrow {border-color: " + secondaryTextColor + + "\n transparent transparent;}.reportal-no-children .reportal-collapse-button:before {border: 1px solid " + disabledTextColor + + "\n;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn {background: " + dividerColor + + "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + "\n !important;}.hitlist-dropdown-button:after {border-color: " + darkPrimaryColor + "\n transparent transparent;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + defaultPrimaryColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + textPrimaryColor + "\n !important;}.hitlist-filter,.yui-calcontainer>table td.calcell.today>a {background: " + lightAccentColor + - "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + "\n !important;}.hitlist-dropdown-panel {box-shadow: 0 2px 8px " + lightDividerColor + "\n !important;}.hitlist-dropdown-panel {background-color: " + primaryBackgroundColor + "\n !important;}.hitlist-dropdown-panel .hitlist-filter-item>label,.yui-calcontainer>table .calweekdaycell,.yui-calcontainer>table .calnav {color: " + secondaryTextColor + @@ -162,6 +165,7 @@ class ReportMaster { "\n !important;}.yui-calcontainer {border: 1px solid " + dividerColor + "\n !important;}.yui-calcontainer>table .calnavleft:before, .yui-calcontainer>table .calnavright:before {border: 1px solid " + defaultAccentColor + "\n;}.yui-calcontainer>table td.calcell.calcellhover>a {background: " + darkPrimaryColor + + "\n !important;}.yui-calcontainer>table .calnav,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn {background: " + lightPrimaryColor + "\n !important;}table>thead td.sortable:not(.hierarchy-search-visible):after {color: " + primaryTextColor + "\n;}"; From 168076dd1a51386255b3fbb80f0b0a231f98ea52 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 15:13:43 +0300 Subject: [PATCH 197/224] color config --- Static/ReportMaster.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index c18432e..7b46ea9 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -117,13 +117,13 @@ class ReportMaster { "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {border-color: " + dividerColor + "\n;}.toggle input:checked + label {background: " + dividerColor + "\n;}.toggle input:not(checked) + label {color: " + dividerColor + - "\n;}.filter-bar .filter-button {fill: " + darkPrimaryColor + - "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus,.filter-bar .well-filter-summary:hover {background-color: " + darkPrimaryColor + - "\n;}.filter-bar div {background: " + darkPrimaryColor + - "\n;}[type=radio] + label, [type=checkbox] + label {color: " + darkPrimaryColor + + "\n;}.filter-bar .filter-button {fill: " + secondaryTextColor + + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus,[type=radio] + label:after {background-color: " + secondaryTextColor + "\n;}.filter-bar .well-filter-summary {background: " + secondaryTextColor + "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + - "\n;}[type=radio] + label:after {background-color: " + secondaryTextColor + + "\n;}.filter-bar .well-filter-summary:hover {background-color: " + darkPrimaryColor + + "\n;}.filter-bar div {background: " + darkPrimaryColor + + "\n;}[type=radio] + label, [type=checkbox] + label {color: " + darkPrimaryColor + "\n;}.legend .cf_positive:before,.reportal-table>tbody>tr>td.cf_positive:after {background: " + positiveColor + "\n;}.legend .cf_neutral:before,.reportal-table>tbody>tr>td.cf_neutral:after {background: " + neutralColor + "\n;}.legend .cf_negative:before,.reportal-table>tbody>tr>td.cf_negative:after {background: " + negativeColor + @@ -143,12 +143,11 @@ class ReportMaster { "\n;}.reportal-hierarchy-table>tbody>tr>td[class*=_dc]:nth-last-child(even) {background: " + primaryBackgroundColor + "\n;}.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {background-color: " + primaryBackgroundColor + "\n;}.reportal-hierarchy-table tr.firstInBlock:not(:first-child)>td {border-top: 3px " + dividerColor + - "\n double !important;}.reportal-collapsed-row .reportal-collapse-button:before,.reportal-uncollapsed-row .reportal-collapse-button:before,.dd-target-button.dd-button-selected .dd-target-button-arrow {border-color: " + secondaryTextColor + + "\n double !important;}.reportal-collapsed-row .reportal-collapse-button:before,.reportal-uncollapsed-row .reportal-collapse-button:before,.hitlist-dropdown-button:after,.dd-target-button.dd-button-selected .dd-target-button-arrow {border-color: " + secondaryTextColor + "\n transparent transparent;}.reportal-no-children .reportal-collapse-button:before {border: 1px solid " + disabledTextColor + "\n;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn {background: " + dividerColor + "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + - "\n !important;}.hitlist-dropdown-button:after {border-color: " + darkPrimaryColor + - "\n transparent transparent;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + defaultPrimaryColor + + "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + defaultPrimaryColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + textPrimaryColor + "\n !important;}.hitlist-filter,.yui-calcontainer>table td.calcell.today>a {background: " + lightAccentColor + "\n !important;}.hitlist-dropdown-panel {box-shadow: 0 2px 8px " + lightDividerColor + From 269535a80fac9a2824b89ca9fdb53e614df9557b Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 15:23:14 +0300 Subject: [PATCH 198/224] color config --- Static/ReportMaster.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 7b46ea9..552de3b 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -105,7 +105,7 @@ class ReportMaster { "\n !important;}a:active, a:visited, .link:active, .link:visited {color: " + defaultAccentColor + "\n;}.btn.btn-primary, button.btn-primary,.dd-wrapper .dd-button-menu button {background-color: " + defaultAccentColor + "\n;}.dd-wrapper .dd-button-menu button:focus {outline-color: " + defaultAccentColor + - "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.filter-bar .well-filter-summary,.filter-bar div {color: " + textPrimaryColor + + "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.filter-bar .well-filter-summary {color: " + textPrimaryColor + "\n;}.icon-face-positive,.cf_positive {fill: " + positiveColor + "\n;}.cf_positive {color: " + positiveColor + "\n;}.icon-face-neutral,.cf_neutral {fill: " + neutralColor + @@ -114,16 +114,14 @@ class ReportMaster { "\n;}.cf_negative {color: " + negativeColor + "\n;}.filter-bar .filter-button {background-color: " + dividerColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + dividerColor + - "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {border-color: " + dividerColor + - "\n;}.toggle input:checked + label {background: " + dividerColor + + "\n;}.filter-bar div,.toggle input:checked + label {background: " + dividerColor + + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before,.toggle input:checked + label {border-color: " + dividerColor + "\n;}.toggle input:not(checked) + label {color: " + dividerColor + "\n;}.filter-bar .filter-button {fill: " + secondaryTextColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus,[type=radio] + label:after {background-color: " + secondaryTextColor + "\n;}.filter-bar .well-filter-summary {background: " + secondaryTextColor + - "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + + "\n;}.filter-bar div,.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + "\n;}.filter-bar .well-filter-summary:hover {background-color: " + darkPrimaryColor + - "\n;}.filter-bar div {background: " + darkPrimaryColor + - "\n;}[type=radio] + label, [type=checkbox] + label {color: " + darkPrimaryColor + "\n;}.legend .cf_positive:before,.reportal-table>tbody>tr>td.cf_positive:after {background: " + positiveColor + "\n;}.legend .cf_neutral:before,.reportal-table>tbody>tr>td.cf_neutral:after {background: " + neutralColor + "\n;}.legend .cf_negative:before,.reportal-table>tbody>tr>td.cf_negative:after {background: " + negativeColor + From b6c3143a080b809f6efe465c00b1c030d326f6b4 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 15:28:03 +0300 Subject: [PATCH 199/224] color config --- Static/ReportMaster.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 552de3b..0032342 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -105,7 +105,7 @@ class ReportMaster { "\n !important;}a:active, a:visited, .link:active, .link:visited {color: " + defaultAccentColor + "\n;}.btn.btn-primary, button.btn-primary,.dd-wrapper .dd-button-menu button {background-color: " + defaultAccentColor + "\n;}.dd-wrapper .dd-button-menu button:focus {outline-color: " + defaultAccentColor + - "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.filter-bar .well-filter-summary {color: " + textPrimaryColor + + "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus {color: " + textPrimaryColor + "\n;}.icon-face-positive,.cf_positive {fill: " + positiveColor + "\n;}.cf_positive {color: " + positiveColor + "\n;}.icon-face-neutral,.cf_neutral {fill: " + neutralColor + @@ -119,9 +119,7 @@ class ReportMaster { "\n;}.toggle input:not(checked) + label {color: " + dividerColor + "\n;}.filter-bar .filter-button {fill: " + secondaryTextColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus,[type=radio] + label:after {background-color: " + secondaryTextColor + - "\n;}.filter-bar .well-filter-summary {background: " + secondaryTextColor + "\n;}.filter-bar div,.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + - "\n;}.filter-bar .well-filter-summary:hover {background-color: " + darkPrimaryColor + "\n;}.legend .cf_positive:before,.reportal-table>tbody>tr>td.cf_positive:after {background: " + positiveColor + "\n;}.legend .cf_neutral:before,.reportal-table>tbody>tr>td.cf_neutral:after {background: " + neutralColor + "\n;}.legend .cf_negative:before,.reportal-table>tbody>tr>td.cf_negative:after {background: " + negativeColor + @@ -161,8 +159,7 @@ class ReportMaster { "\n !important;}.dd-wrapper .dd-header {background-color: " + lightDividerColor + "\n !important;}.yui-calcontainer {border: 1px solid " + dividerColor + "\n !important;}.yui-calcontainer>table .calnavleft:before, .yui-calcontainer>table .calnavright:before {border: 1px solid " + defaultAccentColor + - "\n;}.yui-calcontainer>table td.calcell.calcellhover>a {background: " + darkPrimaryColor + - "\n !important;}.yui-calcontainer>table .calnav,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn {background: " + lightPrimaryColor + + "\n;}.yui-calcontainer>table .calnav,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn {background: " + lightPrimaryColor + "\n !important;}table>thead td.sortable:not(.hierarchy-search-visible):after {color: " + primaryTextColor + "\n;}"; From a3af26889733d1e311f81c541d0c136ef81517ce Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 15:30:56 +0300 Subject: [PATCH 200/224] color config --- Static/ReportMaster.js | 185 +++++++++++++++++++++-------------------- 1 file changed, 93 insertions(+), 92 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 0032342..cc244d4 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -70,101 +70,102 @@ class ReportMaster { ""; context.component.Output.Append(script) - var darkPrimaryColor = Config.Design.darkPrimaryColor; - var defaultPrimaryColor = Config.Design.defaultPrimaryColor; - var lightPrimaryColor = Config.Design.lightPrimaryColor; - var textPrimaryColor = Config.Design.textPrimaryColor; - var darkAccentColor = Config.Design.darkAccentColor; - var defaultAccentColor = Config.Design.defaultAccentColor; - var lightAccentColor = Config.Design.lightAccentColor; - var primaryBackgroundColor = Config.Design.primaryBackgroundColor; - var primaryTextColor = Config.Design.primaryTextColor; - var secondaryTextColor = Config.Design.secondaryTextColor; - var disabledTextColor = Config.Design.disabledTextColor; - var dividerColor = Config.Design.dividerColor; - var lightDividerColor = Config.Design.lightDividerColor; - var positiveColor = Config.Design.positiveColor; - var neutralColor = Config.Design.neutralColor; - var negativeColor = Config.Design.negativeColor; + if(Config.Design) { + var defaultPrimaryColor = Config.Design.defaultPrimaryColor; + var lightPrimaryColor = Config.Design.lightPrimaryColor; + var textPrimaryColor = Config.Design.textPrimaryColor; + var darkAccentColor = Config.Design.darkAccentColor; + var defaultAccentColor = Config.Design.defaultAccentColor; + var lightAccentColor = Config.Design.lightAccentColor; + var primaryBackgroundColor = Config.Design.primaryBackgroundColor; + var primaryTextColor = Config.Design.primaryTextColor; + var secondaryTextColor = Config.Design.secondaryTextColor; + var disabledTextColor = Config.Design.disabledTextColor; + var dividerColor = Config.Design.dividerColor; + var lightDividerColor = Config.Design.lightDividerColor; + var positiveColor = Config.Design.positiveColor; + var neutralColor = Config.Design.neutralColor; + var negativeColor = Config.Design.negativeColor; - var str = ""; - context.component.Output.Append(str); + str += ""; + context.component.Output.Append(str); + } } From 09f6d7645eed5d025856de9fecbb047e617d01ef Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 15:41:49 +0300 Subject: [PATCH 201/224] color config --- Static/ReportMaster.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index cc244d4..a268ef7 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -94,7 +94,7 @@ class ReportMaster { "\n;}.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.dd-wrapper .dd-button-menu button:hover {background-color: " + darkAccentColor + "\n;}body, body.reportal-viewmode,.reportal-select select,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {color: " + primaryTextColor + "\n;}[class^=icon-],.yui3-menu-horizontal ul > li > a {fill: " + primaryTextColor + - "\n;}body, body.reportal-viewmode,.yui3-menu-horizontal ul > li > a {background-color: " + defaultPrimaryColor + + "\n;}body, body.reportal-viewmode,.yui3-menu-horizontal ul > li > a {background-color: " + backgroundColor + "\n;}.report-filters-horizontal,.yui3-menu-horizontal ul > li.css-menu-selected > a, .yui3-menu-horizontal ul > li.css-menu-child-selected > a, .yui3-menu-horizontal ul > li.css-menu-topitem > a:hover, .yui3-menu-horizontal ul > li > a.yui3-menu-label-menuvisible:not(.css-menu-sublabel),.yui3-menu-horizontal ul ul > li.yui3-menuitem-active > a, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-active, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-menuvisible,.reportal-table>thead>tr>td, .reportal-table>thead>tr>th,.reportal-table.reportal-barchart>thead>tr,.reportal-table .btn.hierarchy-search.visible {background-color: " + lightPrimaryColor + "\n;}.kpi-tile,.reportal-hierarchy-table tr.firstInBlock>td:first-child {background: " + lightPrimaryColor + "\n;}a, .link {color: " + defaultAccentColor + @@ -105,7 +105,8 @@ class ReportMaster { "\n !important;}a:active, a:visited, .link:active, .link:visited {color: " + defaultAccentColor + "\n;}.btn.btn-primary, button.btn-primary,.dd-wrapper .dd-button-menu button {background-color: " + defaultAccentColor + "\n;}.dd-wrapper .dd-button-menu button:focus {outline-color: " + defaultAccentColor + - "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus {color: " + textPrimaryColor + + "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.toggle input:checked + label {color: " + textPrimaryColor + + "\n;}.toggle input:not(checked) + label {background: " + textPrimaryColor + "\n;}.icon-face-positive,.cf_positive {fill: " + positiveColor + "\n;}.cf_positive {color: " + positiveColor + "\n;}.icon-face-neutral,.cf_neutral {fill: " + neutralColor + @@ -115,7 +116,7 @@ class ReportMaster { "\n;}.filter-bar .filter-button {background-color: " + dividerColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + dividerColor + "\n;}.filter-bar div,.toggle input:checked + label {background: " + dividerColor + - "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before,.toggle input:checked + label {border-color: " + dividerColor + + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before,.toggle input:checked + label,.toggle input:not(checked) + label {border-color: " + dividerColor + "\n;}.toggle input:not(checked) + label {color: " + dividerColor + "\n;}.filter-bar .filter-button {fill: " + secondaryTextColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus,[type=radio] + label:after {background-color: " + secondaryTextColor + @@ -127,7 +128,7 @@ class ReportMaster { "\n;}[type=radio]:checked:focus + label:before,[type=radio]:not(:checked):focus + label:before,[type=checkbox]:checked:focus + label:before,[type=checkbox]:not(:checked):focus + label:before {border: 1px solid " + secondaryTextColor + "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):before,.reportal-select.reportal-dropdown>span:after,.hitlist-dropdown-button:after {border-color: " + dividerColor + "\n transparent transparent;}.yui3-menu-horizontal ul > li > a,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel,.reportal-hitlist-container .yui3-datatable-cell,.reportal-hitlist-container .yui3-datatable-cell:hover,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {color: " + primaryTextColor + - "\n !important;}.yui3-menu-horizontal ul ul > li > *:nth-last-child(2):before {border-color: transparent transparent transparent " + defaultPrimaryColor + + "\n !important;}.yui3-menu-horizontal ul ul > li > *:nth-last-child(2):before {border-color: transparent transparent transparent " + backgroundColor + "\n;}.reportal-select select,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {border: 1px solid " + dividerColor + "\n;}.reportal-table .btn.hierarchy-search.visible {border-bottom: 1px solid " + dividerColor + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {background-color: " + lightDividerColor + @@ -143,7 +144,7 @@ class ReportMaster { "\n transparent transparent;}.reportal-no-children .reportal-collapse-button:before {border: 1px solid " + disabledTextColor + "\n;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn {background: " + dividerColor + "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + - "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + defaultPrimaryColor + + "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + backgroundColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + textPrimaryColor + "\n !important;}.hitlist-filter,.yui-calcontainer>table td.calcell.today>a {background: " + lightAccentColor + "\n !important;}.hitlist-dropdown-panel {box-shadow: 0 2px 8px " + lightDividerColor + From 79ac88978fd444f4d8f756f10d4480a6f36a3a25 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 15:45:34 +0300 Subject: [PATCH 202/224] color config --- Static/ReportMaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index a268ef7..2186a47 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -71,7 +71,7 @@ class ReportMaster { context.component.Output.Append(script) if(Config.Design) { - var defaultPrimaryColor = Config.Design.defaultPrimaryColor; + var backgroundColor = Config.Design.backgroundColor; var lightPrimaryColor = Config.Design.lightPrimaryColor; var textPrimaryColor = Config.Design.textPrimaryColor; var darkAccentColor = Config.Design.darkAccentColor; From eda74169bfbfe8f6b300c6945ac2a46b83496bcd Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 15:49:26 +0300 Subject: [PATCH 203/224] color config --- Static/ReportMaster.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 2186a47..c75f43a 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -73,7 +73,7 @@ class ReportMaster { if(Config.Design) { var backgroundColor = Config.Design.backgroundColor; var lightPrimaryColor = Config.Design.lightPrimaryColor; - var textPrimaryColor = Config.Design.textPrimaryColor; + var buttonTextColor = Config.Design.buttonTextColor; var darkAccentColor = Config.Design.darkAccentColor; var defaultAccentColor = Config.Design.defaultAccentColor; var lightAccentColor = Config.Design.lightAccentColor; @@ -105,8 +105,8 @@ class ReportMaster { "\n !important;}a:active, a:visited, .link:active, .link:visited {color: " + defaultAccentColor + "\n;}.btn.btn-primary, button.btn-primary,.dd-wrapper .dd-button-menu button {background-color: " + defaultAccentColor + "\n;}.dd-wrapper .dd-button-menu button:focus {outline-color: " + defaultAccentColor + - "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.toggle input:checked + label {color: " + textPrimaryColor + - "\n;}.toggle input:not(checked) + label {background: " + textPrimaryColor + + "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.toggle input:checked + label {color: " + buttonTextColor + + "\n;}.toggle input:not(checked) + label {background: " + buttonTextColor + "\n;}.icon-face-positive,.cf_positive {fill: " + positiveColor + "\n;}.cf_positive {color: " + positiveColor + "\n;}.icon-face-neutral,.cf_neutral {fill: " + neutralColor + @@ -145,7 +145,7 @@ class ReportMaster { "\n;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn {background: " + dividerColor + "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + backgroundColor + - "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + textPrimaryColor + + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + buttonTextColor + "\n !important;}.hitlist-filter,.yui-calcontainer>table td.calcell.today>a {background: " + lightAccentColor + "\n !important;}.hitlist-dropdown-panel {box-shadow: 0 2px 8px " + lightDividerColor + "\n !important;}.hitlist-dropdown-panel {background-color: " + primaryBackgroundColor + From 6d0e6c37e5bcf6f8f82ffb0e4ac834f0a07f479c Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 15:53:43 +0300 Subject: [PATCH 204/224] color config --- Static/ReportMaster.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index c75f43a..e967f5f 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -74,7 +74,7 @@ class ReportMaster { var backgroundColor = Config.Design.backgroundColor; var lightPrimaryColor = Config.Design.lightPrimaryColor; var buttonTextColor = Config.Design.buttonTextColor; - var darkAccentColor = Config.Design.darkAccentColor; + var buttonHoverColor = Config.Design.buttonHoverColor; var defaultAccentColor = Config.Design.defaultAccentColor; var lightAccentColor = Config.Design.lightAccentColor; var primaryBackgroundColor = Config.Design.primaryBackgroundColor; @@ -89,9 +89,9 @@ class ReportMaster { var str = ""; + context.component.Output.Append(str); } From 04dae8025a5a56cc6b87897810f48de8db6e160d Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 16:08:49 +0300 Subject: [PATCH 206/224] color config --- Static/ReportMaster.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 731bf90..cdcf164 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -76,7 +76,6 @@ class ReportMaster { var buttonTextColor = Config.Design.buttonTextColor; var buttonHoverColor = Config.Design.buttonHoverColor; var buttonMainColor = Config.Design.buttonMainColor; - var lightAccentColor = Config.Design.lightAccentColor; var primaryBackgroundColor = Config.Design.primaryBackgroundColor; var primaryTextColor = Config.Design.primaryTextColor; var secondaryTextColor = Config.Design.secondaryTextColor; @@ -100,7 +99,7 @@ class ReportMaster { "\n;}a, .link {color: " + buttonMainColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight {background-color: " + buttonMainColor + "\n !important;}.hitlist-filter {border-color: " + buttonMainColor + - "\n !important;}.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn.yui-default {background: " + buttonMainColor + + "\n !important;}.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.today>a,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn.yui-default {background: " + buttonMainColor + "\n !important;}.dd-wrapper .dd-header .dd-search-input:focus,.dd-wrapper .dd-header .dd-item-text:focus {outline-color: " + buttonMainColor + "\n !important;}a:active, a:visited, .link:active, .link:visited {color: " + buttonMainColor + "\n;}.btn.btn-primary, button.btn-primary,.dd-wrapper .dd-button-menu button {background-color: " + buttonMainColor + @@ -146,7 +145,6 @@ class ReportMaster { "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + backgroundColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + buttonTextColor + - "\n !important;}.hitlist-filter,.yui-calcontainer>table td.calcell.today>a {background: " + lightAccentColor + "\n !important;}.hitlist-dropdown-panel {box-shadow: 0 2px 8px " + lightDividerColor + "\n !important;}.hitlist-dropdown-panel {background-color: " + primaryBackgroundColor + "\n !important;}.hitlist-dropdown-panel .hitlist-filter-item>label,.yui-calcontainer>table .calweekdaycell,.yui-calcontainer>table .calnav {color: " + secondaryTextColor + From 1798e256e2fd496576e09bd418881b5e88d069de Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 16:12:11 +0300 Subject: [PATCH 207/224] color config --- Static/ReportMaster.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index cdcf164..8eef3ea 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -76,7 +76,7 @@ class ReportMaster { var buttonTextColor = Config.Design.buttonTextColor; var buttonHoverColor = Config.Design.buttonHoverColor; var buttonMainColor = Config.Design.buttonMainColor; - var primaryBackgroundColor = Config.Design.primaryBackgroundColor; + var tableColumnColor = Config.Design.tableColumnColor; var primaryTextColor = Config.Design.primaryTextColor; var secondaryTextColor = Config.Design.secondaryTextColor; var disabledTextColor = Config.Design.disabledTextColor; @@ -136,8 +136,8 @@ class ReportMaster { "\n;}.reportal-table>tbody>tr>td {border-bottom: 1px solid " + lightDividerColor + "\n;}.toggle label,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {border: solid 1px " + dividerColor + "\n;}table>thead td.sortable:not(.hierarchy-search-visible):after {color: " + primaryTextColor + - "\n;}.reportal-hierarchy-table>tbody>tr>td[class*=_dc]:nth-last-child(even) {background: " + primaryBackgroundColor + - "\n;}.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {background-color: " + primaryBackgroundColor + + "\n;}.reportal-hierarchy-table>tbody>tr>td[class*=_dc]:nth-last-child(even) {background: " + tableColumnColor + + "\n;}.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {background-color: " + tableColumnColor + "\n;}.reportal-hierarchy-table tr.firstInBlock:not(:first-child)>td {border-top: 3px " + dividerColor + "\n double !important;}.reportal-collapsed-row .reportal-collapse-button:before,.reportal-uncollapsed-row .reportal-collapse-button:before,.hitlist-dropdown-button:after,.dd-target-button.dd-button-selected .dd-target-button-arrow {border-color: " + secondaryTextColor + "\n transparent transparent;}.reportal-no-children .reportal-collapse-button:before {border: 1px solid " + disabledTextColor + @@ -146,7 +146,7 @@ class ReportMaster { "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + backgroundColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + buttonTextColor + "\n !important;}.hitlist-dropdown-panel {box-shadow: 0 2px 8px " + lightDividerColor + - "\n !important;}.hitlist-dropdown-panel {background-color: " + primaryBackgroundColor + + "\n !important;}.hitlist-dropdown-panel {background-color: " + tableColumnColor + "\n !important;}.hitlist-dropdown-panel .hitlist-filter-item>label,.yui-calcontainer>table .calweekdaycell,.yui-calcontainer>table .calnav {color: " + secondaryTextColor + "\n !important;}.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover {background: " + secondaryTextColor + "\n !important;}.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply:hover,.hitlist-nav-button:hover, .hitlist-nav-page:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn.yui-default:hover {background: " + buttonHoverColor + @@ -163,7 +163,6 @@ class ReportMaster { "\n;}"; str += ""; - context.component.Output.Append(str); } From c2baac75e4eb0225429271112a03e6eeb501081c Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 16:31:38 +0300 Subject: [PATCH 208/224] color config --- Static/ReportMaster.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 8eef3ea..b16f156 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -92,8 +92,10 @@ class ReportMaster { "\n;}a:hover, .link:hover {color: " + buttonHoverColor + "\n;}.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.dd-wrapper .dd-button-menu button:hover {background-color: " + buttonHoverColor + "\n;}body, body.reportal-viewmode,.reportal-select select,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {color: " + primaryTextColor + - "\n;}[class^=icon-],.yui3-menu-horizontal ul > li > a {fill: " + primaryTextColor + - "\n;}body, body.reportal-viewmode,.yui3-menu-horizontal ul > li > a {background-color: " + backgroundColor + + "\n;}[class^=icon-],.filter-bar .filter-button,.yui3-menu-horizontal ul > li > a {fill: " + primaryTextColor + + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {background-color: " + primaryTextColor + + "\n;}body, body.reportal-viewmode,.filter-bar .filter-button,.yui3-menu-horizontal ul > li > a {background-color: " + backgroundColor + + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + backgroundColor + "\n;}.report-filters-horizontal,.yui3-menu-horizontal ul > li.css-menu-selected > a, .yui3-menu-horizontal ul > li.css-menu-child-selected > a, .yui3-menu-horizontal ul > li.css-menu-topitem > a:hover, .yui3-menu-horizontal ul > li > a.yui3-menu-label-menuvisible:not(.css-menu-sublabel),.yui3-menu-horizontal ul ul > li.yui3-menuitem-active > a, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-active, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-menuvisible,.reportal-table>thead>tr>td, .reportal-table>thead>tr>th,.reportal-table.reportal-barchart>thead>tr,.reportal-table .btn.hierarchy-search.visible {background-color: " + lightPrimaryColor + "\n;}.kpi-tile,.reportal-hierarchy-table tr.firstInBlock>td:first-child {background: " + lightPrimaryColor + "\n;}a, .link {color: " + buttonMainColor + @@ -104,7 +106,7 @@ class ReportMaster { "\n !important;}a:active, a:visited, .link:active, .link:visited {color: " + buttonMainColor + "\n;}.btn.btn-primary, button.btn-primary,.dd-wrapper .dd-button-menu button {background-color: " + buttonMainColor + "\n;}.dd-wrapper .dd-button-menu button:focus {outline-color: " + buttonMainColor + - "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.toggle input:checked + label {color: " + buttonTextColor + + "\n;}.btn.btn-primary, button.btn-primary,.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.filter-bar div,.toggle input:checked + label {color: " + buttonTextColor + "\n;}.toggle input:not(checked) + label {background: " + buttonTextColor + "\n;}.icon-face-positive,.cf_positive {fill: " + positiveColor + "\n;}.cf_positive {color: " + positiveColor + @@ -112,22 +114,19 @@ class ReportMaster { "\n;}.cf_neutral {color: " + neutralColor + "\n;}.icon-face-negative,.cf_negative {fill: " + negativeColor + "\n;}.cf_negative {color: " + negativeColor + - "\n;}.filter-bar .filter-button {background-color: " + dividerColor + - "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + dividerColor + "\n;}.filter-bar div,.toggle input:checked + label {background: " + dividerColor + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before,.toggle input:checked + label,.toggle input:not(checked) + label {border-color: " + dividerColor + "\n;}.toggle input:not(checked) + label {color: " + dividerColor + - "\n;}.filter-bar .filter-button {fill: " + secondaryTextColor + - "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus,[type=radio] + label:after {background-color: " + secondaryTextColor + - "\n;}.filter-bar div,.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + "\n;}.legend .cf_positive:before,.reportal-table>tbody>tr>td.cf_positive:after {background: " + positiveColor + "\n;}.legend .cf_neutral:before,.reportal-table>tbody>tr>td.cf_neutral:after {background: " + neutralColor + "\n;}.legend .cf_negative:before,.reportal-table>tbody>tr>td.cf_negative:after {background: " + negativeColor + "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):after {border-left: 1px solid " + secondaryTextColor + "\n;}[type=radio]:checked:focus + label:before,[type=radio]:not(:checked):focus + label:before,[type=checkbox]:checked:focus + label:before,[type=checkbox]:not(:checked):focus + label:before {border: 1px solid " + secondaryTextColor + - "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):before,.reportal-select.reportal-dropdown>span:after,.hitlist-dropdown-button:after {border-color: " + dividerColor + + "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):before,.reportal-select.reportal-dropdown>span:after,.hitlist-dropdown-button:after {border-color: " + primaryTextColor + "\n transparent transparent;}.yui3-menu-horizontal ul > li > a,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel,.reportal-hitlist-container .yui3-datatable-cell,.reportal-hitlist-container .yui3-datatable-cell:hover,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {color: " + primaryTextColor + "\n !important;}.yui3-menu-horizontal ul ul > li > *:nth-last-child(2):before {border-color: transparent transparent transparent " + backgroundColor + + "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + + "\n;}[type=radio] + label:after {background-color: " + secondaryTextColor + "\n;}.reportal-select select,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {border: 1px solid " + dividerColor + "\n;}.reportal-table .btn.hierarchy-search.visible {border-bottom: 1px solid " + dividerColor + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {background-color: " + lightDividerColor + From 395db60a8a4935dc286f34ac1220406040066871 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 16:37:26 +0300 Subject: [PATCH 209/224] color config --- Static/ReportMaster.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index b16f156..66ccda6 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -91,12 +91,14 @@ class ReportMaster { str += "* {outline-color: " + buttonHoverColor + "\n;}a:hover, .link:hover {color: " + buttonHoverColor + "\n;}.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.dd-wrapper .dd-button-menu button:hover {background-color: " + buttonHoverColor + - "\n;}body, body.reportal-viewmode,.reportal-select select,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {color: " + primaryTextColor + + "\n;}body, body.reportal-viewmode,.reportal-select select,.toggle input:not(checked) + label,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {color: " + primaryTextColor + "\n;}[class^=icon-],.filter-bar .filter-button,.yui3-menu-horizontal ul > li > a {fill: " + primaryTextColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {background-color: " + primaryTextColor + - "\n;}body, body.reportal-viewmode,.filter-bar .filter-button,.yui3-menu-horizontal ul > li > a {background-color: " + backgroundColor + - "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + backgroundColor + - "\n;}.report-filters-horizontal,.yui3-menu-horizontal ul > li.css-menu-selected > a, .yui3-menu-horizontal ul > li.css-menu-child-selected > a, .yui3-menu-horizontal ul > li.css-menu-topitem > a:hover, .yui3-menu-horizontal ul > li > a.yui3-menu-label-menuvisible:not(.css-menu-sublabel),.yui3-menu-horizontal ul ul > li.yui3-menuitem-active > a, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-active, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-menuvisible,.reportal-table>thead>tr>td, .reportal-table>thead>tr>th,.reportal-table.reportal-barchart>thead>tr,.reportal-table .btn.hierarchy-search.visible {background-color: " + lightPrimaryColor + + "\n;}.toggle input:checked + label {background: " + primaryTextColor + + "\n;}.toggle input:checked + label,.toggle input:not(checked) + label {border-color: " + primaryTextColor + + "\n;}body, body.reportal-viewmode,.yui3-menu-horizontal ul > li > a {background-color: " + backgroundColor + + "\n;}.report-filters-horizontal,.filter-bar .filter-button,.yui3-menu-horizontal ul > li.css-menu-selected > a, .yui3-menu-horizontal ul > li.css-menu-child-selected > a, .yui3-menu-horizontal ul > li.css-menu-topitem > a:hover, .yui3-menu-horizontal ul > li > a.yui3-menu-label-menuvisible:not(.css-menu-sublabel),.yui3-menu-horizontal ul ul > li.yui3-menuitem-active > a, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-active, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-menuvisible,.reportal-table>thead>tr>td, .reportal-table>thead>tr>th,.reportal-table.reportal-barchart>thead>tr,.reportal-table .btn.hierarchy-search.visible {background-color: " + lightPrimaryColor + + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + lightPrimaryColor + "\n;}.kpi-tile,.reportal-hierarchy-table tr.firstInBlock>td:first-child {background: " + lightPrimaryColor + "\n;}a, .link {color: " + buttonMainColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight {background-color: " + buttonMainColor + @@ -114,9 +116,8 @@ class ReportMaster { "\n;}.cf_neutral {color: " + neutralColor + "\n;}.icon-face-negative,.cf_negative {fill: " + negativeColor + "\n;}.cf_negative {color: " + negativeColor + - "\n;}.filter-bar div,.toggle input:checked + label {background: " + dividerColor + - "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before,.toggle input:checked + label,.toggle input:not(checked) + label {border-color: " + dividerColor + - "\n;}.toggle input:not(checked) + label {color: " + dividerColor + + "\n;}.filter-bar div {background: " + dividerColor + + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {border-color: " + dividerColor + "\n;}.legend .cf_positive:before,.reportal-table>tbody>tr>td.cf_positive:after {background: " + positiveColor + "\n;}.legend .cf_neutral:before,.reportal-table>tbody>tr>td.cf_neutral:after {background: " + neutralColor + "\n;}.legend .cf_negative:before,.reportal-table>tbody>tr>td.cf_negative:after {background: " + negativeColor + @@ -125,16 +126,15 @@ class ReportMaster { "\n;}.yui3-menu-horizontal ul > li > *:nth-last-child(2):before,.reportal-select.reportal-dropdown>span:after,.hitlist-dropdown-button:after {border-color: " + primaryTextColor + "\n transparent transparent;}.yui3-menu-horizontal ul > li > a,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel,.reportal-hitlist-container .yui3-datatable-cell,.reportal-hitlist-container .yui3-datatable-cell:hover,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {color: " + primaryTextColor + "\n !important;}.yui3-menu-horizontal ul ul > li > *:nth-last-child(2):before {border-color: transparent transparent transparent " + backgroundColor + + "\n;}.reportal-select select,[type=\"checkbox\"] + label:before,[type=radio] + label:before,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {border: 1px solid " + dividerColor + + "\n;}.reportal-table .btn.hierarchy-search.visible {border-bottom: 1px solid " + dividerColor + "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + "\n;}[type=radio] + label:after {background-color: " + secondaryTextColor + - "\n;}.reportal-select select,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {border: 1px solid " + dividerColor + - "\n;}.reportal-table .btn.hierarchy-search.visible {border-bottom: 1px solid " + dividerColor + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {background-color: " + lightDividerColor + "\n;}[type=radio]:disabled + label, [type=checkbox]:disabled + label {color: " + disabledTextColor + - "\n;}[type=\"checkbox\"] + label:before,[type=radio] + label:before {border: 1px solid " + lightDividerColor + - "\n;}.reportal-table>tbody>tr>td {border-bottom: 1px solid " + lightDividerColor + "\n;}.toggle label,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {border: solid 1px " + dividerColor + "\n;}table>thead td.sortable:not(.hierarchy-search-visible):after {color: " + primaryTextColor + + "\n;}.reportal-table>tbody>tr>td {border-bottom: 1px solid " + lightDividerColor + "\n;}.reportal-hierarchy-table>tbody>tr>td[class*=_dc]:nth-last-child(even) {background: " + tableColumnColor + "\n;}.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {background-color: " + tableColumnColor + "\n;}.reportal-hierarchy-table tr.firstInBlock:not(:first-child)>td {border-top: 3px " + dividerColor + From 275cc428d2be7ddb8c3764edcd6ddf9314df8a4d Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 16:43:16 +0300 Subject: [PATCH 210/224] color config --- Static/ReportMaster.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 66ccda6..05e54e8 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -116,8 +116,9 @@ class ReportMaster { "\n;}.cf_neutral {color: " + neutralColor + "\n;}.icon-face-negative,.cf_negative {fill: " + negativeColor + "\n;}.cf_negative {color: " + negativeColor + - "\n;}.filter-bar div {background: " + dividerColor + - "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {border-color: " + dividerColor + + "\n;}.filter-bar div {background: " + secondaryTextColor + + "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + + "\n;}[type=radio] + label:after {background-color: " + secondaryTextColor + "\n;}.legend .cf_positive:before,.reportal-table>tbody>tr>td.cf_positive:after {background: " + positiveColor + "\n;}.legend .cf_neutral:before,.reportal-table>tbody>tr>td.cf_neutral:after {background: " + neutralColor + "\n;}.legend .cf_negative:before,.reportal-table>tbody>tr>td.cf_negative:after {background: " + negativeColor + @@ -128,8 +129,7 @@ class ReportMaster { "\n !important;}.yui3-menu-horizontal ul ul > li > *:nth-last-child(2):before {border-color: transparent transparent transparent " + backgroundColor + "\n;}.reportal-select select,[type=\"checkbox\"] + label:before,[type=radio] + label:before,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {border: 1px solid " + dividerColor + "\n;}.reportal-table .btn.hierarchy-search.visible {border-bottom: 1px solid " + dividerColor + - "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + - "\n;}[type=radio] + label:after {background-color: " + secondaryTextColor + + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {border-color: " + dividerColor + "\n;}[type=radio]:disabled:not(:checked) + label:before,[type=radio]:disabled:checked + label:before,[type=checkbox]:disabled:not(:checked) + label:before,[type=checkbox]:disabled:checked + label:before {background-color: " + lightDividerColor + "\n;}[type=radio]:disabled + label, [type=checkbox]:disabled + label {color: " + disabledTextColor + "\n;}.toggle label,.reportal-hitlist-container .hitlist-tags-container .hitlist-tag {border: solid 1px " + dividerColor + From 5c900764cdb170cfcb10b6d12c52372aaccf63e2 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 11 Apr 2017 16:46:22 +0300 Subject: [PATCH 211/224] color config --- Static/ReportMaster.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 05e54e8..fd7b9db 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -91,11 +91,9 @@ class ReportMaster { str += "* {outline-color: " + buttonHoverColor + "\n;}a:hover, .link:hover {color: " + buttonHoverColor + "\n;}.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus, button.btn-primary:hover, button.btn-primary:active, button.btn-primary:focus,.dd-wrapper .dd-button-menu button:hover {background-color: " + buttonHoverColor + - "\n;}body, body.reportal-viewmode,.reportal-select select,.toggle input:not(checked) + label,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {color: " + primaryTextColor + + "\n;}body, body.reportal-viewmode,.reportal-select select,.reportal-table .cf_positive, .reportal-table .cf_neutral, .reportal-table .cf_negative,.hitlist-dropdown-panel .hitlist-filter-item>input.hitlist-opentext-field, .hitlist-dropdown-panel .hitlist-filter-item>input.ac, .hitlist-dropdown-panel .hitlist-filter-item>.hitlist-toggle-field>input.hitlist-filter-text-field, .hitlist-dropdown-panel .hitlist-filter-item>select,.reportal-datepicker>span>span> input,.yui-calcontainer select.yui-cal-nav-mc, .yui-calcontainer input.yui-cal-nav-yc {color: " + primaryTextColor + "\n;}[class^=icon-],.filter-bar .filter-button,.yui3-menu-horizontal ul > li > a {fill: " + primaryTextColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {background-color: " + primaryTextColor + - "\n;}.toggle input:checked + label {background: " + primaryTextColor + - "\n;}.toggle input:checked + label,.toggle input:not(checked) + label {border-color: " + primaryTextColor + "\n;}body, body.reportal-viewmode,.yui3-menu-horizontal ul > li > a {background-color: " + backgroundColor + "\n;}.report-filters-horizontal,.filter-bar .filter-button,.yui3-menu-horizontal ul > li.css-menu-selected > a, .yui3-menu-horizontal ul > li.css-menu-child-selected > a, .yui3-menu-horizontal ul > li.css-menu-topitem > a:hover, .yui3-menu-horizontal ul > li > a.yui3-menu-label-menuvisible:not(.css-menu-sublabel),.yui3-menu-horizontal ul ul > li.yui3-menuitem-active > a, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-active, .yui3-menu-horizontal ul ul > li > a.yui3-menu-label-menuvisible,.reportal-table>thead>tr>td, .reportal-table>thead>tr>th,.reportal-table.reportal-barchart>thead>tr,.reportal-table .btn.hierarchy-search.visible {background-color: " + lightPrimaryColor + "\n;}.filter-bar .filter-button:hover, .filter-bar .filter-button:active, .filter-bar .filter-button:focus {fill: " + lightPrimaryColor + @@ -116,9 +114,10 @@ class ReportMaster { "\n;}.cf_neutral {color: " + neutralColor + "\n;}.icon-face-negative,.cf_negative {fill: " + negativeColor + "\n;}.cf_negative {color: " + negativeColor + - "\n;}.filter-bar div {background: " + secondaryTextColor + - "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + + "\n;}.filter-bar div,.toggle input:checked + label {background: " + secondaryTextColor + + "\n;}.reportal-checkbox > label, .reportal-radio > label, .reportal-select > label, .reportal-input > label, .reportal-datepicker > label, .reportal-hierarchy > label,[type=radio] + label, [type=checkbox] + label,[type=radio]:disabled:checked + label:after, [type=checkbox]:disabled:checked + label:after,[type=\"checkbox\"] + label:after,.toggle input:not(checked) + label,.dd-target-button .dd-target-button-arrow, .dd-target-button .dd-target-button-text {color: " + secondaryTextColor + "\n;}[type=radio] + label:after {background-color: " + secondaryTextColor + + "\n;}.toggle input:checked + label,.toggle input:not(checked) + label {border-color: " + secondaryTextColor + "\n;}.legend .cf_positive:before,.reportal-table>tbody>tr>td.cf_positive:after {background: " + positiveColor + "\n;}.legend .cf_neutral:before,.reportal-table>tbody>tr>td.cf_neutral:after {background: " + neutralColor + "\n;}.legend .cf_negative:before,.reportal-table>tbody>tr>td.cf_negative:after {background: " + negativeColor + From f97cda2600c728706f99b6ae864b0ac8f9f33990 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Wed, 12 Apr 2017 14:04:54 +0300 Subject: [PATCH 212/224] color config --- Static/ReportMaster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index fd7b9db..76c310d 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -139,9 +139,9 @@ class ReportMaster { "\n;}.reportal-hierarchy-table tr.firstInBlock:not(:first-child)>td {border-top: 3px " + dividerColor + "\n double !important;}.reportal-collapsed-row .reportal-collapse-button:before,.reportal-uncollapsed-row .reportal-collapse-button:before,.hitlist-dropdown-button:after,.dd-target-button.dd-button-selected .dd-target-button-arrow {border-color: " + secondaryTextColor + "\n transparent transparent;}.reportal-no-children .reportal-collapse-button:before {border: 1px solid " + disabledTextColor + - "\n;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn {background: " + dividerColor + + "\n;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + backgroundColor + + "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn {background: " + dividerColor + "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + - "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + backgroundColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + buttonTextColor + "\n !important;}.hitlist-dropdown-panel {box-shadow: 0 2px 8px " + lightDividerColor + "\n !important;}.hitlist-dropdown-panel {background-color: " + tableColumnColor + From c0e32f023413a884283edae8b05fca37339aaf91 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Wed, 12 Apr 2017 14:13:06 +0300 Subject: [PATCH 213/224] color config --- Static/ReportMaster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/ReportMaster.js b/Static/ReportMaster.js index 76c310d..2d95ab4 100644 --- a/Static/ReportMaster.js +++ b/Static/ReportMaster.js @@ -139,8 +139,8 @@ class ReportMaster { "\n;}.reportal-hierarchy-table tr.firstInBlock:not(:first-child)>td {border-top: 3px " + dividerColor + "\n double !important;}.reportal-collapsed-row .reportal-collapse-button:before,.reportal-uncollapsed-row .reportal-collapse-button:before,.hitlist-dropdown-button:after,.dd-target-button.dd-button-selected .dd-target-button-arrow {border-color: " + secondaryTextColor + "\n transparent transparent;}.reportal-no-children .reportal-collapse-button:before {border: 1px solid " + disabledTextColor + - "\n;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn:hover,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + backgroundColor + - "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn {background: " + dividerColor + + "\n;}.hitlist-dropdown-button,.hitlist-export-button.hitlist-btn,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-cancel:hover,.yui-calcontainer .yui-cal-nav-b>.yui-cal-nav-btn:hover {background: " + backgroundColor + + "\n !important;}.hitlist-dropdown-button:hover,.hitlist-export-button.hitlist-btn:hover {background: " + dividerColor + "\n !important;}.hitlist-dropdown-panel,.yui-calcontainer .yui-cal-nav {border-color: " + dividerColor + "\n !important;}.yui-ac-bd>ul>li.yui-ac-highlight,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-filter-apply,.hitlist-dropdown-panel .hitlist-dropdown-panel-buttons>.hitlist-dropdown-clear:hover,.hitlist-nav-button,.hitlist-nav-page,.yui-calcontainer>table td.calcell.selected>a,.yui-calcontainer>table .calnav:hover {color: " + buttonTextColor + "\n !important;}.hitlist-dropdown-panel {box-shadow: 0 2px 8px " + lightDividerColor + From a3b8ff2df4bc1cb91289e5a0869e2a9bad7b4eef Mon Sep 17 00:00:00 2001 From: son-tsss Date: Fri, 12 May 2017 18:44:40 +0300 Subject: [PATCH 214/224] fixing categories text in IE --- Static/Page_dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 6289b08..5a99d85 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -482,7 +482,7 @@ class Page_dashboard{ */ static function txtThemeDistributionScript_Render(context){ var categoriesText = ""; var headers; From eef7a9c284e6dbfcb0a811e409584773a096686f Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 16 May 2017 18:15:10 +0300 Subject: [PATCH 215/224] DA table caching fix --- Static/Page_detailed_analysis.js | 1 + TADetailedAnalysisTable.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Static/Page_detailed_analysis.js b/Static/Page_detailed_analysis.js index 12f4999..ffa7332 100644 --- a/Static/Page_detailed_analysis.js +++ b/Static/Page_detailed_analysis.js @@ -209,6 +209,7 @@ class Page_detailed_analysis{ * @param {Object} context - {component: table, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log} */ static function tblDetailedAnalysis_Render(context){ + context.component.Caching.Enabled = false; var globals = TAHelper.GetGlobals(context); var selectedQuestion = context.state.Parameters.GetString("TA_VIEW_BY"); //var project = globals.report.DataSource.GetProject(Config.DS_Main); diff --git a/TADetailedAnalysisTable.js b/TADetailedAnalysisTable.js index 99efbdd..de1424b 100644 --- a/TADetailedAnalysisTable.js +++ b/TADetailedAnalysisTable.js @@ -37,7 +37,6 @@ class TADetailedAnalysisTable{ _distribution = distribution ? distribution : "0"; _multiQuestion = multiQuestion; _bar100 = bar100 ? bar100 : false; - var currentLanguage = _render(); } From e9bf769d36644c582918e9db411001c10cf1954d Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 30 May 2017 15:46:08 +0300 Subject: [PATCH 216/224] hitlist test --- Static/Page_comments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index 5c4c912..e70df67 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -138,7 +138,8 @@ class Page_comments{ } var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component); - var selectedCategory = _selectedCategory + var selectedCategory = _selectedCategory; + context.log.LogDebug(selectedCategory); if( selectedCategory && selectedCategory != "emptyv" ){ htlComments.AddTAColumn("categorysentiment", false, selectedCategory); } From 42b7cd92e1f0caf65f3585e28ed60ac0e0ac2a3f Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 30 May 2017 16:00:22 +0300 Subject: [PATCH 217/224] hitlist test --- Hierarchy.js | 113 ++++++++++++++++++++++++---------------- Static/Page_comments.js | 15 ++---- 2 files changed, 71 insertions(+), 57 deletions(-) diff --git a/Hierarchy.js b/Hierarchy.js index f6b85fd..0346347 100644 --- a/Hierarchy.js +++ b/Hierarchy.js @@ -7,36 +7,39 @@ * @param {Object} settings - object containing idColumnName, textColumnName, relationshipColumnName, textSeparator * */ -class Hierarchy{ - private var _globals; - private var _settings; - - private var _hierarchy = []; - private var _levels = []; - private var _flat = []; - private var _flatObject = {}; - - private var _defaultSettings = { +class Hierarchy { + private var + _globals; + private var + _settings; + + private var + _hierarchy = []; + private var + _levels = []; + private var + _flat = []; + private var + _flatObject = {}; + + private var + _defaultSettings = { idColumnName: "id", textColumnName: "__l9", relationshipColumnName: "parent", textSeparator: "|" }; - function Hierarchy(globals, settings) { - globals.log.LogDebug("hier"); + function + + Hierarchy(globals, settings) { _globals = globals; - _settings = _mergeOptions(_defaultSettings, settings); - globals.log.LogDebug(_settings.schemaId); + _settings = _mergeOptions(_defaultSettings, settings); var dataTable = _getDataTable(); - globals.log.LogDebug("gdt"); - if(!dataTable.Columns.Contains(_settings.textColumnName)) + if (!dataTable.Columns.Contains(_settings.textColumnName)) _settings.textColumnName = "__l9" - globals.log.LogDebug("set cur l"); - globals.log.LogDebug("merge options"); _generateFlatList(dataTable.Rows) - globals.log.LogDebug("gfl"); _setupHierarchy(0, null); } @@ -50,7 +53,9 @@ class Hierarchy{ * @param {Object} obj2 * @returns {Object} */ - private function _mergeOptions(obj1, obj2) { + private function + + _mergeOptions(obj1, obj2) { var obj3 = {}; for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; @@ -69,7 +74,9 @@ class Hierarchy{ * @description function to get DataTable from DatabaseDesigner * @returns {DataTable} */ - private function _getDataTable() { + private function + + _getDataTable() { var schema = _globals.confirmit.GetDBDesignerSchema(_settings.schemaId); var table = schema.GetDBDesignerTable(_settings.tableName); var dataTable = table.GetDataTable(); @@ -84,8 +91,10 @@ class Hierarchy{ * @description creating list of rows for variable _flat * @param {Object[]} rows - list of rows from db table */ - private function _generateFlatList(rows) { - for(var i = 0; i < rows.Count; ++i) { + private function + + _generateFlatList(rows) { + for (var i = 0; i < rows.Count; ++i) { var flatEntry = _createFlatEntry(rows[i]); _flat.push(flatEntry); } @@ -100,7 +109,9 @@ class Hierarchy{ * @param {Object} row - db table row * @returns {Object} */ - private function _createFlatEntry(row) { + private function + + _createFlatEntry(row) { var name = TAHelper.GetSelfName(row[_settings.textColumnName], _settings.textSeparator, _globals.log); var flatEntry = { id: row[_settings.idColumnName].toLowerCase(), @@ -118,7 +129,9 @@ class Hierarchy{ * @description function to get Array of hierarchical objects * @returns {Object[]} */ - function GetHierarchyArray() { + function + + GetHierarchyArray() { return _hierarchy; } @@ -131,10 +144,12 @@ class Hierarchy{ * @param {Number} level * @returns {Object[]} */ - function GetLevelArray(level) { - if(_levels.length > level) { + function + + GetLevelArray(level) { + if (_levels.length > level) { return _levels[level]; - }else{ + } else { throw new Error(201, "Hierarchy level index is out of range"); } @@ -147,7 +162,9 @@ class Hierarchy{ * @description function to get Count of levels in the hierarchy * @returns {Number} */ - function GetLevelsCount() { + function + + GetLevelsCount() { return _levels.length } @@ -158,7 +175,9 @@ class Hierarchy{ * @description function to get Array of rows from db table * @returns {Number} */ - function GetFlatArray() { + function + + GetFlatArray() { return _flat; } @@ -170,10 +189,12 @@ class Hierarchy{ * @param {String} id * @returns {Object} */ - function GetObjectById(id) { - if(_flatObject[id]) { + function + + GetObjectById(id) { + if (_flatObject[id]) { return _flatObject[id]; - }else{ + } else { throw new Error(201, "Hierarchy object id doesn't exist"); } } @@ -187,11 +208,13 @@ class Hierarchy{ * @param {Number} level * @param {Number} parentObj */ - private function _setupHierarchy( level, parentObj ) { - var parentObjId = parentObj ? parentObj.id : ""; + private function + + _setupHierarchy(level, parentObj) { + var parentObjId = parentObj ? parentObj.id : ""; - for(var i = 0; i < _flat.length; ++i) { - if( ( !parentObj && !_flat[i].parent ) || parentObjId.CompareTo( _flat[i].parent ? _flat[i].parent : "" ) == 0) { + for (var i = 0; i < _flat.length; ++i) { + if (( !parentObj && !_flat[i].parent ) || parentObjId.CompareTo(_flat[i].parent ? _flat[i].parent : "") == 0) { var newObj = { id: _flat[i].id, text: _flat[i].text, @@ -200,18 +223,18 @@ class Hierarchy{ subcells: [], level: level }; - if( _levels.length <= level ) { - _levels.push( [] ); + if (_levels.length <= level) { + _levels.push([]); } - _setupHierarchy( (level+1), newObj ); - if( !parentObj ) { - _hierarchy.push( newObj ); + _setupHierarchy((level + 1), newObj); + if (!parentObj) { + _hierarchy.push(newObj); } else { - parentObj.subcells.push( newObj ); + parentObj.subcells.push(newObj); } - _levels[ level ].push( newObj ); - _flatObject[ newObj.id ] = newObj; + _levels[level].push(newObj); + _flatObject[newObj.id] = newObj; } } } diff --git a/Static/Page_comments.js b/Static/Page_comments.js index e70df67..4071c9f 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -120,26 +120,17 @@ class Page_comments{ */ static function htlComments_Render(context){ if(!Config.GetTALibrary()){ + context.log.LogDebug("setHierFromHitlist"); Config.SetTALibrary(TAHelper.GetGlobals(context)); } if(!_folder){ - //context.log.LogDebug("htl render: "+context.state.Parameters["TA_FOLDERS"]); - //var selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null; - //_folder =Config.GetTALibrary().GetFolderById(selectedFolder); - + context.log.LogDebug("getFolderFromHitlist"); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - /*try { - selectedFolder = !context.state.Parameters.IsNull("TA_FOLDERS") ? context.state.Parameters.GetString("TA_FOLDERS") : null; - } catch(e){ - selectedFolder = null; - }*/ _folder = Config.GetTALibrary().GetFolderById(selectedFolder); - - } var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component); var selectedCategory = _selectedCategory; - context.log.LogDebug(selectedCategory); + context.log.LogDebug("selected category: "+selectedCategory); if( selectedCategory && selectedCategory != "emptyv" ){ htlComments.AddTAColumn("categorysentiment", false, selectedCategory); } From 0cb37b85d9c37ffb68ddd29954c9a5a5b2a2166c Mon Sep 17 00:00:00 2001 From: son-tsss Date: Tue, 30 May 2017 16:16:22 +0300 Subject: [PATCH 218/224] hitlist fix --- Static/Page_comments.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index 4071c9f..a5b8420 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -127,7 +127,9 @@ class Page_comments{ context.log.LogDebug("getFolderFromHitlist"); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); _folder = Config.GetTALibrary().GetFolderById(selectedFolder); + _selectedCategory = context.state.Parameters.GetString('TA_ALL_CATEGORIES'); } + var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component); var selectedCategory = _selectedCategory; context.log.LogDebug("selected category: "+selectedCategory); From d0615207dd1d23ddde09783dd4c324c2c80d4caf Mon Sep 17 00:00:00 2001 From: son-tsss Date: Thu, 1 Jun 2017 13:46:40 +0300 Subject: [PATCH 219/224] hitlist fix --- Static/Page_comments.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index a5b8420..ae9988e 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -120,11 +120,9 @@ class Page_comments{ */ static function htlComments_Render(context){ if(!Config.GetTALibrary()){ - context.log.LogDebug("setHierFromHitlist"); Config.SetTALibrary(TAHelper.GetGlobals(context)); } if(!_folder){ - context.log.LogDebug("getFolderFromHitlist"); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); _folder = Config.GetTALibrary().GetFolderById(selectedFolder); _selectedCategory = context.state.Parameters.GetString('TA_ALL_CATEGORIES'); @@ -132,7 +130,6 @@ class Page_comments{ var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component); var selectedCategory = _selectedCategory; - context.log.LogDebug("selected category: "+selectedCategory); if( selectedCategory && selectedCategory != "emptyv" ){ htlComments.AddTAColumn("categorysentiment", false, selectedCategory); } From ba31f9c84b298b72ff97d5dc77421d3ce08c972f Mon Sep 17 00:00:00 2001 From: son-tsss Date: Thu, 8 Jun 2017 16:41:33 +0300 Subject: [PATCH 220/224] debug --- Static/Page_comments.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index ae9988e..cce53c5 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -128,6 +128,7 @@ class Page_comments{ _selectedCategory = context.state.Parameters.GetString('TA_ALL_CATEGORIES'); } + context.log.LogDebug("FolderId: "+ _folder.GetId()); var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component); var selectedCategory = _selectedCategory; if( selectedCategory && selectedCategory != "emptyv" ){ From 73ea6e4ac90844e6896db4875e1b10a211892adb Mon Sep 17 00:00:00 2001 From: son-tsss Date: Thu, 8 Jun 2017 16:49:03 +0300 Subject: [PATCH 221/224] test hitlist --- Static/Page_comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static/Page_comments.js b/Static/Page_comments.js index cce53c5..041720e 100644 --- a/Static/Page_comments.js +++ b/Static/Page_comments.js @@ -122,11 +122,11 @@ class Page_comments{ if(!Config.GetTALibrary()){ Config.SetTALibrary(TAHelper.GetGlobals(context)); } - if(!_folder){ + //if(!_folder){ var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); _folder = Config.GetTALibrary().GetFolderById(selectedFolder); _selectedCategory = context.state.Parameters.GetString('TA_ALL_CATEGORIES'); - } + //} context.log.LogDebug("FolderId: "+ _folder.GetId()); var htlComments = new TAHitlistUtils(TAHelper.GetGlobals(context), _folder, context.component); From 9d11564bb85f81d710fd4806c0f2fce5063ef523 Mon Sep 17 00:00:00 2001 From: son-tsss Date: Thu, 15 Jun 2017 11:30:18 +0300 Subject: [PATCH 222/224] optimizing static variables --- Static/Page_dashboard.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Static/Page_dashboard.js b/Static/Page_dashboard.js index 5a99d85..b22efb3 100644 --- a/Static/Page_dashboard.js +++ b/Static/Page_dashboard.js @@ -5,7 +5,6 @@ class Page_dashboard{ private static var _filterComponents; private static var _filter_panel; - private static var _folder; private static var _currentLanguage; private static var _curDictionary; private static const _defaultParameters = [ @@ -71,7 +70,6 @@ class Page_dashboard{ paramUtils.SetDefaultParameterValues(_defaultParameters); var taParams = new TAParameters(TAHelper.GetGlobals(context), Config.GetTALibrary()); var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); - _folder = Config.GetTALibrary().GetFolderById(selectedFolder); _filterComponents = new FilterComponents(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFilterQuestions(), Config.DS_Main); _filter_panel = new FilterPanel(_filterComponents,_curDictionary); @@ -97,7 +95,9 @@ class Page_dashboard{ var level = context.state.Parameters.IsNull("TA_LEVEL") ? 0 : context.state.Parameters.GetString("TA_LEVEL"); var globals = TAHelper.GetGlobals(context); var table = context.component; - var topSentimentTable = new TATopSentimentTable(globals, _folder, table, sentiment, level); + var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); + var folder = Config.GetTALibrary().GetFolderById(selectedFolder); + var topSentimentTable = new TATopSentimentTable(globals, folder, table, sentiment, level); topSentimentTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); topSentimentTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis, comments"); topSentimentTable.GetTATableUtils().ClearTableDistributions(); @@ -116,7 +116,9 @@ class Page_dashboard{ var table = context.component; var period = context.state.Parameters.IsNull("TA_COMPARE_PERIODS") ? "qoq" : context.state.Parameters.GetString("TA_COMPARE_PERIODS"); - var topChangedTable = new TATopChangedTable(globals, _folder, table, sentiment, level, period); + var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); + var folder = Config.GetTALibrary().GetFolderById(selectedFolder); + var topChangedTable = new TATopChangedTable(globals, folder, table, sentiment, level, period); topChangedTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "reportal-barchart", "reportal-barchart-header"]); topChangedTable.GetTATableUtils().ClearTableDistributions(); topChangedTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES","detailed_analysis, comments"); @@ -217,8 +219,9 @@ class Page_dashboard{ var globals = TAHelper.GetGlobals(context); var table = context.component; var sentiment = context.state.Parameters.IsNull("TA_VIEW_SENTIMENT") ? "emptyv" : context.state.Parameters.GetString("TA_VIEW_SENTIMENT"); - - var themeDistributionTable = new TAThemeDistributionTable(globals, _folder, table, sentiment,Config); + var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); + var folder = Config.GetTALibrary().GetFolderById(selectedFolder); + var themeDistributionTable = new TAThemeDistributionTable(globals, folder, table, sentiment,Config); themeDistributionTable.GetTATableUtils().AddClasses(["reportal-table","reportal-categories", "striped-columns", "reportal-hierarchy-table"]); themeDistributionTable.GetTATableUtils().SetupDrilldown("TA_ALL_CATEGORIES", "detailed_analysis, comments"); themeDistributionTable.GetTATableUtils().ClearTableDistributions(); @@ -486,7 +489,9 @@ class Page_dashboard{ "z.forEach(item => item.innerHTML = '"+Translations.dictionary(_currentLanguage)['Categories']+"');" + ""; var headers; - var hierarhy = _folder.GetHierarchy().GetHierarchyArray() + var selectedFolder = TALibrary.GetTAFoldersParameterValue(context); + var folder = Config.GetTALibrary().GetFolderById(selectedFolder); + var hierarhy = folder.GetHierarchy().GetHierarchyArray() headers = new TATableData(TAHelper.GetGlobals(context), "tblThemeDistribution").GetTableRowHeaders(); var upgradeText = "