@pisell/date-picker 1.0.113 → 1.0.114

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.
Files changed (43) hide show
  1. package/es/CustomCalendarHeader/index.d.ts +2 -0
  2. package/es/Dialog/index.d.ts +2 -0
  3. package/es/Drawer/index.d.ts +11 -0
  4. package/{lib/OldPisellDateRangePicker → es/PisellDateRangePicker}/index.d.ts +6 -2
  5. package/es/PisellDateRangePicker/index.js +6 -6
  6. package/es/Shortcuts/index.d.ts +15 -0
  7. package/es/browserSelect/index.d.ts +15 -0
  8. package/es/hooks/useDocumentVisibility.d.ts +2 -0
  9. package/es/hooks/useNextDay.d.ts +2 -0
  10. package/es/hooks/useUpdateEffect.d.ts +2 -0
  11. package/es/icon/ChevronLeft.d.ts +5 -0
  12. package/es/icon/ChevronLeftDouble.d.ts +5 -0
  13. package/es/icon/ChevronRight.d.ts +5 -0
  14. package/es/icon/ChevronRightDouble.d.ts +5 -0
  15. package/es/icon/CloseCircle.d.ts +5 -0
  16. package/es/internals/utils/date-fields-utils.d.ts +1 -1
  17. package/es/locales/en-US.d.ts +26 -0
  18. package/es/locales/zh-CN.d.ts +26 -0
  19. package/es/locales/zh-TW.d.ts +26 -0
  20. package/lib/CustomCalendarHeader/index.d.ts +2 -0
  21. package/lib/Dialog/index.d.ts +2 -0
  22. package/lib/Drawer/index.d.ts +11 -0
  23. package/{es/OldPisellDateRangePicker → lib/PisellDateRangePicker}/index.d.ts +6 -2
  24. package/lib/PisellDateRangePicker/index.js +4 -4
  25. package/lib/Shortcuts/index.d.ts +15 -0
  26. package/lib/browserSelect/index.d.ts +15 -0
  27. package/lib/hooks/useDocumentVisibility.d.ts +2 -0
  28. package/lib/hooks/useNextDay.d.ts +2 -0
  29. package/lib/hooks/useUpdateEffect.d.ts +2 -0
  30. package/lib/icon/ChevronLeft.d.ts +5 -0
  31. package/lib/icon/ChevronLeftDouble.d.ts +5 -0
  32. package/lib/icon/ChevronRight.d.ts +5 -0
  33. package/lib/icon/ChevronRightDouble.d.ts +5 -0
  34. package/lib/icon/CloseCircle.d.ts +5 -0
  35. package/lib/internals/utils/date-fields-utils.d.ts +1 -1
  36. package/lib/locales/en-US.d.ts +26 -0
  37. package/lib/locales/zh-CN.d.ts +26 -0
  38. package/lib/locales/zh-TW.d.ts +26 -0
  39. package/package.json +1 -1
  40. package/es/ActionBar/index.d.ts +0 -19
  41. package/es/OldActionBar/index.d.ts +0 -19
  42. package/lib/ActionBar/index.d.ts +0 -19
  43. package/lib/OldActionBar/index.d.ts +0 -19
@@ -0,0 +1,2 @@
1
+ declare const CustomCalendarHeader: (props: any) => JSX.Element;
2
+ export default CustomCalendarHeader;
@@ -0,0 +1,2 @@
1
+ declare const Dialog: (props: any) => JSX.Element;
2
+ export default Dialog;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ interface DrawerProps {
4
+ open: boolean;
5
+ className?: string;
6
+ height?: number;
7
+ children: React.ReactNode;
8
+ onClose: () => void;
9
+ }
10
+ declare const Drawer: (props: DrawerProps) => JSX.Element | null;
11
+ export default Drawer;
@@ -11,11 +11,11 @@ export interface PisellDateRangePickerProps {
11
11
  /** 再次选择日期时是否清除结束时间 */
12
12
  clearEndOnSelection?: boolean;
13
13
  /** 日期选择确认回调 */
14
- onChange?: (day: (Dayjs | null)[]) => void;
14
+ onChange?: (day: (Dayjs | null)[] | string) => void;
15
15
  /** 日期改变回调 此处只为了组件外拿到当前日期项进行状态操作 通常情况下只使用onChange来拿value */
16
16
  onDateChange?: (day: (Dayjs | null)[]) => void;
17
17
  /** 日期选择值 */
18
- value?: Dayjs[];
18
+ value?: Dayjs[] | string;
19
19
  /** 日期选择默认值 */
20
20
  defaultValue?: Dayjs[];
21
21
  /** 快捷选择项 */
@@ -74,6 +74,10 @@ export interface PisellDateRangePickerProps {
74
74
  placement?: PopperPlacementType;
75
75
  /** 输入框只读 */
76
76
  inputReadOnly: boolean;
77
+ /** 使用快捷筛选时返回快捷字符串 */
78
+ returnShortcutString?: boolean;
79
+ isHideCustomSelect?: boolean;
80
+ endDateDays?: number;
77
81
  }
78
82
  declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => JSX.Element;
79
83
  export default PisellDateRangePicker;
@@ -85,8 +85,8 @@ var PisellDateRangePicker = function PisellDateRangePicker(props) {
85
85
  returnShortcutString = _props$returnShortcut === void 0 ? false : _props$returnShortcut,
86
86
  _props$isHideCustomSe = props.isHideCustomSelect,
87
87
  isHideCustomSelect = _props$isHideCustomSe === void 0 ? false : _props$isHideCustomSe,
88
- _props$isCurrentDayEn = props.isCurrentDayEndDate,
89
- isCurrentDayEndDate = _props$isCurrentDayEn === void 0 ? true : _props$isCurrentDayEn;
88
+ _props$endDateDays = props.endDateDays,
89
+ endDateDays = _props$endDateDays === void 0 ? 0 : _props$endDateDays;
90
90
  var _useState = useState(propsOpen !== null && propsOpen !== void 0 ? propsOpen : false),
91
91
  _useState2 = _slicedToArray(_useState, 2),
92
92
  open = _useState2[0],
@@ -147,7 +147,7 @@ var PisellDateRangePicker = function PisellDateRangePicker(props) {
147
147
  };
148
148
  var handleOk = function handleOk() {
149
149
  var val = getVal();
150
- if (val.some(function (item) {
150
+ if (isArr(val) && val.some(function (item) {
151
151
  return !item;
152
152
  })) {
153
153
  return;
@@ -168,9 +168,9 @@ var PisellDateRangePicker = function PisellDateRangePicker(props) {
168
168
  if (rangePosition === 'start') {
169
169
  newVal = [newVal[0], newVal[0]];
170
170
 
171
- // 默认结束日期是后一天
172
- if (!isCurrentDayEndDate) {
173
- newVal = [newVal[0], dayjs(newVal[0]).add(1, 'day')];
171
+ // 默认结束日期为开始日期加n天
172
+ if (endDateDays) {
173
+ newVal = [newVal[0], dayjs(newVal[0]).add(endDateDays, 'day')];
174
174
  }
175
175
  }
176
176
  if (!newVal[1]) {
@@ -0,0 +1,15 @@
1
+ import "./index.less";
2
+ import { Dayjs } from "dayjs";
3
+ export declare type PresetType = {
4
+ label?: string;
5
+ getValue?: () => [Dayjs, Dayjs];
6
+ value: [Dayjs, Dayjs] | "today" | "yesterday" | "last_3_days" | "last_7_days" | "last_30_days" | "last_90_days" | "last_180_days" | "tomorrow" | "next_3_days" | "next_7_days" | "next_30_days" | "next_90_days" | "next_180_days";
7
+ key?: string;
8
+ };
9
+ interface ShortcutsProps {
10
+ items: PresetType[];
11
+ onChange: (day: [Dayjs, Dayjs], changeImportance?: "accept" | "set") => void;
12
+ changeImportance?: "accept" | "set";
13
+ }
14
+ declare const Shortcuts: (props: ShortcutsProps) => JSX.Element | null;
15
+ export default Shortcuts;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
4
+ options: any[];
5
+ }
6
+ /**
7
+ * @title: 系统级别的下拉框
8
+ * @description:
9
+ * @param {BrowserSelectProps} props
10
+ * @return {*}
11
+ * @Author: zhiwei.Wang
12
+ * @Date: 2024-01-30 16:43
13
+ */
14
+ declare const BrowserSelect: (props: BrowserSelectProps) => JSX.Element;
15
+ export default BrowserSelect;
@@ -0,0 +1,2 @@
1
+ declare const useDocumentVisibility: () => any;
2
+ export default useDocumentVisibility;
@@ -0,0 +1,2 @@
1
+ declare const useNextDay: (fn: Function) => void;
2
+ export default useNextDay;
@@ -0,0 +1,2 @@
1
+ declare const useUpdateEffect: (fn: Function, deps: any[]) => void;
2
+ export default useUpdateEffect;
@@ -0,0 +1,5 @@
1
+ declare const ChevronLeft: (props: {
2
+ className?: string | undefined;
3
+ onClick?: any;
4
+ }) => JSX.Element;
5
+ export default ChevronLeft;
@@ -0,0 +1,5 @@
1
+ declare const ChevronLeftDouble: (props: {
2
+ className?: string | undefined;
3
+ onClick?: any;
4
+ }) => JSX.Element;
5
+ export default ChevronLeftDouble;
@@ -0,0 +1,5 @@
1
+ declare const ChevronRight: (props: {
2
+ className?: string | undefined;
3
+ onClick?: any;
4
+ }) => JSX.Element;
5
+ export default ChevronRight;
@@ -0,0 +1,5 @@
1
+ declare const ChevronRightDouble: (props: {
2
+ className?: string | undefined;
3
+ onClick?: any;
4
+ }) => JSX.Element;
5
+ export default ChevronRightDouble;
@@ -0,0 +1,5 @@
1
+ declare const CloseCircle: (props: {
2
+ className: string;
3
+ onClick: any;
4
+ }) => JSX.Element;
5
+ export default CloseCircle;
@@ -5,7 +5,7 @@ export declare const splitDateRangeSections: (sections: RangeFieldSection[]) =>
5
5
  };
6
6
  export declare const removeLastSeparator: (dateSections: RangeFieldSection[]) => (RangeFieldSection | {
7
7
  separator: null;
8
- dateName: "start" | "end";
8
+ dateName: "end" | "start";
9
9
  value: string;
10
10
  format: string;
11
11
  maxLength: number | null;
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ 'action-bar-cancel': string;
3
+ 'action-bar-apply': string;
4
+ 'action-bar-start.time': string;
5
+ 'action-bar-end.time': string;
6
+ 'toolbar-date-range-shortcut-custom': string;
7
+ "toolbar-date-range-shortcut-date-range": string;
8
+ "toolbar-date-range-shortcut-starting": string;
9
+ "toolbar-date-range-shortcut-ending": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ "action-bar-cancel": string;
3
+ "action-bar-apply": string;
4
+ "action-bar-start.time": string;
5
+ "action-bar-end.time": string;
6
+ "toolbar-date-range-shortcut-date-range": string;
7
+ "toolbar-date-range-shortcut-starting": string;
8
+ "toolbar-date-range-shortcut-ending": string;
9
+ "toolbar-date-range-shortcut-custom": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ 'action-bar-cancel': string;
3
+ 'action-bar-apply': string;
4
+ 'action-bar-start.time': string;
5
+ 'action-bar-end.time': string;
6
+ 'toolbar-date-range-shortcut-custom': string;
7
+ "toolbar-date-range-shortcut-date-range": string;
8
+ "toolbar-date-range-shortcut-starting": string;
9
+ "toolbar-date-range-shortcut-ending": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const CustomCalendarHeader: (props: any) => JSX.Element;
2
+ export default CustomCalendarHeader;
@@ -0,0 +1,2 @@
1
+ declare const Dialog: (props: any) => JSX.Element;
2
+ export default Dialog;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ interface DrawerProps {
4
+ open: boolean;
5
+ className?: string;
6
+ height?: number;
7
+ children: React.ReactNode;
8
+ onClose: () => void;
9
+ }
10
+ declare const Drawer: (props: DrawerProps) => JSX.Element | null;
11
+ export default Drawer;
@@ -11,11 +11,11 @@ export interface PisellDateRangePickerProps {
11
11
  /** 再次选择日期时是否清除结束时间 */
12
12
  clearEndOnSelection?: boolean;
13
13
  /** 日期选择确认回调 */
14
- onChange?: (day: (Dayjs | null)[]) => void;
14
+ onChange?: (day: (Dayjs | null)[] | string) => void;
15
15
  /** 日期改变回调 此处只为了组件外拿到当前日期项进行状态操作 通常情况下只使用onChange来拿value */
16
16
  onDateChange?: (day: (Dayjs | null)[]) => void;
17
17
  /** 日期选择值 */
18
- value?: Dayjs[];
18
+ value?: Dayjs[] | string;
19
19
  /** 日期选择默认值 */
20
20
  defaultValue?: Dayjs[];
21
21
  /** 快捷选择项 */
@@ -74,6 +74,10 @@ export interface PisellDateRangePickerProps {
74
74
  placement?: PopperPlacementType;
75
75
  /** 输入框只读 */
76
76
  inputReadOnly: boolean;
77
+ /** 使用快捷筛选时返回快捷字符串 */
78
+ returnShortcutString?: boolean;
79
+ isHideCustomSelect?: boolean;
80
+ endDateDays?: number;
77
81
  }
78
82
  declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => JSX.Element;
79
83
  export default PisellDateRangePicker;
@@ -99,7 +99,7 @@ var PisellDateRangePicker = (props) => {
99
99
  inputReadOnly = true,
100
100
  returnShortcutString = false,
101
101
  isHideCustomSelect = false,
102
- isCurrentDayEndDate = true
102
+ endDateDays = 0
103
103
  } = props;
104
104
  const [open, setOpen] = (0, import_react.useState)(propsOpen ?? false);
105
105
  const { locale } = (0, import_react.useContext)(import_LocaleContext.LocaleContext) || {};
@@ -148,7 +148,7 @@ var PisellDateRangePicker = (props) => {
148
148
  };
149
149
  const handleOk = () => {
150
150
  const val = getVal();
151
- if (val.some((item) => !item)) {
151
+ if ((0, import_utils.isArr)(val) && val.some((item) => !item)) {
152
152
  return;
153
153
  }
154
154
  setOpen(false);
@@ -166,8 +166,8 @@ var PisellDateRangePicker = (props) => {
166
166
  if (!clearEndOnSelection && !["time", "write", "shortcuts"].includes(type)) {
167
167
  if (rangePosition === "start") {
168
168
  newVal = [newVal[0], newVal[0]];
169
- if (!isCurrentDayEndDate) {
170
- newVal = [newVal[0], (0, import_dayjs.default)(newVal[0]).add(1, "day")];
169
+ if (endDateDays) {
170
+ newVal = [newVal[0], (0, import_dayjs.default)(newVal[0]).add(endDateDays, "day")];
171
171
  }
172
172
  }
173
173
  if (!newVal[1]) {
@@ -0,0 +1,15 @@
1
+ import "./index.less";
2
+ import { Dayjs } from "dayjs";
3
+ export declare type PresetType = {
4
+ label?: string;
5
+ getValue?: () => [Dayjs, Dayjs];
6
+ value: [Dayjs, Dayjs] | "today" | "yesterday" | "last_3_days" | "last_7_days" | "last_30_days" | "last_90_days" | "last_180_days" | "tomorrow" | "next_3_days" | "next_7_days" | "next_30_days" | "next_90_days" | "next_180_days";
7
+ key?: string;
8
+ };
9
+ interface ShortcutsProps {
10
+ items: PresetType[];
11
+ onChange: (day: [Dayjs, Dayjs], changeImportance?: "accept" | "set") => void;
12
+ changeImportance?: "accept" | "set";
13
+ }
14
+ declare const Shortcuts: (props: ShortcutsProps) => JSX.Element | null;
15
+ export default Shortcuts;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
4
+ options: any[];
5
+ }
6
+ /**
7
+ * @title: 系统级别的下拉框
8
+ * @description:
9
+ * @param {BrowserSelectProps} props
10
+ * @return {*}
11
+ * @Author: zhiwei.Wang
12
+ * @Date: 2024-01-30 16:43
13
+ */
14
+ declare const BrowserSelect: (props: BrowserSelectProps) => JSX.Element;
15
+ export default BrowserSelect;
@@ -0,0 +1,2 @@
1
+ declare const useDocumentVisibility: () => any;
2
+ export default useDocumentVisibility;
@@ -0,0 +1,2 @@
1
+ declare const useNextDay: (fn: Function) => void;
2
+ export default useNextDay;
@@ -0,0 +1,2 @@
1
+ declare const useUpdateEffect: (fn: Function, deps: any[]) => void;
2
+ export default useUpdateEffect;
@@ -0,0 +1,5 @@
1
+ declare const ChevronLeft: (props: {
2
+ className?: string | undefined;
3
+ onClick?: any;
4
+ }) => JSX.Element;
5
+ export default ChevronLeft;
@@ -0,0 +1,5 @@
1
+ declare const ChevronLeftDouble: (props: {
2
+ className?: string | undefined;
3
+ onClick?: any;
4
+ }) => JSX.Element;
5
+ export default ChevronLeftDouble;
@@ -0,0 +1,5 @@
1
+ declare const ChevronRight: (props: {
2
+ className?: string | undefined;
3
+ onClick?: any;
4
+ }) => JSX.Element;
5
+ export default ChevronRight;
@@ -0,0 +1,5 @@
1
+ declare const ChevronRightDouble: (props: {
2
+ className?: string | undefined;
3
+ onClick?: any;
4
+ }) => JSX.Element;
5
+ export default ChevronRightDouble;
@@ -0,0 +1,5 @@
1
+ declare const CloseCircle: (props: {
2
+ className: string;
3
+ onClick: any;
4
+ }) => JSX.Element;
5
+ export default CloseCircle;
@@ -5,7 +5,7 @@ export declare const splitDateRangeSections: (sections: RangeFieldSection[]) =>
5
5
  };
6
6
  export declare const removeLastSeparator: (dateSections: RangeFieldSection[]) => (RangeFieldSection | {
7
7
  separator: null;
8
- dateName: "start" | "end";
8
+ dateName: "end" | "start";
9
9
  value: string;
10
10
  format: string;
11
11
  maxLength: number | null;
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ 'action-bar-cancel': string;
3
+ 'action-bar-apply': string;
4
+ 'action-bar-start.time': string;
5
+ 'action-bar-end.time': string;
6
+ 'toolbar-date-range-shortcut-custom': string;
7
+ "toolbar-date-range-shortcut-date-range": string;
8
+ "toolbar-date-range-shortcut-starting": string;
9
+ "toolbar-date-range-shortcut-ending": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ "action-bar-cancel": string;
3
+ "action-bar-apply": string;
4
+ "action-bar-start.time": string;
5
+ "action-bar-end.time": string;
6
+ "toolbar-date-range-shortcut-date-range": string;
7
+ "toolbar-date-range-shortcut-starting": string;
8
+ "toolbar-date-range-shortcut-ending": string;
9
+ "toolbar-date-range-shortcut-custom": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ 'action-bar-cancel': string;
3
+ 'action-bar-apply': string;
4
+ 'action-bar-start.time': string;
5
+ 'action-bar-end.time': string;
6
+ 'toolbar-date-range-shortcut-custom': string;
7
+ "toolbar-date-range-shortcut-date-range": string;
8
+ "toolbar-date-range-shortcut-starting": string;
9
+ "toolbar-date-range-shortcut-ending": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/date-picker",
3
- "version": "1.0.113",
3
+ "version": "1.0.114",
4
4
  "sideEffects": [
5
5
  "*.less"
6
6
  ],
@@ -1,19 +0,0 @@
1
- import { ButtonProps } from 'antd';
2
- import { Dayjs } from 'dayjs';
3
- import './index.less';
4
- interface ActionBarProps {
5
- ownerState: any;
6
- onCancel: () => void;
7
- onChange: (val: any[], type?: 'time') => void;
8
- onOk: () => void;
9
- value: any[];
10
- showTime?: boolean | {
11
- defaultValue: Dayjs;
12
- [key: string]: any;
13
- }[];
14
- okButtonProps?: ButtonProps;
15
- cancelButtonProps?: ButtonProps;
16
- isDesktop: boolean;
17
- }
18
- declare const ActionBar: (props: ActionBarProps) => JSX.Element;
19
- export default ActionBar;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonProps } from "antd";
3
- import { Dayjs } from "dayjs";
4
- import "./index.less";
5
- interface ActionBarProps {
6
- ownerState: any;
7
- onCancel: () => void;
8
- onChange: (val: any[], type?: "time") => void;
9
- onOk: () => void;
10
- value: any[];
11
- showTime?: boolean | {
12
- defaultValue: Dayjs;
13
- [key: string]: any;
14
- }[];
15
- okButtonProps?: ButtonProps;
16
- cancelButtonProps?: ButtonProps;
17
- }
18
- declare const ActionBar: (props: ActionBarProps) => JSX.Element;
19
- export default ActionBar;
@@ -1,19 +0,0 @@
1
- import { ButtonProps } from 'antd';
2
- import { Dayjs } from 'dayjs';
3
- import './index.less';
4
- interface ActionBarProps {
5
- ownerState: any;
6
- onCancel: () => void;
7
- onChange: (val: any[], type?: 'time') => void;
8
- onOk: () => void;
9
- value: any[];
10
- showTime?: boolean | {
11
- defaultValue: Dayjs;
12
- [key: string]: any;
13
- }[];
14
- okButtonProps?: ButtonProps;
15
- cancelButtonProps?: ButtonProps;
16
- isDesktop: boolean;
17
- }
18
- declare const ActionBar: (props: ActionBarProps) => JSX.Element;
19
- export default ActionBar;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonProps } from "antd";
3
- import { Dayjs } from "dayjs";
4
- import "./index.less";
5
- interface ActionBarProps {
6
- ownerState: any;
7
- onCancel: () => void;
8
- onChange: (val: any[], type?: "time") => void;
9
- onOk: () => void;
10
- value: any[];
11
- showTime?: boolean | {
12
- defaultValue: Dayjs;
13
- [key: string]: any;
14
- }[];
15
- okButtonProps?: ButtonProps;
16
- cancelButtonProps?: ButtonProps;
17
- }
18
- declare const ActionBar: (props: ActionBarProps) => JSX.Element;
19
- export default ActionBar;