@elliemae/ds-date-range-selector 3.17.0-next.9 → 3.17.0
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.
- package/dist/types/DSDateRangeSelector.d.ts +64 -0
- package/dist/types/components/CustomOptionRender/CustomOptionRender.d.ts +17 -0
- package/dist/types/components/DateRangeSelectorImpl.d.ts +17 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/options/dropdownPreselectedOptions.d.ts +13 -0
- package/package.json +8 -8
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DropdownOptionsTypes, dropdownPreselectedOptions, CUSTOM_OPTION_VALUE } from './options/dropdownPreselectedOptions.js';
|
|
2
|
+
declare const DSDateRangeSelector: {
|
|
3
|
+
({ containerProps, className, preselectedOptions, onChange, placeholder, value, customOptionRender, startDate, endDate, displayFormatDay, disableCustomOption, hasError, }: {
|
|
4
|
+
containerProps?: {} | undefined;
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
preselectedOptions?: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
onChange?: (() => null) | undefined;
|
|
11
|
+
placeholder?: string | undefined;
|
|
12
|
+
value?: null | undefined;
|
|
13
|
+
customOptionRender?: (({ customRange: { startDate, endDate } }: {
|
|
14
|
+
customRange: {
|
|
15
|
+
startDate: any;
|
|
16
|
+
endDate: any;
|
|
17
|
+
};
|
|
18
|
+
}) => import("react/jsx-runtime.js").JSX.Element) | undefined;
|
|
19
|
+
startDate?: null | undefined;
|
|
20
|
+
endDate?: null | undefined;
|
|
21
|
+
displayFormatDay?: string | undefined;
|
|
22
|
+
disableCustomOption?: boolean | undefined;
|
|
23
|
+
hasError?: boolean | undefined;
|
|
24
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
25
|
+
propTypes: {
|
|
26
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
27
|
+
className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
28
|
+
preselectedOptions: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
29
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
30
|
+
placeholder: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
31
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
32
|
+
customOptionRender: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
33
|
+
startDate: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
34
|
+
endDate: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
35
|
+
displayFormatDay: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
36
|
+
disableCustomOption: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
37
|
+
};
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
export { CUSTOM_OPTION_VALUE, dropdownPreselectedOptions, DropdownOptionsTypes };
|
|
41
|
+
declare const DateRangeRecurrenceSelectorWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
42
|
+
containerProps?: {} | undefined;
|
|
43
|
+
className?: string | undefined;
|
|
44
|
+
preselectedOptions?: {
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
onChange?: (() => null) | undefined;
|
|
49
|
+
placeholder?: string | undefined;
|
|
50
|
+
value?: null | undefined;
|
|
51
|
+
customOptionRender?: (({ customRange: { startDate, endDate } }: {
|
|
52
|
+
customRange: {
|
|
53
|
+
startDate: any;
|
|
54
|
+
endDate: any;
|
|
55
|
+
};
|
|
56
|
+
}) => import("react/jsx-runtime.js").JSX.Element) | undefined;
|
|
57
|
+
startDate?: null | undefined;
|
|
58
|
+
endDate?: null | undefined;
|
|
59
|
+
displayFormatDay?: string | undefined;
|
|
60
|
+
disableCustomOption?: boolean | undefined;
|
|
61
|
+
hasError?: boolean | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
export { DateRangeRecurrenceSelectorWithSchema, DSDateRangeSelector };
|
|
64
|
+
export default DSDateRangeSelector;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param root0
|
|
3
|
+
* @param root0.customRange
|
|
4
|
+
* @param root0.customRange.startDate
|
|
5
|
+
* @param root0.customRange.endDate
|
|
6
|
+
* @customRange {
|
|
7
|
+
endDate
|
|
8
|
+
startDate
|
|
9
|
+
}
|
|
10
|
+
*/
|
|
11
|
+
declare const CustomOptionRender: ({ customRange: { startDate, endDate } }: {
|
|
12
|
+
customRange: {
|
|
13
|
+
startDate: any;
|
|
14
|
+
endDate: any;
|
|
15
|
+
};
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default CustomOptionRender;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import 'react-dates/initialize.js';
|
|
3
|
+
declare class DateTimeRecurenceSelectorImpl extends Component {
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
onChange: () => void;
|
|
6
|
+
onChangeDropdown: (value: any) => void;
|
|
7
|
+
onDatesChange({ startDate, endDate }: {
|
|
8
|
+
startDate: any;
|
|
9
|
+
endDate: any;
|
|
10
|
+
}): void;
|
|
11
|
+
onFocusChange(): void;
|
|
12
|
+
handleConfirm: () => void;
|
|
13
|
+
handleOpenModal: () => void;
|
|
14
|
+
handleCloseModal: () => void;
|
|
15
|
+
render(): import("react/jsx-runtime.js").JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export default DateTimeRecurenceSelectorImpl;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const DropdownOptionsTypes: {
|
|
2
|
+
TODAY: string;
|
|
3
|
+
YESTERDAY: string;
|
|
4
|
+
LAST_7_DAYS: string;
|
|
5
|
+
LAST_30_DAYS: string;
|
|
6
|
+
THIS_MONTH: string;
|
|
7
|
+
LAST_MONTH: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const dropdownPreselectedOptions: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
export declare const CUSTOM_OPTION_VALUE = "custom-option-value";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-date-range-selector",
|
|
3
|
-
"version": "3.17.0
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Date Range Selector",
|
|
6
6
|
"files": [
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"moment": "~2.29.4",
|
|
55
55
|
"react-dates": "~21.8.0",
|
|
56
56
|
"react-select": "4.3.1",
|
|
57
|
-
"@elliemae/ds-classnames": "3.17.0
|
|
58
|
-
"@elliemae/ds-
|
|
59
|
-
"@elliemae/ds-
|
|
60
|
-
"@elliemae/ds-
|
|
61
|
-
"@elliemae/ds-
|
|
62
|
-
"@elliemae/ds-
|
|
63
|
-
"@elliemae/ds-
|
|
57
|
+
"@elliemae/ds-classnames": "3.17.0",
|
|
58
|
+
"@elliemae/ds-form": "3.17.0",
|
|
59
|
+
"@elliemae/ds-date-picker": "3.17.0",
|
|
60
|
+
"@elliemae/ds-popper": "3.17.0",
|
|
61
|
+
"@elliemae/ds-icons": "3.17.0",
|
|
62
|
+
"@elliemae/ds-props-helpers": "3.17.0",
|
|
63
|
+
"@elliemae/ds-utilities": "3.17.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"lodash": "^4.17.21",
|