@elliemae/ds-date-time-recurrence-picker 1.61.0 → 2.0.0-alpha.12
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/cjs/DSDateTimeRecurrenceSelector.js +77 -167
- package/cjs/__test__/DSDateTimeRecurrenceSelector.test.js +30 -0
- package/cjs/components/AlertModal/DateTimeRangeModal.js +32 -97
- package/cjs/components/CustomOptionRender/CustomOptionRender.js +37 -32
- package/cjs/components/DateTimeRangeModal/DateTimeRangeModal.js +98 -181
- package/cjs/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js +263 -332
- package/cjs/components/DateTimeRecurenceSelectorImpl.js +165 -225
- package/cjs/components/DayOfMonthPicker/DayOfMonthPicker.js +31 -42
- package/cjs/components/DayOfYearPicker/DayOfYearPicker.js +30 -37
- package/cjs/components/DaysOfWeekPicker/DaysOfWeekPicker.js +39 -39
- package/cjs/components/EndDate/EndDate.js +26 -37
- package/cjs/components/FieldWrapper/FieldWrapper.js +11 -8
- package/cjs/components/Forms/FormField.js +0 -1
- package/cjs/components/Forms/FormFieldGroup.js +0 -1
- package/cjs/components/Forms/FormGroup.js +0 -1
- package/cjs/components/Forms/FormLabel.js +0 -1
- package/cjs/components/LabelWrapper/LabelWrapper.js +11 -8
- package/cjs/components/RepeatPickerInput/RepeatPickerInput.js +38 -45
- package/cjs/components/StartDateTime/StartDateTime.js +19 -24
- package/cjs/components/TimeZonePicker/TimeZonePicker.js +23 -26
- package/cjs/components/ValidationMessage/ValidationMessage.js +12 -10
- package/cjs/components/helpers/nthday.js +4 -7
- package/cjs/index.js +19 -61
- package/cjs/options/dropdownDayOfMonthOptions.js +1 -2
- package/cjs/options/dropdownDayOfWeekOptions.js +1 -2
- package/cjs/options/dropdownDayOfYearOptions.js +1 -2
- package/cjs/options/dropdownPreselectedOptions.js +2 -3
- package/cjs/options/dropdownRepeatOptions.js +2 -3
- package/cjs/options/dropdownTimeZoneOptions.js +2 -3
- package/cjs/options/endTypesOptions.js +3 -4
- package/esm/DSDateTimeRecurrenceSelector.js +52 -142
- package/esm/__test__/DSDateTimeRecurrenceSelector.test.js +24 -0
- package/esm/components/AlertModal/DateTimeRangeModal.js +30 -95
- package/esm/components/CustomOptionRender/CustomOptionRender.js +30 -24
- package/esm/components/DateTimeRangeModal/DateTimeRangeModal.js +96 -175
- package/esm/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js +250 -313
- package/esm/components/DateTimeRecurenceSelectorImpl.js +163 -216
- package/esm/components/DayOfMonthPicker/DayOfMonthPicker.js +24 -34
- package/esm/components/DayOfYearPicker/DayOfYearPicker.js +24 -30
- package/esm/components/DaysOfWeekPicker/DaysOfWeekPicker.js +34 -34
- package/esm/components/EndDate/EndDate.js +19 -30
- package/esm/components/FieldWrapper/FieldWrapper.js +10 -7
- package/esm/components/Forms/FormField.js +0 -1
- package/esm/components/Forms/FormFieldGroup.js +0 -1
- package/esm/components/Forms/FormGroup.js +0 -1
- package/esm/components/Forms/FormLabel.js +0 -1
- package/esm/components/LabelWrapper/LabelWrapper.js +10 -7
- package/esm/components/RepeatPickerInput/RepeatPickerInput.js +33 -39
- package/esm/components/StartDateTime/StartDateTime.js +14 -19
- package/esm/components/TimeZonePicker/TimeZonePicker.js +19 -22
- package/esm/components/ValidationMessage/ValidationMessage.js +11 -9
- package/esm/components/helpers/nthday.js +4 -7
- package/esm/index.js +0 -42
- package/esm/options/dropdownDayOfMonthOptions.js +1 -2
- package/esm/options/dropdownDayOfWeekOptions.js +1 -2
- package/esm/options/dropdownDayOfYearOptions.js +1 -2
- package/esm/options/dropdownPreselectedOptions.js +2 -3
- package/esm/options/dropdownRepeatOptions.js +2 -3
- package/esm/options/dropdownTimeZoneOptions.js +2 -3
- package/esm/options/endTypesOptions.js +3 -4
- package/package.json +148 -14
- package/types/DSDateTimeRecurrenceSelector.d.ts +380 -0
- package/types/__test__/DSDateTimeRecurrenceSelector.test.d.ts +1 -0
- package/types/components/AlertModal/DateTimeRangeModal.d.ts +27 -0
- package/types/components/CustomOptionRender/CustomOptionRender.d.ts +53 -0
- package/types/components/DateTimeRangeModal/DateTimeRangeModal.d.ts +9 -0
- package/types/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.d.ts +18 -0
- package/types/components/DateTimeRecurenceSelectorImpl.d.ts +20 -0
- package/types/components/DayOfMonthPicker/DayOfMonthPicker.d.ts +15 -0
- package/types/components/DayOfYearPicker/DayOfYearPicker.d.ts +15 -0
- package/types/components/DaysOfWeekPicker/DaysOfWeekPicker.d.ts +12 -0
- package/types/components/EndDate/EndDate.d.ts +13 -0
- package/types/components/FieldWrapper/FieldWrapper.d.ts +5 -0
- package/types/components/Forms/FormField.d.ts +3 -0
- package/types/components/Forms/FormFieldGroup.d.ts +3 -0
- package/types/components/Forms/FormGroup.d.ts +6 -0
- package/types/components/Forms/FormLabel.d.ts +3 -0
- package/types/components/LabelWrapper/LabelWrapper.d.ts +5 -0
- package/types/components/RepeatPickerInput/RepeatPickerInput.d.ts +11 -0
- package/types/components/StartDateTime/StartDateTime.d.ts +9 -0
- package/types/components/TimeZonePicker/TimeZonePicker.d.ts +11 -0
- package/types/components/ValidationMessage/ValidationMessage.d.ts +5 -0
- package/types/components/helpers/nthday.d.ts +4 -0
- package/types/index.d.ts +2 -0
- package/types/options/dropdownDayOfMonthOptions.d.ts +4 -0
- package/types/options/dropdownDayOfWeekOptions.d.ts +4 -0
- package/types/options/dropdownDayOfYearOptions.d.ts +4 -0
- package/types/options/dropdownPreselectedOptions.d.ts +10 -0
- package/types/options/dropdownRepeatOptions.d.ts +10 -0
- package/types/options/dropdownTimeZoneOptions.d.ts +12 -0
- package/types/options/endTypesOptions.d.ts +13 -0
- package/DSDateTimeRecurrenceSelector/package.json +0 -10
- package/cjs/DSDateTimeRecurrenceSelector.js.map +0 -1
- package/cjs/components/AlertModal/DateTimeRangeModal.js.map +0 -1
- package/cjs/components/CustomOptionRender/CustomOptionRender.js.map +0 -1
- package/cjs/components/DateTimeRangeModal/DateTimeRangeModal.js.map +0 -1
- package/cjs/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js.map +0 -1
- package/cjs/components/DateTimeRecurenceSelectorImpl.js.map +0 -1
- package/cjs/components/DayOfMonthPicker/DayOfMonthPicker.js.map +0 -1
- package/cjs/components/DayOfYearPicker/DayOfYearPicker.js.map +0 -1
- package/cjs/components/DaysOfWeekPicker/DaysOfWeekPicker.js.map +0 -1
- package/cjs/components/EndDate/EndDate.js.map +0 -1
- package/cjs/components/FieldWrapper/FieldWrapper.js.map +0 -1
- package/cjs/components/Forms/FormField.js.map +0 -1
- package/cjs/components/Forms/FormFieldGroup.js.map +0 -1
- package/cjs/components/Forms/FormGroup.js.map +0 -1
- package/cjs/components/Forms/FormLabel.js.map +0 -1
- package/cjs/components/LabelWrapper/LabelWrapper.js.map +0 -1
- package/cjs/components/RepeatPickerInput/RepeatPickerInput.js.map +0 -1
- package/cjs/components/StartDateTime/StartDateTime.js.map +0 -1
- package/cjs/components/TimeZonePicker/TimeZonePicker.js.map +0 -1
- package/cjs/components/ValidationMessage/ValidationMessage.js.map +0 -1
- package/cjs/components/helpers/nthday.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/options/dropdownDayOfMonthOptions.js.map +0 -1
- package/cjs/options/dropdownDayOfWeekOptions.js.map +0 -1
- package/cjs/options/dropdownDayOfYearOptions.js.map +0 -1
- package/cjs/options/dropdownPreselectedOptions.js.map +0 -1
- package/cjs/options/dropdownRepeatOptions.js.map +0 -1
- package/cjs/options/dropdownTimeZoneOptions.js.map +0 -1
- package/cjs/options/endTypesOptions.js.map +0 -1
- package/components/AlertModal/DateTimeRangeModal/package.json +0 -10
- package/components/CustomOptionRender/CustomOptionRender/package.json +0 -10
- package/components/DateTimeRangeModal/DateTimeRangeModal/package.json +0 -10
- package/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl/package.json +0 -10
- package/components/DateTimeRecurenceSelectorImpl/package.json +0 -10
- package/components/DayOfMonthPicker/DayOfMonthPicker/package.json +0 -10
- package/components/DayOfYearPicker/DayOfYearPicker/package.json +0 -10
- package/components/DaysOfWeekPicker/DaysOfWeekPicker/package.json +0 -10
- package/components/EndDate/EndDate/package.json +0 -10
- package/components/FieldWrapper/FieldWrapper/package.json +0 -10
- package/components/Forms/FormField/package.json +0 -10
- package/components/Forms/FormFieldGroup/package.json +0 -10
- package/components/Forms/FormGroup/package.json +0 -10
- package/components/Forms/FormLabel/package.json +0 -10
- package/components/LabelWrapper/LabelWrapper/package.json +0 -10
- package/components/RepeatPickerInput/RepeatPickerInput/package.json +0 -10
- package/components/StartDateTime/StartDateTime/package.json +0 -10
- package/components/TimeZonePicker/TimeZonePicker/package.json +0 -10
- package/components/ValidationMessage/ValidationMessage/package.json +0 -10
- package/components/helpers/nthday/package.json +0 -10
- package/esm/DSDateTimeRecurrenceSelector.js.map +0 -1
- package/esm/components/AlertModal/DateTimeRangeModal.js.map +0 -1
- package/esm/components/CustomOptionRender/CustomOptionRender.js.map +0 -1
- package/esm/components/DateTimeRangeModal/DateTimeRangeModal.js.map +0 -1
- package/esm/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js.map +0 -1
- package/esm/components/DateTimeRecurenceSelectorImpl.js.map +0 -1
- package/esm/components/DayOfMonthPicker/DayOfMonthPicker.js.map +0 -1
- package/esm/components/DayOfYearPicker/DayOfYearPicker.js.map +0 -1
- package/esm/components/DaysOfWeekPicker/DaysOfWeekPicker.js.map +0 -1
- package/esm/components/EndDate/EndDate.js.map +0 -1
- package/esm/components/FieldWrapper/FieldWrapper.js.map +0 -1
- package/esm/components/Forms/FormField.js.map +0 -1
- package/esm/components/Forms/FormFieldGroup.js.map +0 -1
- package/esm/components/Forms/FormGroup.js.map +0 -1
- package/esm/components/Forms/FormLabel.js.map +0 -1
- package/esm/components/LabelWrapper/LabelWrapper.js.map +0 -1
- package/esm/components/RepeatPickerInput/RepeatPickerInput.js.map +0 -1
- package/esm/components/StartDateTime/StartDateTime.js.map +0 -1
- package/esm/components/TimeZonePicker/TimeZonePicker.js.map +0 -1
- package/esm/components/ValidationMessage/ValidationMessage.js.map +0 -1
- package/esm/components/helpers/nthday.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/options/dropdownDayOfMonthOptions.js.map +0 -1
- package/esm/options/dropdownDayOfWeekOptions.js.map +0 -1
- package/esm/options/dropdownDayOfYearOptions.js.map +0 -1
- package/esm/options/dropdownPreselectedOptions.js.map +0 -1
- package/esm/options/dropdownRepeatOptions.js.map +0 -1
- package/esm/options/dropdownTimeZoneOptions.js.map +0 -1
- package/esm/options/endTypesOptions.js.map +0 -1
- package/options/dropdownDayOfMonthOptions/package.json +0 -10
- package/options/dropdownDayOfWeekOptions/package.json +0 -10
- package/options/dropdownDayOfYearOptions/package.json +0 -10
- package/options/dropdownPreselectedOptions/package.json +0 -10
- package/options/dropdownRepeatOptions/package.json +0 -10
- package/options/dropdownTimeZoneOptions/package.json +0 -10
- package/options/endTypesOptions/package.json +0 -10
|
@@ -1,99 +1,35 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'react';
|
|
2
3
|
import DSModal from '@elliemae/ds-modal';
|
|
3
4
|
import DateTimePredefinedRangeSelectorImpl from '../DateTimeRangeModalImpl/DateTimeRangeModalImpl.js';
|
|
4
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
5
|
-
import '@babel/runtime/helpers/esm/classCallCheck';
|
|
6
|
-
import '@babel/runtime/helpers/esm/createClass';
|
|
7
|
-
import '@babel/runtime/helpers/esm/assertThisInitialized';
|
|
8
|
-
import '@babel/runtime/helpers/esm/inherits';
|
|
9
|
-
import '@babel/runtime/helpers/esm/possibleConstructorReturn';
|
|
10
|
-
import '@babel/runtime/helpers/esm/getPrototypeOf';
|
|
11
|
-
import 'moment';
|
|
12
|
-
import '@elliemae/ds-classnames';
|
|
13
|
-
import '../../options/dropdownRepeatOptions.js';
|
|
14
|
-
import '../../options/dropdownTimeZoneOptions.js';
|
|
15
|
-
import '../RepeatPickerInput/RepeatPickerInput.js';
|
|
16
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
17
|
-
import '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
18
|
-
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
19
|
-
import '@elliemae/ds-form';
|
|
20
|
-
import '../Forms/FormGroup.js';
|
|
21
|
-
import '../Forms/FormLabel.js';
|
|
22
|
-
import '../Forms/FormFieldGroup.js';
|
|
23
|
-
import '../Forms/FormField.js';
|
|
24
|
-
import '../DaysOfWeekPicker/DaysOfWeekPicker.js';
|
|
25
|
-
import '../../options/dropdownDayOfWeekOptions.js';
|
|
26
|
-
import '../StartDateTime/StartDateTime.js';
|
|
27
|
-
import '@elliemae/ds-date-picker';
|
|
28
|
-
import '@elliemae/ds-time-picker';
|
|
29
|
-
import '../EndDate/EndDate.js';
|
|
30
|
-
import '../../options/endTypesOptions.js';
|
|
31
|
-
import '../DayOfMonthPicker/DayOfMonthPicker.js';
|
|
32
|
-
import '@babel/runtime/helpers/esm/toConsumableArray';
|
|
33
|
-
import '../helpers/nthday.js';
|
|
34
|
-
import '../../options/dropdownDayOfMonthOptions.js';
|
|
35
|
-
import '../DayOfYearPicker/DayOfYearPicker.js';
|
|
36
|
-
import '../TimeZonePicker/TimeZonePicker.js';
|
|
37
|
-
import '../FieldWrapper/FieldWrapper.js';
|
|
38
|
-
import '../LabelWrapper/LabelWrapper.js';
|
|
39
|
-
import '../ValidationMessage/ValidationMessage.js';
|
|
40
5
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
_ref$onCustomDateTime = _ref.onCustomDateTimeRange,
|
|
69
|
-
onCustomDateTimeRange = _ref$onCustomDateTime === void 0 ? function () {
|
|
70
|
-
return null;
|
|
71
|
-
} : _ref$onCustomDateTime,
|
|
72
|
-
_ref$displayCurrentMo = _ref.displayCurrentMonthYear,
|
|
73
|
-
displayCurrentMonthYear = _ref$displayCurrentMo === void 0 ? true : _ref$displayCurrentMo,
|
|
74
|
-
_ref$dropdownDayOfMon = _ref.dropdownDayOfMonthOptions,
|
|
75
|
-
dropdownDayOfMonthOptions = _ref$dropdownDayOfMon === void 0 ? [] : _ref$dropdownDayOfMon,
|
|
76
|
-
_ref$dropdownDayOfWee = _ref.dropdownDayOfWeekOptions,
|
|
77
|
-
dropdownDayOfWeekOptions = _ref$dropdownDayOfWee === void 0 ? [] : _ref$dropdownDayOfWee,
|
|
78
|
-
_ref$dropdownDayOfYea = _ref.dropdownDayOfYearOptions,
|
|
79
|
-
dropdownDayOfYearOptions = _ref$dropdownDayOfYea === void 0 ? [] : _ref$dropdownDayOfYea,
|
|
80
|
-
_ref$dropdownRepeatOp = _ref.dropdownRepeatOptions,
|
|
81
|
-
dropdownRepeatOptions = _ref$dropdownRepeatOp === void 0 ? [] : _ref$dropdownRepeatOp,
|
|
82
|
-
_ref$rangeValue = _ref.rangeValue,
|
|
83
|
-
rangeValue = _ref$rangeValue === void 0 ? {} : _ref$rangeValue,
|
|
84
|
-
_ref$dayOfMonthOption = _ref.dayOfMonthOptionsEnable,
|
|
85
|
-
dayOfMonthOptionsEnable = _ref$dayOfMonthOption === void 0 ? true : _ref$dayOfMonthOption,
|
|
86
|
-
_ref$dayOfWeekOptions = _ref.dayOfWeekOptionsEnable,
|
|
87
|
-
dayOfWeekOptionsEnable = _ref$dayOfWeekOptions === void 0 ? true : _ref$dayOfWeekOptions,
|
|
88
|
-
_ref$dayOfYearOptions = _ref.dayOfYearOptionsEnable,
|
|
89
|
-
dayOfYearOptionsEnable = _ref$dayOfYearOptions === void 0 ? true : _ref$dayOfYearOptions,
|
|
90
|
-
_ref$timeZoneOptions = _ref.timeZoneOptions,
|
|
91
|
-
timeZoneOptions = _ref$timeZoneOptions === void 0 ? [] : _ref$timeZoneOptions,
|
|
92
|
-
_ref$useTimezoneSelec = _ref.useTimezoneSelector,
|
|
93
|
-
useTimezoneSelector = _ref$useTimezoneSelec === void 0 ? false : _ref$useTimezoneSelec,
|
|
94
|
-
_ref$allowMultipleDay = _ref.allowMultipleDaysOfWeek,
|
|
95
|
-
allowMultipleDaysOfWeek = _ref$allowMultipleDay === void 0 ? false : _ref$allowMultipleDay;
|
|
96
|
-
return /*#__PURE__*/React.createElement(DSModal, {
|
|
6
|
+
const DateTimeRangeModal = _ref => {
|
|
7
|
+
let {
|
|
8
|
+
isOpen = false,
|
|
9
|
+
onClose = () => null,
|
|
10
|
+
modalTitle = 'Report Scheduling',
|
|
11
|
+
modalSize = 'medium ',
|
|
12
|
+
confirmLabel = 'Apply',
|
|
13
|
+
rejectLabel = 'Cancel',
|
|
14
|
+
modalType = 'confirm',
|
|
15
|
+
onConfirmField = () => null,
|
|
16
|
+
onRejectField = () => null,
|
|
17
|
+
appElement = null,
|
|
18
|
+
onCustomDateTimeRange = () => null,
|
|
19
|
+
displayCurrentMonthYear = true,
|
|
20
|
+
dropdownDayOfMonthOptions = [],
|
|
21
|
+
dropdownDayOfWeekOptions = [],
|
|
22
|
+
dropdownDayOfYearOptions = [],
|
|
23
|
+
dropdownRepeatOptions = [],
|
|
24
|
+
rangeValue = {},
|
|
25
|
+
dayOfMonthOptionsEnable = true,
|
|
26
|
+
dayOfWeekOptionsEnable = true,
|
|
27
|
+
dayOfYearOptionsEnable = true,
|
|
28
|
+
timeZoneOptions = [],
|
|
29
|
+
useTimezoneSelector = false,
|
|
30
|
+
allowMultipleDaysOfWeek = false
|
|
31
|
+
} = _ref;
|
|
32
|
+
return /*#__PURE__*/_jsx(DSModal, {
|
|
97
33
|
appElement: appElement,
|
|
98
34
|
confirmLabel: confirmLabel,
|
|
99
35
|
isOpen: isOpen,
|
|
@@ -104,7 +40,7 @@ var DateTimeRangeModal = function DateTimeRangeModal(_ref) {
|
|
|
104
40
|
onReject: onRejectField,
|
|
105
41
|
rejectLabel: rejectLabel,
|
|
106
42
|
size: modalSize
|
|
107
|
-
}, /*#__PURE__*/
|
|
43
|
+
}, void 0, /*#__PURE__*/_jsx(DateTimePredefinedRangeSelectorImpl, {
|
|
108
44
|
allowMultipleDaysOfWeek: allowMultipleDaysOfWeek,
|
|
109
45
|
dayOfMonthOptionsEnable: dayOfMonthOptionsEnable,
|
|
110
46
|
dayOfWeekOptionsEnable: dayOfWeekOptionsEnable,
|
|
@@ -122,4 +58,3 @@ var DateTimeRangeModal = function DateTimeRangeModal(_ref) {
|
|
|
122
58
|
};
|
|
123
59
|
|
|
124
60
|
export { DateTimeRangeModal as default };
|
|
125
|
-
//# sourceMappingURL=DateTimeRangeModal.js.map
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'react';
|
|
3
3
|
import { DropdownRepeatOptionsTypes } from '../../options/dropdownRepeatOptions.js';
|
|
4
4
|
import { endTypes } from '../../options/endTypesOptions.js';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const typeRepeat = {
|
|
7
|
+
[DropdownRepeatOptionsTypes.DAY]: 'Daily',
|
|
8
|
+
[DropdownRepeatOptionsTypes.WEEK]: 'Weekly',
|
|
9
|
+
[DropdownRepeatOptionsTypes.MONTH]: 'Monthly',
|
|
10
|
+
[DropdownRepeatOptionsTypes.YEAR]: 'Yearly'
|
|
11
|
+
};
|
|
8
12
|
/**
|
|
9
13
|
* @param root0
|
|
10
14
|
* @param root0.customRange
|
|
@@ -38,24 +42,27 @@ timezonePickerInput
|
|
|
38
42
|
}
|
|
39
43
|
*/
|
|
40
44
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
const CustomOptionRender = _ref => {
|
|
46
|
+
let {
|
|
47
|
+
customRange: {
|
|
48
|
+
startDateInput,
|
|
49
|
+
startTimeInput,
|
|
50
|
+
qtyRepeatPickerInput,
|
|
51
|
+
typeRepeatPickerInput,
|
|
52
|
+
dayWeekRepeatPickerInput,
|
|
53
|
+
endDateInput,
|
|
54
|
+
endTypeInput,
|
|
55
|
+
endTimesInput,
|
|
56
|
+
dayOfMonthRepeatPickerInput,
|
|
57
|
+
dayOfYearRepeatPickerInput,
|
|
58
|
+
timezonePickerInput
|
|
59
|
+
},
|
|
60
|
+
dayOfMonthOptionsEnable,
|
|
61
|
+
dayOfWeekOptionsEnable,
|
|
62
|
+
dayOfYearOptionsEnable,
|
|
63
|
+
useTimezoneSelector
|
|
64
|
+
} = _ref;
|
|
65
|
+
let display = 'Custom'; // frequency
|
|
59
66
|
|
|
60
67
|
if (qtyRepeatPickerInput === 1) display = typeRepeat[typeRepeatPickerInput];else display = "every ".concat(qtyRepeatPickerInput, " ").concat(typeRepeatPickerInput, "s"); // type
|
|
61
68
|
|
|
@@ -74,8 +81,7 @@ var CustomOptionRender = function CustomOptionRender(_ref) {
|
|
|
74
81
|
|
|
75
82
|
if (endTypeInput === endTypes.ON) display += ", until ".concat(endDateInput.format('MM/DD/YYYY'), " ");else if (endTypeInput === endTypes.AFTER) display += ", for ".concat(endTimesInput, " times");
|
|
76
83
|
if (useTimezoneSelector && timezonePickerInput) display += " [".concat(timezonePickerInput, "]");
|
|
77
|
-
return /*#__PURE__*/
|
|
84
|
+
return /*#__PURE__*/_jsx("em", {}, void 0, display);
|
|
78
85
|
};
|
|
79
86
|
|
|
80
87
|
export { CustomOptionRender as default };
|
|
81
|
-
//# sourceMappingURL=CustomOptionRender.js.map
|
|
@@ -1,193 +1,114 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import _inherits from '@babel/runtime/helpers/esm/inherits';
|
|
4
|
-
import _possibleConstructorReturn from '@babel/runtime/helpers/esm/possibleConstructorReturn';
|
|
5
|
-
import _getPrototypeOf from '@babel/runtime/helpers/esm/getPrototypeOf';
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
3
|
import React from 'react';
|
|
7
4
|
import DSModal from '@elliemae/ds-modal';
|
|
8
5
|
import DateTimePredefinedRangeSelectorImpl from '../DateTimeRangeModalImpl/DateTimeRangeModalImpl.js';
|
|
9
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
10
|
-
import '@babel/runtime/helpers/esm/assertThisInitialized';
|
|
11
|
-
import 'moment';
|
|
12
|
-
import '@elliemae/ds-classnames';
|
|
13
|
-
import '../../options/dropdownRepeatOptions.js';
|
|
14
|
-
import '../../options/dropdownTimeZoneOptions.js';
|
|
15
|
-
import '../RepeatPickerInput/RepeatPickerInput.js';
|
|
16
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
17
|
-
import '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
18
|
-
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
19
|
-
import '@elliemae/ds-form';
|
|
20
|
-
import '../Forms/FormGroup.js';
|
|
21
|
-
import '../Forms/FormLabel.js';
|
|
22
|
-
import '../Forms/FormFieldGroup.js';
|
|
23
|
-
import '../Forms/FormField.js';
|
|
24
|
-
import '../DaysOfWeekPicker/DaysOfWeekPicker.js';
|
|
25
|
-
import '../../options/dropdownDayOfWeekOptions.js';
|
|
26
|
-
import '../StartDateTime/StartDateTime.js';
|
|
27
|
-
import '@elliemae/ds-date-picker';
|
|
28
|
-
import '@elliemae/ds-time-picker';
|
|
29
|
-
import '../EndDate/EndDate.js';
|
|
30
|
-
import '../../options/endTypesOptions.js';
|
|
31
|
-
import '../DayOfMonthPicker/DayOfMonthPicker.js';
|
|
32
|
-
import '@babel/runtime/helpers/esm/toConsumableArray';
|
|
33
|
-
import '../helpers/nthday.js';
|
|
34
|
-
import '../../options/dropdownDayOfMonthOptions.js';
|
|
35
|
-
import '../DayOfYearPicker/DayOfYearPicker.js';
|
|
36
|
-
import '../TimeZonePicker/TimeZonePicker.js';
|
|
37
|
-
import '../FieldWrapper/FieldWrapper.js';
|
|
38
|
-
import '../LabelWrapper/LabelWrapper.js';
|
|
39
|
-
import '../ValidationMessage/ValidationMessage.js';
|
|
40
6
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
44
|
-
|
|
45
|
-
var DateTimeRangeModal = /*#__PURE__*/function (_React$Component) {
|
|
46
|
-
_inherits(DateTimeRangeModal, _React$Component);
|
|
47
|
-
|
|
48
|
-
var _super = _createSuper(DateTimeRangeModal);
|
|
49
|
-
|
|
50
|
-
function DateTimeRangeModal() {
|
|
7
|
+
class DateTimeRangeModal extends React.Component {
|
|
8
|
+
constructor() {
|
|
51
9
|
var _this;
|
|
52
10
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
args[_key] = arguments[_key];
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
60
|
-
_this.state = {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
_this = this;
|
|
13
|
+
this.state = {
|
|
61
14
|
isValid: true
|
|
62
15
|
};
|
|
63
16
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
isValidRecurrence = _this$props.isValidRecurrence;
|
|
71
|
-
onCustomDateTimeRange.apply(void 0, arguments);
|
|
17
|
+
this.updateIsValid = function () {
|
|
18
|
+
const {
|
|
19
|
+
onCustomDateTimeRange = () => null,
|
|
20
|
+
isValidRecurrence
|
|
21
|
+
} = _this.props;
|
|
22
|
+
onCustomDateTimeRange(...arguments);
|
|
72
23
|
|
|
73
24
|
_this.setState({
|
|
74
|
-
isValid: isValidRecurrence
|
|
25
|
+
isValid: isValidRecurrence(...arguments)
|
|
75
26
|
});
|
|
76
27
|
};
|
|
77
|
-
|
|
78
|
-
return _this;
|
|
79
28
|
}
|
|
80
29
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
dayOfMonthAsCurrentDateOptions: dayOfMonthAsCurrentDateOptions,
|
|
163
|
-
dayOfMonthOptionsEnable: dayOfMonthOptionsEnable,
|
|
164
|
-
dayOfWeekOptionsEnable: dayOfWeekOptionsEnable,
|
|
165
|
-
dayOfYearAsCurrentDateOptions: dayOfYearAsCurrentDateOptions,
|
|
166
|
-
dayOfYearOptionsEnable: dayOfYearOptionsEnable,
|
|
167
|
-
displayCurrentMonthYear: displayCurrentMonthYear,
|
|
168
|
-
displayMonthCustomOption: displayMonthCustomOption,
|
|
169
|
-
displayYearCustomOption: displayYearCustomOption,
|
|
170
|
-
dropdownDayOfMonthOptions: dropdownDayOfMonthOptions,
|
|
171
|
-
dropdownDayOfWeekOptions: dropdownDayOfWeekOptions,
|
|
172
|
-
dropdownDayOfYearOptions: dropdownDayOfYearOptions,
|
|
173
|
-
dropdownRepeatOptions: dropdownRepeatOptions,
|
|
174
|
-
endDayBlocked: endDayBlocked,
|
|
175
|
-
endTimesOptions: endTimesOptions,
|
|
176
|
-
endTypesOptions: endTypesOptions,
|
|
177
|
-
isValidRecurrence: isValidRecurrence,
|
|
178
|
-
onCustomDateTimeRange: this.updateIsValid,
|
|
179
|
-
rangeValue: rangeValue,
|
|
180
|
-
repeatFrecuencyCustomProps: repeatFrecuencyCustomProps,
|
|
181
|
-
startDayBlocked: startDayBlocked,
|
|
182
|
-
timeZoneOptions: timeZoneOptions,
|
|
183
|
-
useTimezoneSelector: useTimezoneSelector,
|
|
184
|
-
validationMessage: validationMessage
|
|
185
|
-
}));
|
|
186
|
-
}
|
|
187
|
-
}]);
|
|
30
|
+
render() {
|
|
31
|
+
const {
|
|
32
|
+
isOpen = false,
|
|
33
|
+
onClose = () => null,
|
|
34
|
+
modalTitle = 'Report Scheduling',
|
|
35
|
+
// modalSize = 'medium',
|
|
36
|
+
confirmLabel = 'Apply',
|
|
37
|
+
rejectLabel = 'Cancel',
|
|
38
|
+
modalType = 'confirm',
|
|
39
|
+
onConfirmField = () => null,
|
|
40
|
+
onRejectField = () => null,
|
|
41
|
+
appElement = null,
|
|
42
|
+
displayCurrentMonthYear = true,
|
|
43
|
+
dropdownDayOfMonthOptions = [],
|
|
44
|
+
dropdownDayOfWeekOptions = [],
|
|
45
|
+
dropdownDayOfYearOptions = [],
|
|
46
|
+
dropdownRepeatOptions = [],
|
|
47
|
+
rangeValue = {},
|
|
48
|
+
dayOfMonthOptionsEnable = true,
|
|
49
|
+
dayOfWeekOptionsEnable = true,
|
|
50
|
+
dayOfYearOptionsEnable = true,
|
|
51
|
+
timeZoneOptions = [],
|
|
52
|
+
useTimezoneSelector = false,
|
|
53
|
+
allowMultipleDaysOfWeek = false,
|
|
54
|
+
endTimesOptions,
|
|
55
|
+
endTypesOptions,
|
|
56
|
+
dayOfMonthAsCurrentDateOptions,
|
|
57
|
+
dayOfYearAsCurrentDateOptions,
|
|
58
|
+
isValidRecurrence,
|
|
59
|
+
validationMessage,
|
|
60
|
+
startDayBlocked,
|
|
61
|
+
endDayBlocked,
|
|
62
|
+
repeatFrecuencyCustomProps,
|
|
63
|
+
displayMonthCustomOption,
|
|
64
|
+
displayYearCustomOption
|
|
65
|
+
} = this.props;
|
|
66
|
+
const {
|
|
67
|
+
isValid
|
|
68
|
+
} = this.state;
|
|
69
|
+
return /*#__PURE__*/_jsx(DSModal, {
|
|
70
|
+
appElement: appElement,
|
|
71
|
+
centered: false,
|
|
72
|
+
confirmLabel: confirmLabel,
|
|
73
|
+
isOpen: isOpen,
|
|
74
|
+
modalTitle: modalTitle,
|
|
75
|
+
modalType: modalType,
|
|
76
|
+
onClose: onClose,
|
|
77
|
+
onConfirm: onConfirmField,
|
|
78
|
+
onReject: onRejectField,
|
|
79
|
+
overridePropsConfirmButton: {
|
|
80
|
+
disabled: !isValid
|
|
81
|
+
},
|
|
82
|
+
rejectLabel: rejectLabel,
|
|
83
|
+
size: "small"
|
|
84
|
+
}, void 0, /*#__PURE__*/_jsx(DateTimePredefinedRangeSelectorImpl, {
|
|
85
|
+
allowMultipleDaysOfWeek: allowMultipleDaysOfWeek,
|
|
86
|
+
dayOfMonthAsCurrentDateOptions: dayOfMonthAsCurrentDateOptions,
|
|
87
|
+
dayOfMonthOptionsEnable: dayOfMonthOptionsEnable,
|
|
88
|
+
dayOfWeekOptionsEnable: dayOfWeekOptionsEnable,
|
|
89
|
+
dayOfYearAsCurrentDateOptions: dayOfYearAsCurrentDateOptions,
|
|
90
|
+
dayOfYearOptionsEnable: dayOfYearOptionsEnable,
|
|
91
|
+
displayCurrentMonthYear: displayCurrentMonthYear,
|
|
92
|
+
displayMonthCustomOption: displayMonthCustomOption,
|
|
93
|
+
displayYearCustomOption: displayYearCustomOption,
|
|
94
|
+
dropdownDayOfMonthOptions: dropdownDayOfMonthOptions,
|
|
95
|
+
dropdownDayOfWeekOptions: dropdownDayOfWeekOptions,
|
|
96
|
+
dropdownDayOfYearOptions: dropdownDayOfYearOptions,
|
|
97
|
+
dropdownRepeatOptions: dropdownRepeatOptions,
|
|
98
|
+
endDayBlocked: endDayBlocked,
|
|
99
|
+
endTimesOptions: endTimesOptions,
|
|
100
|
+
endTypesOptions: endTypesOptions,
|
|
101
|
+
isValidRecurrence: isValidRecurrence,
|
|
102
|
+
onCustomDateTimeRange: this.updateIsValid,
|
|
103
|
+
rangeValue: rangeValue,
|
|
104
|
+
repeatFrecuencyCustomProps: repeatFrecuencyCustomProps,
|
|
105
|
+
startDayBlocked: startDayBlocked,
|
|
106
|
+
timeZoneOptions: timeZoneOptions,
|
|
107
|
+
useTimezoneSelector: useTimezoneSelector,
|
|
108
|
+
validationMessage: validationMessage
|
|
109
|
+
}));
|
|
110
|
+
}
|
|
188
111
|
|
|
189
|
-
|
|
190
|
-
}(React.Component);
|
|
112
|
+
}
|
|
191
113
|
|
|
192
114
|
export { DateTimeRangeModal as default };
|
|
193
|
-
//# sourceMappingURL=DateTimeRangeModal.js.map
|