guestbell-forms 3.0.38 → 3.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.bat +1 -0
- package/.eslintrc.json +21 -14
- package/build/components/base/input/BaseInput.d.ts +99 -99
- package/build/components/base/input/BaseInput.js +4 -0
- package/build/components/base/input/BaseInput.js.map +1 -1
- package/build/components/base/input/index.d.ts +1 -1
- package/build/components/bookingCalendar/BookingCalendar.d.ts +45 -46
- package/build/components/bookingCalendar/BookingCalendar.js +4 -5
- package/build/components/bookingCalendar/BookingCalendar.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.d.ts +17 -17
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js +12 -12
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/classes.d.ts +9 -9
- package/build/components/bookingCalendar/bookingCalendarControls/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.d.ts +13 -13
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js +3 -3
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarDatePicker/classes.d.ts +5 -5
- package/build/components/bookingCalendar/bookingCalendarDatePicker/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.d.ts +10 -10
- package/build/components/bookingCalendar/bookingCalendarGrid/classes.d.ts +5 -5
- package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.d.ts +57 -57
- package/build/components/bookingCalendar/bookingCalendarItem/classes.d.ts +4 -4
- package/build/components/bookingCalendar/bookingCalendarItem/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.d.ts +16 -16
- package/build/components/bookingCalendar/bookingCalendarLane/classes.d.ts +4 -4
- package/build/components/bookingCalendar/bookingCalendarLane/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.d.ts +7 -7
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/classes.d.ts +4 -4
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.d.ts +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.d.ts +11 -11
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js +3 -3
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.d.ts +4 -5
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/classes.d.ts +5 -5
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.d.ts +9 -9
- package/build/components/bookingCalendar/bookingCalendarRenderItem/classes.d.ts +6 -6
- package/build/components/bookingCalendar/bookingCalendarRenderItem/index.d.ts +1 -1
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.d.ts +38 -37
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js +2 -0
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.d.ts +11 -11
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/classes.d.ts +5 -5
- package/build/components/bookingCalendar/classes.d.ts +11 -11
- package/build/components/bookingCalendar/common.d.ts +23 -23
- package/build/components/bookingCalendar/common.js +3 -4
- package/build/components/bookingCalendar/common.js.map +1 -1
- package/build/components/bookingCalendar/index.d.ts +3 -3
- package/build/components/bookingCalendar/utils.d.ts +52 -50
- package/build/components/bookingCalendar/utils.js.map +1 -1
- package/build/components/button/Button.d.ts +81 -81
- package/build/components/button/Button.js +1 -0
- package/build/components/button/Button.js.map +1 -1
- package/build/components/button/index.d.ts +2 -2
- package/build/components/checkbox/Checkbox.d.ts +23 -23
- package/build/components/checkbox/index.d.ts +2 -2
- package/build/components/dropdown/Dropdown.d.ts +44 -44
- package/build/components/dropdown/index.d.ts +2 -2
- package/build/components/dynamicSubmit/DynamicSubmit.d.ts +54 -54
- package/build/components/dynamicSubmit/DynamicSubmit.js.map +1 -1
- package/build/components/dynamicSubmit/index.d.ts +2 -2
- package/build/components/externalValidationComponent/ExternalValidationComponent.d.ts +15 -15
- package/build/components/externalValidationComponent/index.d.ts +2 -2
- package/build/components/form/Form.d.ts +47 -47
- package/build/components/form/FormContext.d.ts +30 -30
- package/build/components/form/FormValidationSummary.d.ts +38 -38
- package/build/components/form/FormValidationSummary.js.map +1 -1
- package/build/components/form/index.d.ts +5 -5
- package/build/components/form/withFormContext.d.ts +3 -3
- package/build/components/inputGroup/InputGroup.d.ts +15 -17
- package/build/components/inputGroup/index.d.ts +2 -2
- package/build/components/inputHeader/InputHeader.d.ts +97 -97
- package/build/components/inputHeader/InputHeader.js.map +1 -1
- package/build/components/inputHeader/InputHeaderContext.d.ts +24 -24
- package/build/components/inputHeader/index.d.ts +2 -2
- package/build/components/inputHeader/withInputHeaderContext.d.ts +3 -3
- package/build/components/money/Money.d.ts +78 -78
- package/build/components/money/Money.js.map +1 -1
- package/build/components/money/index.d.ts +2 -2
- package/build/components/numberInput/NumberInput.d.ts +28 -28
- package/build/components/numberInput/index.d.ts +2 -2
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.d.ts +84 -84
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js +3 -3
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js.map +1 -1
- package/build/components/openingHours/openingHoursDay/index.d.ts +2 -2
- package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.d.ts +92 -90
- package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js.map +1 -1
- package/build/components/openingHours/openingHoursSpecial/index.d.ts +2 -2
- package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.d.ts +109 -109
- package/build/components/openingHours/openingHoursWeek/index.d.ts +2 -2
- package/build/components/openingHours/utils/OpeningHoursUtil.d.ts +21 -21
- package/build/components/radio/Radio.d.ts +20 -20
- package/build/components/radio/index.d.ts +2 -2
- package/build/components/radioContainer/RadioContainer.d.ts +17 -16
- package/build/components/radioContainer/RadioContainer.js.map +1 -1
- package/build/components/radioContainer/index.d.ts +2 -2
- package/build/components/select/Select.d.ts +79 -79
- package/build/components/select/index.d.ts +2 -2
- package/build/components/submit/Submit.d.ts +137 -137
- package/build/components/submit/index.d.ts +2 -2
- package/build/components/submit/subComponents/SubmitValidationSummary.d.ts +5 -5
- package/build/components/tags/Tags.d.ts +92 -92
- package/build/components/tags/Tags.js +2 -0
- package/build/components/tags/Tags.js.map +1 -1
- package/build/components/tags/index.d.ts +2 -2
- package/build/components/tags/subComponents/TagsSuggestions.d.ts +34 -34
- package/build/components/tags/subComponents/TagsSuggestions.js +2 -2
- package/build/components/tags/subComponents/TagsSuggestions.js.map +1 -1
- package/build/components/text/Text.d.ts +31 -31
- package/build/components/text/index.d.ts +2 -2
- package/build/components/textArea/TextArea.d.ts +28 -28
- package/build/components/textArea/TextArea.js +1 -0
- package/build/components/textArea/TextArea.js.map +1 -1
- package/build/components/textArea/index.d.ts +2 -2
- package/build/components/themeProvider/ThemeContext.d.ts +9 -9
- package/build/components/themeProvider/ThemeProvider.d.ts +8 -7
- package/build/components/themeProvider/ThemeProvider.js.map +1 -1
- package/build/components/themeProvider/index.d.ts +4 -4
- package/build/components/themeProvider/withThemeContext.d.ts +4 -4
- package/build/components/time/Time.d.ts +32 -32
- package/build/components/time/Time.js +3 -3
- package/build/components/time/Time.js.map +1 -1
- package/build/components/time/index.d.ts +2 -2
- package/build/components/timeSpan/TimeSpan.d.ts +46 -46
- package/build/components/timeSpan/TimeSpan.js +6 -6
- package/build/components/timeSpan/TimeSpan.js.map +1 -1
- package/build/components/timeSpan/index.d.ts +2 -2
- package/build/components/utils/Guid.d.ts +2 -2
- package/build/components/utils/ShallowEqual.d.ts +16 -16
- package/build/components/utils/TimeUtil.d.ts +6 -6
- package/build/components/utils/Typescript.d.ts +5 -5
- package/build/dist/guestbell-forms.css +157 -171
- package/build/dist/guestbell-forms.css.map +1 -1
- package/build/dist/guestbell-forms.js +15 -24
- package/build/dist/guestbell-forms.js.map +1 -1
- package/build/dist/guestbell-forms.min.css +1 -1
- package/build/dist/guestbell-forms.min.js +1 -1
- package/build/dist/guestbell-forms.min.js.map +1 -1
- package/build/dist/report.html +3 -3
- package/build/index.d.ts +24 -24
- package/build/scss/components/bookingCalendar/bookingCalendar.scss +30 -7
- package/build/scss/components/inputHeader/inputHeader.scss +7 -1
- package/build/types/ElementOverrideProp.d.ts +3 -3
- package/build/types/Theme.d.ts +4 -4
- package/build/types/ThemeOverrides.d.ts +45 -45
- package/build/validators/EmailValidator.d.ts +4 -4
- package/build/validators/LatitudeValidator.d.ts +4 -4
- package/build/validators/LongitudeValidator.d.ts +4 -4
- package/build/validators/NumberValidator.d.ts +12 -12
- package/build/validators/NumberValidator.js +1 -0
- package/build/validators/NumberValidator.js.map +1 -1
- package/build/validators/UrlValidator.d.ts +4 -4
- package/build/validators/base.d.ts +4 -4
- package/build/validators/index.d.ts +6 -6
- package/package.json +130 -136
- package/src/lib/components/base/input/BaseInput.tsx +526 -0
- package/src/lib/components/base/input/index.tsx +1 -0
- package/src/lib/components/bookingCalendar/BookingCalendar.tsx +327 -0
- package/src/lib/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.tsx +249 -0
- package/src/lib/components/bookingCalendar/bookingCalendarControls/classes.ts +20 -0
- package/src/lib/components/bookingCalendar/bookingCalendarControls/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.tsx +104 -0
- package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/classes.ts +9 -0
- package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.tsx +56 -0
- package/src/lib/components/bookingCalendar/bookingCalendarGrid/classes.ts +9 -0
- package/src/lib/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.tsx +97 -0
- package/src/lib/components/bookingCalendar/bookingCalendarItem/classes.ts +7 -0
- package/src/lib/components/bookingCalendar/bookingCalendarItem/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.tsx +69 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLane/classes.ts +7 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLane/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.tsx +28 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/classes.ts +7 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/index.ts +1 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.tsx +57 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.tsx +53 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/classes.ts +9 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.tsx +57 -0
- package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/classes.ts +11 -0
- package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/index.ts +1 -0
- package/src/lib/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.tsx +217 -0
- package/src/lib/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.tsx +53 -0
- package/src/lib/components/bookingCalendar/bookingCalendarTimeAxis/classes.ts +9 -0
- package/src/lib/components/bookingCalendar/classes.ts +21 -0
- package/src/lib/components/bookingCalendar/common.ts +61 -0
- package/src/lib/components/bookingCalendar/index.ts +3 -0
- package/src/lib/components/bookingCalendar/utils.ts +348 -0
- package/src/lib/components/button/Button.tsx +193 -0
- package/src/lib/components/button/index.tsx +2 -0
- package/src/lib/components/checkbox/Checkbox.tsx +178 -0
- package/src/lib/components/checkbox/index.tsx +2 -0
- package/src/lib/components/dropdown/Dropdown.tsx +135 -0
- package/src/lib/components/dropdown/index.tsx +2 -0
- package/src/lib/components/dynamicSubmit/DynamicSubmit.tsx +153 -0
- package/src/lib/components/dynamicSubmit/index.tsx +2 -0
- package/src/lib/components/externalValidationComponent/ExternalValidationComponent.tsx +78 -0
- package/src/lib/components/externalValidationComponent/index.tsx +2 -0
- package/src/lib/components/form/Form.tsx +276 -0
- package/src/lib/components/form/FormContext.ts +49 -0
- package/src/lib/components/form/FormValidationSummary.tsx +122 -0
- package/src/lib/components/form/index.tsx +5 -0
- package/src/lib/components/form/withFormContext.tsx +20 -0
- package/src/lib/components/inputGroup/InputGroup.tsx +60 -0
- package/src/lib/components/inputGroup/index.tsx +2 -0
- package/src/lib/components/inputHeader/InputHeader.tsx +448 -0
- package/src/lib/components/inputHeader/InputHeaderContext.ts +42 -0
- package/src/lib/components/inputHeader/index.tsx +2 -0
- package/src/lib/components/inputHeader/withInputHeaderContext.tsx +24 -0
- package/src/lib/components/money/Money.tsx +298 -0
- package/src/lib/components/money/index.tsx +2 -0
- package/src/lib/components/numberInput/NumberInput.tsx +186 -0
- package/src/lib/components/numberInput/index.tsx +2 -0
- package/src/lib/components/openingHours/openingHoursDay/OpeningHoursDay.tsx +394 -0
- package/src/lib/components/openingHours/openingHoursDay/index.tsx +2 -0
- package/src/lib/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.tsx +227 -0
- package/src/lib/components/openingHours/openingHoursSpecial/index.tsx +2 -0
- package/src/lib/components/openingHours/openingHoursWeek/OpeningHoursWeek.tsx +283 -0
- package/src/lib/components/openingHours/openingHoursWeek/index.tsx +2 -0
- package/src/lib/components/openingHours/utils/OpeningHoursUtil.tsx +111 -0
- package/src/lib/components/radio/Radio.tsx +87 -0
- package/src/lib/components/radio/index.tsx +2 -0
- package/src/lib/components/radioContainer/RadioContainer.tsx +50 -0
- package/src/lib/components/radioContainer/index.tsx +2 -0
- package/src/lib/components/select/Select.tsx +335 -0
- package/src/lib/components/select/index.tsx +2 -0
- package/src/lib/components/submit/Submit.tsx +117 -0
- package/src/lib/components/submit/index.tsx +2 -0
- package/src/lib/components/submit/subComponents/SubmitValidationSummary.tsx +55 -0
- package/src/lib/components/tags/Tags.tsx +702 -0
- package/src/lib/components/tags/index.tsx +2 -0
- package/src/lib/components/tags/subComponents/TagsSuggestions.tsx +150 -0
- package/src/lib/components/text/Text.tsx +200 -0
- package/src/lib/components/text/index.tsx +2 -0
- package/src/lib/components/textArea/TextArea.tsx +109 -0
- package/src/lib/components/textArea/index.tsx +2 -0
- package/src/lib/components/themeProvider/ThemeContext.ts +16 -0
- package/src/lib/components/themeProvider/ThemeProvider.tsx +21 -0
- package/src/lib/components/themeProvider/index.tsx +4 -0
- package/src/lib/components/themeProvider/withThemeContext.tsx +30 -0
- package/src/lib/components/time/Time.tsx +296 -0
- package/src/lib/components/time/index.tsx +2 -0
- package/src/lib/components/timeSpan/TimeSpan.tsx +378 -0
- package/src/lib/components/timeSpan/index.tsx +2 -0
- package/src/lib/components/utils/Guid.ts +9 -0
- package/src/lib/components/utils/ShallowEqual.ts +75 -0
- package/src/lib/components/utils/TimeUtil.ts +22 -0
- package/src/lib/components/utils/Typescript.ts +11 -0
- package/src/lib/declarations/import.d.ts +1 -0
- package/src/lib/index.ts +24 -0
- package/src/lib/scss/components/base/index.scss +1 -0
- package/src/lib/scss/components/base/input/index.scss +1 -0
- package/src/lib/scss/components/base/input/input.scss +237 -0
- package/src/lib/scss/components/bookingCalendar/bookingCalendar.scss +272 -0
- package/src/lib/scss/components/bookingCalendar/index.scss +1 -0
- package/src/lib/scss/components/button/buttons.scss +161 -0
- package/src/lib/scss/components/button/index.scss +1 -0
- package/src/lib/scss/components/checkbox/checkbox.scss +115 -0
- package/src/lib/scss/components/checkbox/index.scss +1 -0
- package/src/lib/scss/components/dropdown/dropdown.scss +111 -0
- package/src/lib/scss/components/dropdown/index.scss +1 -0
- package/src/lib/scss/components/dynamicSubmit/dynamicSubmit.scss +1 -0
- package/src/lib/scss/components/dynamicSubmit/index.scss +1 -0
- package/src/lib/scss/components/form/form.scss +1 -0
- package/src/lib/scss/components/form/formValidationSummary.scss +55 -0
- package/src/lib/scss/components/form/index.scss +2 -0
- package/src/lib/scss/components/index.scss +21 -0
- package/src/lib/scss/components/inputGroup/index.scss +1 -0
- package/src/lib/scss/components/inputGroup/inputGroup.scss +67 -0
- package/src/lib/scss/components/inputHeader/index.scss +1 -0
- package/src/lib/scss/components/inputHeader/inputHeader.scss +132 -0
- package/src/lib/scss/components/money/index.scss +1 -0
- package/src/lib/scss/components/money/money.scss +51 -0
- package/src/lib/scss/components/numberInput/index.scss +1 -0
- package/src/lib/scss/components/numberInput/numberInput.scss +116 -0
- package/src/lib/scss/components/openingHours/index.scss +3 -0
- package/src/lib/scss/components/openingHours/openingHoursDay/index.scss +1 -0
- package/src/lib/scss/components/openingHours/openingHoursDay/openingHoursDay.scss +127 -0
- package/src/lib/scss/components/openingHours/openingHoursSpecial/index.scss +1 -0
- package/src/lib/scss/components/openingHours/openingHoursSpecial/openingHoursSpecial.scss +93 -0
- package/src/lib/scss/components/openingHours/openingHoursWeek/index.scss +1 -0
- package/src/lib/scss/components/openingHours/openingHoursWeek/openingHoursWeek.scss +23 -0
- package/src/lib/scss/components/radio/index.scss +1 -0
- package/src/lib/scss/components/radio/radio.scss +68 -0
- package/src/lib/scss/components/radioContainer/index.scss +1 -0
- package/src/lib/scss/components/radioContainer/radioContainer.scss +15 -0
- package/src/lib/scss/components/select/index.scss +1 -0
- package/src/lib/scss/components/select/select.scss +64 -0
- package/src/lib/scss/components/submit/index.scss +1 -0
- package/src/lib/scss/components/submit/submitValidationSummary.scss +35 -0
- package/src/lib/scss/components/tags/index.scss +1 -0
- package/src/lib/scss/components/tags/tags.scss +128 -0
- package/src/lib/scss/components/text/index.scss +1 -0
- package/src/lib/scss/components/text/text.scss +42 -0
- package/src/lib/scss/components/textArea/index.scss +1 -0
- package/src/lib/scss/components/textArea/textArea.scss +32 -0
- package/src/lib/scss/components/time/index.scss +1 -0
- package/src/lib/scss/components/time/time.scss +111 -0
- package/src/lib/scss/components/timeSpan/index.scss +1 -0
- package/src/lib/scss/components/timeSpan/timeSpan.scss +115 -0
- package/src/lib/scss/index.scss +8 -0
- package/src/lib/scss/styles/base.scss +7 -0
- package/src/lib/scss/styles/index.scss +2 -0
- package/src/lib/scss/styles/react-tippy.scss +4 -0
- package/src/lib/scss/variables/_buttons.scss +6 -0
- package/src/lib/scss/variables/_colors.scss +1 -0
- package/src/lib/scss/variables/_common.scss +12 -0
- package/src/lib/tsconfig.json +19 -0
- package/src/lib/types/ElementOverrideProp.ts +3 -0
- package/src/lib/types/Theme.ts +5 -0
- package/src/lib/types/ThemeOverrides.ts +46 -0
- package/src/lib/validators/EmailValidator.ts +15 -0
- package/src/lib/validators/LatitudeValidator.ts +25 -0
- package/src/lib/validators/LongitudeValidator.ts +25 -0
- package/src/lib/validators/NumberValidator.ts +50 -0
- package/src/lib/validators/UrlValidator.ts +20 -0
- package/src/lib/validators/base.ts +15 -0
- package/src/lib/validators/index.ts +6 -0
- package/src/stories/Basic.stories.ts +17 -0
- package/src/stories/Basic.tsx +1065 -0
- package/src/stories/Schedule.stories.ts +16 -0
- package/src/stories/Schedule.tsx +73 -0
- package/src/stories/ValidationPage.tsx +417 -0
- package/tsconfig.json +9 -22
- package/typedoc.json +6 -0
- package/webpack/webpack.config.base.js +139 -0
- package/webpack/webpack.config.dev.js +78 -0
- package/webpack/webpack.config.gh-pages.js +78 -0
- package/webpack/webpack.config.js +21 -0
- package/webpack/webpack.config.min.js +100 -0
- package/.vscode/launch.json +0 -15
- package/.vscode/settings.json +0 -27
- package/.vscode/tasks.json +0 -12
@@ -1,4 +1,4 @@
|
|
1
|
-
export interface BookingCalendarItemClasses {
|
2
|
-
className?: string;
|
3
|
-
}
|
4
|
-
export declare const bookingCalendarItemDefaultClasses: BookingCalendarItemClasses;
|
1
|
+
export interface BookingCalendarItemClasses {
|
2
|
+
className?: string;
|
3
|
+
}
|
4
|
+
export declare const bookingCalendarItemDefaultClasses: BookingCalendarItemClasses;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './BookingCalendarItem';
|
2
|
-
export * from './classes';
|
1
|
+
export * from './BookingCalendarItem';
|
2
|
+
export * from './classes';
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import { Duration, Moment } from 'moment';
|
2
|
-
import * as React from 'react';
|
3
|
-
import { BookingCalendarItemProps } from '../bookingCalendarItem/BookingCalendarItem';
|
4
|
-
import { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem';
|
5
|
-
import { BookingCalendarItemT } from './../common';
|
6
|
-
import { BookingCalendarLaneClasses } from './classes';
|
7
|
-
export interface BookingCalendarLaneProps<T extends BookingCalendarItemT> extends BookingCalendarLaneClasses {
|
8
|
-
items: T[];
|
9
|
-
laneIndex: number;
|
10
|
-
from: Moment;
|
11
|
-
till: Moment;
|
12
|
-
step: Duration;
|
13
|
-
BookingCalendarItem?: React.ComponentType<BookingCalendarItemProps<T>>;
|
14
|
-
BookingCalendarRenderItem?: React.ComponentType<BookingCalendarRenderItemProps<T>>;
|
15
|
-
}
|
16
|
-
export declare function BookingCalendarLane<T extends BookingCalendarItemT>(props: BookingCalendarLaneProps<T>): JSX.Element;
|
1
|
+
import { Duration, Moment } from 'moment';
|
2
|
+
import * as React from 'react';
|
3
|
+
import { BookingCalendarItemProps } from '../bookingCalendarItem/BookingCalendarItem';
|
4
|
+
import { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem';
|
5
|
+
import { BookingCalendarItemT } from './../common';
|
6
|
+
import { BookingCalendarLaneClasses } from './classes';
|
7
|
+
export interface BookingCalendarLaneProps<T extends BookingCalendarItemT> extends BookingCalendarLaneClasses {
|
8
|
+
items: T[];
|
9
|
+
laneIndex: number;
|
10
|
+
from: Moment;
|
11
|
+
till: Moment;
|
12
|
+
step: Duration;
|
13
|
+
BookingCalendarItem?: React.ComponentType<BookingCalendarItemProps<T>>;
|
14
|
+
BookingCalendarRenderItem?: React.ComponentType<BookingCalendarRenderItemProps<T>>;
|
15
|
+
}
|
16
|
+
export declare function BookingCalendarLane<T extends BookingCalendarItemT>(props: BookingCalendarLaneProps<T>): React.JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export interface BookingCalendarLaneClasses {
|
2
|
-
className?: string;
|
3
|
-
}
|
4
|
-
export declare const bookingCalendarLaneDefaultClasses: BookingCalendarLaneClasses;
|
1
|
+
export interface BookingCalendarLaneClasses {
|
2
|
+
className?: string;
|
3
|
+
}
|
4
|
+
export declare const bookingCalendarLaneDefaultClasses: BookingCalendarLaneClasses;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './BookingCalendarLane';
|
2
|
-
export * from './classes';
|
1
|
+
export * from './BookingCalendarLane';
|
2
|
+
export * from './classes';
|
package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
import { BookingCalendarLaneHeaderClasses } from './classes';
|
3
|
-
export interface BookingCalendarLaneHeaderProps<TLaneData> extends BookingCalendarLaneHeaderClasses {
|
4
|
-
laneKey: string | number;
|
5
|
-
data: TLaneData;
|
6
|
-
}
|
7
|
-
export declare function BookingCalendarLaneHeader<TLaneData>(props: BookingCalendarLaneHeaderProps<TLaneData>): JSX.Element;
|
1
|
+
import * as React from 'react';
|
2
|
+
import { BookingCalendarLaneHeaderClasses } from './classes';
|
3
|
+
export interface BookingCalendarLaneHeaderProps<TLaneData> extends BookingCalendarLaneHeaderClasses {
|
4
|
+
laneKey: string | number;
|
5
|
+
data: TLaneData;
|
6
|
+
}
|
7
|
+
export declare function BookingCalendarLaneHeader<TLaneData>(props: BookingCalendarLaneHeaderProps<TLaneData>): React.JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export interface BookingCalendarLaneHeaderClasses {
|
2
|
-
className?: string;
|
3
|
-
}
|
4
|
-
export declare const bookingCalendarLaneHeaderDefaultClasses: BookingCalendarLaneHeaderClasses;
|
1
|
+
export interface BookingCalendarLaneHeaderClasses {
|
2
|
+
className?: string;
|
3
|
+
}
|
4
|
+
export declare const bookingCalendarLaneHeaderDefaultClasses: BookingCalendarLaneHeaderClasses;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './BookingCalendarLaneHeader';
|
1
|
+
export * from './BookingCalendarLaneHeader';
|
package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
|
2
|
-
import { BookingCalendarDateRange, BookingCalendarItemT } from '../common';
|
3
|
-
import { Duration, Moment } from 'moment';
|
4
|
-
import { BookingCalendarLanesHeaderClasses } from './classes';
|
5
|
-
export interface BookingCalendarLanesHeaderProps<T extends BookingCalendarItemT> extends BookingCalendarLanesHeaderClasses {
|
6
|
-
step: Duration;
|
7
|
-
from: Moment;
|
8
|
-
till: Moment;
|
9
|
-
onRangeChange?: (range: BookingCalendarDateRange) => void;
|
10
|
-
}
|
11
|
-
export declare function BookingCalendarLanesHeader<T extends BookingCalendarItemT>(props: BookingCalendarLanesHeaderProps<T>): JSX.Element;
|
1
|
+
import * as React from 'react';
|
2
|
+
import { BookingCalendarDateRange, BookingCalendarItemT } from '../common';
|
3
|
+
import { Duration, Moment } from 'moment';
|
4
|
+
import { BookingCalendarLanesHeaderClasses } from './classes';
|
5
|
+
export interface BookingCalendarLanesHeaderProps<T extends BookingCalendarItemT> extends BookingCalendarLanesHeaderClasses {
|
6
|
+
step: Duration;
|
7
|
+
from: Moment;
|
8
|
+
till: Moment;
|
9
|
+
onRangeChange?: (range: BookingCalendarDateRange) => void;
|
10
|
+
}
|
11
|
+
export declare function BookingCalendarLanesHeader<T extends BookingCalendarItemT>(props: BookingCalendarLanesHeaderProps<T>): React.JSX.Element;
|
package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js
CHANGED
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.BookingCalendarLanesHeader = BookingCalendarLanesHeader;
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
9
|
+
var _classes = require("./classes");
|
9
10
|
var _utils = require("../utils");
|
10
11
|
var _bookingCalendarLane = require("../bookingCalendarLane");
|
11
12
|
var _BookingCalendarLanesHeaderRenderItem = require("./BookingCalendarLanesHeaderRenderItem");
|
12
|
-
var _ = require(".");
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -28,9 +28,9 @@ function BookingCalendarLanesHeader(props) {
|
|
28
28
|
const items = React.useMemo(() => (0, _utils.generateControlItems)(from, till, step, from === null || from === void 0 ? void 0 : from.clone().startOf('day')), [from, till, step]);
|
29
29
|
const BookingCalendarLanesHeaderRenderItem = React.useMemo(() => (0, _BookingCalendarLanesHeaderRenderItem.BookingCalendarLanesHeaderRenderItemFactory)(onRangeChange), [onRangeChange]);
|
30
30
|
return /*#__PURE__*/React.createElement("div", {
|
31
|
-
className: (0, _classnames.default)(
|
31
|
+
className: (0, _classnames.default)(_classes.bookingCalendarLanesHeaderDefaultClasses.className, className)
|
32
32
|
}, /*#__PURE__*/React.createElement(_bookingCalendarLane.BookingCalendarLane, {
|
33
|
-
className: (0, _classnames.default)(
|
33
|
+
className: (0, _classnames.default)(_classes.bookingCalendarLanesHeaderDefaultClasses.laneClassName, laneClassName),
|
34
34
|
items: items,
|
35
35
|
from: from,
|
36
36
|
till: till,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarLanesHeader.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_utils","_bookingCalendarLane","_BookingCalendarLanesHeaderRenderItem","
|
1
|
+
{"version":3,"file":"BookingCalendarLanesHeader.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_classes","_utils","_bookingCalendarLane","_BookingCalendarLanesHeaderRenderItem","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarLanesHeader","props","className","laneClassName","step","from","till","onRangeChange","items","useMemo","generateControlItems","clone","startOf","BookingCalendarLanesHeaderRenderItem","BookingCalendarLanesHeaderRenderItemFactory","createElement","classNames","bookingCalendarLanesHeaderDefaultClasses","BookingCalendarLane","laneIndex","BookingCalendarRenderItem"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport { BookingCalendarDateRange, BookingCalendarItemT } from '../common';\r\nimport { Duration, Moment } from 'moment';\r\nimport {\r\n BookingCalendarLanesHeaderClasses,\r\n bookingCalendarLanesHeaderDefaultClasses,\r\n} from './classes';\r\nimport { generateControlItems } from '../utils';\r\nimport { BookingCalendarLane } from '../bookingCalendarLane';\r\nimport { BookingCalendarLanesHeaderRenderItemFactory } from './BookingCalendarLanesHeaderRenderItem';\r\n\r\nexport interface BookingCalendarLanesHeaderProps<T extends BookingCalendarItemT>\r\n extends BookingCalendarLanesHeaderClasses {\r\n step: Duration;\r\n from: Moment;\r\n till: Moment;\r\n onRangeChange?: (range: BookingCalendarDateRange) => void;\r\n}\r\n\r\nexport function BookingCalendarLanesHeader<T extends BookingCalendarItemT>(\r\n props: BookingCalendarLanesHeaderProps<T>\r\n) {\r\n const { className, laneClassName, step, from, till, onRangeChange } = props;\r\n if (!step || !from || !till) {\r\n return null;\r\n }\r\n const items = React.useMemo(\r\n () => generateControlItems(from, till, step, from?.clone().startOf('day')),\r\n [from, till, step]\r\n );\r\n const BookingCalendarLanesHeaderRenderItem = React.useMemo(\r\n () => BookingCalendarLanesHeaderRenderItemFactory(onRangeChange),\r\n [onRangeChange]\r\n );\r\n return (\r\n <div\r\n className={classNames(\r\n bookingCalendarLanesHeaderDefaultClasses.className,\r\n className\r\n )}\r\n >\r\n <BookingCalendarLane\r\n className={classNames(\r\n bookingCalendarLanesHeaderDefaultClasses.laneClassName,\r\n laneClassName\r\n )}\r\n items={items}\r\n from={from}\r\n till={till}\r\n laneIndex={-1}\r\n BookingCalendarRenderItem={BookingCalendarLanesHeaderRenderItem}\r\n step={step}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,CAAE;IACdC,yBAAyB,EAAEP,oCAAqC;IAChET,IAAI,EAAEA;EAAK,CACZ,CACE,CAAC;AAEV"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
import { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem';
|
3
|
-
import { BookingCalendarItemT } from '../common';
|
4
|
-
|
5
|
-
export declare const BookingCalendarLanesHeaderRenderItemFactory: (onRangeChange: (range: BookingCalendarDateRange) => void) => <T extends BookingCalendarItemT>(props: BookingCalendarRenderItemProps<T>) => JSX.Element;
|
1
|
+
import * as React from 'react';
|
2
|
+
import { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem';
|
3
|
+
import { BookingCalendarItemT, BookingCalendarDateRange } from '../common';
|
4
|
+
export declare const BookingCalendarLanesHeaderRenderItemFactory: (onRangeChange: (range: BookingCalendarDateRange) => void) => <T extends BookingCalendarItemT>(props: BookingCalendarRenderItemProps<T>) => React.JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarLanesHeaderRenderItem.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_classes","_Button","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarLanesHeaderRenderItemFactory","onRangeChange","BookingCalendarLanesHeaderRenderItem","props","item","className","startIsCut","endIsCut","realFrom","realTill","onClick","useCallback","from","till","createElement","classNames","bookingCalendarRenderItemDefaultClasses","Button","noShadow","type","Fragment","format","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem';\r\nimport { bookingCalendarRenderItemDefaultClasses } from '../bookingCalendarRenderItem/classes';\r\nimport { BookingCalendarItemT } from '../common';\r\nimport { Button } from '../../button/Button';\r\
|
1
|
+
{"version":3,"file":"BookingCalendarLanesHeaderRenderItem.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_classes","_Button","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarLanesHeaderRenderItemFactory","onRangeChange","BookingCalendarLanesHeaderRenderItem","props","item","className","startIsCut","endIsCut","realFrom","realTill","onClick","useCallback","from","till","createElement","classNames","bookingCalendarRenderItemDefaultClasses","Button","noShadow","type","Fragment","format","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem';\r\nimport { bookingCalendarRenderItemDefaultClasses } from '../bookingCalendarRenderItem/classes';\r\nimport { BookingCalendarItemT, BookingCalendarDateRange } from '../common';\r\nimport { Button } from '../../button/Button';\r\n\r\nexport const BookingCalendarLanesHeaderRenderItemFactory = (\r\n onRangeChange: (range: BookingCalendarDateRange) => void\r\n) =>\r\n function BookingCalendarLanesHeaderRenderItem<T extends BookingCalendarItemT>(\r\n props: BookingCalendarRenderItemProps<T>\r\n ) {\r\n const { item, className, startIsCut, endIsCut, realFrom, realTill } = props;\r\n const onClick = React.useCallback(\r\n () => onRangeChange({ from: item.from, till: item.till }),\r\n [item]\r\n );\r\n return item ? (\r\n <div\r\n className={classNames(\r\n bookingCalendarRenderItemDefaultClasses.className,\r\n className\r\n )}\r\n >\r\n <Button\r\n className=\"bookingCalendar__lanesHeader__renderItem__button\"\r\n noShadow={true}\r\n onClick={onClick}\r\n type=\"primary\"\r\n >\r\n {startIsCut || endIsCut ? (\r\n <>\r\n {item.from.format('ddd, Do')}\r\n <br />\r\n <span className=\"bookingCalendar__lanesHeader__renderItem__button__mutedText bookingCalendar__lanesHeader__renderItem__button__mutedText--split\">\r\n <span>{startIsCut && realFrom.format('M/D H:mm')}</span>\r\n <span>{endIsCut && realTill.format('M/D H:mm')}</span>\r\n </span>\r\n </>\r\n ) : (\r\n <>\r\n {item.from.format('ddd')}\r\n <br />\r\n <span className=\"bookingCalendar__lanesHeader__renderItem__button__mutedText\">\r\n {item.from.format('Do')}\r\n </span>\r\n </>\r\n )}\r\n </Button>\r\n </div>\r\n ) : null;\r\n };\r\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAA6C,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC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gBACrBjC,KAAA,CAAAwC,aAAA,CAAAxC,KAAA,CAAA8C,QAAA,QACGhB,IAAI,CAACQ,IAAI,CAACS,MAAM,CAAC,SAAS,CAAC,eAC5B/C,KAAA,CAAAwC,aAAA,WAAK,CAAC,eACNxC,KAAA,CAAAwC,aAAA;IAAMT,SAAS,EAAC;EAAgI,gBAC9I/B,KAAA,CAAAwC,aAAA,eAAOR,UAAU,IAAIE,QAAQ,CAACa,MAAM,CAAC,UAAU,CAAQ,CAAC,eACxD/C,KAAA,CAAAwC,aAAA,eAAOP,QAAQ,IAAIE,QAAQ,CAACY,MAAM,CAAC,UAAU,CAAQ,CACjD,CACN,CAAC,gBAEH/C,KAAA,CAAAwC,aAAA,CAAAxC,KAAA,CAAA8C,QAAA,QACGhB,IAAI,CAACQ,IAAI,CAACS,MAAM,CAAC,KAAK,CAAC,eACxB/C,KAAA,CAAAwC,aAAA,WAAK,CAAC,eACNxC,KAAA,CAAAwC,aAAA;IAAMT,SAAS,EAAC;EAA6D,GAC1ED,IAAI,CAACQ,IAAI,CAACS,MAAM,CAAC,IAAI,CAClB,CACN,CAEE,CACL,CAAC,GACJ,IAAI;AACV,CAAC;AAACC,OAAA,CAAAtB,2CAAA,GAAAA,2CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export interface BookingCalendarLanesHeaderClasses {
|
2
|
-
className?: string;
|
3
|
-
laneClassName?: string;
|
4
|
-
}
|
5
|
-
export declare const bookingCalendarLanesHeaderDefaultClasses: BookingCalendarLanesHeaderClasses;
|
1
|
+
export interface BookingCalendarLanesHeaderClasses {
|
2
|
+
className?: string;
|
3
|
+
laneClassName?: string;
|
4
|
+
}
|
5
|
+
export declare const bookingCalendarLanesHeaderDefaultClasses: BookingCalendarLanesHeaderClasses;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './BookingCalendarLanesHeader';
|
2
|
-
export * from './classes';
|
1
|
+
export * from './BookingCalendarLanesHeader';
|
2
|
+
export * from './classes';
|
package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { BookingCalendarItemProps } from '../bookingCalendarItem';
|
3
|
-
import { BookingCalendarItemT } from './../common';
|
4
|
-
import { BookingCalendarRenderItemClasses } from './classes';
|
5
|
-
export interface BookingCalendarRenderItemProps<T extends BookingCalendarItemT> extends BookingCalendarItemProps<T>, BookingCalendarRenderItemClasses {
|
6
|
-
alwaysShowContent?: boolean;
|
7
|
-
children?: React.ReactNode;
|
8
|
-
}
|
9
|
-
export declare function BookingCalendarRenderItem<T extends BookingCalendarItemT>(props: BookingCalendarRenderItemProps<T>): JSX.Element;
|
1
|
+
import * as React from 'react';
|
2
|
+
import { BookingCalendarItemProps } from '../bookingCalendarItem';
|
3
|
+
import { BookingCalendarItemT } from './../common';
|
4
|
+
import { BookingCalendarRenderItemClasses } from './classes';
|
5
|
+
export interface BookingCalendarRenderItemProps<T extends BookingCalendarItemT> extends BookingCalendarItemProps<T>, BookingCalendarRenderItemClasses {
|
6
|
+
alwaysShowContent?: boolean;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
}
|
9
|
+
export declare function BookingCalendarRenderItem<T extends BookingCalendarItemT>(props: BookingCalendarRenderItemProps<T>): React.JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export interface BookingCalendarRenderItemClasses {
|
2
|
-
className?: string;
|
3
|
-
cutStartClassname?: string;
|
4
|
-
cutEndClassname?: string;
|
5
|
-
}
|
6
|
-
export declare const bookingCalendarRenderItemDefaultClasses: BookingCalendarRenderItemClasses;
|
1
|
+
export interface BookingCalendarRenderItemClasses {
|
2
|
+
className?: string;
|
3
|
+
cutStartClassname?: string;
|
4
|
+
cutEndClassname?: string;
|
5
|
+
}
|
6
|
+
export declare const bookingCalendarRenderItemDefaultClasses: BookingCalendarRenderItemClasses;
|
@@ -1 +1 @@
|
|
1
|
-
export * from './BookingCalendarRenderItem';
|
1
|
+
export * from './BookingCalendarRenderItem';
|
package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.d.ts
CHANGED
@@ -1,37 +1,38 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
export
|
3
|
-
export interface BookingCalendarSelectionData {
|
4
|
-
origin: BookingCalendarSelectionCoordinates;
|
5
|
-
target: BookingCalendarSelectionCoordinates;
|
6
|
-
}
|
7
|
-
export interface BookingCalendarSelectionProps {
|
8
|
-
disabled?: boolean;
|
9
|
-
onSelecting?: (data: {
|
10
|
-
origin: BookingCalendarSelectionCoordinates;
|
11
|
-
target: BookingCalendarSelectionCoordinates;
|
12
|
-
}) => void;
|
13
|
-
onSelected?: (data: {
|
14
|
-
origin: BookingCalendarSelectionCoordinates;
|
15
|
-
target: BookingCalendarSelectionCoordinates;
|
16
|
-
}) => void;
|
17
|
-
dataRowsCount: number;
|
18
|
-
minSelectionSize: number;
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
1
|
+
import * as React from 'react';
|
2
|
+
export type BookingCalendarSelectionCoordinates = [number, number];
|
3
|
+
export interface BookingCalendarSelectionData {
|
4
|
+
origin: BookingCalendarSelectionCoordinates;
|
5
|
+
target: BookingCalendarSelectionCoordinates;
|
6
|
+
}
|
7
|
+
export interface BookingCalendarSelectionProps {
|
8
|
+
disabled?: boolean;
|
9
|
+
onSelecting?: (data: {
|
10
|
+
origin: BookingCalendarSelectionCoordinates;
|
11
|
+
target: BookingCalendarSelectionCoordinates;
|
12
|
+
}) => void;
|
13
|
+
onSelected?: (data: {
|
14
|
+
origin: BookingCalendarSelectionCoordinates;
|
15
|
+
target: BookingCalendarSelectionCoordinates;
|
16
|
+
}) => void;
|
17
|
+
dataRowsCount: number;
|
18
|
+
minSelectionSize: number;
|
19
|
+
children?: React.ReactNode;
|
20
|
+
}
|
21
|
+
export interface BookingCalendarSelectionState {
|
22
|
+
selectionBoxOrigin: BookingCalendarSelectionCoordinates;
|
23
|
+
selectionBoxTarget: BookingCalendarSelectionCoordinates;
|
24
|
+
hold: boolean;
|
25
|
+
animation: string;
|
26
|
+
selectionBox: boolean;
|
27
|
+
}
|
28
|
+
export default class BookingCalendarSelection extends React.Component<BookingCalendarSelectionProps, BookingCalendarSelectionState> {
|
29
|
+
private animationInProgress;
|
30
|
+
private containerRef;
|
31
|
+
constructor(props: any);
|
32
|
+
handleTransformBox(): "scaleY(-1) scaleX(-1)" | "scaleY(-1)" | "scaleX(-1)";
|
33
|
+
handleMouseLeave(evt: React.MouseEvent<HTMLElement>): void;
|
34
|
+
handleMouseUp(evt: React.MouseEvent<HTMLElement>): void;
|
35
|
+
handleMouseDown(e: React.MouseEvent<HTMLDivElement>): void;
|
36
|
+
private handleMouseMove;
|
37
|
+
render(): React.JSX.Element;
|
38
|
+
}
|
package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js
CHANGED
@@ -10,6 +10,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
10
10
|
class BookingCalendarSelection extends React.Component {
|
11
11
|
constructor(props) {
|
12
12
|
super(props);
|
13
|
+
this.animationInProgress = void 0;
|
14
|
+
this.containerRef = void 0;
|
13
15
|
this.animationInProgress = null;
|
14
16
|
this.containerRef = /*#__PURE__*/React.createRef();
|
15
17
|
this.state = {
|
package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarSelection.js","names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarSelection","Component","constructor","props","animationInProgress","containerRef","createRef","state","hold","selectionBox","selectionBoxOrigin","selectionBoxTarget","animation","handleMouseUp","bind","handleMouseDown","handleMouseMove","handleMouseLeave","handleTransformBox","evt","_this$props$onSelecte","_this$props","distance","Math","sqrt","pow","setState","setTimeout","minSelectionSize","onSelected","origin","target","e","_this$containerRef$cu","disabled","nativeEvent","button","clearTimeout","bb","current","getBoundingClientRect","pageX","x","pageY","y","_this$containerRef$cu2","_this$props$onSelecti","_this$props2","onSelecting","render","baseStyle","zIndex","left","top","height","abs","width","userSelect","transformOrigin","transform","boxVisible","createElement","ref","className","style","undefined","gridRowEnd","dataRowsCount","onMouseDown","onMouseUp","onMouseMove","onMouseLeave","children","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.tsx"],"sourcesContent":["import * as React from 'react';\r\n\r\nexport type BookingCalendarSelectionCoordinates = [number, number];\r\nexport interface BookingCalendarSelectionData {\r\n origin: BookingCalendarSelectionCoordinates;\r\n target: BookingCalendarSelectionCoordinates;\r\n}\r\nexport interface BookingCalendarSelectionProps {\r\n disabled?: boolean;\r\n onSelecting?: (data: {\r\n origin: BookingCalendarSelectionCoordinates;\r\n target: BookingCalendarSelectionCoordinates;\r\n }) => void;\r\n onSelected?: (data: {\r\n origin: BookingCalendarSelectionCoordinates;\r\n target: BookingCalendarSelectionCoordinates;\r\n }) => void;\r\n dataRowsCount: number;\r\n minSelectionSize: number;\r\n}\r\n\r\nexport interface BookingCalendarSelectionState {\r\n selectionBoxOrigin: BookingCalendarSelectionCoordinates;\r\n selectionBoxTarget: BookingCalendarSelectionCoordinates;\r\n hold: boolean;\r\n animation: string;\r\n selectionBox: boolean;\r\n}\r\n\r\nexport default class BookingCalendarSelection extends React.Component<\r\n BookingCalendarSelectionProps,\r\n BookingCalendarSelectionState\r\n> {\r\n private animationInProgress: number;\r\n private containerRef: React.RefObject<HTMLDivElement>;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.animationInProgress = null;\r\n this.containerRef = React.createRef();\r\n this.state = {\r\n hold: false,\r\n selectionBox: false,\r\n selectionBoxOrigin: [0, 0],\r\n selectionBoxTarget: [0, 0],\r\n animation: '',\r\n };\r\n this.handleMouseUp = this.handleMouseUp.bind(this);\r\n this.handleMouseDown = this.handleMouseDown.bind(this);\r\n this.handleMouseMove = this.handleMouseMove.bind(this);\r\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\r\n }\r\n\r\n handleTransformBox() {\r\n const { selectionBoxOrigin, selectionBoxTarget } = this.state;\r\n if (\r\n selectionBoxOrigin[1] > selectionBoxTarget[1] &&\r\n selectionBoxOrigin[0] > selectionBoxTarget[0]\r\n ) {\r\n return 'scaleY(-1) scaleX(-1)';\r\n }\r\n\r\n if (selectionBoxOrigin[1] > selectionBoxTarget[1]) {\r\n return 'scaleY(-1)';\r\n }\r\n if (selectionBoxOrigin[0] > selectionBoxTarget[0]) {\r\n return 'scaleX(-1)';\r\n }\r\n return null;\r\n }\r\n\r\n handleMouseLeave(evt: React.MouseEvent<HTMLElement>) {\r\n /*if (this.state.hold) {\r\n this.setState({\r\n hold: false,\r\n animation: 'bookingCalendar__selection--fadeout',\r\n });\r\n this.animationInProgress = (setTimeout(() => {\r\n this.setState({\r\n selectionBox: false,\r\n animation: '',\r\n selectionBoxOrigin: [0, 0],\r\n selectionBoxTarget: [0, 0],\r\n });\r\n this.animationInProgress = null;\r\n }, 300) as unknown) as number;\r\n }*/\r\n }\r\n\r\n handleMouseUp(evt: React.MouseEvent<HTMLElement>) {\r\n if (this.state.hold) {\r\n const distance = Math.sqrt(\r\n Math.pow(\r\n this.state.selectionBoxTarget[1] - this.state.selectionBoxOrigin[1],\r\n 2\r\n ) +\r\n Math.pow(\r\n this.state.selectionBoxTarget[0] - this.state.selectionBoxOrigin[0],\r\n 2\r\n )\r\n );\r\n this.setState({\r\n hold: false,\r\n animation: 'bookingCalendar__selection--fadeout',\r\n });\r\n this.animationInProgress = (setTimeout(() => {\r\n this.setState({\r\n selectionBox: false,\r\n animation: '',\r\n selectionBoxOrigin: [0, 0],\r\n selectionBoxTarget: [0, 0],\r\n });\r\n this.animationInProgress = null;\r\n }, 300) as unknown) as number;\r\n if (distance < this.props.minSelectionSize) {\r\n return;\r\n }\r\n this.props.onSelected?.({\r\n origin: this.state.selectionBoxOrigin,\r\n target: this.state.selectionBoxTarget,\r\n });\r\n }\r\n }\r\n\r\n handleMouseDown(e: React.MouseEvent<HTMLDivElement>) {\r\n if (this.props.disabled || e.nativeEvent.button !== 0) {\r\n return;\r\n }\r\n clearTimeout(this.animationInProgress);\r\n this.animationInProgress = null;\r\n this.setState({ selectionBox: false, animation: '' });\r\n\r\n const bb = this.containerRef.current?.getBoundingClientRect();\r\n this.setState({\r\n hold: true,\r\n selectionBoxOrigin: [\r\n e.nativeEvent.pageX - bb.x,\r\n e.nativeEvent.pageY - bb.y,\r\n ],\r\n selectionBoxTarget: [\r\n e.nativeEvent.pageX - bb.x,\r\n e.nativeEvent.pageY - bb.y,\r\n ],\r\n });\r\n }\r\n\r\n private handleMouseMove(evt: React.MouseEvent<HTMLDivElement>) {\r\n if (this.state.hold && !this.state.selectionBox) {\r\n this.setState({ selectionBox: true });\r\n }\r\n if (this.state.selectionBox && !this.animationInProgress) {\r\n const bb = this.containerRef.current?.getBoundingClientRect();\r\n this.setState({\r\n selectionBoxTarget: [\r\n evt.nativeEvent.pageX - bb?.x,\r\n evt.nativeEvent.pageY - bb?.y,\r\n ],\r\n });\r\n\r\n this.props.onSelecting?.({\r\n origin: this.state.selectionBoxOrigin,\r\n target: this.state.selectionBoxTarget,\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n const baseStyle: React.CSSProperties = {\r\n zIndex: 10,\r\n left: this.state.selectionBoxOrigin[0],\r\n top: this.state.selectionBoxOrigin[1],\r\n height: Math.abs(\r\n this.state.selectionBoxTarget[1] - this.state.selectionBoxOrigin[1] - 1\r\n ),\r\n width: Math.abs(\r\n this.state.selectionBoxTarget[0] - this.state.selectionBoxOrigin[0] - 1\r\n ),\r\n userSelect: 'none',\r\n transformOrigin: 'top left',\r\n transform: this.handleTransformBox(),\r\n };\r\n const boxVisible =\r\n Math.sqrt(\r\n Math.pow(\r\n this.state.selectionBoxTarget[1] - this.state.selectionBoxOrigin[1],\r\n 2\r\n ) +\r\n Math.pow(\r\n this.state.selectionBoxTarget[0] - this.state.selectionBoxOrigin[0],\r\n 2\r\n )\r\n ) > this.props.minSelectionSize;\r\n return (\r\n <div\r\n ref={this.containerRef}\r\n className=\"bookingCalendar__selection__container\"\r\n style={{\r\n zIndex: this.state.selectionBox ? 99999 : undefined,\r\n gridRowEnd: `span ${this.props.dataRowsCount}`,\r\n }}\r\n onMouseDown={this.handleMouseDown}\r\n onMouseUp={this.handleMouseUp}\r\n onMouseMove={this.handleMouseMove}\r\n onMouseLeave={this.handleMouseLeave}\r\n >\r\n {boxVisible && this.state.selectionBox && (\r\n <div\r\n className={`bookingCalendar__selection ${this.state.animation}`}\r\n style={baseStyle}\r\n />\r\n )}\r\n {this.props.children}\r\n </div>\r\n );\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG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IAAI,CAACP,KAAK,CAACyB,gBAAgB;IACjC,oBACErD,KAAA,CAAAsF,aAAA;MACEC,GAAG,EAAE,IAAI,CAACzD,YAAa;MACvB0D,SAAS,EAAC,uCAAuC;MACjDC,KAAK,EAAE;QACLb,MAAM,EAAE,IAAI,CAAC5C,KAAK,CAACE,YAAY,GAAG,KAAK,GAAGwD,SAAS;QACnDC,UAAU,EAAG,QAAO,IAAI,CAAC/D,KAAK,CAACgE,aAAc;MAC/C,CAAE;MACFC,WAAW,EAAE,IAAI,CAACrD,eAAgB;MAClCsD,SAAS,EAAE,IAAI,CAACxD,aAAc;MAC9ByD,WAAW,EAAE,IAAI,CAACtD,eAAgB;MAClCuD,YAAY,EAAE,IAAI,CAACtD;IAAiB,GAEnC2C,UAAU,IAAI,IAAI,CAACrD,KAAK,CAACE,YAAY,iBACpClC,KAAA,CAAAsF,aAAA;MACEE,SAAS,EAAG,8BAA6B,IAAI,CAACxD,KAAK,CAACK,SAAU,EAAE;MAChEoD,KAAK,EAAEd;IAAU,CAClB,CACF,EACA,IAAI,CAAC/C,KAAK,CAACqE,QACT,CAAC;EAEV;AACF;AAACC,OAAA,CAAAxF,OAAA,GAAAe,wBAAA"}
|
1
|
+
{"version":3,"file":"BookingCalendarSelection.js","names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarSelection","Component","constructor","props","animationInProgress","containerRef","createRef","state","hold","selectionBox","selectionBoxOrigin","selectionBoxTarget","animation","handleMouseUp","bind","handleMouseDown","handleMouseMove","handleMouseLeave","handleTransformBox","evt","_this$props$onSelecte","_this$props","distance","Math","sqrt","pow","setState","setTimeout","minSelectionSize","onSelected","origin","target","e","_this$containerRef$cu","disabled","nativeEvent","button","clearTimeout","bb","current","getBoundingClientRect","pageX","x","pageY","y","_this$containerRef$cu2","_this$props$onSelecti","_this$props2","onSelecting","render","baseStyle","zIndex","left","top","height","abs","width","userSelect","transformOrigin","transform","boxVisible","createElement","ref","className","style","undefined","gridRowEnd","dataRowsCount","onMouseDown","onMouseUp","onMouseMove","onMouseLeave","children","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.tsx"],"sourcesContent":["import * as React from 'react';\r\n\r\nexport type BookingCalendarSelectionCoordinates = [number, number];\r\nexport interface BookingCalendarSelectionData {\r\n origin: BookingCalendarSelectionCoordinates;\r\n target: BookingCalendarSelectionCoordinates;\r\n}\r\nexport interface BookingCalendarSelectionProps {\r\n disabled?: boolean;\r\n onSelecting?: (data: {\r\n origin: BookingCalendarSelectionCoordinates;\r\n target: BookingCalendarSelectionCoordinates;\r\n }) => void;\r\n onSelected?: (data: {\r\n origin: BookingCalendarSelectionCoordinates;\r\n target: BookingCalendarSelectionCoordinates;\r\n }) => void;\r\n dataRowsCount: number;\r\n minSelectionSize: number;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport interface BookingCalendarSelectionState {\r\n selectionBoxOrigin: BookingCalendarSelectionCoordinates;\r\n selectionBoxTarget: BookingCalendarSelectionCoordinates;\r\n hold: boolean;\r\n animation: string;\r\n selectionBox: boolean;\r\n}\r\n\r\nexport default class BookingCalendarSelection extends React.Component<\r\n BookingCalendarSelectionProps,\r\n BookingCalendarSelectionState\r\n> {\r\n private animationInProgress: number;\r\n private containerRef: React.RefObject<HTMLDivElement>;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.animationInProgress = null;\r\n this.containerRef = React.createRef();\r\n this.state = {\r\n hold: false,\r\n selectionBox: false,\r\n selectionBoxOrigin: [0, 0],\r\n selectionBoxTarget: [0, 0],\r\n animation: '',\r\n };\r\n this.handleMouseUp = this.handleMouseUp.bind(this);\r\n this.handleMouseDown = this.handleMouseDown.bind(this);\r\n this.handleMouseMove = this.handleMouseMove.bind(this);\r\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\r\n }\r\n\r\n handleTransformBox() {\r\n const { selectionBoxOrigin, selectionBoxTarget } = this.state;\r\n if (\r\n selectionBoxOrigin[1] > selectionBoxTarget[1] &&\r\n selectionBoxOrigin[0] > selectionBoxTarget[0]\r\n ) {\r\n return 'scaleY(-1) scaleX(-1)';\r\n }\r\n\r\n if (selectionBoxOrigin[1] > selectionBoxTarget[1]) {\r\n return 'scaleY(-1)';\r\n }\r\n if (selectionBoxOrigin[0] > selectionBoxTarget[0]) {\r\n return 'scaleX(-1)';\r\n }\r\n return null;\r\n }\r\n\r\n handleMouseLeave(evt: React.MouseEvent<HTMLElement>) {\r\n /*if (this.state.hold) {\r\n this.setState({\r\n hold: false,\r\n animation: 'bookingCalendar__selection--fadeout',\r\n });\r\n this.animationInProgress = (setTimeout(() => {\r\n this.setState({\r\n selectionBox: false,\r\n animation: '',\r\n selectionBoxOrigin: [0, 0],\r\n selectionBoxTarget: [0, 0],\r\n });\r\n this.animationInProgress = null;\r\n }, 300) as unknown) as number;\r\n }*/\r\n }\r\n\r\n handleMouseUp(evt: React.MouseEvent<HTMLElement>) {\r\n if (this.state.hold) {\r\n const distance = Math.sqrt(\r\n Math.pow(\r\n this.state.selectionBoxTarget[1] - this.state.selectionBoxOrigin[1],\r\n 2\r\n ) +\r\n Math.pow(\r\n this.state.selectionBoxTarget[0] - this.state.selectionBoxOrigin[0],\r\n 2\r\n )\r\n );\r\n this.setState({\r\n hold: false,\r\n animation: 'bookingCalendar__selection--fadeout',\r\n });\r\n this.animationInProgress = setTimeout(() => {\r\n this.setState({\r\n selectionBox: false,\r\n animation: '',\r\n selectionBoxOrigin: [0, 0],\r\n selectionBoxTarget: [0, 0],\r\n });\r\n this.animationInProgress = null;\r\n }, 300) as unknown as number;\r\n if (distance < this.props.minSelectionSize) {\r\n return;\r\n }\r\n this.props.onSelected?.({\r\n origin: this.state.selectionBoxOrigin,\r\n target: this.state.selectionBoxTarget,\r\n });\r\n }\r\n }\r\n\r\n handleMouseDown(e: React.MouseEvent<HTMLDivElement>) {\r\n if (this.props.disabled || e.nativeEvent.button !== 0) {\r\n return;\r\n }\r\n clearTimeout(this.animationInProgress);\r\n this.animationInProgress = null;\r\n this.setState({ selectionBox: false, animation: '' });\r\n\r\n const bb = this.containerRef.current?.getBoundingClientRect();\r\n this.setState({\r\n hold: true,\r\n selectionBoxOrigin: [\r\n e.nativeEvent.pageX - bb.x,\r\n e.nativeEvent.pageY - bb.y,\r\n ],\r\n selectionBoxTarget: [\r\n e.nativeEvent.pageX - bb.x,\r\n e.nativeEvent.pageY - bb.y,\r\n ],\r\n });\r\n }\r\n\r\n private handleMouseMove(evt: React.MouseEvent<HTMLDivElement>) {\r\n if (this.state.hold && !this.state.selectionBox) {\r\n this.setState({ selectionBox: true });\r\n }\r\n if (this.state.selectionBox && !this.animationInProgress) {\r\n const bb = this.containerRef.current?.getBoundingClientRect();\r\n this.setState({\r\n selectionBoxTarget: [\r\n evt.nativeEvent.pageX - bb?.x,\r\n evt.nativeEvent.pageY - bb?.y,\r\n ],\r\n });\r\n\r\n this.props.onSelecting?.({\r\n origin: this.state.selectionBoxOrigin,\r\n target: this.state.selectionBoxTarget,\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n const baseStyle: React.CSSProperties = {\r\n zIndex: 10,\r\n left: this.state.selectionBoxOrigin[0],\r\n top: this.state.selectionBoxOrigin[1],\r\n height: Math.abs(\r\n this.state.selectionBoxTarget[1] - this.state.selectionBoxOrigin[1] - 1\r\n ),\r\n width: Math.abs(\r\n this.state.selectionBoxTarget[0] - this.state.selectionBoxOrigin[0] - 1\r\n ),\r\n userSelect: 'none',\r\n transformOrigin: 'top left',\r\n transform: this.handleTransformBox(),\r\n };\r\n const boxVisible =\r\n Math.sqrt(\r\n Math.pow(\r\n this.state.selectionBoxTarget[1] - this.state.selectionBoxOrigin[1],\r\n 2\r\n ) +\r\n Math.pow(\r\n this.state.selectionBoxTarget[0] - this.state.selectionBoxOrigin[0],\r\n 2\r\n )\r\n ) > this.props.minSelectionSize;\r\n return (\r\n <div\r\n ref={this.containerRef}\r\n className=\"bookingCalendar__selection__container\"\r\n style={{\r\n zIndex: this.state.selectionBox ? 99999 : undefined,\r\n gridRowEnd: `span ${this.props.dataRowsCount}`,\r\n }}\r\n onMouseDown={this.handleMouseDown}\r\n onMouseUp={this.handleMouseUp}\r\n onMouseMove={this.handleMouseMove}\r\n onMouseLeave={this.handleMouseLeave}\r\n >\r\n {boxVisible && this.state.selectionBox && (\r\n <div\r\n className={`bookingCalendar__selection ${this.state.animation}`}\r\n style={baseStyle}\r\n />\r\n )}\r\n {this.props.children}\r\n </div>\r\n );\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA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DC,UAAU,EAAG,QAAO,IAAI,CAAC/D,KAAK,CAACgE,aAAc;MAC/C,CAAE;MACFC,WAAW,EAAE,IAAI,CAACrD,eAAgB;MAClCsD,SAAS,EAAE,IAAI,CAACxD,aAAc;MAC9ByD,WAAW,EAAE,IAAI,CAACtD,eAAgB;MAClCuD,YAAY,EAAE,IAAI,CAACtD;IAAiB,GAEnC2C,UAAU,IAAI,IAAI,CAACrD,KAAK,CAACE,YAAY,iBACpClC,KAAA,CAAAsF,aAAA;MACEE,SAAS,EAAG,8BAA6B,IAAI,CAACxD,KAAK,CAACK,SAAU,EAAE;MAChEoD,KAAK,EAAEd;IAAU,CAClB,CACF,EACA,IAAI,CAAC/C,KAAK,CAACqE,QACT,CAAC;EAEV;AACF;AAACC,OAAA,CAAAxF,OAAA,GAAAe,wBAAA"}
|
package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
|
2
|
-
import { BookingCalendarTimeAxisClasses } from './classes';
|
3
|
-
import { GridItem } from '../utils';
|
4
|
-
import { Duration } from 'moment';
|
5
|
-
import { GetMomentFormatFunctionType } from '..';
|
6
|
-
export interface BookingCalendarTimeAxisProps extends BookingCalendarTimeAxisClasses {
|
7
|
-
items: GridItem[];
|
8
|
-
bestStep: Duration;
|
9
|
-
getMomentFormatFunction: GetMomentFormatFunctionType;
|
10
|
-
}
|
11
|
-
export declare function BookingCalendarTimeAxis(props: BookingCalendarTimeAxisProps): JSX.Element;
|
1
|
+
import * as React from 'react';
|
2
|
+
import { BookingCalendarTimeAxisClasses } from './classes';
|
3
|
+
import { GridItem } from '../utils';
|
4
|
+
import { Duration } from 'moment';
|
5
|
+
import { GetMomentFormatFunctionType } from '..';
|
6
|
+
export interface BookingCalendarTimeAxisProps extends BookingCalendarTimeAxisClasses {
|
7
|
+
items: GridItem[];
|
8
|
+
bestStep: Duration;
|
9
|
+
getMomentFormatFunction: GetMomentFormatFunctionType;
|
10
|
+
}
|
11
|
+
export declare function BookingCalendarTimeAxis(props: BookingCalendarTimeAxisProps): React.JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export interface BookingCalendarTimeAxisClasses {
|
2
|
-
className?: string;
|
3
|
-
timeAxisItemClassName?: string;
|
4
|
-
}
|
5
|
-
export declare const bookingCalendarTimeAxisDefaultClasses: BookingCalendarTimeAxisClasses;
|
1
|
+
export interface BookingCalendarTimeAxisClasses {
|
2
|
+
className?: string;
|
3
|
+
timeAxisItemClassName?: string;
|
4
|
+
}
|
5
|
+
export declare const bookingCalendarTimeAxisDefaultClasses: BookingCalendarTimeAxisClasses;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { BookingCalendarControlsClasses } from './bookingCalendarControls/classes';
|
2
|
-
export interface BookingCalendarClasses {
|
3
|
-
className?: string;
|
4
|
-
laneContainerClassName?: string;
|
5
|
-
laneHeaderContainerClassName?: string;
|
6
|
-
lanesHeaderHeaderContainerClassName?: string;
|
7
|
-
lanesHeaderContainerClassName?: string;
|
8
|
-
tableClassName?: string;
|
9
|
-
controlsClasses?: BookingCalendarControlsClasses;
|
10
|
-
}
|
11
|
-
export declare const bookingCalendarDefaultClasses: BookingCalendarClasses;
|
1
|
+
import { BookingCalendarControlsClasses } from './bookingCalendarControls/classes';
|
2
|
+
export interface BookingCalendarClasses {
|
3
|
+
className?: string;
|
4
|
+
laneContainerClassName?: string;
|
5
|
+
laneHeaderContainerClassName?: string;
|
6
|
+
lanesHeaderHeaderContainerClassName?: string;
|
7
|
+
lanesHeaderContainerClassName?: string;
|
8
|
+
tableClassName?: string;
|
9
|
+
controlsClasses?: BookingCalendarControlsClasses;
|
10
|
+
}
|
11
|
+
export declare const bookingCalendarDefaultClasses: BookingCalendarClasses;
|
@@ -1,23 +1,23 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import moment, { Moment, Duration } from 'moment';
|
3
|
-
export interface BookingCalendarItemT {
|
4
|
-
from: Moment;
|
5
|
-
till: Moment;
|
6
|
-
laneKey?: string | number;
|
7
|
-
}
|
8
|
-
export interface BookingCalendarItemWithOriginalIndexT {
|
9
|
-
originalIndex: number;
|
10
|
-
}
|
11
|
-
export interface BookingCalendarDateRange {
|
12
|
-
from: Moment;
|
13
|
-
till: Moment;
|
14
|
-
}
|
15
|
-
export interface ZoomLevel {
|
16
|
-
step: Duration;
|
17
|
-
label: React.ReactNode;
|
18
|
-
}
|
19
|
-
export declare const defaultGetMomentFormatFunction: (date: Moment, bestStep: Duration) => "MMM Do" | "h:mm a";
|
20
|
-
export
|
21
|
-
export declare const defaultGetNewMomentFunction: (date: Date) => moment.Moment;
|
22
|
-
export
|
23
|
-
export declare const defaultGridAvailableSteps: Duration[];
|
1
|
+
/// <reference types="react" />
|
2
|
+
import moment, { Moment, Duration } from 'moment';
|
3
|
+
export interface BookingCalendarItemT {
|
4
|
+
from: Moment;
|
5
|
+
till: Moment;
|
6
|
+
laneKey?: string | number;
|
7
|
+
}
|
8
|
+
export interface BookingCalendarItemWithOriginalIndexT {
|
9
|
+
originalIndex: number;
|
10
|
+
}
|
11
|
+
export interface BookingCalendarDateRange {
|
12
|
+
from: Moment;
|
13
|
+
till: Moment;
|
14
|
+
}
|
15
|
+
export interface ZoomLevel {
|
16
|
+
step: Duration;
|
17
|
+
label: React.ReactNode;
|
18
|
+
}
|
19
|
+
export declare const defaultGetMomentFormatFunction: (date: Moment, bestStep: Duration) => "MMM Do" | "h:mm a";
|
20
|
+
export type GetMomentFormatFunctionType = typeof defaultGetMomentFormatFunction;
|
21
|
+
export declare const defaultGetNewMomentFunction: (date: Date) => moment.Moment;
|
22
|
+
export type GetNewMomentFunctionType = typeof defaultGetNewMomentFunction;
|
23
|
+
export declare const defaultGridAvailableSteps: Duration[];
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.defaultGridAvailableSteps = exports.defaultGetNewMomentFunction = exports.defaultGetMomentFormatFunction = void 0;
|
7
|
-
var _moment =
|
8
|
-
function
|
9
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
7
|
+
var _moment = _interopRequireDefault(require("moment"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
10
9
|
const defaultGetMomentFormatFunction = (date, bestStep) => {
|
11
10
|
if (!date || !bestStep) {
|
12
11
|
return undefined;
|
@@ -21,6 +20,6 @@ const defaultGetNewMomentFunction = date => {
|
|
21
20
|
return (0, _moment.default)(date);
|
22
21
|
};
|
23
22
|
exports.defaultGetNewMomentFunction = defaultGetNewMomentFunction;
|
24
|
-
const defaultGridAvailableSteps = [
|
23
|
+
const defaultGridAvailableSteps = [_moment.default.duration(1, 'minute'), _moment.default.duration(5, 'minute'), _moment.default.duration(10, 'minute'), _moment.default.duration(15, 'minute'), _moment.default.duration(20, 'minute'), _moment.default.duration(30, 'minute'), _moment.default.duration(1, 'hour'), _moment.default.duration(2, 'hour'), _moment.default.duration(4, 'hour'), _moment.default.duration(6, 'hour'), _moment.default.duration(8, 'hour'), _moment.default.duration(12, 'hour'), _moment.default.duration(1, 'day')];
|
25
24
|
exports.defaultGridAvailableSteps = defaultGridAvailableSteps;
|
26
25
|
//# sourceMappingURL=common.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.js","names":["_moment","
|
1
|
+
{"version":3,"file":"common.js","names":["_moment","_interopRequireDefault","require","obj","__esModule","default","defaultGetMomentFormatFunction","date","bestStep","undefined","valueOf","clone","startOf","exports","defaultGetNewMomentFunction","moment","defaultGridAvailableSteps","duration"],"sources":["../../../src/lib/components/bookingCalendar/common.ts"],"sourcesContent":["import moment, { Moment, Duration } from 'moment';\r\n\r\nexport interface BookingCalendarItemT {\r\n from: Moment;\r\n till: Moment;\r\n /*\r\n Optional index that identifies the lane\r\n */\r\n laneKey?: string | number;\r\n}\r\n\r\nexport interface BookingCalendarItemWithOriginalIndexT {\r\n originalIndex: number;\r\n}\r\n\r\nexport interface BookingCalendarDateRange {\r\n from: Moment;\r\n till: Moment;\r\n}\r\n\r\nexport interface ZoomLevel {\r\n step: Duration;\r\n label: React.ReactNode;\r\n}\r\n\r\nexport const defaultGetMomentFormatFunction = (\r\n date: Moment,\r\n bestStep: Duration\r\n) => {\r\n if (!date || !bestStep) {\r\n return undefined;\r\n }\r\n if (date.valueOf() === date.clone().startOf('day').valueOf()) {\r\n return 'MMM Do';\r\n }\r\n return 'h:mm a';\r\n};\r\n\r\nexport type GetMomentFormatFunctionType = typeof defaultGetMomentFormatFunction;\r\n\r\nexport const defaultGetNewMomentFunction = (date: Date) => {\r\n return moment(date);\r\n};\r\n\r\nexport type GetNewMomentFunctionType = typeof defaultGetNewMomentFunction;\r\n\r\nexport const defaultGridAvailableSteps: Duration[] = [\r\n moment.duration(1, 'minute'),\r\n moment.duration(5, 'minute'),\r\n moment.duration(10, 'minute'),\r\n moment.duration(15, 'minute'),\r\n moment.duration(20, 'minute'),\r\n moment.duration(30, 'minute'),\r\n moment.duration(1, 'hour'),\r\n moment.duration(2, 'hour'),\r\n moment.duration(4, 'hour'),\r\n moment.duration(6, 'hour'),\r\n moment.duration(8, 'hour'),\r\n moment.duration(12, 'hour'),\r\n moment.duration(1, 'day'),\r\n];\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAA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