pixel-react 1.15.13 → 1.15.15
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/README.md +75 -75
- package/lib/_virtual/index10.js +2 -2
- package/lib/_virtual/index11.js +2 -2
- package/lib/_virtual/index12.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/assets/icons/navigate_to_pages.svg.js +6 -0
- package/lib/assets/icons/navigate_to_pages.svg.js.map +1 -0
- package/lib/assets/icons/spinner.svg.js +1 -1
- package/lib/assets/icons/spinner.svg.js.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +1 -1
- package/lib/components/Accordion/Accordion.js +5 -3
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/types.d.ts +1 -0
- package/lib/components/Editor/VariableDropdown.js +2 -2
- package/lib/components/Icon/iconList.js +2 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/InputWithDropdown/InputWithDropdown.js +4 -3
- package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
- package/lib/index.cjs +9901 -3778
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/node_modules/@date-fns/tz/date/index.js +1 -19
- package/lib/node_modules/@date-fns/tz/date/index.js.map +1 -1
- package/lib/node_modules/@date-fns/tz/date/mini.js +34 -6
- package/lib/node_modules/@date-fns/tz/date/mini.js.map +1 -1
- package/lib/node_modules/@date-fns/tz/tzName/index.js +40 -0
- package/lib/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
- package/lib/node_modules/@date-fns/tz/tzOffset/index.js +6 -5
- package/lib/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js +93 -98
- package/lib/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/config/index.js +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/config/index.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/loader/index.js +15 -13
- package/lib/node_modules/@monaco-editor/loader/lib/es/loader/index.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/compose.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/curry.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js +1 -0
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/validators/index.js +1 -2
- package/lib/node_modules/@monaco-editor/loader/lib/es/validators/index.js.map +1 -1
- package/lib/node_modules/janus-gateway/npm/dist/janus.es.js +26 -57
- package/lib/node_modules/janus-gateway/npm/dist/janus.es.js.map +1 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/lib/node_modules/jsencrypt/lib/JSEncrypt.js +246 -0
- package/lib/node_modules/jsencrypt/lib/JSEncrypt.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js +325 -0
- package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/index.js +6 -0
- package/lib/node_modules/jsencrypt/lib/index.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js +570 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js +88 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js +66 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js +87 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js +65 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js +1700 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js +48 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js +77 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js +415 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js +307 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js +61 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js +1559 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js.map +1 -0
- package/lib/node_modules/libphonenumber-js/es6/AsYouType.js +115 -82
- package/lib/node_modules/libphonenumber-js/es6/AsYouType.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +68 -58
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +36 -23
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +13 -9
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js +226 -187
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js +21 -27
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js +150 -117
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js +57 -38
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/ParseError.js +70 -109
- package/lib/node_modules/libphonenumber-js/es6/ParseError.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js +72 -57
- package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/constants.js +15 -9
- package/lib/node_modules/libphonenumber-js/es6/constants.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/format.js +67 -93
- package/lib/node_modules/libphonenumber-js/es6/format.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
- package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/getCountries.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +49 -10
- package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +20 -32
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +5 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +25 -18
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +12 -11
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +13 -11
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +21 -11
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +12 -11
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +15 -12
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +59 -35
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +2 -2
- package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +38 -36
- package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/isObject.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +14 -10
- package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +22 -27
- package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +6 -6
- package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isPossible.js +6 -7
- package/lib/node_modules/libphonenumber-js/es6/isPossible.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isValid.js +6 -5
- package/lib/node_modules/libphonenumber-js/es6/isValid.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +44 -26
- package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/metadata.js +120 -69
- package/lib/node_modules/libphonenumber-js/es6/metadata.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js +87 -68
- package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parse.js +58 -40
- package/lib/node_modules/libphonenumber-js/es6/parse.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +32 -36
- package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +44 -26
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +46 -28
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/tools/semver-compare.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js +19 -19
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +88 -64
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +71 -6
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Button.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -14
- package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +3 -2
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/index.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +4 -4
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +2 -2
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +9 -11
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/index.js +2 -2
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +3 -2
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +6 -0
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +6 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
- package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js +64 -0
- package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
- package/lib/node_modules/react-hook-form/dist/index.esm.js +67 -44
- package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/lib/node_modules/react-virtuoso/dist/index.js +1246 -1200
- package/lib/node_modules/react-virtuoso/dist/index.js.map +1 -1
- package/lib/node_modules/ua-parser-js/src/ua-parser.js +85 -71
- package/lib/node_modules/ua-parser-js/src/ua-parser.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.d.ts +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.js +8 -17
- package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
- package/package.json +107 -106
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n
|
|
1
|
+
{"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n"],"names":["dayPickerContext","createContext","undefined","useDayPicker","context","useContext","Error"],"mappings":";;AACA;MACaA,gBAAgB,gBAAGC,aAAa,CAACC,SAAS;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,YAAYA,GAAG;AAC3B,EAAA,MAAMC,OAAO,GAAGC,UAAU,CAACL,gBAAgB,CAAC;EAC5C,IAAII,OAAO,KAAKF,SAAS,EAAE;AACvB,IAAA,MAAM,IAAII,KAAK,CAAC,wDAAwD,CAAC;AAC7E,EAAA;AACA,EAAA,OAAOF,OAAO;AAClB;;;;","x_google_ignoreList":[0]}
|
|
@@ -31,6 +31,12 @@ function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
|
|
|
31
31
|
if (!focusedDay) return;
|
|
32
32
|
const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);
|
|
33
33
|
if (!nextFocus) return;
|
|
34
|
+
if (props.disableNavigation) {
|
|
35
|
+
const isNextInCalendar = calendar.days.some(day => day.isEqualTo(nextFocus));
|
|
36
|
+
if (!isNextInCalendar) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
34
40
|
calendar.goToDay(nextFocus);
|
|
35
41
|
setFocused(nextFocus);
|
|
36
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus
|
|
1
|
+
{"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n if (props.disableNavigation) {\n const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));\n if (!isNextInCalendar) {\n return;\n }\n }\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus,\n };\n return useFocus;\n}\n"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","days","focusedDay","setFocused","undefined","blur","moveFocus","moveBy","moveDir","nextFocus","getNextFocus","navStart","navEnd","disableNavigation","isNextInCalendar","some","day","isEqualTo","goToDay","isFocusTarget","Boolean","focused"],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,QAAQA,CAACC,KAAK,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,UAAU,EAAEC,OAAO,EAAE;EACzE,MAAM;AAAEC,IAAAA;AAAU,GAAC,GAAGL,KAAK;EAC3B,MAAM,CAACM,WAAW,EAAEC,cAAc,CAAC,GAAGC,QAAQ,EAAE;AAChD,EAAA,MAAMC,WAAW,GAAGC,oBAAoB,CAACT,QAAQ,CAACU,IAAI,EAAET,YAAY,EAAEC,UAAU,KAAK,MAAM,KAAK,CAAC,EAAEG,WAAW,CAAC;AAC/G,EAAA,MAAM,CAACM,UAAU,EAAEC,UAAU,CAAC,GAAGL,QAAQ,CAACH,SAAS,GAAGI,WAAW,GAAGK,SAAS,CAAC;EAC9E,MAAMC,IAAI,GAAGA,MAAM;IACfR,cAAc,CAACK,UAAU,CAAC;IAC1BC,UAAU,CAACC,SAAS,CAAC;EACzB,CAAC;AACD,EAAA,MAAME,SAAS,GAAGA,CAACC,MAAM,EAAEC,OAAO,KAAK;IACnC,IAAI,CAACN,UAAU,EACX;IACJ,MAAMO,SAAS,GAAGC,YAAY,CAACH,MAAM,EAAEC,OAAO,EAAEN,UAAU,EAAEX,QAAQ,CAACoB,QAAQ,EAAEpB,QAAQ,CAACqB,MAAM,EAAEtB,KAAK,EAAEI,OAAO,CAAC;IAC/G,IAAI,CAACe,SAAS,EACV;IACJ,IAAInB,KAAK,CAACuB,iBAAiB,EAAE;AACzB,MAAA,MAAMC,gBAAgB,GAAGvB,QAAQ,CAACU,IAAI,CAACc,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACC,SAAS,CAACR,SAAS,CAAC,CAAC;MAC9E,IAAI,CAACK,gBAAgB,EAAE;AACnB,QAAA;AACJ,MAAA;AACJ,IAAA;AACAvB,IAAAA,QAAQ,CAAC2B,OAAO,CAACT,SAAS,CAAC;IAC3BN,UAAU,CAACM,SAAS,CAAC;EACzB,CAAC;EACD,MAAMU,aAAa,GAAIH,GAAG,IAAK;IAC3B,OAAOI,OAAO,CAACrB,WAAW,EAAEkB,SAAS,CAACD,GAAG,CAAC,CAAC;EAC/C,CAAC;AACD,EAAA,MAAM3B,QAAQ,GAAG;IACb8B,aAAa;IACbhB,UAAU;AACVkB,IAAAA,OAAO,EAAEnB,UAAU;IACnBG,IAAI;AACJC,IAAAA;GACH;AACD,EAAA,OAAOjB,QAAQ;AACnB;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n
|
|
1
|
+
{"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange","mode","undefined"],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,YAAYA,CAACC,KAAK,EAAEC,OAAO,EAAE;AACzC,EAAA,MAAMC,MAAM,GAAGC,SAAS,CAACH,KAAK,EAAEC,OAAO,CAAC;AACxC,EAAA,MAAMG,KAAK,GAAGC,QAAQ,CAACL,KAAK,EAAEC,OAAO,CAAC;AACtC,EAAA,MAAMK,KAAK,GAAGC,QAAQ,CAACP,KAAK,EAAEC,OAAO,CAAC;EACtC,QAAQD,KAAK,CAACQ,IAAI;AACd,IAAA,KAAK,QAAQ;AACT,MAAA,OAAON,MAAM;AACjB,IAAA,KAAK,UAAU;AACX,MAAA,OAAOE,KAAK;AAChB,IAAA,KAAK,OAAO;AACR,MAAA,OAAOE,KAAK;AAChB,IAAA;AACI,MAAA,OAAOG,SAAS;AACxB;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -34,7 +34,12 @@ function addToRange(date, initialRange, min = 0, max = 0, required = false, date
|
|
|
34
34
|
// adding date to an incomplete range
|
|
35
35
|
if (isSameDay(from, date)) {
|
|
36
36
|
// adding a date equal to the start of the range
|
|
37
|
-
if (
|
|
37
|
+
if (min === 0) {
|
|
38
|
+
range = {
|
|
39
|
+
from,
|
|
40
|
+
to: date
|
|
41
|
+
};
|
|
42
|
+
} else if (required) {
|
|
38
43
|
range = {
|
|
39
44
|
from,
|
|
40
45
|
to: undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n
|
|
1
|
+
{"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (min === 0) {\n range = { from, to: date };\n }\n else if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","undefined","Error","diff","differenceInCalendarDays"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateMatchModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType } from \"./typeguards.js\";\n/**\n * Checks if a given date matches at least one of the specified {@link Matcher}.\n *\n * @param date - The date to check.\n * @param matchers - The matchers to check against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date matches any of the matchers, otherwise `false`.\n * @group Utilities\n */\nexport function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {\n const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;\n const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;\n return matchersArr.some((matcher) => {\n if (typeof matcher === \"boolean\") {\n return matcher;\n }\n if (dateLib.isDate(matcher)) {\n return isSameDay(date, matcher);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.includes(date);\n }\n if (isDateRange(matcher)) {\n return rangeIncludesDate(matcher, date, false, dateLib);\n }\n if (isDayOfWeekType(matcher)) {\n if (!Array.isArray(matcher.dayOfWeek)) {\n return matcher.dayOfWeek === date.getDay();\n }\n return matcher.dayOfWeek.includes(date.getDay());\n }\n if (isDateInterval(matcher)) {\n const diffBefore = differenceInCalendarDays(matcher.before, date);\n const diffAfter = differenceInCalendarDays(matcher.after, date);\n const isDayBefore = diffBefore > 0;\n const isDayAfter = diffAfter < 0;\n const isClosedInterval = isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return isDayAfter && isDayBefore;\n }\n else {\n return isDayBefore || isDayAfter;\n }\n }\n if (isDateAfterType(matcher)) {\n return differenceInCalendarDays(date, matcher.after) > 0;\n }\n if (isDateBeforeType(matcher)) {\n return differenceInCalendarDays(matcher.before, date) > 0;\n }\n if (typeof matcher === \"function\") {\n return matcher(date);\n }\n return false;\n });\n}\n/**\n * @private\n * @deprecated Use {@link dateMatchModifiers} instead.\n */\nexport const isMatch = dateMatchModifiers;\n
|
|
1
|
+
{"version":3,"file":"dateMatchModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a given date matches at least one of the specified {@link Matcher}.\n *\n * @param date - The date to check.\n * @param matchers - The matchers to check against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date matches any of the matchers, otherwise `false`.\n * @group Utilities\n */\nexport function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {\n const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;\n const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;\n return matchersArr.some((matcher) => {\n if (typeof matcher === \"boolean\") {\n return matcher;\n }\n if (dateLib.isDate(matcher)) {\n return isSameDay(date, matcher);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.includes(date);\n }\n if (isDateRange(matcher)) {\n return rangeIncludesDate(matcher, date, false, dateLib);\n }\n if (isDayOfWeekType(matcher)) {\n if (!Array.isArray(matcher.dayOfWeek)) {\n return matcher.dayOfWeek === date.getDay();\n }\n return matcher.dayOfWeek.includes(date.getDay());\n }\n if (isDateInterval(matcher)) {\n const diffBefore = differenceInCalendarDays(matcher.before, date);\n const diffAfter = differenceInCalendarDays(matcher.after, date);\n const isDayBefore = diffBefore > 0;\n const isDayAfter = diffAfter < 0;\n const isClosedInterval = isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return isDayAfter && isDayBefore;\n }\n else {\n return isDayBefore || isDayAfter;\n }\n }\n if (isDateAfterType(matcher)) {\n return differenceInCalendarDays(date, matcher.after) > 0;\n }\n if (isDateBeforeType(matcher)) {\n return differenceInCalendarDays(matcher.before, date) > 0;\n }\n if (typeof matcher === \"function\") {\n return matcher(date);\n }\n return false;\n });\n}\n/**\n * @private\n * @deprecated Use {@link dateMatchModifiers} instead.\n */\nexport const isMatch = dateMatchModifiers;\n"],"names":["dateMatchModifiers","date","matchers","dateLib","defaultDateLib","matchersArr","Array","isArray","isSameDay","differenceInCalendarDays","isAfter","some","matcher","isDate","isDatesArray","includes","isDateRange","rangeIncludesDate","isDayOfWeekType","dayOfWeek","getDay","isDateInterval","diffBefore","before","diffAfter","after","isDayBefore","isDayAfter","isClosedInterval","isDateAfterType","isDateBeforeType"],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,kBAAkBA,CAACC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,GAAGC,cAAc,EAAE;AACzE,EAAA,MAAMC,WAAW,GAAG,CAACC,KAAK,CAACC,OAAO,CAACL,QAAQ,CAAC,GAAG,CAACA,QAAQ,CAAC,GAAGA,QAAQ;EACpE,MAAM;IAAEM,SAAS;IAAEC,wBAAwB;AAAEC,IAAAA;AAAQ,GAAC,GAAGP,OAAO;AAChE,EAAA,OAAOE,WAAW,CAACM,IAAI,CAAEC,OAAO,IAAK;AACjC,IAAA,IAAI,OAAOA,OAAO,KAAK,SAAS,EAAE;AAC9B,MAAA,OAAOA,OAAO;AAClB,IAAA;AACA,IAAA,IAAIT,OAAO,CAACU,MAAM,CAACD,OAAO,CAAC,EAAE;AACzB,MAAA,OAAOJ,SAAS,CAACP,IAAI,EAAEW,OAAO,CAAC;AACnC,IAAA;AACA,IAAA,IAAIE,YAAY,CAACF,OAAO,EAAET,OAAO,CAAC,EAAE;AAChC,MAAA,OAAOS,OAAO,CAACG,QAAQ,CAACd,IAAI,CAAC;AACjC,IAAA;AACA,IAAA,IAAIe,WAAW,CAACJ,OAAO,CAAC,EAAE;MACtB,OAAOK,iBAAiB,CAACL,OAAO,EAAEX,IAAI,EAAE,KAAK,EAAEE,OAAO,CAAC;AAC3D,IAAA;AACA,IAAA,IAAIe,eAAe,CAACN,OAAO,CAAC,EAAE;MAC1B,IAAI,CAACN,KAAK,CAACC,OAAO,CAACK,OAAO,CAACO,SAAS,CAAC,EAAE;QACnC,OAAOP,OAAO,CAACO,SAAS,KAAKlB,IAAI,CAACmB,MAAM,EAAE;AAC9C,MAAA;MACA,OAAOR,OAAO,CAACO,SAAS,CAACJ,QAAQ,CAACd,IAAI,CAACmB,MAAM,EAAE,CAAC;AACpD,IAAA;AACA,IAAA,IAAIC,cAAc,CAACT,OAAO,CAAC,EAAE;MACzB,MAAMU,UAAU,GAAGb,wBAAwB,CAACG,OAAO,CAACW,MAAM,EAAEtB,IAAI,CAAC;MACjE,MAAMuB,SAAS,GAAGf,wBAAwB,CAACG,OAAO,CAACa,KAAK,EAAExB,IAAI,CAAC;AAC/D,MAAA,MAAMyB,WAAW,GAAGJ,UAAU,GAAG,CAAC;AAClC,MAAA,MAAMK,UAAU,GAAGH,SAAS,GAAG,CAAC;MAChC,MAAMI,gBAAgB,GAAGlB,OAAO,CAACE,OAAO,CAACW,MAAM,EAAEX,OAAO,CAACa,KAAK,CAAC;AAC/D,MAAA,IAAIG,gBAAgB,EAAE;QAClB,OAAOD,UAAU,IAAID,WAAW;AACpC,MAAA,CAAC,MACI;QACD,OAAOA,WAAW,IAAIC,UAAU;AACpC,MAAA;AACJ,IAAA;AACA,IAAA,IAAIE,eAAe,CAACjB,OAAO,CAAC,EAAE;MAC1B,OAAOH,wBAAwB,CAACR,IAAI,EAAEW,OAAO,CAACa,KAAK,CAAC,GAAG,CAAC;AAC5D,IAAA;AACA,IAAA,IAAIK,gBAAgB,CAAClB,OAAO,CAAC,EAAE;MAC3B,OAAOH,wBAAwB,CAACG,OAAO,CAACW,MAAM,EAAEtB,IAAI,CAAC,GAAG,CAAC;AAC7D,IAAA;AACA,IAAA,IAAI,OAAOW,OAAO,KAAK,UAAU,EAAE;MAC/B,OAAOA,OAAO,CAACX,IAAI,CAAC;AACxB,IAAA;AACA,IAAA,OAAO,KAAK;AAChB,EAAA,CAAC,CAAC;AACN;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeContainsDayOfWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n
|
|
1
|
+
{"version":3,"file":"rangeContainsDayOfWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","Array","isArray","date","from","totalDays","differenceInCalendarDays","to","totalDaysLimit","Math","min","i","includes","getDay","addDays"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,sBAAsBA,CAACC,KAAK,EAAEC,SAAS,EAAEC,OAAO,GAAGC,cAAc,EAAE;AAC/E,EAAA,MAAMC,YAAY,GAAG,CAACC,KAAK,CAACC,OAAO,CAACL,SAAS,CAAC,GAAG,CAACA,SAAS,CAAC,GAAGA,SAAS;AACxE,EAAA,IAAIM,IAAI,GAAGP,KAAK,CAACQ,IAAI;AACrB,EAAA,MAAMC,SAAS,GAAGP,OAAO,CAACQ,wBAAwB,CAACV,KAAK,CAACW,EAAE,EAAEX,KAAK,CAACQ,IAAI,CAAC;AACxE;EACA,MAAMI,cAAc,GAAGC,IAAI,CAACC,GAAG,CAACL,SAAS,EAAE,CAAC,CAAC;EAC7C,KAAK,IAAIM,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIH,cAAc,EAAEG,CAAC,EAAE,EAAE;IACtC,IAAIX,YAAY,CAACY,QAAQ,CAACT,IAAI,CAACU,MAAM,EAAE,CAAC,EAAE;AACtC,MAAA,OAAO,IAAI;AACf,IAAA;IACAV,IAAI,GAAGL,OAAO,CAACgB,OAAO,CAACX,IAAI,EAAE,CAAC,CAAC;AACnC,EAAA;AACA,EAAA,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeContainsModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1)
|
|
1
|
+
{"version":3,"file":"rangeContainsModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1),\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","Array","isArray","nonFunctionMatchers","filter","matcher","nonFunctionMatchersResult","some","isDate","rangeIncludesDate","isDatesArray","date","isDateRange","from","to","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","dayOfWeek","isDateInterval","isClosedInterval","isAfter","before","after","addDays","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","length","totalDays","differenceInCalendarDays","i"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeIncludesDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n
|
|
1
|
+
{"version":3,"file":"rangeIncludesDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n"],"names":["rangeIncludesDate","range","date","excludeEnds","dateLib","defaultDateLib","from","to","differenceInCalendarDays","isSameDay","isRangeInverted","isInRange"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,iBAAiBA,CAACC,KAAK,EAAEC,IAAI,EAAEC,WAAW,GAAG,KAAK,EAAEC,OAAO,GAAGC,cAAc,EAAE;EAC1F,IAAI;IAAEC,IAAI;AAAEC,IAAAA;AAAG,GAAC,GAAGN,KAAK;EACxB,MAAM;IAAEO,wBAAwB;AAAEC,IAAAA;AAAU,GAAC,GAAGL,OAAO;EACvD,IAAIE,IAAI,IAAIC,EAAE,EAAE;IACZ,MAAMG,eAAe,GAAGF,wBAAwB,CAACD,EAAE,EAAED,IAAI,CAAC,GAAG,CAAC;AAC9D,IAAA,IAAII,eAAe,EAAE;MACjB,CAACJ,IAAI,EAAEC,EAAE,CAAC,GAAG,CAACA,EAAE,EAAED,IAAI,CAAC;AAC3B,IAAA;AACA,IAAA,MAAMK,SAAS,GAAGH,wBAAwB,CAACN,IAAI,EAAEI,IAAI,CAAC,KAAKH,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC,IAC3EK,wBAAwB,CAACD,EAAE,EAAEL,IAAI,CAAC,KAAKC,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;AAC/D,IAAA,OAAOQ,SAAS;AACpB,EAAA;AACA,EAAA,IAAI,CAACR,WAAW,IAAII,EAAE,EAAE;AACpB,IAAA,OAAOE,SAAS,CAACF,EAAE,EAAEL,IAAI,CAAC;AAC9B,EAAA;AACA,EAAA,IAAI,CAACC,WAAW,IAAIG,IAAI,EAAE;AACtB,IAAA,OAAOG,SAAS,CAACH,IAAI,EAAEJ,IAAI,CAAC;AAChC,EAAA;AACA,EAAA,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeOverlaps.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n
|
|
1
|
+
{"version":3,"file":"rangeOverlaps.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate","from","to"],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,aAAaA,CAACC,SAAS,EAAEC,UAAU,EAAEC,OAAO,GAAGC,cAAc,EAAE;EAC3E,OAAQC,iBAAiB,CAACJ,SAAS,EAAEC,UAAU,CAACI,IAAI,EAAE,KAAK,EAAEH,OAAO,CAAC,IACjEE,iBAAiB,CAACJ,SAAS,EAAEC,UAAU,CAACK,EAAE,EAAE,KAAK,EAAEJ,OAAO,CAAC,IAC3DE,iBAAiB,CAACH,UAAU,EAAED,SAAS,CAACK,IAAI,EAAE,KAAK,EAAEH,OAAO,CAAC,IAC7DE,iBAAiB,CAACH,UAAU,EAAED,SAAS,CAACM,EAAE,EAAE,KAAK,EAAEJ,OAAO,CAAC;AACnE;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeguards.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n
|
|
1
|
+
{"version":3,"file":"typeguards.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n"],"names":["isDateInterval","matcher","Boolean","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib","Array","isArray","every","isDate"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,cAAcA,CAACC,OAAO,EAAE;AACpC,EAAA,OAAOC,OAAO,CAACD,OAAO,IAClB,OAAOA,OAAO,KAAK,QAAQ,IAC3B,QAAQ,IAAIA,OAAO,IACnB,OAAO,IAAIA,OAAO,CAAC;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,WAAWA,CAACC,KAAK,EAAE;AAC/B,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAIA,KAAK,CAAC;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,eAAeA,CAACD,KAAK,EAAE;AACnC,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAIA,KAAK,CAAC;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,gBAAgBA,CAACF,KAAK,EAAE;AACpC,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAIA,KAAK,CAAC;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,eAAeA,CAACH,KAAK,EAAE;AACnC,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,WAAW,IAAIA,KAAK,CAAC;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,YAAYA,CAACJ,KAAK,EAAEK,OAAO,EAAE;AACzC,EAAA,OAAOC,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,IAAIA,KAAK,CAACQ,KAAK,CAACH,OAAO,CAACI,MAAM,CAAC;AAC9D;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { normalizeInterval } from './_lib/normalizeInterval.js';
|
|
2
|
+
import { constructFrom } from './constructFrom.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The {@link eachYearOfInterval} function options.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The {@link eachYearOfInterval} function result type. It resolves the proper data type.
|
|
10
|
+
* It uses the first argument date object type, starting from the date argument,
|
|
11
|
+
* then the start interval date, and finally the end interval date. If
|
|
12
|
+
* a context function is passed, it uses the context function return type.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @name eachYearOfInterval
|
|
17
|
+
* @category Interval Helpers
|
|
18
|
+
* @summary Return the array of yearly timestamps within the specified time interval.
|
|
19
|
+
*
|
|
20
|
+
* @description
|
|
21
|
+
* Return the array of yearly timestamps within the specified time interval.
|
|
22
|
+
*
|
|
23
|
+
* @typeParam IntervalType - Interval type.
|
|
24
|
+
* @typeParam Options - Options type.
|
|
25
|
+
*
|
|
26
|
+
* @param interval - The interval.
|
|
27
|
+
* @param options - An object with options.
|
|
28
|
+
*
|
|
29
|
+
* @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* // Each year between 6 February 2014 and 10 August 2017:
|
|
33
|
+
* const result = eachYearOfInterval({
|
|
34
|
+
* start: new Date(2014, 1, 6),
|
|
35
|
+
* end: new Date(2017, 7, 10)
|
|
36
|
+
* })
|
|
37
|
+
* //=> [
|
|
38
|
+
* // Wed Jan 01 2014 00:00:00,
|
|
39
|
+
* // Thu Jan 01 2015 00:00:00,
|
|
40
|
+
* // Fri Jan 01 2016 00:00:00,
|
|
41
|
+
* // Sun Jan 01 2017 00:00:00
|
|
42
|
+
* // ]
|
|
43
|
+
*/
|
|
44
|
+
function eachYearOfInterval(interval, options) {
|
|
45
|
+
const {
|
|
46
|
+
start,
|
|
47
|
+
end
|
|
48
|
+
} = normalizeInterval(options?.in, interval);
|
|
49
|
+
let reversed = +start > +end;
|
|
50
|
+
const endTime = reversed ? +start : +end;
|
|
51
|
+
const date = reversed ? end : start;
|
|
52
|
+
date.setHours(0, 0, 0, 0);
|
|
53
|
+
date.setMonth(0, 1);
|
|
54
|
+
let step = 1;
|
|
55
|
+
const dates = [];
|
|
56
|
+
while (+date <= endTime) {
|
|
57
|
+
dates.push(constructFrom(start, date));
|
|
58
|
+
date.setFullYear(date.getFullYear() + step);
|
|
59
|
+
}
|
|
60
|
+
return reversed ? dates.reverse() : dates;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { eachYearOfInterval as default, eachYearOfInterval };
|
|
64
|
+
//# sourceMappingURL=eachYearOfInterval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eachYearOfInterval.js","sources":["../../../../../node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js"],"sourcesContent":["import { normalizeInterval } from \"./_lib/normalizeInterval.js\";\nimport { constructFrom } from \"./constructFrom.js\";\n\n/**\n * The {@link eachYearOfInterval} function options.\n */\n\n/**\n * The {@link eachYearOfInterval} function result type. It resolves the proper data type.\n * It uses the first argument date object type, starting from the date argument,\n * then the start interval date, and finally the end interval date. If\n * a context function is passed, it uses the context function return type.\n */\n\n/**\n * @name eachYearOfInterval\n * @category Interval Helpers\n * @summary Return the array of yearly timestamps within the specified time interval.\n *\n * @description\n * Return the array of yearly timestamps within the specified time interval.\n *\n * @typeParam IntervalType - Interval type.\n * @typeParam Options - Options type.\n *\n * @param interval - The interval.\n * @param options - An object with options.\n *\n * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end\n *\n * @example\n * // Each year between 6 February 2014 and 10 August 2017:\n * const result = eachYearOfInterval({\n * start: new Date(2014, 1, 6),\n * end: new Date(2017, 7, 10)\n * })\n * //=> [\n * // Wed Jan 01 2014 00:00:00,\n * // Thu Jan 01 2015 00:00:00,\n * // Fri Jan 01 2016 00:00:00,\n * // Sun Jan 01 2017 00:00:00\n * // ]\n */\nexport function eachYearOfInterval(interval, options) {\n const { start, end } = normalizeInterval(options?.in, interval);\n\n let reversed = +start > +end;\n const endTime = reversed ? +start : +end;\n const date = reversed ? end : start;\n date.setHours(0, 0, 0, 0);\n date.setMonth(0, 1);\n\n let step = options?.step ?? 1;\n if (!step) return [];\n if (step < 0) {\n step = -step;\n reversed = !reversed;\n }\n\n const dates = [];\n\n while (+date <= endTime) {\n dates.push(constructFrom(start, date));\n date.setFullYear(date.getFullYear() + step);\n }\n\n return reversed ? dates.reverse() : dates;\n}\n\n// Fallback for modularized imports:\nexport default eachYearOfInterval;\n"],"names":["eachYearOfInterval","interval","options","start","end","normalizeInterval","in","reversed","endTime","date","setHours","setMonth","step","dates","push","constructFrom","setFullYear","getFullYear","reverse"],"mappings":";;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,kBAAkBA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EACpD,MAAM;IAAEC,KAAK;AAAEC,IAAAA;GAAK,GAAGC,iBAAiB,CAACH,OAAO,EAAEI,EAAE,EAAEL,QAAQ,CAAC;AAE/D,EAAA,IAAIM,QAAQ,GAAG,CAACJ,KAAK,GAAG,CAACC,GAAG;EAC5B,MAAMI,OAAO,GAAGD,QAAQ,GAAG,CAACJ,KAAK,GAAG,CAACC,GAAG;AACxC,EAAA,MAAMK,IAAI,GAAGF,QAAQ,GAAGH,GAAG,GAAGD,KAAK;EACnCM,IAAI,CAACC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACzBD,EAAAA,IAAI,CAACE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;AAEnB,EAAA,IAAIC,IAAI,GAAoB,CAAC;EAO7B,MAAMC,KAAK,GAAG,EAAE;AAEhB,EAAA,OAAO,CAACJ,IAAI,IAAID,OAAO,EAAE;IACvBK,KAAK,CAACC,IAAI,CAACC,aAAa,CAACZ,KAAK,EAAEM,IAAI,CAAC,CAAC;IACtCA,IAAI,CAACO,WAAW,CAACP,IAAI,CAACQ,WAAW,EAAE,GAAGL,IAAI,CAAC;AAC7C,EAAA;EAEA,OAAOL,QAAQ,GAAGM,KAAK,CAACK,OAAO,EAAE,GAAGL,KAAK;AAC3C;;;;","x_google_ignoreList":[0]}
|
|
@@ -40,7 +40,7 @@ function cloneObject(data) {
|
|
|
40
40
|
}
|
|
41
41
|
else if (!(isWeb && (data instanceof Blob || isFileListInstance)) &&
|
|
42
42
|
(isArray || isObject(data))) {
|
|
43
|
-
copy = isArray ? [] :
|
|
43
|
+
copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));
|
|
44
44
|
if (!isArray && !isPlainObject(data)) {
|
|
45
45
|
copy = data;
|
|
46
46
|
}
|
|
@@ -423,6 +423,7 @@ function useController(props) {
|
|
|
423
423
|
exact: true,
|
|
424
424
|
});
|
|
425
425
|
const _props = React__default.useRef(props);
|
|
426
|
+
const _previousNameRef = React__default.useRef(undefined);
|
|
426
427
|
const _registerProps = React__default.useRef(control.register(name, {
|
|
427
428
|
...props.rules,
|
|
428
429
|
value,
|
|
@@ -488,6 +489,10 @@ function useController(props) {
|
|
|
488
489
|
}), [name, disabled, formState.disabled, onChange, onBlur, ref, value]);
|
|
489
490
|
React__default.useEffect(() => {
|
|
490
491
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
492
|
+
const previousName = _previousNameRef.current;
|
|
493
|
+
if (previousName && previousName !== name && !isArrayField) {
|
|
494
|
+
control.unregister(previousName);
|
|
495
|
+
}
|
|
491
496
|
control.register(name, {
|
|
492
497
|
..._props.current.rules,
|
|
493
498
|
...(isBoolean(_props.current.disabled)
|
|
@@ -502,13 +507,14 @@ function useController(props) {
|
|
|
502
507
|
};
|
|
503
508
|
updateMounted(name, true);
|
|
504
509
|
if (_shouldUnregisterField) {
|
|
505
|
-
const value = cloneObject(get(control._options.defaultValues, name));
|
|
510
|
+
const value = cloneObject(get(control._options.defaultValues, name, _props.current.defaultValue));
|
|
506
511
|
set(control._defaultValues, name, value);
|
|
507
512
|
if (isUndefined(get(control._formValues, name))) {
|
|
508
513
|
set(control._formValues, name, value);
|
|
509
514
|
}
|
|
510
515
|
}
|
|
511
516
|
!isArrayField && control.register(name);
|
|
517
|
+
_previousNameRef.current = name;
|
|
512
518
|
return () => {
|
|
513
519
|
(isArrayField
|
|
514
520
|
? _shouldUnregisterField && !control._state.action
|
|
@@ -731,6 +737,26 @@ var createSubject = () => {
|
|
|
731
737
|
};
|
|
732
738
|
};
|
|
733
739
|
|
|
740
|
+
function extractFormValues(fieldsState, formValues) {
|
|
741
|
+
const values = {};
|
|
742
|
+
for (const key in fieldsState) {
|
|
743
|
+
if (fieldsState.hasOwnProperty(key)) {
|
|
744
|
+
const fieldState = fieldsState[key];
|
|
745
|
+
const fieldValue = formValues[key];
|
|
746
|
+
if (fieldState && isObject(fieldState) && fieldValue) {
|
|
747
|
+
const nestedFieldsState = extractFormValues(fieldState, fieldValue);
|
|
748
|
+
if (isObject(nestedFieldsState)) {
|
|
749
|
+
values[key] = nestedFieldsState;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
else if (fieldsState[key]) {
|
|
753
|
+
values[key] = fieldValue;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
return values;
|
|
758
|
+
}
|
|
759
|
+
|
|
734
760
|
var isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;
|
|
735
761
|
|
|
736
762
|
var isFileInput = (element) => element.type === 'file';
|
|
@@ -799,46 +825,40 @@ var objectHasFunction = (data) => {
|
|
|
799
825
|
return false;
|
|
800
826
|
};
|
|
801
827
|
|
|
828
|
+
function isTraversable(value) {
|
|
829
|
+
return Array.isArray(value) || (isObject(value) && !objectHasFunction(value));
|
|
830
|
+
}
|
|
802
831
|
function markFieldsDirty(data, fields = {}) {
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
}
|
|
811
|
-
else if (!isNullOrUndefined(data[key])) {
|
|
812
|
-
fields[key] = true;
|
|
813
|
-
}
|
|
832
|
+
for (const key in data) {
|
|
833
|
+
if (isTraversable(data[key])) {
|
|
834
|
+
fields[key] = Array.isArray(data[key]) ? [] : {};
|
|
835
|
+
markFieldsDirty(data[key], fields[key]);
|
|
836
|
+
}
|
|
837
|
+
else if (!isNullOrUndefined(data[key])) {
|
|
838
|
+
fields[key] = true;
|
|
814
839
|
}
|
|
815
840
|
}
|
|
816
841
|
return fields;
|
|
817
842
|
}
|
|
818
|
-
function
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
dirtyFieldsFromValues[key] = Array.isArray(data[key])
|
|
827
|
-
? markFieldsDirty(data[key], [])
|
|
828
|
-
: { ...markFieldsDirty(data[key]) };
|
|
829
|
-
}
|
|
830
|
-
else {
|
|
831
|
-
getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);
|
|
832
|
-
}
|
|
843
|
+
function getDirtyFields(data, formValues, dirtyFieldsFromValues) {
|
|
844
|
+
if (!dirtyFieldsFromValues) {
|
|
845
|
+
dirtyFieldsFromValues = markFieldsDirty(formValues);
|
|
846
|
+
}
|
|
847
|
+
for (const key in data) {
|
|
848
|
+
if (isTraversable(data[key])) {
|
|
849
|
+
if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key])) {
|
|
850
|
+
dirtyFieldsFromValues[key] = markFieldsDirty(data[key], Array.isArray(data[key]) ? [] : {});
|
|
833
851
|
}
|
|
834
852
|
else {
|
|
835
|
-
|
|
853
|
+
getDirtyFields(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);
|
|
836
854
|
}
|
|
837
855
|
}
|
|
856
|
+
else {
|
|
857
|
+
dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);
|
|
858
|
+
}
|
|
838
859
|
}
|
|
839
860
|
return dirtyFieldsFromValues;
|
|
840
861
|
}
|
|
841
|
-
var getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));
|
|
842
862
|
|
|
843
863
|
const defaultResult = {
|
|
844
864
|
value: false,
|
|
@@ -1072,15 +1092,13 @@ var updateFieldArrayRootError = (errors, error, name) => {
|
|
|
1072
1092
|
return errors;
|
|
1073
1093
|
};
|
|
1074
1094
|
|
|
1075
|
-
var isMessage = (value) => isString(value);
|
|
1076
|
-
|
|
1077
1095
|
function getValidateError(result, ref, type = 'validate') {
|
|
1078
|
-
if (
|
|
1079
|
-
(Array.isArray(result) && result.every(
|
|
1096
|
+
if (isString(result) ||
|
|
1097
|
+
(Array.isArray(result) && result.every(isString)) ||
|
|
1080
1098
|
(isBoolean(result) && !result)) {
|
|
1081
1099
|
return {
|
|
1082
1100
|
type,
|
|
1083
|
-
message:
|
|
1101
|
+
message: isString(result) ? result : '',
|
|
1084
1102
|
ref,
|
|
1085
1103
|
};
|
|
1086
1104
|
}
|
|
@@ -1133,7 +1151,7 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
|
|
|
1133
1151
|
(isBoolean(inputValue) && !inputValue) ||
|
|
1134
1152
|
(isCheckBox && !getCheckboxValue(refs).isValid) ||
|
|
1135
1153
|
(isRadio && !getRadioValue(refs).isValid))) {
|
|
1136
|
-
const { value, message } =
|
|
1154
|
+
const { value, message } = isString(required)
|
|
1137
1155
|
? { value: !!required, message: required }
|
|
1138
1156
|
: getValueAndMessage(required);
|
|
1139
1157
|
if (value) {
|
|
@@ -1539,11 +1557,11 @@ function createFormControl(props = {}) {
|
|
|
1539
1557
|
const isFieldArrayRoot = _names.array.has(_f.name);
|
|
1540
1558
|
const isPromiseFunction = field._f && hasPromiseValidation(field._f);
|
|
1541
1559
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
1542
|
-
_updateIsValidating([name], true);
|
|
1560
|
+
_updateIsValidating([_f.name], true);
|
|
1543
1561
|
}
|
|
1544
1562
|
const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);
|
|
1545
1563
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
1546
|
-
_updateIsValidating([name]);
|
|
1564
|
+
_updateIsValidating([_f.name]);
|
|
1547
1565
|
}
|
|
1548
1566
|
if (fieldError[_f.name]) {
|
|
1549
1567
|
context.valid = false;
|
|
@@ -1717,8 +1735,10 @@ function createFormControl(props = {}) {
|
|
|
1717
1735
|
const watched = isWatched(name, _names, isBlurEvent);
|
|
1718
1736
|
set(_formValues, name, fieldValue);
|
|
1719
1737
|
if (isBlurEvent) {
|
|
1720
|
-
|
|
1721
|
-
|
|
1738
|
+
if (!target || !target.readOnly) {
|
|
1739
|
+
field._f.onBlur && field._f.onBlur(event);
|
|
1740
|
+
delayErrorCallback && delayErrorCallback(0);
|
|
1741
|
+
}
|
|
1722
1742
|
}
|
|
1723
1743
|
else if (field._f.onChange) {
|
|
1724
1744
|
field._f.onChange(event);
|
|
@@ -1774,6 +1794,7 @@ function createFormControl(props = {}) {
|
|
|
1774
1794
|
}
|
|
1775
1795
|
if (isFieldValueUpdated) {
|
|
1776
1796
|
field._f.deps &&
|
|
1797
|
+
(!Array.isArray(field._f.deps) || field._f.deps.length > 0) &&
|
|
1777
1798
|
trigger(field._f.deps);
|
|
1778
1799
|
shouldRenderByError(name, isValid, error, fieldState);
|
|
1779
1800
|
}
|
|
@@ -1821,10 +1842,13 @@ function createFormControl(props = {}) {
|
|
|
1821
1842
|
iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);
|
|
1822
1843
|
return validationResult;
|
|
1823
1844
|
};
|
|
1824
|
-
const getValues = (fieldNames) => {
|
|
1825
|
-
|
|
1845
|
+
const getValues = (fieldNames, config) => {
|
|
1846
|
+
let values = {
|
|
1826
1847
|
...(_state.mount ? _formValues : _defaultValues),
|
|
1827
1848
|
};
|
|
1849
|
+
if (config) {
|
|
1850
|
+
values = extractFormValues(config.dirtyFields ? _formState.dirtyFields : _formState.touchedFields, values);
|
|
1851
|
+
}
|
|
1828
1852
|
return isUndefined(fieldNames)
|
|
1829
1853
|
? values
|
|
1830
1854
|
: isString(fieldNames)
|
|
@@ -2213,6 +2237,7 @@ function createFormControl(props = {}) {
|
|
|
2213
2237
|
? _formState.isSubmitSuccessful
|
|
2214
2238
|
: false,
|
|
2215
2239
|
isSubmitting: false,
|
|
2240
|
+
defaultValues: _defaultValues,
|
|
2216
2241
|
});
|
|
2217
2242
|
};
|
|
2218
2243
|
const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)
|
|
@@ -2435,9 +2460,7 @@ function useFieldArray(props) {
|
|
|
2435
2460
|
const { control = methods.control, name, keyName = 'id', shouldUnregister, rules, } = props;
|
|
2436
2461
|
const [fields, setFields] = React__default.useState(control._getFieldArray(name));
|
|
2437
2462
|
const ids = React__default.useRef(control._getFieldArray(name).map(generateId));
|
|
2438
|
-
const _fieldIds = React__default.useRef(fields);
|
|
2439
2463
|
const _actioned = React__default.useRef(false);
|
|
2440
|
-
_fieldIds.current = fields;
|
|
2441
2464
|
control._names.array.add(name);
|
|
2442
2465
|
React__default.useMemo(() => rules &&
|
|
2443
2466
|
control.register(name, rules), [control, rules, name]);
|