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
|
@@ -6,84 +6,102 @@ import { FIRST_GROUP_PATTERN } from './helpers/formatNationalNumberUsingFormat.j
|
|
|
6
6
|
import { VALID_PUNCTUATION } from './constants.js';
|
|
7
7
|
import applyInternationalSeparatorStyle from './helpers/applyInternationalSeparatorStyle.js';
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
function _typeof(o) {
|
|
10
|
+
"@babel/helpers - typeof";
|
|
11
|
+
|
|
12
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
13
|
+
return typeof o;
|
|
14
|
+
} : function (o) {
|
|
15
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
16
|
+
}, _typeof(o);
|
|
17
|
+
}
|
|
18
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
19
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
20
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
21
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
22
|
+
t && (r = t);
|
|
23
|
+
var o = 0;
|
|
15
24
|
return function () {
|
|
16
|
-
|
|
25
|
+
return o >= r.length ? {
|
|
17
26
|
done: true
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
27
|
+
} : {
|
|
20
28
|
done: false,
|
|
21
|
-
value: o
|
|
29
|
+
value: r[o++]
|
|
22
30
|
};
|
|
23
31
|
};
|
|
24
32
|
}
|
|
25
33
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
26
34
|
}
|
|
27
|
-
function _unsupportedIterableToArray(
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
33
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
34
|
-
}
|
|
35
|
-
function _arrayLikeToArray(arr, len) {
|
|
36
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
37
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
38
|
-
arr2[i] = arr[i];
|
|
35
|
+
function _unsupportedIterableToArray(r, a) {
|
|
36
|
+
if (r) {
|
|
37
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
38
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
39
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
39
40
|
}
|
|
40
|
-
return arr2;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
function _arrayLikeToArray(r, a) {
|
|
43
|
+
(null == a || a > r.length) && (a = r.length);
|
|
44
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
45
|
+
return n;
|
|
46
|
+
}
|
|
47
|
+
function _classCallCheck(a, n) {
|
|
48
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
46
49
|
}
|
|
47
|
-
function _defineProperties(
|
|
48
|
-
for (var
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
descriptor.configurable = true;
|
|
52
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
53
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
50
|
+
function _defineProperties(e, r) {
|
|
51
|
+
for (var t = 0; t < r.length; t++) {
|
|
52
|
+
var o = r[t];
|
|
53
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function _createClass(
|
|
57
|
-
|
|
58
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
56
|
+
function _createClass(e, r, t) {
|
|
57
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
59
58
|
writable: false
|
|
60
|
-
});
|
|
61
|
-
|
|
59
|
+
}), e;
|
|
60
|
+
}
|
|
61
|
+
function _toPropertyKey(t) {
|
|
62
|
+
var i = _toPrimitive(t, "string");
|
|
63
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
64
|
+
}
|
|
65
|
+
function _toPrimitive(t, r) {
|
|
66
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
67
|
+
var e = t[Symbol.toPrimitive];
|
|
68
|
+
if (void 0 !== e) {
|
|
69
|
+
var i = e.call(t, r);
|
|
70
|
+
if ("object" != _typeof(i)) return i;
|
|
71
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
72
|
+
}
|
|
73
|
+
return (String )(t);
|
|
62
74
|
}
|
|
63
|
-
// Could be any digit, I guess.
|
|
64
|
-
|
|
65
|
-
var DUMMY_DIGIT = '9'; // I don't know why is it exactly `15`
|
|
66
75
|
|
|
67
|
-
|
|
76
|
+
// Used in phone number format template creation.
|
|
77
|
+
// Could be any digit, I guess.
|
|
78
|
+
var DUMMY_DIGIT = '9';
|
|
79
|
+
// I don't know why is it exactly `15`
|
|
80
|
+
var LONGEST_NATIONAL_PHONE_NUMBER_LENGTH = 15;
|
|
81
|
+
// Create a phone number consisting only of the digit 9 that matches the
|
|
68
82
|
// `number_pattern` by applying the pattern to the "longest phone number" string.
|
|
83
|
+
var LONGEST_DUMMY_PHONE_NUMBER = repeat(DUMMY_DIGIT, LONGEST_NATIONAL_PHONE_NUMBER_LENGTH);
|
|
69
84
|
|
|
70
|
-
|
|
85
|
+
// A set of characters that, if found in a national prefix formatting rules, are an indicator to
|
|
71
86
|
// us that we should separate the national prefix from the number when formatting.
|
|
87
|
+
var NATIONAL_PREFIX_SEPARATORS_PATTERN = /[- ]/;
|
|
72
88
|
|
|
73
|
-
|
|
89
|
+
// A pattern that is used to match character classes in regular expressions.
|
|
74
90
|
// An example of a character class is "[1-4]".
|
|
75
|
-
|
|
76
91
|
var CREATE_CHARACTER_CLASS_PATTERN = function () {
|
|
77
92
|
return /\[([^\[\]])*\]/g;
|
|
78
|
-
};
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// Any digit in a regular expression that actually denotes a digit. For
|
|
79
96
|
// example, in the regular expression "80[0-2]\d{6,10}", the first 2 digits
|
|
80
97
|
// (8 and 0) are standalone digits, but the rest are not.
|
|
81
98
|
// Two look-aheads are needed because the number following \\d could be a
|
|
82
99
|
// two-digit number, since the phone number can be as long as 15 digits.
|
|
83
|
-
|
|
84
100
|
var CREATE_STANDALONE_DIGIT_PATTERN = function () {
|
|
85
101
|
return /\d(?=[^,}][^,}])/g;
|
|
86
|
-
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// A regular expression that is used to determine if a `format` is
|
|
87
105
|
// suitable to be used in the "as you type formatter".
|
|
88
106
|
// A `format` is suitable when the resulting formatted number has
|
|
89
107
|
// the same digits as the user has entered.
|
|
@@ -117,15 +135,15 @@ var CREATE_STANDALONE_DIGIT_PATTERN = function () {
|
|
|
117
135
|
// This regular expression is called `ELIGIBLE_FORMAT_PATTERN` in Google's
|
|
118
136
|
// `libphonenumber` code.
|
|
119
137
|
//
|
|
120
|
-
|
|
121
138
|
var NON_ALTERING_FORMAT_REG_EXP = new RegExp('[' + VALID_PUNCTUATION + ']*' +
|
|
122
139
|
// Google developers say:
|
|
123
140
|
// "We require that the first matching group is present in the
|
|
124
141
|
// output pattern to ensure no data is lost while formatting."
|
|
125
|
-
'\\$1' + '[' + VALID_PUNCTUATION + ']*' + '(\\$\\d[' + VALID_PUNCTUATION + ']*)*' + '$');
|
|
142
|
+
'\\$1' + '[' + VALID_PUNCTUATION + ']*' + '(\\$\\d[' + VALID_PUNCTUATION + ']*)*' + '$');
|
|
143
|
+
|
|
144
|
+
// This is the minimum length of the leading digits of a phone number
|
|
126
145
|
// to guarantee the first "leading digits pattern" for a phone number format
|
|
127
146
|
// to be preemptive.
|
|
128
|
-
|
|
129
147
|
var MIN_LEADING_DIGITS_LENGTH = 3;
|
|
130
148
|
var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
131
149
|
function AsYouTypeFormatter(_ref) {
|
|
@@ -135,7 +153,7 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
135
153
|
this.metadata = metadata;
|
|
136
154
|
this.resetFormat();
|
|
137
155
|
}
|
|
138
|
-
_createClass(AsYouTypeFormatter, [{
|
|
156
|
+
return _createClass(AsYouTypeFormatter, [{
|
|
139
157
|
key: "resetFormat",
|
|
140
158
|
value: function resetFormat() {
|
|
141
159
|
this.chosenFormat = undefined;
|
|
@@ -159,6 +177,7 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
159
177
|
this.matchingFormats = [];
|
|
160
178
|
}
|
|
161
179
|
}
|
|
180
|
+
|
|
162
181
|
/**
|
|
163
182
|
* Formats an updated phone number.
|
|
164
183
|
* @param {string} nextDigits — Additional phone number digits.
|
|
@@ -169,7 +188,6 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
169
188
|
key: "format",
|
|
170
189
|
value: function format(nextDigits, state) {
|
|
171
190
|
var _this = this;
|
|
172
|
-
|
|
173
191
|
// See if the phone number digits can be formatted as a complete phone number.
|
|
174
192
|
// If not, use the results from `formatNationalNumberWithNextDigits()`,
|
|
175
193
|
// which formats based on the chosen formatting pattern.
|
|
@@ -184,10 +202,10 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
184
202
|
// If so, we should use this instead of any other formatting template
|
|
185
203
|
// whose leadingDigitsPattern also matches the input."
|
|
186
204
|
//
|
|
187
|
-
if (canFormatCompleteNumber(state.nationalSignificantNumber, this.metadata)) {
|
|
205
|
+
if (canFormatCompleteNumber(state.nationalSignificantNumber, state.country, this.metadata)) {
|
|
188
206
|
for (var _iterator = _createForOfIteratorHelperLoose(this.matchingFormats), _step; !(_step = _iterator()).done;) {
|
|
189
|
-
var
|
|
190
|
-
var formattedCompleteNumber = formatCompleteNumber(state,
|
|
207
|
+
var _format = _step.value;
|
|
208
|
+
var formattedCompleteNumber = formatCompleteNumber(state, _format, {
|
|
191
209
|
metadata: this.metadata,
|
|
192
210
|
shouldTryNationalPrefixFormattingRule: function shouldTryNationalPrefixFormattingRule(format) {
|
|
193
211
|
return _this.shouldTryNationalPrefixFormattingRule(format, {
|
|
@@ -201,25 +219,28 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
201
219
|
});
|
|
202
220
|
if (formattedCompleteNumber) {
|
|
203
221
|
this.resetFormat();
|
|
204
|
-
this.chosenFormat =
|
|
222
|
+
this.chosenFormat = _format;
|
|
205
223
|
this.setNationalNumberTemplate(formattedCompleteNumber.replace(/\d/g, DIGIT_PLACEHOLDER), state);
|
|
206
|
-
this.populatedNationalNumberTemplate = formattedCompleteNumber;
|
|
224
|
+
this.populatedNationalNumberTemplate = formattedCompleteNumber;
|
|
225
|
+
// With a new formatting template, the matched position
|
|
207
226
|
// using the old template needs to be reset.
|
|
208
|
-
|
|
209
227
|
this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(DIGIT_PLACEHOLDER);
|
|
210
228
|
return formattedCompleteNumber;
|
|
211
229
|
}
|
|
212
230
|
}
|
|
213
|
-
}
|
|
231
|
+
}
|
|
232
|
+
// Format the digits as a partial (incomplete) phone number
|
|
214
233
|
// using the previously chosen formatting pattern (or a newly chosen one).
|
|
215
|
-
|
|
216
234
|
return this.formatNationalNumberWithNextDigits(nextDigits, state);
|
|
217
|
-
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Formats the next phone number digits.
|
|
218
238
|
}, {
|
|
219
239
|
key: "formatNationalNumberWithNextDigits",
|
|
220
240
|
value: function formatNationalNumberWithNextDigits(nextDigits, state) {
|
|
221
|
-
var previouslyChosenFormat = this.chosenFormat;
|
|
241
|
+
var previouslyChosenFormat = this.chosenFormat;
|
|
222
242
|
|
|
243
|
+
// Choose a format from the list of matching ones.
|
|
223
244
|
var newlyChosenFormat = this.chooseFormat(state);
|
|
224
245
|
if (newlyChosenFormat) {
|
|
225
246
|
if (newlyChosenFormat === previouslyChosenFormat) {
|
|
@@ -243,32 +264,35 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
243
264
|
var nationalSignificantNumber = _ref2.nationalSignificantNumber,
|
|
244
265
|
nationalPrefix = _ref2.nationalPrefix,
|
|
245
266
|
international = _ref2.international;
|
|
246
|
-
var leadingDigits = nationalSignificantNumber;
|
|
267
|
+
var leadingDigits = nationalSignificantNumber;
|
|
268
|
+
|
|
269
|
+
// "leading digits" pattern list starts with a
|
|
247
270
|
// "leading digits" pattern fitting a maximum of 3 leading digits.
|
|
248
271
|
// So, after a user inputs 3 digits of a national (significant) phone number
|
|
249
272
|
// this national (significant) number can already be formatted.
|
|
250
273
|
// The next "leading digits" pattern is for 4 leading digits max,
|
|
251
274
|
// and the "leading digits" pattern after it is for 5 leading digits max, etc.
|
|
275
|
+
|
|
252
276
|
// This implementation is different from Google's
|
|
253
277
|
// in that it searches for a fitting format
|
|
254
278
|
// even if the user has entered less than
|
|
255
279
|
// `MIN_LEADING_DIGITS_LENGTH` digits of a national number.
|
|
256
280
|
// Because some leading digit patterns already match for a single first digit.
|
|
257
|
-
|
|
258
281
|
var leadingDigitsPatternIndex = leadingDigits.length - MIN_LEADING_DIGITS_LENGTH;
|
|
259
282
|
if (leadingDigitsPatternIndex < 0) {
|
|
260
283
|
leadingDigitsPatternIndex = 0;
|
|
261
284
|
}
|
|
262
285
|
this.matchingFormats = this.matchingFormats.filter(function (format) {
|
|
263
286
|
return _this2.formatSuits(format, international, nationalPrefix) && _this2.formatMatches(format, leadingDigits, leadingDigitsPatternIndex);
|
|
264
|
-
});
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
// If there was a phone number format chosen
|
|
265
290
|
// and it no longer holds given the new leading digits then reset it.
|
|
266
291
|
// The test for this `if` condition is marked as:
|
|
267
292
|
// "Reset a chosen format when it no longer holds given the new leading digits".
|
|
268
293
|
// To construct a valid test case for this one can find a country
|
|
269
294
|
// in `PhoneNumberMetadata.xml` yielding one format for 3 `<leadingDigits>`
|
|
270
295
|
// and yielding another format for 4 `<leadingDigits>` (Australia in this case).
|
|
271
|
-
|
|
272
296
|
if (this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1) {
|
|
273
297
|
this.resetFormat();
|
|
274
298
|
}
|
|
@@ -290,12 +314,12 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
290
314
|
// !format.domesticCarrierCodeFormattingRule() &&
|
|
291
315
|
!format.nationalPrefixIsOptionalWhenFormattingInNationalFormat()) {
|
|
292
316
|
return false;
|
|
293
|
-
}
|
|
317
|
+
}
|
|
318
|
+
// If national prefix is mandatory for this phone number format
|
|
294
319
|
// and there're no guarantees that a national prefix is present in user input
|
|
295
320
|
// then discard this phone number format as not suitable.
|
|
296
321
|
// In Google's "AsYouType" formatter code, the equivalent would be this part:
|
|
297
322
|
// https://github.com/google/libphonenumber/blob/0a45cfd96e71cad8edb0e162a70fcc8bd9728933/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L185-L193
|
|
298
|
-
|
|
299
323
|
if (!international && !nationalPrefix && format.nationalPrefixIsMandatoryWhenFormattingInNationalFormat()) {
|
|
300
324
|
return false;
|
|
301
325
|
}
|
|
@@ -304,19 +328,24 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
304
328
|
}, {
|
|
305
329
|
key: "formatMatches",
|
|
306
330
|
value: function formatMatches(format, leadingDigits, leadingDigitsPatternIndex) {
|
|
307
|
-
var leadingDigitsPatternsCount = format.leadingDigitsPatterns().length;
|
|
331
|
+
var leadingDigitsPatternsCount = format.leadingDigitsPatterns().length;
|
|
332
|
+
|
|
333
|
+
// If this format is not restricted to a certain
|
|
308
334
|
// leading digits pattern then it fits.
|
|
309
335
|
// The test case could be found by searching for "leadingDigitsPatternsCount === 0".
|
|
310
|
-
|
|
311
336
|
if (leadingDigitsPatternsCount === 0) {
|
|
312
337
|
return true;
|
|
313
|
-
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// Start narrowing down the list of possible formats based on the leading digits.
|
|
314
341
|
// (only previously matched formats take part in the narrowing down process)
|
|
342
|
+
|
|
315
343
|
// `leading_digits_patterns` start with 3 digits min
|
|
316
344
|
// and then go up from there one digit at a time.
|
|
317
|
-
|
|
318
345
|
leadingDigitsPatternIndex = Math.min(leadingDigitsPatternIndex, leadingDigitsPatternsCount - 1);
|
|
319
|
-
var leadingDigitsPattern = format.leadingDigitsPatterns()[leadingDigitsPatternIndex];
|
|
346
|
+
var leadingDigitsPattern = format.leadingDigitsPatterns()[leadingDigitsPatternIndex];
|
|
347
|
+
|
|
348
|
+
// Google imposes a requirement on the leading digits
|
|
320
349
|
// to be minimum 3 digits long in order to be eligible
|
|
321
350
|
// for checking those with a leading digits pattern.
|
|
322
351
|
//
|
|
@@ -341,7 +370,6 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
341
370
|
// even when there's only 1 or 2 digits of the national (significant) number.
|
|
342
371
|
// To do that, it uses a non-strict pattern matcher written specifically for that.
|
|
343
372
|
//
|
|
344
|
-
|
|
345
373
|
if (leadingDigits.length < MIN_LEADING_DIGITS_LENGTH) {
|
|
346
374
|
// Before leading digits < 3 matching was implemented:
|
|
347
375
|
// return true
|
|
@@ -351,8 +379,7 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
351
379
|
return new PatternMatcher(leadingDigitsPattern).match(leadingDigits, {
|
|
352
380
|
allowOverflow: true
|
|
353
381
|
}) !== undefined;
|
|
354
|
-
} catch (error) /* istanbul ignore next */
|
|
355
|
-
{
|
|
382
|
+
} catch (error) /* istanbul ignore next */{
|
|
356
383
|
// There's a slight possibility that there could be some undiscovered bug
|
|
357
384
|
// in the pattern matcher code. Since the "leading digits < 3 matching"
|
|
358
385
|
// feature is not "essential" for operation, it can fall back to the old way
|
|
@@ -360,13 +387,14 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
360
387
|
console.error(error);
|
|
361
388
|
return true;
|
|
362
389
|
}
|
|
363
|
-
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// If at least `MIN_LEADING_DIGITS_LENGTH` digits of a national number are
|
|
364
393
|
// available then use the usual regular expression matching.
|
|
365
394
|
//
|
|
366
395
|
// The whole pattern is wrapped in round brackets (`()`) because
|
|
367
396
|
// the pattern can use "or" operator (`|`) at the top level of the pattern.
|
|
368
397
|
//
|
|
369
|
-
|
|
370
398
|
return new RegExp("^(".concat(leadingDigitsPattern, ")")).test(leadingDigits);
|
|
371
399
|
}
|
|
372
400
|
}, {
|
|
@@ -379,67 +407,65 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
379
407
|
value: function chooseFormat(state) {
|
|
380
408
|
var _this3 = this;
|
|
381
409
|
var _loop = function _loop() {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
return
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
};
|
|
442
|
-
|
|
410
|
+
var format = _step2.value;
|
|
411
|
+
// If this format is currently being used
|
|
412
|
+
// and is still suitable, then stick to it.
|
|
413
|
+
if (_this3.chosenFormat === format) {
|
|
414
|
+
return 0; // break
|
|
415
|
+
}
|
|
416
|
+
// Sometimes, a formatting rule inserts additional digits in a phone number,
|
|
417
|
+
// and "as you type" formatter can't do that: it should only use the digits
|
|
418
|
+
// that the user has input.
|
|
419
|
+
//
|
|
420
|
+
// For example, in Argentina, there's a format for mobile phone numbers:
|
|
421
|
+
//
|
|
422
|
+
// {
|
|
423
|
+
// "pattern": "(\\d)(\\d{2})(\\d{4})(\\d{4})",
|
|
424
|
+
// "leading_digits_patterns": ["91"],
|
|
425
|
+
// "national_prefix_formatting_rule": "0$1",
|
|
426
|
+
// "format": "$2 15-$3-$4",
|
|
427
|
+
// "international_format": "$1 $2 $3-$4"
|
|
428
|
+
// }
|
|
429
|
+
//
|
|
430
|
+
// In that format, `international_format` is used instead of `format`
|
|
431
|
+
// because `format` inserts `15` in the formatted number,
|
|
432
|
+
// and `AsYouType` formatter should only use the digits
|
|
433
|
+
// the user has actually input, without adding any extra digits.
|
|
434
|
+
// In this case, it wouldn't make a difference, because the `15`
|
|
435
|
+
// is first stripped when applying `national_prefix_for_parsing`
|
|
436
|
+
// and then re-added when using `format`, so in reality it doesn't
|
|
437
|
+
// add any new digits to the number, but to detect that, the code
|
|
438
|
+
// would have to be more complex: it would have to try formatting
|
|
439
|
+
// the digits using the format and then see if any digits have
|
|
440
|
+
// actually been added or removed, and then, every time a new digit
|
|
441
|
+
// is input, it should re-check whether the chosen format doesn't
|
|
442
|
+
// alter the digits.
|
|
443
|
+
//
|
|
444
|
+
// Google's code doesn't go that far, and so does this library:
|
|
445
|
+
// it simply requires that a `format` doesn't add any additonal
|
|
446
|
+
// digits to user's input.
|
|
447
|
+
//
|
|
448
|
+
// Also, people in general should move from inputting phone numbers
|
|
449
|
+
// in national format (possibly with national prefixes)
|
|
450
|
+
// and use international phone number format instead:
|
|
451
|
+
// it's a logical thing in the modern age of mobile phones,
|
|
452
|
+
// globalization and the internet.
|
|
453
|
+
//
|
|
454
|
+
/* istanbul ignore if */
|
|
455
|
+
if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format, state.international))) {
|
|
456
|
+
return 1; // continue
|
|
457
|
+
}
|
|
458
|
+
if (!_this3.createTemplateForFormat(format, state)) {
|
|
459
|
+
// Remove the format if it can't generate a template.
|
|
460
|
+
_this3.matchingFormats = _this3.matchingFormats.filter(function (_) {
|
|
461
|
+
return _ !== format;
|
|
462
|
+
});
|
|
463
|
+
return 1; // continue
|
|
464
|
+
}
|
|
465
|
+
_this3.chosenFormat = format;
|
|
466
|
+
return 0; // break
|
|
467
|
+
},
|
|
468
|
+
_ret;
|
|
443
469
|
// When there are multiple available formats, the formatter uses the first
|
|
444
470
|
// format where a formatting template could be created.
|
|
445
471
|
//
|
|
@@ -454,12 +480,11 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
454
480
|
// It doesn't skip the contents of the `for of` loop,
|
|
455
481
|
// it just skips the `for of` line.
|
|
456
482
|
//
|
|
457
|
-
|
|
458
483
|
/* istanbul ignore next */
|
|
459
484
|
for (var _iterator2 = _createForOfIteratorHelperLoose(this.matchingFormats.slice()), _step2; !(_step2 = _iterator2()).done;) {
|
|
460
|
-
|
|
461
|
-
if (_ret ===
|
|
462
|
-
if (_ret ===
|
|
485
|
+
_ret = _loop();
|
|
486
|
+
if (_ret === 0) break;
|
|
487
|
+
if (_ret === 1) continue;
|
|
463
488
|
}
|
|
464
489
|
if (!this.chosenFormat) {
|
|
465
490
|
// No format matches the national (significant) phone number.
|
|
@@ -473,15 +498,14 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
473
498
|
// The formatter doesn't format numbers when numberPattern contains '|', e.g.
|
|
474
499
|
// (20|3)\d{4}. In those cases we quickly return.
|
|
475
500
|
// (Though there's no such format in current metadata)
|
|
476
|
-
|
|
477
501
|
/* istanbul ignore if */
|
|
478
502
|
if (format.pattern().indexOf('|') >= 0) {
|
|
479
503
|
return;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
var template = this.getTemplateForFormat(format, state);
|
|
504
|
+
}
|
|
505
|
+
// Get formatting template for this phone number format
|
|
506
|
+
var template = this.getTemplateForFormat(format, state);
|
|
507
|
+
// If the national number entered is too long
|
|
483
508
|
// for any phone number format, then abort.
|
|
484
|
-
|
|
485
509
|
if (template) {
|
|
486
510
|
this.setNationalNumberTemplate(template, state);
|
|
487
511
|
return true;
|
|
@@ -497,17 +521,17 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
497
521
|
// So `US` national prefix separator is a "special" "hardcoded" case.
|
|
498
522
|
if (this.isNANP) {
|
|
499
523
|
return ' ';
|
|
500
|
-
}
|
|
524
|
+
}
|
|
525
|
+
// If a `format` has a `national_prefix_formatting_rule`
|
|
501
526
|
// and that rule has a separator after a national prefix,
|
|
502
527
|
// then it means that there should be a separator
|
|
503
528
|
// between a national prefix and a national (significant) number.
|
|
504
|
-
|
|
505
529
|
if (format && format.nationalPrefixFormattingRule() && NATIONAL_PREFIX_SEPARATORS_PATTERN.test(format.nationalPrefixFormattingRule())) {
|
|
506
530
|
return ' ';
|
|
507
|
-
}
|
|
531
|
+
}
|
|
532
|
+
// At this point, there seems to be no clear evidence that
|
|
508
533
|
// there should be a separator between a national prefix
|
|
509
534
|
// and a national (significant) number. So don't insert one.
|
|
510
|
-
|
|
511
535
|
return '';
|
|
512
536
|
}
|
|
513
537
|
}, {
|
|
@@ -528,10 +552,10 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
528
552
|
value: function getTemplate(state) {
|
|
529
553
|
if (!this.template) {
|
|
530
554
|
return;
|
|
531
|
-
}
|
|
555
|
+
}
|
|
556
|
+
// `this.template` holds the template for a "complete" phone number.
|
|
532
557
|
// The currently entered phone number is most likely not "complete",
|
|
533
558
|
// so trim all non-populated digits.
|
|
534
|
-
|
|
535
559
|
var index = -1;
|
|
536
560
|
var i = 0;
|
|
537
561
|
var internationalPrefix = state.international ? this.getInternationalPrefixBeforeCountryCallingCode(state, {
|
|
@@ -547,21 +571,22 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
547
571
|
key: "setNationalNumberTemplate",
|
|
548
572
|
value: function setNationalNumberTemplate(template, state) {
|
|
549
573
|
this.nationalNumberTemplate = template;
|
|
550
|
-
this.populatedNationalNumberTemplate = template;
|
|
574
|
+
this.populatedNationalNumberTemplate = template;
|
|
575
|
+
// With a new formatting template, the matched position
|
|
551
576
|
// using the old template needs to be reset.
|
|
552
|
-
|
|
553
|
-
|
|
577
|
+
this.populatedNationalNumberTemplatePosition = -1;
|
|
578
|
+
// For convenience, the public `.template` property
|
|
554
579
|
// contains the whole international number
|
|
555
580
|
// if the phone number being input is international:
|
|
556
581
|
// 'x' for the '+' sign, 'x'es for the country phone code,
|
|
557
582
|
// a spacebar and then the template for the formatted national number.
|
|
558
|
-
|
|
559
583
|
if (state.international) {
|
|
560
584
|
this.template = this.getInternationalPrefixBeforeCountryCallingCode(state).replace(/[\d\+]/g, DIGIT_PLACEHOLDER) + repeat(DIGIT_PLACEHOLDER, state.callingCode.length) + ' ' + template;
|
|
561
585
|
} else {
|
|
562
586
|
this.template = template;
|
|
563
587
|
}
|
|
564
588
|
}
|
|
589
|
+
|
|
565
590
|
/**
|
|
566
591
|
* Generates formatting template for a national phone number,
|
|
567
592
|
* optionally containing a national prefix, for a format.
|
|
@@ -575,15 +600,19 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
575
600
|
var nationalSignificantNumber = _ref4.nationalSignificantNumber,
|
|
576
601
|
international = _ref4.international,
|
|
577
602
|
nationalPrefix = _ref4.nationalPrefix,
|
|
578
|
-
|
|
603
|
+
prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = _ref4.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix;
|
|
579
604
|
var pattern = format.pattern();
|
|
580
|
-
/* istanbul ignore else */
|
|
581
605
|
|
|
606
|
+
/* istanbul ignore else */
|
|
582
607
|
{
|
|
583
|
-
pattern = pattern
|
|
584
|
-
|
|
608
|
+
pattern = pattern
|
|
609
|
+
// Replace anything in the form of [..] with \d
|
|
610
|
+
.replace(CREATE_CHARACTER_CLASS_PATTERN(), '\\d')
|
|
611
|
+
// Replace any standalone digit (not the one in `{}`) with \d
|
|
585
612
|
.replace(CREATE_STANDALONE_DIGIT_PATTERN(), '\\d');
|
|
586
|
-
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// Generate a dummy national number (consisting of `9`s)
|
|
587
616
|
// that fits this format's `pattern`.
|
|
588
617
|
//
|
|
589
618
|
// This match will always succeed,
|
|
@@ -591,14 +620,17 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
591
620
|
// has enough length to accomodate any possible
|
|
592
621
|
// national phone number format pattern.
|
|
593
622
|
//
|
|
623
|
+
var digits = LONGEST_DUMMY_PHONE_NUMBER.match(pattern)[0];
|
|
594
624
|
|
|
595
|
-
|
|
625
|
+
// If the national number entered is too long
|
|
596
626
|
// for any phone number format, then abort.
|
|
597
|
-
|
|
598
627
|
if (nationalSignificantNumber.length > digits.length) {
|
|
599
628
|
return;
|
|
600
|
-
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// Get a formatting template which can be used to efficiently format
|
|
601
632
|
// a partial number where digits are added one by one.
|
|
633
|
+
|
|
602
634
|
// Below `strictPattern` is used for the
|
|
603
635
|
// regular expression (with `^` and `$`).
|
|
604
636
|
// This wasn't originally in Google's `libphonenumber`
|
|
@@ -628,41 +660,42 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
628
660
|
// is used instead of `digits`.
|
|
629
661
|
|
|
630
662
|
var strictPattern = new RegExp('^' + pattern + '$');
|
|
631
|
-
var nationalNumberDummyDigits = nationalSignificantNumber.replace(/\d/g, DUMMY_DIGIT);
|
|
663
|
+
var nationalNumberDummyDigits = nationalSignificantNumber.replace(/\d/g, DUMMY_DIGIT);
|
|
664
|
+
|
|
665
|
+
// If `this.nationalSignificantNumber` has already sufficient length
|
|
632
666
|
// to satisfy the `pattern` completely then use it
|
|
633
667
|
// instead of `digits`.
|
|
634
|
-
|
|
635
668
|
if (strictPattern.test(nationalNumberDummyDigits)) {
|
|
636
669
|
digits = nationalNumberDummyDigits;
|
|
637
670
|
}
|
|
638
671
|
var numberFormat = this.getFormatFormat(format, international);
|
|
639
|
-
var nationalPrefixIncludedInTemplate;
|
|
672
|
+
var nationalPrefixIncludedInTemplate;
|
|
673
|
+
|
|
674
|
+
// If a user did input a national prefix (and that's guaranteed),
|
|
640
675
|
// and if a `format` does have a national prefix formatting rule,
|
|
641
676
|
// then see if that national prefix formatting rule
|
|
642
677
|
// prepends exactly the same national prefix the user has input.
|
|
643
678
|
// If that's the case, then use the `format` with the national prefix formatting rule.
|
|
644
679
|
// Otherwise, use the `format` without the national prefix formatting rule,
|
|
645
680
|
// and prepend a national prefix manually to it.
|
|
646
|
-
|
|
647
681
|
if (this.shouldTryNationalPrefixFormattingRule(format, {
|
|
648
682
|
international: international,
|
|
649
683
|
nationalPrefix: nationalPrefix
|
|
650
684
|
})) {
|
|
651
|
-
var numberFormatWithNationalPrefix = numberFormat.replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule());
|
|
685
|
+
var numberFormatWithNationalPrefix = numberFormat.replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule());
|
|
686
|
+
// If `national_prefix_formatting_rule` of a `format` simply prepends
|
|
652
687
|
// national prefix at the start of a national (significant) number,
|
|
653
688
|
// then such formatting can be used with `AsYouType` formatter.
|
|
654
689
|
// There seems to be no `else` case: everywhere in metadata,
|
|
655
690
|
// national prefix formatting rule is national prefix + $1,
|
|
656
691
|
// or `($1)`, in which case such format isn't even considered
|
|
657
692
|
// when the user has input a national prefix.
|
|
658
|
-
|
|
659
693
|
/* istanbul ignore else */
|
|
660
|
-
|
|
661
694
|
if (parseDigits(format.nationalPrefixFormattingRule()) === (nationalPrefix || '') + parseDigits('$1')) {
|
|
662
695
|
numberFormat = numberFormatWithNationalPrefix;
|
|
663
|
-
nationalPrefixIncludedInTemplate = true;
|
|
696
|
+
nationalPrefixIncludedInTemplate = true;
|
|
697
|
+
// Replace all digits of the national prefix in the formatting template
|
|
664
698
|
// with `DIGIT_PLACEHOLDER`s.
|
|
665
|
-
|
|
666
699
|
if (nationalPrefix) {
|
|
667
700
|
var i = nationalPrefix.length;
|
|
668
701
|
while (i > 0) {
|
|
@@ -671,19 +704,23 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
671
704
|
}
|
|
672
705
|
}
|
|
673
706
|
}
|
|
674
|
-
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
// Generate formatting template for this phone number format.
|
|
710
|
+
var template = digits
|
|
711
|
+
// Format the dummy phone number according to the format.
|
|
712
|
+
.replace(new RegExp(pattern), numberFormat)
|
|
713
|
+
// Replace each dummy digit with a DIGIT_PLACEHOLDER.
|
|
714
|
+
.replace(new RegExp(DUMMY_DIGIT, 'g'), DIGIT_PLACEHOLDER);
|
|
675
715
|
|
|
676
|
-
|
|
677
|
-
.replace(new RegExp(pattern), numberFormat) // Replace each dummy digit with a DIGIT_PLACEHOLDER.
|
|
678
|
-
.replace(new RegExp(DUMMY_DIGIT, 'g'), DIGIT_PLACEHOLDER); // If a prefix of a national (significant) number is not as simple
|
|
716
|
+
// If a prefix of a national (significant) number is not as simple
|
|
679
717
|
// as just a basic national prefix, then just prepend such prefix
|
|
680
718
|
// before the national (significant) number, optionally spacing
|
|
681
719
|
// the two with a whitespace.
|
|
682
|
-
|
|
683
720
|
if (!nationalPrefixIncludedInTemplate) {
|
|
684
|
-
if (
|
|
721
|
+
if (prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) {
|
|
685
722
|
// Prepend the prefix to the template manually.
|
|
686
|
-
template = repeat(DIGIT_PLACEHOLDER,
|
|
723
|
+
template = repeat(DIGIT_PLACEHOLDER, prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix.length) + ' ' + template;
|
|
687
724
|
} else if (nationalPrefix) {
|
|
688
725
|
// Prepend national prefix to the template manually.
|
|
689
726
|
template = repeat(DIGIT_PLACEHOLDER, nationalPrefix.length) + this.getSeparatorAfterNationalPrefix(format) + template;
|
|
@@ -704,9 +741,12 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
704
741
|
return;
|
|
705
742
|
}
|
|
706
743
|
this.populatedNationalNumberTemplate = result[0];
|
|
707
|
-
this.populatedNationalNumberTemplatePosition = result[1];
|
|
744
|
+
this.populatedNationalNumberTemplatePosition = result[1];
|
|
745
|
+
|
|
746
|
+
// Return the formatted phone number so far.
|
|
747
|
+
return cutAndStripNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
708
748
|
|
|
709
|
-
|
|
749
|
+
// The old way which was good for `input-format` but is not so good
|
|
710
750
|
// for `react-phone-number-input`'s default input (`InputBasic`).
|
|
711
751
|
// return closeNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1)
|
|
712
752
|
// .replace(new RegExp(DIGIT_PLACEHOLDER, 'g'), ' ')
|
|
@@ -727,7 +767,6 @@ var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
|
727
767
|
}
|
|
728
768
|
}
|
|
729
769
|
}]);
|
|
730
|
-
return AsYouTypeFormatter;
|
|
731
770
|
}();
|
|
732
771
|
|
|
733
772
|
export { DIGIT_PLACEHOLDER, AsYouTypeFormatter as default };
|