@blueking/date-picker 0.0.29 → 0.0.30

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.
@@ -1,28 +1,28 @@
1
1
  import { DateMode } from './index';
2
2
  export declare const DateUnitList: readonly [{
3
3
  readonly id: "s";
4
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
4
+ readonly name: string;
5
5
  }, {
6
6
  readonly id: "m";
7
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
7
+ readonly name: string;
8
8
  }, {
9
9
  readonly id: "h";
10
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
10
+ readonly name: string;
11
11
  }, {
12
12
  readonly id: "d";
13
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
13
+ readonly name: string;
14
14
  }, {
15
15
  readonly id: "w";
16
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
16
+ readonly name: string;
17
17
  }, {
18
18
  readonly id: "M";
19
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
19
+ readonly name: string;
20
20
  }, {
21
21
  readonly id: "y";
22
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
22
+ readonly name: string;
23
23
  }];
24
24
  export type DateUnit = (typeof DateUnitList)[number]['id'];
25
- export declare const dateUnit: "m" | "w" | "d" | "h" | "y" | "M" | "s";
25
+ export declare const dateUnit: "M" | "d" | "h" | "m" | "s" | "w" | "y";
26
26
  export declare enum NaturalOptionType {
27
27
  custom = "custom",
28
28
  default = "default",
@@ -30,16 +30,16 @@ export declare enum NaturalOptionType {
30
30
  }
31
31
  export declare const CommonNaturalOptions: ({
32
32
  id: string;
33
- name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
33
+ name: string;
34
34
  type: NaturalOptionType;
35
35
  prefix?: undefined;
36
36
  suffix?: undefined;
37
37
  unit?: undefined;
38
38
  } | {
39
39
  id: string;
40
- name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
41
- prefix: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
42
- suffix: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
40
+ name: string;
41
+ prefix: string;
42
+ suffix: string;
43
43
  type: NaturalOptionType;
44
44
  unit: string;
45
45
  })[];
@@ -49,18 +49,30 @@ export declare enum NaturalUnit {
49
49
  }
50
50
  export declare const naturalUnitOptions: readonly [{
51
51
  readonly id: NaturalUnit.ALL;
52
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
52
+ readonly name: string;
53
53
  }, {
54
54
  readonly id: NaturalUnit.NOW;
55
- readonly name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
55
+ readonly name: string;
56
56
  }];
57
57
  export declare const panels: {
58
58
  id: string;
59
- name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
59
+ name: string;
60
60
  }[];
61
61
  export declare const datePickTabList: {
62
62
  id: DateMode;
63
- name: "Last week" | "Last month" | "Today" | "minutes" | "now-2d/d" | "weeks" | "days" | "hours" | "years" | "Yesterday" | "Months" | "This week" | "This month" | "Seconds" | "now-1w/w" | "now-1M/M" | "now/d" | "m" | "Previous" | "Previous N weeks" | "Previous N days" | "The day before yesterday" | "w" | "d" | "Future" | "h" | "Common" | "y" | "Start Time" | "Support multiple time formats for automatic conversion" | "whole" | "No matching data" | "Time Range" | "Timezone setting" | "Time format support" | "now-1d/d" | "No recent records" | "Last" | "Recently" | "M" | "now/w" | "now/M" | "View supported formats" | "Format" | "now" | "Browser time" | "Confirm" | "Example" | "s" | "End Time" | "Natural" | "so far" | "Please enter" | "Please enter search (country, city, abbreviation)" | "Last " | "(so far)" | "option-上周" | "option-上月" | "option-今天" | "option-分钟" | "option-前天" | "option-周" | "option-天" | "option-小时" | "option-年" | "option-昨天" | "option-月" | "option-本周" | "option-本月" | "option-秒" | "上周" | "上月" | "今天" | "分钟" | "前" | "前 N 周" | "前 N 天" | "前天" | "周" | "天" | "将来" | "小时" | "常用时间" | "年" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "昨天" | "暂无最近使用记录" | "最近" | "最近使用" | "月" | "未来" | "本周" | "本月" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "秒" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)";
63
+ name: string;
64
64
  }[];
65
65
  export declare const getStoreKey: (key?: number | string) => string;
66
66
  export declare const dateFormatList: string[];
67
+ export declare const naturalDateShortcutMap: {
68
+ readonly 'now/M~now/M': string;
69
+ readonly 'now/d~now/d': string;
70
+ readonly 'now/w~now/w': string;
71
+ readonly 'now/y~now/y': string;
72
+ readonly 'now-1M/M~now-1M/M': string;
73
+ readonly 'now-1d/d~now-1d/d': string;
74
+ readonly 'now-1w/w~now-1w/w': string;
75
+ readonly 'now-1y/y~now-1y/y': string;
76
+ readonly 'now-2d/d~now-2d/d': string;
77
+ readonly 'now-2y/y~now-2y/y': string;
78
+ };
@@ -0,0 +1,35 @@
1
+ import dayjs, { Dayjs } from 'dayjs';
2
+ import { DateUnit } from './constant';
3
+ import { DateMode, DateValue } from './types';
4
+ export declare const commonDateRegexp: RegExp;
5
+ export declare const recentDateRegexp: RegExp;
6
+ export declare const futureDateRegexp: RegExp;
7
+ export declare const naturalDateRegexp: RegExp;
8
+ export declare class DateRange {
9
+ dateValue: DateValue;
10
+ format: string;
11
+ endDate: Dayjs | null;
12
+ endNum: number | undefined;
13
+ endUnit: DateUnit | undefined;
14
+ startDate: Dayjs | null;
15
+ startNum: number | undefined;
16
+ startUnit: DateUnit | undefined;
17
+ constructor(dateValue?: DateValue, format?: string);
18
+ dateDuration(): number | undefined;
19
+ toDisplayString(): string;
20
+ toEmitValue(): [
21
+ DateValue,
22
+ {
23
+ dayjs: Dayjs | null;
24
+ formatText: null | string;
25
+ }[]
26
+ ];
27
+ transformValue2Dayjs(value: DateValue[number], type?: 'end' | 'start'): dayjs.Dayjs;
28
+ updateDateValue(dateValue: DateValue): void;
29
+ updateFormat(format: string): void;
30
+ get dateMode(): DateMode;
31
+ get isValidate(): boolean | undefined;
32
+ get recentOrFuturedateNum(): number | undefined;
33
+ get recentOrFuturedateUnit(): "M" | "d" | "h" | "m" | "s" | "w" | "y" | undefined;
34
+ }
35
+ export declare const transformValue2Dayjs: (value: DateValue[number], type?: 'end' | 'start') => dayjs.Dayjs | undefined;
@@ -1,3 +1,5 @@
1
1
  export * from './types';
2
2
  export * from './constant';
3
3
  export * from './utils';
4
+ export * from './timezone';
5
+ export * from './date';
@@ -11,4 +11,4 @@ export declare const getStoreDateList: (storeKey: string) => any[];
11
11
  * @param storeKey store key
12
12
  * @returns void
13
13
  */
14
- export declare const setStoreDateList: (val: DateValue | string[], storeKey: string) => void;
14
+ export declare const setStoreDateList: (val: DateValue | number[] | string[], storeKey: string) => void;
@@ -1,3 +1,4 @@
1
+ import dayjs, { type Dayjs } from 'dayjs';
1
2
  import { DateUnit } from './constant';
2
3
  export interface ICommonTabItem {
3
4
  id: string;
@@ -16,4 +17,13 @@ export type FutureDateValue = ['now', FutureValue];
16
17
  export type NaturalSelectDate = `${RecentValue}/${DateUnit}`;
17
18
  export type NaturalDateValue = [NaturalSelectDate, 'now' | NaturalSelectDate];
18
19
  export type CommonDateValue = [string, string];
19
- export type DateValue = CommonDateValue | FutureDateValue | NaturalDateValue | RecentDateValue;
20
+ export type DateValue = [Dayjs | number | string, Dayjs | number | string];
21
+ export interface IDatePickerProps {
22
+ behavior?: 'normal' | 'simplicity';
23
+ disabled?: boolean;
24
+ format?: string;
25
+ modelValue: DateValue | dayjs.Dayjs[] | number[] | string[] | undefined;
26
+ needTimezone?: boolean;
27
+ timezone?: string;
28
+ version?: number | string;
29
+ }
@@ -1,11 +1,6 @@
1
- import dayjs from 'dayjs';
2
1
  import { ComputedRef, InjectionKey } from 'vue';
3
2
  import { LangKey } from '../lang/lang';
4
3
  import { ITimezoneItem } from './timezone';
5
- import { DateMode, DateValue } from './types';
6
- export declare const recentDateRegexp: RegExp;
7
- export declare const naturalDateRegexp: RegExp;
8
- export declare const commonDateRegexp: RegExp;
9
4
  export interface IDatePickerProvider {
10
5
  format: ComputedRef<string>;
11
6
  storeKey: ComputedRef<string>;
@@ -15,29 +10,3 @@ export interface IDatePickerProvider {
15
10
  export declare const DATE_PICKER_PROVIDER_KEY: InjectionKey<IDatePickerProvider>;
16
11
  export declare const useDatePickerProvider: (data: IDatePickerProvider) => void;
17
12
  export declare const useDatePickertInject: () => IDatePickerProvider | undefined;
18
- /**
19
- *
20
- * @param value 日期值
21
- * @param format 日期格式
22
- * @returns 日期值对应展示字符串
23
- */
24
- export declare const getDateValueToString: (value: DateValue | undefined, format: string) => string;
25
- /**
26
- *
27
- * @param value 日期值
28
- * @returns 日期值对应展示模式
29
- */
30
- export declare const getDateValueMode: (value: DateValue | undefined) => DateMode;
31
- /**
32
- *
33
- * @param value 日期值
34
- * @param format 日期格式
35
- * @returns 日期值对应 dayjs 对象
36
- */
37
- export declare const transformDateValueToDayjs: (value: DateValue | string[] | undefined) => dayjs.Dayjs[];
38
- export declare const transformDateToDayjs: (value: string, type?: 'end' | 'start') => dayjs.Dayjs | undefined;
39
- /**
40
- * @param val 日期值
41
- * @returns 日期值是否有效
42
- */
43
- export declare const isValidDateValue: (val: DateValue | string[] | undefined) => boolean;