@cwellt_software/cwellt-reactjs-lib 1.2.13 → 1.2.14
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/content/icons/new-cw-icons/NewCwIcons.json +1 -204
- package/dist/content/icons/new-cw-icons/css/new-cw-icons.css +9 -1
- package/dist/content/icons/new-cw-icons/fonts/NewCwIcons.woff +0 -0
- package/dist/index.cjs.js +1170 -1592
- package/dist/index.css +1 -1
- package/dist/index.d.ts +323 -154
- package/dist/index.es.js +1165 -1592
- package/dist/playground/main.d.ts +4 -0
- package/dist/playground/main.d.ts.map +1 -0
- package/dist/src/common/classes/CwSelectList.js +12 -0
- package/dist/src/common/classes/CwSelectListItems.js +14 -0
- package/dist/src/common/functions/collections.d.ts.map +1 -1
- package/dist/src/common/functions/collections.js +18 -0
- package/dist/src/common/functions/colorManipulation.js +76 -0
- package/dist/src/common/functions/dsl/UiEventDSL.d.ts +1 -1
- package/dist/src/common/functions/dsl/UiEventDSL.js +20 -0
- package/dist/src/common/functions/useSingleAndDoubleClicks.js +28 -0
- package/dist/src/common/interfaces/CwFormTypes.d.ts +5 -0
- package/dist/src/common/interfaces/CwFormTypes.d.ts.map +1 -0
- package/dist/src/common/interfaces/CwSelectListProps.js +1 -0
- package/dist/src/components/control/action/button/CwButton.js +13 -0
- package/dist/src/components/control/action/buttons/CwButtons.js +188 -0
- package/dist/src/components/control/action/contextmenu/CwContextMenu.js +43 -0
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.js +55 -0
- package/dist/src/components/control/action/search/CwSearch.js +67 -0
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.js +11 -0
- package/dist/src/components/control/choice/checkbox/CwCheck.d.ts +15 -0
- package/dist/src/components/control/choice/checkbox/CwCheck.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwCheckbox.d.ts +4 -0
- package/dist/src/components/control/choice/checkbox/CwCheckbox.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckbox.js +15 -0
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts +35 -0
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts.map +1 -0
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.js +99 -0
- package/dist/src/components/control/choice/dropdown/CwDropdown.js +27 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.js +30 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownFilter.js +10 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts.map +1 -1
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.js +298 -0
- package/dist/src/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.d.ts +1 -0
- package/dist/src/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.d.ts.map +1 -1
- package/dist/src/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.js +17 -0
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.js +80 -0
- package/dist/src/components/control/choice/multiselect/CwMultiselect.js +393 -0
- package/dist/src/components/control/choice/multiselect/CwOptionList.js +36 -0
- package/dist/src/components/control/choice/option/CwOption.js +16 -0
- package/dist/src/components/control/choice/select/CwSelect.d.ts +7 -1
- package/dist/src/components/control/choice/select/CwSelect.d.ts.map +1 -1
- package/dist/src/components/control/choice/select/CwSelect.js +36 -0
- package/dist/src/components/control/choice/toggle/CwToggle.d.ts +1 -1
- package/dist/src/components/control/choice/toggle/CwToggle.d.ts.map +1 -1
- package/dist/src/components/control/choice/toggle/CwToggle.js +9 -0
- package/dist/src/components/control/input/any/CwInput.js +16 -0
- package/dist/src/components/control/input/color/CwColorPicker.js +210 -0
- package/dist/src/components/control/input/color/CwInputColor.d.ts +30 -0
- package/dist/src/components/control/input/color/CwInputColor.d.ts.map +1 -1
- package/dist/src/components/control/input/color/CwInputColor.js +142 -0
- package/dist/src/components/control/input/date/CwInputDate.js +29 -0
- package/dist/src/components/control/input/date-picker/CwInputDatePicker.js +109 -0
- package/dist/src/components/control/input/date-text/CwInputDateText.js +90 -0
- package/dist/src/components/control/input/datetime/CwInputDatetime.js +29 -0
- package/dist/src/components/control/input/digit/CwDigit.js +28 -0
- package/dist/src/components/control/input/file/CwFileUpload.js +52 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.js +148 -0
- package/dist/src/components/control/input/image/CwInputImage.js +52 -0
- package/dist/src/components/control/input/image-area/CwImageArea.js +113 -0
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts +3 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/dateRangePresets.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/example.d.ts +2 -0
- package/dist/src/components/control/input/new-dates/example.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/usePickerPopup.d.ts +24 -0
- package/dist/src/components/control/input/new-dates/usePickerPopup.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/utils/timezoneHelpers.d.ts +22 -0
- package/dist/src/components/control/input/new-dates/utils/timezoneHelpers.d.ts.map +1 -0
- package/dist/src/components/control/input/number/CwInputNumber.js +11 -0
- package/dist/src/components/control/input/phone/CwInputPhone.js +24 -0
- package/dist/src/components/control/input/text/CwInputText.d.ts +7 -0
- package/dist/src/components/control/input/text/CwInputText.d.ts.map +1 -1
- package/dist/src/components/control/input/text/CwInputText.js +31 -0
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts +6 -0
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts.map +1 -1
- package/dist/src/components/control/input/text-area/CwTextArea.js +9 -0
- package/dist/src/components/control/input/time/CwTime.js +29 -0
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.js +143 -0
- package/dist/src/components/custom/find-airport/CwFindAirportComp.d.ts +1 -0
- package/dist/src/components/custom/find-airport/CwFindAirportComp.d.ts.map +1 -1
- package/dist/src/components/custom/find-airport/CwFindAirportComp.js +240 -0
- package/dist/src/components/custom/scheduler/CwSchedulerComp.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/CwSchedulerComp.js +211 -0
- package/dist/src/components/custom/scheduler/CwSuperSchedulerComp.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/CwSuperSchedulerComp.js +269 -0
- package/dist/src/components/custom/scheduler/components/EventRender.js +142 -0
- package/dist/src/components/custom/scheduler/components/ResourceListRender.js +12 -0
- package/dist/src/components/custom/scheduler/components/ResourceRender.js +26 -0
- package/dist/src/components/custom/scheduler/components/day_headers/DayHeader.js +13 -0
- package/dist/src/components/custom/scheduler/components/day_headers/MonthHeader.js +12 -0
- package/dist/src/components/custom/scheduler/components/day_headers/MyDaysHeader.js +62 -0
- package/dist/src/components/custom/scheduler/components/day_headers/WeekHeader.js +13 -0
- package/dist/src/components/custom/scheduler/components/resources_title_list/ResourcesTitleList.js +24 -0
- package/dist/src/components/custom/scheduler/components/scheduler_content_area/SchedulerContentArea.js +17 -0
- package/dist/src/components/custom/scheduler/components/scheduler_header/SchedulerHeader.js +26 -0
- package/dist/src/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.js +23 -0
- package/dist/src/components/custom/scheduler/components/time_headers/TimeHeader.js +31 -0
- package/dist/src/components/custom/scheduler/components/time_headers/TimeHeaderRow.js +16 -0
- package/dist/src/components/custom/scheduler/components/time_line/TimeLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/time_line/TimeLine.js +12 -0
- package/dist/src/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.js +5 -0
- package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDates.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDates.js +15 -0
- package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.js +5 -0
- package/dist/src/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.js +43 -0
- package/dist/src/components/custom/scheduler/logic/dates/getMonthHeaderData.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/getMonthHeaderData.js +35 -0
- package/dist/src/components/custom/scheduler/logic/dates/getUtcToday.js +6 -0
- package/dist/src/components/custom/scheduler/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/getWeekHeaderDataFromWeekRange.js +20 -0
- package/dist/src/components/custom/scheduler/logic/dates/listOfDatesToWeeks.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/listOfDatesToWeeks.js +55 -0
- package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisionType.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisionType.js +13 -0
- package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisions.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisions.js +16 -0
- package/dist/src/components/custom/scheduler/logic/filtering/filterEvents.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/filtering/filterEvents.js +33 -0
- package/dist/src/components/custom/scheduler/logic/filtering/filterResources.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/filtering/filterResources.js +14 -0
- package/dist/src/components/custom/scheduler/logic/filtering/hasSameProperties.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/filtering/hasSameProperties.js +10 -0
- package/dist/src/components/custom/scheduler/logic/onDrop/OnDrop.js +45 -0
- package/dist/src/components/custom/scheduler/logic/pixels/getHeightLineScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/pixels/getHeightLineScheduler.js +14 -0
- package/dist/src/components/custom/scheduler/logic/pixels/getPixelsForEvent.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/pixels/getPixelsForEvent.js +32 -0
- package/dist/src/components/custom/scheduler/logic/pixels/heightScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/pixels/heightScheduler.js +14 -0
- package/dist/src/components/custom/scheduler/logic/pixels/heightSchedulerPinned.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/pixels/heightSchedulerPinned.js +9 -0
- package/dist/src/components/custom/scheduler/logic/state_handle/doubleClickOnResource.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/doubleClickOnResource.js +5 -0
- package/dist/src/components/custom/scheduler/logic/state_handle/handleResourceChange.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/handleResourceChange.js +11 -0
- package/dist/src/components/custom/scheduler/logic/state_handle/onDragOver.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/onDragOver.js +9 -0
- package/dist/src/components/custom/scheduler/logic/state_handle/onDropEventToResource.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/onDropEventToResource.js +3 -0
- package/dist/src/components/custom/scheduler/logic/strings/compareStrings.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/strings/compareStrings.js +7 -0
- package/dist/src/components/custom/scheduler/logic/strings/getGUID.js +7 -0
- package/dist/src/components/custom/scheduler/logic/ui/checkIfSlotAvailable.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/checkIfSlotAvailable.js +8 -0
- package/dist/src/components/custom/scheduler/logic/ui/getEventsOfResource.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/getEventsOfResource.js +45 -0
- package/dist/src/components/custom/scheduler/logic/ui/getTimeHeaders.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/getTimeHeaders.js +35 -0
- package/dist/src/components/custom/scheduler/logic/ui/isAllowedToMove.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/isAllowedToMove.js +19 -0
- package/dist/src/components/custom/scheduler/logic/ui/updateResourceVisibility.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/updateResourceVisibility.js +15 -0
- package/dist/src/components/custom/scheduler/state/CblDragAndDrop.js +18 -0
- package/dist/src/components/custom/scheduler/state/CwSchedulerProps.js +1 -0
- package/dist/src/components/custom/scheduler/state/Resource.js +18 -0
- package/dist/src/components/custom/scheduler/state/State.js +1 -0
- package/dist/src/components/custom/scheduler/state/cblEvent.js +28 -0
- package/dist/src/components/custom/scheduler/state/cblEventCompProps.js +1 -0
- package/dist/src/components/custom/scheduler/state/resourceCompProps2.js +1 -0
- 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/NewScheduler.js +123 -0
- package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.js +118 -0
- package/dist/src/components/custom/scheduler-new/presentation/SchedulerPresenter.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/SchedulerPresenter.js +166 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderDivision.js +26 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderTitle.js +8 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/header/SchedulerHeader.js +86 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/header/SchedulerHeaderState.js +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.js +60 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.js +24 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.js +150 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/EventSideDrag.js +11 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.js +176 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.js +8 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.js +39 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.js +8 -0
- package/dist/src/components/custom/scheduler-new/presentation/helpers.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/helpers.js +43 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/WeekendCalc.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/WeekendCalc.js +24 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/dateFromPercentage.js +7 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/eventIsVisible.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/eventIsVisible.js +7 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.js +113 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.js +21 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getEventSizes.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getEventSizes.js +30 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getLinesByDivisions.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getLinesByDivisions.js +13 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getPercentageFromMouseEvent.js +7 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.js +32 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.js +12 -0
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.d.ts +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.js +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/WeekRange.js +1 -0
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.js +267 -0
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.js +269 -0
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.js +142 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.js +12 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.js +26 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.js +13 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.js +12 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.js +62 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.js +13 -0
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.js +22 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.js +17 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.js +26 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.js +23 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.js +31 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.js +16 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.js +12 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.js +5 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.js +15 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.js +5 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.js +43 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.js +35 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.js +6 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.js +20 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.js +55 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.js +13 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.js +16 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.js +10 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.js +34 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.js +14 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.js +10 -0
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.js +36 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.js +14 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.js +32 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.js +14 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.js +9 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.js +5 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.js +178 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.js +11 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.js +9 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.js +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.js +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.js +7 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.js +7 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.js +9 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.js +92 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.js +242 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.js +35 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.js +19 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.js +241 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.js +15 -0
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.js +18 -0
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.js +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/Resource.js +18 -0
- package/dist/src/components/custom/scheduler-temporal/state/State.js +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.js +28 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.js +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.js +1 -0
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts +1 -2
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/PinRowHeader.js +53 -0
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts +1 -0
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/SuperScheduler.js +23 -0
- package/dist/src/components/custom/super-scheduler/SuperSchedulerEvents.js +15 -0
- package/dist/src/components/custom/super-scheduler/SuperSchedulerPresenter.js +45 -0
- package/dist/src/components/display/data/accordion/CwAccordionContainer.js +20 -0
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts +13 -0
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts.map +1 -1
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.js +138 -0
- package/dist/src/components/display/data/table/CwTable.d.ts +1 -1
- package/dist/src/components/display/data/table/CwTable.d.ts.map +1 -1
- package/dist/src/components/display/data/table/CwTable.js +203 -0
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts +74 -0
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts.map +1 -0
- package/dist/src/components/display/data/table_sortable/useSortableTable.d.ts +42 -0
- package/dist/src/components/display/data/table_sortable/useSortableTable.d.ts.map +1 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltip.d.ts +25 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltip.d.ts.map +1 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltipManager.d.ts +19 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltipManager.d.ts.map +1 -0
- package/dist/src/components/display/graphics/icon/CwIcon.js +23 -0
- package/dist/src/components/display/graphics/loading/CwLoading.js +27 -0
- package/dist/src/components/display/graphics/loading-small/CwLoadingSmall.js +20 -0
- package/dist/src/components/display/text/heading/CwHeadingMain.js +5 -0
- package/dist/src/components/display/text/heading/CwHeadingSecond.js +5 -0
- package/dist/src/components/display/text/label/CwLabel.js +13 -0
- package/dist/src/components/display/text/message/CwMessage.js +75 -0
- package/dist/src/components/display/text/note/CwNote.d.ts +1 -1
- package/dist/src/components/display/text/note/CwNote.d.ts.map +1 -1
- package/dist/src/components/display/text/note/CwNote.js +78 -0
- package/dist/src/components/display/text/tag/CwChip.d.ts +1 -1
- package/dist/src/components/display/text/tag/CwChip.d.ts.map +1 -1
- package/dist/src/components/display/text/tag/CwChip.js +57 -0
- package/dist/src/components/display/text/tag/CwTag.js +21 -0
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts +4 -1
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts.map +1 -1
- package/dist/src/components/display/text/tooltip/CwTooltip.js +4 -0
- package/dist/src/components/layout/align/CwAlign.js +54 -0
- package/dist/src/components/layout/card/CwCard.js +55 -0
- package/dist/src/components/layout/card/CwCardList.js +38 -0
- package/dist/src/components/layout/dialog/CwDialog.d.ts +2 -0
- package/dist/src/components/layout/dialog/CwDialog.d.ts.map +1 -1
- package/dist/src/components/layout/dialog/CwDialog.js +255 -0
- package/dist/src/components/layout/dialog/CwDialogManager.d.ts.map +1 -1
- package/dist/src/components/layout/dialog/CwDialogManager.js +44 -0
- package/dist/src/components/layout/list/details/CwExpandable.js +28 -0
- package/dist/src/components/layout/list/key-value/CwKeyValueList.js +23 -0
- package/dist/src/components/layout/list/sortable/CwSortableList.d.ts +2 -1
- package/dist/src/components/layout/list/sortable/CwSortableList.d.ts.map +1 -1
- package/dist/src/components/layout/list/sortable/CwSortableList.js +73 -0
- package/dist/src/components/layout/list/sortable/useSortableList.js +53 -0
- package/dist/src/components/layout/master-detail/CwMasterDetail.d.ts +41 -0
- package/dist/src/components/layout/master-detail/CwMasterDetail.d.ts.map +1 -0
- package/dist/src/components/layout/modal/CwModalReportFunctional.js +23 -0
- package/dist/src/components/layout/modal/hover/CwModalHover.js +61 -0
- package/dist/src/components/layout/modal/legacy/cw_modal.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal.js +44 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.js +39 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.js +44 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_report.d.ts +0 -2
- package/dist/src/components/layout/modal/legacy/cw_modal_report.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_report.js +26 -0
- package/dist/{components/layout/table/grouped/CwTableGrouped.d.ts → src/components/layout/table/grouped/CwTableGrouped.js} +13 -23
- package/dist/src/components/layout/tabs/CwTabs.js +53 -0
- package/dist/src/dev/index.d.ts +5 -0
- package/dist/src/dev/index.d.ts.map +1 -0
- package/dist/src/dev/palette.d.ts +3 -0
- package/dist/src/dev/palette.d.ts.map +1 -0
- package/dist/src/dev/previews.d.ts +3 -0
- package/dist/src/dev/previews.d.ts.map +1 -0
- package/dist/src/dev/useInitial.d.ts +3 -0
- package/dist/src/dev/useInitial.d.ts.map +1 -0
- package/dist/src/index.d.ts +8 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +187 -0
- package/dist/src/main.d.ts +3 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/test/components/control/input/new-dates/timezoneHelpers.test.d.ts +2 -0
- package/dist/test/components/control/input/new-dates/timezoneHelpers.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/getDefaultDivisions.test.js +48 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/hoursBetween.test.js +15 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/monthDivisions.test.js +42 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/weekendCalc.test.js +30 -0
- package/dist/test/components/custom/scheduler/addMinutesToDateFromPx.test.js +43 -0
- package/dist/test/components/custom/scheduler/checkIfSlotAvailable.test.js +30 -0
- package/dist/test/components/custom/scheduler/daysBetweenTwoDates.test.js +61 -0
- package/dist/test/components/custom/scheduler/daysBetweenTwoDatesWithoutCeilForEvent.test.js +27 -0
- package/dist/test/components/custom/scheduler/getGUID.test.js +30 -0
- package/dist/test/components/custom/scheduler/getPixelsForEvent.test.js +38 -0
- package/dist/test/components/custom/scheduler/getTimeHeaders.test.js +35 -0
- package/dist/test/components/custom/scheduler/hasSameProperties.test.js +51 -0
- package/dist/test/components/custom/scheduler/isAllowedToMove.test.js +28 -0
- package/dist/test/components/custom/scheduler/listOfDatesToWeeks.test.js +72 -0
- package/dist/test/jest.setup.js +1 -0
- package/dist/test/vitest.setup.d.ts +2 -0
- package/dist/test/vitest.setup.d.ts.map +1 -0
- package/package.json +19 -21
- package/dist/common/classes/CwSelectList.d.ts +0 -8
- package/dist/common/classes/CwSelectList.d.ts.map +0 -1
- package/dist/common/classes/CwSelectListItems.d.ts +0 -9
- package/dist/common/classes/CwSelectListItems.d.ts.map +0 -1
- package/dist/common/functions/collections.d.ts +0 -15
- package/dist/common/functions/collections.d.ts.map +0 -1
- package/dist/common/functions/colorManipulation.d.ts +0 -6
- package/dist/common/functions/colorManipulation.d.ts.map +0 -1
- package/dist/common/functions/dsl/UiEventDSL.d.ts +0 -9
- package/dist/common/functions/dsl/UiEventDSL.d.ts.map +0 -1
- package/dist/common/functions/useSingleAndDoubleClicks.d.ts +0 -7
- package/dist/common/functions/useSingleAndDoubleClicks.d.ts.map +0 -1
- package/dist/common/interfaces/CwSelectListProps.d.ts +0 -9
- package/dist/common/interfaces/CwSelectListProps.d.ts.map +0 -1
- package/dist/components/control/action/button/CwButton.d.ts +0 -26
- package/dist/components/control/action/button/CwButton.d.ts.map +0 -1
- package/dist/components/control/action/buttons/CwButtons.d.ts +0 -59
- package/dist/components/control/action/buttons/CwButtons.d.ts.map +0 -1
- package/dist/components/control/action/contextmenu/CwContextMenu.d.ts +0 -23
- package/dist/components/control/action/contextmenu/CwContextMenu.d.ts.map +0 -1
- package/dist/components/control/action/contextual-menu/CwContextualMenu.d.ts +0 -29
- package/dist/components/control/action/contextual-menu/CwContextualMenu.d.ts.map +0 -1
- package/dist/components/control/action/search/CwSearch.d.ts +0 -16
- package/dist/components/control/action/search/CwSearch.d.ts.map +0 -1
- package/dist/components/control/choice/checkbox/CwCheckbox.d.ts +0 -17
- package/dist/components/control/choice/checkbox/CwCheckbox.d.ts.map +0 -1
- package/dist/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts +0 -24
- package/dist/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts.map +0 -1
- package/dist/components/control/choice/dropdown/CwDropdown.d.ts +0 -19
- package/dist/components/control/choice/dropdown/CwDropdown.d.ts.map +0 -1
- package/dist/components/control/choice/dropdown/CwDropdownContainer.d.ts +0 -17
- package/dist/components/control/choice/dropdown/CwDropdownContainer.d.ts.map +0 -1
- package/dist/components/control/choice/dropdown/CwDropdownFilter.d.ts +0 -28
- package/dist/components/control/choice/dropdown/CwDropdownFilter.d.ts.map +0 -1
- package/dist/components/control/choice/dropdown/CwDropdownNavigation.d.ts +0 -21
- package/dist/components/control/choice/dropdown/CwDropdownNavigation.d.ts.map +0 -1
- package/dist/components/control/choice/multi-filter/CwMultiFilter.d.ts +0 -158
- package/dist/components/control/choice/multi-filter/CwMultiFilter.d.ts.map +0 -1
- package/dist/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.d.ts +0 -33
- package/dist/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.d.ts.map +0 -1
- package/dist/components/control/choice/multiselect/CwHeadFilter.d.ts +0 -16
- package/dist/components/control/choice/multiselect/CwHeadFilter.d.ts.map +0 -1
- package/dist/components/control/choice/multiselect/CwMultiselect.d.ts +0 -13
- package/dist/components/control/choice/multiselect/CwMultiselect.d.ts.map +0 -1
- package/dist/components/control/choice/multiselect/CwOptionList.d.ts +0 -15
- package/dist/components/control/choice/multiselect/CwOptionList.d.ts.map +0 -1
- package/dist/components/control/choice/option/CwOption.d.ts +0 -17
- package/dist/components/control/choice/option/CwOption.d.ts.map +0 -1
- package/dist/components/control/choice/select/CwSelect.d.ts +0 -48
- package/dist/components/control/choice/select/CwSelect.d.ts.map +0 -1
- package/dist/components/control/choice/toggle/CwToggle.d.ts +0 -28
- package/dist/components/control/choice/toggle/CwToggle.d.ts.map +0 -1
- package/dist/components/control/input/any/CwInput.d.ts +0 -17
- package/dist/components/control/input/any/CwInput.d.ts.map +0 -1
- package/dist/components/control/input/date/CwInputDate.d.ts +0 -40
- package/dist/components/control/input/date/CwInputDate.d.ts.map +0 -1
- package/dist/components/control/input/date-picker/CwInputDatePicker.d.ts +0 -7
- package/dist/components/control/input/date-picker/CwInputDatePicker.d.ts.map +0 -1
- package/dist/components/control/input/date-text/CwInputDateText.d.ts +0 -38
- package/dist/components/control/input/date-text/CwInputDateText.d.ts.map +0 -1
- package/dist/components/control/input/datetime/CwInputDatetime.d.ts +0 -40
- package/dist/components/control/input/datetime/CwInputDatetime.d.ts.map +0 -1
- package/dist/components/control/input/digit/CwDigit.d.ts +0 -40
- package/dist/components/control/input/digit/CwDigit.d.ts.map +0 -1
- package/dist/components/control/input/file/CwFileUpload.d.ts +0 -18
- package/dist/components/control/input/file/CwFileUpload.d.ts.map +0 -1
- package/dist/components/control/input/file/CwFileUploadMultiple.d.ts +0 -15
- package/dist/components/control/input/file/CwFileUploadMultiple.d.ts.map +0 -1
- package/dist/components/control/input/image/CwInputImage.d.ts +0 -7
- package/dist/components/control/input/image/CwInputImage.d.ts.map +0 -1
- package/dist/components/control/input/image-area/CwImageArea.d.ts +0 -53
- package/dist/components/control/input/image-area/CwImageArea.d.ts.map +0 -1
- package/dist/components/control/input/number/CwInputNumber.d.ts +0 -20
- package/dist/components/control/input/number/CwInputNumber.d.ts.map +0 -1
- package/dist/components/control/input/phone/CwInputPhone.d.ts +0 -36
- package/dist/components/control/input/phone/CwInputPhone.d.ts.map +0 -1
- package/dist/components/control/input/text/CwInputText.d.ts +0 -40
- package/dist/components/control/input/text/CwInputText.d.ts.map +0 -1
- package/dist/components/control/input/text-area/CwTextArea.d.ts +0 -24
- package/dist/components/control/input/text-area/CwTextArea.d.ts.map +0 -1
- package/dist/components/control/input/time/CwTime.d.ts +0 -40
- package/dist/components/control/input/time/CwTime.d.ts.map +0 -1
- package/dist/components/control/input/weekday/CwWeekdaySelector.d.ts +0 -53
- package/dist/components/control/input/weekday/CwWeekdaySelector.d.ts.map +0 -1
- package/dist/components/custom/find-airport/CwFindAirportComp.d.ts +0 -35
- package/dist/components/custom/find-airport/CwFindAirportComp.d.ts.map +0 -1
- package/dist/components/custom/scheduler/CwSchedulerComp.d.ts +0 -19
- package/dist/components/custom/scheduler/CwSchedulerComp.d.ts.map +0 -1
- package/dist/components/custom/scheduler/CwSuperSchedulerComp.d.ts +0 -86
- package/dist/components/custom/scheduler/CwSuperSchedulerComp.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/EventRender.d.ts +0 -10
- package/dist/components/custom/scheduler/components/EventRender.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/ResourceListRender.d.ts +0 -20
- package/dist/components/custom/scheduler/components/ResourceListRender.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/ResourceRender.d.ts +0 -14
- package/dist/components/custom/scheduler/components/ResourceRender.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/day_headers/DayHeader.d.ts +0 -11
- package/dist/components/custom/scheduler/components/day_headers/DayHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/day_headers/MonthHeader.d.ts +0 -11
- package/dist/components/custom/scheduler/components/day_headers/MonthHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/day_headers/MyDaysHeader.d.ts +0 -13
- package/dist/components/custom/scheduler/components/day_headers/MyDaysHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/day_headers/WeekHeader.d.ts +0 -11
- package/dist/components/custom/scheduler/components/day_headers/WeekHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/resources_title_list/ResourcesTitleList.d.ts +0 -14
- package/dist/components/custom/scheduler/components/resources_title_list/ResourcesTitleList.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/scheduler_content_area/SchedulerContentArea.d.ts +0 -23
- package/dist/components/custom/scheduler/components/scheduler_content_area/SchedulerContentArea.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/scheduler_header/SchedulerHeader.d.ts +0 -8
- package/dist/components/custom/scheduler/components/scheduler_header/SchedulerHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.d.ts +0 -12
- package/dist/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/time_headers/TimeHeader.d.ts +0 -12
- package/dist/components/custom/scheduler/components/time_headers/TimeHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/time_headers/TimeHeaderRow.d.ts +0 -10
- package/dist/components/custom/scheduler/components/time_headers/TimeHeaderRow.d.ts.map +0 -1
- package/dist/components/custom/scheduler/components/time_line/TimeLine.d.ts +0 -12
- package/dist/components/custom/scheduler/components/time_line/TimeLine.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/dates/daysBetweenTwoDates.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/dates/daysBetweenTwoDates.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.d.ts +0 -7
- package/dist/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/dates/getMonthHeaderData.d.ts +0 -10
- package/dist/components/custom/scheduler/logic/dates/getMonthHeaderData.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/dates/getUtcToday.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/dates/getUtcToday.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/dates/getWeekHeaderDataFromWeekRange.d.ts +0 -7
- package/dist/components/custom/scheduler/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/dates/listOfDatesToWeeks.d.ts +0 -8
- package/dist/components/custom/scheduler/logic/dates/listOfDatesToWeeks.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/divisions/calculateDivisionType.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/divisions/calculateDivisionType.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/divisions/calculateDivisions.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/divisions/calculateDivisions.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/filtering/filterEvents.d.ts +0 -3
- package/dist/components/custom/scheduler/logic/filtering/filterEvents.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/filtering/filterResources.d.ts +0 -3
- package/dist/components/custom/scheduler/logic/filtering/filterResources.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/onDrop/OnDrop.d.ts +0 -13
- package/dist/components/custom/scheduler/logic/onDrop/OnDrop.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/pixels/getPixelsForEvent.d.ts +0 -17
- package/dist/components/custom/scheduler/logic/pixels/getPixelsForEvent.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/pixels/heightScheduler.d.ts +0 -3
- package/dist/components/custom/scheduler/logic/pixels/heightScheduler.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/state_handle/doubleClickOnResource.d.ts +0 -4
- package/dist/components/custom/scheduler/logic/state_handle/doubleClickOnResource.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/state_handle/onDragOver.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/state_handle/onDragOver.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/state_handle/onDropEventToResource.d.ts +0 -5
- package/dist/components/custom/scheduler/logic/state_handle/onDropEventToResource.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/strings/compareStrings.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/strings/compareStrings.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/strings/getGUID.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/strings/getGUID.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/ui/checkIfSlotAvailable.d.ts +0 -3
- package/dist/components/custom/scheduler/logic/ui/checkIfSlotAvailable.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/ui/getEventsOfResource.d.ts +0 -4
- package/dist/components/custom/scheduler/logic/ui/getEventsOfResource.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/ui/getTimeHeaders.d.ts +0 -2
- package/dist/components/custom/scheduler/logic/ui/getTimeHeaders.d.ts.map +0 -1
- package/dist/components/custom/scheduler/logic/ui/isAllowedToMove.d.ts +0 -3
- package/dist/components/custom/scheduler/logic/ui/isAllowedToMove.d.ts.map +0 -1
- package/dist/components/custom/scheduler/state/CblDragAndDrop.d.ts +0 -11
- package/dist/components/custom/scheduler/state/CblDragAndDrop.d.ts.map +0 -1
- package/dist/components/custom/scheduler/state/CwSchedulerProps.d.ts +0 -43
- package/dist/components/custom/scheduler/state/CwSchedulerProps.d.ts.map +0 -1
- package/dist/components/custom/scheduler/state/Resource.d.ts +0 -14
- package/dist/components/custom/scheduler/state/Resource.d.ts.map +0 -1
- package/dist/components/custom/scheduler/state/State.d.ts +0 -19
- package/dist/components/custom/scheduler/state/State.d.ts.map +0 -1
- package/dist/components/custom/scheduler/state/cblEvent.d.ts +0 -18
- package/dist/components/custom/scheduler/state/cblEvent.d.ts.map +0 -1
- package/dist/components/custom/scheduler/state/cblEventCompProps.d.ts +0 -7
- package/dist/components/custom/scheduler/state/cblEventCompProps.d.ts.map +0 -1
- package/dist/components/custom/scheduler/state/resourceCompProps2.d.ts +0 -6
- package/dist/components/custom/scheduler/state/resourceCompProps2.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/NewScheduler.d.ts +0 -29
- package/dist/components/custom/scheduler-new/presentation/NewScheduler.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.d.ts +0 -80
- package/dist/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/SchedulerPresenter.d.ts +0 -27
- package/dist/components/custom/scheduler-new/presentation/SchedulerPresenter.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/header/HeaderDivision.d.ts +0 -19
- package/dist/components/custom/scheduler-new/presentation/components/header/HeaderDivision.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/header/HeaderTitle.d.ts +0 -10
- package/dist/components/custom/scheduler-new/presentation/components/header/HeaderTitle.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/header/SchedulerHeader.d.ts +0 -5
- package/dist/components/custom/scheduler-new/presentation/components/header/SchedulerHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/header/SchedulerHeaderState.d.ts +0 -17
- package/dist/components/custom/scheduler-new/presentation/components/header/SchedulerHeaderState.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.d.ts +0 -8
- package/dist/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.d.ts +0 -17
- package/dist/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/row/Event.d.ts +0 -34
- package/dist/components/custom/scheduler-new/presentation/components/row/Event.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/row/EventSideDrag.d.ts +0 -8
- package/dist/components/custom/scheduler-new/presentation/components/row/EventSideDrag.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts +0 -27
- package/dist/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts +0 -10
- package/dist/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/timeline/TimeLine.d.ts +0 -15
- package/dist/components/custom/scheduler-new/presentation/components/timeline/TimeLine.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts +0 -11
- package/dist/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/helpers.d.ts +0 -19
- package/dist/components/custom/scheduler-new/presentation/helpers.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/WeekendCalc.d.ts +0 -4
- package/dist/components/custom/scheduler-new/presentation/logic/WeekendCalc.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/dateFromPercentage.d.ts +0 -2
- package/dist/components/custom/scheduler-new/presentation/logic/dateFromPercentage.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/eventIsVisible.d.ts +0 -2
- package/dist/components/custom/scheduler-new/presentation/logic/eventIsVisible.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.d.ts +0 -6
- package/dist/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/getDivisions.d.ts +0 -3
- package/dist/components/custom/scheduler-new/presentation/logic/getDivisions.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/getEventSizes.d.ts +0 -6
- package/dist/components/custom/scheduler-new/presentation/logic/getEventSizes.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/getLinesByDivisions.d.ts +0 -4
- package/dist/components/custom/scheduler-new/presentation/logic/getLinesByDivisions.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/getPercentageFromMouseEvent.d.ts +0 -2
- package/dist/components/custom/scheduler-new/presentation/logic/getPercentageFromMouseEvent.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts +0 -3
- package/dist/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.d.ts +0 -4
- package/dist/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/state/ui/SchedulerState.d.ts +0 -12
- package/dist/components/custom/scheduler-new/presentation/state/ui/SchedulerState.d.ts.map +0 -1
- package/dist/components/custom/scheduler-new/presentation/state/ui/WeekRange.d.ts +0 -5
- package/dist/components/custom/scheduler-new/presentation/state/ui/WeekRange.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts +0 -24
- package/dist/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts +0 -86
- package/dist/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/EventRender.d.ts +0 -10
- package/dist/components/custom/scheduler-temporal/components/EventRender.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/ResourceListRender.d.ts +0 -20
- package/dist/components/custom/scheduler-temporal/components/ResourceListRender.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/ResourceRender.d.ts +0 -14
- package/dist/components/custom/scheduler-temporal/components/ResourceRender.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts +0 -11
- package/dist/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts +0 -11
- package/dist/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts +0 -13
- package/dist/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts +0 -11
- package/dist/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts +0 -14
- package/dist/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts +0 -23
- package/dist/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts +0 -8
- package/dist/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts +0 -12
- package/dist/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts +0 -12
- package/dist/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts +0 -10
- package/dist/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts +0 -12
- package/dist/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts +0 -7
- package/dist/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts +0 -10
- package/dist/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts +0 -7
- package/dist/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts +0 -8
- package/dist/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts +0 -15
- package/dist/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts +0 -3
- package/dist/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts +0 -3
- package/dist/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts +0 -13
- package/dist/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts +0 -17
- package/dist/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts +0 -3
- package/dist/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts +0 -4
- package/dist/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts +0 -5
- package/dist/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts +0 -4
- package/dist/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts +0 -3
- package/dist/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts +0 -6
- package/dist/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts +0 -2
- package/dist/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts +0 -3
- package/dist/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts +0 -11
- package/dist/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts +0 -43
- package/dist/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/state/Resource.d.ts +0 -14
- package/dist/components/custom/scheduler-temporal/state/Resource.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/state/State.d.ts +0 -25
- package/dist/components/custom/scheduler-temporal/state/State.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/state/cblEvent.d.ts +0 -18
- package/dist/components/custom/scheduler-temporal/state/cblEvent.d.ts.map +0 -1
- package/dist/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts +0 -7
- package/dist/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts.map +0 -1
- package/dist/components/custom/super-scheduler/PinRowHeader.d.ts +0 -15
- package/dist/components/custom/super-scheduler/PinRowHeader.d.ts.map +0 -1
- package/dist/components/custom/super-scheduler/SuperScheduler.d.ts +0 -25
- package/dist/components/custom/super-scheduler/SuperScheduler.d.ts.map +0 -1
- package/dist/components/custom/super-scheduler/SuperSchedulerEvents.d.ts +0 -13
- package/dist/components/custom/super-scheduler/SuperSchedulerEvents.d.ts.map +0 -1
- package/dist/components/custom/super-scheduler/SuperSchedulerPresenter.d.ts +0 -9
- package/dist/components/custom/super-scheduler/SuperSchedulerPresenter.d.ts.map +0 -1
- package/dist/components/display/data/accordion/CwAccordionContainer.d.ts +0 -14
- package/dist/components/display/data/accordion/CwAccordionContainer.d.ts.map +0 -1
- package/dist/components/display/data/generic_tooltip/CwGenericTooltip.d.ts +0 -15
- package/dist/components/display/data/generic_tooltip/CwGenericTooltip.d.ts.map +0 -1
- package/dist/components/display/data/table/CwTable.d.ts +0 -102
- package/dist/components/display/data/table/CwTable.d.ts.map +0 -1
- package/dist/components/display/graphics/icon/CwIcon.d.ts +0 -15
- package/dist/components/display/graphics/icon/CwIcon.d.ts.map +0 -1
- package/dist/components/display/graphics/loading/CwLoading.d.ts +0 -42
- package/dist/components/display/graphics/loading/CwLoading.d.ts.map +0 -1
- package/dist/components/display/graphics/loading-small/CwLoadingSmall.d.ts +0 -18
- package/dist/components/display/graphics/loading-small/CwLoadingSmall.d.ts.map +0 -1
- package/dist/components/display/text/heading/CwHeadingMain.d.ts +0 -3
- package/dist/components/display/text/heading/CwHeadingMain.d.ts.map +0 -1
- package/dist/components/display/text/heading/CwHeadingSecond.d.ts +0 -3
- package/dist/components/display/text/heading/CwHeadingSecond.d.ts.map +0 -1
- package/dist/components/display/text/label/CwLabel.d.ts +0 -28
- package/dist/components/display/text/label/CwLabel.d.ts.map +0 -1
- package/dist/components/display/text/message/CwMessage.d.ts +0 -31
- package/dist/components/display/text/message/CwMessage.d.ts.map +0 -1
- package/dist/components/display/text/tag/CwChip.d.ts +0 -36
- package/dist/components/display/text/tag/CwChip.d.ts.map +0 -1
- package/dist/components/display/text/tag/CwTag.d.ts +0 -16
- package/dist/components/display/text/tag/CwTag.d.ts.map +0 -1
- package/dist/components/display/text/tooltip/CwTooltip.d.ts +0 -8
- package/dist/components/display/text/tooltip/CwTooltip.d.ts.map +0 -1
- package/dist/components/layout/align/CwAlign.d.ts +0 -54
- package/dist/components/layout/align/CwAlign.d.ts.map +0 -1
- package/dist/components/layout/card/CwCard.d.ts +0 -61
- package/dist/components/layout/card/CwCard.d.ts.map +0 -1
- package/dist/components/layout/card/CwCardList.d.ts +0 -32
- package/dist/components/layout/card/CwCardList.d.ts.map +0 -1
- package/dist/components/layout/dialog/CwDialog.d.ts +0 -28
- package/dist/components/layout/dialog/CwDialog.d.ts.map +0 -1
- package/dist/components/layout/dialog/CwDialogManager.d.ts +0 -11
- package/dist/components/layout/dialog/CwDialogManager.d.ts.map +0 -1
- package/dist/components/layout/list/details/CwExpandable.d.ts +0 -23
- package/dist/components/layout/list/details/CwExpandable.d.ts.map +0 -1
- package/dist/components/layout/list/key-value/CwKeyValueList.d.ts +0 -33
- package/dist/components/layout/list/key-value/CwKeyValueList.d.ts.map +0 -1
- package/dist/components/layout/modal/CwModalReportFunctional.d.ts +0 -15
- package/dist/components/layout/modal/CwModalReportFunctional.d.ts.map +0 -1
- package/dist/components/layout/modal/hover/CwModalHover.d.ts +0 -19
- package/dist/components/layout/modal/hover/CwModalHover.d.ts.map +0 -1
- package/dist/components/layout/modal/legacy/cw_modal.d.ts +0 -22
- package/dist/components/layout/modal/legacy/cw_modal.d.ts.map +0 -1
- package/dist/components/layout/modal/legacy/cw_modal_confirm.d.ts +0 -16
- package/dist/components/layout/modal/legacy/cw_modal_confirm.d.ts.map +0 -1
- package/dist/components/layout/modal/legacy/cw_modal_iframe.d.ts +0 -21
- package/dist/components/layout/modal/legacy/cw_modal_iframe.d.ts.map +0 -1
- package/dist/components/layout/modal/legacy/cw_modal_report.d.ts +0 -32
- package/dist/components/layout/modal/legacy/cw_modal_report.d.ts.map +0 -1
- package/dist/components/layout/table/grouped/CwTableGrouped.d.ts.map +0 -1
- package/dist/components/layout/tabs/CwTabs.d.ts +0 -46
- package/dist/components/layout/tabs/CwTabs.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
import styles from "./cw-generic-tooltip.module.css";
|
|
5
|
+
// Constants moved outside to prevent recreation
|
|
6
|
+
const margin = 16;
|
|
7
|
+
const defaultPosition = "right";
|
|
8
|
+
const positionOrder = ['right', 'bottom', 'left', 'top'];
|
|
9
|
+
// Memoized utility functions to prevent recreation
|
|
10
|
+
const calculatePositionForSide = (position, triggerRect, tooltipRect) => {
|
|
11
|
+
switch (position) {
|
|
12
|
+
case 'left':
|
|
13
|
+
return {
|
|
14
|
+
top: triggerRect.top + (triggerRect.height - tooltipRect.height) / 2,
|
|
15
|
+
left: triggerRect.left - tooltipRect.width - margin
|
|
16
|
+
};
|
|
17
|
+
case 'right':
|
|
18
|
+
return {
|
|
19
|
+
top: triggerRect.top + (triggerRect.height - tooltipRect.height) / 2,
|
|
20
|
+
left: triggerRect.right + margin
|
|
21
|
+
};
|
|
22
|
+
case 'top':
|
|
23
|
+
return {
|
|
24
|
+
top: triggerRect.top - tooltipRect.height - margin,
|
|
25
|
+
left: triggerRect.left + (triggerRect.width - tooltipRect.width) / 2
|
|
26
|
+
};
|
|
27
|
+
case 'bottom':
|
|
28
|
+
return {
|
|
29
|
+
top: triggerRect.bottom + margin,
|
|
30
|
+
left: triggerRect.left + (triggerRect.width - tooltipRect.width) / 2
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
// Optimized hooks
|
|
35
|
+
const useTooltipDelay = (callback, delay) => {
|
|
36
|
+
const timeoutRef = useRef();
|
|
37
|
+
const clearTooltipTimeout = useCallback(() => {
|
|
38
|
+
if (timeoutRef.current) {
|
|
39
|
+
window.clearTimeout(timeoutRef.current);
|
|
40
|
+
timeoutRef.current = undefined;
|
|
41
|
+
}
|
|
42
|
+
}, []);
|
|
43
|
+
const setTooltipTimeout = useCallback(() => {
|
|
44
|
+
clearTooltipTimeout();
|
|
45
|
+
if (delay) {
|
|
46
|
+
timeoutRef.current = window.setTimeout(callback, delay);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
callback();
|
|
50
|
+
}
|
|
51
|
+
}, [callback, delay, clearTooltipTimeout]);
|
|
52
|
+
useEffect(() => clearTooltipTimeout, [clearTooltipTimeout]);
|
|
53
|
+
return { setTooltipTimeout, clearTooltipTimeout };
|
|
54
|
+
};
|
|
55
|
+
const useTooltipPosition = (isVisible, containerRef, preferredPosition, tooltipClassName) => {
|
|
56
|
+
const [tooltipState, setTooltipState] = useState({
|
|
57
|
+
position: { top: 0, left: 0 },
|
|
58
|
+
actualPosition: preferredPosition
|
|
59
|
+
});
|
|
60
|
+
const frameRef = useRef();
|
|
61
|
+
const updatePosition = useCallback(() => {
|
|
62
|
+
if (!isVisible || !containerRef.current)
|
|
63
|
+
return;
|
|
64
|
+
const tooltipElement = document.querySelector(`.${tooltipClassName}`);
|
|
65
|
+
if (!tooltipElement)
|
|
66
|
+
return;
|
|
67
|
+
const triggerRect = containerRef.current.getBoundingClientRect();
|
|
68
|
+
const tooltipRect = tooltipElement.getBoundingClientRect();
|
|
69
|
+
// Try preferred position first
|
|
70
|
+
const position = calculatePositionForSide(preferredPosition, triggerRect, tooltipRect);
|
|
71
|
+
const windowWidth = window.innerWidth;
|
|
72
|
+
const windowHeight = window.innerHeight;
|
|
73
|
+
// Quick bounds check
|
|
74
|
+
if (position.left >= margin &&
|
|
75
|
+
position.top >= margin &&
|
|
76
|
+
position.left + tooltipRect.width <= windowWidth - margin &&
|
|
77
|
+
position.top + tooltipRect.height <= windowHeight - margin) {
|
|
78
|
+
setTooltipState({ position, actualPosition: preferredPosition });
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
// Try other positions if preferred doesn't fit
|
|
82
|
+
for (const pos of positionOrder) {
|
|
83
|
+
if (pos === preferredPosition)
|
|
84
|
+
continue;
|
|
85
|
+
const newPosition = calculatePositionForSide(pos, triggerRect, tooltipRect);
|
|
86
|
+
if (newPosition.left >= margin &&
|
|
87
|
+
newPosition.top >= margin &&
|
|
88
|
+
newPosition.left + tooltipRect.width <= windowWidth - margin &&
|
|
89
|
+
newPosition.top + tooltipRect.height <= windowHeight - margin) {
|
|
90
|
+
setTooltipState({ position: newPosition, actualPosition: pos });
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// Fallback to preferred position if none fit
|
|
95
|
+
setTooltipState({ position, actualPosition: preferredPosition });
|
|
96
|
+
}, [isVisible, preferredPosition, tooltipClassName]);
|
|
97
|
+
useEffect(() => {
|
|
98
|
+
frameRef.current = requestAnimationFrame(updatePosition);
|
|
99
|
+
return () => {
|
|
100
|
+
if (frameRef.current) {
|
|
101
|
+
cancelAnimationFrame(frameRef.current);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}, [updatePosition]);
|
|
105
|
+
return tooltipState;
|
|
106
|
+
};
|
|
107
|
+
// Main component with optimizations
|
|
108
|
+
export const CwGenericTooltip = ({ children, content = null, position = defaultPosition, dissapearsWhenHover = false, hide = false, overlayStyle = {}, showDelay = 0, }) => {
|
|
109
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
110
|
+
const containerRef = useRef(null);
|
|
111
|
+
const { setTooltipTimeout, clearTooltipTimeout } = useTooltipDelay(() => {
|
|
112
|
+
setIsVisible(true);
|
|
113
|
+
}, showDelay);
|
|
114
|
+
const { position: tooltipPosition, actualPosition } = useTooltipPosition(isVisible, containerRef, position, styles["cw-generic-tooltip-content"]);
|
|
115
|
+
// Memoize tooltip content creation
|
|
116
|
+
const tooltipContent = useMemo(() => {
|
|
117
|
+
if (hide || !isVisible || !content)
|
|
118
|
+
return null;
|
|
119
|
+
return createPortal(_jsx("div", { className: styles["cw-generic-tooltip-content"], "data-position": actualPosition, "data-visible": isVisible, style: {
|
|
120
|
+
position: 'fixed',
|
|
121
|
+
top: `${tooltipPosition.top}px`,
|
|
122
|
+
left: `${tooltipPosition.left}px`,
|
|
123
|
+
visibility: tooltipPosition.top === 0 && tooltipPosition.left === 0 ? 'hidden' : 'visible',
|
|
124
|
+
...overlayStyle
|
|
125
|
+
}, onMouseEnter: () => dissapearsWhenHover && setIsVisible(false), children: content }), document.body);
|
|
126
|
+
}, [isVisible, content, actualPosition, tooltipPosition, dissapearsWhenHover, overlayStyle, hide]);
|
|
127
|
+
const handleMouseEnter = useCallback(() => {
|
|
128
|
+
setTooltipTimeout();
|
|
129
|
+
}, [setTooltipTimeout]);
|
|
130
|
+
const handleMouseLeave = useCallback(() => {
|
|
131
|
+
clearTooltipTimeout();
|
|
132
|
+
setIsVisible(false);
|
|
133
|
+
}, [clearTooltipTimeout]);
|
|
134
|
+
return (_jsxs("div", { ref: containerRef, className: styles["cw-generic-tooltip"], onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, style: overlayStyle, children: [tooltipContent, children] }));
|
|
135
|
+
};
|
|
136
|
+
export const _preview = () => {
|
|
137
|
+
return (_jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "1em", padding: "50vh", pointerEvents: "auto" }, children: [_jsx("h3", { children: "Top" }), _jsx(CwGenericTooltip, { content: _jsxs("div", { style: { width: "200px" }, children: [_jsx("button", { children: "Button in tooltip" }), _jsx("p", { children: "Tooltip content" })] }), position: "top", dissapearsWhenHover: true, children: _jsx("div", { children: _jsx("p", { children: "Hover for top tooltip" }) }) }), _jsx("h3", { children: "Right" }), _jsx(CwGenericTooltip, { content: _jsxs("div", { children: [_jsx("button", { children: "Button in tooltip" }), _jsx("p", { children: "Tooltip content" })] }), position: "right", children: _jsx("div", { children: _jsx("p", { children: "Hover for right tooltip" }) }) }), _jsx("h3", { children: "Left" }), _jsx(CwGenericTooltip, { content: _jsxs("div", { children: [_jsx("button", { children: "Button in tooltip" }), _jsx("p", { children: "Tooltip content" })] }), position: "left", children: _jsx("div", { children: _jsx("p", { children: "Hover for left tooltip" }) }) }), _jsx("h3", { children: "Bottom" }), _jsx(CwGenericTooltip, { content: _jsxs("div", { children: [_jsx("button", { children: "Button in tooltip" }), _jsx("p", { children: "Tooltip content" })] }), position: "bottom", children: _jsx("div", { children: _jsx("p", { children: "Hover for bottom tooltip" }) }) })] }));
|
|
138
|
+
};
|
|
@@ -103,5 +103,5 @@ export interface CwTableProps<T = any> {
|
|
|
103
103
|
*
|
|
104
104
|
* @returns React component
|
|
105
105
|
*/
|
|
106
|
-
export declare function CwTable<T = any>({ columns, data, pagination, pageSizeOptions, expandedRowRender, onExpand, className, classNameRow, style, classNameContainer, id, textNoData, rowKey, loading, scrollHeight, stickyHeader, rowSelection
|
|
106
|
+
export declare function CwTable<T = any>({ columns, data, pagination, pageSizeOptions, expandedRowRender, onExpand, className, classNameRow, style, classNameContainer, id, textNoData, rowKey, loading, scrollHeight, stickyHeader, rowSelection }: Readonly<CwTableProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
107
107
|
//# sourceMappingURL=CwTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/data/table/CwTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,MAAM,WAAW,MAAM,CAAC,CAAC,GAAG,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"CwTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/data/table/CwTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,MAAM,WAAW,MAAM,CAAC,CAAC,GAAG,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CAEnB;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACnD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE;QACd,eAAe,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;QAC/B,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;QACnE,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;KAC7B,CAAC;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AAEH,wBAAgB,OAAO,CAAC,CAAC,GAAG,GAAG,EAAE,EAChC,OAAO,EACP,IAAI,EACJ,UAAkB,EAClB,eAAiC,EACjC,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,EAAE,EACF,UAA8C,EAC9C,MAAyB,EACzB,OAAe,EACf,YAAY,EACZ,YAAoB,EACpB,YAAY,EACZ,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,2CA8V3B"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useCallback, useMemo, useState } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* A reusable and customizable table component.
|
|
5
|
+
*
|
|
6
|
+
* @param props - Component props to configure columns, data, styles, pagination, expanded rows, and more.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const columns: Column<User>[] = [
|
|
10
|
+
* {
|
|
11
|
+
* title: 'Name',
|
|
12
|
+
* dataIndex: 'name',
|
|
13
|
+
* key: 'name',
|
|
14
|
+
* sortable: true, // Column is sortable
|
|
15
|
+
* width: 100 // You can define the width of the column
|
|
16
|
+
* },
|
|
17
|
+
* {
|
|
18
|
+
* title: 'Age',
|
|
19
|
+
* dataIndex: 'age',
|
|
20
|
+
* key: 'age',
|
|
21
|
+
* sortable: true,
|
|
22
|
+
* render: (item) => <span>{item.age} years</span> // Custom rendering
|
|
23
|
+
* },
|
|
24
|
+
* {
|
|
25
|
+
* title: 'Address',
|
|
26
|
+
* dataIndex: 'address',
|
|
27
|
+
* key: 'address',
|
|
28
|
+
* render: (item) => (
|
|
29
|
+
* <a href={`https://maps.google.com/?q=${encodeURIComponent(item.address)}`} target="_blank" rel="noreferrer">
|
|
30
|
+
* {item.address}
|
|
31
|
+
* </a>
|
|
32
|
+
* ) // Link rendering
|
|
33
|
+
* }
|
|
34
|
+
* ];
|
|
35
|
+
*
|
|
36
|
+
* const data:User[] = [
|
|
37
|
+
* { key: '1', name: 'Mike', age: 32, address: '10 Downing Street' },
|
|
38
|
+
* { key: '2', name: 'John', age: 42, address: '11 Downing Street' },
|
|
39
|
+
* { key: '3', name: 'Andres', age: 33, address: '12 Downing Street' },
|
|
40
|
+
* { key: '4', name: 'Gabriel', age: 22, address: '13 Downing Street' },
|
|
41
|
+
* { key: '5', name: 'Sergio', age: 47, address: '14 Downing Street' },
|
|
42
|
+
* { key: '6', name: 'Zacarias', age: 61, address: '15 Downing Street' }
|
|
43
|
+
* ];
|
|
44
|
+
*
|
|
45
|
+
* const generateExpandedContent = (record) => (
|
|
46
|
+
* <div>
|
|
47
|
+
* Custom expanded content for {record.name}
|
|
48
|
+
* </div>
|
|
49
|
+
* );
|
|
50
|
+
*
|
|
51
|
+
* <CwTable<User>
|
|
52
|
+
* columns={columns}
|
|
53
|
+
* data={data}
|
|
54
|
+
* pagination={true}
|
|
55
|
+
* pageSizeOptions={[3, 5, 10]} // Optional, defaults to [5, 10, 20, 50]
|
|
56
|
+
* expandedRowRender={generateExpandedContent}
|
|
57
|
+
* onExpand={(item) => console.log('Expanded:', item)}
|
|
58
|
+
* rowKey="key" // Optional, defaults to 'key'
|
|
59
|
+
* textNoData="No data available" // Optional message when no data
|
|
60
|
+
* loading={false} // Optional, shows loading indicator
|
|
61
|
+
* scrollHeight={300} // Optional scroll height, defaults to 300
|
|
62
|
+
* stickyHeader={true} // Optional, makes header sticky on scroll
|
|
63
|
+
* classNameContainer="my-table-wrapper" // Optional wrapper class
|
|
64
|
+
* className="my-table" // Optional table class
|
|
65
|
+
* classNameRow="my-table-row" // Optional class for each row
|
|
66
|
+
* id="custom-table-id" // Optional ID for the container
|
|
67
|
+
* style={{ border: '1px solid #ccc' }} // Optional inline styles
|
|
68
|
+
* />
|
|
69
|
+
*
|
|
70
|
+
* @returns React component
|
|
71
|
+
*/
|
|
72
|
+
export function CwTable({ columns, data, pagination = false, pageSizeOptions = [5, 10, 20, 50], expandedRowRender, onExpand, className, classNameRow, style, classNameContainer, id, textNoData = "No data available at the moment", rowKey = "key", loading = false, scrollHeight, stickyHeader = false, }) {
|
|
73
|
+
const [currentPage, setCurrentPage] = useState(1);
|
|
74
|
+
const [expandedRowKey, setExpandedRowKey] = useState(null);
|
|
75
|
+
const [sortConfig, setSortConfig] = useState({
|
|
76
|
+
key: null,
|
|
77
|
+
direction: "asc"
|
|
78
|
+
});
|
|
79
|
+
const [localItemsPerPage, setLocalItemsPerPage] = useState(pageSizeOptions[0]);
|
|
80
|
+
const [columnWidths, setColumnWidths] = useState(() => columns.reduce((acc, col) => {
|
|
81
|
+
if (col.width)
|
|
82
|
+
acc[col.key] = col.width;
|
|
83
|
+
return acc;
|
|
84
|
+
}, {}));
|
|
85
|
+
const handleItemsPerPageChange = useCallback((e) => {
|
|
86
|
+
setLocalItemsPerPage(parseInt(e.target.value, 10));
|
|
87
|
+
setCurrentPage(1);
|
|
88
|
+
}, []);
|
|
89
|
+
const handleRowExpand = useCallback((item) => {
|
|
90
|
+
const itemKey = item[rowKey];
|
|
91
|
+
setExpandedRowKey((prev) => (prev === itemKey ? null : itemKey));
|
|
92
|
+
onExpand?.(item);
|
|
93
|
+
}, [rowKey, onExpand]);
|
|
94
|
+
const handleSort = useCallback((columnKey) => {
|
|
95
|
+
setSortConfig(prev => {
|
|
96
|
+
if (prev.key !== columnKey)
|
|
97
|
+
return { key: columnKey, direction: "asc" };
|
|
98
|
+
if (prev.direction === "asc")
|
|
99
|
+
return { key: columnKey, direction: "desc" };
|
|
100
|
+
return { key: null, direction: "asc" };
|
|
101
|
+
});
|
|
102
|
+
}, []);
|
|
103
|
+
const sortedData = useMemo(() => {
|
|
104
|
+
if (!data || data.length === 0)
|
|
105
|
+
return [];
|
|
106
|
+
const dataCopy = [...data];
|
|
107
|
+
if (sortConfig.key) {
|
|
108
|
+
dataCopy.sort((a, b) => {
|
|
109
|
+
const aVal = a[sortConfig.key];
|
|
110
|
+
const bVal = b[sortConfig.key];
|
|
111
|
+
return (aVal < bVal ? -1 : aVal > bVal ? 1 : 0) * (sortConfig.direction === "asc" ? 1 : -1);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return dataCopy;
|
|
115
|
+
}, [data, sortConfig]);
|
|
116
|
+
const paginatedData = useMemo(() => {
|
|
117
|
+
if (!sortedData)
|
|
118
|
+
return [];
|
|
119
|
+
if (!pagination)
|
|
120
|
+
return sortedData;
|
|
121
|
+
const start = (currentPage - 1) * localItemsPerPage;
|
|
122
|
+
return sortedData.slice(start, start + localItemsPerPage);
|
|
123
|
+
}, [sortedData, currentPage, localItemsPerPage, pagination]);
|
|
124
|
+
const totalPages = useMemo(() => {
|
|
125
|
+
return pagination ? Math.ceil(sortedData.length / localItemsPerPage) : 1;
|
|
126
|
+
}, [sortedData, localItemsPerPage, pagination]);
|
|
127
|
+
const handlePageChange = (page) => {
|
|
128
|
+
if (page >= 1 && page <= totalPages)
|
|
129
|
+
setCurrentPage(page);
|
|
130
|
+
};
|
|
131
|
+
const startResize = (e, key) => {
|
|
132
|
+
e.preventDefault();
|
|
133
|
+
const startX = e.clientX;
|
|
134
|
+
const startWidth = e.target.parentElement?.offsetWidth || 0;
|
|
135
|
+
const onMouseMove = (moveEvent) => {
|
|
136
|
+
const newWidth = Math.max(startWidth + moveEvent.clientX - startX, 50); // mínimo 50px
|
|
137
|
+
setColumnWidths(prev => ({ ...prev, [key]: newWidth }));
|
|
138
|
+
};
|
|
139
|
+
const onMouseUp = () => {
|
|
140
|
+
window.removeEventListener("mousemove", onMouseMove);
|
|
141
|
+
window.removeEventListener("mouseup", onMouseUp);
|
|
142
|
+
};
|
|
143
|
+
window.addEventListener("mousemove", onMouseMove);
|
|
144
|
+
window.addEventListener("mouseup", onMouseUp);
|
|
145
|
+
};
|
|
146
|
+
const scrollContainerStyle = useMemo(() => {
|
|
147
|
+
if (stickyHeader || scrollHeight) {
|
|
148
|
+
return {
|
|
149
|
+
maxHeight: scrollHeight ?? 300,
|
|
150
|
+
overflowY: "auto"
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
return {}; // sin altura ni scroll
|
|
154
|
+
}, [stickyHeader, scrollHeight]);
|
|
155
|
+
const getColSpan = () => columns.length + (expandedRowRender ? 1 : 0);
|
|
156
|
+
const hasClassNameRow = (item) => {
|
|
157
|
+
return typeof item === 'object' && item !== null && 'classNameRow' in item;
|
|
158
|
+
};
|
|
159
|
+
const renderTableBody = () => {
|
|
160
|
+
if (loading) {
|
|
161
|
+
return (_jsx("tr", { children: _jsx("td", { colSpan: getColSpan(), children: _jsx("div", { children: "Loading data..." }) }) }));
|
|
162
|
+
}
|
|
163
|
+
if (!paginatedData || paginatedData.length === 0) {
|
|
164
|
+
return (_jsx("tr", { children: _jsx("td", { colSpan: getColSpan(), className: "cw-table-cell-empty", style: { textAlign: "center" }, children: textNoData }) }));
|
|
165
|
+
}
|
|
166
|
+
return paginatedData.map(item => {
|
|
167
|
+
const itemKey = item[rowKey];
|
|
168
|
+
if (!itemKey)
|
|
169
|
+
console.warn("Missing row key for item", item);
|
|
170
|
+
return (_jsxs(React.Fragment, { children: [_jsxs("tr", { className: `${classNameRow ?? ""} ${hasClassNameRow(item) ? item.classNameRow : ""}`, children: [expandedRowRender && (_jsx("td", { className: "cw-table-col-action cw-table-col-expand", children: _jsx("button", { onClick: () => handleRowExpand(item), className: `cw-button-icon ${expandedRowKey === itemKey
|
|
171
|
+
? "cwi-chevron-down"
|
|
172
|
+
: "cwi-chevron-right"}` }) })), columns.map(col => (_jsx("td", { className: col.className ?? "", children: col.render ? col.render(item) : col.dataIndex ? String(item[col.dataIndex]) : "" }, `${itemKey}_${col.key}`)))] }), expandedRowRender && expandedRowKey === itemKey && (_jsx("tr", { className: "cw-table-row-expanded", children: _jsx("td", { colSpan: getColSpan(), children: expandedRowRender(item) }) }))] }, String(itemKey)));
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
return (_jsxs("div", { id: id, className: `cw-table-container ${classNameContainer ?? ""}`, style: style, children: [_jsx("div", { style: scrollContainerStyle, children: _jsxs("table", { className: `cw-table ${className ?? ""}`, style: { width: "100%" }, children: [_jsx("thead", { style: stickyHeader
|
|
176
|
+
? { position: "sticky", top: 0, background: "white", zIndex: 2 }
|
|
177
|
+
: undefined, children: _jsxs("tr", { children: [expandedRowRender && _jsx("th", {}), columns.map(col => (_jsxs("th", { onClick: () => col.sortable && col.dataIndex && handleSort(col.dataIndex), className: `${col.className ?? ""} ${sortConfig.key === col.dataIndex
|
|
178
|
+
? sortConfig.direction
|
|
179
|
+
: ""}`.trim(), style: {
|
|
180
|
+
cursor: col.sortable ? "pointer" : "default",
|
|
181
|
+
userSelect: "none",
|
|
182
|
+
width: columnWidths[col.key] ?? col.width,
|
|
183
|
+
...((col.width || columnWidths[col.key]) && {
|
|
184
|
+
minWidth: 50,
|
|
185
|
+
maxWidth: columnWidths[col.key] ?? col.width
|
|
186
|
+
}),
|
|
187
|
+
}, children: [_jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [_jsx("span", { children: col.title }), col.sortable && col.dataIndex && (_jsx("span", { style: { fontSize: "12px", marginLeft: "6px" }, children: sortConfig.key !== col.dataIndex ? "↕" : sortConfig.direction === "asc"
|
|
188
|
+
? "↑"
|
|
189
|
+
: "↓" }))] }), _jsx("span", { onMouseDown: (e) => startResize(e, col.key), className: "th-column-resizer" })] }, col.key)))] }) }), _jsx("tbody", { children: renderTableBody() })] }) }), pagination && totalPages > 1 && (_jsxs("footer", { className: "cw-table-pagination", children: [_jsx("button", { onClick: () => handlePageChange(1), disabled: currentPage === 1 || totalPages === 1, className: "cw-button-icon cwi-chevron-left-double", title: "First" }), _jsx("button", { onClick: () => handlePageChange(currentPage - 1), disabled: currentPage === 1 || totalPages === 1, className: "cw-button-icon cwi-chevron-left", title: "Previous" }), _jsx("input", { type: "number", value: currentPage, onChange: (e) => {
|
|
190
|
+
const value = parseInt(e.target.value, 10);
|
|
191
|
+
if (!isNaN(value))
|
|
192
|
+
handlePageChange(value);
|
|
193
|
+
}, onBlur: (e) => {
|
|
194
|
+
const value = parseInt(e.target.value, 10);
|
|
195
|
+
if (isNaN(value) || value < 1 || value > totalPages) {
|
|
196
|
+
handlePageChange(1);
|
|
197
|
+
}
|
|
198
|
+
}, min: 1, max: totalPages, style: {
|
|
199
|
+
width: "4rem",
|
|
200
|
+
textAlign: "center",
|
|
201
|
+
marginRight: "0.5rem"
|
|
202
|
+
} }), "of ", totalPages, _jsx("button", { onClick: () => handlePageChange(currentPage + 1), disabled: currentPage === totalPages || totalPages === 1, className: "cw-button-icon cwi-chevron-right", title: "Next" }), _jsx("button", { onClick: () => handlePageChange(totalPages), disabled: currentPage === totalPages || totalPages === 1, className: "cw-button-icon cwi-chevron-right-double", title: "Last" }), _jsx("select", { value: localItemsPerPage, onChange: handleItemsPerPageChange, style: { marginLeft: "1rem" }, children: pageSizeOptions.map(size => (_jsxs("option", { value: size, children: [size, " / page"] }, size))) })] }))] }));
|
|
203
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface SortableColumn<T = any> {
|
|
3
|
+
/** Header label */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Key of the data field to display (skipped when `render` is provided) */
|
|
6
|
+
dataIndex?: keyof T;
|
|
7
|
+
/** Unique column identifier */
|
|
8
|
+
key: string;
|
|
9
|
+
/** Custom cell renderer — receives the full row item */
|
|
10
|
+
render?: (item: T) => React.ReactNode;
|
|
11
|
+
/** Additional CSS class for <th> and <td> */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Fixed column width */
|
|
14
|
+
width?: number | string;
|
|
15
|
+
}
|
|
16
|
+
export interface CwSortableTableProps<T = any> {
|
|
17
|
+
/** Column definitions */
|
|
18
|
+
columns: SortableColumn<T>[];
|
|
19
|
+
/** Data array — each item must have the field specified in `rowKey` */
|
|
20
|
+
data: T[];
|
|
21
|
+
/**
|
|
22
|
+
* Field used as unique row identifier.
|
|
23
|
+
* @default "key"
|
|
24
|
+
*/
|
|
25
|
+
rowKey?: keyof T;
|
|
26
|
+
/**
|
|
27
|
+
* Async callback fired when the user clicks Save.
|
|
28
|
+
* Receives the full re-ordered array — persist it however you need.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* onReorder={async (newOrder) => {
|
|
32
|
+
* await Promise.all(newOrder.map((item, i) => api.updateOrder(item.id, i)));
|
|
33
|
+
* }}
|
|
34
|
+
*/
|
|
35
|
+
onReorder: (newData: T[]) => Promise<void>;
|
|
36
|
+
/** Show a loading skeleton instead of rows */
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
/** Message shown when data is empty */
|
|
39
|
+
textNoData?: string;
|
|
40
|
+
/** CSS class for the outer container */
|
|
41
|
+
className?: string;
|
|
42
|
+
/** CSS class for the <table> element */
|
|
43
|
+
tableClassName?: string;
|
|
44
|
+
/** Constrain height and enable vertical scroll */
|
|
45
|
+
maxHeight?: number | string;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to show the drag handle column.
|
|
48
|
+
* @default true
|
|
49
|
+
*/
|
|
50
|
+
showHandle?: boolean;
|
|
51
|
+
/** Optional inline styles for the outer container */
|
|
52
|
+
style?: React.CSSProperties;
|
|
53
|
+
/** Label for the Save button. @default "Save order" */
|
|
54
|
+
saveLabel?: string;
|
|
55
|
+
/** Label for the Discard button. @default "Discard" */
|
|
56
|
+
discardLabel?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* CwSortableTable
|
|
60
|
+
*
|
|
61
|
+
* A table with drag-and-drop row reordering and save/discard support.
|
|
62
|
+
* Shares visual styles with CwTable but is intentionally simpler:
|
|
63
|
+
* no column sorting, no pagination.
|
|
64
|
+
*
|
|
65
|
+
* When the user reorders rows, changes are held locally until they
|
|
66
|
+
* click Save. A save bar appears automatically when there are pending changes.
|
|
67
|
+
*
|
|
68
|
+
* Follows the same pattern as CwSortableList:
|
|
69
|
+
* - All rows are draggable — the handle is visual only
|
|
70
|
+
* - Reorder is calculated in onDragEnd using lastValidDropIndex
|
|
71
|
+
* - draggedItem is tracked in state, not via dataTransfer
|
|
72
|
+
*/
|
|
73
|
+
export declare function CwSortableTable<T = any>({ columns, data, rowKey, onReorder, loading, textNoData, className, tableClassName, maxHeight, showHandle, style, saveLabel, discardLabel, }: Readonly<CwSortableTableProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
//# sourceMappingURL=CwSortableTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwSortableTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/data/table_sortable/CwSortableTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,GAAG;IACtC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;IACpB,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACtC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAID,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,GAAG;IAC5C,yBAAyB;IACzB,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7B,uEAAuE;IACvE,IAAI,EAAE,CAAC,EAAE,CAAC;IACV;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IACjB;;;;;;;;OAQG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AA4BD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,CAAC,GAAG,GAAG,EAAE,EACxC,OAAO,EACP,IAAI,EACJ,MAAyB,EACzB,SAAS,EACT,OAAe,EACf,UAAgC,EAChC,SAAS,EACT,cAAc,EACd,SAAS,EACT,UAAiB,EACjB,KAAK,EACL,SAAwB,EACxB,YAAwB,GACxB,EAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,2CAiMnC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface SortableTableDragState {
|
|
2
|
+
/** Index of the row currently being dragged (-1 if none) */
|
|
3
|
+
dragSourceIndex: number;
|
|
4
|
+
/** Index where the drop indicator should appear (-1 if none) */
|
|
5
|
+
dropTargetIndex: number;
|
|
6
|
+
}
|
|
7
|
+
export interface UseSortableTableReturn<T> {
|
|
8
|
+
/** Current ordered items */
|
|
9
|
+
items: T[];
|
|
10
|
+
/** Current drag state (for rendering drop indicators) */
|
|
11
|
+
dragState: SortableTableDragState;
|
|
12
|
+
/** Whether there are unsaved reorder changes */
|
|
13
|
+
hasChanges: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Call this after each drag-and-drop with the already-reordered array.
|
|
16
|
+
* The hook just stores it — reorder logic lives in the component, same pattern as useSortableList.
|
|
17
|
+
*/
|
|
18
|
+
handleReorder: (newItems: T[]) => void;
|
|
19
|
+
/** Save current order — receives an async callback to persist the data */
|
|
20
|
+
handleSave: (onSave: (items: T[]) => Promise<void>) => Promise<void>;
|
|
21
|
+
/** Discard changes and restore original order */
|
|
22
|
+
handleDiscard: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Hook that provides state management for CwSortableTable.
|
|
26
|
+
*
|
|
27
|
+
* Follows the same pattern as useSortableList:
|
|
28
|
+
* - The hook only manages STATE (items, hasChanges, save, discard)
|
|
29
|
+
* - The component manages INTERACTION (drag, drop, calculating new order)
|
|
30
|
+
* - handleReorder receives the already-reordered array and just stores it
|
|
31
|
+
* - Changes are only persisted when handleSave is called
|
|
32
|
+
* - handleDiscard restores the original order
|
|
33
|
+
*
|
|
34
|
+
* @param initialItems - The initial array of items to display
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* const { items, hasChanges, handleReorder, handleSave, handleDiscard } = useSortableTable(data);
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare function useSortableTable<T>(initialItems: T[]): UseSortableTableReturn<T>;
|
|
42
|
+
//# sourceMappingURL=useSortableTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSortableTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/data/table_sortable/useSortableTable.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACtC,4DAA4D;IAC5D,eAAe,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,eAAe,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACxC,4BAA4B;IAC5B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,yDAAyD;IACzD,SAAS,EAAE,sBAAsB,CAAC;IAClC,gDAAgD;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,aAAa,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACvC,0EAA0E;IAC1E,UAAU,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,iDAAiD;IACjD,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EACjC,YAAY,EAAE,CAAC,EAAE,GACf,sBAAsB,CAAC,CAAC,CAAC,CA8C3B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type CSSProperties, type FC, type ReactNode } from "react";
|
|
2
|
+
interface CwTooltipProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
content?: ReactNode;
|
|
5
|
+
dissapearsWhenHover?: boolean;
|
|
6
|
+
hide?: boolean;
|
|
7
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
8
|
+
overlayStyle?: CSSProperties;
|
|
9
|
+
showDelay?: number;
|
|
10
|
+
displayInline?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Tooltip component backed by the global CwTooltipManager singleton.
|
|
14
|
+
* More performant than CwGenericTooltip for high-density scenarios (e.g. schedulers)
|
|
15
|
+
* as it shares a single DOM portal across all instances.
|
|
16
|
+
*
|
|
17
|
+
* Self-initializes the Manager if not already mounted via ensureTooltipManager().
|
|
18
|
+
* Drop-in replacement for CwGenericTooltip with the same API.
|
|
19
|
+
*
|
|
20
|
+
* @see CwTooltipManager
|
|
21
|
+
* @see CwGenericTooltip
|
|
22
|
+
*/
|
|
23
|
+
export declare const CwTooltipNew: FC<CwTooltipProps>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=CwTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwTooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/data/tooltip_manager/CwTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,aAAa,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKpG,UAAU,cAAc;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/C,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,cAAc,CAgF3C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TooltipPosition = "top" | "bottom" | "left" | "right";
|
|
3
|
+
export declare const showTooltip: (content: React.ReactNode, triggerElement: HTMLElement, position?: TooltipPosition, dissapearsWhenHover?: boolean) => void;
|
|
4
|
+
export declare const hideTooltip: (delay?: number) => void;
|
|
5
|
+
export declare const ensureTooltipManager: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Global tooltip renderer. Manages a single portal instance in the DOM,
|
|
8
|
+
* shared across all CwTooltipNew instances for optimal performance.
|
|
9
|
+
*
|
|
10
|
+
* Mount once at the app root, or let CwTooltipNew handle it automatically
|
|
11
|
+
* via ensureTooltipManager().
|
|
12
|
+
*
|
|
13
|
+
* @see CwTooltipNew
|
|
14
|
+
* @see showTooltip
|
|
15
|
+
* @see hideTooltip
|
|
16
|
+
*/
|
|
17
|
+
export declare const CwTooltipManager: React.FC;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=CwTooltipManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwTooltipManager.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/data/tooltip_manager/CwTooltipManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAMzF,KAAK,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AA4B3D,eAAO,MAAM,WAAW,GACvB,SAAS,KAAK,CAAC,SAAS,EACxB,gBAAgB,WAAW,EAC3B,WAAU,eAAyB,EACnC,sBAAqB,OAAe,SAgBpC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAO,MAAY,SAa9C,CAAC;AAkCF,eAAO,MAAM,oBAAoB,YAQhC,CAAC;AAGF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAmKpC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Icon component that supports both FontAwesome 4 and cwellt icon font
|
|
4
|
+
* @example
|
|
5
|
+
* <CwIcon iconId="house" /> // Uses cwellt icon font
|
|
6
|
+
* <CwIcon iconId="house" source="fontawesome" /> // Uses FontAwesome
|
|
7
|
+
*/
|
|
8
|
+
export function CwIcon(props) {
|
|
9
|
+
const { iconId, source = 'cwellt', color, size, ...iconProps } = props;
|
|
10
|
+
const getClassName = (baseClass) => {
|
|
11
|
+
return [
|
|
12
|
+
baseClass,
|
|
13
|
+
color && `cw-color-${color}`,
|
|
14
|
+
size && `cw-font-size-${size}`
|
|
15
|
+
].filter(Boolean).join(' ');
|
|
16
|
+
};
|
|
17
|
+
// Return appropriate icon based on source
|
|
18
|
+
if (source === 'fontawesome') {
|
|
19
|
+
return _jsx("span", { ...iconProps, className: getClassName(`fa fa-${iconId}`) });
|
|
20
|
+
}
|
|
21
|
+
// Use custom icon font
|
|
22
|
+
return _jsx("span", { ...iconProps, className: getClassName(`cwi-icons cwi-${iconId}`) });
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './cw-loading.css';
|
|
3
|
+
/**
|
|
4
|
+
* CwLoading
|
|
5
|
+
*
|
|
6
|
+
* A versatile loading component that shows a spinner with optional text
|
|
7
|
+
* and disables the wrapped content while in loading state.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* // Basic usage
|
|
11
|
+
* <CwLoading isLoading={isSubmitting}>
|
|
12
|
+
* <form>...</form>
|
|
13
|
+
* </CwLoading>
|
|
14
|
+
*
|
|
15
|
+
* // With custom text and size
|
|
16
|
+
* <CwLoading
|
|
17
|
+
* isLoading={isLoading}
|
|
18
|
+
* text="Please wait..."
|
|
19
|
+
* size="large"
|
|
20
|
+
* >
|
|
21
|
+
* <UserProfile />
|
|
22
|
+
* </CwLoading>
|
|
23
|
+
*/
|
|
24
|
+
export function CwLoading({ isLoading = false, text = '', size = 'regular', iconPosition = 'outside', iconName = 'cwi-plane-solid', animation = 'spin', children }) {
|
|
25
|
+
const iconClasses = `cwi-icons ${iconName || ''}`;
|
|
26
|
+
return (_jsxs("div", { "aria-busy": isLoading, className: isLoading ? 'cw-loading-container' : '', "data-children": !!children, children: [isLoading && (_jsxs("div", { className: "cw-loading-content", "data-size": size, "data-animation": animation, children: [_jsx("div", { className: "cw-loading", "data-icon-position": iconPosition, children: _jsx("span", { className: iconClasses }) }), text && (_jsx("p", { children: text }))] })), _jsx("div", { className: isLoading ? 'cw-loading-disabled-content' : '', children: children })] }));
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated since may 2025. Use <CwLoading size="small"> instead.
|
|
4
|
+
*
|
|
5
|
+
* This component will be removed in a future release.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* // Instead of:
|
|
9
|
+
* <CwLoadingSmall />
|
|
10
|
+
*
|
|
11
|
+
* // Use:
|
|
12
|
+
* <CwLoading size="small" />
|
|
13
|
+
*/
|
|
14
|
+
export function CwLoadingSmall(CwelltLoadingAppointements) {
|
|
15
|
+
return (_jsx("div", { children: CwelltLoadingAppointements.isLoading === true ? (
|
|
16
|
+
// * Show loading appointment
|
|
17
|
+
_jsx("div", { className: "cw-loading-container", children: _jsx("div", { className: "cw-loading" }) })) : (
|
|
18
|
+
// Show empty div
|
|
19
|
+
_jsx("div", {})) }));
|
|
20
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function CwHeadingMain(props) {
|
|
3
|
+
const { children, ...headingProps } = props;
|
|
4
|
+
return (_jsx("div", { className: "cw-heading", children: _jsx("h2", { className: "cwHeading_desc", ...headingProps, children: children }) }));
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function CwHeadingSecond(props) {
|
|
3
|
+
const { children, ...headingProps } = props;
|
|
4
|
+
return (_jsx("div", { className: "cw-heading", children: _jsx("h3", { className: "cwHeading_desc", ...headingProps, children: children }) }));
|
|
5
|
+
}
|