@cwellt_software/cwellt-reactjs-lib 1.6.1 → 1.6.3
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/dist/deprecated/components/MultiSelect_deprecated_.d.ts +24 -0
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts.map +1 -0
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts +17 -0
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts.map +1 -0
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts +17 -0
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts.map +1 -0
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts +13 -0
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts.map +1 -0
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts +14 -0
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts.map +1 -0
- package/dist/deprecated/components/tag/CwTag.d.ts +15 -0
- package/dist/deprecated/components/tag/CwTag.d.ts.map +1 -0
- package/dist/index.cjs.js +282 -199
- package/dist/index.css +2 -2
- package/dist/index.d.ts +96 -38
- package/dist/index.es.js +282 -199
- package/dist/playground/main.d.ts +4 -0
- package/dist/playground/main.d.ts.map +1 -0
- package/dist/src/common/interfaces/CwDataAttributes.d.ts +5 -0
- package/dist/src/common/interfaces/CwDataAttributes.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts +63 -0
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButtonSwitch.d.ts +3 -3
- package/dist/src/components/control/action/button/CwButtonSwitch.d.ts.map +1 -1
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts +33 -0
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts.map +1 -0
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts +29 -0
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts +102 -0
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwSearchAsync.d.ts +7 -1
- package/dist/src/components/control/action/search/CwSearchAsync.d.ts.map +1 -1
- package/dist/src/components/control/action/search/CwSearchAsync.stories.d.ts +28 -0
- package/dist/src/components/control/action/search/CwSearchAsync.stories.d.ts.map +1 -1
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts +19 -0
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts.map +1 -0
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts +19 -0
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts.map +1 -0
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts +21 -0
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts.map +1 -0
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts +24 -0
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts +19 -0
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts +17 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts +21 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts.map +1 -0
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts +17 -0
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts.map +1 -0
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts +13 -0
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts.map +1 -0
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts +14 -0
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts.map +1 -0
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.d.ts.map +1 -1
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.stories.d.ts +2 -0
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.stories.d.ts.map +1 -1
- package/dist/src/components/control/choice/tree-view/CwTreeView.d.ts +4 -4
- package/dist/src/components/control/choice/tree-view/CwTreeView.d.ts.map +1 -1
- package/dist/src/components/control/choice/tree-view/CwTreeView.stories.d.ts +5 -7
- package/dist/src/components/control/choice/tree-view/CwTreeView.stories.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts +3 -2
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.stories.d.ts +5 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.stories.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts +3 -2
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts +8 -2
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.stories.d.ts +10 -12
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.stories.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePickerTemporal.d.ts +8 -2
- package/dist/src/components/control/input/new-dates/CwDateRangePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts +8 -2
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.stories.d.ts +12 -12
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.stories.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts +47 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts +8 -2
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerTemporal.d.ts +8 -2
- package/dist/src/components/control/input/new-dates/CwDateTimePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts +8 -2
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwTimePicker.stories.d.ts +15 -13
- package/dist/src/components/control/input/new-dates/CwTimePicker.stories.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/datePickerHelpers.d.ts +10 -0
- package/dist/src/components/control/input/new-dates/datePickerHelpers.d.ts.map +1 -1
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.d.ts +2 -1
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.d.ts.map +1 -1
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.stories.d.ts +3 -0
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.stories.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.d.ts +2 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/Scheduler.stories.d.ts +22 -1
- package/dist/src/components/custom/scheduler-new/presentation/Scheduler.stories.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.d.ts +2 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.d.ts +15 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts +24 -0
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts +86 -0
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts +10 -0
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts +20 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts +14 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts +11 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts +11 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts +13 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts +11 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts +14 -0
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts +23 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts +8 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts +12 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts +12 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts +10 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts +12 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts +7 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts +10 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts +7 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts +8 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts +13 -0
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts +7 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts +6 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts +5 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts +5 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts +6 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts +11 -0
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts +43 -0
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts +14 -0
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts +25 -0
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts +18 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts +7 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts +6 -0
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts.map +1 -0
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts +0 -1
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts.map +1 -1
- package/dist/src/components/display/data/accordion/CwAccordionContainer.stories.d.ts +27 -0
- package/dist/src/components/display/data/accordion/CwAccordionContainer.stories.d.ts.map +1 -0
- package/dist/src/components/display/data/table/CwTable.d.ts.map +1 -1
- package/dist/src/components/display/data/table/CwTable.stories.d.ts +4 -0
- package/dist/src/components/display/data/table/CwTable.stories.d.ts.map +1 -1
- package/dist/src/components/display/graphics/progress/CwProgress.d.ts +13 -8
- package/dist/src/components/display/graphics/progress/CwProgress.d.ts.map +1 -1
- package/dist/src/components/display/graphics/progress/CwProgress.stories.d.ts +21 -5
- package/dist/src/components/display/graphics/progress/CwProgress.stories.d.ts.map +1 -1
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts +21 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts.map +1 -0
- package/dist/src/components/display/text/badge/CwBadge.d.ts +9 -1
- package/dist/src/components/display/text/badge/CwBadge.d.ts.map +1 -1
- package/dist/src/components/display/text/badge/CwBadge.stories.d.ts +5 -0
- package/dist/src/components/display/text/badge/CwBadge.stories.d.ts.map +1 -1
- package/dist/src/components/display/text/tag/CwTag.d.ts +15 -0
- package/dist/src/components/display/text/tag/CwTag.d.ts.map +1 -0
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts +11 -0
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts.map +1 -0
- package/dist/src/components/layout/align/CwAlign.stories.d.ts +439 -0
- package/dist/src/components/layout/align/CwAlign.stories.d.ts.map +1 -0
- package/dist/src/components/layout/card/CwCard.d.ts +2 -2
- package/dist/src/components/layout/card/CwCard.d.ts.map +1 -1
- package/dist/src/components/layout/card/CwCard.stories.d.ts +4 -2
- package/dist/src/components/layout/card/CwCard.stories.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts +16 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts.map +1 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts +21 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts.map +1 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/playground/pages/ShadowRecipesPage.d.ts +3 -0
- package/dist/src/playground/pages/ShadowRecipesPage.d.ts.map +1 -0
- package/dist/src/storybook/componentMappings.d.ts +5 -15
- package/dist/src/storybook/componentMappings.d.ts.map +1 -1
- package/dist/src/storybook/pickerStoryArgs.d.ts +2 -18
- package/dist/src/storybook/pickerStoryArgs.d.ts.map +1 -1
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts +2 -0
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts.map +1 -0
- package/dist/test/jest.setup.d.ts +2 -0
- package/dist/test/jest.setup.d.ts.map +1 -0
- package/package.json +89 -89
- package/dist/src/common/functions/lazy.d.ts +0 -13
- package/dist/src/common/functions/lazy.d.ts.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface CwHeadFilterProps {
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
className?: string;
|
|
5
|
+
placeholder_desc?: string;
|
|
6
|
+
children?: any;
|
|
7
|
+
onShowDropDown?: any;
|
|
8
|
+
onChangeSearch?: any;
|
|
9
|
+
Id?: string;
|
|
10
|
+
tagValueContent?: any;
|
|
11
|
+
onClearValue?: any;
|
|
12
|
+
onKeypressInput?: any;
|
|
13
|
+
onMouseLeave?: any;
|
|
14
|
+
onBlur?: any;
|
|
15
|
+
}
|
|
16
|
+
export declare function CwHeadFilter(cwelltFilterTabMultiSelectProps: React.PropsWithChildren<CwHeadFilterProps>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=CwHeadFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwHeadFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/multiselect/CwHeadFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IAEtB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;CACb;AAED,wBAAgB,YAAY,CAAC,+BAA+B,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,2CA+HvG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CwSelectListProps } from "../../../../common/interfaces/CwSelectListProps";
|
|
3
|
+
export interface CwFilterTabProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
idDropDownContainer?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
onclickHandleChange?: any;
|
|
9
|
+
selectListsItems?: Array<Array<CwSelectListProps>>;
|
|
10
|
+
selectedListsItems?: Array<CwSelectListProps>;
|
|
11
|
+
}
|
|
12
|
+
export declare function CwMultiselect(CwelltCustomFilterTabProps: React.PropsWithChildren<CwFilterTabProps>): JSX.Element;
|
|
13
|
+
//# sourceMappingURL=CwMultiselect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwMultiselect.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/multiselect/CwMultiselect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AAOpF,MAAM,WAAW,gBAAgB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAE1B,gBAAgB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAEnD,kBAAkB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CAC9C;AAGD,wBAAgB,aAAa,CAC5B,0BAA0B,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GACnE,GAAG,CAAC,OAAO,CAiiBb"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface CwOptionListProps {
|
|
3
|
+
children?: any;
|
|
4
|
+
value?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
onClick?: any;
|
|
7
|
+
idOptionList?: string | number | any;
|
|
8
|
+
onKeyPress?: any;
|
|
9
|
+
onChangeOptionList?: any;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
export declare function CwOptionList(optionListProps: React.PropsWithChildren<CwOptionListProps>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=CwOptionList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwOptionList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/multiselect/CwOptionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IACrC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B;AAED,wBAAgB,YAAY,CAAC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,2CAiEvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTagSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tag-selector/CwTagSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAExF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAEvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAEtF,OAAO,KAAK,EAAE,YAAY,EAAE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
|
|
1
|
+
{"version":3,"file":"CwTagSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tag-selector/CwTagSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAExF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAEvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAEtF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAMhF,MAAM,WAAW,mBAAmB;IACnC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IAClC,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,gCAAgC;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,oCAAoC;IACpC,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,YAAY;IACZ,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,WAAW;IACX,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,aAAa;IACb,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;IAC/C,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,EAC7B,EAAE,EACF,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAuB,EACvB,QAAgB,EAChB,aAAqB,EACrB,QAAQ,EACR,SAAS,EACT,KAAK,GACL,EAAE,kBAAkB,qBAuOpB"}
|
|
@@ -128,5 +128,7 @@ export declare const Default: Story;
|
|
|
128
128
|
export declare const Column: Story;
|
|
129
129
|
/** `showSelectAll` adds a toggle at the top of the list. */
|
|
130
130
|
export declare const WithSelectAll: Story;
|
|
131
|
+
/** Disabling the selector while its list is open closes the list, and clicks, Enter, Select all and Backspace no longer change the value. */
|
|
132
|
+
export declare const DisabledWhileOpen: Story;
|
|
131
133
|
export declare const WithFeedback: Story;
|
|
132
134
|
//# sourceMappingURL=CwTagSelector.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTagSelector.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tag-selector/CwTagSelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,cAAc,EACnB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEnG,KAAK,IAAI,GAAG,kBAAkB,GAAG,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"CwTagSelector.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tag-selector/CwTagSelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,cAAc,EACnB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEnG,KAAK,IAAI,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAwDhD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,iGAAiG;AACjG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,6IAA6I;AAC7I,eAAO,MAAM,iBAAiB,EAAE,KAG/B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
1
2
|
export type CwTreeNode<T> = {
|
|
2
3
|
id: string | number;
|
|
3
4
|
label: string;
|
|
4
5
|
data: T;
|
|
5
6
|
children?: CwTreeNode<T>[];
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
export interface TreeViewProps<T> extends CwDataAttributes {
|
|
8
9
|
data: CwTreeNode<T>[];
|
|
9
10
|
onSelect: (node: CwTreeNode<T>) => void;
|
|
10
11
|
allowParentSelection?: boolean;
|
|
11
12
|
selectedId?: string | number | null;
|
|
12
|
-
}
|
|
13
|
-
export declare function CwTreeView<T>({ data, onSelect, allowParentSelection, selectedId: initialSelectedId }: TreeViewProps<T>): import("react").JSX.Element;
|
|
14
|
-
export {};
|
|
13
|
+
}
|
|
14
|
+
export declare function CwTreeView<T>({ data, onSelect, allowParentSelection, selectedId: initialSelectedId, ...dataAttributes }: TreeViewProps<T>): import("react").JSX.Element;
|
|
15
15
|
//# sourceMappingURL=CwTreeView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTreeView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tree-view/CwTreeView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CwTreeView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tree-view/CwTreeView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAKvF,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC3B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,CAAC,CAAC;IACR,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,aAAa,CAAC,CAAC,CAAE,SAAQ,gBAAgB;IACzD,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACxC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,EAC7B,IAAI,EACJ,QAAQ,EACR,oBAA4B,EAC5B,UAAU,EAAE,iBAAwB,EACpC,GAAG,cAAc,EACjB,EAAE,aAAa,CAAC,CAAC,CAAC,+BAmLlB"}
|
|
@@ -5,12 +5,7 @@ type Folder = {
|
|
|
5
5
|
};
|
|
6
6
|
declare const meta: {
|
|
7
7
|
title: string;
|
|
8
|
-
component: ({ data, onSelect, allowParentSelection, selectedId: initialSelectedId }:
|
|
9
|
-
data: CwTreeNode<Folder>[];
|
|
10
|
-
onSelect: (node: CwTreeNode<Folder>) => void;
|
|
11
|
-
allowParentSelection?: boolean;
|
|
12
|
-
selectedId?: string | number | null;
|
|
13
|
-
}) => import("react").JSX.Element;
|
|
8
|
+
component: ({ data, onSelect, allowParentSelection, selectedId: initialSelectedId, ...dataAttributes }: import("./CwTreeView").TreeViewProps<Folder>) => import("react").JSX.Element;
|
|
14
9
|
args: {
|
|
15
10
|
data: CwTreeNode<Folder>[];
|
|
16
11
|
allowParentSelection: false;
|
|
@@ -26,6 +21,7 @@ declare const meta: {
|
|
|
26
21
|
};
|
|
27
22
|
};
|
|
28
23
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
24
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
29
25
|
data: CwTreeNode<Folder>[];
|
|
30
26
|
onSelect: (node: CwTreeNode<Folder>) => void;
|
|
31
27
|
allowParentSelection?: boolean | undefined;
|
|
@@ -34,8 +30,10 @@ declare const meta: {
|
|
|
34
30
|
};
|
|
35
31
|
export default meta;
|
|
36
32
|
type Story = StoryObj<typeof meta>;
|
|
37
|
-
/** Only leaves select by default; clicking a parent expands it. The search box filters the tree. */
|
|
33
|
+
/** Only leaves select by default; clicking a parent row or its chevron expands it. The search box filters the tree. */
|
|
38
34
|
export declare const Default: Story;
|
|
35
|
+
/** `allowParentSelection`: clicking a row selects it, parents included; the chevron expands and collapses without selecting. */
|
|
36
|
+
export declare const ParentSelection: Story;
|
|
39
37
|
/** `selectedId` selects a node on mount and expands the path to it. */
|
|
40
38
|
export declare const Preselected: Story;
|
|
41
39
|
//# sourceMappingURL=CwTreeView.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTreeView.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tree-view/CwTreeView.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAgC/B,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"CwTreeView.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tree-view/CwTreeView.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAgC/B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAoBiC,CAAC;AAE5C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,uHAAuH;AACvH,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,gIAAgI;AAChI,eAAO,MAAM,eAAe,EAAE,KAE7B,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC"}
|
|
@@ -4,8 +4,9 @@ import React from "react";
|
|
|
4
4
|
import { Matcher } from "react-day-picker";
|
|
5
5
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
6
6
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
7
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
7
8
|
export type DateMatcher = Matcher;
|
|
8
|
-
export interface CwDatePickerProps {
|
|
9
|
+
export interface CwDatePickerProps extends CwDataAttributes {
|
|
9
10
|
/** Current selected date */
|
|
10
11
|
value?: Date;
|
|
11
12
|
/** Callback when date changes */
|
|
@@ -56,5 +57,5 @@ export interface CwDatePickerProps {
|
|
|
56
57
|
*/
|
|
57
58
|
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
58
59
|
}
|
|
59
|
-
export declare function CwDatePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, yearRangeStart, yearRangeEnd, feedback, }: Readonly<CwDatePickerProps>): React.JSX.Element;
|
|
60
|
+
export declare function CwDatePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, yearRangeStart, yearRangeEnd, feedback, ...dataAttributes }: Readonly<CwDatePickerProps>): React.JSX.Element;
|
|
60
61
|
//# sourceMappingURL=CwDatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDatePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAmE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDatePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAy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IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;IAG1E,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+GAA+G;IAC/G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAGD,wBAAgB,YAAY,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAA6B,EAC7B,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,eAAuB,EACvB,MAAgC,EAChC,UAAoB,EACpB,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,GAAG,cAAc,EACjB,EAAE,QAAQ,CAAC,iBAAiB,CAAC,qBAsT7B"}
|
|
@@ -68,6 +68,7 @@ declare const meta: {
|
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
71
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
71
72
|
value?: Temporal.PlainDate | undefined;
|
|
72
73
|
onChange: (date: Temporal.PlainDate | undefined) => void;
|
|
73
74
|
minDate?: Temporal.PlainDate | undefined;
|
|
@@ -97,6 +98,7 @@ declare const meta: {
|
|
|
97
98
|
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
98
99
|
feedbackMessage: string;
|
|
99
100
|
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
101
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
100
102
|
value?: Temporal.PlainDate | undefined;
|
|
101
103
|
onChange: (date: Temporal.PlainDate | undefined) => void;
|
|
102
104
|
minDate?: Temporal.PlainDate | undefined;
|
|
@@ -132,9 +134,11 @@ export default meta;
|
|
|
132
134
|
type Story = StoryObj<typeof meta>;
|
|
133
135
|
/** `CwDatePickerTemporal` is the picker for new code: value and `onChange` are `Temporal.PlainDate`. */
|
|
134
136
|
export declare const Default: Story;
|
|
135
|
-
/** Days outside `minDate`/`maxDate` cannot be picked
|
|
137
|
+
/** Days outside `minDate`/`maxDate` cannot be picked and a typed one reverts on blur, so `feedback` states the range. The year dropdown is widened for a birth date. */
|
|
136
138
|
export declare const Bounded: Story;
|
|
137
139
|
export declare const WithFeedback: Story;
|
|
140
|
+
/** Typing: the value changes only on a complete valid date or an empty field, so editing a date keeps the rest of the text. Blur reformats. */
|
|
141
|
+
export declare const TypedEntry: Story;
|
|
138
142
|
/** The `Date`-valued `CwDatePicker`, for a JS `Date` boundary that cannot be avoided. Same UX. */
|
|
139
143
|
export declare const LegacyDate: Story;
|
|
140
144
|
//# sourceMappingURL=CwDatePicker.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDatePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDatePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAG9F,KAAK,IAAI,GAAG,yBAAyB,GAAG,eAAe,CAAC;AAqBxD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,wGAAwG;AACxG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAIjC,wKAAwK;AACxK,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,+IAA+I;AAC/I,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,kGAAkG;AAClG,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC"}
|
|
@@ -4,8 +4,9 @@ import React from "react";
|
|
|
4
4
|
import { Matcher } from "react-day-picker";
|
|
5
5
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
6
6
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
7
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
7
8
|
export type DateMatcher = Matcher;
|
|
8
|
-
export interface CwDatePickerTemporalProps {
|
|
9
|
+
export interface CwDatePickerTemporalProps extends CwDataAttributes {
|
|
9
10
|
/** Current selected date */
|
|
10
11
|
value?: Temporal.PlainDate;
|
|
11
12
|
/** Callback when date changes */
|
|
@@ -53,5 +54,5 @@ export interface CwDatePickerTemporalProps {
|
|
|
53
54
|
/** Feedback messages shown below the input */
|
|
54
55
|
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
55
56
|
}
|
|
56
|
-
export declare function CwDatePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, yearRangeStart, yearRangeEnd, feedback, }: Readonly<CwDatePickerTemporalProps>): React.JSX.Element;
|
|
57
|
+
export declare function CwDatePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, yearRangeStart, yearRangeEnd, feedback, ...dataAttributes }: Readonly<CwDatePickerTemporalProps>): React.JSX.Element;
|
|
57
58
|
//# sourceMappingURL=CwDatePickerTemporal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDatePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePickerTemporal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAiE,MAAM,OAAO,CAAC;AACtF,OAAO,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAU,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAU,YAAY,EAAC,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDatePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePickerTemporal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAC,eAAe,EAA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AS,CAAC,EAAE,OAAO,CAAC;IAEpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;IAG1E,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+GAA+G;IAC/G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAGD,wBAAgB,oBAAoB,CAAC,EACpC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAA6B,EAC7B,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,eAAuB,EACvB,MAAgC,EAChC,UAAoB,EACpB,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,GAAG,cAAc,EACjB,EAAE,QAAQ,CAAC,yBAAyB,CAAC,qBAqOrC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Matcher } from "react-day-picker";
|
|
2
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
2
3
|
import { CwLabelProps } from "../../../../components/display/text/label/CwLabel";
|
|
3
4
|
import { CwAlignProps } from "../../../../components/layout/align/CwAlign";
|
|
4
5
|
import { type DateRangePreset } from "./dateRangePresets";
|
|
6
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
5
7
|
export type DateMatcher = Matcher;
|
|
6
8
|
export interface DateRangeValue {
|
|
7
9
|
from: Date | undefined;
|
|
8
10
|
to: Date | undefined;
|
|
9
11
|
}
|
|
10
|
-
export interface CwDateRangePickerProps {
|
|
12
|
+
export interface CwDateRangePickerProps extends CwDataAttributes {
|
|
11
13
|
/** Current selected date range */
|
|
12
14
|
value?: DateRangeValue;
|
|
13
15
|
/** Callback when date range changes */
|
|
@@ -60,6 +62,10 @@ export interface CwDateRangePickerProps {
|
|
|
60
62
|
* Custom presets to add alongside library presets
|
|
61
63
|
*/
|
|
62
64
|
customPresets?: DateRangePreset[];
|
|
65
|
+
/** Feedback messages shown below the inputs; accepts a single message or an array for multiple
|
|
66
|
+
* @example feedback={{ type: "danger", message: "This field is required" }}
|
|
67
|
+
*/
|
|
68
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
63
69
|
}
|
|
64
|
-
export declare function CwDateRangePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, maxRangeDays, defaultMonth, labelProps, alignProps, placeholderFrom, placeholderTo, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showPresets, presetKeys, customPresets, }: Readonly<CwDateRangePickerProps>): import("react").JSX.Element;
|
|
70
|
+
export declare function CwDateRangePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, maxRangeDays, defaultMonth, labelProps, alignProps, placeholderFrom, placeholderTo, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showPresets, presetKeys, customPresets, feedback, ...dataAttributes }: Readonly<CwDateRangePickerProps>): import("react").JSX.Element;
|
|
65
71
|
//# sourceMappingURL=CwDateRangePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateRangePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAwB,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDateRangePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePicker.tsx"],"names":[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AAE,MAAM,CAAC;IACvB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;IAG1E,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAGD,wBAAgB,iBAAiB,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,eAA6B,EAC7B,aAAyB,EACzB,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,WAAmB,EACnB,UAAU,EACV,aAAa,EACb,QAAQ,EACR,GAAG,cAAc,EACjB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,+BA4iBlC"}
|
|
@@ -48,18 +48,6 @@ declare const meta: {
|
|
|
48
48
|
locale: {
|
|
49
49
|
control: false;
|
|
50
50
|
};
|
|
51
|
-
feedbackType: {
|
|
52
|
-
table: {
|
|
53
|
-
disable: true;
|
|
54
|
-
};
|
|
55
|
-
control: false;
|
|
56
|
-
};
|
|
57
|
-
feedbackMessage: {
|
|
58
|
-
table: {
|
|
59
|
-
disable: true;
|
|
60
|
-
};
|
|
61
|
-
control: false;
|
|
62
|
-
};
|
|
63
51
|
alignProps: {
|
|
64
52
|
control: false;
|
|
65
53
|
};
|
|
@@ -72,6 +60,8 @@ declare const meta: {
|
|
|
72
60
|
direction: import("storybook/internal/csf").InputType;
|
|
73
61
|
labelText: import("storybook/internal/csf").InputType;
|
|
74
62
|
labelWidth: import("storybook/internal/csf").InputType;
|
|
63
|
+
feedbackType: import("storybook/internal/csf").InputType;
|
|
64
|
+
feedbackMessage: import("storybook/internal/csf").InputType;
|
|
75
65
|
};
|
|
76
66
|
parameters: {
|
|
77
67
|
docs: {
|
|
@@ -83,6 +73,7 @@ declare const meta: {
|
|
|
83
73
|
};
|
|
84
74
|
};
|
|
85
75
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
76
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
86
77
|
value?: DateRangeValueTemporal | undefined;
|
|
87
78
|
onChange: (range: DateRangeValueTemporal | undefined) => void;
|
|
88
79
|
minDate?: Temporal.PlainDate | undefined;
|
|
@@ -108,12 +99,14 @@ declare const meta: {
|
|
|
108
99
|
showPresets?: boolean | undefined;
|
|
109
100
|
presetKeys?: string[] | undefined;
|
|
110
101
|
customPresets?: import("./dateRangePresetsTemporal").DateRangePresetTemporal[] | undefined;
|
|
102
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
111
103
|
direction: "row" | "column";
|
|
112
104
|
labelText: string;
|
|
113
105
|
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
114
106
|
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
115
107
|
feedbackMessage: string;
|
|
116
108
|
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
109
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
117
110
|
value?: DateRangeValueTemporal | undefined;
|
|
118
111
|
onChange: (range: DateRangeValueTemporal | undefined) => void;
|
|
119
112
|
minDate?: Temporal.PlainDate | undefined;
|
|
@@ -139,6 +132,7 @@ declare const meta: {
|
|
|
139
132
|
showPresets?: boolean | undefined;
|
|
140
133
|
presetKeys?: string[] | undefined;
|
|
141
134
|
customPresets?: import("./dateRangePresetsTemporal").DateRangePresetTemporal[] | undefined;
|
|
135
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
142
136
|
direction: "row" | "column";
|
|
143
137
|
labelText: string;
|
|
144
138
|
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
@@ -155,6 +149,10 @@ export declare const Default: Story;
|
|
|
155
149
|
export declare const WithPresets: Story;
|
|
156
150
|
/** `maxRangeDays` caps the span; days beyond it are disabled once `from` is set. */
|
|
157
151
|
export declare const LimitedSpan: Story;
|
|
152
|
+
/** `feedback` renders below both fields, as on the single date picker. */
|
|
153
|
+
export declare const WithFeedback: Story;
|
|
158
154
|
/** The `Date`-valued `CwDateRangePicker`, for a JS `Date` boundary that cannot be avoided. */
|
|
159
155
|
export declare const LegacyDate: Story;
|
|
156
|
+
/** `feedback` on the `Date`-valued `CwDateRangePicker`. */
|
|
157
|
+
export declare const LegacyDateWithFeedback: Story;
|
|
160
158
|
//# sourceMappingURL=CwDateRangePicker.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateRangePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,
|
|
1
|
+
{"version":3,"file":"CwDateRangePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAAE,yBAAyB,EAAE,KAAK,8BAA8B,EAAE,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1I,KAAK,IAAI,GAAG,8BAA8B,GAAG,eAAe,CAAC;AAgC7D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,oGAAoG;AACpG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,yGAAyG;AACzG,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,sBAAsB,EAAE,KAIpC,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { type DayPickerLocale } from "react-day-picker/locale";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Matcher } from "react-day-picker";
|
|
4
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
4
5
|
import { CwLabelProps } from "../../../../components/display/text/label/CwLabel";
|
|
5
6
|
import { CwAlignProps } from "../../../../components/layout/align/CwAlign";
|
|
6
7
|
import { type DateRangePresetTemporal } from "./dateRangePresetsTemporal";
|
|
8
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
7
9
|
export type DateMatcher = Matcher;
|
|
8
10
|
export interface DateRangeValueTemporal {
|
|
9
11
|
from: Temporal.PlainDate | undefined;
|
|
10
12
|
to: Temporal.PlainDate | undefined;
|
|
11
13
|
}
|
|
12
|
-
export interface CwDateRangePickerTemporalProps {
|
|
14
|
+
export interface CwDateRangePickerTemporalProps extends CwDataAttributes {
|
|
13
15
|
/** Current selected date range */
|
|
14
16
|
value?: DateRangeValueTemporal;
|
|
15
17
|
/** Callback when date range changes */
|
|
@@ -70,6 +72,10 @@ export interface CwDateRangePickerTemporalProps {
|
|
|
70
72
|
* Custom presets to add alongside library presets
|
|
71
73
|
*/
|
|
72
74
|
customPresets?: DateRangePresetTemporal[];
|
|
75
|
+
/** Feedback messages shown below the inputs; accepts a single message or an array for multiple
|
|
76
|
+
* @example feedback={{ type: "danger", message: "This field is required" }}
|
|
77
|
+
*/
|
|
78
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
73
79
|
}
|
|
74
|
-
export declare function CwDateRangePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, maxRangeDays, defaultMonth, labelProps, alignProps, placeholderFrom, placeholderTo, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, locale, yearRangeStart, yearRangeEnd, showPresets, presetKeys, customPresets, }: Readonly<CwDateRangePickerTemporalProps>): React.JSX.Element;
|
|
80
|
+
export declare function CwDateRangePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, maxRangeDays, defaultMonth, labelProps, alignProps, placeholderFrom, placeholderTo, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, locale, yearRangeStart, yearRangeEnd, showPresets, presetKeys, customPresets, feedback, ...dataAttributes }: Readonly<CwDateRangePickerTemporalProps>): React.JSX.Element;
|
|
75
81
|
//# sourceMappingURL=CwDateRangePickerTemporal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateRangePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePickerTemporal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"CwDateRangePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePickerTemporal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAmE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAwB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAW,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAW,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAKpF,OAAO,EAAE,KAAK,uBAAuB,EAA4B,MAAM,4BAA4B,CAAC;AAEpG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAEvF,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,WAAW,sBAAsB;IACtC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;IACrC,EAAE,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;IACvE,kCAAkC;IAClC,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B,uCAAuC;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,KAAK,IAAI,CAAC;IAG9D,8BAA8B;IAC9B,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC7B,8BAA8B;IAC9B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AG,eAAe,EAAE,CAAC;CAC/C;AAGD,wBAAgB,yBAAyB,CAAC,EACzC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,eAA6B,EAC7B,aAAyB,EACzB,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,MAAgC,EAChC,cAAc,EACd,YAAY,EACZ,WAAmB,EACnB,UAAU,EACV,aAAa,EACb,QAAQ,EACR,GAAG,cAAc,EACjB,EAAE,QAAQ,CAAC,8BAA8B,CAAC,qBAge1C"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type DayPickerLocale } from "react-day-picker/locale";
|
|
2
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
3
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
2
4
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
3
5
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
4
6
|
import { DateMatcher } from "./CwDatePicker";
|
|
5
|
-
export interface CwDateTimePickerProps {
|
|
7
|
+
export interface CwDateTimePickerProps extends CwDataAttributes {
|
|
6
8
|
/** Current selected datetime */
|
|
7
9
|
value?: Date;
|
|
8
10
|
/** Callback when datetime changes */
|
|
@@ -49,6 +51,10 @@ export interface CwDateTimePickerProps {
|
|
|
49
51
|
locale?: DayPickerLocale;
|
|
50
52
|
/** Numeric timezone offset in hours (e.g., 1, 5.5, -3) */
|
|
51
53
|
timezoneOffset?: number;
|
|
54
|
+
/** Feedback messages shown below the inputs; accepts a single message or an array for multiple
|
|
55
|
+
* @example feedback={{ type: "danger", message: "This field is required" }}
|
|
56
|
+
*/
|
|
57
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
52
58
|
}
|
|
53
|
-
export declare function CwDateTimePicker({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, nowLabel, locale, timezoneOffset, }: Readonly<CwDateTimePickerProps>): import("react").JSX.Element;
|
|
59
|
+
export declare function CwDateTimePicker({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, nowLabel, locale, timezoneOffset, feedback, ...dataAttributes }: Readonly<CwDateTimePickerProps>): import("react").JSX.Element;
|
|
54
60
|
//# sourceMappingURL=CwDateTimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateTimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAU,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAU,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAe,WAAW,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDateTimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAU,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAU,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAe,WAAW,EAAC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AE,OAAO,CAAC;IACxB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAK,EACL,QAAQ,EACR,WAAW,EACX,WAAW,EACX,aAAa,EACb,eAAe,EACf,YAAiB,EACjB,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,eAA8B,EAC9B,eAAyB,EACzB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,aAAqB,EACrB,QAAgB,EAChB,MAAgC,EAChC,cAAc,EACd,QAAQ,EACR,GAAG,cAAc,EACjB,EAAE,QAAQ,CAAC,qBAAqB,CAAC,+BA+WjC"}
|
|
@@ -44,18 +44,6 @@ declare const meta: {
|
|
|
44
44
|
control: "inline-radio";
|
|
45
45
|
options: number[];
|
|
46
46
|
};
|
|
47
|
-
feedbackType: {
|
|
48
|
-
table: {
|
|
49
|
-
disable: true;
|
|
50
|
-
};
|
|
51
|
-
control: false;
|
|
52
|
-
};
|
|
53
|
-
feedbackMessage: {
|
|
54
|
-
table: {
|
|
55
|
-
disable: true;
|
|
56
|
-
};
|
|
57
|
-
control: false;
|
|
58
|
-
};
|
|
59
47
|
alignProps: {
|
|
60
48
|
control: false;
|
|
61
49
|
};
|
|
@@ -68,6 +56,8 @@ declare const meta: {
|
|
|
68
56
|
direction: import("storybook/internal/csf").InputType;
|
|
69
57
|
labelText: import("storybook/internal/csf").InputType;
|
|
70
58
|
labelWidth: import("storybook/internal/csf").InputType;
|
|
59
|
+
feedbackType: import("storybook/internal/csf").InputType;
|
|
60
|
+
feedbackMessage: import("storybook/internal/csf").InputType;
|
|
71
61
|
};
|
|
72
62
|
parameters: {
|
|
73
63
|
docs: {
|
|
@@ -79,6 +69,7 @@ declare const meta: {
|
|
|
79
69
|
};
|
|
80
70
|
};
|
|
81
71
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
72
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
82
73
|
value?: Temporal.PlainDateTime | undefined;
|
|
83
74
|
onChange: (datetime: Temporal.PlainDateTime | undefined) => void;
|
|
84
75
|
minDateTime?: Temporal.PlainDateTime | undefined;
|
|
@@ -101,12 +92,14 @@ declare const meta: {
|
|
|
101
92
|
showNowButton?: boolean | undefined;
|
|
102
93
|
nowLabel?: string | undefined;
|
|
103
94
|
locale?: import("react-day-picker").DayPickerLocale | undefined;
|
|
95
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
104
96
|
direction: "row" | "column";
|
|
105
97
|
labelText: string;
|
|
106
98
|
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
107
99
|
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
108
100
|
feedbackMessage: string;
|
|
109
101
|
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
102
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
110
103
|
value?: Temporal.PlainDateTime | undefined;
|
|
111
104
|
onChange: (datetime: Temporal.PlainDateTime | undefined) => void;
|
|
112
105
|
minDateTime?: Temporal.PlainDateTime | undefined;
|
|
@@ -129,6 +122,7 @@ declare const meta: {
|
|
|
129
122
|
showNowButton?: boolean | undefined;
|
|
130
123
|
nowLabel?: string | undefined;
|
|
131
124
|
locale?: import("react-day-picker").DayPickerLocale | undefined;
|
|
125
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
132
126
|
direction: "row" | "column";
|
|
133
127
|
labelText: string;
|
|
134
128
|
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
@@ -143,8 +137,14 @@ type Story = StoryObj<typeof meta>;
|
|
|
143
137
|
export declare const Default: Story;
|
|
144
138
|
/** `minTime`/`maxTime` restrict the time list to office hours. */
|
|
145
139
|
export declare const OfficeHours: Story;
|
|
140
|
+
/** `feedback` renders below both fields. */
|
|
141
|
+
export declare const WithFeedback: Story;
|
|
146
142
|
/** The `Date`-valued `CwDateTimePicker`, for a JS `Date` boundary that cannot be avoided. */
|
|
147
143
|
export declare const LegacyDate: Story;
|
|
144
|
+
/** `feedback` on the `Date`-valued `CwDateTimePicker`, below both fields. */
|
|
145
|
+
export declare const LegacyDateWithFeedback: Story;
|
|
148
146
|
/** `CwDateTimePickerCompact`: one field for date and time, `Date`-valued. */
|
|
149
147
|
export declare const Compact: Story;
|
|
148
|
+
/** `feedback` on `CwDateTimePickerCompact`, below the single field. */
|
|
149
|
+
export declare const CompactWithFeedback: Story;
|
|
150
150
|
//# sourceMappingURL=CwDateTimePicker.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateTimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,
|
|
1
|
+
{"version":3,"file":"CwDateTimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAI/C,OAAO,EAAE,wBAAwB,EAAE,KAAK,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE1G,KAAK,IAAI,GAAG,6BAA6B,GAAG,eAAe,CAAC;AAqB5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,qFAAqF;AACrF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,kEAAkE;AAClE,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC;AAaF,6EAA6E;AAC7E,eAAO,MAAM,sBAAsB,EAAE,KAIpC,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,mBAAmB,EAAE,KAIjC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CwLabelProps } from "../../../../components/display/text/label/CwLabel";
|
|
2
|
+
import { CwAlignProps } from "../../../../components/layout/align/CwAlign";
|
|
3
|
+
import { DateMatcher } from "./CwDatePicker";
|
|
4
|
+
export interface CwDateTimePickerProps {
|
|
5
|
+
/** Current selected datetime */
|
|
6
|
+
value?: Date | null;
|
|
7
|
+
/** Callback when datetime changes */
|
|
8
|
+
onChange: (datetime: Date | null) => void;
|
|
9
|
+
/** Minimum selectable datetime */
|
|
10
|
+
minDateTime?: Date;
|
|
11
|
+
/** Maximum selectable datetime */
|
|
12
|
+
maxDateTime?: Date;
|
|
13
|
+
/** Array of specific dates to disable */
|
|
14
|
+
disabledDates?: Date[];
|
|
15
|
+
/** Function to determine if a date should be disabled */
|
|
16
|
+
disabledMatcher?: DateMatcher;
|
|
17
|
+
/** Interval in minutes for time selection (default: 15) */
|
|
18
|
+
timeInterval?: 5 | 10 | 15 | 30 | 60;
|
|
19
|
+
/** Minimum selectable time in format "HH:mm" */
|
|
20
|
+
minTime?: string;
|
|
21
|
+
/** Maximum selectable time in format "HH:mm" */
|
|
22
|
+
maxTime?: string;
|
|
23
|
+
/** Props for label component (applies to the container) */
|
|
24
|
+
labelProps?: CwLabelProps;
|
|
25
|
+
/** Props for alignment (applies to the container) */
|
|
26
|
+
alignProps?: CwAlignProps;
|
|
27
|
+
/** Layout of date and time inputs: "row" (side by side) or "column" (stacked) */
|
|
28
|
+
inputsLayout?: "row" | "column";
|
|
29
|
+
/** Placeholder text for date input */
|
|
30
|
+
datePlaceholder?: string;
|
|
31
|
+
/** Placeholder text for time input */
|
|
32
|
+
timePlaceholder?: string;
|
|
33
|
+
/** Is the input disabled */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Is the input required */
|
|
36
|
+
required?: boolean;
|
|
37
|
+
/** Additional CSS class for container */
|
|
38
|
+
className?: string;
|
|
39
|
+
/** Show clear buttons on individual inputs */
|
|
40
|
+
showClear?: boolean;
|
|
41
|
+
/** Number of months to display in calendar (default: 1) */
|
|
42
|
+
numberOfMonths?: number;
|
|
43
|
+
/** Show "Now" button to select current date and time */
|
|
44
|
+
showNowButton?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare function CwDateTimePicker({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, inputsLayout, datePlaceholder, timePlaceholder, disabled, required, className, showClear, numberOfMonths, showNowButton, }: Readonly<CwDateTimePickerProps>): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
//# sourceMappingURL=CwDateTimePicker2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwDateT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