@elliemae/ds-date-time-recurrence-picker 2.0.0-next.1 → 2.0.0-next.13
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 +90 -87
- package/cjs/components/AlertModal/DateTimeRangeModal.js +53 -50
- package/cjs/components/CustomOptionRender/CustomOptionRender.js +27 -26
- package/cjs/components/DateTimeRangeModal/DateTimeRangeModal.js +12 -7
- package/cjs/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js +8 -3
- package/cjs/components/DateTimeRecurenceSelectorImpl.js +13 -6
- package/cjs/components/DayOfMonthPicker/DayOfMonthPicker.js +20 -16
- package/cjs/components/DayOfYearPicker/DayOfYearPicker.js +19 -15
- package/cjs/components/DaysOfWeekPicker/DaysOfWeekPicker.js +32 -30
- package/cjs/components/EndDate/EndDate.js +30 -28
- package/cjs/components/FieldWrapper/FieldWrapper.js +5 -4
- package/cjs/components/LabelWrapper/LabelWrapper.js +5 -4
- package/cjs/components/RepeatPickerInput/RepeatPickerInput.js +19 -15
- package/cjs/components/StartDateTime/StartDateTime.js +22 -19
- package/cjs/components/TimeZonePicker/TimeZonePicker.js +24 -22
- package/cjs/components/ValidationMessage/ValidationMessage.js +8 -5
- package/esm/DSDateTimeRecurrenceSelector.js +90 -87
- package/esm/components/AlertModal/DateTimeRangeModal.js +53 -50
- package/esm/components/CustomOptionRender/CustomOptionRender.js +27 -26
- package/esm/components/DateTimeRangeModal/DateTimeRangeModal.js +12 -7
- package/esm/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js +8 -3
- package/esm/components/DateTimeRecurenceSelectorImpl.js +12 -4
- package/esm/components/DayOfMonthPicker/DayOfMonthPicker.js +19 -14
- package/esm/components/DayOfYearPicker/DayOfYearPicker.js +18 -13
- package/esm/components/DaysOfWeekPicker/DaysOfWeekPicker.js +31 -25
- package/esm/components/EndDate/EndDate.js +30 -27
- package/esm/components/FieldWrapper/FieldWrapper.js +5 -4
- package/esm/components/LabelWrapper/LabelWrapper.js +5 -4
- package/esm/components/RepeatPickerInput/RepeatPickerInput.js +17 -11
- package/esm/components/StartDateTime/StartDateTime.js +22 -19
- package/esm/components/TimeZonePicker/TimeZonePicker.js +24 -21
- package/esm/components/ValidationMessage/ValidationMessage.js +8 -5
- package/package.json +6 -5
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
3
|
import DSDatePicker from '@elliemae/ds-date-picker';
|
|
4
|
-
import DSTimePicker from '@elliemae/ds-
|
|
4
|
+
import DSTimePicker from '@elliemae/ds-time-picker';
|
|
5
5
|
import FormLabel from '../Forms/FormLabel.js';
|
|
6
6
|
import FormFieldGroup from '../Forms/FormFieldGroup.js';
|
|
7
7
|
import FormGroup from '../Forms/FormGroup.js';
|
|
@@ -9,23 +9,26 @@ import FormField from '../Forms/FormField.js';
|
|
|
9
9
|
|
|
10
10
|
var _FormLabel;
|
|
11
11
|
|
|
12
|
-
const StartDateTime =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
const StartDateTime = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
onStartDateChange = () => null,
|
|
15
|
+
onStartTimeChange = () => null,
|
|
16
|
+
startDateValue = null,
|
|
17
|
+
startTimeValue = null,
|
|
18
|
+
startDayBlocked
|
|
19
|
+
} = _ref;
|
|
20
|
+
return /*#__PURE__*/_jsx(FormGroup, {}, void 0, _FormLabel || (_FormLabel = /*#__PURE__*/_jsx(FormLabel, {}, void 0, "Starts")), /*#__PURE__*/_jsx(FormFieldGroup, {}, void 0, /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx(DSDatePicker, {
|
|
21
|
+
appendToBody: true,
|
|
22
|
+
date: startDateValue,
|
|
23
|
+
isDayBlocked: startDayBlocked,
|
|
24
|
+
keepOpenOnDateSelect: false,
|
|
25
|
+
onDateChange: onStartDateChange,
|
|
26
|
+
zIndex: 10
|
|
27
|
+
})), /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx(DSTimePicker, {
|
|
28
|
+
onChange: onStartTimeChange,
|
|
29
|
+
value: startTimeValue,
|
|
30
|
+
zIndex: 10
|
|
31
|
+
}))));
|
|
32
|
+
};
|
|
30
33
|
|
|
31
34
|
export { StartDateTime as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
3
|
import { convertPropToCssClassName } from '@elliemae/ds-classnames';
|
|
4
|
-
import DSComboBox from '@elliemae/ds-
|
|
4
|
+
import { DSComboBox } from '@elliemae/ds-form';
|
|
5
5
|
import { dropdownTimeZoneOptions } from '../../options/dropdownTimeZoneOptions.js';
|
|
6
6
|
import FieldWrapper from '../FieldWrapper/FieldWrapper.js';
|
|
7
7
|
import LabelWrapper from '../LabelWrapper/LabelWrapper.js';
|
|
@@ -11,25 +11,28 @@ const {
|
|
|
11
11
|
classNameElement
|
|
12
12
|
} = convertPropToCssClassName('timezone-picker-input-range-selector');
|
|
13
13
|
|
|
14
|
-
const TimeZonePicker =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, void 0, /*#__PURE__*/_jsx("div", {
|
|
24
|
-
|
|
25
|
-
}, void 0, /*#__PURE__*/_jsx(
|
|
26
|
-
|
|
27
|
-
}, void 0,
|
|
28
|
-
|
|
29
|
-
}, void 0,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
const TimeZonePicker = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
onTimezoneChange = () => null,
|
|
17
|
+
timezoneValue = dropdownTimeZoneOptions[0].value,
|
|
18
|
+
timezoneOptions = dropdownTimeZoneOptions,
|
|
19
|
+
inputLabel = 'Time Zone'
|
|
20
|
+
} = _ref;
|
|
21
|
+
return /*#__PURE__*/_jsx("div", {
|
|
22
|
+
className: "".concat(cssClassName)
|
|
23
|
+
}, void 0, /*#__PURE__*/_jsx("div", {
|
|
24
|
+
className: "grid-x"
|
|
25
|
+
}, void 0, /*#__PURE__*/_jsx("div", {
|
|
26
|
+
className: "cell medium-4 large-3"
|
|
27
|
+
}, void 0, /*#__PURE__*/_jsx(LabelWrapper, {}, void 0, /*#__PURE__*/_jsx("div", {
|
|
28
|
+
className: "".concat(classNameElement('label'))
|
|
29
|
+
}, void 0, inputLabel))), /*#__PURE__*/_jsx("div", {
|
|
30
|
+
className: "cell medium-8 large-9"
|
|
31
|
+
}, void 0, /*#__PURE__*/_jsx(FieldWrapper, {}, void 0, /*#__PURE__*/_jsx(DSComboBox, {
|
|
32
|
+
onChange: onTimezoneChange,
|
|
33
|
+
options: timezoneOptions,
|
|
34
|
+
value: timezoneValue
|
|
35
|
+
})))));
|
|
36
|
+
};
|
|
34
37
|
|
|
35
38
|
export { TimeZonePicker as default };
|
|
@@ -6,10 +6,13 @@ const {
|
|
|
6
6
|
cssClassName
|
|
7
7
|
} = convertPropToCssClassName('recurrence-selector-validation-message');
|
|
8
8
|
|
|
9
|
-
const ValidationMessage =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const ValidationMessage = _ref => {
|
|
10
|
+
let {
|
|
11
|
+
validationMessage = ''
|
|
12
|
+
} = _ref;
|
|
13
|
+
return /*#__PURE__*/_jsx("div", {
|
|
14
|
+
className: cssClassName
|
|
15
|
+
}, void 0, validationMessage);
|
|
16
|
+
};
|
|
14
17
|
|
|
15
18
|
export { ValidationMessage as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-date-time-recurrence-picker",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Date Time Recurrence Picker",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -144,12 +144,13 @@
|
|
|
144
144
|
"build": "node ../../scripts/build/build.js"
|
|
145
145
|
},
|
|
146
146
|
"dependencies": {
|
|
147
|
-
"@elliemae/ds-basic": "2.0.0-next.
|
|
148
|
-
"@elliemae/ds-classnames": "2.0.0-next.
|
|
149
|
-
"@elliemae/ds-date-picker": "2.0.0-next.
|
|
150
|
-
"@elliemae/ds-modal": "2.0.0-next.
|
|
147
|
+
"@elliemae/ds-basic": "2.0.0-next.13",
|
|
148
|
+
"@elliemae/ds-classnames": "2.0.0-next.13",
|
|
149
|
+
"@elliemae/ds-date-picker": "2.0.0-next.13",
|
|
150
|
+
"@elliemae/ds-modal": "2.0.0-next.13",
|
|
151
151
|
"moment": "~2.29.1",
|
|
152
152
|
"react-dates": "~21.8.0",
|
|
153
|
+
"react-desc": "~4.1.3",
|
|
153
154
|
"react-select": "4.3.1",
|
|
154
155
|
"react-text-mask": "~5.4.3"
|
|
155
156
|
},
|
package/cjs/package.json
DELETED