@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
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Matcher } from "react-day-picker";
|
|
3
3
|
import { type DayPickerLocale } from "react-day-picker/locale";
|
|
4
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
4
5
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
5
6
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
7
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
6
8
|
export type DateMatcher = Matcher;
|
|
7
|
-
export interface CwDateTimePickerCompactProps {
|
|
9
|
+
export interface CwDateTimePickerCompactProps extends CwDataAttributes {
|
|
8
10
|
/** Current selected datetime */
|
|
9
11
|
value?: Date;
|
|
10
12
|
/** Callback when datetime changes */
|
|
@@ -55,6 +57,10 @@ export interface CwDateTimePickerCompactProps {
|
|
|
55
57
|
yearRangeStart?: number;
|
|
56
58
|
/** Last year shown in the year dropdown. Defaults to `maxDateTime`'s year, or 5 years after today when not set. */
|
|
57
59
|
yearRangeEnd?: number;
|
|
60
|
+
/** Feedback messages shown below the input; accepts a single message or an array for multiple
|
|
61
|
+
* @example feedback={{ type: "danger", message: "This field is required" }}
|
|
62
|
+
*/
|
|
63
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
58
64
|
}
|
|
59
|
-
export declare function CwDateTimePickerCompact({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, nowLabel, timeLabel, locale, yearRangeStart, yearRangeEnd, }: Readonly<CwDateTimePickerCompactProps>): React.JSX.Element;
|
|
65
|
+
export declare function CwDateTimePickerCompact({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, nowLabel, timeLabel, locale, yearRangeStart, yearRangeEnd, feedback, ...dataAttributes }: Readonly<CwDateTimePickerCompactProps>): React.JSX.Element;
|
|
60
66
|
//# sourceMappingURL=CwDateTimePickerCompact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateTimePickerCompact.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePickerCompact.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"CwDateTimePickerCompact.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePickerCompact.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAMtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAEvF,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;IACrE,gCAAgC;IAChC,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,qCAAqC;IACrC,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAG/C,kCAAkC;IAClC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,kCAAkC;IAClC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,yCAAyC;IACzC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,yDAAyD;IACzD,eAAe,CAAC,EAAE,WAAW,CAAC;IAG9B,2DAA2D;IAC3D,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACrC,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,gCAAgC;IAChC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0BAA0B;IAC1B,U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DayPickerLocale } from "react-day-picker/locale";
|
|
2
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
2
3
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
3
4
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
4
5
|
import { DateMatcher } from "./CwDatePicker";
|
|
5
|
-
|
|
6
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
7
|
+
export interface CwDateTimePickerTemporalProps extends CwDataAttributes {
|
|
6
8
|
/** Current selected datetime (local wall-clock, no timezone) */
|
|
7
9
|
value?: Temporal.PlainDateTime;
|
|
8
10
|
/** Callback when datetime changes */
|
|
@@ -47,6 +49,10 @@ export interface CwDateTimePickerTemporalProps {
|
|
|
47
49
|
nowLabel?: string;
|
|
48
50
|
/** Locale for date formatting and calendar strings (default: enGB) */
|
|
49
51
|
locale?: DayPickerLocale;
|
|
52
|
+
/** Feedback messages shown below the inputs; accepts a single message or an array for multiple
|
|
53
|
+
* @example feedback={{ type: "danger", message: "This field is required" }}
|
|
54
|
+
*/
|
|
55
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
50
56
|
}
|
|
51
|
-
export declare function CwDateTimePickerTemporal({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, nowLabel, locale, }: Readonly<CwDateTimePickerTemporalProps>): import("react").JSX.Element;
|
|
57
|
+
export declare function CwDateTimePickerTemporal({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, nowLabel, locale, feedback, ...dataAttributes }: Readonly<CwDateTimePickerTemporalProps>): import("react").JSX.Element;
|
|
52
58
|
//# sourceMappingURL=CwDateTimePickerTemporal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateTimePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePickerTemporal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CwDateTimePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePickerTemporal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAU,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAU,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAK3C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,gDAAgD,CAAC;AAErF,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACtE,gEAAgE;IAChE,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IAC/B,qCAAqC;IACrC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,aAAa,GAAG,SAAS,KAAK,IAAI,CAAC;IAGjE,kCAAkC;IAClC,WAAW,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACrC,kCAAkC;IAClC,WAAW,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACrC,yCAAyC;IACzC,aAAa,CAAC,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;IACrC,yDAAyD;IACzD,eAAe,CAAC,EAAE,WAAW,CAAC;IAG9B,2DAA2D;IAC3D,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACrC,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,OAAO,CA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
|
+
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
|
-
export interface CwTimePickerProps {
|
|
6
|
+
export interface CwTimePickerProps extends CwDataAttributes {
|
|
5
7
|
/** Current selected time in format "HH:mm" (24h format) */
|
|
6
8
|
value?: string;
|
|
7
9
|
/** Callback when time changes - returns format "HH:mm" */
|
|
@@ -34,6 +36,10 @@ export interface CwTimePickerProps {
|
|
|
34
36
|
* @default false on desktop, true on mobile
|
|
35
37
|
*/
|
|
36
38
|
useNative?: boolean;
|
|
39
|
+
/** Feedback messages shown below the input; accepts a single message or an array for multiple
|
|
40
|
+
* @example feedback={{ type: "danger", message: "This field is required" }}
|
|
41
|
+
*/
|
|
42
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
37
43
|
}
|
|
38
|
-
export declare function CwTimePicker({ value, onChange, interval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, useNative, }: CwTimePickerProps): React.JSX.Element;
|
|
44
|
+
export declare function CwTimePicker({ value, onChange, interval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, useNative, feedback, ...dataAttributes }: CwTimePickerProps): React.JSX.Element;
|
|
39
45
|
//# sourceMappingURL=CwTimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwTimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CwTimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwTimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAC7E,OAAO,K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,EACb,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,WAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,SAA4B,EAC5B,QAAQ,EACR,GAAG,cAAc,EACjB,EAAE,iBAAiB,qBA2SnB"}
|
|
@@ -25,18 +25,6 @@ declare const meta: {
|
|
|
25
25
|
control: "inline-radio";
|
|
26
26
|
options: number[];
|
|
27
27
|
};
|
|
28
|
-
feedbackType: {
|
|
29
|
-
table: {
|
|
30
|
-
disable: true;
|
|
31
|
-
};
|
|
32
|
-
control: false;
|
|
33
|
-
};
|
|
34
|
-
feedbackMessage: {
|
|
35
|
-
table: {
|
|
36
|
-
disable: true;
|
|
37
|
-
};
|
|
38
|
-
control: false;
|
|
39
|
-
};
|
|
40
28
|
alignProps: {
|
|
41
29
|
control: false;
|
|
42
30
|
};
|
|
@@ -49,6 +37,8 @@ declare const meta: {
|
|
|
49
37
|
direction: import("storybook/internal/csf").InputType;
|
|
50
38
|
labelText: import("storybook/internal/csf").InputType;
|
|
51
39
|
labelWidth: import("storybook/internal/csf").InputType;
|
|
40
|
+
feedbackType: import("storybook/internal/csf").InputType;
|
|
41
|
+
feedbackMessage: import("storybook/internal/csf").InputType;
|
|
52
42
|
};
|
|
53
43
|
parameters: {
|
|
54
44
|
docs: {
|
|
@@ -60,6 +50,7 @@ declare const meta: {
|
|
|
60
50
|
};
|
|
61
51
|
};
|
|
62
52
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
53
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
63
54
|
value?: string | undefined;
|
|
64
55
|
onChange: (time: string | undefined) => void;
|
|
65
56
|
interval?: 5 | 10 | 15 | 30 | 60 | undefined;
|
|
@@ -74,12 +65,14 @@ declare const meta: {
|
|
|
74
65
|
showClear?: boolean | undefined;
|
|
75
66
|
popupPosition?: "left-bottom" | "left-top" | "right-bottom" | "right-top" | undefined;
|
|
76
67
|
useNative?: boolean | undefined;
|
|
68
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
77
69
|
direction: "row" | "column";
|
|
78
70
|
labelText: string;
|
|
79
71
|
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
80
72
|
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
81
73
|
feedbackMessage: string;
|
|
82
74
|
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
75
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
83
76
|
value?: string | undefined;
|
|
84
77
|
onChange: (time: string | undefined) => void;
|
|
85
78
|
interval?: 5 | 10 | 15 | 30 | 60 | undefined;
|
|
@@ -94,6 +87,7 @@ declare const meta: {
|
|
|
94
87
|
showClear?: boolean | undefined;
|
|
95
88
|
popupPosition?: "left-bottom" | "left-top" | "right-bottom" | "right-top" | undefined;
|
|
96
89
|
useNative?: boolean | undefined;
|
|
90
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
97
91
|
direction: "row" | "column";
|
|
98
92
|
labelText: string;
|
|
99
93
|
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
@@ -106,6 +100,14 @@ export default meta;
|
|
|
106
100
|
type Story = StoryObj<typeof meta>;
|
|
107
101
|
/** A `HH:mm` string in and out; the list steps by `interval`. */
|
|
108
102
|
export declare const Default: Story;
|
|
109
|
-
/** `minTime`/`maxTime` bound the list. */
|
|
103
|
+
/** `minTime`/`maxTime` bound the list and a typed time outside them is rejected, so `feedback` states the range. */
|
|
110
104
|
export declare const Bounded: Story;
|
|
105
|
+
/** `feedback` renders below the field, as on the date pickers. */
|
|
106
|
+
export declare const WithFeedback: Story;
|
|
107
|
+
/**
|
|
108
|
+
* Next to a `CwSelect` and a `CwInputText` with the same container `data-label-width`: a
|
|
109
|
+
* `cw-grid-base-3` row with labels beside the fields, then a `cw-flex-row` with labels above.
|
|
110
|
+
* Check that the three fields line up and that the clock and clear icons sit inside the input box.
|
|
111
|
+
*/
|
|
112
|
+
export declare const InAFormRow: Story;
|
|
111
113
|
//# sourceMappingURL=CwTimePicker.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwTimePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,
|
|
1
|
+
{"version":3,"file":"CwTimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwTimePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAK/C,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,KAAK,IAAI,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAmBhD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,iEAAiE;AACjE,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,oHAAoH;AACpH,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAsCF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAC"}
|
|
@@ -11,6 +11,16 @@
|
|
|
11
11
|
export declare function resolveTwoDigitYear(twoDigitYear: number, currentYear?: number): number;
|
|
12
12
|
export declare const parseDate: (dateString: string, formatStr: string) => Temporal.PlainDate | undefined;
|
|
13
13
|
export declare const validate: (parsed: Temporal.PlainDate | undefined, minDate: Temporal.PlainDate | undefined, maxDate: Temporal.PlainDate | undefined) => boolean;
|
|
14
|
+
export type TypedDateChange = {
|
|
15
|
+
emit: true;
|
|
16
|
+
date: Temporal.PlainDate | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
emit: false;
|
|
19
|
+
};
|
|
20
|
+
/** Same keystroke rule as the Date-valued pickers: shorter text (5.5.2000) only commits on blur. */
|
|
21
|
+
export declare const TYPED_DATE_MIN_LENGTH = 10;
|
|
22
|
+
/** What a keystroke in the date input emits: a valid in-range date, a clear on empty text, or nothing while typing. */
|
|
23
|
+
export declare function resolveTypedDate(text: string, displayFormat: string, minDate: Temporal.PlainDate | undefined, maxDate: Temporal.PlainDate | undefined): TypedDateChange;
|
|
14
24
|
/** Temporal.PlainDate -> JS Date (for DayPicker interop) */
|
|
15
25
|
export declare function plainDateToJsDate(pd: Temporal.PlainDate): Date;
|
|
16
26
|
/** JS Date -> Temporal.PlainDate */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datePickerHelpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/datePickerHelpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAUtF;AAED,eAAO,MAAM,SAAS,GAAI,YAAY,MAAM,EAAE,WAAW,MAAM,KAAG,QAAQ,CAAC,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"datePickerHelpers.d.ts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|
import { type FC } from "react";
|
|
2
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
2
3
|
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
3
4
|
import type { CwLayoutProps } from "../../../../common/interfaces/CwLayoutProps";
|
|
4
5
|
import { type CwLabelProps } from "../../../../components/display/text/label/CwLabel";
|
|
5
|
-
export interface CwWeekdaySelectorProps {
|
|
6
|
+
export interface CwWeekdaySelectorProps extends CwDataAttributes {
|
|
6
7
|
value?: string;
|
|
7
8
|
onChange?: (value: string) => void;
|
|
8
9
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwWeekdaySelector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/weekday/CwWeekdaySelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAK/F,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"CwWeekdaySelector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/weekday/CwWeekdaySelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAK/F,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;0DACsD;IACtD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B;+BAC2B;IAC3B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;IAC/C;wFACoF;IACpF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAsExD,CAAC"}
|
|
@@ -82,6 +82,7 @@ declare const meta: {
|
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
85
|
+
[x: `data-${string}`]: string | number | boolean | undefined;
|
|
85
86
|
days: (typeof DAY_NAMES)[number][];
|
|
86
87
|
label: string;
|
|
87
88
|
feedbackType: "none" | "danger" | "warning" | "success" | "info" | "neutral";
|
|
@@ -105,4 +106,6 @@ type Story = StoryObj<typeof meta>;
|
|
|
105
106
|
/** Seven toggles. The line below shows the selection and the `MTWRFSU` mask the consumer receives; `locale` changes the letters. */
|
|
106
107
|
export declare const Default: Story;
|
|
107
108
|
export declare const WithFeedback: Story;
|
|
109
|
+
/** In a form next to CwInputText and CwSelect: in row layout the day strip starts where their inputs start. */
|
|
110
|
+
export declare const InAForm: Story;
|
|
108
111
|
//# sourceMappingURL=CwWeekdaySelector.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwWeekdaySelector.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/weekday/CwWeekdaySelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAKN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"CwWeekdaySelector.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/weekday/CwWeekdaySelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAKN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAK/C,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGrF,QAAA,MAAM,SAAS,4DAA6D,CAAC;AAE7E,UAAU,IAAK,SAAQ,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,eAAe;IAC5E,mGAAmG;IACnG,IAAI,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACnC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IAC7E,mCAAmC;IACnC,eAAe,EAAE,MAAM,CAAC;CACxB;AAsCD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA7CH,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,EAAE;eAE3B,MAAM;sBAEC,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;yBAE3D,MAAM;;;;;;;;;;;;;;CAwEF,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,oIAAoI;AACpI,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,+GAA+G;AAC/G,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { OnEvent } from "../../../../common/functions/dsl/UiEventDSL";
|
|
3
|
+
import type { CwDataAttributes } from "../../../../common/interfaces/CwDataAttributes";
|
|
3
4
|
import type { MenuOption } from "../../../control/action/contextmenu/CwAnchoredMenu";
|
|
4
5
|
import { SchedulerHeaderContent } from "./components/header/SchedulerHeaderState";
|
|
5
6
|
import { BackgroundEventDm } from "./components/row/BackgroundEvent";
|
|
@@ -8,7 +9,7 @@ import { SchedulerEventDm, SchedulerEventState } from "./components/row/Event";
|
|
|
8
9
|
import { type IndicatorRowDm } from "./components/row/IndicatorRow";
|
|
9
10
|
import type { SchedulerState } from "./state/ui/SchedulerState";
|
|
10
11
|
export type OrderCategory<T> = keyof T & string;
|
|
11
|
-
interface SchedulerProps<T extends RowHeaderDm, P extends SchedulerEventDm> {
|
|
12
|
+
interface SchedulerProps<T extends RowHeaderDm, P extends SchedulerEventDm> extends CwDataAttributes {
|
|
12
13
|
id: string;
|
|
13
14
|
state: SchedulerState;
|
|
14
15
|
header: SchedulerHeaderContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewScheduler.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/scheduler-new/presentation/NewScheduler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAE/E,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,6CAA6C,CAAC;AACzE,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAC,sBAAsB,EAAuB,MAAM,0CAA0C,CAAC;AACtG,OAAO,EAAkB,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,mCA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c,CAAC;IACtB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,EAAE,CAAC,EAAE,CAAC;IACZ,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC;IACjC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAClF,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAwKD,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,gBAAgB,EAAE,OAAO,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,sBAyNvG,CAAC"}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type SchedulerEventCornerMarker } from "./components/row/Event";
|
|
2
3
|
interface SchedulerDemoProps {
|
|
3
4
|
rowHeightRem: number;
|
|
4
5
|
rowHeaderWidth: number | string;
|
|
5
6
|
maxEventHeightRem?: number;
|
|
6
7
|
groupRowColors: boolean;
|
|
8
|
+
/** Colour bars shown instead of the event name; each event takes 2 to 4 of them. */
|
|
9
|
+
rectangleColors?: string[];
|
|
10
|
+
/** `highlightColor` of the first row header. */
|
|
11
|
+
highlightColor?: string;
|
|
12
|
+
/** `cornerMarker`s handed out in turn to every second event. */
|
|
13
|
+
cornerMarkers?: SchedulerEventCornerMarker[];
|
|
14
|
+
/** Gives every event one of the `UNDERLAYS` drawings, in turn. */
|
|
15
|
+
showUnderlay?: boolean;
|
|
16
|
+
/** Two-line `label` instead of `name`. */
|
|
17
|
+
twoLineLabel?: boolean;
|
|
7
18
|
}
|
|
8
19
|
/**
|
|
9
20
|
* Smoke story: the library's own fake presenter feeds rows, random events and one background
|
|
10
21
|
* event, so the scheduler renders without a backend. Right-click and drag call into the
|
|
11
22
|
* presenter's demo handlers.
|
|
12
23
|
*/
|
|
13
|
-
declare function SchedulerDemo({ rowHeightRem, rowHeaderWidth, maxEventHeightRem, groupRowColors }: SchedulerDemoProps): import("react").JSX.Element;
|
|
24
|
+
declare function SchedulerDemo({ rowHeightRem, rowHeaderWidth, maxEventHeightRem, groupRowColors, rectangleColors, highlightColor, cornerMarkers, showUnderlay, twoLineLabel }: SchedulerDemoProps): import("react").JSX.Element;
|
|
14
25
|
declare const meta: {
|
|
15
26
|
title: string;
|
|
16
27
|
component: typeof SchedulerDemo;
|
|
@@ -38,4 +49,14 @@ export default meta;
|
|
|
38
49
|
type Story = StoryObj<typeof meta>;
|
|
39
50
|
/** Header with the day divisions, one lane per resource, events sized from their dates. Only the demo knobs are exposed; the full `Scheduler` API is typed in the source. */
|
|
40
51
|
export declare const Default: Story;
|
|
52
|
+
/** Events with `rectangleColors` render one equal-width colour bar per entry instead of their name. */
|
|
53
|
+
export declare const RectangleColors: Story;
|
|
54
|
+
/** `highlightColor` on a row paints its header cell, here the first row with a danger surface token. */
|
|
55
|
+
export declare const HighlightedRow: Story;
|
|
56
|
+
/** `cornerMarker` sticks a dot `CwBadge` out of the top-right corner of the box: any badge colour, an optional own tooltip and `pulse` for the most urgent ones. The plain warning dot has no tooltip, so hover falls through to the event. */
|
|
57
|
+
export declare const CornerMarker: Story;
|
|
58
|
+
/** `underlay` draws any content inside the box behind the name and icons: here, in turn, a full hatch, vertical sectors, a progress fill, a hatched tail and a bottom band. The label gets a halo in the box colour so it reads over all of them; clicks, tooltip and context menu still reach the event. */
|
|
59
|
+
export declare const Underlay: Story;
|
|
60
|
+
/** `label` replaces `name` with own content, here a second line; it inherits the contrast text colour. Needs a row and event height that fit two lines. */
|
|
61
|
+
export declare const Label: Story;
|
|
41
62
|
//# sourceMappingURL=Scheduler.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scheduler.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/scheduler-new/presentation/Scheduler.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Scheduler.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/scheduler-new/presentation/Scheduler.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAkB,KAAK,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAIzF,UAAU,kBAAkB;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,aAAa,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAC7C,kEAAkE;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAwBD;;;;GAIG;AACH,iBAAS,aAAa,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,kBAAkB,+BAmCzL;AAED,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;CAa0B,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,6KAA6K;AAC7K,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,uGAAuG;AACvG,eAAO,MAAM,eAAe,EAAE,KAI7B,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,cAAc,EAAE,KAI5B,CAAC;AAEF,+OAA+O;AAC/O,eAAO,MAAM,YAAY,EAAE,KAa1B,CAAC;AAEF,6SAA6S;AAC7S,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,2JAA2J;AAC3J,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC"}
|
package/dist/src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface RowHeaderDm {
|
|
|
8
8
|
subtitle?: string;
|
|
9
9
|
subtitle2?: string;
|
|
10
10
|
rowHeightRem?: number;
|
|
11
|
+
/** Background of the header cell, any CSS colour (tokens included). Text contrast is up to the caller. */
|
|
12
|
+
highlightColor?: string;
|
|
11
13
|
}
|
|
12
14
|
export interface RowHeaderProps<T extends RowHeaderDm> {
|
|
13
15
|
value: T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultRowHeader.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAIjF,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultRowHeader.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAIjF,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0GAA0G;IAC1G,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,WAAW;IACpD,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CA2B5D,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type FC, type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import type { OnEvent } from "../../../../../../common/functions/dsl/UiEventDSL";
|
|
3
3
|
import { type MenuOption } from "../../../../../control/action/contextmenu/CwAnchoredMenu";
|
|
4
|
+
import { type BadgeColorScheme } from "../../../../../display/text/badge/CwBadge";
|
|
4
5
|
export interface SchedulerEventDm {
|
|
5
6
|
id: string;
|
|
6
7
|
name: string;
|
|
@@ -16,6 +17,7 @@ export interface SchedulerEventDm {
|
|
|
16
17
|
width: number;
|
|
17
18
|
order?: number;
|
|
18
19
|
icons?: ReactElement;
|
|
20
|
+
/** Colour bars shown instead of `name` / `label`, one equal-width bar per entry. */
|
|
19
21
|
rectangleColors?: string[];
|
|
20
22
|
tooltip?: ReactNode;
|
|
21
23
|
/** Optional content rendered in the strip above the (centered) event box, within the event's lane. */
|
|
@@ -27,6 +29,19 @@ export interface SchedulerEventDm {
|
|
|
27
29
|
alpha?: number;
|
|
28
30
|
/** Extra inline styles applied to the event box. Merged last — overrides computed styles. */
|
|
29
31
|
style?: React.CSSProperties;
|
|
32
|
+
/** Dot `CwBadge` sticking out of the top-right corner of the box, e.g. a warning on the event. */
|
|
33
|
+
cornerMarker?: SchedulerEventCornerMarker;
|
|
34
|
+
/** Content drawn inside the box behind the name and icons (e.g. segments, a hatch over part of the bar). Clipped to the box, never catches the mouse. The label gets a halo in the box colour so it stays readable over it. */
|
|
35
|
+
underlay?: ReactNode;
|
|
36
|
+
/** Replaces `name` inside the box with own content (e.g. a second line). It inherits the contrast text colour. `rectangleColors` replaces both, so the two are mutually exclusive. */
|
|
37
|
+
label?: ReactNode;
|
|
38
|
+
}
|
|
39
|
+
export interface SchedulerEventCornerMarker {
|
|
40
|
+
color: BadgeColorScheme;
|
|
41
|
+
/** Without it the marker lets clicks and hover through to the event. */
|
|
42
|
+
tooltip?: ReactNode;
|
|
43
|
+
/** Pulses the dot to tell the most urgent markers apart. */
|
|
44
|
+
pulse?: boolean;
|
|
30
45
|
}
|
|
31
46
|
export interface SchedulerEventState<T extends SchedulerEventDm> {
|
|
32
47
|
value: T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/row/Event.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAEjF,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/scheduler-new/presentation/components/row/Event.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAEjF,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAE3G,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAc3F,MAAM,WAAW,gBAAgB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,kGAAkG;IAClG,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,+NAA+N;IAC/N,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sLAAsL;IACtL,KAAK,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IAC1C,KAAK,EAAE,gBAAgB,CAAC;IACxB,wEAAwE;IACxE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,gBAAgB;IAC9D,KAAK,EAAE,CAAC,CAAC;IACT,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,uFAAuF;IACvF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CA0OpE,CAAC;AAEF,eAAO,MAAM,QAAQ,mCA8BpB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import type { cblEvent } from "./state/cblEvent";
|
|
3
|
+
import type { CwSchedulerProps } from "./state/CwSchedulerProps";
|
|
4
|
+
import type { Resource } from "./state/Resource";
|
|
5
|
+
import type { State } from "./state/State";
|
|
6
|
+
export declare class CwScheduler2 extends Component<CwSchedulerProps, State> {
|
|
7
|
+
contentArea?: HTMLTableDataCellElement;
|
|
8
|
+
constructor(Props: CwSchedulerProps);
|
|
9
|
+
private resizeObserver?;
|
|
10
|
+
calculateMaxPx: () => number;
|
|
11
|
+
init: (props: CwSchedulerProps) => void;
|
|
12
|
+
initOutside: (events: Array<cblEvent>, resources: Array<Resource>, _nextProps: CwSchedulerProps, startDate: Date, endDate: Date) => void;
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentWillUnmount(): void;
|
|
15
|
+
recalculateEventPositions: (events: Array<cblEvent>, dayPx: number, startDate: Date) => Array<cblEvent>;
|
|
16
|
+
updateResourcesWithEvents: (resources: Array<Resource>, events: Array<cblEvent>) => Array<Resource>;
|
|
17
|
+
handleResize: () => void;
|
|
18
|
+
componentWillReceiveProps(_nextProps: CwSchedulerProps): void;
|
|
19
|
+
handleOnClickContextMenuResourceScheduler: (_clickEvent: any, _resource: Resource) => void;
|
|
20
|
+
handleOnClickResourceContextMenu: (_e: any, resource: Resource) => void;
|
|
21
|
+
handleCrewPinning: (resource: Resource, text: string) => void;
|
|
22
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=CwSchedulerComp2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwSchedulerComp2.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/scheduler-temporal/CwSchedulerComp2.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgBlC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,YAAa,SAAQ,SAAS,CAAC,gBAAgB,EAAE,KAAK,CAAC;IACnE,WAAW,CAAC,EAAE,wBAAwB,CAAC;gBAE3B,KAAK,EAAE,gBAAgB;IAMnC,OAAO,CAAC,cAAc,CAAC,CAAiB;IAExC,cAAc,QAAO,MAAM,CAKzB;IAEF,IAAI,UAAW,gBAAgB,UA8B7B;IAEF,WAAW,WACF,KAAK,CAAC,QAAQ,CAAC,aACZ,KAAK,CAAC,QAAQ,CAAC,cACd,gBAAgB,aACjB,IAAI,WACN,IAAI,UAoDZ;IAEF,iBAAiB;IAuBjB,oBAAoB;IAOpB,yBAAyB,WAChB,KAAK,CAAC,QAAQ,CAAC,SAChB,MAAM,aACF,IAAI,KACb,KAAK,CAAC,QAAQ,CAAC,CAEhB;IAEF,yBAAyB,cACb,KAAK,CAAC,QAAQ,CAAC,UAClB,KAAK,CAAC,QAAQ,CAAC,KACrB,KAAK,CAAC,QAAQ,CAAC,CAKhB;IAEF,YAAY,aA0BV;IAEF,yBAAyB,CAAC,UAAU,EAAE,gBAAgB;IA4DtD,yCAAyC,gBAAiB,GAAG,aAAa,QAAQ,UAgBhF;IAEF,gCAAgC,OAAQ,GAAG,YAAY,QAAQ,UAI7D;IAEF,iBAAiB,aAAc,QAAQ,QAAQ,MAAM,UAInD;IAEF,MAAM;CAsFN"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { cblEvent } from "./state/cblEvent";
|
|
3
|
+
import type { Resource } from "./state/Resource";
|
|
4
|
+
export type cblEventCompProps = {
|
|
5
|
+
cblEvent: cblEvent;
|
|
6
|
+
handleOnClickEventContextMenu?: (key: string, cblEvent: cblEvent) => void;
|
|
7
|
+
};
|
|
8
|
+
export type resourceCompProps2 = {
|
|
9
|
+
resource: Resource;
|
|
10
|
+
handleOnClickResourceContextMenu?: (key: string, resource: Resource) => void;
|
|
11
|
+
};
|
|
12
|
+
export interface SuperSchedulerProps {
|
|
13
|
+
events: cblEvent[];
|
|
14
|
+
resourcesToPin: Resource[];
|
|
15
|
+
resources: Resource[];
|
|
16
|
+
height: number;
|
|
17
|
+
startDate: Date;
|
|
18
|
+
endDate: Date;
|
|
19
|
+
id: string;
|
|
20
|
+
scheduler_handleCblEventClick: (cblEvent: cblEvent, schedulerId: string) => void;
|
|
21
|
+
scheduler_handleCblEventClickRight?: (cblEvent: cblEvent, schedulerId: string) => void;
|
|
22
|
+
scheduler_handleCblEventDoubleClick: (cblEvent: cblEvent, schedulerId: string) => void;
|
|
23
|
+
scheduler_handleOnDropCblEventsOnResource: (cblDragNDrop: CblDragAndDrop, resource: Resource) => void;
|
|
24
|
+
parent: any;
|
|
25
|
+
cblEventComp: React.FC<cblEventCompProps>;
|
|
26
|
+
scheduler_handleOnClickEventContextMenu?: (e: any, cblEvent: cblEvent) => void;
|
|
27
|
+
resourceComp: React.FC<resourceCompProps2>;
|
|
28
|
+
scheduler_handleOnClickContextMenuResource?: (date: Date, resource: Resource, key: string) => void;
|
|
29
|
+
resourceContextMenuContents?: Array<{
|
|
30
|
+
key: string;
|
|
31
|
+
text: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
color: string;
|
|
34
|
+
}>;
|
|
35
|
+
scheduler_handleDblClickOnResourceInScheduler?: (resource: Resource) => void;
|
|
36
|
+
scheduler_handleEmptyClick?: (schedulerId: string) => void;
|
|
37
|
+
canBePinned?: boolean;
|
|
38
|
+
pinnedResources?: Array<number>;
|
|
39
|
+
scheduler_handleCblEventResize?: (cblDragNDrop: CblDragAndDrop) => void;
|
|
40
|
+
scheduler_handleMultiselectChange?: (value: any, selectedObjectsArray: any) => void;
|
|
41
|
+
dataConfig?: string;
|
|
42
|
+
scheduler_handleClearPinnedOnParent: () => void;
|
|
43
|
+
scheduler_handlePinningOfResources: (resourceId: number[], text: string, schedulerId: string, requestString: string) => void;
|
|
44
|
+
resourceName?: string;
|
|
45
|
+
descriptionColumn?: string;
|
|
46
|
+
pinnedEvents?: cblEvent[];
|
|
47
|
+
scheduler_handleOnClickResourceContextMenu?: (e: any, resource: Resource) => void;
|
|
48
|
+
airportSelected?: number;
|
|
49
|
+
module?: string;
|
|
50
|
+
groupByFunction: boolean;
|
|
51
|
+
}
|
|
52
|
+
interface State {
|
|
53
|
+
topsCalculated: number;
|
|
54
|
+
height: number;
|
|
55
|
+
dataConfig?: string;
|
|
56
|
+
pinnedResources: number[];
|
|
57
|
+
}
|
|
58
|
+
export default class SuperScheduler extends React.Component<SuperSchedulerProps, State> {
|
|
59
|
+
constructor(Props: SuperSchedulerProps);
|
|
60
|
+
componentDidUpdate(_previousProps: SuperSchedulerProps, _previousState: State): void;
|
|
61
|
+
scheduler_handleCblEventClick: (cblEvent: cblEvent, schedulerId: string) => void;
|
|
62
|
+
scheduler_handleCblEventClickRight: (cblEvent: cblEvent, schedulerId: string) => void;
|
|
63
|
+
scheduler_handleCblEventDoubleClick: (cblEvent: cblEvent, schedulerId: string) => void;
|
|
64
|
+
scheduler_handlePinnedClickMultipleIds: (resIds: number[], schedulerId: string, requestString: string) => void;
|
|
65
|
+
scheduler_handlePinnedClick: (resId: number, text: string, schedulerId: string) => void;
|
|
66
|
+
returnDynamicHeight(pinned: number, topsCalculated: number): {
|
|
67
|
+
topsCalculated: number;
|
|
68
|
+
height: number;
|
|
69
|
+
};
|
|
70
|
+
checkIfSlotAvailable(array: Array<cblEvent>, event: cblEvent): boolean;
|
|
71
|
+
handleOnClickContextMenuResource: (date: Date, resource: Resource, key: string, schedulerId: string) => void;
|
|
72
|
+
dateUTCString(date: any): any;
|
|
73
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
}
|
|
75
|
+
export declare class CblDragAndDrop {
|
|
76
|
+
fromId: string | null;
|
|
77
|
+
toId: string | null;
|
|
78
|
+
data: Array<any> | null;
|
|
79
|
+
droppedOnDate: Date | null;
|
|
80
|
+
resizeFromStart: boolean | null;
|
|
81
|
+
resizeFromEnd: boolean | null;
|
|
82
|
+
isCtrlKey: boolean | null;
|
|
83
|
+
constructor(fromId: string | null, toId: string | null, data: Array<any> | null, droppedOnDate?: Date | null, resizeFromStart?: boolean | null, resizeFromEnd?: boolean | null, isCtrlKey?: boolean | null);
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=CwSuperSchedulerComp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwSuperSchedulerComp.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/scheduler-temporal/CwSuperSchedulerComp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,6BAA6B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC1E,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAChC,QAAQ,EAAE,QAAQ,CAAC;IACnB,gCAAgC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC7E,CAAC;AAEF,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,cAAc,EAAE,QAAQ,EAAE,CAAC;IAC3B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,6BAA6B,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACjF,kCAAkC,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;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O,MAAM,eAAe,MAAM,UAwHlG;IAEF,aAAa,CAAC,IAAI,EAAE,GAAG;IAWvB,MAAM;CAsFN;AAED,qBAAa,cAAc;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;gBAGzB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,EACvB,aAAa,GAAE,IAAI,GAAG,IAAW,EACjC,eAAe,GAAE,OAAO,GAAG,IAAW,EACtC,aAAa,GAAE,OAAO,GAAG,IAAW,EACpC,SAAS,GAAE,OAAO,GAAG,IAAW;CAUjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FC } from "react";
|
|
2
|
+
import { cblEvent } from "../state/cblEvent";
|
|
3
|
+
import type { CwSchedulerProps } from "../state/CwSchedulerProps";
|
|
4
|
+
type EventProps = {
|
|
5
|
+
event: cblEvent;
|
|
6
|
+
schedulerProps: CwSchedulerProps;
|
|
7
|
+
};
|
|
8
|
+
export declare const EventRender: FC<EventProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=EventRender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventRender.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/scheduler-temporal/components/EventRender.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAUlE,KAAK,UAAU,GAAG;IACjB,KAAK,EAAE,QAAQ,CAAC;IAChB,cAAc,EAAE,gBAAgB,CAAC;CACjC,CAAC;AA+CF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,UAAU,CAgKtC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type FC } from "react";
|
|
2
|
+
import type { Resource } from "../state/Resource";
|
|
3
|
+
import type { CwSchedulerProps } from "../state/CwSchedulerProps";
|
|
4
|
+
import type { State } from "../state/State";
|
|
5
|
+
type ResourceListProps = {
|
|
6
|
+
resources: Array<Resource>;
|
|
7
|
+
schedulerProps: CwSchedulerProps;
|
|
8
|
+
contentArea?: HTMLTableDataCellElement;
|
|
9
|
+
state: State;
|
|
10
|
+
onClickContextMenu: (_clickEvent: any, _resource: Resource) => void;
|
|
11
|
+
crewAssignmentSchedulerContextMenu?: Array<{
|
|
12
|
+
key: string;
|
|
13
|
+
text: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
color: string;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
export declare const ResourceListRender: FC<ResourceListProps>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=ResourceListRender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceListRender.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/scheduler-temporal/components/ResourceListRender.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,KAAK,iBAAiB,GAAG;IACxB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3B,cAAc,EAAE,gBAAgB,CAAC;IACjC,WAAW,CAAC,EAAE,wBAAwB,CAAE;IACxC,KAAK,EAAE,KAAK,CAAC;IACb,kBAAkB,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpE,kCAAkC,CAAC,EAAE,KAAK,CAAC;QAC1C,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,iBAAiB,CA+CpD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Resource } from "../state/Resource";
|
|
3
|
+
import type { CwSchedulerProps } from "../state/CwSchedulerProps";
|
|
4
|
+
import type { State } from "../state/State";
|
|
5
|
+
type ResourceProps = {
|
|
6
|
+
res: Resource;
|
|
7
|
+
schedulerProps: CwSchedulerProps;
|
|
8
|
+
contentArea?: HTMLTableDataCellElement;
|
|
9
|
+
state: State;
|
|
10
|
+
isInViewport: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const ResourceRender: React.FC<ResourceProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ResourceRender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceRender.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/scheduler-temporal/components/ResourceRender.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,KAAK,aAAa,GAAG;IACpB,GAAG,EAAE,QAAQ,CAAC;IACd,cAAc,EAAE,gBAAgB,CAAC;IACjC,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6BlC,CAAC"}
|