woocommerce/plugins/woocommerce-admin/client/lib/date.js

60 lines
1.0 KiB
JavaScript

/**
* 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,
getDateParamsFromQuery,
getCurrentDates,
getDateDifferenceInDays,
getPreviousDate,
getAllowedIntervalsForQuery,
getIntervalForQuery,
getChartTypeForQuery,
dayTicksThreshold,
weekTicksThreshold,
defaultTableDateFormat,
getDateFormatsForInterval,
dateValidationMessages,
validateDateInputForRange,
};