@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.
Files changed (35) hide show
  1. package/cjs/DSDateTimeRecurrenceSelector.js +90 -87
  2. package/cjs/components/AlertModal/DateTimeRangeModal.js +53 -50
  3. package/cjs/components/CustomOptionRender/CustomOptionRender.js +27 -26
  4. package/cjs/components/DateTimeRangeModal/DateTimeRangeModal.js +12 -7
  5. package/cjs/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js +8 -3
  6. package/cjs/components/DateTimeRecurenceSelectorImpl.js +13 -6
  7. package/cjs/components/DayOfMonthPicker/DayOfMonthPicker.js +20 -16
  8. package/cjs/components/DayOfYearPicker/DayOfYearPicker.js +19 -15
  9. package/cjs/components/DaysOfWeekPicker/DaysOfWeekPicker.js +32 -30
  10. package/cjs/components/EndDate/EndDate.js +30 -28
  11. package/cjs/components/FieldWrapper/FieldWrapper.js +5 -4
  12. package/cjs/components/LabelWrapper/LabelWrapper.js +5 -4
  13. package/cjs/components/RepeatPickerInput/RepeatPickerInput.js +19 -15
  14. package/cjs/components/StartDateTime/StartDateTime.js +22 -19
  15. package/cjs/components/TimeZonePicker/TimeZonePicker.js +24 -22
  16. package/cjs/components/ValidationMessage/ValidationMessage.js +8 -5
  17. package/esm/DSDateTimeRecurrenceSelector.js +90 -87
  18. package/esm/components/AlertModal/DateTimeRangeModal.js +53 -50
  19. package/esm/components/CustomOptionRender/CustomOptionRender.js +27 -26
  20. package/esm/components/DateTimeRangeModal/DateTimeRangeModal.js +12 -7
  21. package/esm/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js +8 -3
  22. package/esm/components/DateTimeRecurenceSelectorImpl.js +12 -4
  23. package/esm/components/DayOfMonthPicker/DayOfMonthPicker.js +19 -14
  24. package/esm/components/DayOfYearPicker/DayOfYearPicker.js +18 -13
  25. package/esm/components/DaysOfWeekPicker/DaysOfWeekPicker.js +31 -25
  26. package/esm/components/EndDate/EndDate.js +30 -27
  27. package/esm/components/FieldWrapper/FieldWrapper.js +5 -4
  28. package/esm/components/LabelWrapper/LabelWrapper.js +5 -4
  29. package/esm/components/RepeatPickerInput/RepeatPickerInput.js +17 -11
  30. package/esm/components/StartDateTime/StartDateTime.js +22 -19
  31. package/esm/components/TimeZonePicker/TimeZonePicker.js +24 -21
  32. package/esm/components/ValidationMessage/ValidationMessage.js +8 -5
  33. package/package.json +6 -5
  34. package/cjs/package.json +0 -7
  35. package/esm/package.json +0 -7
@@ -3,55 +3,58 @@ import 'react';
3
3
  import DSModal from '@elliemae/ds-modal';
4
4
  import DateTimePredefinedRangeSelectorImpl from '../DateTimeRangeModalImpl/DateTimeRangeModalImpl.js';
5
5
 
6
- const DateTimeRangeModal = ({
7
- isOpen = false,
8
- onClose = () => null,
9
- modalTitle = 'Report Scheduling',
10
- modalSize = 'medium ',
11
- confirmLabel = 'Apply',
12
- rejectLabel = 'Cancel',
13
- modalType = 'confirm',
14
- onConfirmField = () => null,
15
- onRejectField = () => null,
16
- appElement = null,
17
- onCustomDateTimeRange = () => null,
18
- displayCurrentMonthYear = true,
19
- dropdownDayOfMonthOptions = [],
20
- dropdownDayOfWeekOptions = [],
21
- dropdownDayOfYearOptions = [],
22
- dropdownRepeatOptions = [],
23
- rangeValue = {},
24
- dayOfMonthOptionsEnable = true,
25
- dayOfWeekOptionsEnable = true,
26
- dayOfYearOptionsEnable = true,
27
- timeZoneOptions = [],
28
- useTimezoneSelector = false,
29
- allowMultipleDaysOfWeek = false
30
- }) => /*#__PURE__*/_jsx(DSModal, {
31
- appElement: appElement,
32
- confirmLabel: confirmLabel,
33
- isOpen: isOpen,
34
- modalTitle: modalTitle,
35
- modalType: modalType,
36
- onClose: onClose,
37
- onConfirm: onConfirmField,
38
- onReject: onRejectField,
39
- rejectLabel: rejectLabel,
40
- size: modalSize
41
- }, void 0, /*#__PURE__*/_jsx(DateTimePredefinedRangeSelectorImpl, {
42
- allowMultipleDaysOfWeek: allowMultipleDaysOfWeek,
43
- dayOfMonthOptionsEnable: dayOfMonthOptionsEnable,
44
- dayOfWeekOptionsEnable: dayOfWeekOptionsEnable,
45
- dayOfYearOptionsEnable: dayOfYearOptionsEnable,
46
- displayCurrentMonthYear: displayCurrentMonthYear,
47
- dropdownDayOfMonthOptions: dropdownDayOfMonthOptions,
48
- dropdownDayOfWeekOptions: dropdownDayOfWeekOptions,
49
- dropdownDayOfYearOptions: dropdownDayOfYearOptions,
50
- dropdownRepeatOptions: dropdownRepeatOptions,
51
- onCustomDateTimeRange: onCustomDateTimeRange,
52
- rangeValue: rangeValue,
53
- timeZoneOptions: timeZoneOptions,
54
- useTimezoneSelector: useTimezoneSelector
55
- }));
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, {
33
+ appElement: appElement,
34
+ confirmLabel: confirmLabel,
35
+ isOpen: isOpen,
36
+ modalTitle: modalTitle,
37
+ modalType: modalType,
38
+ onClose: onClose,
39
+ onConfirm: onConfirmField,
40
+ onReject: onRejectField,
41
+ rejectLabel: rejectLabel,
42
+ size: modalSize
43
+ }, void 0, /*#__PURE__*/_jsx(DateTimePredefinedRangeSelectorImpl, {
44
+ allowMultipleDaysOfWeek: allowMultipleDaysOfWeek,
45
+ dayOfMonthOptionsEnable: dayOfMonthOptionsEnable,
46
+ dayOfWeekOptionsEnable: dayOfWeekOptionsEnable,
47
+ dayOfYearOptionsEnable: dayOfYearOptionsEnable,
48
+ displayCurrentMonthYear: displayCurrentMonthYear,
49
+ dropdownDayOfMonthOptions: dropdownDayOfMonthOptions,
50
+ dropdownDayOfWeekOptions: dropdownDayOfWeekOptions,
51
+ dropdownDayOfYearOptions: dropdownDayOfYearOptions,
52
+ dropdownRepeatOptions: dropdownRepeatOptions,
53
+ onCustomDateTimeRange: onCustomDateTimeRange,
54
+ rangeValue: rangeValue,
55
+ timeZoneOptions: timeZoneOptions,
56
+ useTimezoneSelector: useTimezoneSelector
57
+ }));
58
+ };
56
59
 
57
60
  export { DateTimeRangeModal as default };
@@ -42,44 +42,45 @@ timezonePickerInput
42
42
  }
43
43
  */
44
44
 
45
- const CustomOptionRender = ({
46
- customRange: {
47
- startDateInput,
48
- startTimeInput,
49
- qtyRepeatPickerInput,
50
- typeRepeatPickerInput,
51
- dayWeekRepeatPickerInput,
52
- endDateInput,
53
- endTypeInput,
54
- endTimesInput,
55
- dayOfMonthRepeatPickerInput,
56
- dayOfYearRepeatPickerInput,
57
- timezonePickerInput
58
- },
59
- dayOfMonthOptionsEnable,
60
- dayOfWeekOptionsEnable,
61
- dayOfYearOptionsEnable,
62
- useTimezoneSelector
63
- }) => {
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;
64
65
  let display = 'Custom'; // frequency
65
66
 
66
- if (qtyRepeatPickerInput === 1) display = typeRepeat[typeRepeatPickerInput];else display = `every ${qtyRepeatPickerInput} ${typeRepeatPickerInput}s`; // type
67
+ if (qtyRepeatPickerInput === 1) display = typeRepeat[typeRepeatPickerInput];else display = "every ".concat(qtyRepeatPickerInput, " ").concat(typeRepeatPickerInput, "s"); // type
67
68
 
68
69
  if (typeRepeatPickerInput === DropdownRepeatOptionsTypes.WEEK) {
69
- display += dayOfWeekOptionsEnable ? ` on ${dayWeekRepeatPickerInput} ` : '';
70
+ display += dayOfWeekOptionsEnable ? " on ".concat(dayWeekRepeatPickerInput, " ") : '';
70
71
  } else if (typeRepeatPickerInput === DropdownRepeatOptionsTypes.MONTH) {
71
- display += dayOfMonthOptionsEnable ? ` ${dayOfMonthRepeatPickerInput} ` : '';
72
+ display += dayOfMonthOptionsEnable ? " ".concat(dayOfMonthRepeatPickerInput, " ") : '';
72
73
  } else if (typeRepeatPickerInput === DropdownRepeatOptionsTypes.YEAR) {
73
- display += dayOfYearOptionsEnable ? ` ${dayOfYearRepeatPickerInput} ` : '';
74
+ display += dayOfYearOptionsEnable ? " ".concat(dayOfYearRepeatPickerInput, " ") : '';
74
75
  } // start & end
75
76
 
76
77
 
77
78
  if (startDateInput && startDateInput.format) {
78
- display += ` starting on ${startDateInput.format('MM/DD/YYYY')} at ${startTimeInput.format('HH:mm A')}`;
79
+ display += " starting on ".concat(startDateInput.format('MM/DD/YYYY'), " at ").concat(startTimeInput.format('HH:mm A'));
79
80
  }
80
81
 
81
- if (endTypeInput === endTypes.ON) display += `, until ${endDateInput.format('MM/DD/YYYY')} `;else if (endTypeInput === endTypes.AFTER) display += `, for ${endTimesInput} times`;
82
- if (useTimezoneSelector && timezonePickerInput) display += ` [${timezonePickerInput}]`;
82
+ if (endTypeInput === endTypes.ON) display += ", until ".concat(endDateInput.format('MM/DD/YYYY'), " ");else if (endTypeInput === endTypes.AFTER) display += ", for ".concat(endTimesInput, " times");
83
+ if (useTimezoneSelector && timezonePickerInput) display += " [".concat(timezonePickerInput, "]");
83
84
  return /*#__PURE__*/_jsx("em", {}, void 0, display);
84
85
  };
85
86
 
@@ -1,25 +1,30 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import React from 'react';
4
5
  import DSModal from '@elliemae/ds-modal';
5
6
  import DateTimePredefinedRangeSelectorImpl from '../DateTimeRangeModalImpl/DateTimeRangeModalImpl.js';
6
7
 
7
8
  class DateTimeRangeModal extends React.Component {
8
- constructor(...args) {
9
- super(...args);
9
+ constructor() {
10
+ var _this;
11
+
12
+ super(...arguments);
13
+ _this = this;
10
14
 
11
15
  _defineProperty(this, "state", {
12
16
  isValid: true
13
17
  });
14
18
 
15
- _defineProperty(this, "updateIsValid", (...data) => {
19
+ _defineProperty(this, "updateIsValid", function () {
16
20
  const {
17
21
  onCustomDateTimeRange = () => null,
18
22
  isValidRecurrence
19
- } = this.props;
20
- onCustomDateTimeRange(...data);
21
- this.setState({
22
- isValid: isValidRecurrence(...data)
23
+ } = _this.props;
24
+ onCustomDateTimeRange(...arguments);
25
+
26
+ _this.setState({
27
+ isValid: isValidRecurrence(...arguments)
23
28
  });
24
29
  });
25
30
  }
@@ -1,6 +1,11 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
3
  import 'core-js/modules/es.string.replace.js';
4
+ import 'core-js/modules/esnext.async-iterator.filter.js';
5
+ import 'core-js/modules/esnext.iterator.constructor.js';
6
+ import 'core-js/modules/esnext.iterator.filter.js';
7
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
8
+ import 'core-js/modules/esnext.iterator.for-each.js';
4
9
  import { Component } from 'react';
5
10
  import moment from 'moment';
6
11
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
@@ -168,7 +173,7 @@ class DateTimePredefinedRangeSelectorImpl extends Component {
168
173
  dayOfMonthRepeatPickerInput: value,
169
174
  dayOfMonthRepeatPickerKey: option.dayOfMonthRepeatPickerKey,
170
175
  alertModal: option.number > 28 || (option.numberLabel || '').includes('Fifth'),
171
- alertReplace: option.number || `${option.numberLabel} `
176
+ alertReplace: option.number || "".concat(option.numberLabel, " ")
172
177
  }, () => {
173
178
  this.onChange();
174
179
  });
@@ -231,7 +236,7 @@ class DateTimePredefinedRangeSelectorImpl extends Component {
231
236
  displayYearCustomOption
232
237
  } = this.props;
233
238
  return /*#__PURE__*/_jsx("div", {
234
- className: `${cssClassName}`
239
+ className: "".concat(cssClassName)
235
240
  }, void 0, /*#__PURE__*/_jsx(StartDateTime, {
236
241
  onStartDateChange: this.onStartDateChangeInput,
237
242
  onStartTimeChange: this.onStartTimeChangeInput,
@@ -283,7 +288,7 @@ class DateTimePredefinedRangeSelectorImpl extends Component {
283
288
  }), /*#__PURE__*/_jsx(DSModal, {
284
289
  className: "datetime-alert-modal",
285
290
  isOpen: alertModal,
286
- modalTitle: `Some months have fewer than ${alertReplace} days` // modalType={modalType}
291
+ modalTitle: "Some months have fewer than ".concat(alertReplace, " days") // modalType={modalType}
287
292
  ,
288
293
  onClose: () => this.setState({
289
294
  alertModal: false
@@ -1,11 +1,19 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.filter.js';
3
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
4
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
5
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
+ import 'core-js/modules/esnext.async-iterator.find.js';
8
+ import 'core-js/modules/esnext.iterator.constructor.js';
9
+ import 'core-js/modules/esnext.iterator.find.js';
10
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
11
  import { Component } from 'react';
4
12
  import { isEqual } from 'lodash';
5
13
  import 'react-dates/initialize';
6
14
  import { components } from 'react-select';
7
15
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
8
- import DSComboBox from '@elliemae/ds-basic/form/ComboBox';
16
+ import { DSComboBox } from '@elliemae/ds-form';
9
17
  import DateTimeRangeModal from './DateTimeRangeModal/DateTimeRangeModal.js';
10
18
  import { jsxs, jsx } from 'react/jsx-runtime';
11
19
 
@@ -204,11 +212,11 @@ class DateTimeRecurenceSelectorImpl extends Component {
204
212
  } = this.state;
205
213
  const options = [...dropdownPreselectedOptions, advanceOption];
206
214
  return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({}, containerProps), {}, {
207
- className: `${cssClassName} ${className}`,
215
+ className: "".concat(cssClassName, " ").concat(className),
208
216
  children: [/*#__PURE__*/_jsx("div", {
209
- className: `${classNameBlock('container-selector')}`
217
+ className: "".concat(classNameBlock('container-selector'))
210
218
  }, void 0, /*#__PURE__*/_jsx(DSComboBox, {
211
- className: `${classNameElement('dropdown-field-selector')}`,
219
+ className: "".concat(classNameElement('dropdown-field-selector')),
212
220
  components: {
213
221
  Option: props => /*#__PURE__*/jsx(components.Option, _objectSpread(_objectSpread({}, props), {}, {
214
222
  allowMultipleDaysOfWeek: allowMultipleDaysOfWeek,
@@ -1,27 +1,32 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
+ import 'core-js/modules/esnext.async-iterator.find.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.find.js';
2
6
  import 'react';
3
- import DSComboBox from '@elliemae/ds-basic/form/ComboBox';
7
+ import { DSComboBox } from '@elliemae/ds-form';
4
8
  import { nthDay } from '../helpers/nthday.js';
5
9
  import { dropdownDayOfMonthOptions } from '../../options/dropdownDayOfMonthOptions.js';
6
10
  import FormLabel from '../Forms/FormLabel.js';
7
11
  import FormFieldGroup from '../Forms/FormFieldGroup.js';
8
12
  import FormGroup from '../Forms/FormGroup.js';
9
13
 
10
- const DaysOfMonthPicker = ({
11
- onDayChange = () => null,
12
- dayOfMonthValue = dropdownDayOfMonthOptions[0].value,
13
- dayOfMonthOptions = dropdownDayOfMonthOptions,
14
- displayOptionsAsCurrentDate = true,
15
- currentDate = null,
16
- inputLabel = 'On',
17
- dayOfMonthAsCurrentDateOptions,
18
- displayMonthCustomOption
19
- }) => {
14
+ const DaysOfMonthPicker = _ref => {
15
+ let {
16
+ onDayChange = () => null,
17
+ dayOfMonthValue = dropdownDayOfMonthOptions[0].value,
18
+ dayOfMonthOptions = dropdownDayOfMonthOptions,
19
+ displayOptionsAsCurrentDate = true,
20
+ currentDate = null,
21
+ inputLabel = 'On',
22
+ dayOfMonthAsCurrentDateOptions,
23
+ displayMonthCustomOption
24
+ } = _ref;
20
25
  let options = dayOfMonthOptions;
21
26
 
22
27
  if (displayOptionsAsCurrentDate) {
23
- const numberoption = `on the ${currentDate.format('Do')} of the month`;
24
- const nthoption = `on the ${nthDay(currentDate.toDate())} ${currentDate.format('dddd')} of the month`;
28
+ const numberoption = "on the ".concat(currentDate.format('Do'), " of the month");
29
+ const nthoption = "on the ".concat(nthDay(currentDate.toDate()), " ").concat(currentDate.format('dddd'), " of the month");
25
30
  options = [];
26
31
 
27
32
  if (dayOfMonthAsCurrentDateOptions.indexOf('numberOfMonth') > -1) {
@@ -35,7 +40,7 @@ const DaysOfMonthPicker = ({
35
40
 
36
41
  if (dayOfMonthAsCurrentDateOptions.indexOf('dayOfTheWeekOfMonth') > -1) {
37
42
  options.push({
38
- numberLabel: `${nthDay(currentDate.toDate())} ${currentDate.format('dddd')}`,
43
+ numberLabel: "".concat(nthDay(currentDate.toDate()), " ").concat(currentDate.format('dddd')),
39
44
  label: nthoption,
40
45
  value: nthoption,
41
46
  dayOfMonthRepeatPickerKey: 'dayOfTheWeekOfMonth'
@@ -1,27 +1,32 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
+ import 'core-js/modules/esnext.async-iterator.find.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.find.js';
2
6
  import 'react';
3
- import DSComboBox from '@elliemae/ds-basic/form/ComboBox';
7
+ import { DSComboBox } from '@elliemae/ds-form';
4
8
  import { nthDay } from '../helpers/nthday.js';
5
9
  import { dropdownDayOfMonthOptions } from '../../options/dropdownDayOfMonthOptions.js';
6
10
  import FormGroup from '../Forms/FormGroup.js';
7
11
  import FormLabel from '../Forms/FormLabel.js';
8
12
  import FormFieldGroup from '../Forms/FormFieldGroup.js';
9
13
 
10
- const DaysOfMonthPicker = ({
11
- onDayChange = () => null,
12
- dayOfMonthValue = dropdownDayOfMonthOptions[0].value,
13
- dayOfMonthOptions = dropdownDayOfMonthOptions,
14
- displayOptionsAsCurrentDate = true,
15
- currentDate = null,
16
- inputLabel = 'On',
17
- dayOfYearAsCurrentDateOptions,
18
- displayYearCustomOption
19
- }) => {
14
+ const DaysOfMonthPicker = _ref => {
15
+ let {
16
+ onDayChange = () => null,
17
+ dayOfMonthValue = dropdownDayOfMonthOptions[0].value,
18
+ dayOfMonthOptions = dropdownDayOfMonthOptions,
19
+ displayOptionsAsCurrentDate = true,
20
+ currentDate = null,
21
+ inputLabel = 'On',
22
+ dayOfYearAsCurrentDateOptions,
23
+ displayYearCustomOption
24
+ } = _ref;
20
25
  let options = dayOfMonthOptions;
21
26
 
22
27
  if (displayOptionsAsCurrentDate) {
23
- const numberoption = `on the ${currentDate.format('Do')} of ${currentDate.format('MMMM')}`;
24
- const nthoption = `on the ${nthDay(currentDate.toDate())} ${currentDate.format('dddd')} of ${currentDate.format('MMMM')}`;
28
+ const numberoption = "on the ".concat(currentDate.format('Do'), " of ").concat(currentDate.format('MMMM'));
29
+ const nthoption = "on the ".concat(nthDay(currentDate.toDate()), " ").concat(currentDate.format('dddd'), " of ").concat(currentDate.format('MMMM'));
25
30
  options = [];
26
31
 
27
32
  if (dayOfYearAsCurrentDateOptions.indexOf('numberOfYear') > -1) {
@@ -1,10 +1,9 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
2
4
  import 'react';
3
5
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
4
- import DSRadioGroup from '@elliemae/ds-basic/form/RadioGroup';
5
- import DSRadio from '@elliemae/ds-basic/form/Radio';
6
- import DSCheckboxGroup from '@elliemae/ds-basic/form/CheckboxGroup';
7
- import DSCheckbox from '@elliemae/ds-basic/form/Checkbox';
6
+ import { DSRadioGroup, DSRadio, DSCheckboxGroup, DSCheckbox } from '@elliemae/ds-form';
8
7
  import { dropdownDayOfWeekOptions } from '../../options/dropdownDayOfWeekOptions.js';
9
8
  import FormGroup from '../Forms/FormGroup.js';
10
9
  import FormFieldGroup from '../Forms/FormFieldGroup.js';
@@ -20,13 +19,14 @@ const getActive = (allowMultipleDaysOfWeek, active) => {
20
19
  return [active];
21
20
  };
22
21
 
23
- const DaysOfWeekPicker = ({
24
- allowMultipleDaysOfWeek = false,
25
- onDayChange = () => null,
26
- active = dropdownDayOfWeekOptions[0].value,
27
- options = dropdownDayOfWeekOptions,
28
- inputLabel = 'On'
29
- }) => {
22
+ const DaysOfWeekPicker = _ref => {
23
+ let {
24
+ allowMultipleDaysOfWeek = false,
25
+ onDayChange = () => null,
26
+ active = dropdownDayOfWeekOptions[0].value,
27
+ options = dropdownDayOfWeekOptions,
28
+ inputLabel = 'On'
29
+ } = _ref;
30
30
  const safeActive = getActive(allowMultipleDaysOfWeek, active);
31
31
  return /*#__PURE__*/_jsx(FormGroup, {
32
32
  className: cssClassName
@@ -34,23 +34,29 @@ const DaysOfWeekPicker = ({
34
34
  activeValue: safeActive,
35
35
  onChange: onDayChange,
36
36
  orientation: "horizontal"
37
- }, void 0, options.map(({
38
- label,
39
- value
40
- }, index) => /*#__PURE__*/_jsx(DSRadio, {
41
- labelText: label,
42
- value: value
43
- }, index))), allowMultipleDaysOfWeek && /*#__PURE__*/_jsx(DSCheckboxGroup, {
37
+ }, void 0, options.map((_ref2, index) => {
38
+ let {
39
+ label,
40
+ value
41
+ } = _ref2;
42
+ return /*#__PURE__*/_jsx(DSRadio, {
43
+ labelText: label,
44
+ value: value
45
+ }, index);
46
+ })), allowMultipleDaysOfWeek && /*#__PURE__*/_jsx(DSCheckboxGroup, {
44
47
  activeValue: safeActive,
45
48
  onChange: onDayChange,
46
49
  orientation: "horizontal"
47
- }, void 0, options.map(({
48
- label,
49
- value
50
- }, index) => /*#__PURE__*/_jsx(DSCheckbox, {
51
- labelText: label,
52
- value: value
53
- }, index)))));
50
+ }, void 0, options.map((_ref3, index) => {
51
+ let {
52
+ label,
53
+ value
54
+ } = _ref3;
55
+ return /*#__PURE__*/_jsx(DSCheckbox, {
56
+ labelText: label,
57
+ value: value
58
+ }, index);
59
+ }))));
54
60
  };
55
61
 
56
62
  export { DaysOfWeekPicker as default };
@@ -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 DSComboBox from '@elliemae/ds-basic/form/ComboBox';
4
+ import { DSComboBox } from '@elliemae/ds-form';
5
5
  import { endTypes } from '../../options/endTypesOptions.js';
6
6
  import FormField from '../Forms/FormField.js';
7
7
  import FormLabel from '../Forms/FormLabel.js';
@@ -10,31 +10,34 @@ import FormFieldGroup from '../Forms/FormFieldGroup.js';
10
10
 
11
11
  var _FormLabel, _FormField;
12
12
 
13
- const EndDate = ({
14
- onEndDateChange = () => null,
15
- onEndTypeChange = () => null,
16
- onEndTimesChange = () => null,
17
- endDateValue = null,
18
- endTypeValue = null,
19
- endTypesOptions = [],
20
- endTimesOptions = [],
21
- endTimesValue = null,
22
- endDayBlocked
23
- }) => /*#__PURE__*/_jsx(FormGroup, {}, void 0, _FormLabel || (_FormLabel = /*#__PURE__*/_jsx(FormLabel, {}, void 0, "Ends")), /*#__PURE__*/_jsx(FormFieldGroup, {}, void 0, /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx(DSComboBox, {
24
- onChange: onEndTypeChange,
25
- options: endTypesOptions,
26
- value: endTypeValue
27
- })), endTypeValue === endTypes.NEVER && (_FormField || (_FormField = /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx("div", {})))), endTypeValue === endTypes.ON && /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx(DSDatePicker, {
28
- appendToBody: true,
29
- date: endDateValue,
30
- isDayBlocked: endDayBlocked,
31
- onDateChange: onEndDateChange,
32
- openDirection: "up",
33
- zIndex: 10
34
- })), endTypeValue === endTypes.AFTER && /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx(DSComboBox, {
35
- onChange: onEndTimesChange,
36
- options: endTimesOptions,
37
- value: endTimesValue
38
- }))));
13
+ const EndDate = _ref => {
14
+ let {
15
+ onEndDateChange = () => null,
16
+ onEndTypeChange = () => null,
17
+ onEndTimesChange = () => null,
18
+ endDateValue = null,
19
+ endTypeValue = null,
20
+ endTypesOptions = [],
21
+ endTimesOptions = [],
22
+ endTimesValue = null,
23
+ endDayBlocked
24
+ } = _ref;
25
+ return /*#__PURE__*/_jsx(FormGroup, {}, void 0, _FormLabel || (_FormLabel = /*#__PURE__*/_jsx(FormLabel, {}, void 0, "Ends")), /*#__PURE__*/_jsx(FormFieldGroup, {}, void 0, /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx(DSComboBox, {
26
+ onChange: onEndTypeChange,
27
+ options: endTypesOptions,
28
+ value: endTypeValue
29
+ })), endTypeValue === endTypes.NEVER && (_FormField || (_FormField = /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx("div", {})))), endTypeValue === endTypes.ON && /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx(DSDatePicker, {
30
+ appendToBody: true,
31
+ date: endDateValue,
32
+ isDayBlocked: endDayBlocked,
33
+ onDateChange: onEndDateChange,
34
+ openDirection: "up",
35
+ zIndex: 10
36
+ })), endTypeValue === endTypes.AFTER && /*#__PURE__*/_jsx(FormField, {}, void 0, /*#__PURE__*/_jsx(DSComboBox, {
37
+ onChange: onEndTimesChange,
38
+ options: endTimesOptions,
39
+ value: endTimesValue
40
+ }))));
41
+ };
39
42
 
40
43
  export { EndDate as default };
@@ -6,11 +6,12 @@ const {
6
6
  cssClassName
7
7
  } = convertPropToCssClassName('field-wrapper');
8
8
 
9
- function FieldWrapper({
10
- children
11
- }) {
9
+ function FieldWrapper(_ref) {
10
+ let {
11
+ children
12
+ } = _ref;
12
13
  return /*#__PURE__*/_jsx("div", {
13
- className: `${cssClassName}`
14
+ className: "".concat(cssClassName)
14
15
  }, void 0, children);
15
16
  }
16
17
 
@@ -6,11 +6,12 @@ const {
6
6
  cssClassName
7
7
  } = convertPropToCssClassName('label-wrapper');
8
8
 
9
- function LabelWrapper({
10
- children
11
- }) {
9
+ function LabelWrapper(_ref) {
10
+ let {
11
+ children
12
+ } = _ref;
12
13
  return /*#__PURE__*/_jsx("div", {
13
- className: `${cssClassName}`
14
+ className: "".concat(cssClassName)
14
15
  }, void 0, children);
15
16
  }
16
17
 
@@ -1,10 +1,15 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
8
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
9
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
10
  import { useState } from 'react';
5
11
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
6
- import DSComboBox from '@elliemae/ds-basic/form/ComboBox';
7
- import DSTextBox from '@elliemae/ds-basic/form/TextBox';
12
+ import { DSTextBox, DSComboBox } from '@elliemae/ds-form';
8
13
  import FormGroup from '../Forms/FormGroup.js';
9
14
  import FormLabel from '../Forms/FormLabel.js';
10
15
  import FormFieldGroup from '../Forms/FormFieldGroup.js';
@@ -20,15 +25,16 @@ const {
20
25
  cssClassName
21
26
  } = convertPropToCssClassName('repeat-picker-input-range-selector');
22
27
 
23
- const RepeatPickerInput = ({
24
- onQtyChange = () => null,
25
- onTypeChange = () => null,
26
- qtyValue = 1,
27
- repeatOptions = [],
28
- repeatOptionsValue = null,
29
- repeatInputLabel = 'Repeats every',
30
- repeatFrecuencyCustomProps = {}
31
- }) => {
28
+ const RepeatPickerInput = _ref => {
29
+ let {
30
+ onQtyChange = () => null,
31
+ onTypeChange = () => null,
32
+ qtyValue = 1,
33
+ repeatOptions = [],
34
+ repeatOptionsValue = null,
35
+ repeatInputLabel = 'Repeats every',
36
+ repeatFrecuencyCustomProps = {}
37
+ } = _ref;
32
38
  const [last, setLast] = useState('');
33
39
 
34
40
  const rest = _objectWithoutProperties(repeatFrecuencyCustomProps, _excluded);