@qrvey/utils 1.2.4-25 → 1.2.4-26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +627 -627
- package/dist/charts/constants/AGGREGATE_INFO.js +9 -9
- package/dist/cjs/charts/constants/AGGREGATE_INFO.js +9 -9
- package/dist/cjs/columns/constants/COLUMN_INFO.js +1 -1
- package/dist/cjs/columns/constants/COLUMN_PROPERTY_INFO.js +2 -2
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_INFO.js +5 -5
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.js +15 -15
- package/dist/cjs/columns/constants/COMPOUND_COLUMN_INFO.js +3 -3
- package/dist/cjs/columns/constants/COMPOUND_COLUMN_PROPERTY_INFO.js +12 -12
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO.js +6 -6
- package/dist/cjs/dates/constants/DATE_DISTINCT_PROPERTY_INFO.js +3 -3
- package/dist/cjs/dates/constants/DATE_DISTINCT_TIME_PROPERTY_INFO.js +3 -3
- package/dist/cjs/dates/constants/DATE_GROUPING_PROPERTY_INFO.js +5 -5
- package/dist/cjs/dates/constants/DATE_GROUPING_TIME_PROPERTY_INFO.js +3 -3
- package/dist/cjs/dates/constants/DATE_YEAR_MONTHS_MMMM.d.ts +1 -0
- package/dist/cjs/dates/constants/DATE_YEAR_MONTHS_MMMM.js +4 -0
- package/dist/cjs/dates/constants/index.d.ts +1 -0
- package/dist/cjs/dates/constants/index.js +1 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO.js +3 -3
- package/dist/cjs/filters/constants/common/FILTER_DATE_SECTION_INFO.js +2 -2
- package/dist/cjs/filters/constants/common/FILTER_SCOPE_INFO.js +8 -8
- package/dist/cjs/filters/constants/common/FILTER_VALIDATOR_INFO.js +21 -21
- package/dist/cjs/filters/helpers/ui/getFilterPropertyLabel.d.ts +2 -1
- package/dist/cjs/filters/helpers/ui/getFilterPropertyLabel.js +2 -2
- package/dist/cjs/globalization/helpers/getI18nDateGroupLabel.d.ts +3 -0
- package/dist/cjs/globalization/helpers/getI18nDateGroupLabel.js +61 -0
- package/dist/cjs/globalization/helpers/index.d.ts +1 -0
- package/dist/cjs/globalization/helpers/index.js +13 -0
- package/dist/cjs/globalization/index.d.ts +1 -0
- package/dist/cjs/globalization/index.js +1 -0
- package/dist/cjs/globalization/interfaces/II18nServiceTranslate.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/II18nServiceTranslate.js +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderConditionalFormatting.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/common/II18nAgreggateLabels.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nDateGrouping.d.ts +28 -0
- package/dist/cjs/globalization/interfaces/common/II18nDateGrouping.js +2 -0
- package/dist/cjs/globalization/interfaces/common/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/common/index.js +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +3 -1
- package/dist/cjs/globalization/interfaces/filters/II18nFilterDateSections.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterDateSections.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/filters/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/filters/index.js +1 -0
- package/dist/cjs/globalization/interfaces/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/index.js +1 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +2 -2
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.js +1 -1
- package/dist/cjs/globalization/labels/common/I18N_AGGREGATE_LABEL.js +1 -1
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +2 -0
- package/dist/cjs/globalization/labels/common/I18N_DATE_GROUPING.d.ts +2 -0
- package/dist/cjs/globalization/labels/common/I18N_DATE_GROUPING.js +33 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +6 -1
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -1
- package/dist/cjs/interfaces/general/IGeneralInfo.d.ts +1 -0
- package/dist/cjs/qrvey/constants/CALCULATION_INFO.js +6 -6
- package/dist/cjs/qrvey/helpers/getPropertyLabel.d.ts +2 -1
- package/dist/cjs/qrvey/helpers/getPropertyLabel.js +6 -4
- package/dist/columns/constants/COLUMN_INFO.js +1 -1
- package/dist/columns/constants/COLUMN_PROPERTY_INFO.js +2 -2
- package/dist/columns/constants/COMPLEX_COLUMN_INFO.js +5 -5
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.js +15 -15
- package/dist/columns/constants/COMPOUND_COLUMN_INFO.js +3 -3
- package/dist/columns/constants/COMPOUND_COLUMN_PROPERTY_INFO.js +12 -12
- package/dist/columns/constants/NUMERICAL_COLUMN_INFO.js +6 -6
- package/dist/dates/constants/DATE_DISTINCT_PROPERTY_INFO.js +3 -3
- package/dist/dates/constants/DATE_DISTINCT_TIME_PROPERTY_INFO.js +3 -3
- package/dist/dates/constants/DATE_GROUPING_PROPERTY_INFO.js +5 -5
- package/dist/dates/constants/DATE_GROUPING_TIME_PROPERTY_INFO.js +3 -3
- package/dist/dates/constants/DATE_YEAR_MONTHS_MMMM.d.ts +1 -0
- package/dist/dates/constants/DATE_YEAR_MONTHS_MMMM.js +1 -0
- package/dist/dates/constants/index.d.ts +1 -0
- package/dist/dates/constants/index.js +1 -0
- package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO.js +3 -3
- package/dist/filters/constants/common/FILTER_DATE_SECTION_INFO.js +2 -2
- package/dist/filters/constants/common/FILTER_SCOPE_INFO.js +8 -8
- package/dist/filters/constants/common/FILTER_VALIDATOR_INFO.js +21 -21
- package/dist/filters/helpers/ui/getFilterPropertyLabel.d.ts +2 -1
- package/dist/filters/helpers/ui/getFilterPropertyLabel.js +2 -2
- package/dist/globalization/helpers/getI18nDateGroupLabel.d.ts +3 -0
- package/dist/globalization/helpers/getI18nDateGroupLabel.js +57 -0
- package/dist/globalization/helpers/index.d.ts +1 -0
- package/dist/globalization/helpers/index.js +1 -0
- package/dist/globalization/index.d.ts +1 -0
- package/dist/globalization/index.js +1 -0
- package/dist/globalization/interfaces/II18nServiceTranslate.d.ts +4 -0
- package/dist/globalization/interfaces/II18nServiceTranslate.js +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderConditionalFormatting.d.ts +1 -1
- package/dist/globalization/interfaces/common/II18nAgreggateLabels.d.ts +1 -1
- package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/globalization/interfaces/common/II18nDateGrouping.d.ts +28 -0
- package/dist/globalization/interfaces/common/II18nDateGrouping.js +1 -0
- package/dist/globalization/interfaces/common/index.d.ts +1 -0
- package/dist/globalization/interfaces/common/index.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilter.d.ts +3 -1
- package/dist/globalization/interfaces/filters/II18nFilterDateSections.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nFilterDateSections.js +1 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -1
- package/dist/globalization/interfaces/filters/index.d.ts +1 -0
- package/dist/globalization/interfaces/filters/index.js +1 -0
- package/dist/globalization/interfaces/index.d.ts +1 -0
- package/dist/globalization/interfaces/index.js +1 -0
- package/dist/globalization/labels/I18N_DEFAULT.js +2 -2
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.js +1 -1
- package/dist/globalization/labels/common/I18N_AGGREGATE_LABEL.js +1 -1
- package/dist/globalization/labels/common/I18N_COMMON.js +2 -0
- package/dist/globalization/labels/common/I18N_DATE_GROUPING.d.ts +2 -0
- package/dist/globalization/labels/common/I18N_DATE_GROUPING.js +30 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +6 -1
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -1
- package/dist/interfaces/general/IGeneralInfo.d.ts +1 -0
- package/dist/qrvey/constants/CALCULATION_INFO.js +6 -6
- package/dist/qrvey/helpers/getPropertyLabel.d.ts +2 -1
- package/dist/qrvey/helpers/getPropertyLabel.js +6 -4
- package/package.json +1 -1
- package/src/charts/constants/AGGREGATE_INFO.ts +9 -9
- package/src/columns/constants/COLUMN_INFO.ts +22 -22
- package/src/columns/constants/COLUMN_PROPERTY_INFO.ts +2 -2
- package/src/columns/constants/COMPLEX_COLUMN_INFO.ts +5 -5
- package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.ts +15 -15
- package/src/columns/constants/COMPOUND_COLUMN_INFO.ts +3 -3
- package/src/columns/constants/COMPOUND_COLUMN_PROPERTY_INFO.ts +12 -12
- package/src/columns/constants/NUMERICAL_COLUMN_INFO.ts +6 -6
- package/src/dates/constants/DATE_DISTINCT_PROPERTY_INFO.ts +3 -3
- package/src/dates/constants/DATE_DISTINCT_TIME_PROPERTY_INFO.ts +3 -3
- package/src/dates/constants/DATE_GROUPING_PROPERTY_INFO.ts +5 -5
- package/src/dates/constants/DATE_GROUPING_TIME_PROPERTY_INFO.ts +3 -3
- package/src/dates/constants/DATE_YEAR_MONTHS.ts +0 -1
- package/src/dates/constants/DATE_YEAR_MONTHS_MMMM.ts +1 -0
- package/src/dates/constants/index.ts +1 -0
- package/src/dates/relative/constants/RELATIVE_CURSOR_INFO.ts +3 -3
- package/src/filters/constants/common/FILTER_DATE_SECTION_INFO.ts +2 -2
- package/src/filters/constants/common/FILTER_SCOPE_INFO.ts +8 -8
- package/src/filters/constants/common/FILTER_VALIDATOR_INFO.ts +21 -21
- package/src/filters/helpers/ui/getFilterPropertyLabel.ts +3 -2
- package/src/globalization/helpers/getI18nDateGroupLabel.ts +66 -0
- package/src/globalization/helpers/index.ts +1 -0
- package/src/globalization/index.ts +1 -0
- package/src/globalization/interfaces/II18nServiceTranslate.ts +5 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderConditionalFormatting.ts +1 -1
- package/src/globalization/interfaces/common/II18nAgreggateLabels.ts +1 -1
- package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
- package/src/globalization/interfaces/common/II18nDateGrouping.ts +30 -0
- package/src/globalization/interfaces/common/index.ts +2 -0
- package/src/globalization/interfaces/filters/II18nFilter.ts +3 -1
- package/src/globalization/interfaces/filters/II18nFilterDateSections.ts +4 -0
- package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +1 -1
- package/src/globalization/interfaces/filters/index.ts +1 -0
- package/src/globalization/interfaces/index.ts +1 -0
- package/src/globalization/labels/I18N_DEFAULT.ts +2 -2
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.ts +1 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +0 -1
- package/src/globalization/labels/common/I18N_AGGREGATE_LABEL.ts +1 -1
- package/src/globalization/labels/common/I18N_COMMON.ts +2 -0
- package/src/globalization/labels/common/I18N_DATE_GROUPING.ts +34 -0
- package/src/globalization/labels/filters/I18N_FILTER.ts +6 -1
- package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +1 -1
- package/src/interfaces/general/IGeneralInfo.ts +1 -0
- package/src/qrvey/constants/CALCULATION_INFO.ts +6 -6
- package/src/qrvey/helpers/getPropertyLabel.ts +6 -2
|
@@ -5,13 +5,13 @@ import { AGGREGATE_ABBREVIATION } from "./AGGREGATE_ABBREVIATION";
|
|
|
5
5
|
import { AGGREGATE_LABEL } from "./AGGREGATE_LABEL";
|
|
6
6
|
|
|
7
7
|
export const AGGREGATE_INFO: { [key in IAggregateType]: IAggregateInfo } = {
|
|
8
|
-
[AGGREGATE.NONE]: { value: AGGREGATE.NONE, displayed: true, label: AGGREGATE_LABEL.NONE, shortLabel: AGGREGATE_LABEL.NONE, abbrLabel: AGGREGATE_ABBREVIATION.NONE },
|
|
9
|
-
[AGGREGATE.AVG]: { value: AGGREGATE.AVG, displayed: true, label: AGGREGATE_LABEL.AVG, shortLabel: AGGREGATE_LABEL.AVG, abbrLabel: AGGREGATE_ABBREVIATION.AVG },
|
|
10
|
-
[AGGREGATE.MEDIAN]: { value: AGGREGATE.MEDIAN, displayed: true, label: AGGREGATE_LABEL.MEDIAN, shortLabel: AGGREGATE_LABEL.MEDIAN, abbrLabel: AGGREGATE_ABBREVIATION.MEDIAN },
|
|
11
|
-
[AGGREGATE.MIN]: { value: AGGREGATE.MIN, displayed: true, label: AGGREGATE_LABEL.MIN, shortLabel: AGGREGATE_LABEL.MIN, abbrLabel: AGGREGATE_ABBREVIATION.MIN },
|
|
12
|
-
[AGGREGATE.MAX]: { value: AGGREGATE.MAX, displayed: true, label: AGGREGATE_LABEL.MAX, shortLabel: AGGREGATE_LABEL.MAX, abbrLabel: AGGREGATE_ABBREVIATION.MAX },
|
|
13
|
-
[AGGREGATE.SUM]: { value: AGGREGATE.SUM, displayed: true, label: AGGREGATE_LABEL.SUM, shortLabel: AGGREGATE_LABEL.SUM, abbrLabel: AGGREGATE_ABBREVIATION.SUM },
|
|
14
|
-
[AGGREGATE.STDEV]: { value: AGGREGATE.STDEV, displayed: true, label: AGGREGATE_LABEL.STDEV, shortLabel: AGGREGATE_LABEL.STDEV, abbrLabel: AGGREGATE_ABBREVIATION.STDEV },
|
|
15
|
-
[AGGREGATE.COUNT]: { value: AGGREGATE.COUNT, displayed: true, label: AGGREGATE_LABEL.COUNT, shortLabel: AGGREGATE_LABEL.COUNT, abbrLabel: AGGREGATE_ABBREVIATION.COUNT },
|
|
16
|
-
[AGGREGATE.DISTINCTCOUNT]: { value: AGGREGATE.DISTINCTCOUNT, displayed: true, label: AGGREGATE_LABEL.DISTINCTCOUNT, shortLabel: AGGREGATE_LABEL.DISTINCTCOUNT, abbrLabel: AGGREGATE_ABBREVIATION.DISTINCTCOUNT },
|
|
8
|
+
[AGGREGATE.NONE]: { value: AGGREGATE.NONE, displayed: true, label: AGGREGATE_LABEL.NONE, shortLabel: AGGREGATE_LABEL.NONE, abbrLabel: AGGREGATE_ABBREVIATION.NONE, i18nLabelPath: 'common.aggregate_labels.none' },
|
|
9
|
+
[AGGREGATE.AVG]: { value: AGGREGATE.AVG, displayed: true, label: AGGREGATE_LABEL.AVG, shortLabel: AGGREGATE_LABEL.AVG, abbrLabel: AGGREGATE_ABBREVIATION.AVG, i18nLabelPath: 'common.aggregate_labels.avg' },
|
|
10
|
+
[AGGREGATE.MEDIAN]: { value: AGGREGATE.MEDIAN, displayed: true, label: AGGREGATE_LABEL.MEDIAN, shortLabel: AGGREGATE_LABEL.MEDIAN, abbrLabel: AGGREGATE_ABBREVIATION.MEDIAN, i18nLabelPath: 'common.aggregate_labels.meidan' },
|
|
11
|
+
[AGGREGATE.MIN]: { value: AGGREGATE.MIN, displayed: true, label: AGGREGATE_LABEL.MIN, shortLabel: AGGREGATE_LABEL.MIN, abbrLabel: AGGREGATE_ABBREVIATION.MIN, i18nLabelPath: 'common.aggregate_labels.min' },
|
|
12
|
+
[AGGREGATE.MAX]: { value: AGGREGATE.MAX, displayed: true, label: AGGREGATE_LABEL.MAX, shortLabel: AGGREGATE_LABEL.MAX, abbrLabel: AGGREGATE_ABBREVIATION.MAX, i18nLabelPath: 'common.aggregate_labels.max' },
|
|
13
|
+
[AGGREGATE.SUM]: { value: AGGREGATE.SUM, displayed: true, label: AGGREGATE_LABEL.SUM, shortLabel: AGGREGATE_LABEL.SUM, abbrLabel: AGGREGATE_ABBREVIATION.SUM, i18nLabelPath: 'common.aggregate_labels.sum' },
|
|
14
|
+
[AGGREGATE.STDEV]: { value: AGGREGATE.STDEV, displayed: true, label: AGGREGATE_LABEL.STDEV, shortLabel: AGGREGATE_LABEL.STDEV, abbrLabel: AGGREGATE_ABBREVIATION.STDEV, i18nLabelPath: 'common.aggregate_labels.stdev' },
|
|
15
|
+
[AGGREGATE.COUNT]: { value: AGGREGATE.COUNT, displayed: true, label: AGGREGATE_LABEL.COUNT, shortLabel: AGGREGATE_LABEL.COUNT, abbrLabel: AGGREGATE_ABBREVIATION.COUNT, i18nLabelPath: 'common.aggregate_labels.count' },
|
|
16
|
+
[AGGREGATE.DISTINCTCOUNT]: { value: AGGREGATE.DISTINCTCOUNT, displayed: true, label: AGGREGATE_LABEL.DISTINCTCOUNT, shortLabel: AGGREGATE_LABEL.DISTINCTCOUNT, abbrLabel: AGGREGATE_ABBREVIATION.DISTINCTCOUNT, i18nLabelPath: 'common.aggregate_labels.distinct_count' },
|
|
17
17
|
};
|
|
@@ -10,28 +10,28 @@ import { NUMERICAL_COLUMN_INFO } from "./NUMERICAL_COLUMN_INFO";
|
|
|
10
10
|
* @description Key/array of column property info
|
|
11
11
|
*/
|
|
12
12
|
export const COLUMN_INFO: { [key in IColumnType]: IColumnInfo } = {
|
|
13
|
-
[COLUMN.SINGLE_CHOICE]: { label: COLUMN_LABEL.SINGLE_CHOICE, shortLabel: 'Single Choice', abbrLabel: 'SC', value: COLUMN.SINGLE_CHOICE, displayed: true },
|
|
14
|
-
[COLUMN.MULTIPLE_CHOICE]: { label: COLUMN_LABEL.MULTIPLE_CHOICE, shortLabel: 'Multiple Choice', abbrLabel: 'MC', value: COLUMN.MULTIPLE_CHOICE, displayed: true },
|
|
15
|
-
[COLUMN.YES_NO]: { label: COLUMN_LABEL.YES_NO, shortLabel: 'Yes No', abbrLabel: 'YS', value: COLUMN.YES_NO, displayed: true },
|
|
16
|
-
[COLUMN.RANKING]: { label: COLUMN_LABEL.RANKING, shortLabel: 'Ranking', abbrLabel: 'RAN', value: COLUMN.RANKING, displayed: true },
|
|
17
|
-
[COLUMN.DATE]: { label: COLUMN_LABEL.DATE, shortLabel: 'Date', abbrLabel: 'DA', value: COLUMN.DATE, displayed: true },
|
|
18
|
-
[COLUMN.SIGNATURE]: { label: COLUMN_LABEL.SIGNATURE, shortLabel: 'Signature', abbrLabel: 'SIGN', value: COLUMN.SIGNATURE, displayed: true },
|
|
19
|
-
[COLUMN.DROPDOWN]: { label: COLUMN_LABEL.DROPDOWN, shortLabel: 'Dropdown', abbrLabel: 'DD', value: COLUMN.DROPDOWN, displayed: true },
|
|
20
|
-
[COLUMN.IMAGE]: { label: COLUMN_LABEL.IMAGE, shortLabel: 'Image', abbrLabel: 'IMG', value: COLUMN.IMAGE, displayed: true },
|
|
21
|
-
[COLUMN.EMAIL_FORM]: { label: COLUMN_LABEL.EMAIL_FORM, shortLabel: 'Email', abbrLabel: 'EML', value: COLUMN.EMAIL_FORM, displayed: true },
|
|
22
|
-
[COLUMN.PHONE]: { label: COLUMN_LABEL.PHONE, shortLabel: 'Phone', abbrLabel: 'PHN', value: COLUMN.PHONE, displayed: true },
|
|
23
|
-
[COLUMN.PASSWORD]: { label: COLUMN_LABEL.PASSWORD, shortLabel: 'Password', abbrLabel: 'PWD', value: COLUMN.PASSWORD, displayed: true },
|
|
24
|
-
[COLUMN.CHECKLIST]: { label: COLUMN_LABEL.CHECKLIST, shortLabel: 'Check List', abbrLabel: 'CL', value: COLUMN.CHECKLIST, displayed: false },
|
|
25
|
-
[COLUMN.NPS_SCORE]: { label: COLUMN_LABEL.NPS_SCORE, shortLabel: 'NPS Score', abbrLabel: 'NPMS', value: COLUMN.NPS_SCORE, displayed: false },
|
|
26
|
-
[COLUMN.NPS_FEEDBACK]: { label: COLUMN_LABEL.NPS_FEEDBACK, shortLabel: 'NPS Feedback', abbrLabel: 'NPSFB', value: COLUMN.NPS_FEEDBACK, displayed: false },
|
|
27
|
-
[COLUMN.TEXT_LABEL]: { label: COLUMN_LABEL.TEXT_LABEL, shortLabel: 'Text Label', abbrLabel: 'TL', value: COLUMN.TEXT_LABEL, displayed: true },
|
|
28
|
-
[COLUMN.TEXT_CATEGORY]: { label: COLUMN_LABEL.TEXT_CATEGORY, shortLabel: 'Text Category', abbrLabel: 'TC', value: COLUMN.TEXT_CATEGORY, displayed: true },
|
|
29
|
-
[COLUMN.LOOKUP]: { label: COLUMN_LABEL.LOOKUP, shortLabel: 'Lookup', abbrLabel: 'LUP', value: COLUMN.LOOKUP, displayed: true },
|
|
30
|
-
[COLUMN.HEADLINE]: { label: COLUMN_LABEL.HEADLINE, shortLabel: 'Headline', abbrLabel: 'HL', value: COLUMN.HEADLINE, displayed: false },
|
|
31
|
-
[COLUMN.SECTION]: { label: COLUMN_LABEL.SECTION, shortLabel: 'Section', abbrLabel: 'SCN', value: COLUMN.SECTION, displayed: false },
|
|
32
|
-
[COLUMN.FORMULA]: { label: COLUMN_LABEL.FORMULA, shortLabel: 'Formula', abbrLabel: 'FML', value: COLUMN.FORMULA, displayed: true },
|
|
33
|
-
[COLUMN.AGGREGATED_FORMULA]: { label: COLUMN_LABEL.AGGREGATED_FORMULA, shortLabel: 'Agg Formula', abbrLabel: 'AF', value: COLUMN.AGGREGATED_FORMULA, displayed: true },
|
|
34
|
-
[COLUMN.BUCKET]: { label: COLUMN_LABEL.BUCKET, shortLabel: 'Bucket', abbrLabel: 'BCT', value: COLUMN.BUCKET, displayed: true },
|
|
13
|
+
[COLUMN.SINGLE_CHOICE]: { label: COLUMN_LABEL.SINGLE_CHOICE, shortLabel: 'Single Choice', abbrLabel: 'SC', value: COLUMN.SINGLE_CHOICE, displayed: true, i18nLabelPath: 'common.column_types.single_choice_label' },
|
|
14
|
+
[COLUMN.MULTIPLE_CHOICE]: { label: COLUMN_LABEL.MULTIPLE_CHOICE, shortLabel: 'Multiple Choice', abbrLabel: 'MC', value: COLUMN.MULTIPLE_CHOICE, displayed: true, i18nLabelPath: 'common.column_types.multiple_choice_label' },
|
|
15
|
+
[COLUMN.YES_NO]: { label: COLUMN_LABEL.YES_NO, shortLabel: 'Yes No', abbrLabel: 'YS', value: COLUMN.YES_NO, displayed: true, i18nLabelPath: 'common.column_types.yes_no_label' },
|
|
16
|
+
[COLUMN.RANKING]: { label: COLUMN_LABEL.RANKING, shortLabel: 'Ranking', abbrLabel: 'RAN', value: COLUMN.RANKING, displayed: true, i18nLabelPath: 'common.column_types.ranking_label' },
|
|
17
|
+
[COLUMN.DATE]: { label: COLUMN_LABEL.DATE, shortLabel: 'Date', abbrLabel: 'DA', value: COLUMN.DATE, displayed: true, i18nLabelPath: 'common.column_types.date_label' },
|
|
18
|
+
[COLUMN.SIGNATURE]: { label: COLUMN_LABEL.SIGNATURE, shortLabel: 'Signature', abbrLabel: 'SIGN', value: COLUMN.SIGNATURE, displayed: true, i18nLabelPath: 'common.column_types.signature_label' },
|
|
19
|
+
[COLUMN.DROPDOWN]: { label: COLUMN_LABEL.DROPDOWN, shortLabel: 'Dropdown', abbrLabel: 'DD', value: COLUMN.DROPDOWN, displayed: true, i18nLabelPath: 'common.column_types.dropdown_label' },
|
|
20
|
+
[COLUMN.IMAGE]: { label: COLUMN_LABEL.IMAGE, shortLabel: 'Image', abbrLabel: 'IMG', value: COLUMN.IMAGE, displayed: true, i18nLabelPath: 'common.column_types.image_label' },
|
|
21
|
+
[COLUMN.EMAIL_FORM]: { label: COLUMN_LABEL.EMAIL_FORM, shortLabel: 'Email', abbrLabel: 'EML', value: COLUMN.EMAIL_FORM, displayed: true, i18nLabelPath: 'common.column_types.email_form_label' },
|
|
22
|
+
[COLUMN.PHONE]: { label: COLUMN_LABEL.PHONE, shortLabel: 'Phone', abbrLabel: 'PHN', value: COLUMN.PHONE, displayed: true, i18nLabelPath: 'common.column_types.phone_label' },
|
|
23
|
+
[COLUMN.PASSWORD]: { label: COLUMN_LABEL.PASSWORD, shortLabel: 'Password', abbrLabel: 'PWD', value: COLUMN.PASSWORD, displayed: true, i18nLabelPath: 'common.column_types.password_label' },
|
|
24
|
+
[COLUMN.CHECKLIST]: { label: COLUMN_LABEL.CHECKLIST, shortLabel: 'Check List', abbrLabel: 'CL', value: COLUMN.CHECKLIST, displayed: false, i18nLabelPath: 'common.column_types.checklist_label' },
|
|
25
|
+
[COLUMN.NPS_SCORE]: { label: COLUMN_LABEL.NPS_SCORE, shortLabel: 'NPS Score', abbrLabel: 'NPMS', value: COLUMN.NPS_SCORE, displayed: false, i18nLabelPath: 'common.column_types.nps_score_label' },
|
|
26
|
+
[COLUMN.NPS_FEEDBACK]: { label: COLUMN_LABEL.NPS_FEEDBACK, shortLabel: 'NPS Feedback', abbrLabel: 'NPSFB', value: COLUMN.NPS_FEEDBACK, displayed: false, i18nLabelPath: 'common.column_types.nps_feedback_label' },
|
|
27
|
+
[COLUMN.TEXT_LABEL]: { label: COLUMN_LABEL.TEXT_LABEL, shortLabel: 'Text Label', abbrLabel: 'TL', value: COLUMN.TEXT_LABEL, displayed: true, i18nLabelPath: 'common.column_types.text_label_label' },
|
|
28
|
+
[COLUMN.TEXT_CATEGORY]: { label: COLUMN_LABEL.TEXT_CATEGORY, shortLabel: 'Text Category', abbrLabel: 'TC', value: COLUMN.TEXT_CATEGORY, displayed: true, i18nLabelPath: 'common.column_types.text_category_label' },
|
|
29
|
+
[COLUMN.LOOKUP]: { label: COLUMN_LABEL.LOOKUP, shortLabel: 'Lookup', abbrLabel: 'LUP', value: COLUMN.LOOKUP, displayed: true, i18nLabelPath: 'common.column_types.lookup_label' },
|
|
30
|
+
[COLUMN.HEADLINE]: { label: COLUMN_LABEL.HEADLINE, shortLabel: 'Headline', abbrLabel: 'HL', value: COLUMN.HEADLINE, displayed: false, i18nLabelPath: 'common.column_types.headline_label' },
|
|
31
|
+
[COLUMN.SECTION]: { label: COLUMN_LABEL.SECTION, shortLabel: 'Section', abbrLabel: 'SCN', value: COLUMN.SECTION, displayed: false, i18nLabelPath: 'common.column_types.section_label' },
|
|
32
|
+
[COLUMN.FORMULA]: { label: COLUMN_LABEL.FORMULA, shortLabel: 'Formula', abbrLabel: 'FML', value: COLUMN.FORMULA, displayed: true, i18nLabelPath: 'common.column_types.formula_label' },
|
|
33
|
+
[COLUMN.AGGREGATED_FORMULA]: { label: COLUMN_LABEL.AGGREGATED_FORMULA, shortLabel: 'Agg Formula', abbrLabel: 'AF', value: COLUMN.AGGREGATED_FORMULA, displayed: true, i18nLabelPath: 'common.column_types.aggregated_formula_label' },
|
|
34
|
+
[COLUMN.BUCKET]: { label: COLUMN_LABEL.BUCKET, shortLabel: 'Bucket', abbrLabel: 'BCT', value: COLUMN.BUCKET, displayed: true, i18nLabelPath: 'common.column_types.bucket_label' },
|
|
35
35
|
|
|
36
36
|
...NUMERICAL_COLUMN_INFO,
|
|
37
37
|
...COMPOUND_COLUMN_INFO,
|
|
@@ -11,8 +11,8 @@ import { DATE_DISTINCT_TIME_PROPERTY_INFO_LIST } from "../../dates/constants/DAT
|
|
|
11
11
|
|
|
12
12
|
export const COLUMN_PROPERTY_INFO: { [key in IColumnType]?: IColumnPropertyInfo[] } = {
|
|
13
13
|
[COLUMN.LOOKUP]: [
|
|
14
|
-
{ value: COLUMN_PROPERTY.LOOKUP_DISPLAY, label: 'Display', shortLabel: 'Display', abbrLabel: 'DSY', displayed: true },
|
|
15
|
-
{ value: COLUMN_PROPERTY.LOOKUP_VALUE, label: 'Value', shortLabel: 'Value', abbrLabel: 'Val', displayed: true }
|
|
14
|
+
{ value: COLUMN_PROPERTY.LOOKUP_DISPLAY, label: 'Display', shortLabel: 'Display', abbrLabel: 'DSY', displayed: true, i18nLabelPath: 'common.properties.lookup_display_label' },
|
|
15
|
+
{ value: COLUMN_PROPERTY.LOOKUP_VALUE, label: 'Value', shortLabel: 'Value', abbrLabel: 'Val', displayed: true, i18nLabelPath: 'common.properties.lookup_display_value' }
|
|
16
16
|
],
|
|
17
17
|
[COLUMN.DATE]: [
|
|
18
18
|
...DATE_GROUPING_PROPERTY_INFO_LIST,
|
|
@@ -7,9 +7,9 @@ import { COMPLEX_COLUMN_LABEL } from "./COMPLEX_COLUMN_LABEL";
|
|
|
7
7
|
* @description Key/array of compound column property info
|
|
8
8
|
*/
|
|
9
9
|
export const COMPLEX_COLUMN_INFO: { [key in IComplexColumnType]: IColumnInfo } = {
|
|
10
|
-
[COMPLEX_COLUMN.TEXTFIELD]: { label: COMPLEX_COLUMN_LABEL.TEXTFIELD, shortLabel: 'Textfield', abbrLabel: 'TF', value: COMPLEX_COLUMN.TEXTFIELD, displayed: true },
|
|
11
|
-
[COMPLEX_COLUMN.LONGTEXT]: { label: COMPLEX_COLUMN_LABEL.LONGTEXT, shortLabel: 'Longtext', abbrLabel: 'LT', value: COMPLEX_COLUMN.LONGTEXT, displayed: true },
|
|
12
|
-
[COMPLEX_COLUMN.FILEUPLOAD]: { label: COMPLEX_COLUMN_LABEL.FILEUPLOAD, shortLabel: 'File Upload', abbrLabel: 'FU', value: COMPLEX_COLUMN.FILEUPLOAD, displayed: true },
|
|
13
|
-
[COMPLEX_COLUMN.IMAGEUPLOAD]: { label: COMPLEX_COLUMN_LABEL.IMAGEUPLOAD, shortLabel: 'Image Upload', abbrLabel: 'IM', value: COMPLEX_COLUMN.IMAGEUPLOAD, displayed: true },
|
|
14
|
-
[COMPLEX_COLUMN.EXPRESSION]: { label: COMPLEX_COLUMN_LABEL.EXPRESSION, shortLabel: 'Expression', abbrLabel: 'EXP', value: COMPLEX_COLUMN.EXPRESSION, displayed: true },
|
|
10
|
+
[COMPLEX_COLUMN.TEXTFIELD]: { label: COMPLEX_COLUMN_LABEL.TEXTFIELD, shortLabel: 'Textfield', abbrLabel: 'TF', value: COMPLEX_COLUMN.TEXTFIELD, displayed: true, i18nLabelPath: 'common.column_types.textfield_label' },
|
|
11
|
+
[COMPLEX_COLUMN.LONGTEXT]: { label: COMPLEX_COLUMN_LABEL.LONGTEXT, shortLabel: 'Longtext', abbrLabel: 'LT', value: COMPLEX_COLUMN.LONGTEXT, displayed: true, i18nLabelPath: 'common.column_types.longtext_label' },
|
|
12
|
+
[COMPLEX_COLUMN.FILEUPLOAD]: { label: COMPLEX_COLUMN_LABEL.FILEUPLOAD, shortLabel: 'File Upload', abbrLabel: 'FU', value: COMPLEX_COLUMN.FILEUPLOAD, displayed: true, i18nLabelPath: 'common.column_types.fileupload_label' },
|
|
13
|
+
[COMPLEX_COLUMN.IMAGEUPLOAD]: { label: COMPLEX_COLUMN_LABEL.IMAGEUPLOAD, shortLabel: 'Image Upload', abbrLabel: 'IM', value: COMPLEX_COLUMN.IMAGEUPLOAD, displayed: true, i18nLabelPath: 'common.column_types.imageupload_label' },
|
|
14
|
+
[COMPLEX_COLUMN.EXPRESSION]: { label: COMPLEX_COLUMN_LABEL.EXPRESSION, shortLabel: 'Expression', abbrLabel: 'EXP', value: COMPLEX_COLUMN.EXPRESSION, displayed: true, i18nLabelPath: 'common.column_types.expression_label' },
|
|
15
15
|
};
|
|
@@ -9,28 +9,28 @@ import { COMPLEX_COLUMN_PROPERTY_LABEL } from "./COMPLEX_COLUMN_PROPERTY_LABEL";
|
|
|
9
9
|
*/
|
|
10
10
|
export const COMPLEX_COLUMN_PROPERTY_INFO: { [key in IComplexColumnType]: IColumnPropertyInfo[] } = {
|
|
11
11
|
[COMPLEX_COLUMN.LONGTEXT]: [
|
|
12
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.LONGTEXT_WORDS, shortLabel: 'Words', abbrLabel: 'WRD', value: COMPLEX_COLUMN_PROPERTY.LONGTEXT_WORDS, displayed: true },
|
|
13
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.LONGTEXT_KEYPHRASES, shortLabel: 'Keyphrases', abbrLabel: 'KP', value: COMPLEX_COLUMN_PROPERTY.LONGTEXT_KEYPHRASES, displayed: true },
|
|
14
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.LONGTEXT_SENTIMENTS, shortLabel: 'Sentiments', abbrLabel: 'SEN', value: COMPLEX_COLUMN_PROPERTY.LONGTEXT_SENTIMENTS, displayed: true },
|
|
15
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.LONGTEXT_ENTITIES, shortLabel: 'Entities', abbrLabel: 'ENT', value: COMPLEX_COLUMN_PROPERTY.LONGTEXT_ENTITIES, displayed: true },
|
|
12
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.LONGTEXT_WORDS, shortLabel: 'Words', abbrLabel: 'WRD', value: COMPLEX_COLUMN_PROPERTY.LONGTEXT_WORDS, displayed: true, i18nLabelPath: 'common.properties.longtext_words_label' },
|
|
13
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.LONGTEXT_KEYPHRASES, shortLabel: 'Keyphrases', abbrLabel: 'KP', value: COMPLEX_COLUMN_PROPERTY.LONGTEXT_KEYPHRASES, displayed: true, i18nLabelPath: 'common.properties.longtext_keyphrases_label' },
|
|
14
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.LONGTEXT_SENTIMENTS, shortLabel: 'Sentiments', abbrLabel: 'SEN', value: COMPLEX_COLUMN_PROPERTY.LONGTEXT_SENTIMENTS, displayed: true, i18nLabelPath: 'common.properties.longtext_sentiments_label' },
|
|
15
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.LONGTEXT_ENTITIES, shortLabel: 'Entities', abbrLabel: 'ENT', value: COMPLEX_COLUMN_PROPERTY.LONGTEXT_ENTITIES, displayed: true, i18nLabelPath: 'common.properties.longtext_entitiestype_label' },
|
|
16
16
|
],
|
|
17
17
|
[COMPLEX_COLUMN.TEXTFIELD]: [
|
|
18
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.TEXTFIELD_WORDS, shortLabel: 'Words', abbrLabel: 'WRD', value: COMPLEX_COLUMN_PROPERTY.TEXTFIELD_WORDS, displayed: true },
|
|
19
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.TEXTFIELD_KEYPHRASES, shortLabel: 'Keyphrases', abbrLabel: 'KP', value: COMPLEX_COLUMN_PROPERTY.TEXTFIELD_KEYPHRASES, displayed: true },
|
|
20
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.TEXTFIELD_SENTIMENTS, shortLabel: 'Sentiments', abbrLabel: 'SEN', value: COMPLEX_COLUMN_PROPERTY.TEXTFIELD_SENTIMENTS, displayed: true },
|
|
21
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.TEXTFIELD_ENTITIES, shortLabel: 'Entities', abbrLabel: 'ENT', value: COMPLEX_COLUMN_PROPERTY.TEXTFIELD_ENTITIES, displayed: true },
|
|
18
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.TEXTFIELD_WORDS, shortLabel: 'Words', abbrLabel: 'WRD', value: COMPLEX_COLUMN_PROPERTY.TEXTFIELD_WORDS, displayed: true, i18nLabelPath: 'common.properties.textfield_words_label'},
|
|
19
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.TEXTFIELD_KEYPHRASES, shortLabel: 'Keyphrases', abbrLabel: 'KP', value: COMPLEX_COLUMN_PROPERTY.TEXTFIELD_KEYPHRASES, displayed: true, i18nLabelPath: 'common.properties.textfield_keywords_label' },
|
|
20
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.TEXTFIELD_SENTIMENTS, shortLabel: 'Sentiments', abbrLabel: 'SEN', value: COMPLEX_COLUMN_PROPERTY.TEXTFIELD_SENTIMENTS, displayed: true, i18nLabelPath: 'common.properties.textfield_sentiment_label' },
|
|
21
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.TEXTFIELD_ENTITIES, shortLabel: 'Entities', abbrLabel: 'ENT', value: COMPLEX_COLUMN_PROPERTY.TEXTFIELD_ENTITIES, displayed: true, i18nLabelPath: 'common.properties.textfield_entitiestype_label' },
|
|
22
22
|
],
|
|
23
23
|
[COMPLEX_COLUMN.FILEUPLOAD]: [
|
|
24
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.FILEUPLOAD_FILESIZE, shortLabel: 'Size', abbrLabel: 'SZ', value: COMPLEX_COLUMN_PROPERTY.FILEUPLOAD_FILESIZE, displayed: true },
|
|
25
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.FILEUPLOAD_FILETYPE, shortLabel: 'Type', abbrLabel: 'TP', value: COMPLEX_COLUMN_PROPERTY.FILEUPLOAD_FILETYPE, displayed: true },
|
|
24
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.FILEUPLOAD_FILESIZE, shortLabel: 'Size', abbrLabel: 'SZ', value: COMPLEX_COLUMN_PROPERTY.FILEUPLOAD_FILESIZE, displayed: true, i18nLabelPath: 'common.properties.fileupload_filesize_label' },
|
|
25
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.FILEUPLOAD_FILETYPE, shortLabel: 'Type', abbrLabel: 'TP', value: COMPLEX_COLUMN_PROPERTY.FILEUPLOAD_FILETYPE, displayed: true, i18nLabelPath: 'common.properties.fileupload_filetype_label' },
|
|
26
26
|
],
|
|
27
27
|
[COMPLEX_COLUMN.EXPRESSION]: [
|
|
28
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.EXPRESSION_POSITIVE, shortLabel: 'Positive', abbrLabel: 'PO', value: COMPLEX_COLUMN_PROPERTY.EXPRESSION_POSITIVE, displayed: true },
|
|
29
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.EXPRESSION_NEGATIVE, shortLabel: 'Negative', abbrLabel: 'NE', value: COMPLEX_COLUMN_PROPERTY.EXPRESSION_NEGATIVE, displayed: true },
|
|
28
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.EXPRESSION_POSITIVE, shortLabel: 'Positive', abbrLabel: 'PO', value: COMPLEX_COLUMN_PROPERTY.EXPRESSION_POSITIVE, displayed: true, i18nLabelPath: 'common.properties.expression_positive_label' },
|
|
29
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.EXPRESSION_NEGATIVE, shortLabel: 'Negative', abbrLabel: 'NE', value: COMPLEX_COLUMN_PROPERTY.EXPRESSION_NEGATIVE, displayed: true, i18nLabelPath: 'common.properties.expression_negative_label' },
|
|
30
30
|
],
|
|
31
31
|
[COMPLEX_COLUMN.IMAGEUPLOAD]: [
|
|
32
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.IMAGEUPLOAD_IMAGESIZE, shortLabel: 'Size', abbrLabel: 'SZ', value: COMPLEX_COLUMN_PROPERTY.IMAGEUPLOAD_IMAGESIZE, displayed: true },
|
|
33
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.IMAGEUPLOAD_IMAGETYPE, shortLabel: 'Type', abbrLabel: 'TP', value: COMPLEX_COLUMN_PROPERTY.IMAGEUPLOAD_IMAGETYPE, displayed: true },
|
|
34
|
-
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.IMAGEUPLOAD_IMAGEWORDS, shortLabel: 'Words', abbrLabel: 'WRD', value: COMPLEX_COLUMN_PROPERTY.IMAGEUPLOAD_IMAGEWORDS, displayed: true },
|
|
32
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.IMAGEUPLOAD_IMAGESIZE, shortLabel: 'Size', abbrLabel: 'SZ', value: COMPLEX_COLUMN_PROPERTY.IMAGEUPLOAD_IMAGESIZE, displayed: true, i18nLabelPath: 'common.properties.imageupload_filesize_label' },
|
|
33
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.IMAGEUPLOAD_IMAGETYPE, shortLabel: 'Type', abbrLabel: 'TP', value: COMPLEX_COLUMN_PROPERTY.IMAGEUPLOAD_IMAGETYPE, displayed: true, i18nLabelPath: 'common.properties.imageupload_filetype_label' },
|
|
34
|
+
{ label: COMPLEX_COLUMN_PROPERTY_LABEL.IMAGEUPLOAD_IMAGEWORDS, shortLabel: 'Words', abbrLabel: 'WRD', value: COMPLEX_COLUMN_PROPERTY.IMAGEUPLOAD_IMAGEWORDS, displayed: true, i18nLabelPath: 'common.properties.imageupload_analysis_label' },
|
|
35
35
|
],
|
|
36
36
|
};
|
|
@@ -7,7 +7,7 @@ import { COMPOUND_COLUMN_LABEL } from "./COMPOUND_COLUMN_LABEL";
|
|
|
7
7
|
* @description Key/array of compound column property info
|
|
8
8
|
*/
|
|
9
9
|
export const COMPOUND_COLUMN_INFO: { [key in ICompoundColumnType]: IColumnInfo } = {
|
|
10
|
-
[COMPOUND_COLUMN.ADDRESS]: { label: COMPOUND_COLUMN_LABEL.ADDRESS, shortLabel: 'Add', abbrLabel: 'ADD', value: COMPOUND_COLUMN.ADDRESS, displayed: true },
|
|
11
|
-
[COMPOUND_COLUMN.USADDRESS]: { label: COMPOUND_COLUMN_LABEL.USADDRESS, shortLabel: 'US Add', abbrLabel: 'USADD', value: COMPOUND_COLUMN.USADDRESS, displayed: true },
|
|
12
|
-
[COMPOUND_COLUMN.NAME]: { label: COMPOUND_COLUMN_LABEL.NAME, shortLabel: 'Name', abbrLabel: 'NAM', value: COMPOUND_COLUMN.NAME, displayed: true },
|
|
10
|
+
[COMPOUND_COLUMN.ADDRESS]: { label: COMPOUND_COLUMN_LABEL.ADDRESS, shortLabel: 'Add', abbrLabel: 'ADD', value: COMPOUND_COLUMN.ADDRESS, displayed: true, i18nLabelPath: 'common.column_types.address_label' },
|
|
11
|
+
[COMPOUND_COLUMN.USADDRESS]: { label: COMPOUND_COLUMN_LABEL.USADDRESS, shortLabel: 'US Add', abbrLabel: 'USADD', value: COMPOUND_COLUMN.USADDRESS, displayed: true, i18nLabelPath: 'common.column_types.usaddress_label' },
|
|
12
|
+
[COMPOUND_COLUMN.NAME]: { label: COMPOUND_COLUMN_LABEL.NAME, shortLabel: 'Name', abbrLabel: 'NAM', value: COMPOUND_COLUMN.NAME, displayed: true, i18nLabelPath: 'common.column_types.name_label' },
|
|
13
13
|
};
|
|
@@ -9,21 +9,21 @@ import { COMPOUND_COLUMN_PROPERTY_LABEL } from "./COMPOUND_COLUMN_PROPERTY_LABEL
|
|
|
9
9
|
*/
|
|
10
10
|
export const COMPOUND_COLUMN_PROPERTY_INFO: { [key in ICompoundColumnType]: IColumnPropertyInfo[] } = {
|
|
11
11
|
[COMPOUND_COLUMN.ADDRESS]: [
|
|
12
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_STREET, shortLabel: 'Street', abbrLabel: 'SA', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_STREET, displayed: true },
|
|
13
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_CITY, shortLabel: 'City', abbrLabel: 'CI', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_CITY, displayed: true },
|
|
14
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_STATE, shortLabel: 'State', abbrLabel: 'ST', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_STATE, displayed: true },
|
|
15
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_POSTAL, shortLabel: 'Zip Code', abbrLabel: 'ZC', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_POSTAL, displayed: true },
|
|
16
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_COUNTRY, shortLabel: 'Country', abbrLabel: 'CO', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_COUNTRY, displayed: true },
|
|
12
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_STREET, shortLabel: 'Street', abbrLabel: 'SA', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_STREET, displayed: true, i18nLabelPath: 'common.properties.address_street_address_label' },
|
|
13
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_CITY, shortLabel: 'City', abbrLabel: 'CI', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_CITY, displayed: true, i18nLabelPath: 'common.properties.address_city_label' },
|
|
14
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_STATE, shortLabel: 'State', abbrLabel: 'ST', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_STATE, displayed: true, i18nLabelPath: 'common.properties.address_state_label' },
|
|
15
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_POSTAL, shortLabel: 'Zip Code', abbrLabel: 'ZC', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_POSTAL, displayed: true, i18nLabelPath: 'common.properties.address_postal_code_label' },
|
|
16
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.ADDRESS_COUNTRY, shortLabel: 'Country', abbrLabel: 'CO', value: COMPOUND_COLUMN_PROPERTY.ADDRESS_COUNTRY, displayed: true, i18nLabelPath: 'common.properties.address_country_label' },
|
|
17
17
|
],
|
|
18
18
|
[COMPOUND_COLUMN.USADDRESS]: [
|
|
19
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_LINE_1, shortLabel: 'Address 1', abbrLabel: 'ADD1', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_LINE_1, displayed: true },
|
|
20
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_LINE_2, shortLabel: 'Address 2', abbrLabel: 'ADD2', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_LINE_2, displayed: true },
|
|
21
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_CITY, shortLabel: 'City', abbrLabel: 'CI', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_CITY, displayed: true },
|
|
22
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_STATE, shortLabel: 'State', abbrLabel: 'ST', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_STATE, displayed: true },
|
|
23
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_POSTAL, shortLabel: 'Zip Code', abbrLabel: 'ZC', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_POSTAL, displayed: true },
|
|
19
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_LINE_1, shortLabel: 'Address 1', abbrLabel: 'ADD1', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_LINE_1, displayed: true, i18nLabelPath: 'common.properties.usaddress_address_line_1_label' },
|
|
20
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_LINE_2, shortLabel: 'Address 2', abbrLabel: 'ADD2', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_LINE_2, displayed: true, i18nLabelPath: 'common.properties.usaddress_address_line_2_label' },
|
|
21
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_CITY, shortLabel: 'City', abbrLabel: 'CI', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_CITY, displayed: true, i18nLabelPath: 'common.properties.usaddress_city_label' },
|
|
22
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_STATE, shortLabel: 'State', abbrLabel: 'ST', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_STATE, displayed: true, i18nLabelPath: 'common.properties.usaddress_state_label' },
|
|
23
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.USADDRESS_POSTAL, shortLabel: 'Zip Code', abbrLabel: 'ZC', value: COMPOUND_COLUMN_PROPERTY.USADDRESS_POSTAL, displayed: true, i18nLabelPath: 'common.properties.usaddress_postal_code_label' },
|
|
24
24
|
],
|
|
25
25
|
[COMPOUND_COLUMN.NAME]: [
|
|
26
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.NAME_FIRST, shortLabel: 'First Name', abbrLabel: 'FN', value: COMPOUND_COLUMN_PROPERTY.NAME_FIRST, displayed: true },
|
|
27
|
-
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.NAME_LAST, shortLabel: 'Last Name', abbrLabel: 'LN', value: COMPOUND_COLUMN_PROPERTY.NAME_LAST, displayed: true },
|
|
26
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.NAME_FIRST, shortLabel: 'First Name', abbrLabel: 'FN', value: COMPOUND_COLUMN_PROPERTY.NAME_FIRST, displayed: true, i18nLabelPath: 'common.properties.name_first_name_label' },
|
|
27
|
+
{ label: COMPOUND_COLUMN_PROPERTY_LABEL.NAME_LAST, shortLabel: 'Last Name', abbrLabel: 'LN', value: COMPOUND_COLUMN_PROPERTY.NAME_LAST, displayed: true, i18nLabelPath: 'common.properties.name_last_name_label' },
|
|
28
28
|
],
|
|
29
29
|
};
|
|
@@ -7,10 +7,10 @@ import { NUMERICAL_COLUMN_LABEL } from "./NUMERICAL_COLUMN_LABEL";
|
|
|
7
7
|
* @description Key/array of numerical column info
|
|
8
8
|
*/
|
|
9
9
|
export const NUMERICAL_COLUMN_INFO: { [key in INumericalColumnType]: IColumnInfo } = {
|
|
10
|
-
[NUMERICAL_COLUMN.SLIDEBAR]: { label: NUMERICAL_COLUMN_LABEL.SLIDEBAR, shortLabel: 'Slidebar', abbrLabel: 'Sldb', value: NUMERICAL_COLUMN.SLIDEBAR, displayed: true },
|
|
11
|
-
[NUMERICAL_COLUMN.NUMERIC]: { label: NUMERICAL_COLUMN_LABEL.NUMERIC, shortLabel: 'Num', abbrLabel: 'Num', value: NUMERICAL_COLUMN.NUMERIC, displayed: true },
|
|
12
|
-
[NUMERICAL_COLUMN.NUMERICC]: { label: NUMERICAL_COLUMN_LABEL.NUMERICC, shortLabel: 'Num-C', abbrLabel: 'NumC', value: NUMERICAL_COLUMN.NUMERICC, displayed: true },
|
|
13
|
-
[NUMERICAL_COLUMN.NUMERICP]: { label: NUMERICAL_COLUMN_LABEL.NUMERICP, shortLabel: 'Num-P', abbrLabel: 'NumP', value: NUMERICAL_COLUMN.NUMERICP, displayed: true },
|
|
14
|
-
[NUMERICAL_COLUMN.NUMERICG]: { label: NUMERICAL_COLUMN_LABEL.NUMERICG, shortLabel: 'Num-G', abbrLabel: 'NumG', value: NUMERICAL_COLUMN.NUMERICG, displayed: true },
|
|
15
|
-
[NUMERICAL_COLUMN.RATING]: { label: NUMERICAL_COLUMN_LABEL.RATING, shortLabel: 'Rating', abbrLabel: 'RTN', value: NUMERICAL_COLUMN.RATING, displayed: true },
|
|
10
|
+
[NUMERICAL_COLUMN.SLIDEBAR]: { label: NUMERICAL_COLUMN_LABEL.SLIDEBAR, shortLabel: 'Slidebar', abbrLabel: 'Sldb', value: NUMERICAL_COLUMN.SLIDEBAR, displayed: true, i18nLabelPath: 'common.column_types.slidebar_label' },
|
|
11
|
+
[NUMERICAL_COLUMN.NUMERIC]: { label: NUMERICAL_COLUMN_LABEL.NUMERIC, shortLabel: 'Num', abbrLabel: 'Num', value: NUMERICAL_COLUMN.NUMERIC, displayed: true, i18nLabelPath: 'common.column_types.numeric_label' },
|
|
12
|
+
[NUMERICAL_COLUMN.NUMERICC]: { label: NUMERICAL_COLUMN_LABEL.NUMERICC, shortLabel: 'Num-C', abbrLabel: 'NumC', value: NUMERICAL_COLUMN.NUMERICC, displayed: true, i18nLabelPath: 'common.column_types.numericc_label' },
|
|
13
|
+
[NUMERICAL_COLUMN.NUMERICP]: { label: NUMERICAL_COLUMN_LABEL.NUMERICP, shortLabel: 'Num-P', abbrLabel: 'NumP', value: NUMERICAL_COLUMN.NUMERICP, displayed: true, i18nLabelPath: 'common.column_types.numericp_label' },
|
|
14
|
+
[NUMERICAL_COLUMN.NUMERICG]: { label: NUMERICAL_COLUMN_LABEL.NUMERICG, shortLabel: 'Num-G', abbrLabel: 'NumG', value: NUMERICAL_COLUMN.NUMERICG, displayed: true, i18nLabelPath: 'common.column_types.numericg_label' },
|
|
15
|
+
[NUMERICAL_COLUMN.RATING]: { label: NUMERICAL_COLUMN_LABEL.RATING, shortLabel: 'Rating', abbrLabel: 'RTN', value: NUMERICAL_COLUMN.RATING, displayed: true, i18nLabelPath: 'common.column_types.rating_label' },
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ import { DATE_DISTINCT_PROPERTY } from "./DATE_DISTINCT_PROPERTY";
|
|
|
4
4
|
import { DATE_DISTINCT_PROPERTY_LABEL } from "./DATE_DISTINCT_PROPERTY_LABEL";
|
|
5
5
|
|
|
6
6
|
export const DATE_DISTINCT_PROPERTY_INFO: { [key in IColumnPropertyType]?: IColumnPropertyInfo } = {
|
|
7
|
-
[DATE_DISTINCT_PROPERTY.YEAR_QUARTER]: { value: DATE_DISTINCT_PROPERTY.YEAR_QUARTER, label: DATE_DISTINCT_PROPERTY_LABEL.YEAR_QUARTER, shortLabel: 'Quarter', abbrLabel: 'Q', displayed: true },
|
|
8
|
-
[DATE_DISTINCT_PROPERTY.YEAR_MONTH]: { value: DATE_DISTINCT_PROPERTY.YEAR_MONTH, label: DATE_DISTINCT_PROPERTY_LABEL.YEAR_MONTH, shortLabel: 'Month', abbrLabel: 'M', displayed: true },
|
|
9
|
-
[DATE_DISTINCT_PROPERTY.MONTH_DAY]: { value: DATE_DISTINCT_PROPERTY.MONTH_DAY, label: DATE_DISTINCT_PROPERTY_LABEL.MONTH_DAY, shortLabel: 'Day M', abbrLabel: 'DM', displayed: true },
|
|
7
|
+
[DATE_DISTINCT_PROPERTY.YEAR_QUARTER]: { value: DATE_DISTINCT_PROPERTY.YEAR_QUARTER, label: DATE_DISTINCT_PROPERTY_LABEL.YEAR_QUARTER, shortLabel: 'Quarter', abbrLabel: 'Q', displayed: true, i18nLabelPath: 'common.properties.date_quarter_only_label' },
|
|
8
|
+
[DATE_DISTINCT_PROPERTY.YEAR_MONTH]: { value: DATE_DISTINCT_PROPERTY.YEAR_MONTH, label: DATE_DISTINCT_PROPERTY_LABEL.YEAR_MONTH, shortLabel: 'Month', abbrLabel: 'M', displayed: true, i18nLabelPath: 'common.properties.date_month_only_label' },
|
|
9
|
+
[DATE_DISTINCT_PROPERTY.MONTH_DAY]: { value: DATE_DISTINCT_PROPERTY.MONTH_DAY, label: DATE_DISTINCT_PROPERTY_LABEL.MONTH_DAY, shortLabel: 'Day M', abbrLabel: 'DM', displayed: true, i18nLabelPath: 'common.properties.date_day_only_label' },
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import { DATE_DISTINCT_TIME_PROPERTY_LABEL } from "./DATE_DISTINCT_TIME_PROPERTY
|
|
|
4
4
|
import { IColumnPropertyType } from "../../columns/interfaces/IColumnPropertyType";
|
|
5
5
|
|
|
6
6
|
export const DATE_DISTINCT_TIME_PROPERTY_INFO: { [key in IColumnPropertyType]? : IColumnPropertyInfo } = {
|
|
7
|
-
[DATE_DISTINCT_TIME_PROPERTY.DAY_HOUR]: { label: DATE_DISTINCT_TIME_PROPERTY_LABEL.DAY_HOUR, shortLabel: 'Hour', abbrLabel: 'H', value: DATE_DISTINCT_TIME_PROPERTY.DAY_HOUR, displayed: true },
|
|
8
|
-
[DATE_DISTINCT_TIME_PROPERTY.HOUR_MINUTE]: { label: DATE_DISTINCT_TIME_PROPERTY_LABEL.HOUR_MINUTE, shortLabel: 'Minute', abbrLabel: 'M', value: DATE_DISTINCT_TIME_PROPERTY.HOUR_MINUTE, displayed: true },
|
|
9
|
-
[DATE_DISTINCT_TIME_PROPERTY.MINUTE_SECOND]: { label: DATE_DISTINCT_TIME_PROPERTY_LABEL.MINUTE_SECOND, shortLabel: 'Second', abbrLabel: 'S', value: DATE_DISTINCT_TIME_PROPERTY.MINUTE_SECOND, displayed: true },
|
|
7
|
+
[DATE_DISTINCT_TIME_PROPERTY.DAY_HOUR]: { label: DATE_DISTINCT_TIME_PROPERTY_LABEL.DAY_HOUR, shortLabel: 'Hour', abbrLabel: 'H', value: DATE_DISTINCT_TIME_PROPERTY.DAY_HOUR, displayed: true, i18nLabelPath: 'common.properties.date_hour_only_label' },
|
|
8
|
+
[DATE_DISTINCT_TIME_PROPERTY.HOUR_MINUTE]: { label: DATE_DISTINCT_TIME_PROPERTY_LABEL.HOUR_MINUTE, shortLabel: 'Minute', abbrLabel: 'M', value: DATE_DISTINCT_TIME_PROPERTY.HOUR_MINUTE, displayed: true, i18nLabelPath: 'common.properties.date_minute_only_label' },
|
|
9
|
+
[DATE_DISTINCT_TIME_PROPERTY.MINUTE_SECOND]: { label: DATE_DISTINCT_TIME_PROPERTY_LABEL.MINUTE_SECOND, shortLabel: 'Second', abbrLabel: 'S', value: DATE_DISTINCT_TIME_PROPERTY.MINUTE_SECOND, displayed: true, i18nLabelPath: 'common.properties.date_second_only_label' },
|
|
10
10
|
};
|
|
@@ -4,9 +4,9 @@ import { DATE_GROUPING_PROPERTY_LABEL } from "./DATE_GROUPING_PROPERTY_LABEL";
|
|
|
4
4
|
import { IColumnPropertyType } from "../../columns/interfaces/IColumnPropertyType";
|
|
5
5
|
|
|
6
6
|
export const DATE_GROUPING_PROPERTY_INFO: { [key in IColumnPropertyType]? : IColumnPropertyInfo } = {
|
|
7
|
-
[DATE_GROUPING_PROPERTY.DAY]: { value: DATE_GROUPING_PROPERTY.DAY, label: DATE_GROUPING_PROPERTY_LABEL.DAY, shortLabel: 'Day', abbrLabel: 'DY', displayed: true },
|
|
8
|
-
[DATE_GROUPING_PROPERTY.YEAR]: { value: DATE_GROUPING_PROPERTY.YEAR, label: DATE_GROUPING_PROPERTY_LABEL.YEAR, shortLabel: 'Year', abbrLabel: 'Y', displayed: true },
|
|
9
|
-
[DATE_GROUPING_PROPERTY.QUARTER]: { value: DATE_GROUPING_PROPERTY.QUARTER, label: DATE_GROUPING_PROPERTY_LABEL.QUARTER, shortLabel: 'Quarter', abbrLabel: 'Q', displayed: true },
|
|
10
|
-
[DATE_GROUPING_PROPERTY.MONTH]: { value: DATE_GROUPING_PROPERTY.MONTH, label: DATE_GROUPING_PROPERTY_LABEL.MONTH, shortLabel: 'Month', abbrLabel: 'M', displayed: true },
|
|
11
|
-
[DATE_GROUPING_PROPERTY.WEEK]: { value: DATE_GROUPING_PROPERTY.WEEK, label: DATE_GROUPING_PROPERTY_LABEL.WEEK, shortLabel: 'Week', abbrLabel: 'W', displayed: true }
|
|
7
|
+
[DATE_GROUPING_PROPERTY.DAY]: { value: DATE_GROUPING_PROPERTY.DAY, label: DATE_GROUPING_PROPERTY_LABEL.DAY, shortLabel: 'Day', abbrLabel: 'DY', displayed: true, i18nLabelPath: 'common.properties.date_day_label' },
|
|
8
|
+
[DATE_GROUPING_PROPERTY.YEAR]: { value: DATE_GROUPING_PROPERTY.YEAR, label: DATE_GROUPING_PROPERTY_LABEL.YEAR, shortLabel: 'Year', abbrLabel: 'Y', displayed: true, i18nLabelPath: 'common.properties.date_year_label' },
|
|
9
|
+
[DATE_GROUPING_PROPERTY.QUARTER]: { value: DATE_GROUPING_PROPERTY.QUARTER, label: DATE_GROUPING_PROPERTY_LABEL.QUARTER, shortLabel: 'Quarter', abbrLabel: 'Q', displayed: true, i18nLabelPath: 'common.properties.date_quarter_label' },
|
|
10
|
+
[DATE_GROUPING_PROPERTY.MONTH]: { value: DATE_GROUPING_PROPERTY.MONTH, label: DATE_GROUPING_PROPERTY_LABEL.MONTH, shortLabel: 'Month', abbrLabel: 'M', displayed: true, i18nLabelPath: 'common.properties.date_month_label' },
|
|
11
|
+
[DATE_GROUPING_PROPERTY.WEEK]: { value: DATE_GROUPING_PROPERTY.WEEK, label: DATE_GROUPING_PROPERTY_LABEL.WEEK, shortLabel: 'Week', abbrLabel: 'W', displayed: true, i18nLabelPath: 'common.properties.date_week_label' },
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ import { DATE_GROUPING_TIME_PROPERTY_LABEL } from "./DATE_GROUPING_TIME_PROPERTY
|
|
|
4
4
|
import { IColumnPropertyType } from "../../columns/interfaces/IColumnPropertyType";
|
|
5
5
|
|
|
6
6
|
export const DATE_GROUPING_TIME_PROPERTY_INFO: { [key in IColumnPropertyType]? : IColumnPropertyInfo } = {
|
|
7
|
-
[DATE_GROUPING_TIME_PROPERTY.HOUR]: { label: DATE_GROUPING_TIME_PROPERTY_LABEL.HOUR, shortLabel: 'Date, Hour', abbrLabel: 'D-H', value: DATE_GROUPING_TIME_PROPERTY.HOUR, displayed: true },
|
|
8
|
-
[DATE_GROUPING_TIME_PROPERTY.MINUTE]: { label: DATE_GROUPING_TIME_PROPERTY_LABEL.MINUTE, shortLabel: 'Date, Minute', abbrLabel: 'D-M', value: DATE_GROUPING_TIME_PROPERTY.MINUTE, displayed: true },
|
|
9
|
-
[DATE_GROUPING_TIME_PROPERTY.SECOND]: { label: DATE_GROUPING_TIME_PROPERTY_LABEL.SECOND, shortLabel: 'Date, Second', abbrLabel: 'D-S', value: DATE_GROUPING_TIME_PROPERTY.SECOND, displayed: true },
|
|
7
|
+
[DATE_GROUPING_TIME_PROPERTY.HOUR]: { label: DATE_GROUPING_TIME_PROPERTY_LABEL.HOUR, shortLabel: 'Date, Hour', abbrLabel: 'D-H', value: DATE_GROUPING_TIME_PROPERTY.HOUR, displayed: true, i18nLabelPath: 'common.properties.date_hour_label' },
|
|
8
|
+
[DATE_GROUPING_TIME_PROPERTY.MINUTE]: { label: DATE_GROUPING_TIME_PROPERTY_LABEL.MINUTE, shortLabel: 'Date, Minute', abbrLabel: 'D-M', value: DATE_GROUPING_TIME_PROPERTY.MINUTE, displayed: true, i18nLabelPath: 'common.properties.date_minute_label' },
|
|
9
|
+
[DATE_GROUPING_TIME_PROPERTY.SECOND]: { label: DATE_GROUPING_TIME_PROPERTY_LABEL.SECOND, shortLabel: 'Date, Second', abbrLabel: 'D-S', value: DATE_GROUPING_TIME_PROPERTY.SECOND, displayed: true, i18nLabelPath: 'common.properties.date_second_label' },
|
|
10
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DATE_YEAR_MONTHS_MMMM = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
@@ -37,5 +37,6 @@ export * from './DATE_REGULAR_EXPRESSION';
|
|
|
37
37
|
export * from './DATE_WEEK_DAYS';
|
|
38
38
|
export * from './DATE_YEAR_DAYS';
|
|
39
39
|
export * from './DATE_YEAR_MONTHS';
|
|
40
|
+
export * from './DATE_YEAR_MONTHS_MMMM';
|
|
40
41
|
export * from './DATE_YEAR_QUARTERS';
|
|
41
42
|
export * from './DATE_YEAR_QUARTERS_RANGE';
|
|
@@ -4,7 +4,7 @@ import { RELATIVE_CURSOR } from "./RELATIVE_CURSOR";
|
|
|
4
4
|
import { RELATIVE_CURSOR_LABEL } from "./RELATIVE_CURSOR_LABEL";
|
|
5
5
|
|
|
6
6
|
export const RELATIVE_CURSOR_INFO: { [key in RelativeCursor]: IRelativeCursorInfo } = {
|
|
7
|
-
[RELATIVE_CURSOR.THIS]: { abbrLabel: 'This', shortLabel: 'This', label: RELATIVE_CURSOR_LABEL.THIS, value: RELATIVE_CURSOR.THIS, displayed: true },
|
|
8
|
-
[RELATIVE_CURSOR.NEXT]: { abbrLabel: 'Next', shortLabel: 'Next', label: RELATIVE_CURSOR_LABEL.NEXT, value: RELATIVE_CURSOR.NEXT, displayed: true },
|
|
9
|
-
[RELATIVE_CURSOR.LAST]: { abbrLabel: 'Last', shortLabel: 'Last', label: RELATIVE_CURSOR_LABEL.LAST, value: RELATIVE_CURSOR.LAST, displayed: true },
|
|
7
|
+
[RELATIVE_CURSOR.THIS]: { abbrLabel: 'This', shortLabel: 'This', label: RELATIVE_CURSOR_LABEL.THIS, value: RELATIVE_CURSOR.THIS, displayed: true, i18nLabelPath: 'filter.relative_container.cursors.this_label' },
|
|
8
|
+
[RELATIVE_CURSOR.NEXT]: { abbrLabel: 'Next', shortLabel: 'Next', label: RELATIVE_CURSOR_LABEL.NEXT, value: RELATIVE_CURSOR.NEXT, displayed: true, i18nLabelPath: 'filter.relative_container.cursors.the_next_label' },
|
|
9
|
+
[RELATIVE_CURSOR.LAST]: { abbrLabel: 'Last', shortLabel: 'Last', label: RELATIVE_CURSOR_LABEL.LAST, value: RELATIVE_CURSOR.LAST, displayed: true, i18nLabelPath: 'filter.relative_container.cursors.the_last_label' },
|
|
10
10
|
};
|
|
@@ -3,6 +3,6 @@ import { FILTER_DATE_SECTION } from "./FILTER_DATE_SECTION";
|
|
|
3
3
|
import { FILTER_DATE_SECTION_LABEL } from "./FILTER_DATE_SECTION_LABEL";
|
|
4
4
|
|
|
5
5
|
export const FILTER_DATE_SECTION_INFO: IFDateSectionInfo[] = [
|
|
6
|
-
{ label: FILTER_DATE_SECTION_LABEL.RELATIVE, shortLabel: 'Relative', abbrLabel: 'REL', value: FILTER_DATE_SECTION.RELATIVE, displayed: true },
|
|
7
|
-
{ label: FILTER_DATE_SECTION_LABEL.ABSOLUTE, shortLabel: 'Absolute', abbrLabel: 'ABS', value: FILTER_DATE_SECTION.ABSOLUTE, displayed: true },
|
|
6
|
+
{ label: FILTER_DATE_SECTION_LABEL.RELATIVE, shortLabel: 'Relative', abbrLabel: 'REL', value: FILTER_DATE_SECTION.RELATIVE, displayed: true, i18nLabelPath: 'filter.date_sections.relative' },
|
|
7
|
+
{ label: FILTER_DATE_SECTION_LABEL.ABSOLUTE, shortLabel: 'Absolute', abbrLabel: 'ABS', value: FILTER_DATE_SECTION.ABSOLUTE, displayed: true, i18nLabelPath: 'filter.date_sections.absolute' },
|
|
8
8
|
];
|
|
@@ -3,12 +3,12 @@ import { FILTER_SCOPE } from "./FILTER_SCOPE";
|
|
|
3
3
|
import { FILTER_SCOPE_LABEL } from "./FILTER_SCOPE_LABEL";
|
|
4
4
|
|
|
5
5
|
export const FILTER_SCOPE_INFO: IFScopeInfo[] = [
|
|
6
|
-
{ label: FILTER_SCOPE_LABEL.ADMIN, shortLabel: 'Admin', abbrLabel: 'ADM', value: FILTER_SCOPE.ADMIN, displayed: true },
|
|
7
|
-
{ label: FILTER_SCOPE_LABEL.DATA, shortLabel: 'Data', abbrLabel: 'DAT', value: FILTER_SCOPE.DATA, displayed: true },
|
|
8
|
-
{ label: FILTER_SCOPE_LABEL.GLOBAL, shortLabel: 'Global', abbrLabel: 'GLB', value: FILTER_SCOPE.GLOBAL, displayed: true },
|
|
9
|
-
{ label: FILTER_SCOPE_LABEL.PAGE, shortLabel: 'Page', abbrLabel: 'PAG', value: FILTER_SCOPE.PAGE, displayed: true },
|
|
10
|
-
{ label: FILTER_SCOPE_LABEL.TAB, shortLabel: 'Tab', abbrLabel: 'TAB', value: FILTER_SCOPE.TAB, displayed: true },
|
|
11
|
-
{ label: FILTER_SCOPE_LABEL.DEFAULT, shortLabel: 'Default', abbrLabel: 'DEF', value: FILTER_SCOPE.DEFAULT, displayed: true },
|
|
12
|
-
{ label: FILTER_SCOPE_LABEL.CHART, shortLabel: 'Chart', abbrLabel: 'CRT', value: FILTER_SCOPE.CHART, displayed: true },
|
|
13
|
-
{ label: FILTER_SCOPE_LABEL.ACTION, shortLabel: 'Action', abbrLabel: 'ACT', value: FILTER_SCOPE.ACTION, displayed: true },
|
|
6
|
+
{ label: FILTER_SCOPE_LABEL.ADMIN, shortLabel: 'Admin', abbrLabel: 'ADM', value: FILTER_SCOPE.ADMIN, displayed: true, i18nLabelPath: 'filter.scopes.admin' },
|
|
7
|
+
{ label: FILTER_SCOPE_LABEL.DATA, shortLabel: 'Data', abbrLabel: 'DAT', value: FILTER_SCOPE.DATA, displayed: true, i18nLabelPath: 'filter.scopes.data' },
|
|
8
|
+
{ label: FILTER_SCOPE_LABEL.GLOBAL, shortLabel: 'Global', abbrLabel: 'GLB', value: FILTER_SCOPE.GLOBAL, displayed: true, i18nLabelPath: 'filter.scopes.global' },
|
|
9
|
+
{ label: FILTER_SCOPE_LABEL.PAGE, shortLabel: 'Page', abbrLabel: 'PAG', value: FILTER_SCOPE.PAGE, displayed: true, i18nLabelPath: 'filter.scopes.page' },
|
|
10
|
+
{ label: FILTER_SCOPE_LABEL.TAB, shortLabel: 'Tab', abbrLabel: 'TAB', value: FILTER_SCOPE.TAB, displayed: true, i18nLabelPath: 'filter.scopes.tab' },
|
|
11
|
+
{ label: FILTER_SCOPE_LABEL.DEFAULT, shortLabel: 'Default', abbrLabel: 'DEF', value: FILTER_SCOPE.DEFAULT, displayed: true, i18nLabelPath: 'filter.scopes.default' },
|
|
12
|
+
{ label: FILTER_SCOPE_LABEL.CHART, shortLabel: 'Chart', abbrLabel: 'CRT', value: FILTER_SCOPE.CHART, displayed: true, i18nLabelPath: 'filter.scopes.chart' },
|
|
13
|
+
{ label: FILTER_SCOPE_LABEL.ACTION, shortLabel: 'Action', abbrLabel: 'ACT', value: FILTER_SCOPE.ACTION, displayed: true, i18nLabelPath: 'filter.scopes.action' },
|
|
14
14
|
];
|
|
@@ -4,25 +4,25 @@ import { FILTER_VALIDATOR } from "./FILTER_VALIDATOR";
|
|
|
4
4
|
import { FILTER_VALIDATOR_LABEL } from "./FILTER_VALIDATOR_LABEL";
|
|
5
5
|
|
|
6
6
|
export const FILTER_VALIDATOR_INFO: { [key in IFValidator]: IFValidatorInfo } = {
|
|
7
|
-
[FILTER_VALIDATOR.EQUALS]: { label: FILTER_VALIDATOR_LABEL.EQUALS, shortLabel: 'Equals', abbrLabel: 'EQL', value: FILTER_VALIDATOR.EQUALS, displayed: true },
|
|
8
|
-
[FILTER_VALIDATOR.NOT_EQUAL]: { label: FILTER_VALIDATOR_LABEL.NOT_EQUAL, shortLabel: 'Not Equal', abbrLabel: 'NEQL', value: FILTER_VALIDATOR.NOT_EQUAL, displayed: true },
|
|
9
|
-
[FILTER_VALIDATOR.BEFORE]: { label: FILTER_VALIDATOR_LABEL.BEFORE, shortLabel: 'Before', abbrLabel: 'BFR', value: FILTER_VALIDATOR.BEFORE, displayed: true },
|
|
10
|
-
[FILTER_VALIDATOR.AFTER]: { label: FILTER_VALIDATOR_LABEL.AFTER, shortLabel: 'After', abbrLabel: 'AFT', value: FILTER_VALIDATOR.AFTER, displayed: true },
|
|
11
|
-
[FILTER_VALIDATOR.BEFORE_ON]: { label: FILTER_VALIDATOR_LABEL.BEFORE_ON, shortLabel: 'Before on', abbrLabel: 'BFRON', value: FILTER_VALIDATOR.BEFORE_ON, displayed: true },
|
|
12
|
-
[FILTER_VALIDATOR.AFTER_ON]: { label: FILTER_VALIDATOR_LABEL.AFTER_ON, shortLabel: 'After on', abbrLabel: 'AFTON', value: FILTER_VALIDATOR.AFTER_ON, displayed: true },
|
|
13
|
-
[FILTER_VALIDATOR.BETWEEN_INCLUSIVE]: { label: FILTER_VALIDATOR_LABEL.BETWEEN_INCLUSIVE, shortLabel: 'Between inclusive', abbrLabel: 'BTWIN', value: FILTER_VALIDATOR.BETWEEN_INCLUSIVE, displayed: true },
|
|
14
|
-
[FILTER_VALIDATOR.BETWEEN_EXCLUSIVE]: { label: FILTER_VALIDATOR_LABEL.BETWEEN_EXCLUSIVE, shortLabel: 'Between exclusive', abbrLabel: 'BTWEX', value: FILTER_VALIDATOR.BETWEEN_EXCLUSIVE, displayed: true },
|
|
15
|
-
[FILTER_VALIDATOR.IS_NULL]: { label: FILTER_VALIDATOR_LABEL.IS_NULL, shortLabel: 'Null', abbrLabel: 'NLL', value: FILTER_VALIDATOR.IS_NULL, displayed: true },
|
|
16
|
-
[FILTER_VALIDATOR.IS_NOT_NULL]: { label: FILTER_VALIDATOR_LABEL.IS_NOT_NULL, shortLabel: 'Not Null', abbrLabel: 'NNLL', value: FILTER_VALIDATOR.IS_NOT_NULL, displayed: true },
|
|
17
|
-
[FILTER_VALIDATOR.LESS_THAN]: { label: FILTER_VALIDATOR_LABEL.LESS_THAN, shortLabel: 'Less than', abbrLabel: 'LSS', value: FILTER_VALIDATOR.LESS_THAN, displayed: true },
|
|
18
|
-
[FILTER_VALIDATOR.LESS_THAN_EQUAL]: { label: FILTER_VALIDATOR_LABEL.LESS_THAN_EQUAL, shortLabel: 'Less equal', abbrLabel: 'LSSEQL', value: FILTER_VALIDATOR.LESS_THAN_EQUAL, displayed: true },
|
|
19
|
-
[FILTER_VALIDATOR.GREATER_THAN]: { label: FILTER_VALIDATOR_LABEL.GREATER_THAN, shortLabel: 'Greater than', abbrLabel: 'GRT', value: FILTER_VALIDATOR.GREATER_THAN, displayed: true },
|
|
20
|
-
[FILTER_VALIDATOR.GREATER_THAN_EQUAL]: { label: FILTER_VALIDATOR_LABEL.GREATER_THAN_EQUAL, shortLabel: 'Greater equal', abbrLabel: 'GRTEQL', value: FILTER_VALIDATOR.GREATER_THAN_EQUAL, displayed: true },
|
|
21
|
-
[FILTER_VALIDATOR.STARTS_WITH]: { label: FILTER_VALIDATOR_LABEL.STARTS_WITH, shortLabel: 'Starts with', abbrLabel: 'STR', value: FILTER_VALIDATOR.STARTS_WITH, displayed: true },
|
|
22
|
-
[FILTER_VALIDATOR.ENDS_WITH]: { label: FILTER_VALIDATOR_LABEL.ENDS_WITH, shortLabel: 'Ends with', abbrLabel: 'END', value: FILTER_VALIDATOR.ENDS_WITH, displayed: true },
|
|
23
|
-
[FILTER_VALIDATOR.CONTAINS]: { label: FILTER_VALIDATOR_LABEL.CONTAINS, shortLabel: 'Contains', abbrLabel: 'CTNS', value: FILTER_VALIDATOR.CONTAINS, displayed: true },
|
|
24
|
-
[FILTER_VALIDATOR.NOT_START_WITH]: { label: FILTER_VALIDATOR_LABEL.NOT_START_WITH, shortLabel: 'Not start', abbrLabel: 'NSTR', value: FILTER_VALIDATOR.NOT_START_WITH, displayed: true },
|
|
25
|
-
[FILTER_VALIDATOR.NOT_END_WITH]: { label: FILTER_VALIDATOR_LABEL.NOT_END_WITH, shortLabel: 'Not end', abbrLabel: 'NEND', value: FILTER_VALIDATOR.NOT_END_WITH, displayed: true },
|
|
26
|
-
[FILTER_VALIDATOR.NOT_CONTAIN]: { label: FILTER_VALIDATOR_LABEL.NOT_CONTAIN, shortLabel: 'Not contain', abbrLabel: 'NCTNS', value: FILTER_VALIDATOR.NOT_CONTAIN, displayed: true },
|
|
27
|
-
[FILTER_VALIDATOR.IN] : { label: FILTER_VALIDATOR_LABEL.IN, shortLabel: 'In', abbrLabel: 'IN', value: FILTER_VALIDATOR.IN, displayed: true }
|
|
7
|
+
[FILTER_VALIDATOR.EQUALS]: { label: FILTER_VALIDATOR_LABEL.EQUALS, shortLabel: 'Equals', abbrLabel: 'EQL', value: FILTER_VALIDATOR.EQUALS, displayed: true, i18nLabelPath: 'filter.validators.equals_label' },
|
|
8
|
+
[FILTER_VALIDATOR.NOT_EQUAL]: { label: FILTER_VALIDATOR_LABEL.NOT_EQUAL, shortLabel: 'Not Equal', abbrLabel: 'NEQL', value: FILTER_VALIDATOR.NOT_EQUAL, displayed: true, i18nLabelPath: 'filter.validators.not_equal_label' },
|
|
9
|
+
[FILTER_VALIDATOR.BEFORE]: { label: FILTER_VALIDATOR_LABEL.BEFORE, shortLabel: 'Before', abbrLabel: 'BFR', value: FILTER_VALIDATOR.BEFORE, displayed: true, i18nLabelPath: 'filter.validators.before_label' },
|
|
10
|
+
[FILTER_VALIDATOR.AFTER]: { label: FILTER_VALIDATOR_LABEL.AFTER, shortLabel: 'After', abbrLabel: 'AFT', value: FILTER_VALIDATOR.AFTER, displayed: true, i18nLabelPath: 'filter.validators.after_label' },
|
|
11
|
+
[FILTER_VALIDATOR.BEFORE_ON]: { label: FILTER_VALIDATOR_LABEL.BEFORE_ON, shortLabel: 'Before on', abbrLabel: 'BFRON', value: FILTER_VALIDATOR.BEFORE_ON, displayed: true, i18nLabelPath: 'filter.validators.before_on_label' },
|
|
12
|
+
[FILTER_VALIDATOR.AFTER_ON]: { label: FILTER_VALIDATOR_LABEL.AFTER_ON, shortLabel: 'After on', abbrLabel: 'AFTON', value: FILTER_VALIDATOR.AFTER_ON, displayed: true, i18nLabelPath: 'filter.validators.after_on_label' },
|
|
13
|
+
[FILTER_VALIDATOR.BETWEEN_INCLUSIVE]: { label: FILTER_VALIDATOR_LABEL.BETWEEN_INCLUSIVE, shortLabel: 'Between inclusive', abbrLabel: 'BTWIN', value: FILTER_VALIDATOR.BETWEEN_INCLUSIVE, displayed: true, i18nLabelPath: 'filter.validators.between_inclusive_label' },
|
|
14
|
+
[FILTER_VALIDATOR.BETWEEN_EXCLUSIVE]: { label: FILTER_VALIDATOR_LABEL.BETWEEN_EXCLUSIVE, shortLabel: 'Between exclusive', abbrLabel: 'BTWEX', value: FILTER_VALIDATOR.BETWEEN_EXCLUSIVE, displayed: true, i18nLabelPath: 'filter.validators.between_exclusive_label' },
|
|
15
|
+
[FILTER_VALIDATOR.IS_NULL]: { label: FILTER_VALIDATOR_LABEL.IS_NULL, shortLabel: 'Null', abbrLabel: 'NLL', value: FILTER_VALIDATOR.IS_NULL, displayed: true, i18nLabelPath: 'filter.validators.is_null_label' },
|
|
16
|
+
[FILTER_VALIDATOR.IS_NOT_NULL]: { label: FILTER_VALIDATOR_LABEL.IS_NOT_NULL, shortLabel: 'Not Null', abbrLabel: 'NNLL', value: FILTER_VALIDATOR.IS_NOT_NULL, displayed: true, i18nLabelPath: 'filter.validators.is_not_null_label' },
|
|
17
|
+
[FILTER_VALIDATOR.LESS_THAN]: { label: FILTER_VALIDATOR_LABEL.LESS_THAN, shortLabel: 'Less than', abbrLabel: 'LSS', value: FILTER_VALIDATOR.LESS_THAN, displayed: true, i18nLabelPath: 'filter.validators.less_than_label' },
|
|
18
|
+
[FILTER_VALIDATOR.LESS_THAN_EQUAL]: { label: FILTER_VALIDATOR_LABEL.LESS_THAN_EQUAL, shortLabel: 'Less equal', abbrLabel: 'LSSEQL', value: FILTER_VALIDATOR.LESS_THAN_EQUAL, displayed: true, i18nLabelPath: 'filter.validators.less_than_equal_label' },
|
|
19
|
+
[FILTER_VALIDATOR.GREATER_THAN]: { label: FILTER_VALIDATOR_LABEL.GREATER_THAN, shortLabel: 'Greater than', abbrLabel: 'GRT', value: FILTER_VALIDATOR.GREATER_THAN, displayed: true, i18nLabelPath: 'filter.validators.greater_than_label' },
|
|
20
|
+
[FILTER_VALIDATOR.GREATER_THAN_EQUAL]: { label: FILTER_VALIDATOR_LABEL.GREATER_THAN_EQUAL, shortLabel: 'Greater equal', abbrLabel: 'GRTEQL', value: FILTER_VALIDATOR.GREATER_THAN_EQUAL, displayed: true, i18nLabelPath: 'filter.validators.greater_than_equal_label' },
|
|
21
|
+
[FILTER_VALIDATOR.STARTS_WITH]: { label: FILTER_VALIDATOR_LABEL.STARTS_WITH, shortLabel: 'Starts with', abbrLabel: 'STR', value: FILTER_VALIDATOR.STARTS_WITH, displayed: true, i18nLabelPath: 'filter.validators.starts_with_label' },
|
|
22
|
+
[FILTER_VALIDATOR.ENDS_WITH]: { label: FILTER_VALIDATOR_LABEL.ENDS_WITH, shortLabel: 'Ends with', abbrLabel: 'END', value: FILTER_VALIDATOR.ENDS_WITH, displayed: true, i18nLabelPath: 'filter.validators.ends_with_label' },
|
|
23
|
+
[FILTER_VALIDATOR.CONTAINS]: { label: FILTER_VALIDATOR_LABEL.CONTAINS, shortLabel: 'Contains', abbrLabel: 'CTNS', value: FILTER_VALIDATOR.CONTAINS, displayed: true, i18nLabelPath: 'filter.validators.contains_label' },
|
|
24
|
+
[FILTER_VALIDATOR.NOT_START_WITH]: { label: FILTER_VALIDATOR_LABEL.NOT_START_WITH, shortLabel: 'Not start', abbrLabel: 'NSTR', value: FILTER_VALIDATOR.NOT_START_WITH, displayed: true, i18nLabelPath: 'filter.validators.not_start_with_label' },
|
|
25
|
+
[FILTER_VALIDATOR.NOT_END_WITH]: { label: FILTER_VALIDATOR_LABEL.NOT_END_WITH, shortLabel: 'Not end', abbrLabel: 'NEND', value: FILTER_VALIDATOR.NOT_END_WITH, displayed: true, i18nLabelPath: 'filter.validators.not_end_with_label' },
|
|
26
|
+
[FILTER_VALIDATOR.NOT_CONTAIN]: { label: FILTER_VALIDATOR_LABEL.NOT_CONTAIN, shortLabel: 'Not contain', abbrLabel: 'NCTNS', value: FILTER_VALIDATOR.NOT_CONTAIN, displayed: true, i18nLabelPath: 'filter.validators.not_contain_label' },
|
|
27
|
+
[FILTER_VALIDATOR.IN] : { label: FILTER_VALIDATOR_LABEL.IN, shortLabel: 'In', abbrLabel: 'IN', value: FILTER_VALIDATOR.IN, displayed: true, i18nLabelPath: 'filter.validators.in' }
|
|
28
28
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { II18nServiceTranslate } from "../../../globalization/interfaces/II18nServiceTranslate";
|
|
1
2
|
import { getPropertyLabel } from "../../../qrvey/helpers/getPropertyLabel";
|
|
2
3
|
import { IFSFilter } from "../../interfaces/common/IFSFilter";
|
|
3
4
|
import { IFUFilter } from "../../interfaces/ui/IFUFilter";
|
|
@@ -7,6 +8,6 @@ import { IFUFilter } from "../../interfaces/ui/IFUFilter";
|
|
|
7
8
|
* @param filter The UI Filter
|
|
8
9
|
* @returns a string of the filter property label
|
|
9
10
|
*/
|
|
10
|
-
export function getFilterPropertyLabel(filter: IFUFilter | IFSFilter): string {
|
|
11
|
-
return getPropertyLabel(filter.column as any, filter.property);
|
|
11
|
+
export function getFilterPropertyLabel(filter: IFUFilter | IFSFilter, translate?: II18nServiceTranslate): string {
|
|
12
|
+
return getPropertyLabel(filter.column as any, filter.property, translate);
|
|
12
13
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { IDateColumnPropertyType } from "../../columns/interfaces/IDateColumnPropertyType";
|
|
2
|
+
import { DATE_DISTINCT_PROPERTY } from "../../dates/constants/DATE_DISTINCT_PROPERTY";
|
|
3
|
+
import { DATE_GROUPING_PROPERTY } from "../../dates/constants/DATE_GROUPING_PROPERTY";
|
|
4
|
+
import { DATE_YEAR_MONTHS } from "../../dates/constants/DATE_YEAR_MONTHS";
|
|
5
|
+
import { isEmpty } from "../../general/mix/isEmpty";
|
|
6
|
+
import { isTokenLabel } from "../../tokens/isTokenLabel";
|
|
7
|
+
import { II18nServiceTranslate } from "../interfaces/II18nServiceTranslate";
|
|
8
|
+
|
|
9
|
+
export function getI18nDateGroupLabel(label: string, dateGroup: IDateColumnPropertyType, translate?: II18nServiceTranslate): string {
|
|
10
|
+
if (dateGroup === DATE_GROUPING_PROPERTY.MONTH)
|
|
11
|
+
return getI18nMonthLabel(label, translate);
|
|
12
|
+
else if (dateGroup === DATE_GROUPING_PROPERTY.QUARTER)
|
|
13
|
+
return getI18nQuarterLabel(label, translate);
|
|
14
|
+
else if (dateGroup === DATE_GROUPING_PROPERTY.WEEK)
|
|
15
|
+
return getI18nWeekLabel(label, translate);
|
|
16
|
+
else if (dateGroup === DATE_DISTINCT_PROPERTY.YEAR_MONTH)
|
|
17
|
+
return getI18nYearMonthLabel(label, translate);
|
|
18
|
+
else if (dateGroup === DATE_DISTINCT_PROPERTY.YEAR_QUARTER)
|
|
19
|
+
return getI18nYearQuarterLabel(label, translate);
|
|
20
|
+
return label;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function getI18nMonthLabel(label: string, translate?: II18nServiceTranslate): string {
|
|
24
|
+
const splittedLabel = label.split(' ');
|
|
25
|
+
splittedLabel[0] = getI18nYearMonthLabel(splittedLabel[0], translate);
|
|
26
|
+
return splittedLabel.join(' ');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getI18nYearMonthLabel(label: string, translate?: II18nServiceTranslate): string {
|
|
30
|
+
if (!isTokenLabel(label) && !isEmpty(translate)) {
|
|
31
|
+
const month = getI18nMonthPropertyByIndex(DATE_YEAR_MONTHS.findIndex(month => month === label));
|
|
32
|
+
if (!isEmpty(month)) label = translate('common.date_grouping.' + month + '_mmm');
|
|
33
|
+
}
|
|
34
|
+
return label;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function getI18nMonthPropertyByIndex(index: number) {
|
|
38
|
+
const months = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'];
|
|
39
|
+
return months[index];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function getI18nQuarterLabel(label: string, translate?: II18nServiceTranslate) {
|
|
43
|
+
const splittedLabel = label.split(' ');
|
|
44
|
+
splittedLabel[0] = getI18nYearQuarterLabel(splittedLabel[0], translate);
|
|
45
|
+
return splittedLabel.join(' ');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function getI18nYearQuarterLabel(label: string, translate?: II18nServiceTranslate): string {
|
|
49
|
+
if (!isTokenLabel(label) && !isEmpty(translate)) {
|
|
50
|
+
label = label.replace(/Q/i, translate('common.date_grouping.quarter'));
|
|
51
|
+
}
|
|
52
|
+
return label;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function getI18nWeekLabel(label: string, translate?: II18nServiceTranslate) {
|
|
56
|
+
const splittedLabel = label.split(' ');
|
|
57
|
+
splittedLabel[0] = getI18nYearWeekLabel(splittedLabel[0], translate);
|
|
58
|
+
return splittedLabel.join(' ');
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function getI18nYearWeekLabel(label: string, translate?: II18nServiceTranslate): string {
|
|
62
|
+
if (!isTokenLabel(label) && !isEmpty(translate)) {
|
|
63
|
+
label = label.replace(/W/i, translate('common.date_grouping.week'));
|
|
64
|
+
}
|
|
65
|
+
return label;
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getI18nDateGroupLabel';
|
package/src/globalization/interfaces/chart_builder/II18nChartBuilderConditionalFormatting.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface II18nChartBuilderConditionalFormatting {
|
|
|
11
11
|
style_outlined: string;
|
|
12
12
|
label: string;
|
|
13
13
|
label_placeholder: string;
|
|
14
|
-
|
|
14
|
+
select_column: string;
|
|
15
15
|
select_column_placeholder: string;
|
|
16
16
|
operator: string;
|
|
17
17
|
select_operator_placeholder: string;
|
|
@@ -2,11 +2,13 @@ import { II18nColumnTypes } from "./II18nColumnTypes";
|
|
|
2
2
|
import { II18nAgreggateLabels } from './II18nAgreggateLabels';
|
|
3
3
|
import { II18nColumnProperties } from "./II18nColumnProperties";
|
|
4
4
|
import { II18nColumnTypesSuffixes } from "./II18nColumnTypesSuffixes";
|
|
5
|
+
import { II18nDateGrouping } from "./II18nDateGrouping";
|
|
5
6
|
|
|
6
7
|
export interface II18nCommon {
|
|
7
8
|
aggregate_labels: II18nAgreggateLabels;
|
|
8
9
|
column_types: II18nColumnTypes;
|
|
9
10
|
column_types_suffixes: II18nColumnTypesSuffixes;
|
|
11
|
+
date_grouping: II18nDateGrouping;
|
|
10
12
|
properties: II18nColumnProperties;
|
|
11
13
|
search: string;
|
|
12
14
|
no_data_found: string;
|