DateFilterHelpers
Home > @gooddata/sdk-ui-filters > DateFilterHelpers
DateFilterHelpers variable
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
DateFilterHelpers: {
validateFilterOption: (filterOption: import("./interfaces").DateFilterOption) => import("./interfaces").IExtendedDateFilterErrors;
getDateFilterTitle: (filter: import("./interfaces").DateFilterOption, locale: import("@gooddata/sdk-ui").ILocale, dateFormat?: string) => string;
getDateFilterTitleUsingTranslator: (filter: import("./interfaces").DateFilterOption, translator: import("./utils/Translations/Translators").IDateAndMessageTranslator, dateFormat?: string) => string;
getDateFilterRepresentation: (filter: import("./interfaces").DateFilterOption, locale: import("@gooddata/sdk-ui").ILocale, dateFormat?: string) => string;
granularityIntlCodes: {
"GDC.time.year": import("./constants/i18n").GranularityIntlKey;
"GDC.time.week_us": import("./constants/i18n").GranularityIntlKey;
"GDC.time.quarter": import("./constants/i18n").GranularityIntlKey;
"GDC.time.month": import("./constants/i18n").GranularityIntlKey;
"GDC.time.date": import("./constants/i18n").GranularityIntlKey;
"GDC.time.hour": import("./constants/i18n").GranularityIntlKey;
"GDC.time.minute": import("./constants/i18n").GranularityIntlKey;
};
applyExcludeCurrentPeriod: (dateFilterOption: import("./interfaces").DateFilterOption, excludeCurrentPeriod: boolean) => import("./interfaces").DateFilterOption;
defaultDateFilterOptions: import("./interfaces").IDateFilterOptionsByType;
canExcludeCurrentPeriod: (dateFilterOption: import("./interfaces").DateFilterOption) => boolean;
mapOptionToAfm: (value: import("./interfaces").DateFilterOption, dateDataSet: import("@gooddata/sdk-model").ObjRef, excludeCurrentPeriod: boolean) => import("@gooddata/sdk-model").IDateFilter;
formatAbsoluteDateRange: (from: string | Date, to: string | Date, dateFormat: string) => string;
formatRelativeDateRange: (from: number, to: number, granularity: import("@gooddata/sdk-model").DateFilterGranularity, translator: import("./utils/Translations/Translators").IDateAndMessageTranslator) => string;
filterVisibleDateFilterOptions: typeof filterVisibleDateFilterOptions;
}