@elliemae/ds-date-range-picker 3.1.0-next.2 → 3.1.0-next.20
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.
|
@@ -47,7 +47,7 @@ __export(DSDateRangePicker_exports, {
|
|
|
47
47
|
module.exports = __toCommonJS(DSDateRangePicker_exports);
|
|
48
48
|
var React = __toESM(require("react"));
|
|
49
49
|
var import_react = __toESM(require("react"));
|
|
50
|
-
var
|
|
50
|
+
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
51
51
|
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
52
52
|
var import_moment = __toESM(require("moment"));
|
|
53
53
|
var import_initialize = require("react-dates/initialize");
|
|
@@ -144,78 +144,78 @@ const DSDateRangePicker = ({
|
|
|
144
144
|
}));
|
|
145
145
|
};
|
|
146
146
|
const dateRangePickerProps = {
|
|
147
|
-
containerProps:
|
|
148
|
-
className:
|
|
149
|
-
disabled:
|
|
150
|
-
required:
|
|
151
|
-
startDateRequired:
|
|
152
|
-
endDateRequired:
|
|
153
|
-
id:
|
|
154
|
-
hasError:
|
|
155
|
-
validationMessage:
|
|
156
|
-
readOnly:
|
|
157
|
-
screenReaderInputMessage:
|
|
158
|
-
initialVisibleMonth:
|
|
159
|
-
firstDayOfWeek:
|
|
160
|
-
keepOpenOnDateSelect:
|
|
161
|
-
reopenPickerOnClearDates:
|
|
162
|
-
hideKeyboardShortcutsPanel:
|
|
163
|
-
onPrevMonthClick:
|
|
164
|
-
onNextMonthClick:
|
|
165
|
-
onClose:
|
|
166
|
-
transitionDuration:
|
|
167
|
-
verticalSpacing:
|
|
168
|
-
isDayBlocked:
|
|
169
|
-
isOutsideRange:
|
|
170
|
-
isDayHighlighted:
|
|
171
|
-
minimumNights:
|
|
172
|
-
displayFormat:
|
|
173
|
-
displayFormatDay:
|
|
174
|
-
phrases:
|
|
175
|
-
calendarLabel:
|
|
176
|
-
closeDatePicker:
|
|
177
|
-
clearDates:
|
|
178
|
-
focusStartDate:
|
|
179
|
-
jumpToPrevMonth:
|
|
180
|
-
jumpToNextMonth:
|
|
181
|
-
keyboardShortcuts:
|
|
182
|
-
showKeyboardShortcutsPanel:
|
|
183
|
-
hideKeyboardShortcutsPanel:
|
|
184
|
-
openThisPanel:
|
|
185
|
-
enterKey:
|
|
186
|
-
leftArrowRightArrow:
|
|
187
|
-
upArrowDownArrow:
|
|
188
|
-
pageUpPageDown:
|
|
189
|
-
homeEnd:
|
|
190
|
-
escape:
|
|
191
|
-
questionMark:
|
|
192
|
-
selectFocusedDate:
|
|
193
|
-
moveFocusByOneDay:
|
|
194
|
-
moveFocusByOneWeek:
|
|
195
|
-
moveFocusByOneMonth:
|
|
196
|
-
moveFocustoStartAndEndOfWeek:
|
|
197
|
-
returnFocusToInput:
|
|
198
|
-
keyboardNavigationInstructions:
|
|
199
|
-
chooseAvailableStartDate:
|
|
200
|
-
chooseAvailableEndDate:
|
|
201
|
-
dateIsUnavailable:
|
|
202
|
-
dateIsSelected:
|
|
147
|
+
containerProps: import_ds_utilities.PropTypes.shape({}).description("Set of Properties attached to the main container"),
|
|
148
|
+
className: import_ds_utilities.PropTypes.string.description("html class attribute"),
|
|
149
|
+
disabled: import_ds_utilities.PropTypes.bool.description("disable component or not").defaultValue(false),
|
|
150
|
+
required: import_ds_utilities.PropTypes.bool.description("input is required or not").defaultValue(false),
|
|
151
|
+
startDateRequired: import_ds_utilities.PropTypes.bool.description("start date is required or not").defaultValue(false),
|
|
152
|
+
endDateRequired: import_ds_utilities.PropTypes.bool.description("end date is required or not").defaultValue(false),
|
|
153
|
+
id: import_ds_utilities.PropTypes.string.description("components id"),
|
|
154
|
+
hasError: import_ds_utilities.PropTypes.bool.description("set error state").defaultValue(false),
|
|
155
|
+
validationMessage: import_ds_utilities.PropTypes.string.description("validation message"),
|
|
156
|
+
readOnly: import_ds_utilities.PropTypes.bool.description("component is read only or not").description(false),
|
|
157
|
+
screenReaderInputMessage: import_ds_utilities.PropTypes.string.description("message to be anounced by screen reader").defaultValue("select date"),
|
|
158
|
+
initialVisibleMonth: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.instanceOf(Date), import_ds_utilities.PropTypes.instanceOf(import_moment.default)]).description("initial visible month"),
|
|
159
|
+
firstDayOfWeek: import_ds_utilities.PropTypes.number.description("first day of week").defaultValue(0),
|
|
160
|
+
keepOpenOnDateSelect: import_ds_utilities.PropTypes.bool.description("keep picker open when a date is selected").defaultValue(true),
|
|
161
|
+
reopenPickerOnClearDates: import_ds_utilities.PropTypes.bool.description("reopen picker when clearing dates").defaultValue(false),
|
|
162
|
+
hideKeyboardShortcutsPanel: import_ds_utilities.PropTypes.bool.description("hide keyabord shortcut panel or not"),
|
|
163
|
+
onPrevMonthClick: import_ds_utilities.PropTypes.func.description("function executed when clicking on prev month button"),
|
|
164
|
+
onNextMonthClick: import_ds_utilities.PropTypes.func.description("function executed when clicking on next month button"),
|
|
165
|
+
onClose: import_ds_utilities.PropTypes.func.description("function executed when component closes"),
|
|
166
|
+
transitionDuration: import_ds_utilities.PropTypes.number.description("transition duration").defaultValue(0),
|
|
167
|
+
verticalSpacing: import_ds_utilities.PropTypes.number.description("vertical spacing"),
|
|
168
|
+
isDayBlocked: import_ds_utilities.PropTypes.func.description("function that returns each day and disables desired dates"),
|
|
169
|
+
isOutsideRange: import_ds_utilities.PropTypes.func.description("function that returns each day and disables outisde range dates"),
|
|
170
|
+
isDayHighlighted: import_ds_utilities.PropTypes.func.description("function that returns each day and higlights desired dates"),
|
|
171
|
+
minimumNights: import_ds_utilities.PropTypes.number.description("Minimum nights"),
|
|
172
|
+
displayFormat: import_ds_utilities.PropTypes.string.description("display format").defaultValue("L"),
|
|
173
|
+
displayFormatDay: import_ds_utilities.PropTypes.string.description("display format day").defaultValue("D"),
|
|
174
|
+
phrases: import_ds_utilities.PropTypes.shape({
|
|
175
|
+
calendarLabel: import_ds_utilities.PropTypes.string,
|
|
176
|
+
closeDatePicker: import_ds_utilities.PropTypes.string,
|
|
177
|
+
clearDates: import_ds_utilities.PropTypes.string,
|
|
178
|
+
focusStartDate: import_ds_utilities.PropTypes.string,
|
|
179
|
+
jumpToPrevMonth: import_ds_utilities.PropTypes.string,
|
|
180
|
+
jumpToNextMonth: import_ds_utilities.PropTypes.string,
|
|
181
|
+
keyboardShortcuts: import_ds_utilities.PropTypes.string,
|
|
182
|
+
showKeyboardShortcutsPanel: import_ds_utilities.PropTypes.string,
|
|
183
|
+
hideKeyboardShortcutsPanel: import_ds_utilities.PropTypes.string,
|
|
184
|
+
openThisPanel: import_ds_utilities.PropTypes.string,
|
|
185
|
+
enterKey: import_ds_utilities.PropTypes.string,
|
|
186
|
+
leftArrowRightArrow: import_ds_utilities.PropTypes.string,
|
|
187
|
+
upArrowDownArrow: import_ds_utilities.PropTypes.string,
|
|
188
|
+
pageUpPageDown: import_ds_utilities.PropTypes.string,
|
|
189
|
+
homeEnd: import_ds_utilities.PropTypes.string,
|
|
190
|
+
escape: import_ds_utilities.PropTypes.string,
|
|
191
|
+
questionMark: import_ds_utilities.PropTypes.string,
|
|
192
|
+
selectFocusedDate: import_ds_utilities.PropTypes.string,
|
|
193
|
+
moveFocusByOneDay: import_ds_utilities.PropTypes.string,
|
|
194
|
+
moveFocusByOneWeek: import_ds_utilities.PropTypes.string,
|
|
195
|
+
moveFocusByOneMonth: import_ds_utilities.PropTypes.string,
|
|
196
|
+
moveFocustoStartAndEndOfWeek: import_ds_utilities.PropTypes.string,
|
|
197
|
+
returnFocusToInput: import_ds_utilities.PropTypes.string,
|
|
198
|
+
keyboardNavigationInstructions: import_ds_utilities.PropTypes.string,
|
|
199
|
+
chooseAvailableStartDate: import_ds_utilities.PropTypes.func,
|
|
200
|
+
chooseAvailableEndDate: import_ds_utilities.PropTypes.func,
|
|
201
|
+
dateIsUnavailable: import_ds_utilities.PropTypes.func,
|
|
202
|
+
dateIsSelected: import_ds_utilities.PropTypes.func
|
|
203
203
|
}).description("react-dates phrases"),
|
|
204
|
-
startDate:
|
|
205
|
-
endDate:
|
|
206
|
-
startDateId:
|
|
207
|
-
endDateId:
|
|
208
|
-
labelFrom:
|
|
209
|
-
labelTo:
|
|
210
|
-
enableOutsideDays:
|
|
211
|
-
onDatesChange:
|
|
212
|
-
onChangeStartInput:
|
|
213
|
-
onChangeEndInput:
|
|
214
|
-
onOutsideClick:
|
|
204
|
+
startDate: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.instanceOf(Date), import_ds_utilities.PropTypes.instanceOf(import_moment.default)]).description("start date value"),
|
|
205
|
+
endDate: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.instanceOf(Date), import_ds_utilities.PropTypes.instanceOf(import_moment.default)]).description("end date value"),
|
|
206
|
+
startDateId: import_ds_utilities.PropTypes.string.description("start date id"),
|
|
207
|
+
endDateId: import_ds_utilities.PropTypes.string.description("end date id"),
|
|
208
|
+
labelFrom: import_ds_utilities.PropTypes.string.description("label of start date input"),
|
|
209
|
+
labelTo: import_ds_utilities.PropTypes.string.description("label of end date input"),
|
|
210
|
+
enableOutsideDays: import_ds_utilities.PropTypes.bool.description("enable days outside current month").defaultValue("true"),
|
|
211
|
+
onDatesChange: import_ds_utilities.PropTypes.func.description("function executed when dates change"),
|
|
212
|
+
onChangeStartInput: import_ds_utilities.PropTypes.func.description("function executed when start date input changes"),
|
|
213
|
+
onChangeEndInput: import_ds_utilities.PropTypes.func.description("function executed when end date input changes"),
|
|
214
|
+
onOutsideClick: import_ds_utilities.PropTypes.func.description("function executed when clicking outside component")
|
|
215
215
|
};
|
|
216
216
|
DSDateRangePicker.propTypes = dateRangePickerProps;
|
|
217
217
|
DSDateRangePicker.displayName = "DSDateRangePicker";
|
|
218
|
-
const DateRangePickerWithSchema = (0,
|
|
218
|
+
const DateRangePickerWithSchema = (0, import_ds_utilities.describe)(DSDateRangePicker);
|
|
219
219
|
DateRangePickerWithSchema.propTypes = dateRangePickerProps;
|
|
220
220
|
var DSDateRangePicker_default = DSDateRangePicker;
|
|
221
221
|
//# sourceMappingURL=DSDateRangePicker.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSDateRangePicker.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { PropTypes, describe } from '
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkB;AAClB,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport moment from 'moment';\nimport 'react-dates/initialize';\nimport { DateRangePickerPhrases } from 'react-dates/lib/defaultPhrases';\nimport DayPickerRangeController from './components/DayPickerRangeController';\nimport DSDateRangePickerImpl, { START_DATE, END_DATE } from './components/DSDateRangePickerImpl';\n\nconst DSDateRangePicker = ({\n containerProps = {},\n className = '',\n disabled = false,\n required = false,\n startDateRequired = false,\n endDateRequired = false,\n id,\n hasError = false,\n validationMessage = '',\n readOnly = false,\n screenReaderInputMessage = 'Select date',\n initialVisibleMonth = moment(),\n firstDayOfWeek = 0,\n keepOpenOnDateSelect = true,\n reopenPickerOnClearDates = false,\n hideKeyboardShortcutsPanel = true,\n onPrevMonthClick = () => null,\n onNextMonthClick = () => null,\n onClose = () => null,\n onOutsideClick = () => null,\n transitionDuration = 0,\n verticalSpacing = 0,\n minimumNights = 0,\n isDayBlocked = () => false,\n isOutsideRange = () => false,\n isDayHighlighted = () => false,\n displayFormat = 'L',\n displayFormatDay = 'D',\n phrases = DateRangePickerPhrases,\n startDate,\n endDate,\n startDateId = 'startDateId',\n endDateId = 'endDateId',\n labelFrom = 'From',\n labelTo = 'To',\n enableOutsideDays = true,\n onChangeStartInput = () => null,\n onChangeEndInput = () => null,\n onDatesChange = () => null,\n}) => {\n const { cssClassName, prefixBlockName } = convertPropToCssClassName('datepicker', className, {\n hasError,\n readOnly,\n disabled,\n id,\n });\n return (\n <div {...containerProps} className={`${prefixBlockName}-range ${cssClassName} ${prefixBlockName}-range`}>\n <DSDateRangePickerImpl\n appendToBody\n disabled={disabled}\n displayFormat={displayFormat}\n displayFormatDay={displayFormatDay}\n enableOutsideDays={enableOutsideDays}\n endDate={endDate}\n endDateId={endDateId}\n firstDayOfWeek={firstDayOfWeek}\n hideKeyboardShortcutsPanel={hideKeyboardShortcutsPanel}\n initialVisibleMonth={() => (initialVisibleMonth ? moment(initialVisibleMonth) : moment(startDate))}\n isDayBlocked={isDayBlocked}\n isDayHighlighted={isDayHighlighted}\n isOutsideRange={isOutsideRange === true || isOutsideRange === false ? () => isOutsideRange : isOutsideRange}\n keepOpenOnDateSelect={keepOpenOnDateSelect}\n labelFrom={labelFrom}\n labelTo={labelTo}\n minimumNights={minimumNights}\n onDatesChange={onDatesChange}\n onChangeStartInput={onChangeStartInput}\n onChangeEndInput={onChangeEndInput}\n onClose={onClose}\n onNextMonthClick={onNextMonthClick}\n onPrevMonthClick={onPrevMonthClick}\n onOutsideClick={onOutsideClick}\n phrases={phrases}\n readOnly={readOnly}\n reopenPickerOnClearDates={reopenPickerOnClearDates}\n required={required}\n startDateRequired={startDateRequired}\n endDateRequired={endDateRequired}\n screenReaderInputMessage={screenReaderInputMessage}\n startDate={startDate}\n startDateId={startDateId}\n transitionDuration={transitionDuration}\n verticalSpacing={verticalSpacing}\n hasError={hasError}\n validationMessage={validationMessage}\n />\n </div>\n );\n};\n\nconst dateRangePickerProps = {\n containerProps: PropTypes.shape({}).description('Set of Properties attached to the main container'),\n className: PropTypes.string.description('html class attribute'),\n disabled: PropTypes.bool.description('disable component or not').defaultValue(false),\n required: PropTypes.bool.description('input is required or not').defaultValue(false),\n startDateRequired: PropTypes.bool.description('start date is required or not').defaultValue(false),\n endDateRequired: PropTypes.bool.description('end date is required or not').defaultValue(false),\n id: PropTypes.string.description('components id'),\n hasError: PropTypes.bool.description('set error state').defaultValue(false),\n validationMessage: PropTypes.string.description('validation message'),\n readOnly: PropTypes.bool.description('component is read only or not').description(false),\n screenReaderInputMessage: PropTypes.string\n .description('message to be anounced by screen reader')\n .defaultValue('select date'),\n initialVisibleMonth: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description(\n 'initial visible month',\n ),\n firstDayOfWeek: PropTypes.number.description('first day of week').defaultValue(0),\n keepOpenOnDateSelect: PropTypes.bool.description('keep picker open when a date is selected').defaultValue(true),\n reopenPickerOnClearDates: PropTypes.bool.description('reopen picker when clearing dates').defaultValue(false),\n hideKeyboardShortcutsPanel: PropTypes.bool.description('hide keyabord shortcut panel or not'),\n onPrevMonthClick: PropTypes.func.description('function executed when clicking on prev month button'),\n onNextMonthClick: PropTypes.func.description('function executed when clicking on next month button'),\n onClose: PropTypes.func.description('function executed when component closes'),\n transitionDuration: PropTypes.number.description('transition duration').defaultValue(0),\n verticalSpacing: PropTypes.number.description('vertical spacing'),\n isDayBlocked: PropTypes.func.description('function that returns each day and disables desired dates'),\n isOutsideRange: PropTypes.func.description('function that returns each day and disables outisde range dates'),\n isDayHighlighted: PropTypes.func.description('function that returns each day and higlights desired dates'),\n minimumNights: PropTypes.number.description('Minimum nights'),\n displayFormat: PropTypes.string.description('display format').defaultValue('L'),\n displayFormatDay: PropTypes.string.description('display format day').defaultValue('D'),\n phrases: PropTypes.shape({\n calendarLabel: PropTypes.string,\n closeDatePicker: PropTypes.string,\n clearDates: PropTypes.string,\n focusStartDate: PropTypes.string,\n jumpToPrevMonth: PropTypes.string,\n jumpToNextMonth: PropTypes.string,\n keyboardShortcuts: PropTypes.string,\n showKeyboardShortcutsPanel: PropTypes.string,\n hideKeyboardShortcutsPanel: PropTypes.string,\n openThisPanel: PropTypes.string,\n enterKey: PropTypes.string,\n leftArrowRightArrow: PropTypes.string,\n upArrowDownArrow: PropTypes.string,\n pageUpPageDown: PropTypes.string,\n homeEnd: PropTypes.string,\n escape: PropTypes.string,\n questionMark: PropTypes.string,\n selectFocusedDate: PropTypes.string,\n moveFocusByOneDay: PropTypes.string,\n moveFocusByOneWeek: PropTypes.string,\n moveFocusByOneMonth: PropTypes.string,\n moveFocustoStartAndEndOfWeek: PropTypes.string,\n returnFocusToInput: PropTypes.string,\n keyboardNavigationInstructions: PropTypes.string,\n chooseAvailableStartDate: PropTypes.func,\n chooseAvailableEndDate: PropTypes.func,\n dateIsUnavailable: PropTypes.func,\n dateIsSelected: PropTypes.func,\n }).description('react-dates phrases'),\n startDate: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description(\n 'start date value',\n ),\n endDate: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description(\n 'end date value',\n ),\n startDateId: PropTypes.string.description('start date id'),\n endDateId: PropTypes.string.description('end date id'),\n labelFrom: PropTypes.string.description('label of start date input'),\n labelTo: PropTypes.string.description('label of end date input'),\n enableOutsideDays: PropTypes.bool.description('enable days outside current month').defaultValue('true'),\n onDatesChange: PropTypes.func.description('function executed when dates change'),\n onChangeStartInput: PropTypes.func.description('function executed when start date input changes'),\n onChangeEndInput: PropTypes.func.description('function executed when end date input changes'),\n onOutsideClick: PropTypes.func.description('function executed when clicking outside component'),\n};\n\nDSDateRangePicker.propTypes = dateRangePickerProps;\nDSDateRangePicker.displayName = 'DSDateRangePicker';\nconst DateRangePickerWithSchema = describe(DSDateRangePicker);\nDateRangePickerWithSchema.propTypes = dateRangePickerProps;\n\nexport { DayPickerRangeController, START_DATE, END_DATE, DateRangePickerWithSchema, DSDateRangePicker };\n\nexport default DSDateRangePicker;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA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kBAAkB,YAAY;AAC9B,kBAAkB,cAAc;AAChC,MAAM,4BAA4B,kCAAS,iBAAiB;AAC5D,0BAA0B,YAAY;AAItC,IAAO,4BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -19,16 +19,13 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import * as React from "react";
|
|
21
21
|
import React2 from "react";
|
|
22
|
-
import { PropTypes, describe } from "
|
|
22
|
+
import { PropTypes, describe } from "@elliemae/ds-utilities";
|
|
23
23
|
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
24
24
|
import moment from "moment";
|
|
25
25
|
import "react-dates/initialize";
|
|
26
26
|
import { DateRangePickerPhrases } from "react-dates/lib/defaultPhrases";
|
|
27
27
|
import DayPickerRangeController from "./components/DayPickerRangeController";
|
|
28
|
-
import DSDateRangePickerImpl, {
|
|
29
|
-
START_DATE,
|
|
30
|
-
END_DATE
|
|
31
|
-
} from "./components/DSDateRangePickerImpl";
|
|
28
|
+
import DSDateRangePickerImpl, { START_DATE, END_DATE } from "./components/DSDateRangePickerImpl";
|
|
32
29
|
const DSDateRangePicker = ({
|
|
33
30
|
containerProps = {},
|
|
34
31
|
className = "",
|
|
@@ -130,7 +127,7 @@ const dateRangePickerProps = {
|
|
|
130
127
|
validationMessage: PropTypes.string.description("validation message"),
|
|
131
128
|
readOnly: PropTypes.bool.description("component is read only or not").description(false),
|
|
132
129
|
screenReaderInputMessage: PropTypes.string.description("message to be anounced by screen reader").defaultValue("select date"),
|
|
133
|
-
initialVisibleMonth: PropTypes.instanceOf(Date, moment).description("initial visible month"),
|
|
130
|
+
initialVisibleMonth: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description("initial visible month"),
|
|
134
131
|
firstDayOfWeek: PropTypes.number.description("first day of week").defaultValue(0),
|
|
135
132
|
keepOpenOnDateSelect: PropTypes.bool.description("keep picker open when a date is selected").defaultValue(true),
|
|
136
133
|
reopenPickerOnClearDates: PropTypes.bool.description("reopen picker when clearing dates").defaultValue(false),
|
|
@@ -143,7 +140,7 @@ const dateRangePickerProps = {
|
|
|
143
140
|
isDayBlocked: PropTypes.func.description("function that returns each day and disables desired dates"),
|
|
144
141
|
isOutsideRange: PropTypes.func.description("function that returns each day and disables outisde range dates"),
|
|
145
142
|
isDayHighlighted: PropTypes.func.description("function that returns each day and higlights desired dates"),
|
|
146
|
-
minimumNights:
|
|
143
|
+
minimumNights: PropTypes.number.description("Minimum nights"),
|
|
147
144
|
displayFormat: PropTypes.string.description("display format").defaultValue("L"),
|
|
148
145
|
displayFormatDay: PropTypes.string.description("display format day").defaultValue("D"),
|
|
149
146
|
phrases: PropTypes.shape({
|
|
@@ -176,8 +173,8 @@ const dateRangePickerProps = {
|
|
|
176
173
|
dateIsUnavailable: PropTypes.func,
|
|
177
174
|
dateIsSelected: PropTypes.func
|
|
178
175
|
}).description("react-dates phrases"),
|
|
179
|
-
startDate: PropTypes.instanceOf(Date, moment).description("start date value"),
|
|
180
|
-
endDate: PropTypes.instanceOf(Date, moment).description("end date value"),
|
|
176
|
+
startDate: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description("start date value"),
|
|
177
|
+
endDate: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description("end date value"),
|
|
181
178
|
startDateId: PropTypes.string.description("start date id"),
|
|
182
179
|
endDateId: PropTypes.string.description("end date id"),
|
|
183
180
|
labelFrom: PropTypes.string.description("label of start date input"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSDateRangePicker.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { PropTypes, describe } from '
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport moment from 'moment';\nimport 'react-dates/initialize';\nimport { DateRangePickerPhrases } from 'react-dates/lib/defaultPhrases';\nimport DayPickerRangeController from './components/DayPickerRangeController';\nimport DSDateRangePickerImpl, { START_DATE, END_DATE } from './components/DSDateRangePickerImpl';\n\nconst DSDateRangePicker = ({\n containerProps = {},\n className = '',\n disabled = false,\n required = false,\n startDateRequired = false,\n endDateRequired = false,\n id,\n hasError = false,\n validationMessage = '',\n readOnly = false,\n screenReaderInputMessage = 'Select date',\n initialVisibleMonth = moment(),\n firstDayOfWeek = 0,\n keepOpenOnDateSelect = true,\n reopenPickerOnClearDates = false,\n hideKeyboardShortcutsPanel = true,\n onPrevMonthClick = () => null,\n onNextMonthClick = () => null,\n onClose = () => null,\n onOutsideClick = () => null,\n transitionDuration = 0,\n verticalSpacing = 0,\n minimumNights = 0,\n isDayBlocked = () => false,\n isOutsideRange = () => false,\n isDayHighlighted = () => false,\n displayFormat = 'L',\n displayFormatDay = 'D',\n phrases = DateRangePickerPhrases,\n startDate,\n endDate,\n startDateId = 'startDateId',\n endDateId = 'endDateId',\n labelFrom = 'From',\n labelTo = 'To',\n enableOutsideDays = true,\n onChangeStartInput = () => null,\n onChangeEndInput = () => null,\n onDatesChange = () => null,\n}) => {\n const { cssClassName, prefixBlockName } = convertPropToCssClassName('datepicker', className, {\n hasError,\n readOnly,\n disabled,\n id,\n });\n return (\n <div {...containerProps} className={`${prefixBlockName}-range ${cssClassName} ${prefixBlockName}-range`}>\n <DSDateRangePickerImpl\n appendToBody\n disabled={disabled}\n displayFormat={displayFormat}\n displayFormatDay={displayFormatDay}\n enableOutsideDays={enableOutsideDays}\n endDate={endDate}\n endDateId={endDateId}\n firstDayOfWeek={firstDayOfWeek}\n hideKeyboardShortcutsPanel={hideKeyboardShortcutsPanel}\n initialVisibleMonth={() => (initialVisibleMonth ? moment(initialVisibleMonth) : moment(startDate))}\n isDayBlocked={isDayBlocked}\n isDayHighlighted={isDayHighlighted}\n isOutsideRange={isOutsideRange === true || isOutsideRange === false ? () => isOutsideRange : isOutsideRange}\n keepOpenOnDateSelect={keepOpenOnDateSelect}\n labelFrom={labelFrom}\n labelTo={labelTo}\n minimumNights={minimumNights}\n onDatesChange={onDatesChange}\n onChangeStartInput={onChangeStartInput}\n onChangeEndInput={onChangeEndInput}\n onClose={onClose}\n onNextMonthClick={onNextMonthClick}\n onPrevMonthClick={onPrevMonthClick}\n onOutsideClick={onOutsideClick}\n phrases={phrases}\n readOnly={readOnly}\n reopenPickerOnClearDates={reopenPickerOnClearDates}\n required={required}\n startDateRequired={startDateRequired}\n endDateRequired={endDateRequired}\n screenReaderInputMessage={screenReaderInputMessage}\n startDate={startDate}\n startDateId={startDateId}\n transitionDuration={transitionDuration}\n verticalSpacing={verticalSpacing}\n hasError={hasError}\n validationMessage={validationMessage}\n />\n </div>\n );\n};\n\nconst dateRangePickerProps = {\n containerProps: PropTypes.shape({}).description('Set of Properties attached to the main container'),\n className: PropTypes.string.description('html class attribute'),\n disabled: PropTypes.bool.description('disable component or not').defaultValue(false),\n required: PropTypes.bool.description('input is required or not').defaultValue(false),\n startDateRequired: PropTypes.bool.description('start date is required or not').defaultValue(false),\n endDateRequired: PropTypes.bool.description('end date is required or not').defaultValue(false),\n id: PropTypes.string.description('components id'),\n hasError: PropTypes.bool.description('set error state').defaultValue(false),\n validationMessage: PropTypes.string.description('validation message'),\n readOnly: PropTypes.bool.description('component is read only or not').description(false),\n screenReaderInputMessage: PropTypes.string\n .description('message to be anounced by screen reader')\n .defaultValue('select date'),\n initialVisibleMonth: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description(\n 'initial visible month',\n ),\n firstDayOfWeek: PropTypes.number.description('first day of week').defaultValue(0),\n keepOpenOnDateSelect: PropTypes.bool.description('keep picker open when a date is selected').defaultValue(true),\n reopenPickerOnClearDates: PropTypes.bool.description('reopen picker when clearing dates').defaultValue(false),\n hideKeyboardShortcutsPanel: PropTypes.bool.description('hide keyabord shortcut panel or not'),\n onPrevMonthClick: PropTypes.func.description('function executed when clicking on prev month button'),\n onNextMonthClick: PropTypes.func.description('function executed when clicking on next month button'),\n onClose: PropTypes.func.description('function executed when component closes'),\n transitionDuration: PropTypes.number.description('transition duration').defaultValue(0),\n verticalSpacing: PropTypes.number.description('vertical spacing'),\n isDayBlocked: PropTypes.func.description('function that returns each day and disables desired dates'),\n isOutsideRange: PropTypes.func.description('function that returns each day and disables outisde range dates'),\n isDayHighlighted: PropTypes.func.description('function that returns each day and higlights desired dates'),\n minimumNights: PropTypes.number.description('Minimum nights'),\n displayFormat: PropTypes.string.description('display format').defaultValue('L'),\n displayFormatDay: PropTypes.string.description('display format day').defaultValue('D'),\n phrases: PropTypes.shape({\n calendarLabel: PropTypes.string,\n closeDatePicker: PropTypes.string,\n clearDates: PropTypes.string,\n focusStartDate: PropTypes.string,\n jumpToPrevMonth: PropTypes.string,\n jumpToNextMonth: PropTypes.string,\n keyboardShortcuts: PropTypes.string,\n showKeyboardShortcutsPanel: PropTypes.string,\n hideKeyboardShortcutsPanel: PropTypes.string,\n openThisPanel: PropTypes.string,\n enterKey: PropTypes.string,\n leftArrowRightArrow: PropTypes.string,\n upArrowDownArrow: PropTypes.string,\n pageUpPageDown: PropTypes.string,\n homeEnd: PropTypes.string,\n escape: PropTypes.string,\n questionMark: PropTypes.string,\n selectFocusedDate: PropTypes.string,\n moveFocusByOneDay: PropTypes.string,\n moveFocusByOneWeek: PropTypes.string,\n moveFocusByOneMonth: PropTypes.string,\n moveFocustoStartAndEndOfWeek: PropTypes.string,\n returnFocusToInput: PropTypes.string,\n keyboardNavigationInstructions: PropTypes.string,\n chooseAvailableStartDate: PropTypes.func,\n chooseAvailableEndDate: PropTypes.func,\n dateIsUnavailable: PropTypes.func,\n dateIsSelected: PropTypes.func,\n }).description('react-dates phrases'),\n startDate: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description(\n 'start date value',\n ),\n endDate: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.instanceOf(moment)]).description(\n 'end date value',\n ),\n startDateId: PropTypes.string.description('start date id'),\n endDateId: PropTypes.string.description('end date id'),\n labelFrom: PropTypes.string.description('label of start date input'),\n labelTo: PropTypes.string.description('label of end date input'),\n enableOutsideDays: PropTypes.bool.description('enable days outside current month').defaultValue('true'),\n onDatesChange: PropTypes.func.description('function executed when dates change'),\n onChangeStartInput: PropTypes.func.description('function executed when start date input changes'),\n onChangeEndInput: PropTypes.func.description('function executed when end date input changes'),\n onOutsideClick: PropTypes.func.description('function executed when clicking outside component'),\n};\n\nDSDateRangePicker.propTypes = dateRangePickerProps;\nDSDateRangePicker.displayName = 'DSDateRangePicker';\nconst DateRangePickerWithSchema = describe(DSDateRangePicker);\nDateRangePickerWithSchema.propTypes = dateRangePickerProps;\n\nexport { DayPickerRangeController, START_DATE, END_DATE, DateRangePickerWithSchema, DSDateRangePicker };\n\nexport default DSDateRangePicker;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,oBAAoB,CAAC;AAAA,EACzB,iBAAiB,CAAC;AAAA,EAClB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB;AAAA,EACA,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,2BAA2B;AAAA,EAC3B,sBAAsB,OAAO;AAAA,EAC7B,iBAAiB;AAAA,EACjB,uBAAuB;AAAA,EACvB,2BAA2B;AA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AAW,UAAU,UAAU,CAAC,UAAU,WAAW,IAAI,GAAG,UAAU,WAAW,MAAM,CAAC,CAAC,EAAE,YACzF,kBACF;AAAA,EACA,SAAS,UAAU,UAAU,CAAC,UAAU,WAAW,IAAI,GAAG,UAAU,WAAW,MAAM,CAAC,CAAC,EAAE,YACvF,gBACF;AAAA,EACA,aAAa,UAAU,OAAO,YAAY,eAAe;AAAA,EACzD,WAAW,UAAU,OAAO,YAAY,aAAa;AAAA,EACrD,WAAW,UAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,SAAS,UAAU,OAAO,YAAY,yBAAyB;AAAA,EAC/D,mBAAmB,UAAU,KAAK,YAAY,mCAAmC,EAAE,aAAa,MAAM;AAAA,EACtG,eAAe,UAAU,KAAK,YAAY,qCAAqC;AAAA,EAC/E,oBAAoB,UAAU,KAAK,YAAY,iDAAiD;AAAA,EAChG,kBAAkB,UAAU,KAAK,YAAY,+CAA+C;AAAA,EAC5F,gBAAgB,UAAU,KAAK,YAAY,mDAAmD;AAChG;AAEA,kBAAkB,YAAY;AAC9B,kBAAkB,cAAc;AAChC,MAAM,4BAA4B,SAAS,iBAAiB;AAC5D,0BAA0B,YAAY;AAItC,IAAO,4BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-date-range-picker",
|
|
3
|
-
"version": "3.1.0-next.
|
|
3
|
+
"version": "3.1.0-next.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Date Range Picker",
|
|
6
6
|
"files": [
|
|
@@ -58,23 +58,16 @@
|
|
|
58
58
|
"reportFile": "tests.xml",
|
|
59
59
|
"indent": 4
|
|
60
60
|
},
|
|
61
|
-
"scripts": {
|
|
62
|
-
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
63
|
-
"test": "node ../../scripts/testing/test.mjs",
|
|
64
|
-
"lint": "node ../../scripts/lint.mjs",
|
|
65
|
-
"dts": "node ../../scripts/dts.mjs",
|
|
66
|
-
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
67
|
-
},
|
|
68
61
|
"dependencies": {
|
|
69
|
-
"@elliemae/ds-classnames": "3.1.0-next.
|
|
70
|
-
"@elliemae/ds-date-picker": "3.1.0-next.
|
|
71
|
-
"@elliemae/ds-form": "3.1.0-next.
|
|
72
|
-
"@elliemae/ds-icons": "3.1.0-next.
|
|
73
|
-
"@elliemae/ds-popper": "3.1.0-next.
|
|
74
|
-
"
|
|
62
|
+
"@elliemae/ds-classnames": "3.1.0-next.20",
|
|
63
|
+
"@elliemae/ds-date-picker": "3.1.0-next.20",
|
|
64
|
+
"@elliemae/ds-form": "3.1.0-next.20",
|
|
65
|
+
"@elliemae/ds-icons": "3.1.0-next.20",
|
|
66
|
+
"@elliemae/ds-popper": "3.1.0-next.20",
|
|
67
|
+
"@elliemae/ds-utilities": "3.1.0-next.20",
|
|
68
|
+
"moment": "~2.29.3",
|
|
75
69
|
"prop-types": "~15.8.1",
|
|
76
|
-
"react-dates": "~21.8.0"
|
|
77
|
-
"react-desc": "~4.1.3"
|
|
70
|
+
"react-dates": "~21.8.0"
|
|
78
71
|
},
|
|
79
72
|
"peerDependencies": {
|
|
80
73
|
"lodash": "^4.17.21",
|
|
@@ -84,5 +77,13 @@
|
|
|
84
77
|
"publishConfig": {
|
|
85
78
|
"access": "public",
|
|
86
79
|
"typeSafety": false
|
|
80
|
+
},
|
|
81
|
+
"scripts": {
|
|
82
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
83
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
84
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
85
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
86
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
87
|
+
"checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
87
88
|
}
|
|
88
|
-
}
|
|
89
|
+
}
|