"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.NUMBER_REG = exports.prefixCls = exports.KEY_SLOT = exports.showNature = exports.TextFilterTypeSet = exports.DynamincType = exports.DateUntilKeys = exports.DateUnitKeys = exports.FilterTypeKeys = exports.FastTypeKeys = void 0;
var FastTypeKeys;

(function (FastTypeKeys) {
  FastTypeKeys["unlimited"] = "unlimited";
  FastTypeKeys["yesterday"] = "yesterday";
  FastTypeKeys["last24Hours"] = "last24Hours";
  FastTypeKeys["lastWeek"] = "lastWeek";
  FastTypeKeys["lastMonth"] = "lastMonth";
  FastTypeKeys["lastQuarter"] = "lastQuarter";
  FastTypeKeys["lastYear"] = "lastYear";
  FastTypeKeys["thisWeek"] = "thisWeek";
  FastTypeKeys["thisMonth"] = "thisMonth";
  FastTypeKeys["thisYear"] = "thisYear";
  FastTypeKeys["thisQuarter"] = "thisQuarter";
  FastTypeKeys["today"] = "today";
  FastTypeKeys["tomorrow"] = "tomorrow";
  FastTypeKeys["future24Hours"] = "future24Hours";
  FastTypeKeys["nextWeek"] = "nextWeek";
  FastTypeKeys["customer"] = "customer";
  FastTypeKeys["untilNow"] = "untilNow";
  FastTypeKeys["yearSelect"] = "yearSelect";
  FastTypeKeys["monthSelect"] = "monthSelect";
  FastTypeKeys["quarterSelect"] = "quarterSelect";
})(FastTypeKeys = exports.FastTypeKeys || (exports.FastTypeKeys = {}));

var FilterTypeKeys;

(function (FilterTypeKeys) {
  FilterTypeKeys["contain"] = "contain";
  FilterTypeKeys["nocontain"] = "nocontain";
  FilterTypeKeys["equal"] = "eq";
  FilterTypeKeys["empty"] = "is";
  FilterTypeKeys["unempty"] = "notis";
  FilterTypeKeys["startwith"] = "startwith";
  FilterTypeKeys["endwith"] = "endwith";
  FilterTypeKeys["eitherof"] = "in";
  FilterTypeKeys["neitherof"] = "notin";
})(FilterTypeKeys = exports.FilterTypeKeys || (exports.FilterTypeKeys = {}));

var DateUnitKeys;

(function (DateUnitKeys) {
  DateUnitKeys["years"] = "years";
  DateUnitKeys["month"] = "month";
  DateUnitKeys["quarter"] = "quarter";
  DateUnitKeys["day"] = "day";
  DateUnitKeys["week"] = "week";
  DateUnitKeys["hour"] = "hour";
  DateUnitKeys["minute"] = "minute";
  DateUnitKeys["second"] = "second";
})(DateUnitKeys = exports.DateUnitKeys || (exports.DateUnitKeys = {}));

var DateUntilKeys;

(function (DateUntilKeys) {
  DateUntilKeys["yearEnd"] = "yearEnd";
  DateUntilKeys["yearStart"] = "yearStart";
  DateUntilKeys["quarterEnd"] = "quarterEnd";
  DateUntilKeys["quarterStart"] = "quarterStart";
  DateUntilKeys["monthEnd"] = "monthEnd";
  DateUntilKeys["monthStart"] = "monthStart";
  DateUntilKeys["yeasterday"] = "yesterday";
  DateUntilKeys["weekend"] = "weekend";
  DateUntilKeys["weekStart"] = "weekStart";
  DateUntilKeys["today"] = "today";
  DateUntilKeys["now"] = "now";
  DateUntilKeys["tomorrow"] = "tomorrow";
  DateUntilKeys["onHour"] = "onHour";
  DateUntilKeys["onMinute"] = "onMinute";
  DateUntilKeys["onSecond"] = "onSecond";
})(DateUntilKeys = exports.DateUntilKeys || (exports.DateUntilKeys = {}));

var DynamincType;

(function (DynamincType) {
  DynamincType["after"] = "after";
  DynamincType["before"] = "before";
})(DynamincType = exports.DynamincType || (exports.DynamincType = {}));

var TextFilterTypeSet;

(function (TextFilterTypeSet) {
  TextFilterTypeSet["standard"] = "standard";
  TextFilterTypeSet["filter"] = "filter";
})(TextFilterTypeSet = exports.TextFilterTypeSet || (exports.TextFilterTypeSet = {})); // 展示自然勾选


var showNature = function showNature(unit) {
  return [DateUnitKeys.years, DateUnitKeys.quarter, DateUnitKeys.week, DateUnitKeys.month].includes(unit);
};

exports.showNature = showNature;
exports.KEY_SLOT = '-';
exports.prefixCls = 'dmc-date-filter';
exports.NUMBER_REG = /^([1-9]\d?)$/;

