@elliemae/ds-form-date-time-picker 3.16.0-next.2 → 3.16.0-next.4

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 (160) hide show
  1. package/dist/cjs/ControlledDateTimePicker.js +2 -2
  2. package/dist/cjs/ControlledDateTimePicker.js.map +2 -2
  3. package/dist/cjs/config/useChangeHandlers.js.map +2 -2
  4. package/dist/cjs/config/useControlledDateTimePicker.js +3 -3
  5. package/dist/cjs/config/useControlledDateTimePicker.js.map +2 -2
  6. package/dist/cjs/config/useGetFlags.js +6 -6
  7. package/dist/cjs/config/useGetFlags.js.map +2 -2
  8. package/dist/cjs/config/useGetPropsWithDefault.js +2 -2
  9. package/dist/cjs/config/useGetPropsWithDefault.js.map +2 -2
  10. package/dist/cjs/package.json +7 -0
  11. package/dist/cjs/parts/ClearButton/ClearButton.js +8 -2
  12. package/dist/cjs/parts/ClearButton/ClearButton.js.map +3 -3
  13. package/dist/cjs/parts/ControlledDateTimePickerContent.js +8 -1
  14. package/dist/cjs/parts/ControlledDateTimePickerContent.js.map +3 -3
  15. package/dist/cjs/parts/DateInputs/DDInput.js +4 -2
  16. package/dist/cjs/parts/DateInputs/DDInput.js.map +2 -2
  17. package/dist/cjs/parts/DateInputs/DateInputs.js +23 -5
  18. package/dist/cjs/parts/DateInputs/DateInputs.js.map +3 -3
  19. package/dist/cjs/parts/DateInputs/MMInput.js +4 -2
  20. package/dist/cjs/parts/DateInputs/MMInput.js.map +2 -2
  21. package/dist/cjs/parts/DateInputs/YYYYInput.js +4 -2
  22. package/dist/cjs/parts/DateInputs/YYYYInput.js.map +2 -2
  23. package/dist/cjs/parts/DateInputs/useDateInputs.js +1 -1
  24. package/dist/cjs/parts/DateInputs/useDateInputs.js.map +2 -2
  25. package/dist/cjs/parts/Pickers/Calendar/Calendar.js.map +2 -2
  26. package/dist/cjs/parts/Pickers/Calendar/CalendarContent.js +9 -1
  27. package/dist/cjs/parts/Pickers/Calendar/CalendarContent.js.map +3 -3
  28. package/dist/cjs/parts/Pickers/Calendar/CalendarFooter.js +16 -2
  29. package/dist/cjs/parts/Pickers/Calendar/CalendarFooter.js.map +3 -3
  30. package/dist/cjs/parts/Pickers/Calendar/CalendarHead.js +35 -2
  31. package/dist/cjs/parts/Pickers/Calendar/CalendarHead.js.map +2 -2
  32. package/dist/cjs/parts/Pickers/Calendar/CalendarIconTrigger.js +16 -2
  33. package/dist/cjs/parts/Pickers/Calendar/CalendarIconTrigger.js.map +3 -3
  34. package/dist/cjs/parts/Pickers/Calendar/CalendarMonthDays.js.map +2 -2
  35. package/dist/cjs/parts/Pickers/Calendar/CalendarWrapper.js +8 -2
  36. package/dist/cjs/parts/Pickers/Calendar/CalendarWrapper.js.map +3 -3
  37. package/dist/cjs/parts/Pickers/Calendar/Day.js +4 -0
  38. package/dist/cjs/parts/Pickers/Calendar/Day.js.map +2 -2
  39. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js +8 -2
  40. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js.map +3 -3
  41. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js +8 -1
  42. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js.map +3 -3
  43. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +10 -1
  44. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js.map +3 -3
  45. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js +9 -1
  46. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js.map +3 -3
  47. package/dist/cjs/parts/Pickers/TimeWheel/HoursList.js +23 -2
  48. package/dist/cjs/parts/Pickers/TimeWheel/HoursList.js.map +3 -3
  49. package/dist/cjs/parts/Pickers/TimeWheel/MeridiemList.js +24 -2
  50. package/dist/cjs/parts/Pickers/TimeWheel/MeridiemList.js.map +3 -3
  51. package/dist/cjs/parts/Pickers/TimeWheel/MinutesList.js +23 -2
  52. package/dist/cjs/parts/Pickers/TimeWheel/MinutesList.js.map +3 -3
  53. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContent.js +19 -2
  54. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContent.js.map +2 -2
  55. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelFooter.js +16 -2
  56. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelFooter.js.map +3 -3
  57. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js +16 -2
  58. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js.map +3 -3
  59. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelWrapper.js +8 -2
  60. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelWrapper.js.map +3 -3
  61. package/dist/cjs/parts/TimeInputs/HHInput.js +4 -2
  62. package/dist/cjs/parts/TimeInputs/HHInput.js.map +2 -2
  63. package/dist/cjs/parts/TimeInputs/MeridiemInput.js +4 -2
  64. package/dist/cjs/parts/TimeInputs/MeridiemInput.js.map +2 -2
  65. package/dist/cjs/parts/TimeInputs/MinutesInput.js +4 -2
  66. package/dist/cjs/parts/TimeInputs/MinutesInput.js.map +2 -2
  67. package/dist/cjs/parts/TimeInputs/TimeInputs.js +23 -5
  68. package/dist/cjs/parts/TimeInputs/TimeInputs.js.map +3 -3
  69. package/dist/cjs/propTypes.js +28 -26
  70. package/dist/cjs/propTypes.js.map +2 -2
  71. package/dist/cjs/sharedTypes.js.map +1 -1
  72. package/dist/cjs/tests/custom-props/customProps.js +233 -0
  73. package/dist/cjs/tests/custom-props/customProps.js.map +7 -0
  74. package/dist/esm/ControlledDateTimePicker.js +1 -1
  75. package/dist/esm/ControlledDateTimePicker.js.map +1 -1
  76. package/dist/esm/config/useChangeHandlers.js.map +2 -2
  77. package/dist/esm/config/useControlledDateTimePicker.js +1 -1
  78. package/dist/esm/config/useControlledDateTimePicker.js.map +1 -1
  79. package/dist/esm/config/useGetFlags.js +6 -6
  80. package/dist/esm/config/useGetFlags.js.map +2 -2
  81. package/dist/esm/config/useGetPropsWithDefault.js +1 -1
  82. package/dist/esm/config/useGetPropsWithDefault.js.map +1 -1
  83. package/dist/esm/package.json +7 -0
  84. package/dist/esm/parts/ClearButton/ClearButton.js +8 -2
  85. package/dist/esm/parts/ClearButton/ClearButton.js.map +3 -3
  86. package/dist/esm/parts/ControlledDateTimePickerContent.js +8 -1
  87. package/dist/esm/parts/ControlledDateTimePickerContent.js.map +3 -3
  88. package/dist/esm/parts/DateInputs/DDInput.js +4 -2
  89. package/dist/esm/parts/DateInputs/DDInput.js.map +2 -2
  90. package/dist/esm/parts/DateInputs/DateInputs.js +23 -5
  91. package/dist/esm/parts/DateInputs/DateInputs.js.map +3 -3
  92. package/dist/esm/parts/DateInputs/MMInput.js +4 -2
  93. package/dist/esm/parts/DateInputs/MMInput.js.map +2 -2
  94. package/dist/esm/parts/DateInputs/YYYYInput.js +4 -2
  95. package/dist/esm/parts/DateInputs/YYYYInput.js.map +2 -2
  96. package/dist/esm/parts/DateInputs/useDateInputs.js +1 -1
  97. package/dist/esm/parts/DateInputs/useDateInputs.js.map +2 -2
  98. package/dist/esm/parts/Pickers/Calendar/Calendar.js.map +2 -2
  99. package/dist/esm/parts/Pickers/Calendar/CalendarContent.js +9 -1
  100. package/dist/esm/parts/Pickers/Calendar/CalendarContent.js.map +3 -3
  101. package/dist/esm/parts/Pickers/Calendar/CalendarFooter.js +16 -2
  102. package/dist/esm/parts/Pickers/Calendar/CalendarFooter.js.map +3 -3
  103. package/dist/esm/parts/Pickers/Calendar/CalendarHead.js +35 -2
  104. package/dist/esm/parts/Pickers/Calendar/CalendarHead.js.map +2 -2
  105. package/dist/esm/parts/Pickers/Calendar/CalendarIconTrigger.js +16 -2
  106. package/dist/esm/parts/Pickers/Calendar/CalendarIconTrigger.js.map +3 -3
  107. package/dist/esm/parts/Pickers/Calendar/CalendarMonthDays.js.map +2 -2
  108. package/dist/esm/parts/Pickers/Calendar/CalendarWrapper.js +8 -2
  109. package/dist/esm/parts/Pickers/Calendar/CalendarWrapper.js.map +3 -3
  110. package/dist/esm/parts/Pickers/Calendar/Day.js +4 -0
  111. package/dist/esm/parts/Pickers/Calendar/Day.js.map +2 -2
  112. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js +8 -2
  113. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js.map +3 -3
  114. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js +8 -1
  115. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js.map +3 -3
  116. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +10 -1
  117. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js.map +3 -3
  118. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js +9 -1
  119. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js.map +3 -3
  120. package/dist/esm/parts/Pickers/TimeWheel/HoursList.js +23 -2
  121. package/dist/esm/parts/Pickers/TimeWheel/HoursList.js.map +3 -3
  122. package/dist/esm/parts/Pickers/TimeWheel/MeridiemList.js +24 -2
  123. package/dist/esm/parts/Pickers/TimeWheel/MeridiemList.js.map +3 -3
  124. package/dist/esm/parts/Pickers/TimeWheel/MinutesList.js +23 -2
  125. package/dist/esm/parts/Pickers/TimeWheel/MinutesList.js.map +3 -3
  126. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContent.js +19 -2
  127. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContent.js.map +2 -2
  128. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelFooter.js +16 -2
  129. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelFooter.js.map +3 -3
  130. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js +16 -2
  131. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js.map +3 -3
  132. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelWrapper.js +8 -2
  133. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelWrapper.js.map +3 -3
  134. package/dist/esm/parts/TimeInputs/HHInput.js +4 -2
  135. package/dist/esm/parts/TimeInputs/HHInput.js.map +2 -2
  136. package/dist/esm/parts/TimeInputs/MeridiemInput.js +4 -2
  137. package/dist/esm/parts/TimeInputs/MeridiemInput.js.map +2 -2
  138. package/dist/esm/parts/TimeInputs/MinutesInput.js +4 -2
  139. package/dist/esm/parts/TimeInputs/MinutesInput.js.map +2 -2
  140. package/dist/esm/parts/TimeInputs/TimeInputs.js +23 -5
  141. package/dist/esm/parts/TimeInputs/TimeInputs.js.map +3 -3
  142. package/dist/esm/propTypes.js +9 -2
  143. package/dist/esm/propTypes.js.map +2 -2
  144. package/dist/esm/tests/custom-props/customProps.js +207 -0
  145. package/dist/esm/tests/custom-props/customProps.js.map +7 -0
  146. package/dist/types/ControlledDateTimePicker.d.ts +1 -1
  147. package/dist/types/config/useGetFlags.d.ts +2 -2
  148. package/dist/types/parts/DateInputs/DDInput.d.ts +2 -1
  149. package/dist/types/parts/DateInputs/MMInput.d.ts +3 -2
  150. package/dist/types/parts/DateInputs/YYYYInput.d.ts +2 -1
  151. package/dist/types/parts/TimeInputs/HHInput.d.ts +2 -1
  152. package/dist/types/parts/TimeInputs/MeridiemInput.d.ts +2 -1
  153. package/dist/types/parts/TimeInputs/MinutesInput.d.ts +2 -1
  154. package/dist/types/propTypes.d.ts +11 -3
  155. package/dist/types/sharedTypes.d.ts +1 -1
  156. package/dist/types/tests/custom-props/customProps.d.ts +397 -0
  157. package/dist/types/tests/custom-props/date-time-picker.date-custom-props.test.d.ts +1 -0
  158. package/dist/types/tests/custom-props/date-time-picker.date-time-custom-props.test.d.ts +1 -0
  159. package/dist/types/tests/custom-props/date-time-picker.time-custom-props.test.d.ts +1 -0
  160. package/package.json +10 -9
@@ -29,7 +29,8 @@ __export(propTypes_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(propTypes_exports);
31
31
  var React = __toESM(require("react"));
32
- var import_ds_utilities = require("@elliemae/ds-utilities");
32
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
33
+ var import_ControlledDateTimePickerDatatestid = require("./ControlledDateTimePickerDatatestid");
33
34
  const noop = () => {
34
35
  };
35
36
  const defaultReturnFalse = () => false;
@@ -59,9 +60,9 @@ const defaultProps = {
59
60
  preventCloseOnSelection: false
60
61
  };
61
62
  const propTypes = {
62
- ...import_ds_utilities.globalAttributesPropTypes,
63
- ...import_ds_utilities.xstyledPropTypes,
64
- type: import_ds_utilities.PropTypes.oneOf([
63
+ ...import_ds_props_helpers.globalAttributesPropTypes,
64
+ ...import_ds_props_helpers.xstyledPropTypes,
65
+ type: import_ds_props_helpers.PropTypes.oneOf([
65
66
  "full-date-time",
66
67
  "date-time-inputs",
67
68
  "date-time-picker",
@@ -75,37 +76,38 @@ const propTypes = {
75
76
  "time-picker",
76
77
  "time-picker-controller-only"
77
78
  ]).description("Type of time form control to use").defaultValue("full-date-time"),
78
- disabled: import_ds_utilities.PropTypes.bool.description("wheter or not the input is disabled").defaultValue(false),
79
- isClearable: import_ds_utilities.PropTypes.bool.description("with or without clearable button").defaultValue(false),
80
- dateTime: import_ds_utilities.PropTypes.string.description("when using date-time types, this is the value of the controller"),
81
- date: import_ds_utilities.PropTypes.string.description("when using date types, this is the value of the controller"),
82
- time: import_ds_utilities.PropTypes.string.description("when using time types, this is the value of the controller"),
83
- onDateChange: import_ds_utilities.PropTypes.func.description("(newDateString, metaInformations) => void"),
84
- onTimeChange: import_ds_utilities.PropTypes.func.description("(newTimeString, metaInformations) => void"),
85
- onDateTimeChange: import_ds_utilities.PropTypes.func.description("(newDateTimeString, metaInformations) => void"),
86
- onMonthChange: import_ds_utilities.PropTypes.func.description("(newMonthString, event, metaInformations) => void"),
87
- onDayChange: import_ds_utilities.PropTypes.func.description("(newDayString, event, metaInformations) => void"),
88
- onYearChange: import_ds_utilities.PropTypes.func.description("(newYearString, event, metaInformations) => void"),
89
- onHourChange: import_ds_utilities.PropTypes.func.description("(newHourString, event, metaInformations) => void"),
90
- onMinuteChange: import_ds_utilities.PropTypes.func.description("(newMinuteString, event, metaInformations) => void"),
91
- onMeridiemChange: import_ds_utilities.PropTypes.func.description("(newMeridiemString, event, metaInformations) => void"),
92
- getIsDisabledDay: import_ds_utilities.PropTypes.func.description(
79
+ disabled: import_ds_props_helpers.PropTypes.bool.description("wheter or not the input is disabled").defaultValue(false),
80
+ isClearable: import_ds_props_helpers.PropTypes.bool.description("with or without clearable button").defaultValue(false),
81
+ dateTime: import_ds_props_helpers.PropTypes.string.description("when using date-time types, this is the value of the controller"),
82
+ date: import_ds_props_helpers.PropTypes.string.description("when using date types, this is the value of the controller"),
83
+ time: import_ds_props_helpers.PropTypes.string.description("when using time types, this is the value of the controller"),
84
+ onDateChange: import_ds_props_helpers.PropTypes.func.description("(newDateString, metaInformations) => void"),
85
+ onTimeChange: import_ds_props_helpers.PropTypes.func.description("(newTimeString, metaInformations) => void"),
86
+ onDateTimeChange: import_ds_props_helpers.PropTypes.func.description("(newDateTimeString, metaInformations) => void"),
87
+ onMonthChange: import_ds_props_helpers.PropTypes.func.description("(newMonthString, event, metaInformations) => void"),
88
+ onDayChange: import_ds_props_helpers.PropTypes.func.description("(newDayString, event, metaInformations) => void"),
89
+ onYearChange: import_ds_props_helpers.PropTypes.func.description("(newYearString, event, metaInformations) => void"),
90
+ onHourChange: import_ds_props_helpers.PropTypes.func.description("(newHourString, event, metaInformations) => void"),
91
+ onMinuteChange: import_ds_props_helpers.PropTypes.func.description("(newMinuteString, event, metaInformations) => void"),
92
+ onMeridiemChange: import_ds_props_helpers.PropTypes.func.description("(newMeridiemString, event, metaInformations) => void"),
93
+ getIsDisabledDay: import_ds_props_helpers.PropTypes.func.description(
93
94
  "(dayAsString) => true for marking as disabled, false for marking as valid"
94
95
  ),
95
- getIsOutOfRangeDay: import_ds_utilities.PropTypes.func.description(
96
+ getIsOutOfRangeDay: import_ds_props_helpers.PropTypes.func.description(
96
97
  "(dayAsString) => true for marking as disabled, false for marking as valid"
97
98
  ),
98
- getIsDisabledTime: import_ds_utilities.PropTypes.func.description(
99
+ getIsDisabledTime: import_ds_props_helpers.PropTypes.func.description(
99
100
  "(timeAsString) => true for marking as disabled, false for marking as valid"
100
101
  ),
101
- emptyPickerStartingMonth: import_ds_utilities.PropTypes.string.description(
102
+ emptyPickerStartingMonth: import_ds_props_helpers.PropTypes.string.description(
102
103
  'which month to start the calendar on open, when value is empty, string following the "MM/__/YYYY" pattern'
103
104
  ),
104
- onCalendarOpenFocusedDay: import_ds_utilities.PropTypes.string.description('which day to focus on calendar open when value is empty, string following the "MM/DD/YYYY" pattern').defaultValue("if value is empty current month, else current month"),
105
- onTimeWheelOpenStartingTime: import_ds_utilities.PropTypes.string.description(
105
+ onCalendarOpenFocusedDay: import_ds_props_helpers.PropTypes.string.description('which day to focus on calendar open when value is empty, string following the "MM/DD/YYYY" pattern').defaultValue("if value is empty current month, else current month"),
106
+ onTimeWheelOpenStartingTime: import_ds_props_helpers.PropTypes.string.description(
106
107
  'which day to start the timewheel on picker open when value is empty, string following the HH:MM AA" pattern'
107
108
  ).defaultValue("01:00 AM"),
108
- minutesInterval: import_ds_utilities.PropTypes.number.description("increments/decrements of minutes in time related controllers interactions").defaultValue("1"),
109
- "data-testid": import_ds_utilities.PropTypes.string.description("Unique id for tests.").defaultValue("")
109
+ minutesInterval: import_ds_props_helpers.PropTypes.number.description("increments/decrements of minutes in time related controllers interactions").defaultValue("1"),
110
+ "data-testid": import_ds_props_helpers.PropTypes.string.description("Unique id for tests.").defaultValue(""),
111
+ ...(0, import_ds_props_helpers.getPropsPerDatatestIdPropTypes)(import_ControlledDateTimePickerDatatestid.ControlledDateTimePickerDatatestid)
110
112
  };
111
113
  //# sourceMappingURL=propTypes.js.map
@@ -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 { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-utilities';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = (): void => {};\nconst defaultReturnFalse = (): false => false;\nexport declare namespace DSControlledDateTimePickerT {\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 {\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 {\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 = 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} as WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,0BAAuE;AAGvE,MAAM,OAAO,MAAY;AAAC;AAC1B,MAAM,qBAAqB,MAAa;AA4IjC,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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,OACpC;AAAA,IACC;AAAA,EACF,EACC,aAAa,UAAU;AAAA,EAC1B,iBAAiB,8BAAU,OACxB,YAAY,2EAA2E,EACvF,aAAa,GAAG;AAAA,EACnB,eAAe,8BAAU,OAAO,YAAY,sBAAsB,EAAE,aAAa,EAAE;AACrF;",
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';\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": ";;;;;;;;;;;;;;;;;;;;;;;;AA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BAAkB,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": ["../../src/sharedTypes.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport type React from 'react';\nimport type { DSControlledDateTimePickerT } from './propTypes';\n\nexport declare namespace DSControlledDateTimePickerInternalsT {\n export type DateDay =\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n | 25\n | 26\n | 27\n | 28\n | 29\n | 30\n | 31;\n export type DateMonth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;\n export interface MetaMonthDay {\n day: Date;\n dayAsString: string;\n isPrevMonthDay: boolean;\n isNextMonthDay: boolean;\n isCurrMonthDay: boolean;\n isHidden: boolean;\n dayBtnRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export type OnKeyDown<HTMLT = HTMLInputElement> = (e: React.KeyboardEvent<HTMLT>) => void;\n export type OnChangeFunc = (e: React.ChangeEvent<HTMLInputElement>) => void;\n export type OnDSBtnClick = (\n e: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement> | React.KeyboardEvent,\n ) => void;\n export type HandleOnChangeFunc = (\n newVal: string,\n e: DSControlledDateTimePickerT.OnInternalValuesChangeEvent,\n metaInfo?: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo,\n ) => void;\n export type OnBlurFunc = (e: React.FocusEvent<HTMLInputElement>) => void;\n export type OnFocusFunc = (e: React.FocusEvent<HTMLInputElement>) => void;\n\n export interface UseDateInputsR {\n month: string;\n day: string;\n year: string;\n autoFocusMonthInput: boolean;\n innerRefMonthInput?: false | React.MutableRefObject<HTMLInputElement | HTMLButtonElement>;\n disabled: boolean;\n onMonthChange: OnChangeFunc;\n onDayChange: OnChangeFunc;\n onYearChange: OnChangeFunc;\n onMonthFocus: OnFocusFunc;\n onDayFocus: OnFocusFunc;\n onYearFocus: OnFocusFunc;\n onMonthBlur: OnBlurFunc;\n onDayBlur: OnBlurFunc;\n onYearBlur: OnBlurFunc;\n onMonthKeyDown: OnKeyDown;\n onDayKeyDown: OnKeyDown;\n onYearKeyDown: OnKeyDown;\n }\n export interface InputsReferences {\n monthInputRef: React.RefObject<HTMLInputElement>;\n dayInputRef: React.RefObject<HTMLInputElement>;\n yearInputRef: React.RefObject<HTMLInputElement>;\n hourInputRef: React.RefObject<HTMLInputElement>;\n minutesInputRef: React.RefObject<HTMLInputElement>;\n meridiemInputRef: React.RefObject<HTMLInputElement>;\n clearButtonRef: React.MutableRefObject<HTMLButtonElement>;\n pickerButtonRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export interface CalendarReferences {\n prevYearBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMonthBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMonthBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextYearBtnRef: React.MutableRefObject<HTMLButtonElement>;\n calendarDaysWrapperRef: React.MutableRefObject<HTMLDivElement>;\n }\n export interface TimewheelReferences {\n prevHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export interface InternalPrecalculatedFlags {\n isControllerOnly: boolean;\n shouldPreserveClearableSpace: boolean;\n isWithTimeWheelToo: boolean;\n isWithCalendarToo: boolean;\n isWithDateInputs: boolean;\n isWithDateInputsOnly: boolean;\n isWithTimeInputs: boolean;\n isWithTimeInputsOnly: boolean;\n autoFocusMonthInput: boolean;\n autoFocusHourInput: boolean;\n autoFocusPrevMonthArrow: boolean;\n autoFocusHourTimeWheel: boolean;\n hideDate: boolean;\n hideTime: boolean;\n hideDateTimePicker: boolean;\n hideDatePicker: boolean;\n hideTimePicker: boolean;\n withAnyInputs: boolean;\n withAnyPicker: boolean;\n withClearBtn: boolean;\n withAnyRightController: boolean;\n isDateSelector: boolean;\n isTimeSelector: boolean;\n isDateTimeSelector: boolean;\n }\n}\n", "import * as React from 'react';\nexport { React };\n"],
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport type React from 'react';\nimport type { DSControlledDateTimePickerT } from './propTypes';\n\nexport declare namespace DSControlledDateTimePickerInternalsT {\n export type DateDay =\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n | 25\n | 26\n | 27\n | 28\n | 29\n | 30\n | 31;\n export type DateMonth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;\n export interface MetaMonthDay {\n day: Date;\n dayAsString: string;\n isPrevMonthDay: boolean;\n isNextMonthDay: boolean;\n isCurrMonthDay: boolean;\n isHidden: boolean;\n dayBtnRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export type OnKeyDown<HTMLT = HTMLInputElement> = (e: React.KeyboardEvent<HTMLT>) => void;\n export type OnChangeFunc = (e: React.ChangeEvent<HTMLInputElement>) => void;\n export type OnDSBtnClick = (\n e: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement> | React.KeyboardEvent,\n ) => void;\n export type HandleOnChangeFunc = (\n newVal: string,\n e: DSControlledDateTimePickerT.OnInternalValuesChangeEvent,\n metaInfo?: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo,\n ) => void;\n export type OnBlurFunc = (e: React.FocusEvent<HTMLInputElement>) => void;\n export type OnFocusFunc = (e: React.FocusEvent<HTMLInputElement>) => void;\n\n export interface UseDateInputsR {\n month: string;\n day: string;\n year: string;\n autoFocusMonthInput: boolean;\n innerRefMonthInput?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>;\n disabled: boolean;\n onMonthChange: OnChangeFunc;\n onDayChange: OnChangeFunc;\n onYearChange: OnChangeFunc;\n onMonthFocus: OnFocusFunc;\n onDayFocus: OnFocusFunc;\n onYearFocus: OnFocusFunc;\n onMonthBlur: OnBlurFunc;\n onDayBlur: OnBlurFunc;\n onYearBlur: OnBlurFunc;\n onMonthKeyDown: OnKeyDown;\n onDayKeyDown: OnKeyDown;\n onYearKeyDown: OnKeyDown;\n }\n export interface InputsReferences {\n monthInputRef: React.RefObject<HTMLInputElement>;\n dayInputRef: React.RefObject<HTMLInputElement>;\n yearInputRef: React.RefObject<HTMLInputElement>;\n hourInputRef: React.RefObject<HTMLInputElement>;\n minutesInputRef: React.RefObject<HTMLInputElement>;\n meridiemInputRef: React.RefObject<HTMLInputElement>;\n clearButtonRef: React.MutableRefObject<HTMLButtonElement>;\n pickerButtonRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export interface CalendarReferences {\n prevYearBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMonthBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMonthBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextYearBtnRef: React.MutableRefObject<HTMLButtonElement>;\n calendarDaysWrapperRef: React.MutableRefObject<HTMLDivElement>;\n }\n export interface TimewheelReferences {\n prevHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextHourBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMinutesBtnRef: React.MutableRefObject<HTMLButtonElement>;\n prevMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n currMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n nextMeridiemBtnRef: React.MutableRefObject<HTMLButtonElement>;\n }\n export interface InternalPrecalculatedFlags {\n isControllerOnly: boolean;\n shouldPreserveClearableSpace: boolean;\n isWithTimeWheelToo: boolean;\n isWithCalendarToo: boolean;\n isWithDateInputs: boolean;\n isWithDateInputsOnly: boolean;\n isWithTimeInputs: boolean;\n isWithTimeInputsOnly: boolean;\n autoFocusMonthInput: boolean;\n autoFocusHourInput: boolean;\n autoFocusPrevMonthArrow: boolean;\n autoFocusHourTimeWheel: boolean;\n hideDate: boolean;\n hideTime: boolean;\n hideDateTimePicker: boolean;\n hideDatePicker: boolean;\n hideTimePicker: boolean;\n withAnyInputs: boolean;\n withAnyPicker: boolean;\n withClearBtn: boolean;\n withAnyRightController: boolean;\n isDateSelector: boolean;\n isTimeSelector: boolean;\n isDateTimeSelector: boolean;\n }\n}\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,233 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var customProps_exports = {};
26
+ __export(customProps_exports, {
27
+ customPropsForFullDatePickerWhenClosed: () => customPropsForFullDatePickerWhenClosed,
28
+ customPropsForFullDatePickerWhenOpen: () => customPropsForFullDatePickerWhenOpen,
29
+ customPropsForFullDateTimePickerWhenClosed: () => customPropsForFullDateTimePickerWhenClosed,
30
+ customPropsForFullDateTimePickerWhenOpen: () => customPropsForFullDateTimePickerWhenOpen,
31
+ customPropsForFullTimePickerWhenClosed: () => customPropsForFullTimePickerWhenClosed,
32
+ customPropsForFullTimePickerWhenOpen: () => customPropsForFullTimePickerWhenOpen
33
+ });
34
+ module.exports = __toCommonJS(customProps_exports);
35
+ var React = __toESM(require("react"));
36
+ var import__ = require("../../index");
37
+ const customPropsShareds = {
38
+ [import__.ControlledDateTimePickerDatatestid.CONTAINER]: {
39
+ "data-foo": "foo-picker-container",
40
+ "aria-label": "custom label for picker-container",
41
+ ignoredProp: "props not starting with data- or aria- are not exposed"
42
+ }
43
+ };
44
+ const customPropsDateInputs = {
45
+ [import__.ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH]: {
46
+ "data-foo": "foo-month-input",
47
+ "aria-label": "custom label for month-input",
48
+ ignoredProp: "props not starting with data- or aria- are not exposed"
49
+ },
50
+ [import__.ControlledDateTimePickerDatatestid.DATE_INPUTS.DAY]: {
51
+ "data-foo": "foo-day-input",
52
+ "aria-label": "custom label for day-input",
53
+ ignoredProp: "props not starting with data- or aria- are not exposed"
54
+ },
55
+ [import__.ControlledDateTimePickerDatatestid.DATE_INPUTS.YEAR]: {
56
+ "data-foo": "foo-year-input",
57
+ "aria-label": "custom label for year-input",
58
+ ignoredProp: "props not starting with data- or aria- are not exposed"
59
+ }
60
+ };
61
+ const customPropsTimeInputs = {
62
+ [import__.ControlledDateTimePickerDatatestid.TIME_INPUTS.HOUR]: {
63
+ "data-foo": "foo-hour-input",
64
+ "aria-label": "custom label for hour-input",
65
+ ignoredProp: "props not starting with data- or aria- are not exposed"
66
+ },
67
+ [import__.ControlledDateTimePickerDatatestid.TIME_INPUTS.MINUTE]: {
68
+ "data-foo": "foo-minute-input",
69
+ "aria-label": "custom label for minute-input",
70
+ ignoredProp: "props not starting with data- or aria- are not exposed"
71
+ },
72
+ [import__.ControlledDateTimePickerDatatestid.TIME_INPUTS.MERIDIEM]: {
73
+ "data-foo": "foo-meridiem-input",
74
+ "aria-label": "custom label for meridiem-input",
75
+ ignoredProp: "props not starting with data- or aria- are not exposed"
76
+ }
77
+ };
78
+ const customPropsCalendarDatePart = {
79
+ [import__.ControlledDateTimePickerDatatestid.CALENDAR.HEADER_LABEL]: {
80
+ "data-foo": "foo-calendar-header-label",
81
+ "aria-label": "custom label for calendar-header-label",
82
+ ignoredProp: "props not starting with data- or aria- are not exposed"
83
+ },
84
+ [import__.ControlledDateTimePickerDatatestid.CALENDAR.PREV_YEAR]: {
85
+ "data-foo": "foo-calendar-prev-year",
86
+ "aria-label": "custom label for calendar-prev-year",
87
+ ignoredProp: "props not starting with data- or aria- are not exposed"
88
+ },
89
+ [import__.ControlledDateTimePickerDatatestid.CALENDAR.PREV_MONTH]: {
90
+ "data-foo": "foo-calendar-prev-month",
91
+ "aria-label": "custom label for calendar-prev-month",
92
+ ignoredProp: "props not starting with data- or aria- are not exposed"
93
+ },
94
+ [import__.ControlledDateTimePickerDatatestid.CALENDAR.DAY]: {
95
+ "data-foo": "foo-calendar-day",
96
+ "aria-label": "custom label for calendar-day",
97
+ ignoredProp: "props not starting with data- or aria- are not exposed"
98
+ },
99
+ [import__.ControlledDateTimePickerDatatestid.CALENDAR.NEXT_MONTH]: {
100
+ "data-foo": "foo-calendar-next-month",
101
+ "aria-label": "custom label for calendar-next-month",
102
+ ignoredProp: "props not starting with data- or aria- are not exposed"
103
+ },
104
+ [import__.ControlledDateTimePickerDatatestid.CALENDAR.NEXT_YEAR]: {
105
+ "data-foo": "foo-calendar-next-year",
106
+ "aria-label": "custom label for calendar-next-year",
107
+ ignoredProp: "props not starting with data- or aria- are not exposed"
108
+ }
109
+ };
110
+ const customPropsCalendarTimePart = {
111
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.HEADER_LABEL]: {
112
+ "data-foo": "foo-timewheel-header-label",
113
+ "aria-label": "custom label for timewheel-header-label",
114
+ ignoredProp: "props not starting with data- or aria- are not exposed"
115
+ },
116
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_HOUR]: {
117
+ "data-foo": "foo-timewheel-prev-hour",
118
+ "aria-label": "custom label for timewheel-prev-hour",
119
+ ignoredProp: "props not starting with data- or aria- are not exposed"
120
+ },
121
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.HOUR]: {
122
+ "data-foo": "foo-timewheel-hour",
123
+ "aria-label": "custom label for timewheel-hour",
124
+ ignoredProp: "props not starting with data- or aria- are not exposed"
125
+ },
126
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_HOUR]: {
127
+ "data-foo": "foo-timewheel-current-hour",
128
+ "aria-label": "custom label for timewheel-current-hour",
129
+ ignoredProp: "props not starting with data- or aria- are not exposed"
130
+ },
131
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_HOUR]: {
132
+ "data-foo": "foo-timewheel-next-hour",
133
+ "aria-label": "custom label for timewheel-next-hour",
134
+ ignoredProp: "props not starting with data- or aria- are not exposed"
135
+ },
136
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MINUTE]: {
137
+ "data-foo": "foo-timewheel-prev-minute",
138
+ "aria-label": "custom label for timewheel-prev-minute",
139
+ ignoredProp: "props not starting with data- or aria- are not exposed"
140
+ },
141
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.MINUTE]: {
142
+ "data-foo": "foo-timewheel-minute",
143
+ "aria-label": "custom label for timewheel-minute",
144
+ ignoredProp: "props not starting with data- or aria- are not exposed"
145
+ },
146
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MINUTE]: {
147
+ "data-foo": "foo-timewheel-current-minute",
148
+ "aria-label": "custom label for timewheel-current-minute",
149
+ ignoredProp: "props not starting with data- or aria- are not exposed"
150
+ },
151
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MINUTE]: {
152
+ "data-foo": "foo-timewheel-next-minute",
153
+ "aria-label": "custom label for timewheel-next-minute",
154
+ ignoredProp: "props not starting with data- or aria- are not exposed"
155
+ },
156
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MERIDIEM]: {
157
+ "data-foo": "foo-timewheel-prev-meridiem",
158
+ "aria-label": "custom label for timewheel-prev-meridiem",
159
+ ignoredProp: "props not starting with data- or aria- are not exposed"
160
+ },
161
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.MERIDIEM]: {
162
+ "data-foo": "foo-timewheel-meridiem",
163
+ "aria-label": "custom label for timewheel-meridiem",
164
+ ignoredProp: "props not starting with data- or aria- are not exposed"
165
+ },
166
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MERIDIEM]: {
167
+ "data-foo": "foo-timewheel-current-meridiem",
168
+ "aria-label": "custom label for timewheel-current-meridiem",
169
+ ignoredProp: "props not starting with data- or aria- are not exposed"
170
+ },
171
+ [import__.ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MERIDIEM]: {
172
+ "data-foo": "foo-timewheel-next-meridiem",
173
+ "aria-label": "custom label for timewheel-next-meridiem",
174
+ ignoredProp: "props not starting with data- or aria- are not exposed"
175
+ }
176
+ };
177
+ const customPropsForFullDateTimePickerWhenClosed = {
178
+ ...customPropsShareds,
179
+ ...customPropsDateInputs,
180
+ ...customPropsTimeInputs,
181
+ [import__.ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR_TIMEWHEEL]: {
182
+ "data-foo": "foo-calendar-timewheel-icon",
183
+ "aria-label": "custom label for calendar-timewheel-icon",
184
+ ignoredProp: "props not starting with data- or aria- are not exposed"
185
+ }
186
+ };
187
+ const customPropsForFullDateTimePickerWhenOpen = {
188
+ ...customPropsForFullDateTimePickerWhenClosed,
189
+ [import__.ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL]: {
190
+ "data-foo": "foo-contextual-menu-calendar-timewheel",
191
+ "aria-label": "custom label for contextual-menu-calendar-timewheel",
192
+ ignoredProp: "props not starting with data- or aria- are not exposed"
193
+ },
194
+ ...customPropsCalendarDatePart,
195
+ ...customPropsCalendarTimePart
196
+ };
197
+ const customPropsForFullDatePickerWhenClosed = {
198
+ ...customPropsShareds,
199
+ ...customPropsDateInputs,
200
+ [import__.ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR]: {
201
+ "data-foo": "foo-calendar-icon",
202
+ "aria-label": "custom label for calendar-icon",
203
+ ignoredProp: "props not starting with data- or aria- are not exposed"
204
+ }
205
+ };
206
+ const customPropsForFullDatePickerWhenOpen = {
207
+ ...customPropsForFullDatePickerWhenClosed,
208
+ [import__.ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR]: {
209
+ "data-foo": "foo-contextual-menu-calendar",
210
+ "aria-label": "custom label for contextual-menu-calendar",
211
+ ignoredProp: "props not starting with data- or aria- are not exposed"
212
+ },
213
+ ...customPropsCalendarDatePart
214
+ };
215
+ const customPropsForFullTimePickerWhenClosed = {
216
+ ...customPropsShareds,
217
+ ...customPropsTimeInputs,
218
+ [import__.ControlledDateTimePickerDatatestid.PICKER_ICONS.TIMEWHEEL]: {
219
+ "data-foo": "foo-timewheel-icon",
220
+ "aria-label": "custom label for timewheel-icon",
221
+ ignoredProp: "props not starting with data- or aria- are not exposed"
222
+ }
223
+ };
224
+ const customPropsForFullTimePickerWhenOpen = {
225
+ ...customPropsForFullTimePickerWhenClosed,
226
+ [import__.ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL]: {
227
+ "data-foo": "foo-contextual-menu-timewheel",
228
+ "aria-label": "custom label for contextual-menu-timewheel",
229
+ ignoredProp: "props not starting with data- or aria- are not exposed"
230
+ },
231
+ ...customPropsCalendarTimePart
232
+ };
233
+ //# sourceMappingURL=customProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/tests/custom-props/customProps.js", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable max-lines */\n/* eslint-disable import/extensions */\nimport { ControlledDateTimePickerDatatestid } from '../../index';\nconst customPropsShareds = {\n [ControlledDateTimePickerDatatestid.CONTAINER]: {\n 'data-foo': 'foo-picker-container',\n 'aria-label': 'custom label for picker-container',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nconst customPropsDateInputs = {\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH]: {\n 'data-foo': 'foo-month-input',\n 'aria-label': 'custom label for month-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.DAY]: {\n 'data-foo': 'foo-day-input',\n 'aria-label': 'custom label for day-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.YEAR]: {\n 'data-foo': 'foo-year-input',\n 'aria-label': 'custom label for year-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nconst customPropsTimeInputs = {\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.HOUR]: {\n 'data-foo': 'foo-hour-input',\n 'aria-label': 'custom label for hour-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.MINUTE]: {\n 'data-foo': 'foo-minute-input',\n 'aria-label': 'custom label for minute-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.MERIDIEM]: {\n 'data-foo': 'foo-meridiem-input',\n 'aria-label': 'custom label for meridiem-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n\nconst customPropsCalendarDatePart = {\n [ControlledDateTimePickerDatatestid.CALENDAR.HEADER_LABEL]: {\n 'data-foo': 'foo-calendar-header-label',\n 'aria-label': 'custom label for calendar-header-label',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.PREV_YEAR]: {\n 'data-foo': 'foo-calendar-prev-year',\n 'aria-label': 'custom label for calendar-prev-year',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.PREV_MONTH]: {\n 'data-foo': 'foo-calendar-prev-month',\n 'aria-label': 'custom label for calendar-prev-month',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.DAY]: {\n 'data-foo': 'foo-calendar-day',\n 'aria-label': 'custom label for calendar-day',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.NEXT_MONTH]: {\n 'data-foo': 'foo-calendar-next-month',\n 'aria-label': 'custom label for calendar-next-month',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.NEXT_YEAR]: {\n 'data-foo': 'foo-calendar-next-year',\n 'aria-label': 'custom label for calendar-next-year',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n\nconst customPropsCalendarTimePart = {\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.HEADER_LABEL]: {\n 'data-foo': 'foo-timewheel-header-label',\n 'aria-label': 'custom label for timewheel-header-label',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_HOUR]: {\n 'data-foo': 'foo-timewheel-prev-hour',\n 'aria-label': 'custom label for timewheel-prev-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.HOUR]: {\n 'data-foo': 'foo-timewheel-hour',\n 'aria-label': 'custom label for timewheel-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_HOUR]: {\n 'data-foo': 'foo-timewheel-current-hour',\n 'aria-label': 'custom label for timewheel-current-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_HOUR]: {\n 'data-foo': 'foo-timewheel-next-hour',\n 'aria-label': 'custom label for timewheel-next-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MINUTE]: {\n 'data-foo': 'foo-timewheel-prev-minute',\n 'aria-label': 'custom label for timewheel-prev-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.MINUTE]: {\n 'data-foo': 'foo-timewheel-minute',\n 'aria-label': 'custom label for timewheel-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MINUTE]: {\n 'data-foo': 'foo-timewheel-current-minute',\n 'aria-label': 'custom label for timewheel-current-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MINUTE]: {\n 'data-foo': 'foo-timewheel-next-minute',\n 'aria-label': 'custom label for timewheel-next-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-prev-meridiem',\n 'aria-label': 'custom label for timewheel-prev-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.MERIDIEM]: {\n 'data-foo': 'foo-timewheel-meridiem',\n 'aria-label': 'custom label for timewheel-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-current-meridiem',\n 'aria-label': 'custom label for timewheel-current-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-next-meridiem',\n 'aria-label': 'custom label for timewheel-next-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n// const customPropsCalendarDatePartSelections = {\n// [ControlledDateTimePickerDatatestid.CALENDAR.FOCUSED_DAY]: {\n// 'data-foo': 'foo-calendar-focused-day',\n// 'aria-label': 'custom label for calendar-focused-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.SELECTED_DAY]: {\n// 'data-foo': 'foo-calendar-selected-day',\n// 'aria-label': 'custom label for calendar-selected-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.SELECTED_FOCUSED_DAY]: {\n// 'data-foo': 'foo-calendar-selected-focused-day',\n// 'aria-label': 'custom label for calendar-selected-focused-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsCalendarDatePartRanges = {\n// [ControlledDateTimePickerDatatestid.CALENDAR.START_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-start-range-day',\n// 'aria-label': 'custom label for calendar-start-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.IN_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-in-range-day',\n// 'aria-label': 'custom label for calendar-in-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.END_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-end-range-day',\n// 'aria-label': 'custom label for calendar-end-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsPickersIcons = {\n// [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR]: {\n// 'data-foo': 'foo-calendar-icon',\n// 'aria-label': 'custom label for calendar-icon',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.PICKER_ICONS.TIMEWHEEL]: {\n// 'data-foo': 'foo-timewheel-icon',\n// 'aria-label': 'custom label for timewheel-icon',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsContextualMenu = {\n// [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR]: {\n// 'data-foo': 'foo-contextual-menu-calendar',\n// 'aria-label': 'custom label for contextual-menu-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL]: {\n// 'data-foo': 'foo-contextual-menu-timewheel',\n// 'aria-label': 'custom label for contextual-menu-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsControllers = {\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.CALENDAR]: {\n// 'data-foo': 'foo-controller-component-calendar',\n// 'aria-label': 'custom label for controller-component-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.TIMEWHEEL]: {\n// 'data-foo': 'foo-controller-component-timewheel',\n// 'aria-label': 'custom label for controller-component-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.CALENDAR_TIMEWHEEL]: {\n// 'data-foo': 'foo-controller-component-calendar-timewheel',\n// 'aria-label': 'custom label for controller-component-calendar-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsFooters = {\n// [ControlledDateTimePickerDatatestid.FOOTERS.CALENDAR]: {\n// 'data-foo': 'foo-footers-calendar',\n// 'aria-label': 'custom label for footers-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.FOOTERS.TIMEWHEEL]: {\n// 'data-foo': 'foo-footers-timewheel',\n// 'aria-label': 'custom label for footers-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.FOOTERS.CALENDAR_TIMEWHEEL]: {\n// 'data-foo': 'foo-footers-calendar-timewheel',\n// 'aria-label': 'custom label for footers-calendar-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n\nexport const customPropsForFullDateTimePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsDateInputs,\n ...customPropsTimeInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR_TIMEWHEEL]: {\n 'data-foo': 'foo-calendar-timewheel-icon',\n 'aria-label': 'custom label for calendar-timewheel-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullDateTimePickerWhenOpen = {\n ...customPropsForFullDateTimePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL]: {\n 'data-foo': 'foo-contextual-menu-calendar-timewheel',\n 'aria-label': 'custom label for contextual-menu-calendar-timewheel',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarDatePart,\n ...customPropsCalendarTimePart,\n};\nexport const customPropsForFullDatePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsDateInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR]: {\n 'data-foo': 'foo-calendar-icon',\n 'aria-label': 'custom label for calendar-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullDatePickerWhenOpen = {\n ...customPropsForFullDatePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR]: {\n 'data-foo': 'foo-contextual-menu-calendar',\n 'aria-label': 'custom label for contextual-menu-calendar',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarDatePart,\n};\nexport const customPropsForFullTimePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsTimeInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.TIMEWHEEL]: {\n 'data-foo': 'foo-timewheel-icon',\n 'aria-label': 'custom label for timewheel-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullTimePickerWhenOpen = {\n ...customPropsForFullTimePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL]: {\n 'data-foo': 'foo-contextual-menu-timewheel',\n 'aria-label': 'custom label for contextual-menu-timewheel',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarTimePart,\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,eAAmD;AACnD,MAAM,qBAAqB;AAAA,EACzB,CAAC,4CAAmC,YAAY;AAAA,IAC9C,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AACF;AACA,MAAM,wBAAwB;AAAA,EAC5B,CAAC,4CAAmC,YAAY,QAAQ;AAAA,IACtD,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AAAA,EACA,CAAC,4CAAmC,YAAY,MAAM;AAAA,IACpD,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AAAA,EACA,CAAC,4CAAmC,YAAY,OAAO;AAAA,IACrD,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AACF;AACA,MAAM,wBAAwB;AAAA,EAC5B,CAAC,4CAAmC,YAAY,OAAO;AAAA,IACrD,YAAY;AAAA,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,EACH,CAAC,4CAAmC,gBAAgB,qBAAqB;AAAA,IACvE,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AAAA,EACA,GAAG;AAAA,EACH,GAAG;AACL;AACO,MAAM,yCAAyC;AAAA,EACpD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,CAAC,4CAAmC,aAAa,WAAW;AAAA,IAC1D,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AACF;AACO,MAAM,uCAAuC;AAAA,EAClD,GAAG;AAAA,EACH,CAAC,4CAAmC,gBAAgB,WAAW;AAAA,IAC7D,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AAAA,EACA,GAAG;AACL;AACO,MAAM,yCAAyC;AAAA,EACpD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,CAAC,4CAAmC,aAAa,YAAY;AAAA,IAC3D,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AACF;AACO,MAAM,uCAAuC;AAAA,EAClD,GAAG;AAAA,EACH,CAAC,4CAAmC,gBAAgB,YAAY;AAAA,IAC9D,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AAAA,EACA,GAAG;AACL;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { describe } from "@elliemae/ds-utilities";
3
+ import { describe } from "@elliemae/ds-props-helpers";
4
4
  import { DSControlledDateTimePickerName } from "./exported-related/theming";
5
5
  import { propTypes } from "./propTypes";
6
6
  import { useControlledDateTimePicker } from "./config/useControlledDateTimePicker";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ControlledDateTimePicker.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { DSControlledDateTimePickerName } from './exported-related/theming';\nimport { propTypes } from './propTypes';\nimport { useControlledDateTimePicker } from './config/useControlledDateTimePicker';\nimport { ControlledDateTimePickerContent } from './parts/ControlledDateTimePickerContent';\nimport { ControlledDateTimePickerContext } from './ControlledDateTimePickerCTX';\nimport type { DSControlledDateTimePickerT } from './propTypes';\n\nconst DSControlledDateTimePicker = (props: DSControlledDateTimePickerT.Props): JSX.Element => {\n const ctx = useControlledDateTimePicker(props);\n return (\n <ControlledDateTimePickerContext.Provider value={ctx}>\n <ControlledDateTimePickerContent />\n </ControlledDateTimePickerContext.Provider>\n );\n};\n\nDSControlledDateTimePicker.displayName = DSControlledDateTimePickerName;\nconst DSControlledDateTimePickerWithSchema = describe(DSControlledDateTimePicker);\nDSControlledDateTimePickerWithSchema.propTypes = propTypes;\n\nexport { DSControlledDateTimePickerWithSchema, DSControlledDateTimePicker };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { DSControlledDateTimePickerName } from './exported-related/theming';\nimport { propTypes } from './propTypes';\nimport { useControlledDateTimePicker } from './config/useControlledDateTimePicker';\nimport { ControlledDateTimePickerContent } from './parts/ControlledDateTimePickerContent';\nimport { ControlledDateTimePickerContext } from './ControlledDateTimePickerCTX';\nimport type { DSControlledDateTimePickerT } from './propTypes';\n\nconst DSControlledDateTimePicker = (props: DSControlledDateTimePickerT.Props): JSX.Element => {\n const ctx = useControlledDateTimePicker(props);\n return (\n <ControlledDateTimePickerContext.Provider value={ctx}>\n <ControlledDateTimePickerContent />\n </ControlledDateTimePickerContext.Provider>\n );\n};\n\nDSControlledDateTimePicker.displayName = DSControlledDateTimePickerName;\nconst DSControlledDateTimePickerWithSchema = describe(DSControlledDateTimePicker);\nDSControlledDateTimePickerWithSchema.propTypes = propTypes;\n\nexport { DSControlledDateTimePickerWithSchema, DSControlledDateTimePicker };\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACcjB;AAZN,SAAS,gBAAgB;AACzB,SAAS,sCAAsC;AAC/C,SAAS,iBAAiB;AAC1B,SAAS,mCAAmC;AAC5C,SAAS,uCAAuC;AAChD,SAAS,uCAAuC;AAGhD,MAAM,6BAA6B,CAAC,UAA0D;AAC5F,QAAM,MAAM,4BAA4B,KAAK;AAC7C,SACE,oBAAC,gCAAgC,UAAhC,EAAyC,OAAO,KAC/C,8BAAC,mCAAgC,GACnC;AAEJ;AAEA,2BAA2B,cAAc;AACzC,MAAM,uCAAuC,SAAS,0BAA0B;AAChF,qCAAqC,YAAY;",
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/config/useChangeHandlers.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable complexity */\n/* eslint-disable max-statements */\nimport { useCallback, useMemo } from 'react';\nimport type { useRelevantValueFromProps } from './useRelevantValueFromProps';\nimport type { useGetDestructuredValues } from './useGetDestructuredValues';\nimport type { useGetPropsBasedOnType } from './useGetPropsBasedOnType';\nimport type { useGetReferences } from './useGetReferences';\nimport type { useFocusTracker } from './useFocusTracker';\nimport { getValidationDateStringMetaInfo } from '../utils/dateHelpers';\nimport { getValidationTimeStringMetaInfo } from '../utils/timeHelpers';\nimport {\n isEmptyDateStringMask,\n isEmptyTimeStringMask,\n isEmptyDateTimeStringMask,\n getFormattedDateString,\n getFormattedTimeString,\n} from '../utils/stringHelpers';\nimport type { DSControlledDateTimePickerT } from '../propTypes';\nimport type { DSControlledDateTimePickerInternalsT } from '../sharedTypes';\n\nimport { defaultMetaInfo } from '../utils/constants';\ninterface Config {\n relevantValues: ReturnType<typeof useRelevantValueFromProps>;\n destructuredValues: ReturnType<typeof useGetDestructuredValues>;\n propsBasedOnType: ReturnType<typeof useGetPropsBasedOnType>;\n DOMRefs: ReturnType<typeof useGetReferences>;\n focusTrackers: ReturnType<typeof useFocusTracker>;\n}\n\nexport const useChangeHandlers = ({ relevantValues, destructuredValues, propsBasedOnType, focusTrackers }: Config) => {\n const { tempDateString, setTempDateString, tempTimeString, setTimeString } = relevantValues;\n const {\n getIsDisabledDay,\n getIsOutOfRangeDay,\n appOnDateChange,\n appOnMonthChange,\n appOnDayChange,\n appOnYearChange,\n getIsDisabledTime,\n appOnTimeChange,\n appOnHourChange,\n appOnMinuteChange,\n appOnMeridiemChange,\n appOnDateTimeChange,\n isDateTime,\n isDate,\n isTime,\n } = propsBasedOnType;\n const { month, day, year, hours, minutes, meridiem } = destructuredValues;\n const { trackFocusFirstSegment } = focusTrackers;\n\n const getDateMetaInfo = useCallback(\n (\n newDateString: string | null = null,\n metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {},\n ): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => {\n const finalDateString = newDateString || tempDateString;\n const finalMetaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {\n ...metaInfo,\n ...getValidationDateStringMetaInfo(finalDateString, getIsOutOfRangeDay, getIsDisabledDay),\n };\n return finalMetaInfo;\n },\n [tempDateString, getIsDisabledDay, getIsOutOfRangeDay],\n );\n\n const getTimeMetaInfo = useCallback(\n (\n newTimeString: string | null = null,\n metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {},\n ): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => {\n const finalTimeString = newTimeString || tempTimeString;\n const finalMetaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {\n ...metaInfo,\n ...getValidationTimeStringMetaInfo(finalTimeString, getIsDisabledTime),\n };\n return finalMetaInfo;\n },\n [tempTimeString, getIsDisabledTime],\n );\n\n const handleChangeComposedDateTimeString = useCallback(\n (\n newDateString: string,\n newTimeString: string,\n metaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo,\n ): void => {\n const appDateString = isEmptyDateStringMask(newDateString) ? '' : newDateString;\n const appTimeString = isEmptyTimeStringMask(newTimeString) ? '' : newTimeString;\n appOnDateChange(appDateString, metaInfo); // don't do this on useEffect to avoid complete chaos\n setTempDateString(newDateString);\n\n appOnTimeChange(appTimeString, metaInfo); // don't do this on useEffect to avoid complete chaos\n setTimeString(newTimeString);\n\n const newDateTimeString = `${newDateString} ${newTimeString}`;\n const newMetaInfo = {\n ...metaInfo,\n ...getTimeMetaInfo(newTimeString, metaInfo),\n ...getDateMetaInfo(newDateString, metaInfo),\n newDateString,\n newTimeString,\n newDateTimeString,\n };\n\n const appDateTimeString = isEmptyDateTimeStringMask(newDateTimeString) ? '' : newDateTimeString;\n appOnDateTimeChange(appDateTimeString, newMetaInfo); // don't do this on useEffect to avoid complete chaos\n },\n [\n appOnDateChange,\n setTempDateString,\n appOnTimeChange,\n setTimeString,\n getTimeMetaInfo,\n getDateMetaInfo,\n appOnDateTimeChange,\n ],\n );\n const handleChangeComposedDateString = useCallback(\n (newDateString: string, metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => {\n // if we receive an \"empty\" mask, we comunicate empty string to the app\n const appDateString = isEmptyDateStringMask(newDateString) ? '' : newDateString;\n appOnDateChange(appDateString, metaInfo); // don't do this on useEffect to avoid complete chaos\n setTempDateString(newDateString);\n const newDateTimeString = `${newDateString} ${tempTimeString}`;\n const newMetaInfo = {\n ...metaInfo,\n ...getTimeMetaInfo(tempTimeString, metaInfo),\n ...getDateMetaInfo(newDateString, metaInfo),\n newDateString,\n newTimeString: tempTimeString,\n newDateTimeString,\n };\n\n const appDateTimeString = isEmptyDateTimeStringMask(newDateTimeString) ? '' : newDateTimeString;\n appOnDateTimeChange(appDateTimeString, newMetaInfo); // don't do this on useEffect to avoid complete chaos\n },\n [appOnDateChange, setTempDateString, tempTimeString, getTimeMetaInfo, getDateMetaInfo, appOnDateTimeChange],\n );\n const handleChangeComposedTimeString = useCallback(\n (newTimeString: string, metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => {\n const appTimeString = isEmptyTimeStringMask(newTimeString) ? '' : newTimeString;\n appOnTimeChange(appTimeString, metaInfo); // don't do this on useEffect to avoid complete chaos\n\n setTimeString(newTimeString);\n const newDateTimeString = `${tempDateString} ${newTimeString}`;\n const newMetaInfo = {\n ...metaInfo,\n ...getTimeMetaInfo(newTimeString, metaInfo),\n ...getDateMetaInfo(tempDateString, metaInfo),\n newDateTimeString,\n newDateString: tempDateString,\n newTimeString,\n };\n\n const appDateTimeString = isEmptyDateTimeStringMask(newDateTimeString) ? '' : newDateTimeString;\n appOnDateTimeChange(appDateTimeString, newMetaInfo); // don't do this on useEffect to avoid complete chaos\n },\n [appOnTimeChange, setTimeString, tempDateString, getTimeMetaInfo, getDateMetaInfo, appOnDateTimeChange],\n );\n\n const handleChangeMonth: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newMonth, e, metaInfo = defaultMetaInfo) => {\n const newDateString = getFormattedDateString({\n month: newMonth,\n day,\n year,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationDateStringMetaInfo(newDateString, getIsOutOfRangeDay, getIsDisabledDay),\n newDateString,\n };\n appOnMonthChange(newMonth, e, finalMetaInfo);\n handleChangeComposedDateString(newDateString, finalMetaInfo);\n },\n [day, year, getIsOutOfRangeDay, getIsDisabledDay, appOnMonthChange, handleChangeComposedDateString],\n );\n const handleChangeDay: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newDay, e, metaInfo = defaultMetaInfo) => {\n const newDateString = getFormattedDateString({\n month,\n day: newDay,\n year,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationDateStringMetaInfo(newDateString, getIsOutOfRangeDay, getIsDisabledDay),\n newDateString,\n };\n appOnDayChange(newDay, e, finalMetaInfo);\n handleChangeComposedDateString(newDateString, finalMetaInfo);\n },\n [month, year, getIsOutOfRangeDay, getIsDisabledDay, appOnDayChange, handleChangeComposedDateString],\n );\n const handleChangeYear: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newYear, e, metaInfo = defaultMetaInfo) => {\n const newDateString = getFormattedDateString({\n month,\n day,\n year: newYear,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationDateStringMetaInfo(newDateString, getIsOutOfRangeDay, getIsDisabledDay),\n newDateString,\n };\n appOnYearChange(newYear, e, finalMetaInfo);\n handleChangeComposedDateString(newDateString, finalMetaInfo);\n },\n [month, day, getIsOutOfRangeDay, getIsDisabledDay, appOnYearChange, handleChangeComposedDateString],\n );\n\n const handleChangeHours: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newHours, e, metaInfo = defaultMetaInfo) => {\n const newTimeString = getFormattedTimeString({\n hours: newHours,\n minutes,\n // seconds,\n meridiem,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationTimeStringMetaInfo(newTimeString, getIsDisabledTime),\n newTimeString,\n };\n appOnHourChange(newHours, e, finalMetaInfo);\n handleChangeComposedTimeString(newTimeString, finalMetaInfo);\n },\n [minutes, meridiem, getIsDisabledTime, appOnHourChange, handleChangeComposedTimeString],\n );\n const handleChangeMinutes: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newMinutes, e, metaInfo = defaultMetaInfo) => {\n const newTimeString = getFormattedTimeString({\n hours,\n minutes: newMinutes,\n meridiem,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationTimeStringMetaInfo(newTimeString, getIsDisabledTime),\n newTimeString,\n };\n appOnMinuteChange(newMinutes, e, finalMetaInfo);\n handleChangeComposedTimeString(newTimeString, finalMetaInfo);\n },\n [hours, meridiem, getIsDisabledTime, appOnMinuteChange, handleChangeComposedTimeString],\n );\n const handleChangeMeridiem: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newMeridiem, e, metaInfo = defaultMetaInfo) => {\n const newTimeString = getFormattedTimeString({\n hours,\n minutes,\n meridiem: newMeridiem,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationTimeStringMetaInfo(newTimeString, getIsDisabledTime),\n newTimeString,\n };\n appOnMeridiemChange(newMeridiem, e, finalMetaInfo);\n handleChangeComposedTimeString(newTimeString, finalMetaInfo);\n },\n [hours, minutes, getIsDisabledTime, appOnMeridiemChange, handleChangeComposedTimeString],\n );\n\n const handleClearAll: DSControlledDateTimePickerInternalsT.OnDSBtnClick = useCallback(\n (e) => {\n const metaInfo = {\n isAutomaticFillTrigger: false,\n isClearButtonAction: true,\n newDateString: '',\n newTimeString: '',\n newDateTimeString: '',\n };\n appOnMonthChange('', e, metaInfo);\n appOnDayChange('', e, metaInfo);\n appOnYearChange('', e, metaInfo);\n appOnHourChange('', e, metaInfo);\n appOnMinuteChange('', e, metaInfo);\n appOnMeridiemChange('', e, metaInfo);\n if (isDateTime) handleChangeComposedDateTimeString('__/__/____', '__:__ __', metaInfo);\n if (isDate) handleChangeComposedDateString('__/__/____', metaInfo);\n if (isTime) handleChangeComposedTimeString('__:__ __', metaInfo);\n trackFocusFirstSegment();\n },\n [\n appOnDayChange,\n appOnHourChange,\n appOnMeridiemChange,\n appOnMinuteChange,\n appOnMonthChange,\n appOnYearChange,\n handleChangeComposedDateString,\n handleChangeComposedDateTimeString,\n handleChangeComposedTimeString,\n isDate,\n isDateTime,\n isTime,\n trackFocusFirstSegment,\n ],\n );\n\n return useMemo(\n () => ({\n handleChangeComposedDateTimeString,\n handleChangeComposedDateString,\n handleChangeComposedTimeString,\n handleChangeMonth,\n handleChangeDay,\n handleChangeYear,\n handleChangeHours,\n handleChangeMinutes,\n handleChangeMeridiem,\n handleClearAll,\n }),\n [\n handleChangeComposedDateString,\n handleChangeComposedDateTimeString,\n handleChangeComposedTimeString,\n handleChangeDay,\n handleChangeHours,\n handleChangeMeridiem,\n handleChangeMinutes,\n handleChangeMonth,\n handleChangeYear,\n handleClearAll,\n ],\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,aAAa,eAAe;AAMrC,SAAS,uCAAuC;AAChD,SAAS,uCAAuC;AAChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIP,SAAS,uBAAuB;AASzB,MAAM,oBAAoB,CAAC,EAAE,gBAAgB,oBAAoB,kBAAkB,cAAc,MAAc;AACpH,QAAM,EAAE,gBAAgB,mBAAmB,gBAAgB,cAAc,IAAI;AAC7E,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,EAAE,OAAO,KAAK,MAAM,OAAO,SAAS,SAAS,IAAI;AACvD,QAAM,EAAE,uBAAuB,IAAI;AAEnC,QAAM,kBAAkB;AAAA,IACtB,CACE,gBAA+B,MAC/B,WAA8E,CAAC,MACT;AACtE,YAAM,kBAAkB,iBAAiB;AACzC,YAAM,gBAAmF;AAAA,QACvF,GAAG;AAAA,QACH,GAAG,gCAAgC,iBAAiB,oBAAoB,gBAAgB;AAAA,MAC1F;AACA,aAAO;AAAA,IACT;AAAA,IACA,CAAC,gBAAgB,kBAAkB,kBAAkB;AAAA,EACvD;AAEA,QAAM,kBAAkB;AAAA,IACtB,CACE,gBAA+B,MAC/B,WAA8E,CAAC,MACT;AACtE,YAAM,kBAAkB,iBAAiB;AACzC,YAAM,gBAAmF;AAAA,QACvF,GAAG;AAAA,QACH,G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O;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable complexity */\n/* eslint-disable max-statements */\nimport { useCallback, useMemo } from 'react';\nimport type { useRelevantValueFromProps } from './useRelevantValueFromProps';\nimport type { useGetDestructuredValues } from './useGetDestructuredValues';\nimport type { useGetPropsBasedOnType } from './useGetPropsBasedOnType';\nimport type { useGetReferences } from './useGetReferences';\nimport type { useFocusTracker } from './useFocusTracker';\nimport { getValidationDateStringMetaInfo } from '../utils/dateHelpers';\nimport { getValidationTimeStringMetaInfo } from '../utils/timeHelpers';\nimport {\n isEmptyDateStringMask,\n isEmptyTimeStringMask,\n isEmptyDateTimeStringMask,\n getFormattedDateString,\n getFormattedTimeString,\n} from '../utils/stringHelpers';\nimport type { DSControlledDateTimePickerT } from '../propTypes';\nimport type { DSControlledDateTimePickerInternalsT } from '../sharedTypes';\nimport { defaultMetaInfo } from '../utils/constants';\ninterface Config {\n relevantValues: ReturnType<typeof useRelevantValueFromProps>;\n destructuredValues: ReturnType<typeof useGetDestructuredValues>;\n propsBasedOnType: ReturnType<typeof useGetPropsBasedOnType>;\n DOMRefs: ReturnType<typeof useGetReferences>;\n focusTrackers: ReturnType<typeof useFocusTracker>;\n}\n\nexport const useChangeHandlers = ({ relevantValues, destructuredValues, propsBasedOnType, focusTrackers }: Config) => {\n const { tempDateString, setTempDateString, tempTimeString, setTimeString } = relevantValues;\n const {\n getIsDisabledDay,\n getIsOutOfRangeDay,\n appOnDateChange,\n appOnMonthChange,\n appOnDayChange,\n appOnYearChange,\n getIsDisabledTime,\n appOnTimeChange,\n appOnHourChange,\n appOnMinuteChange,\n appOnMeridiemChange,\n appOnDateTimeChange,\n isDateTime,\n isDate,\n isTime,\n } = propsBasedOnType;\n const { month, day, year, hours, minutes, meridiem } = destructuredValues;\n const { trackFocusFirstSegment } = focusTrackers;\n\n const getDateMetaInfo = useCallback(\n (\n newDateString: string | null = null,\n metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {},\n ): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => {\n const finalDateString = newDateString || tempDateString;\n const finalMetaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {\n ...metaInfo,\n ...getValidationDateStringMetaInfo(finalDateString, getIsOutOfRangeDay, getIsDisabledDay),\n };\n return finalMetaInfo;\n },\n [tempDateString, getIsDisabledDay, getIsOutOfRangeDay],\n );\n\n const getTimeMetaInfo = useCallback(\n (\n newTimeString: string | null = null,\n metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {},\n ): Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> => {\n const finalTimeString = newTimeString || tempTimeString;\n const finalMetaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo> = {\n ...metaInfo,\n ...getValidationTimeStringMetaInfo(finalTimeString, getIsDisabledTime),\n };\n return finalMetaInfo;\n },\n [tempTimeString, getIsDisabledTime],\n );\n\n const handleChangeComposedDateTimeString = useCallback(\n (\n newDateString: string,\n newTimeString: string,\n metaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo,\n ): void => {\n const appDateString = isEmptyDateStringMask(newDateString) ? '' : newDateString;\n const appTimeString = isEmptyTimeStringMask(newTimeString) ? '' : newTimeString;\n appOnDateChange(appDateString, metaInfo); // don't do this on useEffect to avoid complete chaos\n setTempDateString(newDateString);\n\n appOnTimeChange(appTimeString, metaInfo); // don't do this on useEffect to avoid complete chaos\n setTimeString(newTimeString);\n\n const newDateTimeString = `${newDateString} ${newTimeString}`;\n const newMetaInfo = {\n ...metaInfo,\n ...getTimeMetaInfo(newTimeString, metaInfo),\n ...getDateMetaInfo(newDateString, metaInfo),\n newDateString,\n newTimeString,\n newDateTimeString,\n };\n\n const appDateTimeString = isEmptyDateTimeStringMask(newDateTimeString) ? '' : newDateTimeString;\n appOnDateTimeChange(appDateTimeString, newMetaInfo); // don't do this on useEffect to avoid complete chaos\n },\n [\n appOnDateChange,\n setTempDateString,\n appOnTimeChange,\n setTimeString,\n getTimeMetaInfo,\n getDateMetaInfo,\n appOnDateTimeChange,\n ],\n );\n const handleChangeComposedDateString = useCallback(\n (newDateString: string, metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => {\n // if we receive an \"empty\" mask, we comunicate empty string to the app\n const appDateString = isEmptyDateStringMask(newDateString) ? '' : newDateString;\n appOnDateChange(appDateString, metaInfo); // don't do this on useEffect to avoid complete chaos\n setTempDateString(newDateString);\n const newDateTimeString = `${newDateString} ${tempTimeString}`;\n const newMetaInfo = {\n ...metaInfo,\n ...getTimeMetaInfo(tempTimeString, metaInfo),\n ...getDateMetaInfo(newDateString, metaInfo),\n newDateString,\n newTimeString: tempTimeString,\n newDateTimeString,\n };\n\n const appDateTimeString = isEmptyDateTimeStringMask(newDateTimeString) ? '' : newDateTimeString;\n appOnDateTimeChange(appDateTimeString, newMetaInfo); // don't do this on useEffect to avoid complete chaos\n },\n [appOnDateChange, setTempDateString, tempTimeString, getTimeMetaInfo, getDateMetaInfo, appOnDateTimeChange],\n );\n const handleChangeComposedTimeString = useCallback(\n (newTimeString: string, metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => {\n const appTimeString = isEmptyTimeStringMask(newTimeString) ? '' : newTimeString;\n appOnTimeChange(appTimeString, metaInfo); // don't do this on useEffect to avoid complete chaos\n\n setTimeString(newTimeString);\n const newDateTimeString = `${tempDateString} ${newTimeString}`;\n const newMetaInfo = {\n ...metaInfo,\n ...getTimeMetaInfo(newTimeString, metaInfo),\n ...getDateMetaInfo(tempDateString, metaInfo),\n newDateTimeString,\n newDateString: tempDateString,\n newTimeString,\n };\n\n const appDateTimeString = isEmptyDateTimeStringMask(newDateTimeString) ? '' : newDateTimeString;\n appOnDateTimeChange(appDateTimeString, newMetaInfo); // don't do this on useEffect to avoid complete chaos\n },\n [appOnTimeChange, setTimeString, tempDateString, getTimeMetaInfo, getDateMetaInfo, appOnDateTimeChange],\n );\n\n const handleChangeMonth: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newMonth, e, metaInfo = defaultMetaInfo) => {\n const newDateString = getFormattedDateString({\n month: newMonth,\n day,\n year,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationDateStringMetaInfo(newDateString, getIsOutOfRangeDay, getIsDisabledDay),\n newDateString,\n };\n appOnMonthChange(newMonth, e, finalMetaInfo);\n handleChangeComposedDateString(newDateString, finalMetaInfo);\n },\n [day, year, getIsOutOfRangeDay, getIsDisabledDay, appOnMonthChange, handleChangeComposedDateString],\n );\n const handleChangeDay: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newDay, e, metaInfo = defaultMetaInfo) => {\n const newDateString = getFormattedDateString({\n month,\n day: newDay,\n year,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationDateStringMetaInfo(newDateString, getIsOutOfRangeDay, getIsDisabledDay),\n newDateString,\n };\n appOnDayChange(newDay, e, finalMetaInfo);\n handleChangeComposedDateString(newDateString, finalMetaInfo);\n },\n [month, year, getIsOutOfRangeDay, getIsDisabledDay, appOnDayChange, handleChangeComposedDateString],\n );\n const handleChangeYear: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newYear, e, metaInfo = defaultMetaInfo) => {\n const newDateString = getFormattedDateString({\n month,\n day,\n year: newYear,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationDateStringMetaInfo(newDateString, getIsOutOfRangeDay, getIsDisabledDay),\n newDateString,\n };\n appOnYearChange(newYear, e, finalMetaInfo);\n handleChangeComposedDateString(newDateString, finalMetaInfo);\n },\n [month, day, getIsOutOfRangeDay, getIsDisabledDay, appOnYearChange, handleChangeComposedDateString],\n );\n\n const handleChangeHours: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newHours, e, metaInfo = defaultMetaInfo) => {\n const newTimeString = getFormattedTimeString({\n hours: newHours,\n minutes,\n // seconds,\n meridiem,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationTimeStringMetaInfo(newTimeString, getIsDisabledTime),\n newTimeString,\n };\n appOnHourChange(newHours, e, finalMetaInfo);\n handleChangeComposedTimeString(newTimeString, finalMetaInfo);\n },\n [minutes, meridiem, getIsDisabledTime, appOnHourChange, handleChangeComposedTimeString],\n );\n const handleChangeMinutes: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newMinutes, e, metaInfo = defaultMetaInfo) => {\n const newTimeString = getFormattedTimeString({\n hours,\n minutes: newMinutes,\n meridiem,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationTimeStringMetaInfo(newTimeString, getIsDisabledTime),\n newTimeString,\n };\n appOnMinuteChange(newMinutes, e, finalMetaInfo);\n handleChangeComposedTimeString(newTimeString, finalMetaInfo);\n },\n [hours, meridiem, getIsDisabledTime, appOnMinuteChange, handleChangeComposedTimeString],\n );\n const handleChangeMeridiem: DSControlledDateTimePickerT.OnInternalInputsChange = useCallback(\n (newMeridiem, e, metaInfo = defaultMetaInfo) => {\n const newTimeString = getFormattedTimeString({\n hours,\n minutes,\n meridiem: newMeridiem,\n });\n const finalMetaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo = {\n ...metaInfo,\n ...getValidationTimeStringMetaInfo(newTimeString, getIsDisabledTime),\n newTimeString,\n };\n appOnMeridiemChange(newMeridiem, e, finalMetaInfo);\n handleChangeComposedTimeString(newTimeString, finalMetaInfo);\n },\n [hours, minutes, getIsDisabledTime, appOnMeridiemChange, handleChangeComposedTimeString],\n );\n\n const handleClearAll: DSControlledDateTimePickerInternalsT.OnDSBtnClick = useCallback(\n (e) => {\n const metaInfo = {\n isAutomaticFillTrigger: false,\n isClearButtonAction: true,\n newDateString: '',\n newTimeString: '',\n newDateTimeString: '',\n };\n appOnMonthChange('', e, metaInfo);\n appOnDayChange('', e, metaInfo);\n appOnYearChange('', e, metaInfo);\n appOnHourChange('', e, metaInfo);\n appOnMinuteChange('', e, metaInfo);\n appOnMeridiemChange('', e, metaInfo);\n if (isDateTime) handleChangeComposedDateTimeString('__/__/____', '__:__ __', metaInfo);\n if (isDate) handleChangeComposedDateString('__/__/____', metaInfo);\n if (isTime) handleChangeComposedTimeString('__:__ __', metaInfo);\n trackFocusFirstSegment();\n },\n [\n appOnDayChange,\n appOnHourChange,\n appOnMeridiemChange,\n appOnMinuteChange,\n appOnMonthChange,\n appOnYearChange,\n handleChangeComposedDateString,\n handleChangeComposedDateTimeString,\n handleChangeComposedTimeString,\n isDate,\n isDateTime,\n isTime,\n trackFocusFirstSegment,\n ],\n );\n\n return useMemo(\n () => ({\n handleChangeComposedDateTimeString,\n handleChangeComposedDateString,\n handleChangeComposedTimeString,\n handleChangeMonth,\n handleChangeDay,\n handleChangeYear,\n handleChangeHours,\n handleChangeMinutes,\n handleChangeMeridiem,\n handleClearAll,\n }),\n [\n handleChangeComposedDateString,\n handleChangeComposedDateTimeString,\n handleChangeComposedTimeString,\n handleChangeDay,\n handleChangeHours,\n handleChangeMeridiem,\n handleChangeMinutes,\n handleChangeMonth,\n handleChangeYear,\n handleClearAll,\n ],\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,aAAa,eAAe;AAMrC,SAA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
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import React2 from "react";
3
- import { useGetGlobalAttributes, useGetXstyledProps } from "@elliemae/ds-utilities";
3
+ import { useGetGlobalAttributes, useGetXstyledProps } from "@elliemae/ds-props-helpers";
4
4
  import { useGetDatePickerWithDefaultsProps } from "./useGetPropsWithDefault";
5
5
  import { useFocusTracker } from "./useFocusTracker";
6
6
  import { useGetFlags } from "./useGetFlags";