@elliemae/ds-form-date-time-picker 3.17.0-next.9 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/cjs/propTypes.js.map +2 -2
  2. package/dist/esm/propTypes.js.map +2 -2
  3. package/dist/types/ControlledDateTimePicker.d.ts +8 -0
  4. package/dist/types/ControlledDateTimePickerCTX.d.ts +5 -0
  5. package/dist/types/ControlledDateTimePickerDatatestid.d.ts +63 -0
  6. package/dist/types/ControlledDateTimePickerTypes.d.ts +20 -0
  7. package/dist/types/config/useChangeHandlers.d.ts +27 -0
  8. package/dist/types/config/useControlledDateTimePicker.d.ts +16 -0
  9. package/dist/types/config/useFocusTracker.d.ts +38 -0
  10. package/dist/types/config/useGetDestructuredValues.d.ts +30 -0
  11. package/dist/types/config/useGetFlags.d.ts +30 -0
  12. package/dist/types/config/useGetPropsBasedOnType.d.ts +28 -0
  13. package/dist/types/config/useGetPropsWithDefault.d.ts +2 -0
  14. package/dist/types/config/useGetReferences.d.ts +33 -0
  15. package/dist/types/config/useGlobalKeyHandlers.d.ts +18 -0
  16. package/dist/types/config/useRelevantValueFromProps.d.ts +10 -0
  17. package/dist/types/config/useValidateProps.d.ts +2 -0
  18. package/dist/types/exported-related/theming.d.ts +37 -0
  19. package/dist/types/index.d.ts +9 -0
  20. package/dist/types/parts/ClearButton/ClearButton.d.ts +2 -0
  21. package/dist/types/parts/ClearButton/useClearButton.d.ts +11 -0
  22. package/dist/types/parts/ControlledDateTimePickerContent.d.ts +2 -0
  23. package/dist/types/parts/DateInputs/DDInput.d.ts +17 -0
  24. package/dist/types/parts/DateInputs/DateInputs.d.ts +2 -0
  25. package/dist/types/parts/DateInputs/MMInput.d.ts +19 -0
  26. package/dist/types/parts/DateInputs/YYYYInput.d.ts +17 -0
  27. package/dist/types/parts/DateInputs/useDateInputs.d.ts +2 -0
  28. package/dist/types/parts/Pickers/Calendar/Calendar.d.ts +5 -0
  29. package/dist/types/parts/Pickers/Calendar/CalendarBody.d.ts +6 -0
  30. package/dist/types/parts/Pickers/Calendar/CalendarContent.d.ts +4 -0
  31. package/dist/types/parts/Pickers/Calendar/CalendarContext.d.ts +6 -0
  32. package/dist/types/parts/Pickers/Calendar/CalendarDaysList.d.ts +9 -0
  33. package/dist/types/parts/Pickers/Calendar/CalendarFooter.d.ts +2 -0
  34. package/dist/types/parts/Pickers/Calendar/CalendarHead.d.ts +2 -0
  35. package/dist/types/parts/Pickers/Calendar/CalendarIconTrigger.d.ts +2 -0
  36. package/dist/types/parts/Pickers/Calendar/CalendarMonthDays.d.ts +2 -0
  37. package/dist/types/parts/Pickers/Calendar/CalendarWeekDays.d.ts +2 -0
  38. package/dist/types/parts/Pickers/Calendar/CalendarWrapper.d.ts +2 -0
  39. package/dist/types/parts/Pickers/Calendar/Day.d.ts +9 -0
  40. package/dist/types/parts/Pickers/Calendar/Styleds.d.ts +21 -0
  41. package/dist/types/parts/Pickers/Calendar/useConfigCalendarCTX.d.ts +14 -0
  42. package/dist/types/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.d.ts +15 -0
  43. package/dist/types/parts/Pickers/Calendar/useFocusLogic.d.ts +14 -0
  44. package/dist/types/parts/Pickers/Calendar/useKeyboardHandlers.d.ts +19 -0
  45. package/dist/types/parts/Pickers/Calendar/usePopperTriggerLogic.d.ts +16 -0
  46. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheel.d.ts +1 -0
  47. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.d.ts +2 -0
  48. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContext.d.ts +6 -0
  49. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.d.ts +2 -0
  50. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.d.ts +2 -0
  51. package/dist/types/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.d.ts +2 -0
  52. package/dist/types/parts/Pickers/CalendarWithTimeWheel/Styleds.d.ts +7 -0
  53. package/dist/types/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.d.ts +14 -0
  54. package/dist/types/parts/Pickers/PickersIcons.d.ts +2 -0
  55. package/dist/types/parts/Pickers/TimeWheel/HoursList.d.ts +2 -0
  56. package/dist/types/parts/Pickers/TimeWheel/MeridiemList.d.ts +3 -0
  57. package/dist/types/parts/Pickers/TimeWheel/MinutesList.d.ts +3 -0
  58. package/dist/types/parts/Pickers/TimeWheel/TimeWheel.d.ts +5 -0
  59. package/dist/types/parts/Pickers/TimeWheel/TimeWheelContent.d.ts +2 -0
  60. package/dist/types/parts/Pickers/TimeWheel/TimeWheelContext.d.ts +6 -0
  61. package/dist/types/parts/Pickers/TimeWheel/TimeWheelFooter.d.ts +2 -0
  62. package/dist/types/parts/Pickers/TimeWheel/TimeWheelIconTrigger.d.ts +2 -0
  63. package/dist/types/parts/Pickers/TimeWheel/TimeWheelWrapper.d.ts +2 -0
  64. package/dist/types/parts/Pickers/TimeWheel/useConfigTimePickerCTX.d.ts +5 -0
  65. package/dist/types/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.d.ts +17 -0
  66. package/dist/types/parts/Pickers/TimeWheel/useKeyboardHandlers.d.ts +13 -0
  67. package/dist/types/parts/Pickers/TimeWheel/usePopperTriggerLogic.d.ts +12 -0
  68. package/dist/types/parts/Styleds.d.ts +13 -0
  69. package/dist/types/parts/TimeInputs/HHInput.d.ts +18 -0
  70. package/dist/types/parts/TimeInputs/MeridiemInput.d.ts +17 -0
  71. package/dist/types/parts/TimeInputs/MinutesInput.d.ts +17 -0
  72. package/dist/types/parts/TimeInputs/TimeInputs.d.ts +2 -0
  73. package/dist/types/parts/TimeInputs/useTimeInputs.d.ts +22 -0
  74. package/dist/types/parts/config.d.ts +5 -0
  75. package/dist/types/propTypes.d.ts +105 -0
  76. package/dist/types/sharedTypes.d.ts +95 -0
  77. package/dist/types/tests/custom-props/customProps.d.ts +397 -0
  78. package/dist/types/tests/custom-props/date-time-picker.date-custom-props.test.d.ts +1 -0
  79. package/dist/types/tests/custom-props/date-time-picker.date-time-custom-props.test.d.ts +1 -0
  80. package/dist/types/tests/custom-props/date-time-picker.time-custom-props.test.d.ts +1 -0
  81. package/dist/types/tests/date-time-picker.auto-advance.test.d.ts +1 -0
  82. package/dist/types/tests/date-time-picker.clear-button.test.d.ts +1 -0
  83. package/dist/types/tests/date-time-picker.keyboard-focus.test.d.ts +1 -0
  84. package/dist/types/tests/date-time-picker.keyboard.data-entry-typing.test.d.ts +1 -0
  85. package/dist/types/tests/date-time-picker.keyboard.fill-with-now.test.d.ts +1 -0
  86. package/dist/types/tests/date-time-picker.keyboard.regressive-backspace.test.d.ts +1 -0
  87. package/dist/types/tests/date-time-picker.keyboard.shortcut-clear.test.d.ts +1 -0
  88. package/dist/types/tests/date-time-picker.manual-delete-values.test.d.ts +1 -0
  89. package/dist/types/tests/date-time-picker.onChange-meta-info.test.d.ts +1 -0
  90. package/dist/types/tests/date-time-picker.types-button.test.d.ts +1 -0
  91. package/dist/types/tests/date-time-picker.types-dom.test.d.ts +1 -0
  92. package/dist/types/utils/constants.d.ts +38 -0
  93. package/dist/types/utils/dateHelpers.d.ts +40 -0
  94. package/dist/types/utils/dateTimeHelpers.d.ts +8 -0
  95. package/dist/types/utils/hooks/useGetDayFromDateString.d.ts +1 -0
  96. package/dist/types/utils/hooks/useGetMonthYearFromDateStringOrEmptyStartingMonth.d.ts +5 -0
  97. package/dist/types/utils/hooks/useGetStartingFocusedDay.d.ts +8 -0
  98. package/dist/types/utils/hooks/useOnClickOutside.d.ts +1 -0
  99. package/dist/types/utils/numberHelpers.d.ts +1 -0
  100. package/dist/types/utils/stringHelpers.d.ts +36 -0
  101. package/dist/types/utils/timeHelpers.d.ts +2 -0
  102. package/dist/types/utils/typeGuards.d.ts +4 -0
  103. package/package.json +9 -9
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/propTypes.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport type { WeakValidationMap } from 'react';\nimport type React from 'react';\nimport {\n PropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n getPropsPerDatatestIdPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { ControlledDateTimePickerDatatestid } from './ControlledDateTimePickerDatatestid.js';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = (): void => {};\nconst defaultReturnFalse = (): false => false;\nexport declare namespace DSControlledDateTimePickerT {\n type DataTestIdType = typeof ControlledDateTimePickerDatatestid;\n // typescript type that rapresents the union of all the values for ControlledDateTimePickerDatatestid\n export type FlatDataTestIdValues = {\n [K in keyof DataTestIdType]: DataTestIdType[K] extends Record<string, unknown>\n ? DataTestIdType[K][keyof DataTestIdType[K]] // this is only 1 level deep, but it's enough for our needs right now\n : // can be extended to more levels if needed as follows:\n // ? DataTestIdType[K][keyof DataTestIdType[K]] extends Record<string, unknown>\n // ? DataTestIdType[K][keyof DataTestIdType[K]][keyof DataTestIdType[K][keyof DataTestIdType[K]]]\n // : DataTestIdType[K][keyof DataTestIdType[K]]\n DataTestIdType[K];\n }[keyof DataTestIdType];\n\n export type AriaAndDataPropsPerDataTestId = {\n [key in FlatDataTestIdValues]?: AriaAndDataPropsOrPropsGetter;\n };\n\n export type OnInternalValuesChangeEvent =\n | React.ChangeEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLButtonElement>\n | React.KeyboardEvent\n | React.MouseEvent<HTMLInputElement>\n | React.MouseEvent<HTMLButtonElement>;\n export type ControlTypes =\n | 'full-date-time'\n | 'date-time-inputs'\n | 'date-time-picker'\n | 'date-time-picker-controller-only'\n | 'full-date'\n | 'date-inputs'\n | 'date-picker'\n | 'date-picker-controller-only'\n | 'full-time'\n | 'time-inputs'\n | 'time-picker'\n | 'time-picker-controller-only';\n export interface InternalInputsChangeMetaInfo {\n isAutomaticFillTrigger?: boolean;\n isDayPresentInMonth?: boolean;\n isOutOfRangeDay?: boolean;\n isDisabledDay?: boolean;\n isDisabledTime?: boolean;\n suggestedErrorMsg?: string;\n newDateTimeString?: string;\n newDateString?: string;\n newTimeString?: string;\n }\n\n export type OnDateChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnDateTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnInternalInputsChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo?: InternalInputsChangeMetaInfo,\n ) => void;\n export type AppOnInputChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo: InternalInputsChangeMetaInfo,\n ) => void;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ DATE CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n export interface DefaultDateProps {\n onMonthChange: AppOnInputChange;\n onDayChange: AppOnInputChange;\n onYearChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledDay: BooleanGetter<string>;\n getIsOutOfRangeDay: BooleanGetter<string>;\n getIsStartRangeDay: BooleanGetter<string>;\n getIsDayInRange: BooleanGetter<string>;\n getIsEndRangeDay: BooleanGetter<string>;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalDatePickerProps extends AriaAndDataPropsPerDataTestId {\n emptyPickerStartingMonth?: string;\n onCalendarOpenFocusedDay?: string;\n pickerFooterMsg?: string;\n innerRef?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>;\n }\n export interface RequiredDatePickerProps {\n type: 'full-date' | 'date-inputs' | 'date-picker' | 'date-picker-controller-only';\n date: string;\n onDateChange: OnDateChange;\n }\n export type DatePickerProps = OptionalDatePickerProps & Partial<DefaultDateProps> & RequiredDatePickerProps;\n export type InternalDatePickerProps = OptionalDatePickerProps & DefaultDateProps & RequiredDatePickerProps;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ TIME CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n\n export interface DefaultTimeProps {\n onHourChange: AppOnInputChange;\n onMinuteChange: AppOnInputChange;\n onMeridiemChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledTime: BooleanGetter<string>;\n minutesInterval: number;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalTimePickerProps extends AriaAndDataPropsPerDataTestId {\n pickerFooterMsg?: string;\n onTimeWheelOpenStartingTime?: string;\n innerRef?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement>;\n }\n export interface RequiredTimePickerProps {\n type: 'full-time' | 'time-inputs' | 'time-picker' | 'time-picker-controller-only';\n time: string;\n onTimeChange: OnTimeChange;\n }\n export type TimePickerProps = OptionalTimePickerProps & Partial<DefaultTimeProps> & RequiredTimePickerProps;\n export type InternalTimePickerProps = OptionalTimePickerProps & DefaultTimeProps & RequiredTimePickerProps;\n\n /* -------------------- ---------------------- ------------------------*/\n /* -------------------- DATETIME CONFIGURATION ------------------------*/\n /* -------------------- ---------------------- ------------------------*/\n\n export type DefaultDateTimeProps = DefaultTimeProps &\n DefaultDateProps & {\n onDateChange: OnDateChange;\n onTimeChange: OnTimeChange;\n };\n export type OptionalDateTimeProps = AriaAndDataPropsPerDataTestId & OptionalTimePickerProps & OptionalDatePickerProps;\n export interface RequiredDateTimeProps {\n type: 'full-date-time' | 'date-time-inputs' | 'date-time-picker' | 'date-time-picker-controller-only';\n dateTime: string;\n onDateTimeChange: OnDateTimeChange;\n }\n\n export type DateTimePickerProps = Partial<DefaultDateTimeProps> & OptionalDateTimeProps & RequiredDateTimeProps;\n export type InternalDateTimePickerProps = DefaultDateTimeProps & OptionalDateTimeProps & RequiredDateTimeProps;\n\n /* ---------------------- ------------------- -------------------------*/\n /* ---------------------- FINAL CONFIGURATION -------------------------*/\n /* ---------------------- ------------------- -------------------------*/\n export type DefaultProps = DefaultDateTimeProps & { type: 'full-date-time' };\n export type Props = DateTimePickerProps | DatePickerProps | TimePickerProps;\n export type InternalProps = InternalDateTimePickerProps | InternalDatePickerProps | InternalTimePickerProps;\n}\n\nexport const defaultProps: DSControlledDateTimePickerT.DefaultProps = {\n type: 'full-date-time',\n onDateChange: noop,\n onMonthChange: noop,\n onDayChange: noop,\n onYearChange: noop,\n onTimeChange: noop,\n onHourChange: noop,\n onMinuteChange: noop,\n onMeridiemChange: noop,\n onPickerOpen: noop,\n onPickerClose: noop,\n getIsDisabledDay: defaultReturnFalse,\n getIsOutOfRangeDay: defaultReturnFalse,\n getIsStartRangeDay: defaultReturnFalse,\n getIsDayInRange: defaultReturnFalse,\n getIsEndRangeDay: defaultReturnFalse,\n getIsDisabledTime: defaultReturnFalse,\n minutesInterval: 1,\n isClearable: false,\n disabled: false,\n hasError: false,\n autoFocus: false,\n preventCloseOnSelection: false,\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n type: PropTypes.oneOf([\n 'full-date-time',\n 'date-time-inputs',\n 'date-time-picker',\n 'date-time-picker-controller-only',\n 'full-date',\n 'date-inputs',\n 'date-picker',\n 'date-picker-controller-only',\n 'full-time',\n 'time-inputs',\n 'time-picker',\n 'time-picker-controller-only',\n ])\n .description('Type of time form control to use')\n .defaultValue('full-date-time'),\n disabled: PropTypes.bool.description('wheter or not the input is disabled').defaultValue(false),\n isClearable: PropTypes.bool.description('with or without clearable button').defaultValue(false),\n dateTime: PropTypes.string.description('when using date-time types, this is the value of the controller'),\n date: PropTypes.string.description('when using date types, this is the value of the controller'),\n time: PropTypes.string.description('when using time types, this is the value of the controller'),\n onDateChange: PropTypes.func.description('(newDateString, metaInformations) => void'),\n onTimeChange: PropTypes.func.description('(newTimeString, metaInformations) => void'),\n onDateTimeChange: PropTypes.func.description('(newDateTimeString, metaInformations) => void'),\n onMonthChange: PropTypes.func.description('(newMonthString, event, metaInformations) => void'),\n onDayChange: PropTypes.func.description('(newDayString, event, metaInformations) => void'),\n onYearChange: PropTypes.func.description('(newYearString, event, metaInformations) => void'),\n onHourChange: PropTypes.func.description('(newHourString, event, metaInformations) => void'),\n onMinuteChange: PropTypes.func.description('(newMinuteString, event, metaInformations) => void'),\n onMeridiemChange: PropTypes.func.description('(newMeridiemString, event, metaInformations) => void'),\n getIsDisabledDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsOutOfRangeDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsDisabledTime: PropTypes.func.description(\n '(timeAsString) => true for marking as disabled, false for marking as valid',\n ),\n emptyPickerStartingMonth: PropTypes.string.description(\n 'which month to start the calendar on open, when value is empty, string following the \"MM/__/YYYY\" pattern',\n ),\n onCalendarOpenFocusedDay: PropTypes.string\n .description('which day to focus on calendar open when value is empty, string following the \"MM/DD/YYYY\" pattern')\n .defaultValue('if value is empty current month, else current month'),\n onTimeWheelOpenStartingTime: PropTypes.string\n .description(\n 'which day to start the timewheel on picker open when value is empty, string following the HH:MM AA\" pattern',\n )\n .defaultValue('01:00 AM'),\n minutesInterval: PropTypes.number\n .description('increments/decrements of minutes in time related controllers interactions')\n .defaultValue('1'),\n 'data-testid': PropTypes.string.description('Unique id for tests.').defaultValue(''),\n ...getPropsPerDatatestIdPropTypes(ControlledDateTimePickerDatatestid),\n} as WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAKO;AACP,gDAAmD;AAGnD,MAAM,OAAO,MAAY;AAAC;AAC1B,MAAM,qBAAqB,MAAa;AA4JjC,MAAM,eAAyD;AAAA,EACpE,MAAM;AAAA,EACN,cAAc;AAAA,EACd,eAAe;AAAA,EACf,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,yBAAyB;AAC3B;AAEO,MAAM,YAAY;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,kCAAU,MAAM;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC,EACE,YAAY,kCAAkC,EAC9C,aAAa,gBAAgB;AAAA,EAChC,UAAU,kCAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,aAAa,kCAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EAC9F,UAAU,kCAAU,OAAO,YAAY,iEAAiE;AAAA,EACxG,MAAM,kCAAU,OAAO,YAAY,4DAA4D;AAAA,EAC/F,MAAM,kCAAU,OAAO,YAAY,4DAA4D;AAAA,EAC/F,cAAc,kCAAU,KAAK,YAAY,2CAA2C;AAAA,EACpF,cAAc,kCAAU,KAAK,YAAY,2CAA2C;AAAA,EACpF,kBAAkB,kCAAU,KAAK,YAAY,+CAA+C;AAAA,EAC5F,eAAe,kCAAU,KAAK,YAAY,mDAAmD;AAAA,EAC7F,aAAa,kCAAU,KAAK,YAAY,iDAAiD;AAAA,EACzF,cAAc,kCAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,cAAc,kCAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,gBAAgB,kCAAU,KAAK,YAAY,oDAAoD;AAAA,EAC/F,kBAAkB,kCAAU,KAAK,YAAY,sDAAsD;AAAA,EACnG,kBAAkB,kCAAU,KAAK;AAAA,IAC/B;AAAA,EACF;AAAA,EACA,oBAAoB,kCAAU,KAAK;AAAA,IACjC;AAAA,EACF;AAAA,EACA,mBAAmB,kCAAU,KAAK;AAAA,IAChC;AAAA,EACF;AAAA,EACA,0BAA0B,kCAAU,OAAO;AAAA,IACzC;AAAA,EACF;AAAA,EACA,0BAA0B,kCAAU,OACjC,YAAY,oGAAoG,EAChH,aAAa,qDAAqD;AAAA,EACrE,6BAA6B,kCAAU,OACpC;AAAA,IACC;AAAA,EACF,EACC,aAAa,UAAU;AAAA,EAC1B,iBAAiB,kCAAU,OACxB,YAAY,2EAA2E,EACvF,aAAa,GAAG;AAAA,EACnB,eAAe,kCAAU,OAAO,YAAY,sBAAsB,EAAE,aAAa,EAAE;AAAA,EACnF,OAAG,wDAA+B,4EAAkC;AACtE;",
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport type { WeakValidationMap } from 'react';\nimport type React from 'react';\nimport {\n PropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n getPropsPerDatatestIdPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { ControlledDateTimePickerDatatestid } from './ControlledDateTimePickerDatatestid.js';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = (): void => {};\nconst defaultReturnFalse = (): false => false;\nexport declare namespace DSControlledDateTimePickerT {\n type DataTestIdType = typeof ControlledDateTimePickerDatatestid;\n // typescript type that rapresents the union of all the values for ControlledDateTimePickerDatatestid\n export type FlatDataTestIdValues = {\n [K in keyof DataTestIdType]: DataTestIdType[K] extends Record<string, unknown>\n ? DataTestIdType[K][keyof DataTestIdType[K]] // this is only 1 level deep, but it's enough for our needs right now\n : // can be extended to more levels if needed as follows:\n // ? DataTestIdType[K][keyof DataTestIdType[K]] extends Record<string, unknown>\n // ? DataTestIdType[K][keyof DataTestIdType[K]][keyof DataTestIdType[K][keyof DataTestIdType[K]]]\n // : DataTestIdType[K][keyof DataTestIdType[K]]\n DataTestIdType[K];\n }[keyof DataTestIdType];\n\n export type AriaAndDataPropsPerDataTestId = {\n [key in FlatDataTestIdValues]?: AriaAndDataPropsOrPropsGetter;\n };\n\n export type OnInternalValuesChangeEvent =\n | React.ChangeEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLButtonElement>\n | React.KeyboardEvent\n | React.MouseEvent<HTMLInputElement>\n | React.MouseEvent<HTMLButtonElement>;\n export type ControlTypes =\n | 'full-date-time'\n | 'date-time-inputs'\n | 'date-time-picker'\n | 'date-time-picker-controller-only'\n | 'full-date'\n | 'date-inputs'\n | 'date-picker'\n | 'date-picker-controller-only'\n | 'full-time'\n | 'time-inputs'\n | 'time-picker'\n | 'time-picker-controller-only';\n export interface InternalInputsChangeMetaInfo {\n isAutomaticFillTrigger?: boolean;\n isDayPresentInMonth?: boolean;\n isOutOfRangeDay?: boolean;\n isDisabledDay?: boolean;\n isDisabledTime?: boolean;\n suggestedErrorMsg?: string;\n newDateTimeString?: string;\n newDateString?: string;\n newTimeString?: string;\n }\n\n export type OnDateChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnDateTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnInternalInputsChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo?: InternalInputsChangeMetaInfo,\n ) => void;\n export type AppOnInputChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo: InternalInputsChangeMetaInfo,\n ) => void;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ DATE CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n export interface DefaultDateProps {\n onMonthChange: AppOnInputChange;\n onDayChange: AppOnInputChange;\n onYearChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledDay: BooleanGetter<string>;\n getIsOutOfRangeDay: BooleanGetter<string>;\n getIsStartRangeDay: BooleanGetter<string>;\n getIsDayInRange: BooleanGetter<string>;\n getIsEndRangeDay: BooleanGetter<string>;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalDatePickerProps extends AriaAndDataPropsPerDataTestId {\n emptyPickerStartingMonth?: string;\n onCalendarOpenFocusedDay?: string;\n pickerFooterMsg?: string;\n innerRef?:\n | React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>\n | ((ref: HTMLInputElement | HTMLButtonElement | null) => void);\n }\n export interface RequiredDatePickerProps {\n type: 'full-date' | 'date-inputs' | 'date-picker' | 'date-picker-controller-only';\n date: string;\n onDateChange: OnDateChange;\n }\n export type DatePickerProps = OptionalDatePickerProps & Partial<DefaultDateProps> & RequiredDatePickerProps;\n export type InternalDatePickerProps = OptionalDatePickerProps & DefaultDateProps & RequiredDatePickerProps;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ TIME CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n\n export interface DefaultTimeProps {\n onHourChange: AppOnInputChange;\n onMinuteChange: AppOnInputChange;\n onMeridiemChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledTime: BooleanGetter<string>;\n minutesInterval: number;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalTimePickerProps extends AriaAndDataPropsPerDataTestId {\n pickerFooterMsg?: string;\n onTimeWheelOpenStartingTime?: string;\n innerRef?:\n | React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>\n | ((ref: HTMLInputElement | HTMLButtonElement | null) => void);\n }\n export interface RequiredTimePickerProps {\n type: 'full-time' | 'time-inputs' | 'time-picker' | 'time-picker-controller-only';\n time: string;\n onTimeChange: OnTimeChange;\n }\n export type TimePickerProps = OptionalTimePickerProps & Partial<DefaultTimeProps> & RequiredTimePickerProps;\n export type InternalTimePickerProps = OptionalTimePickerProps & DefaultTimeProps & RequiredTimePickerProps;\n\n /* -------------------- ---------------------- ------------------------*/\n /* -------------------- DATETIME CONFIGURATION ------------------------*/\n /* -------------------- ---------------------- ------------------------*/\n\n export type DefaultDateTimeProps = DefaultTimeProps &\n DefaultDateProps & {\n onDateChange: OnDateChange;\n onTimeChange: OnTimeChange;\n };\n export type OptionalDateTimeProps = AriaAndDataPropsPerDataTestId & OptionalTimePickerProps & OptionalDatePickerProps;\n export interface RequiredDateTimeProps {\n type: 'full-date-time' | 'date-time-inputs' | 'date-time-picker' | 'date-time-picker-controller-only';\n dateTime: string;\n onDateTimeChange: OnDateTimeChange;\n }\n\n export type DateTimePickerProps = Partial<DefaultDateTimeProps> & OptionalDateTimeProps & RequiredDateTimeProps;\n export type InternalDateTimePickerProps = DefaultDateTimeProps & OptionalDateTimeProps & RequiredDateTimeProps;\n\n /* ---------------------- ------------------- -------------------------*/\n /* ---------------------- FINAL CONFIGURATION -------------------------*/\n /* ---------------------- ------------------- -------------------------*/\n export type DefaultProps = DefaultDateTimeProps & { type: 'full-date-time' };\n export type Props = DateTimePickerProps | DatePickerProps | TimePickerProps;\n export type InternalProps = InternalDateTimePickerProps | InternalDatePickerProps | InternalTimePickerProps;\n}\n\nexport const defaultProps: DSControlledDateTimePickerT.DefaultProps = {\n type: 'full-date-time',\n onDateChange: noop,\n onMonthChange: noop,\n onDayChange: noop,\n onYearChange: noop,\n onTimeChange: noop,\n onHourChange: noop,\n onMinuteChange: noop,\n onMeridiemChange: noop,\n onPickerOpen: noop,\n onPickerClose: noop,\n getIsDisabledDay: defaultReturnFalse,\n getIsOutOfRangeDay: defaultReturnFalse,\n getIsStartRangeDay: defaultReturnFalse,\n getIsDayInRange: defaultReturnFalse,\n getIsEndRangeDay: defaultReturnFalse,\n getIsDisabledTime: defaultReturnFalse,\n minutesInterval: 1,\n isClearable: false,\n disabled: false,\n hasError: false,\n autoFocus: false,\n preventCloseOnSelection: false,\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n type: PropTypes.oneOf([\n 'full-date-time',\n 'date-time-inputs',\n 'date-time-picker',\n 'date-time-picker-controller-only',\n 'full-date',\n 'date-inputs',\n 'date-picker',\n 'date-picker-controller-only',\n 'full-time',\n 'time-inputs',\n 'time-picker',\n 'time-picker-controller-only',\n ])\n .description('Type of time form control to use')\n .defaultValue('full-date-time'),\n disabled: PropTypes.bool.description('wheter or not the input is disabled').defaultValue(false),\n isClearable: PropTypes.bool.description('with or without clearable button').defaultValue(false),\n dateTime: PropTypes.string.description('when using date-time types, this is the value of the controller'),\n date: PropTypes.string.description('when using date types, this is the value of the controller'),\n time: PropTypes.string.description('when using time types, this is the value of the controller'),\n onDateChange: PropTypes.func.description('(newDateString, metaInformations) => void'),\n onTimeChange: PropTypes.func.description('(newTimeString, metaInformations) => void'),\n onDateTimeChange: PropTypes.func.description('(newDateTimeString, metaInformations) => void'),\n onMonthChange: PropTypes.func.description('(newMonthString, event, metaInformations) => void'),\n onDayChange: PropTypes.func.description('(newDayString, event, metaInformations) => void'),\n onYearChange: PropTypes.func.description('(newYearString, event, metaInformations) => void'),\n onHourChange: PropTypes.func.description('(newHourString, event, metaInformations) => void'),\n onMinuteChange: PropTypes.func.description('(newMinuteString, event, metaInformations) => void'),\n onMeridiemChange: PropTypes.func.description('(newMeridiemString, event, metaInformations) => void'),\n getIsDisabledDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsOutOfRangeDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsDisabledTime: PropTypes.func.description(\n '(timeAsString) => true for marking as disabled, false for marking as valid',\n ),\n emptyPickerStartingMonth: PropTypes.string.description(\n 'which month to start the calendar on open, when value is empty, string following the \"MM/__/YYYY\" pattern',\n ),\n onCalendarOpenFocusedDay: PropTypes.string\n .description('which day to focus on calendar open when value is empty, string following the \"MM/DD/YYYY\" pattern')\n .defaultValue('if value is empty current month, else current month'),\n onTimeWheelOpenStartingTime: PropTypes.string\n .description(\n 'which day to start the timewheel on picker open when value is empty, string following the HH:MM AA\" pattern',\n )\n .defaultValue('01:00 AM'),\n minutesInterval: PropTypes.number\n .description('increments/decrements of minutes in time related controllers interactions')\n .defaultValue('1'),\n 'data-testid': PropTypes.string.description('Unique id for tests.').defaultValue(''),\n ...getPropsPerDatatestIdPropTypes(ControlledDateTimePickerDatatestid),\n} as WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAKO;AACP,gDAAmD;AAGnD,MAAM,OAAO,MAAY;AAAC;AAC1B,MAAM,qBAAqB,MAAa;AAgKjC,MAAM,eAAyD;AAAA,EACpE,MAAM;AAAA,EACN,cAAc;AAAA,EACd,eAAe;AAAA,EACf,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,yBAAyB;AAC3B;AAEO,MAAM,YAAY;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,kCAAU,MAAM;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC,EACE,YAAY,kCAAkC,EAC9C,aAAa,gBAAgB;AAAA,EAChC,UAAU,kCAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,aAAa,kCAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EAC9F,UAAU,kCAAU,OAAO,YAAY,iEAAiE;AAAA,EACxG,MAAM,kCAAU,OAAO,YAAY,4DAA4D;AAAA,EAC/F,MAAM,kCAAU,OAAO,YAAY,4DAA4D;AAAA,EAC/F,cAAc,kCAAU,KAAK,YAAY,2CAA2C;AAAA,EACpF,cAAc,kCAAU,KAAK,YAAY,2CAA2C;AAAA,EACpF,kBAAkB,kCAAU,KAAK,YAAY,+CAA+C;AAAA,EAC5F,eAAe,kCAAU,KAAK,YAAY,mDAAmD;AAAA,EAC7F,aAAa,kCAAU,KAAK,YAAY,iDAAiD;AAAA,EACzF,cAAc,kCAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,cAAc,kCAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,gBAAgB,kCAAU,KAAK,YAAY,oDAAoD;AAAA,EAC/F,kBAAkB,kCAAU,KAAK,YAAY,sDAAsD;AAAA,EACnG,kBAAkB,kCAAU,KAAK;AAAA,IAC/B;AAAA,EACF;AAAA,EACA,oBAAoB,kCAAU,KAAK;AAAA,IACjC;AAAA,EACF;AAAA,EACA,mBAAmB,kCAAU,KAAK;AAAA,IAChC;AAAA,EACF;AAAA,EACA,0BAA0B,kCAAU,OAAO;AAAA,IACzC;AAAA,EACF;AAAA,EACA,0BAA0B,kCAAU,OACjC,YAAY,oGAAoG,EAChH,aAAa,qDAAqD;AAAA,EACrE,6BAA6B,kCAAU,OACpC;AAAA,IACC;AAAA,EACF,EACC,aAAa,UAAU;AAAA,EAC1B,iBAAiB,kCAAU,OACxB,YAAY,2EAA2E,EACvF,aAAa,GAAG;AAAA,EACnB,eAAe,kCAAU,OAAO,YAAY,sBAAsB,EAAE,aAAa,EAAE;AAAA,EACnF,OAAG,wDAA+B,4EAAkC;AACtE;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/propTypes.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport type { WeakValidationMap } from 'react';\nimport type React from 'react';\nimport {\n PropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n getPropsPerDatatestIdPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { ControlledDateTimePickerDatatestid } from './ControlledDateTimePickerDatatestid.js';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = (): void => {};\nconst defaultReturnFalse = (): false => false;\nexport declare namespace DSControlledDateTimePickerT {\n type DataTestIdType = typeof ControlledDateTimePickerDatatestid;\n // typescript type that rapresents the union of all the values for ControlledDateTimePickerDatatestid\n export type FlatDataTestIdValues = {\n [K in keyof DataTestIdType]: DataTestIdType[K] extends Record<string, unknown>\n ? DataTestIdType[K][keyof DataTestIdType[K]] // this is only 1 level deep, but it's enough for our needs right now\n : // can be extended to more levels if needed as follows:\n // ? DataTestIdType[K][keyof DataTestIdType[K]] extends Record<string, unknown>\n // ? DataTestIdType[K][keyof DataTestIdType[K]][keyof DataTestIdType[K][keyof DataTestIdType[K]]]\n // : DataTestIdType[K][keyof DataTestIdType[K]]\n DataTestIdType[K];\n }[keyof DataTestIdType];\n\n export type AriaAndDataPropsPerDataTestId = {\n [key in FlatDataTestIdValues]?: AriaAndDataPropsOrPropsGetter;\n };\n\n export type OnInternalValuesChangeEvent =\n | React.ChangeEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLButtonElement>\n | React.KeyboardEvent\n | React.MouseEvent<HTMLInputElement>\n | React.MouseEvent<HTMLButtonElement>;\n export type ControlTypes =\n | 'full-date-time'\n | 'date-time-inputs'\n | 'date-time-picker'\n | 'date-time-picker-controller-only'\n | 'full-date'\n | 'date-inputs'\n | 'date-picker'\n | 'date-picker-controller-only'\n | 'full-time'\n | 'time-inputs'\n | 'time-picker'\n | 'time-picker-controller-only';\n export interface InternalInputsChangeMetaInfo {\n isAutomaticFillTrigger?: boolean;\n isDayPresentInMonth?: boolean;\n isOutOfRangeDay?: boolean;\n isDisabledDay?: boolean;\n isDisabledTime?: boolean;\n suggestedErrorMsg?: string;\n newDateTimeString?: string;\n newDateString?: string;\n newTimeString?: string;\n }\n\n export type OnDateChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnDateTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnInternalInputsChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo?: InternalInputsChangeMetaInfo,\n ) => void;\n export type AppOnInputChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo: InternalInputsChangeMetaInfo,\n ) => void;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ DATE CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n export interface DefaultDateProps {\n onMonthChange: AppOnInputChange;\n onDayChange: AppOnInputChange;\n onYearChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledDay: BooleanGetter<string>;\n getIsOutOfRangeDay: BooleanGetter<string>;\n getIsStartRangeDay: BooleanGetter<string>;\n getIsDayInRange: BooleanGetter<string>;\n getIsEndRangeDay: BooleanGetter<string>;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalDatePickerProps extends AriaAndDataPropsPerDataTestId {\n emptyPickerStartingMonth?: string;\n onCalendarOpenFocusedDay?: string;\n pickerFooterMsg?: string;\n innerRef?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>;\n }\n export interface RequiredDatePickerProps {\n type: 'full-date' | 'date-inputs' | 'date-picker' | 'date-picker-controller-only';\n date: string;\n onDateChange: OnDateChange;\n }\n export type DatePickerProps = OptionalDatePickerProps & Partial<DefaultDateProps> & RequiredDatePickerProps;\n export type InternalDatePickerProps = OptionalDatePickerProps & DefaultDateProps & RequiredDatePickerProps;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ TIME CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n\n export interface DefaultTimeProps {\n onHourChange: AppOnInputChange;\n onMinuteChange: AppOnInputChange;\n onMeridiemChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledTime: BooleanGetter<string>;\n minutesInterval: number;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalTimePickerProps extends AriaAndDataPropsPerDataTestId {\n pickerFooterMsg?: string;\n onTimeWheelOpenStartingTime?: string;\n innerRef?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement>;\n }\n export interface RequiredTimePickerProps {\n type: 'full-time' | 'time-inputs' | 'time-picker' | 'time-picker-controller-only';\n time: string;\n onTimeChange: OnTimeChange;\n }\n export type TimePickerProps = OptionalTimePickerProps & Partial<DefaultTimeProps> & RequiredTimePickerProps;\n export type InternalTimePickerProps = OptionalTimePickerProps & DefaultTimeProps & RequiredTimePickerProps;\n\n /* -------------------- ---------------------- ------------------------*/\n /* -------------------- DATETIME CONFIGURATION ------------------------*/\n /* -------------------- ---------------------- ------------------------*/\n\n export type DefaultDateTimeProps = DefaultTimeProps &\n DefaultDateProps & {\n onDateChange: OnDateChange;\n onTimeChange: OnTimeChange;\n };\n export type OptionalDateTimeProps = AriaAndDataPropsPerDataTestId & OptionalTimePickerProps & OptionalDatePickerProps;\n export interface RequiredDateTimeProps {\n type: 'full-date-time' | 'date-time-inputs' | 'date-time-picker' | 'date-time-picker-controller-only';\n dateTime: string;\n onDateTimeChange: OnDateTimeChange;\n }\n\n export type DateTimePickerProps = Partial<DefaultDateTimeProps> & OptionalDateTimeProps & RequiredDateTimeProps;\n export type InternalDateTimePickerProps = DefaultDateTimeProps & OptionalDateTimeProps & RequiredDateTimeProps;\n\n /* ---------------------- ------------------- -------------------------*/\n /* ---------------------- FINAL CONFIGURATION -------------------------*/\n /* ---------------------- ------------------- -------------------------*/\n export type DefaultProps = DefaultDateTimeProps & { type: 'full-date-time' };\n export type Props = DateTimePickerProps | DatePickerProps | TimePickerProps;\n export type InternalProps = InternalDateTimePickerProps | InternalDatePickerProps | InternalTimePickerProps;\n}\n\nexport const defaultProps: DSControlledDateTimePickerT.DefaultProps = {\n type: 'full-date-time',\n onDateChange: noop,\n onMonthChange: noop,\n onDayChange: noop,\n onYearChange: noop,\n onTimeChange: noop,\n onHourChange: noop,\n onMinuteChange: noop,\n onMeridiemChange: noop,\n onPickerOpen: noop,\n onPickerClose: noop,\n getIsDisabledDay: defaultReturnFalse,\n getIsOutOfRangeDay: defaultReturnFalse,\n getIsStartRangeDay: defaultReturnFalse,\n getIsDayInRange: defaultReturnFalse,\n getIsEndRangeDay: defaultReturnFalse,\n getIsDisabledTime: defaultReturnFalse,\n minutesInterval: 1,\n isClearable: false,\n disabled: false,\n hasError: false,\n autoFocus: false,\n preventCloseOnSelection: false,\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n type: PropTypes.oneOf([\n 'full-date-time',\n 'date-time-inputs',\n 'date-time-picker',\n 'date-time-picker-controller-only',\n 'full-date',\n 'date-inputs',\n 'date-picker',\n 'date-picker-controller-only',\n 'full-time',\n 'time-inputs',\n 'time-picker',\n 'time-picker-controller-only',\n ])\n .description('Type of time form control to use')\n .defaultValue('full-date-time'),\n disabled: PropTypes.bool.description('wheter or not the input is disabled').defaultValue(false),\n isClearable: PropTypes.bool.description('with or without clearable button').defaultValue(false),\n dateTime: PropTypes.string.description('when using date-time types, this is the value of the controller'),\n date: PropTypes.string.description('when using date types, this is the value of the controller'),\n time: PropTypes.string.description('when using time types, this is the value of the controller'),\n onDateChange: PropTypes.func.description('(newDateString, metaInformations) => void'),\n onTimeChange: PropTypes.func.description('(newTimeString, metaInformations) => void'),\n onDateTimeChange: PropTypes.func.description('(newDateTimeString, metaInformations) => void'),\n onMonthChange: PropTypes.func.description('(newMonthString, event, metaInformations) => void'),\n onDayChange: PropTypes.func.description('(newDayString, event, metaInformations) => void'),\n onYearChange: PropTypes.func.description('(newYearString, event, metaInformations) => void'),\n onHourChange: PropTypes.func.description('(newHourString, event, metaInformations) => void'),\n onMinuteChange: PropTypes.func.description('(newMinuteString, event, metaInformations) => void'),\n onMeridiemChange: PropTypes.func.description('(newMeridiemString, event, metaInformations) => void'),\n getIsDisabledDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsOutOfRangeDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsDisabledTime: PropTypes.func.description(\n '(timeAsString) => true for marking as disabled, false for marking as valid',\n ),\n emptyPickerStartingMonth: PropTypes.string.description(\n 'which month to start the calendar on open, when value is empty, string following the \"MM/__/YYYY\" pattern',\n ),\n onCalendarOpenFocusedDay: PropTypes.string\n .description('which day to focus on calendar open when value is empty, string following the \"MM/DD/YYYY\" pattern')\n .defaultValue('if value is empty current month, else current month'),\n onTimeWheelOpenStartingTime: PropTypes.string\n .description(\n 'which day to start the timewheel on picker open when value is empty, string following the HH:MM AA\" pattern',\n )\n .defaultValue('01:00 AM'),\n minutesInterval: PropTypes.number\n .description('increments/decrements of minutes in time related controllers interactions')\n .defaultValue('1'),\n 'data-testid': PropTypes.string.description('Unique id for tests.').defaultValue(''),\n ...getPropsPerDatatestIdPropTypes(ControlledDateTimePickerDatatestid),\n} as WeakValidationMap<unknown>;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,0CAA0C;AAGnD,MAAM,OAAO,MAAY;AAAC;AAC1B,MAAM,qBAAqB,MAAa;AA4JjC,MAAM,eAAyD;AAAA,EACpE,MAAM;AAAA,EACN,cAAc;AAAA,EACd,eAAe;AAAA,EACf,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,yBAAyB;AAC3B;AAEO,MAAM,YAAY;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,UAAU,MAAM;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC,EACE,YAAY,kCAAkC,EAC9C,aAAa,gBAAgB;AAAA,EAChC,UAAU,UAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,aAAa,UAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EAC9F,UAAU,UAAU,OAAO,YAAY,iEAAiE;AAAA,EACxG,MAAM,UAAU,OAAO,YAAY,4DAA4D;AAAA,EAC/F,MAAM,UAAU,OAAO,YAAY,4DAA4D;AAAA,EAC/F,cAAc,UAAU,KAAK,YAAY,2CAA2C;AAAA,EACpF,cAAc,UAAU,KAAK,YAAY,2CAA2C;AAAA,EACpF,kBAAkB,UAAU,KAAK,YAAY,+CAA+C;AAAA,EAC5F,eAAe,UAAU,KAAK,YAAY,mDAAmD;AAAA,EAC7F,aAAa,UAAU,KAAK,YAAY,iDAAiD;AAAA,EACzF,cAAc,UAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,cAAc,UAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,gBAAgB,UAAU,KAAK,YAAY,oDAAoD;AAAA,EAC/F,kBAAkB,UAAU,KAAK,YAAY,sDAAsD;AAAA,EACnG,kBAAkB,UAAU,KAAK;AAAA,IAC/B;AAAA,EACF;AAAA,EACA,oBAAoB,UAAU,KAAK;AAAA,IACjC;AAAA,EACF;AAAA,EACA,mBAAmB,UAAU,KAAK;AAAA,IAChC;AAAA,EACF;AAAA,EACA,0BAA0B,UAAU,OAAO;AAAA,IACzC;AAAA,EACF;AAAA,EACA,0BAA0B,UAAU,OACjC,YAAY,oGAAoG,EAChH,aAAa,qDAAqD;AAAA,EACrE,6BAA6B,UAAU,OACpC;AAAA,IACC;AAAA,EACF,EACC,aAAa,UAAU;AAAA,EAC1B,iBAAiB,UAAU,OACxB,YAAY,2EAA2E,EACvF,aAAa,GAAG;AAAA,EACnB,eAAe,UAAU,OAAO,YAAY,sBAAsB,EAAE,aAAa,EAAE;AAAA,EACnF,GAAG,+BAA+B,kCAAkC;AACtE;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport type { WeakValidationMap } from 'react';\nimport type React from 'react';\nimport {\n PropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n getPropsPerDatatestIdPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { ControlledDateTimePickerDatatestid } from './ControlledDateTimePickerDatatestid.js';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = (): void => {};\nconst defaultReturnFalse = (): false => false;\nexport declare namespace DSControlledDateTimePickerT {\n type DataTestIdType = typeof ControlledDateTimePickerDatatestid;\n // typescript type that rapresents the union of all the values for ControlledDateTimePickerDatatestid\n export type FlatDataTestIdValues = {\n [K in keyof DataTestIdType]: DataTestIdType[K] extends Record<string, unknown>\n ? DataTestIdType[K][keyof DataTestIdType[K]] // this is only 1 level deep, but it's enough for our needs right now\n : // can be extended to more levels if needed as follows:\n // ? DataTestIdType[K][keyof DataTestIdType[K]] extends Record<string, unknown>\n // ? DataTestIdType[K][keyof DataTestIdType[K]][keyof DataTestIdType[K][keyof DataTestIdType[K]]]\n // : DataTestIdType[K][keyof DataTestIdType[K]]\n DataTestIdType[K];\n }[keyof DataTestIdType];\n\n export type AriaAndDataPropsPerDataTestId = {\n [key in FlatDataTestIdValues]?: AriaAndDataPropsOrPropsGetter;\n };\n\n export type OnInternalValuesChangeEvent =\n | React.ChangeEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLInputElement>\n | React.KeyboardEvent<HTMLButtonElement>\n | React.KeyboardEvent\n | React.MouseEvent<HTMLInputElement>\n | React.MouseEvent<HTMLButtonElement>;\n export type ControlTypes =\n | 'full-date-time'\n | 'date-time-inputs'\n | 'date-time-picker'\n | 'date-time-picker-controller-only'\n | 'full-date'\n | 'date-inputs'\n | 'date-picker'\n | 'date-picker-controller-only'\n | 'full-time'\n | 'time-inputs'\n | 'time-picker'\n | 'time-picker-controller-only';\n export interface InternalInputsChangeMetaInfo {\n isAutomaticFillTrigger?: boolean;\n isDayPresentInMonth?: boolean;\n isOutOfRangeDay?: boolean;\n isDisabledDay?: boolean;\n isDisabledTime?: boolean;\n suggestedErrorMsg?: string;\n newDateTimeString?: string;\n newDateString?: string;\n newTimeString?: string;\n }\n\n export type OnDateChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnDateTimeChange = (val: string, metaInfo: InternalInputsChangeMetaInfo) => void;\n export type OnInternalInputsChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo?: InternalInputsChangeMetaInfo,\n ) => void;\n export type AppOnInputChange = (\n val: string,\n e: OnInternalValuesChangeEvent,\n metaInfo: InternalInputsChangeMetaInfo,\n ) => void;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ DATE CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n export interface DefaultDateProps {\n onMonthChange: AppOnInputChange;\n onDayChange: AppOnInputChange;\n onYearChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledDay: BooleanGetter<string>;\n getIsOutOfRangeDay: BooleanGetter<string>;\n getIsStartRangeDay: BooleanGetter<string>;\n getIsDayInRange: BooleanGetter<string>;\n getIsEndRangeDay: BooleanGetter<string>;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalDatePickerProps extends AriaAndDataPropsPerDataTestId {\n emptyPickerStartingMonth?: string;\n onCalendarOpenFocusedDay?: string;\n pickerFooterMsg?: string;\n innerRef?:\n | React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>\n | ((ref: HTMLInputElement | HTMLButtonElement | null) => void);\n }\n export interface RequiredDatePickerProps {\n type: 'full-date' | 'date-inputs' | 'date-picker' | 'date-picker-controller-only';\n date: string;\n onDateChange: OnDateChange;\n }\n export type DatePickerProps = OptionalDatePickerProps & Partial<DefaultDateProps> & RequiredDatePickerProps;\n export type InternalDatePickerProps = OptionalDatePickerProps & DefaultDateProps & RequiredDatePickerProps;\n\n /* ------------------------ ------------------ ------------------------*/\n /* ------------------------ TIME CONFIGURATION ------------------------*/\n /* ------------------------ ------------------ ------------------------*/\n\n export interface DefaultTimeProps {\n onHourChange: AppOnInputChange;\n onMinuteChange: AppOnInputChange;\n onMeridiemChange: AppOnInputChange;\n onPickerOpen: NoopishFunc;\n onPickerClose: NoopishFunc;\n getIsDisabledTime: BooleanGetter<string>;\n minutesInterval: number;\n isClearable: boolean;\n disabled: boolean;\n hasError: boolean;\n autoFocus: boolean;\n preventCloseOnSelection: boolean;\n }\n export interface OptionalTimePickerProps extends AriaAndDataPropsPerDataTestId {\n pickerFooterMsg?: string;\n onTimeWheelOpenStartingTime?: string;\n innerRef?:\n | React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>\n | ((ref: HTMLInputElement | HTMLButtonElement | null) => void);\n }\n export interface RequiredTimePickerProps {\n type: 'full-time' | 'time-inputs' | 'time-picker' | 'time-picker-controller-only';\n time: string;\n onTimeChange: OnTimeChange;\n }\n export type TimePickerProps = OptionalTimePickerProps & Partial<DefaultTimeProps> & RequiredTimePickerProps;\n export type InternalTimePickerProps = OptionalTimePickerProps & DefaultTimeProps & RequiredTimePickerProps;\n\n /* -------------------- ---------------------- ------------------------*/\n /* -------------------- DATETIME CONFIGURATION ------------------------*/\n /* -------------------- ---------------------- ------------------------*/\n\n export type DefaultDateTimeProps = DefaultTimeProps &\n DefaultDateProps & {\n onDateChange: OnDateChange;\n onTimeChange: OnTimeChange;\n };\n export type OptionalDateTimeProps = AriaAndDataPropsPerDataTestId & OptionalTimePickerProps & OptionalDatePickerProps;\n export interface RequiredDateTimeProps {\n type: 'full-date-time' | 'date-time-inputs' | 'date-time-picker' | 'date-time-picker-controller-only';\n dateTime: string;\n onDateTimeChange: OnDateTimeChange;\n }\n\n export type DateTimePickerProps = Partial<DefaultDateTimeProps> & OptionalDateTimeProps & RequiredDateTimeProps;\n export type InternalDateTimePickerProps = DefaultDateTimeProps & OptionalDateTimeProps & RequiredDateTimeProps;\n\n /* ---------------------- ------------------- -------------------------*/\n /* ---------------------- FINAL CONFIGURATION -------------------------*/\n /* ---------------------- ------------------- -------------------------*/\n export type DefaultProps = DefaultDateTimeProps & { type: 'full-date-time' };\n export type Props = DateTimePickerProps | DatePickerProps | TimePickerProps;\n export type InternalProps = InternalDateTimePickerProps | InternalDatePickerProps | InternalTimePickerProps;\n}\n\nexport const defaultProps: DSControlledDateTimePickerT.DefaultProps = {\n type: 'full-date-time',\n onDateChange: noop,\n onMonthChange: noop,\n onDayChange: noop,\n onYearChange: noop,\n onTimeChange: noop,\n onHourChange: noop,\n onMinuteChange: noop,\n onMeridiemChange: noop,\n onPickerOpen: noop,\n onPickerClose: noop,\n getIsDisabledDay: defaultReturnFalse,\n getIsOutOfRangeDay: defaultReturnFalse,\n getIsStartRangeDay: defaultReturnFalse,\n getIsDayInRange: defaultReturnFalse,\n getIsEndRangeDay: defaultReturnFalse,\n getIsDisabledTime: defaultReturnFalse,\n minutesInterval: 1,\n isClearable: false,\n disabled: false,\n hasError: false,\n autoFocus: false,\n preventCloseOnSelection: false,\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n type: PropTypes.oneOf([\n 'full-date-time',\n 'date-time-inputs',\n 'date-time-picker',\n 'date-time-picker-controller-only',\n 'full-date',\n 'date-inputs',\n 'date-picker',\n 'date-picker-controller-only',\n 'full-time',\n 'time-inputs',\n 'time-picker',\n 'time-picker-controller-only',\n ])\n .description('Type of time form control to use')\n .defaultValue('full-date-time'),\n disabled: PropTypes.bool.description('wheter or not the input is disabled').defaultValue(false),\n isClearable: PropTypes.bool.description('with or without clearable button').defaultValue(false),\n dateTime: PropTypes.string.description('when using date-time types, this is the value of the controller'),\n date: PropTypes.string.description('when using date types, this is the value of the controller'),\n time: PropTypes.string.description('when using time types, this is the value of the controller'),\n onDateChange: PropTypes.func.description('(newDateString, metaInformations) => void'),\n onTimeChange: PropTypes.func.description('(newTimeString, metaInformations) => void'),\n onDateTimeChange: PropTypes.func.description('(newDateTimeString, metaInformations) => void'),\n onMonthChange: PropTypes.func.description('(newMonthString, event, metaInformations) => void'),\n onDayChange: PropTypes.func.description('(newDayString, event, metaInformations) => void'),\n onYearChange: PropTypes.func.description('(newYearString, event, metaInformations) => void'),\n onHourChange: PropTypes.func.description('(newHourString, event, metaInformations) => void'),\n onMinuteChange: PropTypes.func.description('(newMinuteString, event, metaInformations) => void'),\n onMeridiemChange: PropTypes.func.description('(newMeridiemString, event, metaInformations) => void'),\n getIsDisabledDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsOutOfRangeDay: PropTypes.func.description(\n '(dayAsString) => true for marking as disabled, false for marking as valid',\n ),\n getIsDisabledTime: PropTypes.func.description(\n '(timeAsString) => true for marking as disabled, false for marking as valid',\n ),\n emptyPickerStartingMonth: PropTypes.string.description(\n 'which month to start the calendar on open, when value is empty, string following the \"MM/__/YYYY\" pattern',\n ),\n onCalendarOpenFocusedDay: PropTypes.string\n .description('which day to focus on calendar open when value is empty, string following the \"MM/DD/YYYY\" pattern')\n .defaultValue('if value is empty current month, else current month'),\n onTimeWheelOpenStartingTime: PropTypes.string\n .description(\n 'which day to start the timewheel on picker open when value is empty, string following the HH:MM AA\" pattern',\n )\n .defaultValue('01:00 AM'),\n minutesInterval: PropTypes.number\n .description('increments/decrements of minutes in time related controllers interactions')\n .defaultValue('1'),\n 'data-testid': PropTypes.string.description('Unique id for tests.').defaultValue(''),\n ...getPropsPerDatatestIdPropTypes(ControlledDateTimePickerDatatestid),\n} as WeakValidationMap<unknown>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,0CAA0C;AAGnD,MAAM,OAAO,MAAY;AAAC;AAC1B,MAAM,qBAAqB,MAAa;AAgKjC,MAAM,eAAyD;AAAA,EACpE,MAAM;AAAA,EACN,cAAc;AAAA,EACd,eAAe;AAAA,EACf,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,yBAAyB;AAC3B;AAEO,MAAM,YAAY;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,UAAU,MAAM;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC,EACE,YAAY,kCAAkC,EAC9C,aAAa,gBAAgB;AAAA,EAChC,UAAU,UAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,aAAa,UAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EAC9F,UAAU,UAAU,OAAO,YAAY,iEAAiE;AAAA,EACxG,MAAM,UAAU,OAAO,YAAY,4DAA4D;AAAA,EAC/F,MAAM,UAAU,OAAO,YAAY,4DAA4D;AAAA,EAC/F,cAAc,UAAU,KAAK,YAAY,2CAA2C;AAAA,EACpF,cAAc,UAAU,KAAK,YAAY,2CAA2C;AAAA,EACpF,kBAAkB,UAAU,KAAK,YAAY,+CAA+C;AAAA,EAC5F,eAAe,UAAU,KAAK,YAAY,mDAAmD;AAAA,EAC7F,aAAa,UAAU,KAAK,YAAY,iDAAiD;AAAA,EACzF,cAAc,UAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,cAAc,UAAU,KAAK,YAAY,kDAAkD;AAAA,EAC3F,gBAAgB,UAAU,KAAK,YAAY,oDAAoD;AAAA,EAC/F,kBAAkB,UAAU,KAAK,YAAY,sDAAsD;AAAA,EACnG,kBAAkB,UAAU,KAAK;AAAA,IAC/B;AAAA,EACF;AAAA,EACA,oBAAoB,UAAU,KAAK;AAAA,IACjC;AAAA,EACF;AAAA,EACA,mBAAmB,UAAU,KAAK;AAAA,IAChC;AAAA,EACF;AAAA,EACA,0BAA0B,UAAU,OAAO;AAAA,IACzC;AAAA,EACF;AAAA,EACA,0BAA0B,UAAU,OACjC,YAAY,oGAAoG,EAChH,aAAa,qDAAqD;AAAA,EACrE,6BAA6B,UAAU,OACpC;AAAA,IACC;AAAA,EACF,EACC,aAAa,UAAU;AAAA,EAC1B,iBAAiB,UAAU,OACxB,YAAY,2EAA2E,EACvF,aAAa,GAAG;AAAA,EACnB,eAAe,UAAU,OAAO,YAAY,sBAAsB,EAAE,aAAa,EAAE;AAAA,EACnF,GAAG,+BAA+B,kCAAkC;AACtE;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { DSControlledDateTimePickerT } from './propTypes.js';
3
+ declare const DSControlledDateTimePicker: {
4
+ (props: DSControlledDateTimePickerT.Props): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const DSControlledDateTimePickerWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSControlledDateTimePickerT.Props>;
8
+ export { DSControlledDateTimePickerWithSchema, DSControlledDateTimePicker };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { ControlledDateTimePickerContextT } from './config/useControlledDateTimePicker.js';
3
+ /** Context for cross component communication */
4
+ export declare const ControlledDateTimePickerContext: import("react").Context<ControlledDateTimePickerContextT>;
5
+ export default ControlledDateTimePickerContext;
@@ -0,0 +1,63 @@
1
+ export declare const ControlledDateTimePickerDatatestid: {
2
+ readonly CONTAINER: "ds-controlled-date-time-picker-container";
3
+ readonly DATE_INPUTS: {
4
+ readonly MONTH: "ds-controlled-date-time-picker-month-input";
5
+ readonly DAY: "ds-controlled-date-time-picker-day-input";
6
+ readonly YEAR: "ds-controlled-date-time-picker-year-input";
7
+ };
8
+ readonly TIME_INPUTS: {
9
+ readonly HOUR: "ds-controlled-date-time-picker-hour-input";
10
+ readonly MINUTE: "ds-controlled-date-time-picker-minute-input";
11
+ readonly MERIDIEM: "ds-controlled-date-time-picker-meridiem-input";
12
+ };
13
+ readonly PICKER_ICONS: {
14
+ readonly CALENDAR: "ds-controlled-date-time-picker-calendar-trigger-icon";
15
+ readonly TIMEWHEEL: "ds-controlled-date-time-picker-timewheel-trigger-icon";
16
+ readonly CALENDAR_TIMEWHEEL: "ds-controlled-date-time-picker-calendar-timewheel-trigger-icon";
17
+ };
18
+ readonly CALENDAR: {
19
+ readonly HEADER_LABEL: "ds-controlled-date-time-picker-calendar-header-label";
20
+ readonly PREV_YEAR: "ds-controlled-date-time-picker-calendar-prev-year";
21
+ readonly PREV_MONTH: "ds-controlled-date-time-picker-calendar-prev-month";
22
+ readonly DAY: "ds-controlled-date-time-picker-calendar-day";
23
+ readonly FOCUSED_DAY: "ds-controlled-date-time-picker-calendar-focused-day";
24
+ readonly START_RANGE_DAY: "ds-controlled-date-time-picker-calendar-start-range-day";
25
+ readonly IN_RANGE_DAY: "ds-controlled-date-time-picker-calendar-in-range-day";
26
+ readonly END_RANGE_DAY: "ds-controlled-date-time-picker-calendar-end-range-day";
27
+ readonly SELECTED_DAY: "ds-controlled-date-time-picker-calendar-selected-day";
28
+ readonly SELECTED_FOCUSED_DAY: "ds-controlled-date-time-picker-calendar-selected-focused-day";
29
+ readonly NEXT_MONTH: "ds-controlled-date-time-picker-calendar-next-month";
30
+ readonly NEXT_YEAR: "ds-controlled-date-time-picker-calendar-next-year";
31
+ };
32
+ readonly TIMEWHEEL: {
33
+ readonly HEADER_LABEL: "ds-controlled-date-time-picker-timewheel-header-label";
34
+ readonly PREV_HOUR: "ds-controlled-date-time-picker-timewheel-prev-hour";
35
+ readonly HOUR: "ds-controlled-date-time-picker-timewheel-hour";
36
+ readonly CURRENT_HOUR: "ds-controlled-date-time-picker-timewheel-current-hour";
37
+ readonly NEXT_HOUR: "ds-controlled-date-time-picker-timewheel-next-hour";
38
+ readonly PREV_MINUTE: "ds-controlled-date-time-picker-timewheel-prev-minute";
39
+ readonly MINUTE: "ds-controlled-date-time-picker-timewheel-minute";
40
+ readonly CURRENT_MINUTE: "ds-controlled-date-time-picker-timewheel-current-minute";
41
+ readonly NEXT_MINUTE: "ds-controlled-date-time-picker-timewheel-next-minute";
42
+ readonly PREV_MERIDIEM: "ds-controlled-date-time-picker-timewheel-prev-meridiem";
43
+ readonly MERIDIEM: "ds-controlled-date-time-picker-timewheel-meridiem";
44
+ readonly CURRENT_MERIDIEM: "ds-controlled-date-time-picker-timewheel-current-meridiem";
45
+ readonly NEXT_MERIDIEM: "ds-controlled-date-time-picker-timewheel-next-meridiem";
46
+ };
47
+ readonly CONTEXTUAL_MENU: {
48
+ readonly CALENDAR: "ds-controlled-date-time-picker-calendar-context-content-wrapper";
49
+ readonly TIMEWHEEL: "ds-controlled-date-time-picker-timewheel-context-content-wrapper";
50
+ readonly CALENDAR_TIMEWHEEL: "ds-controlled-date-time-picker-calendar-timewheel-context-content-wrapper";
51
+ };
52
+ readonly CONTROLLER_COMPONENT: {
53
+ readonly CALENDAR: "ds-controlled-date-time-picker-calendar-controller-wrapper";
54
+ readonly TIMEWHEEL: "ds-controlled-date-time-picker-timewheel-controller-wrapper";
55
+ readonly CALENDAR_TIMEWHEEL: "ds-controlled-date-time-picker-calendar-timewheel-controller-wrapper";
56
+ };
57
+ readonly FOOTERS: {
58
+ readonly CALENDAR: "ds-controlled-date-time-picker-calendar-context-footer";
59
+ readonly TIMEWHEEL: "ds-controlled-date-time-picker-timewheel-context-footer";
60
+ readonly CALENDAR_TIMEWHEEL: "ds-controlled-date-time-picker-calendar-timewheel-context-footer";
61
+ };
62
+ readonly CLEAR_BUTTON: "ds-controlled-date-time-picker-clear-btn";
63
+ };
@@ -0,0 +1,20 @@
1
+ export declare const CONTROLLED_DATE_TIME_PICKER_TYPES: {
2
+ readonly DATE_TIME: {
3
+ readonly FULL: "full-date-time";
4
+ readonly CONTROLLER_ONLY: "date-time-picker-controller-only";
5
+ readonly PICKER: "date-time-picker";
6
+ readonly INPUTS: "date-time-inputs";
7
+ };
8
+ readonly DATE: {
9
+ readonly FULL: "full-date";
10
+ readonly CONTROLLER_ONLY: "date-picker-controller-only";
11
+ readonly PICKER: "date-picker";
12
+ readonly INPUTS: "date-inputs";
13
+ };
14
+ readonly TIME: {
15
+ readonly FULL: "full-time";
16
+ readonly CONTROLLER_ONLY: "time-picker-controller-only";
17
+ readonly PICKER: "time-picker";
18
+ readonly INPUTS: "time-inputs";
19
+ };
20
+ };
@@ -0,0 +1,27 @@
1
+ import type { useRelevantValueFromProps } from './useRelevantValueFromProps.js';
2
+ import type { useGetDestructuredValues } from './useGetDestructuredValues.js';
3
+ import type { useGetPropsBasedOnType } from './useGetPropsBasedOnType.js';
4
+ import type { useGetReferences } from './useGetReferences.js';
5
+ import type { useFocusTracker } from './useFocusTracker.js';
6
+ import type { DSControlledDateTimePickerT } from '../propTypes.js';
7
+ import type { DSControlledDateTimePickerInternalsT } from '../sharedTypes.js';
8
+ interface Config {
9
+ relevantValues: ReturnType<typeof useRelevantValueFromProps>;
10
+ destructuredValues: ReturnType<typeof useGetDestructuredValues>;
11
+ propsBasedOnType: ReturnType<typeof useGetPropsBasedOnType>;
12
+ DOMRefs: ReturnType<typeof useGetReferences>;
13
+ focusTrackers: ReturnType<typeof useFocusTracker>;
14
+ }
15
+ export declare const useChangeHandlers: ({ relevantValues, destructuredValues, propsBasedOnType, focusTrackers }: Config) => {
16
+ handleChangeComposedDateTimeString: (newDateString: string, newTimeString: string, metaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo) => void;
17
+ handleChangeComposedDateString: (newDateString: string, metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => void;
18
+ handleChangeComposedTimeString: (newTimeString: string, metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => void;
19
+ handleChangeMonth: DSControlledDateTimePickerT.OnInternalInputsChange;
20
+ handleChangeDay: DSControlledDateTimePickerT.OnInternalInputsChange;
21
+ handleChangeYear: DSControlledDateTimePickerT.OnInternalInputsChange;
22
+ handleChangeHours: DSControlledDateTimePickerT.OnInternalInputsChange;
23
+ handleChangeMinutes: DSControlledDateTimePickerT.OnInternalInputsChange;
24
+ handleChangeMeridiem: DSControlledDateTimePickerT.OnInternalInputsChange;
25
+ handleClearAll: DSControlledDateTimePickerInternalsT.OnDSBtnClick;
26
+ };
27
+ export {};
@@ -0,0 +1,16 @@
1
+ import { useFocusTracker } from './useFocusTracker.js';
2
+ import { useGetFlags } from './useGetFlags.js';
3
+ import { useGetReferences } from './useGetReferences.js';
4
+ import { useRelevantValueFromProps } from './useRelevantValueFromProps.js';
5
+ import { useGetPropsBasedOnType } from './useGetPropsBasedOnType.js';
6
+ import { useGetDestructuredValues } from './useGetDestructuredValues.js';
7
+ import { useChangeHandlers } from './useChangeHandlers.js';
8
+ import { useGlobalKeyHandlers } from './useGlobalKeyHandlers.js';
9
+ import type { DSControlledDateTimePickerT } from '../propTypes.js';
10
+ export type ControlledDateTimePickerContextT = ReturnType<typeof useGetFlags> & ReturnType<typeof useFocusTracker> & ReturnType<typeof useGetReferences> & ReturnType<typeof useGetPropsBasedOnType> & ReturnType<typeof useRelevantValueFromProps> & ReturnType<typeof useGetDestructuredValues> & ReturnType<typeof useChangeHandlers> & ReturnType<typeof useGlobalKeyHandlers> & {
11
+ props: DSControlledDateTimePickerT.InternalProps;
12
+ ariaCurrentValueForInputs: string;
13
+ globalAttrs: Record<string, unknown>;
14
+ xstyledAttrs: Record<string, unknown>;
15
+ };
16
+ export declare const useControlledDateTimePicker: (props: DSControlledDateTimePickerT.Props) => ControlledDateTimePickerContextT;
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ import type { useGetReferences } from './useGetReferences.js';
3
+ import type { useGetFlags } from './useGetFlags.js';
4
+ type LatestInteractionRegion = 'calendar-days' | 'calendar-head' | 'timewheel' | 'date-inputs' | 'time-inputs' | 'clear-btn' | 'picker-icon' | '';
5
+ type CurrFocusDescriber = 'first-segment' | 'month-input' | 'day-input' | 'year-input' | 'hour-input' | 'minute-input' | 'meridiem-input' | 'last-segment' | 'clear-btn' | 'date-picker-icon' | 'time-picker-icon' | 'datetime-picker-icon' | 'calendar-prev-month' | 'calendar-next-month' | 'calendar-prev-year' | 'calendar-next-year' | 'calendar-metafocused-day' | 'timewheel-curr-hour' | 'timewheel-curr-minute' | 'timewheel-curr-meridiem' | '';
6
+ interface Config {
7
+ DOMRefs: ReturnType<typeof useGetReferences>;
8
+ flags: ReturnType<typeof useGetFlags>;
9
+ }
10
+ export declare const useFocusTracker: ({ DOMRefs, flags }: Config) => {
11
+ latestInteractionRegion: LatestInteractionRegion;
12
+ setLatestInteractionRegion: import("react").Dispatch<import("react").SetStateAction<LatestInteractionRegion>>;
13
+ currFocusDescriber: CurrFocusDescriber;
14
+ setCurrFocusDescriber: import("react").Dispatch<import("react").SetStateAction<CurrFocusDescriber>>;
15
+ trackFocusResetter: () => void;
16
+ trackFocusMonthInput: () => void;
17
+ trackFocusDayInput: () => void;
18
+ trackFocusYearInput: () => void;
19
+ trackFocusHourInput: () => void;
20
+ trackFocusMinuteInput: () => void;
21
+ trackFocusMeridiemInput: () => void;
22
+ trackFocusClearBtn: () => void;
23
+ trackFocusDatePickerIcon: () => void;
24
+ trackFocusTimePickerIcon: () => void;
25
+ trackFocusDatetimePickerIcon: () => void;
26
+ trackFocusCalendarPrevMonth: () => void;
27
+ trackFocusCalendarNextMonth: () => void;
28
+ trackFocusCalendarPrevYear: () => void;
29
+ trackFocusCalendarNextYear: () => void;
30
+ trackFocusCalendarMetafocusedDay: () => void;
31
+ trackFocusTimewheelCurrHour: () => void;
32
+ trackFocusTimewheelCurrMinute: () => void;
33
+ trackFocusTimewheelCurrMeridiem: () => void;
34
+ trackFocusPicker: () => void;
35
+ trackFocusFirstSegment: () => void;
36
+ trackFocusLastSegment: () => void;
37
+ };
38
+ export {};
@@ -0,0 +1,30 @@
1
+ import type { useGetFlags } from './useGetFlags.js';
2
+ import type { useGetPropsBasedOnType } from './useGetPropsBasedOnType.js';
3
+ type UseGetDestructuredDateValues = (config: ReturnType<typeof useGetPropsBasedOnType> & ReturnType<typeof useGetFlags>) => {
4
+ month: string;
5
+ day: string;
6
+ year: string;
7
+ monthNum: number;
8
+ dayNum: number;
9
+ yearNum: number;
10
+ announcedMonth: string;
11
+ announcedDay: string;
12
+ announcedYear: string;
13
+ announcedDateValues: string;
14
+ };
15
+ export declare const useGetDestructuredDateValues: UseGetDestructuredDateValues;
16
+ type UseGetDestructuredTimeValues = (config: ReturnType<typeof useGetPropsBasedOnType> & ReturnType<typeof useGetFlags>) => {
17
+ hours: string;
18
+ minutes: string;
19
+ meridiem: string;
20
+ hoursNum: number;
21
+ minutesNum: number;
22
+ announcedHours: string;
23
+ announcedMinutes: string;
24
+ announcedMeridiem: string;
25
+ announcedTimeValues: string;
26
+ };
27
+ export declare const useGetDestructuredTimeValues: UseGetDestructuredTimeValues;
28
+ type UseGetDestructuredValues = (config: ReturnType<typeof useGetPropsBasedOnType> & ReturnType<typeof useGetFlags>) => ReturnType<typeof useGetDestructuredDateValues> & ReturnType<typeof useGetDestructuredTimeValues>;
29
+ export declare const useGetDestructuredValues: UseGetDestructuredValues;
30
+ export {};
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import type { DSControlledDateTimePickerT } from '../propTypes.js';
3
+ export declare const useGetFlags: (props: DSControlledDateTimePickerT.InternalProps) => {
4
+ hideDatePicker: boolean;
5
+ hideTimePicker: boolean;
6
+ isDateSelector: boolean;
7
+ isTimeSelector: boolean;
8
+ isDateTimeSelector: boolean;
9
+ isWithDateInputsOnly: boolean;
10
+ isWithTimeInputsOnly: boolean;
11
+ autoFocusHourInput: boolean;
12
+ autoFocusHourTimeWheel: boolean;
13
+ hideDate: boolean;
14
+ hideTime: boolean;
15
+ hideDateTimePicker: boolean;
16
+ isControllerOnly: boolean;
17
+ isWithTimeWheelToo: boolean;
18
+ isWithCalendarToo: boolean;
19
+ withAnyInputs: boolean;
20
+ withAnyPicker: boolean;
21
+ withClearBtn: boolean;
22
+ isWithDateInputs: boolean;
23
+ isWithTimeInputs: boolean;
24
+ autoFocusMonthInput: boolean;
25
+ autoFocusPrevMonthArrow: boolean;
26
+ innerRefMonthInput: import("react").MutableRefObject<HTMLInputElement | HTMLButtonElement | null> | (((ref: HTMLInputElement | HTMLButtonElement | null) => void) & ((ref: HTMLInputElement | HTMLButtonElement | null) => void)) | undefined;
27
+ innerRefPrevMonthArrow: import("react").MutableRefObject<HTMLInputElement | HTMLButtonElement | null> | (((ref: HTMLInputElement | HTMLButtonElement | null) => void) & ((ref: HTMLInputElement | HTMLButtonElement | null) => void)) | undefined;
28
+ shouldPreserveClearableSpace: boolean;
29
+ withAnyRightController: boolean;
30
+ };
@@ -0,0 +1,28 @@
1
+ import type { DSControlledDateTimePickerT } from '../propTypes.js';
2
+ export declare const useGetPropsBasedOnType: (propsWithDefaults: DSControlledDateTimePickerT.InternalProps) => {
3
+ getIsDisabledDay: BooleanGetter<string>;
4
+ getIsOutOfRangeDay: BooleanGetter<string>;
5
+ getIsStartRangeDay: BooleanGetter<string> | (() => void);
6
+ getIsDayInRange: BooleanGetter<string> | (() => void);
7
+ getIsEndRangeDay: BooleanGetter<string> | (() => void);
8
+ appOnDateChange: DSControlledDateTimePickerT.OnDateChange;
9
+ appOnMonthChange: DSControlledDateTimePickerT.AppOnInputChange;
10
+ appOnDayChange: DSControlledDateTimePickerT.AppOnInputChange;
11
+ appOnYearChange: DSControlledDateTimePickerT.AppOnInputChange;
12
+ appDate: string;
13
+ getIsDisabledTime: BooleanGetter<string>;
14
+ appOnTimeChange: DSControlledDateTimePickerT.OnTimeChange;
15
+ appOnHourChange: DSControlledDateTimePickerT.AppOnInputChange;
16
+ appOnMinuteChange: DSControlledDateTimePickerT.AppOnInputChange;
17
+ appOnMeridiemChange: DSControlledDateTimePickerT.AppOnInputChange;
18
+ appTime: string;
19
+ appDateTime: string;
20
+ appOnDateTimeChange: DSControlledDateTimePickerT.OnDateTimeChange;
21
+ emptyPickerStartingMonth: string;
22
+ onCalendarOpenFocusedDay: string | undefined;
23
+ minutesInterval: number;
24
+ onTimeWheelOpenStartingTime: string;
25
+ isDate: boolean;
26
+ isTime: boolean;
27
+ isDateTime: boolean;
28
+ };
@@ -0,0 +1,2 @@
1
+ import type { DSControlledDateTimePickerT } from '../propTypes.js';
2
+ export declare const useGetDatePickerWithDefaultsProps: (props: DSControlledDateTimePickerT.Props) => DSControlledDateTimePickerT.InternalProps;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import type { useGetFlags } from './useGetFlags.js';
3
+ type FirstSegment = 'month-input' | 'hour-input' | 'date-picker-icon' | 'time-picker-icon' | 'datetime-picker-icon' | '';
4
+ type LastSegment = 'year-input' | 'meridiem-input' | 'clear-btn' | 'date-picker-icon' | 'time-picker-icon' | 'datetime-picker-icon' | '';
5
+ export declare const useGetReferences: ({ isWithDateInputs, isWithTimeInputs, isDateSelector, isTimeSelector, isDateTimeSelector, withAnyPicker, withClearBtn, }: ReturnType<typeof useGetFlags>) => {
6
+ monthInputRef: import("react").MutableRefObject<HTMLInputElement>;
7
+ dayInputRef: import("react").MutableRefObject<HTMLInputElement>;
8
+ yearInputRef: import("react").MutableRefObject<HTMLInputElement>;
9
+ hourInputRef: import("react").MutableRefObject<HTMLInputElement>;
10
+ minutesInputRef: import("react").MutableRefObject<HTMLInputElement>;
11
+ meridiemInputRef: import("react").MutableRefObject<HTMLInputElement>;
12
+ clearButtonRef: import("react").MutableRefObject<HTMLButtonElement>;
13
+ pickerButtonRef: import("react").MutableRefObject<HTMLButtonElement>;
14
+ prevYearBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
15
+ prevMonthBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
16
+ nextMonthBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
17
+ nextYearBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
18
+ calendarDaysWrapperRef: import("react").MutableRefObject<HTMLDivElement>;
19
+ prevHourBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
20
+ currHourBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
21
+ nextHourBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
22
+ prevMinutesBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
23
+ currMinutesBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
24
+ nextMinutesBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
25
+ prevMeridiemBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
26
+ currMeridiemBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
27
+ nextMeridiemBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
28
+ firstSegmentRef: import("react").MutableRefObject<HTMLInputElement | HTMLButtonElement>;
29
+ lastSegmentRef: import("react").MutableRefObject<HTMLInputElement | HTMLButtonElement>;
30
+ firstSegment: FirstSegment;
31
+ lastSegment: LastSegment;
32
+ };
33
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { useChangeHandlers } from './useChangeHandlers.js';
2
+ import type { useGetPropsBasedOnType } from './useGetPropsBasedOnType.js';
3
+ import type { useGetReferences } from './useGetReferences.js';
4
+ import type { useGetFlags } from './useGetFlags.js';
5
+ import type { useFocusTracker } from './useFocusTracker.js';
6
+ import type { DSControlledDateTimePickerT } from '../propTypes.js';
7
+ interface Config {
8
+ propsBasedOnType: ReturnType<typeof useGetPropsBasedOnType>;
9
+ changeHandlers: ReturnType<typeof useChangeHandlers>;
10
+ DOMRefs: ReturnType<typeof useGetReferences>;
11
+ flags: ReturnType<typeof useGetFlags>;
12
+ focusTrackers: ReturnType<typeof useFocusTracker>;
13
+ }
14
+ export declare const useGlobalKeyHandlers: ({ propsBasedOnType, changeHandlers, focusTrackers, flags }: Config) => {
15
+ onFillWithCurrentDateKeys: (e: React.KeyboardEvent<HTMLInputElement | HTMLButtonElement>, metaInfo?: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => void;
16
+ onGlobalKeyDown: (e: React.KeyboardEvent<HTMLInputElement | HTMLButtonElement>) => void;
17
+ };
18
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { DSControlledDateTimePickerT } from '../propTypes.js';
3
+ export declare const useRelevantValueFromProps: (props: DSControlledDateTimePickerT.InternalProps) => {
4
+ dateStringFromProps: string;
5
+ timeStringFromProps: string;
6
+ tempDateString: string;
7
+ setTempDateString: import("react").Dispatch<import("react").SetStateAction<string>>;
8
+ tempTimeString: string;
9
+ setTimeString: import("react").Dispatch<import("react").SetStateAction<string>>;
10
+ };
@@ -0,0 +1,2 @@
1
+ import type { DSControlledDateTimePickerT } from '../propTypes.js';
2
+ export declare const useValidateProps: (props: DSControlledDateTimePickerT.Props) => void;
@@ -0,0 +1,37 @@
1
+ export declare const DSControlledDateTimePickerName = "DSControlledDateTimePicker";
2
+ export declare const DSControlledDateTimePickerSlots: {
3
+ CONTAINER: string;
4
+ INPUT: string;
5
+ PICKER_ICONS: {
6
+ CALENDAR: string;
7
+ TIMEWHEEL: string;
8
+ CALENDAR_TIMEWHEEL: string;
9
+ };
10
+ CALENDAR: {
11
+ DAY_BUTTON: string;
12
+ HEADER_LABEL: string;
13
+ HEADER_BUTTON: string;
14
+ HEADER_WEEKLY_DAY_LIST: string;
15
+ };
16
+ TIMEWHEEL: {
17
+ TIME_BUTTON: string;
18
+ TIME_CHANGE_BUTTON: string;
19
+ HEADER_LABEL: string;
20
+ };
21
+ CONTEXTUAL_MENU: {
22
+ CALENDAR: string;
23
+ TIMEWHEEL: string;
24
+ CALENDAR_TIMEWHEEL: string;
25
+ };
26
+ FOOTERS: {
27
+ CALENDAR: string;
28
+ TIMEWHEEL: string;
29
+ CALENDAR_TIMEWHEEL: string;
30
+ };
31
+ CONTROLLER_COMPONENT: {
32
+ CALENDAR: string;
33
+ TIMEWHEEL: string;
34
+ CALENDAR_TIMEWHEEL: string;
35
+ };
36
+ CLEAR_BUTTON: string;
37
+ };
@@ -0,0 +1,9 @@
1
+ export { DSControlledDateTimePickerWithSchema, DSControlledDateTimePicker } from './ControlledDateTimePicker.js';
2
+ export { ControlledDateTimePickerDatatestid } from './ControlledDateTimePickerDatatestid.js';
3
+ export { CONTROLLED_DATE_TIME_PICKER_TYPES } from './ControlledDateTimePickerTypes.js';
4
+ export { deconstructValuesFromDateString, prependStringWithPlaceHolders } from './utils/stringHelpers.js';
5
+ export { getValidationDateTimeStringMetaInfo } from './utils/dateTimeHelpers.js';
6
+ export { getValidationDateStringMetaInfo, getDateStringFromDay, getDayFromDateString, getDateValuesFromDate, } from './utils/dateHelpers.js';
7
+ export { getValidationTimeStringMetaInfo } from './utils/timeHelpers.js';
8
+ export { DSControlledDateTimePickerName, DSControlledDateTimePickerSlots } from './exported-related/theming.js';
9
+ export { type DSControlledDateTimePickerT } from './propTypes.js';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ClearButton: () => JSX.Element;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes.js';
3
+ interface UseOnClearClickR {
4
+ onClearClick: DSControlledDateTimePickerInternalsT.OnDSBtnClick;
5
+ onClearButtonKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown<HTMLButtonElement>;
6
+ clearButtonRef: React.MutableRefObject<HTMLButtonElement | null>;
7
+ withAnyPicker: boolean;
8
+ withClearBtn: boolean;
9
+ }
10
+ export declare const useClearButton: () => UseOnClearClickR;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ControlledDateTimePickerContent: () => JSX.Element;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes.js';
3
+ interface DDInputsPropsT {
4
+ onChange: DSControlledDateTimePickerInternalsT.OnChangeFunc;
5
+ onBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc;
6
+ onFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc;
7
+ onKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown;
8
+ value: string;
9
+ disabled: boolean;
10
+ placeholder: string;
11
+ ariaCurrentValueForInputs: string;
12
+ contextRef: React.MutableRefObject<HTMLInputElement | null>;
13
+ isFocused: boolean;
14
+ ariaAndDataProps?: AriaAndDataProps;
15
+ }
16
+ export declare const DDInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, contextRef, placeholder, ariaCurrentValueForInputs, isFocused, ariaAndDataProps, }: DDInputsPropsT) => JSX.Element>;
17
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const DateInputs: () => JSX.Element;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes.js';
3
+ interface MMInputsPropsT {
4
+ onChange: DSControlledDateTimePickerInternalsT.OnChangeFunc;
5
+ onBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc;
6
+ onFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc;
7
+ onKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown;
8
+ autoFocusMonthInput: boolean;
9
+ value: string;
10
+ disabled: boolean;
11
+ contextRef: React.MutableRefObject<HTMLInputElement | null>;
12
+ placeholder: string;
13
+ ariaCurrentValueForInputs: string;
14
+ isFocused: boolean;
15
+ innerRef?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>;
16
+ ariaAndDataProps?: AriaAndDataProps;
17
+ }
18
+ export declare const MMInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, innerRef, autoFocusMonthInput, ariaCurrentValueForInputs, isFocused, ariaAndDataProps, }: MMInputsPropsT) => JSX.Element>;
19
+ export {};