@elliemae/ds-date-time-recurrence-picker 2.0.0-rc.6 → 2.0.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/cjs/components/DateTimeRangeModal/DateTimeRangeModal.js +4 -7
- package/cjs/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js +4 -4
- package/cjs/components/DateTimeRecurenceSelectorImpl.js +18 -18
- package/esm/components/DateTimeRangeModal/DateTimeRangeModal.js +4 -6
- package/esm/components/DateTimeRangeModalImpl/DateTimeRangeModalImpl.js +7 -7
- package/esm/components/DateTimeRecurenceSelectorImpl.js +17 -17
- package/package.json +11 -7
- package/types/DSDateTimeRecurrenceSelector.d.ts +276 -40
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
4
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
6
5
|
var React = require('react');
|
|
7
6
|
var DSModal = require('@elliemae/ds-modal');
|
|
@@ -10,7 +9,6 @@ var DateTimeRangeModalImpl = require('../DateTimeRangeModalImpl/DateTimeRangeMod
|
|
|
10
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
10
|
|
|
12
11
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
13
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
14
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
13
|
var DSModal__default = /*#__PURE__*/_interopDefaultLegacy(DSModal);
|
|
16
14
|
|
|
@@ -20,12 +18,11 @@ class DateTimeRangeModal extends React__default["default"].Component {
|
|
|
20
18
|
|
|
21
19
|
super(...arguments);
|
|
22
20
|
_this = this;
|
|
23
|
-
|
|
24
|
-
_defineProperty__default["default"](this, "state", {
|
|
21
|
+
this.state = {
|
|
25
22
|
isValid: true
|
|
26
|
-
}
|
|
23
|
+
};
|
|
27
24
|
|
|
28
|
-
|
|
25
|
+
this.updateIsValid = function () {
|
|
29
26
|
const {
|
|
30
27
|
onCustomDateTimeRange = () => null,
|
|
31
28
|
isValidRecurrence
|
|
@@ -35,7 +32,7 @@ class DateTimeRangeModal extends React__default["default"].Component {
|
|
|
35
32
|
_this.setState({
|
|
36
33
|
isValid: isValidRecurrence(...arguments)
|
|
37
34
|
});
|
|
38
|
-
}
|
|
35
|
+
};
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
render() {
|
|
@@ -43,20 +43,20 @@ class DateTimePredefinedRangeSelectorImpl extends React.Component {
|
|
|
43
43
|
constructor(props) {
|
|
44
44
|
super(props);
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
this.onChange = () => {
|
|
47
47
|
const {
|
|
48
48
|
onCustomDateTimeRange
|
|
49
49
|
} = this.props;
|
|
50
50
|
onCustomDateTimeRange(this.state);
|
|
51
|
-
}
|
|
51
|
+
};
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
this.onQtyRepeatPickerInput = value => {
|
|
54
54
|
this.setState({
|
|
55
55
|
qtyRepeatPickerInput: value.replace(/[^0-9]/g, '')
|
|
56
56
|
}, () => {
|
|
57
57
|
this.onChange();
|
|
58
58
|
});
|
|
59
|
-
}
|
|
59
|
+
};
|
|
60
60
|
|
|
61
61
|
const {
|
|
62
62
|
dropdownDayOfMonthOptions,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
5
5
|
require('core-js/modules/esnext.async-iterator.find.js');
|
|
6
6
|
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
7
|
require('core-js/modules/esnext.iterator.find.js');
|
|
@@ -21,8 +21,8 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
23
|
|
|
24
|
-
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
25
24
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
25
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
26
26
|
|
|
27
27
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
28
28
|
|
|
@@ -37,7 +37,7 @@ class DateTimeRecurenceSelectorImpl extends React.Component {
|
|
|
37
37
|
constructor(props) {
|
|
38
38
|
super(props);
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
this.onChange = () => {
|
|
41
41
|
const {
|
|
42
42
|
onChange
|
|
43
43
|
} = this.props;
|
|
@@ -46,15 +46,15 @@ class DateTimeRecurenceSelectorImpl extends React.Component {
|
|
|
46
46
|
selected
|
|
47
47
|
} = this.state;
|
|
48
48
|
onChange(selected, customRange);
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
this.onCustomDateTimeRange = customRange => {
|
|
52
52
|
this.setState({
|
|
53
53
|
customRange
|
|
54
54
|
});
|
|
55
|
-
}
|
|
55
|
+
};
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
this.onChangeDropdown = value => {
|
|
58
58
|
const {
|
|
59
59
|
dropdownPreselectedOptions
|
|
60
60
|
} = this.props;
|
|
@@ -76,9 +76,9 @@ class DateTimeRecurenceSelectorImpl extends React.Component {
|
|
|
76
76
|
openModal: false
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
}
|
|
79
|
+
};
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
this.handleConfirm = () => {
|
|
82
82
|
const {
|
|
83
83
|
onConfirmField,
|
|
84
84
|
customOptionRender: CustomOptionRender,
|
|
@@ -102,33 +102,33 @@ class DateTimeRecurenceSelectorImpl extends React.Component {
|
|
|
102
102
|
this.onChange();
|
|
103
103
|
this.handleCloseModal();
|
|
104
104
|
onConfirmField();
|
|
105
|
-
}
|
|
105
|
+
};
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
this.handleReject = () => {
|
|
108
108
|
const {
|
|
109
109
|
onRejectField
|
|
110
110
|
} = this.props;
|
|
111
111
|
this.handleActionClose();
|
|
112
112
|
onRejectField();
|
|
113
|
-
}
|
|
113
|
+
};
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
this.handleActionClose = () => {
|
|
116
116
|
this.setState(previousState => ({
|
|
117
117
|
selected: previousState.previousSelection
|
|
118
118
|
}));
|
|
119
119
|
this.handleCloseModal();
|
|
120
|
-
}
|
|
120
|
+
};
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
this.handleOpenModal = () => this.setState({
|
|
123
123
|
openModal: true
|
|
124
|
-
})
|
|
124
|
+
});
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
this.handleCloseModal = () => {
|
|
127
127
|
this.setState({
|
|
128
128
|
openModal: false
|
|
129
129
|
});
|
|
130
130
|
setTimeout(() => document.activeElement.blur(), 0); // https://github.com/reactjs/react-modal/issues/680
|
|
131
|
-
}
|
|
131
|
+
};
|
|
132
132
|
|
|
133
133
|
this.initCustomRange = props.customRange;
|
|
134
134
|
this.state = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import DSModal from '@elliemae/ds-modal';
|
|
@@ -11,12 +10,11 @@ class DateTimeRangeModal extends React.Component {
|
|
|
11
10
|
|
|
12
11
|
super(...arguments);
|
|
13
12
|
_this = this;
|
|
14
|
-
|
|
15
|
-
_defineProperty(this, "state", {
|
|
13
|
+
this.state = {
|
|
16
14
|
isValid: true
|
|
17
|
-
}
|
|
15
|
+
};
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
this.updateIsValid = function () {
|
|
20
18
|
const {
|
|
21
19
|
onCustomDateTimeRange = () => null,
|
|
22
20
|
isValidRecurrence
|
|
@@ -26,7 +24,7 @@ class DateTimeRangeModal extends React.Component {
|
|
|
26
24
|
_this.setState({
|
|
27
25
|
isValid: isValidRecurrence(...arguments)
|
|
28
26
|
});
|
|
29
|
-
}
|
|
27
|
+
};
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
render() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
|
-
import 'core-js/modules/es.string.replace.js';
|
|
4
1
|
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
5
2
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
6
3
|
import 'core-js/modules/esnext.iterator.filter.js';
|
|
7
4
|
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
8
5
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import 'core-js/modules/es.string.replace.js';
|
|
9
9
|
import { Component } from 'react';
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import { convertPropToCssClassName } from '@elliemae/ds-classnames';
|
|
@@ -34,20 +34,20 @@ class DateTimePredefinedRangeSelectorImpl extends Component {
|
|
|
34
34
|
constructor(props) {
|
|
35
35
|
super(props);
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
this.onChange = () => {
|
|
38
38
|
const {
|
|
39
39
|
onCustomDateTimeRange
|
|
40
40
|
} = this.props;
|
|
41
41
|
onCustomDateTimeRange(this.state);
|
|
42
|
-
}
|
|
42
|
+
};
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
this.onQtyRepeatPickerInput = value => {
|
|
45
45
|
this.setState({
|
|
46
46
|
qtyRepeatPickerInput: value.replace(/[^0-9]/g, '')
|
|
47
47
|
}, () => {
|
|
48
48
|
this.onChange();
|
|
49
49
|
});
|
|
50
|
-
}
|
|
50
|
+
};
|
|
51
51
|
|
|
52
52
|
const {
|
|
53
53
|
dropdownDayOfMonthOptions,
|
|
@@ -2,8 +2,8 @@ import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
|
2
2
|
import 'core-js/modules/esnext.iterator.filter.js';
|
|
3
3
|
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
4
4
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
5
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
6
5
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
6
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
7
|
import 'core-js/modules/esnext.async-iterator.find.js';
|
|
8
8
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
9
9
|
import 'core-js/modules/esnext.iterator.find.js';
|
|
@@ -30,7 +30,7 @@ class DateTimeRecurenceSelectorImpl extends Component {
|
|
|
30
30
|
constructor(props) {
|
|
31
31
|
super(props);
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
this.onChange = () => {
|
|
34
34
|
const {
|
|
35
35
|
onChange
|
|
36
36
|
} = this.props;
|
|
@@ -39,15 +39,15 @@ class DateTimeRecurenceSelectorImpl extends Component {
|
|
|
39
39
|
selected
|
|
40
40
|
} = this.state;
|
|
41
41
|
onChange(selected, customRange);
|
|
42
|
-
}
|
|
42
|
+
};
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
this.onCustomDateTimeRange = customRange => {
|
|
45
45
|
this.setState({
|
|
46
46
|
customRange
|
|
47
47
|
});
|
|
48
|
-
}
|
|
48
|
+
};
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
this.onChangeDropdown = value => {
|
|
51
51
|
const {
|
|
52
52
|
dropdownPreselectedOptions
|
|
53
53
|
} = this.props;
|
|
@@ -69,9 +69,9 @@ class DateTimeRecurenceSelectorImpl extends Component {
|
|
|
69
69
|
openModal: false
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
}
|
|
72
|
+
};
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
this.handleConfirm = () => {
|
|
75
75
|
const {
|
|
76
76
|
onConfirmField,
|
|
77
77
|
customOptionRender: CustomOptionRender,
|
|
@@ -95,33 +95,33 @@ class DateTimeRecurenceSelectorImpl extends Component {
|
|
|
95
95
|
this.onChange();
|
|
96
96
|
this.handleCloseModal();
|
|
97
97
|
onConfirmField();
|
|
98
|
-
}
|
|
98
|
+
};
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
this.handleReject = () => {
|
|
101
101
|
const {
|
|
102
102
|
onRejectField
|
|
103
103
|
} = this.props;
|
|
104
104
|
this.handleActionClose();
|
|
105
105
|
onRejectField();
|
|
106
|
-
}
|
|
106
|
+
};
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
this.handleActionClose = () => {
|
|
109
109
|
this.setState(previousState => ({
|
|
110
110
|
selected: previousState.previousSelection
|
|
111
111
|
}));
|
|
112
112
|
this.handleCloseModal();
|
|
113
|
-
}
|
|
113
|
+
};
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
this.handleOpenModal = () => this.setState({
|
|
116
116
|
openModal: true
|
|
117
|
-
})
|
|
117
|
+
});
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
this.handleCloseModal = () => {
|
|
120
120
|
this.setState({
|
|
121
121
|
openModal: false
|
|
122
122
|
});
|
|
123
123
|
setTimeout(() => document.activeElement.blur(), 0); // https://github.com/reactjs/react-modal/issues/680
|
|
124
|
-
}
|
|
124
|
+
};
|
|
125
125
|
|
|
126
126
|
this.initCustomRange = props.customRange;
|
|
127
127
|
this.state = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-date-time-recurrence-picker",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Date Time Recurrence Picker",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -144,15 +144,19 @@
|
|
|
144
144
|
"build": "node ../../scripts/build/build.js"
|
|
145
145
|
},
|
|
146
146
|
"dependencies": {
|
|
147
|
-
"@elliemae/ds-
|
|
148
|
-
"@elliemae/ds-
|
|
149
|
-
"@elliemae/ds-
|
|
150
|
-
"@elliemae/ds-modal": "2.0.0
|
|
147
|
+
"@elliemae/ds-classnames": "2.0.0",
|
|
148
|
+
"@elliemae/ds-date-picker": "2.0.0",
|
|
149
|
+
"@elliemae/ds-form": "2.0.0",
|
|
150
|
+
"@elliemae/ds-modal": "2.0.0",
|
|
151
|
+
"@elliemae/ds-time-picker": "2.0.0",
|
|
151
152
|
"moment": "~2.29.1",
|
|
152
153
|
"react-dates": "~21.8.0",
|
|
153
154
|
"react-desc": "~4.1.3",
|
|
154
|
-
"react-select": "4.3.1"
|
|
155
|
-
|
|
155
|
+
"react-select": "4.3.1"
|
|
156
|
+
},
|
|
157
|
+
"devDependencies": {
|
|
158
|
+
"@testing-library/jest-dom": "~5.15.0",
|
|
159
|
+
"@testing-library/react": "~12.1.2"
|
|
156
160
|
},
|
|
157
161
|
"peerDependencies": {
|
|
158
162
|
"lodash": "^4.17.21",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
import { dropdownPreselectedOptions } from './options/dropdownPreselectedOptions';
|
|
3
4
|
import { DropdownRepeatOptionsTypes, dropdownRepeatOptions } from './options/dropdownRepeatOptions';
|
|
@@ -95,50 +96,285 @@ declare const DSDateTimeRecurrenceSelector: {
|
|
|
95
96
|
repeatFrecuencyCustomProps?: {} | undefined;
|
|
96
97
|
}): JSX.Element;
|
|
97
98
|
propTypes: {
|
|
98
|
-
containerProps:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
containerProps: {
|
|
100
|
+
defaultValue<T = unknown>(arg: T): {
|
|
101
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
102
|
+
};
|
|
103
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
104
|
+
};
|
|
105
|
+
className: {
|
|
106
|
+
defaultValue<T = unknown>(arg: T): {
|
|
107
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
108
|
+
};
|
|
109
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
110
|
+
};
|
|
111
|
+
preselectedOptions: {
|
|
112
|
+
defaultValue<T = unknown>(arg: T): {
|
|
113
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
114
|
+
};
|
|
115
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
116
|
+
};
|
|
117
|
+
repeatOptions: {
|
|
118
|
+
defaultValue<T = unknown>(arg: T): {
|
|
119
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
120
|
+
};
|
|
121
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
122
|
+
};
|
|
123
|
+
endTypesOptions: {
|
|
124
|
+
defaultValue<T = unknown>(arg: T): {
|
|
125
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
126
|
+
};
|
|
127
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
128
|
+
};
|
|
129
|
+
endTimesOptions: {
|
|
130
|
+
defaultValue<T = unknown>(arg: T): {
|
|
131
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
132
|
+
};
|
|
133
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
134
|
+
};
|
|
104
135
|
dayOfWeekOptions: any;
|
|
105
|
-
dayOfWeekOptionsEnable:
|
|
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
|
-
|
|
136
|
+
dayOfWeekOptionsEnable: {
|
|
137
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
138
|
+
};
|
|
139
|
+
dayOfMonthOptions: {
|
|
140
|
+
defaultValue<T = unknown>(arg: T): {
|
|
141
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
142
|
+
};
|
|
143
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
144
|
+
};
|
|
145
|
+
dayOfMonthOptionsEnable: {
|
|
146
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
147
|
+
};
|
|
148
|
+
dayOfYearOptions: {
|
|
149
|
+
defaultValue<T = unknown>(arg: T): {
|
|
150
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
151
|
+
};
|
|
152
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
153
|
+
};
|
|
154
|
+
dayOfYearOptionsEnable: {
|
|
155
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
156
|
+
};
|
|
157
|
+
displayMonthCustomOption: {
|
|
158
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
159
|
+
};
|
|
160
|
+
displayYearCustomOption: {
|
|
161
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
162
|
+
};
|
|
163
|
+
dayOfMonthAsCurrentDateOptions: {
|
|
164
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
165
|
+
};
|
|
166
|
+
dayOfYearAsCurrentDateOptions: {
|
|
167
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
168
|
+
};
|
|
169
|
+
onChange: {
|
|
170
|
+
defaultValue<T = unknown>(arg: T): {
|
|
171
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
172
|
+
};
|
|
173
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
174
|
+
};
|
|
175
|
+
placeholder: {
|
|
176
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
177
|
+
};
|
|
178
|
+
modalSize: {
|
|
179
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
180
|
+
};
|
|
181
|
+
modalTitle: {
|
|
182
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
183
|
+
};
|
|
184
|
+
confirmLabel: {
|
|
185
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
186
|
+
};
|
|
187
|
+
rejectLabel: {
|
|
188
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
189
|
+
};
|
|
190
|
+
modalType: {
|
|
191
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
192
|
+
};
|
|
193
|
+
onConfirmField: {
|
|
194
|
+
defaultValue<T = unknown>(arg: T): {
|
|
195
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
196
|
+
};
|
|
197
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
198
|
+
};
|
|
199
|
+
onRejectField: {
|
|
200
|
+
defaultValue<T = unknown>(arg: T): {
|
|
201
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
202
|
+
};
|
|
203
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
204
|
+
};
|
|
205
|
+
openModal: {
|
|
206
|
+
defaultValue<T = unknown>(arg: T): {
|
|
207
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
208
|
+
};
|
|
209
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
210
|
+
};
|
|
211
|
+
appElement: {
|
|
212
|
+
defaultValue<T = unknown>(arg: T): {
|
|
213
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
214
|
+
};
|
|
215
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
216
|
+
};
|
|
217
|
+
value: {
|
|
218
|
+
defaultValue<T = unknown>(arg: T): {
|
|
219
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
220
|
+
};
|
|
221
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
222
|
+
};
|
|
223
|
+
customRange: {
|
|
224
|
+
defaultValue<T = unknown>(arg: T): {
|
|
225
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
226
|
+
};
|
|
227
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
228
|
+
};
|
|
229
|
+
customOptionRender: {
|
|
230
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
231
|
+
};
|
|
232
|
+
displayCurrentMonthYear: {
|
|
233
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
234
|
+
};
|
|
235
|
+
timeZoneOptions: {
|
|
236
|
+
defaultValue<T = unknown>(arg: T): {
|
|
237
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
238
|
+
};
|
|
239
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
240
|
+
};
|
|
241
|
+
useTimezoneSelector: {
|
|
242
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
243
|
+
};
|
|
244
|
+
allowMultipleDaysOfWeek: {
|
|
245
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
246
|
+
};
|
|
247
|
+
advanceOption: {
|
|
248
|
+
defaultValue<T = unknown>(arg: T): {
|
|
249
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
250
|
+
};
|
|
251
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
252
|
+
};
|
|
253
|
+
isValidRecurrence: {
|
|
254
|
+
defaultValue<T = unknown>(arg: T): {
|
|
255
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
256
|
+
};
|
|
257
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
258
|
+
};
|
|
259
|
+
validationMessage: {
|
|
260
|
+
defaultValue<T = unknown>(arg: T): {
|
|
261
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
262
|
+
};
|
|
263
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
264
|
+
};
|
|
265
|
+
endDayBlocked: {
|
|
266
|
+
defaultValue<T = unknown>(arg: T): {
|
|
267
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
268
|
+
};
|
|
269
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
270
|
+
};
|
|
271
|
+
startDayBlocked: {
|
|
272
|
+
defaultValue<T = unknown>(arg: T): {
|
|
273
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
274
|
+
};
|
|
275
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
276
|
+
};
|
|
277
|
+
repeatFrecuencyCustomProps: {
|
|
278
|
+
defaultValue<T = unknown>(arg: T): {
|
|
279
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
280
|
+
};
|
|
281
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
282
|
+
};
|
|
138
283
|
};
|
|
139
284
|
};
|
|
140
285
|
export * from './options/endTypesOptions';
|
|
141
286
|
export { DSDateTimeRecurrenceSelector, DropdownRepeatOptionsTypes, dropdownRepeatOptions, dropdownPreselectedOptions, dropdownDayOfWeekOptions, dropdownDayOfMonthOptions, dropdownDayOfYearOptions, DropdownTimeZoneTypes, dropdownTimeZoneOptions, };
|
|
142
|
-
declare const DateTimeRecurenceSelectorWithSchema:
|
|
287
|
+
declare const DateTimeRecurenceSelectorWithSchema: {
|
|
288
|
+
(props?: {
|
|
289
|
+
containerProps?: {} | undefined;
|
|
290
|
+
className?: string | undefined;
|
|
291
|
+
preselectedOptions?: {
|
|
292
|
+
label: string;
|
|
293
|
+
value: string;
|
|
294
|
+
}[] | undefined;
|
|
295
|
+
repeatOptions?: {
|
|
296
|
+
label: string;
|
|
297
|
+
value: string;
|
|
298
|
+
}[] | undefined;
|
|
299
|
+
endTypesOptions?: {
|
|
300
|
+
label: string;
|
|
301
|
+
value: string;
|
|
302
|
+
}[] | undefined;
|
|
303
|
+
endTimesOptions?: {
|
|
304
|
+
label: string;
|
|
305
|
+
value: number;
|
|
306
|
+
}[] | undefined;
|
|
307
|
+
dayOfWeekOptions?: {
|
|
308
|
+
label: string;
|
|
309
|
+
value: string;
|
|
310
|
+
}[] | undefined;
|
|
311
|
+
dayOfWeekOptionsEnable?: boolean | undefined;
|
|
312
|
+
dayOfMonthOptions?: {
|
|
313
|
+
label: string;
|
|
314
|
+
value: string;
|
|
315
|
+
}[] | undefined;
|
|
316
|
+
dayOfMonthOptionsEnable?: boolean | undefined;
|
|
317
|
+
dayOfYearOptions?: {
|
|
318
|
+
label: string;
|
|
319
|
+
value: string;
|
|
320
|
+
}[] | undefined;
|
|
321
|
+
dayOfYearOptionsEnable?: boolean | undefined;
|
|
322
|
+
displayMonthCustomOption?: boolean | undefined;
|
|
323
|
+
displayYearCustomOption?: boolean | undefined;
|
|
324
|
+
dayOfMonthAsCurrentDateOptions?: string[] | undefined;
|
|
325
|
+
dayOfYearAsCurrentDateOptions?: string[] | undefined;
|
|
326
|
+
onChange?: (() => null) | undefined;
|
|
327
|
+
placeholder?: string | undefined;
|
|
328
|
+
modalSize?: string | undefined;
|
|
329
|
+
modalTitle?: string | undefined;
|
|
330
|
+
confirmLabel?: string | undefined;
|
|
331
|
+
rejectLabel?: string | undefined;
|
|
332
|
+
modalType?: string | undefined;
|
|
333
|
+
onConfirmField?: (() => null) | undefined;
|
|
334
|
+
onRejectField?: (() => null) | undefined;
|
|
335
|
+
openModal?: boolean | undefined;
|
|
336
|
+
appElement?: string | undefined;
|
|
337
|
+
value?: null | undefined;
|
|
338
|
+
customRange?: null | undefined;
|
|
339
|
+
customOptionRender?: (({ customRange: { startDateInput, startTimeInput, qtyRepeatPickerInput, typeRepeatPickerInput, dayWeekRepeatPickerInput, endDateInput, endTypeInput, endTimesInput, dayOfMonthRepeatPickerInput, dayOfYearRepeatPickerInput, timezonePickerInput, }, dayOfMonthOptionsEnable, dayOfWeekOptionsEnable, dayOfYearOptionsEnable, useTimezoneSelector, }: {
|
|
340
|
+
customRange: {
|
|
341
|
+
startDateInput: any;
|
|
342
|
+
startTimeInput: any;
|
|
343
|
+
qtyRepeatPickerInput: any;
|
|
344
|
+
typeRepeatPickerInput: any;
|
|
345
|
+
dayWeekRepeatPickerInput: any;
|
|
346
|
+
endDateInput: any;
|
|
347
|
+
endTypeInput: any;
|
|
348
|
+
endTimesInput: any;
|
|
349
|
+
dayOfMonthRepeatPickerInput: any;
|
|
350
|
+
dayOfYearRepeatPickerInput: any;
|
|
351
|
+
timezonePickerInput: any;
|
|
352
|
+
};
|
|
353
|
+
dayOfMonthOptionsEnable: any;
|
|
354
|
+
dayOfWeekOptionsEnable: any;
|
|
355
|
+
dayOfYearOptionsEnable: any;
|
|
356
|
+
useTimezoneSelector: any;
|
|
357
|
+
}) => JSX.Element) | undefined;
|
|
358
|
+
displayCurrentMonthYear?: boolean | undefined;
|
|
359
|
+
timeZoneOptions?: {
|
|
360
|
+
label: string;
|
|
361
|
+
value: string;
|
|
362
|
+
}[] | undefined;
|
|
363
|
+
useTimezoneSelector?: boolean | undefined;
|
|
364
|
+
allowMultipleDaysOfWeek?: boolean | undefined;
|
|
365
|
+
advanceOption?: {
|
|
366
|
+
label: string;
|
|
367
|
+
value: string;
|
|
368
|
+
isAdvance: boolean;
|
|
369
|
+
} | undefined;
|
|
370
|
+
isValidRecurrence?: (() => boolean) | undefined;
|
|
371
|
+
validationMessage?: string | undefined;
|
|
372
|
+
endDayBlocked?: (() => boolean) | undefined;
|
|
373
|
+
startDayBlocked?: (() => boolean) | undefined;
|
|
374
|
+
repeatFrecuencyCustomProps?: {} | undefined;
|
|
375
|
+
} | undefined): JSX.Element;
|
|
376
|
+
propTypes: unknown;
|
|
377
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
378
|
+
};
|
|
143
379
|
export { DateTimeRecurenceSelectorWithSchema };
|
|
144
380
|
export default DSDateTimeRecurrenceSelector;
|