2019-11-26 19:39:40 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* WooCommerce dependencies
|
|
|
|
*/
|
|
|
|
import {
|
|
|
|
isoDateFormat,
|
|
|
|
presetValues,
|
|
|
|
periods,
|
|
|
|
appendTimestamp,
|
|
|
|
toMoment,
|
|
|
|
getRangeLabel,
|
|
|
|
getLastPeriod,
|
|
|
|
getCurrentPeriod,
|
|
|
|
getDateParamsFromQuery,
|
|
|
|
getCurrentDates,
|
|
|
|
getDateDifferenceInDays,
|
|
|
|
getPreviousDate,
|
|
|
|
getAllowedIntervalsForQuery,
|
|
|
|
getIntervalForQuery,
|
|
|
|
getChartTypeForQuery,
|
|
|
|
dayTicksThreshold,
|
|
|
|
weekTicksThreshold,
|
|
|
|
defaultTableDateFormat,
|
|
|
|
getDateFormatsForInterval,
|
|
|
|
dateValidationMessages,
|
|
|
|
validateDateInputForRange,
|
|
|
|
} from '@woocommerce/date';
|
|
|
|
|
|
|
|
// Export the expected API for the consuming app.
|
|
|
|
export {
|
|
|
|
isoDateFormat,
|
|
|
|
presetValues,
|
|
|
|
periods,
|
|
|
|
appendTimestamp,
|
|
|
|
toMoment,
|
|
|
|
getRangeLabel,
|
|
|
|
getLastPeriod,
|
|
|
|
getCurrentPeriod,
|
2020-03-25 03:20:17 +00:00
|
|
|
getDateParamsFromQuery,
|
|
|
|
getCurrentDates,
|
2019-11-26 19:39:40 +00:00
|
|
|
getDateDifferenceInDays,
|
|
|
|
getPreviousDate,
|
|
|
|
getAllowedIntervalsForQuery,
|
|
|
|
getIntervalForQuery,
|
|
|
|
getChartTypeForQuery,
|
|
|
|
dayTicksThreshold,
|
|
|
|
weekTicksThreshold,
|
|
|
|
defaultTableDateFormat,
|
|
|
|
getDateFormatsForInterval,
|
|
|
|
dateValidationMessages,
|
|
|
|
validateDateInputForRange,
|
|
|
|
};
|