@cwellt_software/cwellt-reactjs-lib 1.1.6 → 1.1.7
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/index.cjs.js +1314 -316
- package/dist/index.css +2 -2
- package/dist/index.d.ts +235 -6
- package/dist/index.es.js +1310 -316
- package/dist/src/common/classes/CwSelectList.js +12 -0
- package/dist/src/common/classes/CwSelectListItems.js +14 -0
- 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.js +20 -0
- package/dist/src/common/functions/useSingleAndDoubleClicks.js +28 -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/CwCheckbox.js +15 -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.js +298 -0
- 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.js +36 -0
- 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.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 +42 -0
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts +63 -0
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts +47 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts +46 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts +38 -0
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/dateRangePresets.d.ts +19 -0
- package/dist/src/components/control/input/new-dates/dateRangePresets.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.js +31 -0
- 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.js +240 -0
- package/dist/src/components/custom/scheduler/CwSchedulerComp.js +211 -0
- 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.js +12 -0
- package/dist/src/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.js +5 -0
- package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDates.js +15 -0
- package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.js +5 -0
- package/dist/src/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.js +43 -0
- 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.js +20 -0
- package/dist/src/components/custom/scheduler/logic/dates/listOfDatesToWeeks.js +55 -0
- package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisionType.js +13 -0
- package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisions.js +16 -0
- package/dist/src/components/custom/scheduler/logic/filtering/filterEvents.js +33 -0
- package/dist/src/components/custom/scheduler/logic/filtering/filterResources.js +14 -0
- 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.js +14 -0
- package/dist/src/components/custom/scheduler/logic/pixels/getPixelsForEvent.js +32 -0
- package/dist/src/components/custom/scheduler/logic/pixels/heightScheduler.js +14 -0
- package/dist/src/components/custom/scheduler/logic/pixels/heightSchedulerPinned.js +9 -0
- package/dist/src/components/custom/scheduler/logic/state_handle/doubleClickOnResource.js +5 -0
- package/dist/src/components/custom/scheduler/logic/state_handle/handleResourceChange.js +11 -0
- package/dist/src/components/custom/scheduler/logic/state_handle/onDragOver.js +9 -0
- package/dist/src/components/custom/scheduler/logic/state_handle/onDropEventToResource.js +3 -0
- 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.js +8 -0
- package/dist/src/components/custom/scheduler/logic/ui/getEventsOfResource.js +45 -0
- package/dist/src/components/custom/scheduler/logic/ui/getTimeHeaders.js +35 -0
- package/dist/src/components/custom/scheduler/logic/ui/isAllowedToMove.js +19 -0
- 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.js +123 -0
- package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.d.ts +2 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.js +118 -0
- 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/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.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.js +176 -0
- 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.js +43 -0
- 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.js +7 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.js +113 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.js +21 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getEventSizes.js +30 -0
- 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.js +32 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.js +12 -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/Resource.js +18 -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.map +1 -1
- package/dist/src/components/custom/super-scheduler/PinRowHeader.js +53 -0
- 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.js +138 -0
- 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/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.js +78 -0
- 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.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.js +255 -0
- 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.d.ts +2 -3
- package/dist/src/components/layout/list/key-value/CwKeyValueList.d.ts.map +1 -1
- package/dist/src/components/layout/list/key-value/CwKeyValueList.js +23 -0
- 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/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.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.js +26 -0
- package/dist/src/components/layout/table/grouped/CwTableGrouped.js +70 -0
- package/dist/src/components/layout/tabs/CwTabs.js +53 -0
- package/dist/src/dev/palette.d.ts +1 -1
- package/dist/src/dev/palette.d.ts.map +1 -1
- package/dist/src/index.d.ts +6 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +187 -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/package.json +6 -2
- package/dist/assets/asset-DnHaq7m- +0 -50
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-full-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-grad-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-opsz-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-slnt-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-standard-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-wdth-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-xopq-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-xtra-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-yopq-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytas-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytde-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytfi-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytlc-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytuc-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-full-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-grad-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-opsz-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-slnt-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-standard-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-wdth-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-wght-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-xopq-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-xtra-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-yopq-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytas-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytde-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytfi-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytlc-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytuc-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-full-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-grad-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-opsz-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-slnt-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-standard-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-wdth-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-wght-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-xopq-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-xtra-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-yopq-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytas-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytde-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytfi-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytlc-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytuc-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-full-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-grad-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-opsz-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-slnt-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-standard-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-wdth-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-wght-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-xopq-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-xtra-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-yopq-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytas-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytde-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytfi-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytlc-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytuc-normal.woff2 +0 -0
- package/dist/content/icons/cw-icons/css/cw-icons.css +0 -2784
- package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.svg +0 -38
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.svg +0 -29
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.svg +0 -12
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.svg +0 -12
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.svg +0 -26
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.svg +0 -13
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.svg +0 -29
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.svg +0 -29
- package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.svg +0 -17
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.svg +0 -20
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.svg +0 -12
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.svg +0 -20
- package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.svg +0 -12
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.svg +0 -14
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.svg +0 -38
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.svg +0 -17
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.svg +0 -13
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.svg +0 -32
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.svg +0 -12
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.svg +0 -158
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.svg +0 -18
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.svg +0 -62
- package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.svg +0 -43
- package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.svg +0 -49
- package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.svg +0 -41
- package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.svg +0 -41
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.svg +0 -12
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.svg +0 -17
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.svg +0 -11
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.svg +0 -12
- package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.svg +0 -17
- package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.svg +0 -50
- package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.woff2 +0 -0
- package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.eot +0 -0
- package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.svg +0 -17
- package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.ttf +0 -0
- package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.woff +0 -0
- package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.woff2 +0 -0
- package/dist/content/icons/font-awesome/webfonts/fa-brands-400.ttf +0 -0
- package/dist/content/icons/font-awesome/webfonts/fa-regular-400.ttf +0 -0
- package/dist/content/icons/font-awesome/webfonts/fa-solid-900.ttf +0 -0
- package/dist/content/icons/font-awesome/webfonts/fa-v4compatibility.ttf +0 -0
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm.js +0 -4836
- package/dist/src/common/functions/reactor.d.ts +0 -2
- package/dist/src/common/functions/reactor.d.ts.map +0 -1
- package/dist/src/components/control/input/chipper/CwChip.d.ts +0 -12
- package/dist/src/components/control/input/chipper/CwChip.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/components/ClearSchedulerButton.d.ts +0 -8
- package/dist/src/components/custom/scheduler/components/ClearSchedulerButton.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/logic/filtering/filterAndProcessResources.d.ts +0 -14
- package/dist/src/components/custom/scheduler/logic/filtering/filterAndProcessResources.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/logic/pixels/calculateMaxPxFromDateRange.d.ts +0 -2
- package/dist/src/components/custom/scheduler/logic/pixels/calculateMaxPxFromDateRange.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/handleDateChange.d.ts +0 -5
- package/dist/src/components/custom/scheduler/logic/state_handle/handleDateChange.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/handlePropChanges.d.ts +0 -5
- package/dist/src/components/custom/scheduler/logic/state_handle/handlePropChanges.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/onResizeEvent.d.ts +0 -3
- package/dist/src/components/custom/scheduler/logic/state_handle/onResizeEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/logic/ui/getHasPropsChanged.d.ts +0 -3
- package/dist/src/components/custom/scheduler/logic/ui/getHasPropsChanged.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/logic/ui/shouldTriggerScroll.d.ts +0 -3
- package/dist/src/components/custom/scheduler/logic/ui/shouldTriggerScroll.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler/state/EventProps.d.ts +0 -7
- package/dist/src/components/custom/scheduler/state/EventProps.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgrounEvent.d.ts +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgrounEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/cancellablePromise.d.ts +0 -7
- package/dist/src/components/custom/scheduler-new/presentation/components/row/cancellablePromise.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/useCancellablePromise.d.ts +0 -7
- package/dist/src/components/custom/scheduler-new/presentation/components/row/useCancellablePromise.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsByResource.d.ts +0 -5
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsByResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/external/Event.d.ts +0 -9
- package/dist/src/components/custom/scheduler-new/presentation/state/external/Event.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/external/Row.d.ts +0 -5
- package/dist/src/components/custom/scheduler-new/presentation/state/external/Row.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/EventSideDragState.d.ts +0 -6
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/EventSideDragState.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/HeaderDivision.d.ts +0 -5
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/HeaderDivision.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerEventState.d.ts +0 -14
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerEventState.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerHeaderState.d.ts +0 -11
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerHeaderState.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerRow.d.ts +0 -8
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerRow.d.ts.map +0 -1
- package/dist/test/components/custom/newScheduler/presentation/logic/getDefaultDivisions.test.d.ts.map +0 -1
- package/dist/test/components/custom/scheduler/calculateMaxPxFromDateRange.test.d.ts +0 -2
- package/dist/test/components/custom/scheduler/calculateMaxPxFromDateRange.test.d.ts.map +0 -1
- package/dist/test/components/custom/scheduler/filterEvents.test.d.ts.map +0 -1
- package/dist/test/components/custom/scheduler/shouldTriggerScroll.test.d.ts.map +0 -1
- package/dist/test/example.test.d.ts +0 -1
- package/dist/test/example.test.d.ts.map +0 -1
- /package/dist/src/{components/custom/scheduler-new/presentation/TestScheduler.d.ts → common/interfaces/CwSelectListProps.js} +0 -0
- /package/dist/{test/components/custom/newScheduler/presentation/logic/getDefaultDivisions.test.d.ts → src/components/custom/scheduler-new/presentation/components/header/SchedulerHeaderState.js} +0 -0
- /package/dist/{test/components/custom/newScheduler/presentation/logic/hoursBetween.test.d.ts → src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.js} +0 -0
- /package/dist/{test/components/custom/newScheduler/presentation/logic/weekendCalc.test.d.ts → src/components/custom/scheduler-new/presentation/state/ui/WeekRange.js} +0 -0
- /package/dist/{test/components/custom/scheduler/filterEvents.test.d.ts → src/components/custom/scheduler-temporal/state/CwSchedulerProps.js} +0 -0
- /package/dist/{test/components/custom/scheduler/shouldTriggerScroll.test.d.ts → src/components/custom/scheduler-temporal/state/State.js} +0 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CblDragAndDrop } from "../state/CblDragAndDrop";
|
|
3
|
+
const BIRTHDATE = 15;
|
|
4
|
+
const NOT_WORKING = 16;
|
|
5
|
+
const REST_TIME = 10;
|
|
6
|
+
const MAX_FLIGHT_DUTY_PERIOD = 11;
|
|
7
|
+
const DUTY_REGULATION = 20;
|
|
8
|
+
const unHandleableEvents = [REST_TIME, MAX_FLIGHT_DUTY_PERIOD, NOT_WORKING, DUTY_REGULATION];
|
|
9
|
+
const getEventStyle = (event, reslTime) => {
|
|
10
|
+
const baseStyle = {
|
|
11
|
+
left: event.leftPx,
|
|
12
|
+
width: event.width,
|
|
13
|
+
top: event.top,
|
|
14
|
+
overflow: "hidden",
|
|
15
|
+
zIndex: event.isFullHeight ? 4 : 5,
|
|
16
|
+
};
|
|
17
|
+
if (event.data.eventType === BIRTHDATE) {
|
|
18
|
+
return {
|
|
19
|
+
...baseStyle,
|
|
20
|
+
height: event.isFullHeight ? "100%" : "auto",
|
|
21
|
+
marginTop: event.isFullHeight ? -1 * event.top : 0,
|
|
22
|
+
pointerEvents: "none",
|
|
23
|
+
borderBottom: "solid 1px rgba(0, 0, 0, 0.4)",
|
|
24
|
+
backgroundColor: event.data.category.color || "orange",
|
|
25
|
+
display: "flex",
|
|
26
|
+
opacity: 0.3,
|
|
27
|
+
alignItems: "flex-end",
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
if ([REST_TIME, MAX_FLIGHT_DUTY_PERIOD, DUTY_REGULATION].includes(event.data.eventType)) {
|
|
31
|
+
return {
|
|
32
|
+
...baseStyle,
|
|
33
|
+
zIndex: event.isFullHeight ? 4 : 6,
|
|
34
|
+
marginTop: event.isFullHeight ? -1 * event.top : 0,
|
|
35
|
+
borderRadius: "0px",
|
|
36
|
+
backgroundColor: event.data.category.color || "grey",
|
|
37
|
+
opacity: 0.3,
|
|
38
|
+
borderBottom: event.data.eventType === DUTY_REGULATION ? "solid 1px rgba(0, 0, 0, 0.4)" : "",
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
...baseStyle,
|
|
43
|
+
height: event.isFullHeight ? "100%" : "auto",
|
|
44
|
+
marginTop: event.isFullHeight ? -1 * event.top : 0,
|
|
45
|
+
borderRadius: reslTime <= 0.99 ? "3px" : "5px",
|
|
46
|
+
minWidth: reslTime <= 1.5 ? "5px" : "",
|
|
47
|
+
maxWidth: reslTime <= 1.5 ? "25px" : "",
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export const EventRender = ({ event, schedulerProps }) => {
|
|
51
|
+
const dateStart = new Date(event.data.start);
|
|
52
|
+
const dateEnd = new Date(event.data.end);
|
|
53
|
+
const reslTime = (dateEnd.getTime() - dateStart.getTime()) / 3600000;
|
|
54
|
+
const eventStyle = getEventStyle(event, reslTime);
|
|
55
|
+
const onClickEvent = (e) => {
|
|
56
|
+
if (!unHandleableEvents.includes(event.data.eventType)) {
|
|
57
|
+
e.stopPropagation();
|
|
58
|
+
const props = schedulerProps;
|
|
59
|
+
props.scheduler_handleCblEventClick.call(props.parent, event, schedulerProps.id);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const onRightClickEvent = (e) => {
|
|
63
|
+
if (!unHandleableEvents.includes(event.data.eventType)) {
|
|
64
|
+
e.stopPropagation();
|
|
65
|
+
const props = schedulerProps;
|
|
66
|
+
if (props.scheduler_handleCblEventClickRight) {
|
|
67
|
+
props.scheduler_handleCblEventClickRight.call(props.parent, event, schedulerProps.id);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const safeHandleDragStart = (e, isLeft, isRight) => {
|
|
72
|
+
if (!unHandleableEvents.includes(event.data.eventType)) {
|
|
73
|
+
handleDragStart(e, isLeft, isRight);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const handleDragStart = (e, isResizeFromStart, isResizeFromEnd) => {
|
|
77
|
+
if (!unHandleableEvents.includes(event.data.eventType)) {
|
|
78
|
+
[].forEach.call(document.querySelectorAll(".ant-tooltip"), function (el) {
|
|
79
|
+
el.style.visibility = "hidden";
|
|
80
|
+
});
|
|
81
|
+
// We don't know in which case is necessary
|
|
82
|
+
if (e.target !== e.currentTarget) {
|
|
83
|
+
// e.preventDefault();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const isResize = isResizeFromStart || isResizeFromEnd;
|
|
87
|
+
const isAllowed = !event.isReadOnly && (isResize ? event.isResizable : event.isDraggable);
|
|
88
|
+
if (!isAllowed) {
|
|
89
|
+
e.preventDefault();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const cblDragNDrop = new CblDragAndDrop(schedulerProps.id, null, [event], null, isResizeFromStart, isResizeFromEnd);
|
|
93
|
+
if (!isResize) {
|
|
94
|
+
e.dataTransfer.dropEffect = e.ctrlKey ? "copy" : "link";
|
|
95
|
+
}
|
|
96
|
+
e.dataTransfer.setData("data", JSON.stringify(cblDragNDrop));
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const handleDoubleClick = (e) => {
|
|
100
|
+
if (!unHandleableEvents.includes(event.data.eventType)) {
|
|
101
|
+
e.preventDefault();
|
|
102
|
+
e.stopPropagation();
|
|
103
|
+
const props = schedulerProps;
|
|
104
|
+
props.scheduler_handleCblEventDoubleClick.call(props.parent, event, schedulerProps.id);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const onClickContextMenu = (e) => {
|
|
108
|
+
if (!unHandleableEvents.includes(event.data.eventType)) {
|
|
109
|
+
const props = schedulerProps;
|
|
110
|
+
if (props.scheduler_handleOnClickEventContextMenu) {
|
|
111
|
+
props.scheduler_handleOnClickEventContextMenu(e, event);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const renderBirthdayEvent = () => (_jsxs("div", { className: `fc-timeline-event cwellt_timeline_event cwellt_event_bday ${event.selected ? "cblEventSelected" : ""}`, style: eventStyle, children: [_jsx("span", { className: "cwi-icons cwi-birthday", style: { visibility: "visible" } }), event.data.subject && _jsx("span", { style: { lineHeight: "1em" }, children: event.data.subject })] }, event.id));
|
|
116
|
+
const renderRegularEvent = () => (_jsxs("div", { draggable: ![10, 11, 16, 20, 21].includes(event.data.eventType), className: "fc-timeline-event cwellt_timeline_event cwellt_timeline_event_opstool " +
|
|
117
|
+
(event.selected === true ? "cblEventSelected " : "") +
|
|
118
|
+
(event.data.eventType === REST_TIME ||
|
|
119
|
+
event.data.eventType === MAX_FLIGHT_DUTY_PERIOD ||
|
|
120
|
+
event.data.eventType === DUTY_REGULATION
|
|
121
|
+
? " cwellt_event_bhnd_appt "
|
|
122
|
+
: " "), style: eventStyle, onClick: onClickEvent, onContextMenu: onRightClickEvent, onDragStart: (e) => safeHandleDragStart(e, false, false), onDoubleClick: handleDoubleClick, children: [schedulerProps.scheduler_handleCblEventResize &&
|
|
123
|
+
!event.isReadOnly &&
|
|
124
|
+
!unHandleableEvents.includes(event.data.eventType) && (_jsx("span", { draggable: true, onDragStart: (e) => handleDragStart(e, true, false), style: {
|
|
125
|
+
position: "absolute",
|
|
126
|
+
cursor: "e-resize",
|
|
127
|
+
zIndex: 10,
|
|
128
|
+
left: "0",
|
|
129
|
+
border: "solid 1px rgba(46,49,49,0.5)",
|
|
130
|
+
}, children: "\u200B" })), _jsx(schedulerProps.cblEventComp, { cblEvent: event, handleOnClickEventContextMenu: onClickContextMenu }, event.id), schedulerProps.scheduler_handleCblEventResize &&
|
|
131
|
+
!event.isReadOnly &&
|
|
132
|
+
!unHandleableEvents.includes(event.data.eventType) && (_jsx("span", { draggable: true, onDragStart: (e) => handleDragStart(e, false, true), style: {
|
|
133
|
+
position: "absolute",
|
|
134
|
+
right: "0",
|
|
135
|
+
cursor: "e-resize",
|
|
136
|
+
zIndex: 10,
|
|
137
|
+
border: "solid 1px rgba(46,49,49,0.5)",
|
|
138
|
+
marginTop: "-25px",
|
|
139
|
+
}, children: "\u200B" }))] }, event.id));
|
|
140
|
+
const render = event.data.eventType === BIRTHDATE ? renderBirthdayEvent() : renderRegularEvent();
|
|
141
|
+
return render;
|
|
142
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Dropdown, Menu } from "antd";
|
|
3
|
+
import { Fragment } from "react";
|
|
4
|
+
import { doubleClickOnResource } from "../logic/state_handle/doubleClickOnResource";
|
|
5
|
+
import { ResourceRender } from "./ResourceRender";
|
|
6
|
+
export const ResourceListRender = ({ resources, schedulerProps, state, contentArea, onClickContextMenu, crewAssignmentSchedulerContextMenu, }) => {
|
|
7
|
+
return (_jsx(Fragment, { children: resources.map((r, _i) => (_jsx(Dropdown, { placement: "topLeft", dropdownRender: () => {
|
|
8
|
+
return (_jsx(Menu, { style: { pointerEvents: "auto" }, onClick: (e) => {
|
|
9
|
+
onClickContextMenu(e, r);
|
|
10
|
+
}, children: crewAssignmentSchedulerContextMenu?.map((m) => (_jsxs(Menu.Item, { children: [_jsx("span", { className: m.icon, style: { color: m.color } }), _jsx("span", { className: "cwellt_contextMenu", children: m.text })] }, m.key))) }));
|
|
11
|
+
}, trigger: ["contextMenu"], children: _jsx("span", { onDoubleClick: () => doubleClickOnResource(schedulerProps, r), id: schedulerProps.id + "_" + r.id, children: _jsx(ResourceRender, { res: r, schedulerProps: schedulerProps, contentArea: contentArea, state: state, isInViewport: r.isInViewport }, r.id) }) }, r.id))) }));
|
|
12
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from "react";
|
|
3
|
+
import { EventRender } from "./EventRender";
|
|
4
|
+
import { OnDrop } from "../logic/onDrop/OnDrop";
|
|
5
|
+
import { onDragOver } from "../logic/state_handle/onDragOver";
|
|
6
|
+
const arePropsEqual = (prevProps, nextProps) => {
|
|
7
|
+
return prevProps.res.events === nextProps.res.events && prevProps.isInViewport === nextProps.isInViewport;
|
|
8
|
+
};
|
|
9
|
+
export const ResourceRender = memo(({ res, schedulerProps, contentArea, state }) => {
|
|
10
|
+
return (_jsx("div", { style: {
|
|
11
|
+
backgroundColor: "#F9F8F8",
|
|
12
|
+
height: res.maxTop,
|
|
13
|
+
width: "100%",
|
|
14
|
+
position: "relative",
|
|
15
|
+
borderBottom: "1px solid rgb(255,255,255)",
|
|
16
|
+
}, onDragOver: (e) => onDragOver(e), onDrop: (e) => {
|
|
17
|
+
OnDrop({
|
|
18
|
+
e,
|
|
19
|
+
resource: res,
|
|
20
|
+
id: schedulerProps.id,
|
|
21
|
+
contentArea,
|
|
22
|
+
state,
|
|
23
|
+
schedulerProps,
|
|
24
|
+
});
|
|
25
|
+
}, className: "cwellt_divRow_schContent", children: res.events.map((evnt) => (_jsx(EventRender, { event: evnt, schedulerProps: schedulerProps }, evnt.id))) }, res.id));
|
|
26
|
+
}, arePropsEqual);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const DayHeader = ({ index, text, width, headerType }) => {
|
|
3
|
+
const isFirstDay = index == 0;
|
|
4
|
+
return (_jsx("td", { style: {
|
|
5
|
+
display: "inline-block",
|
|
6
|
+
fontSize: "10px",
|
|
7
|
+
width: width,
|
|
8
|
+
maxWidth: width,
|
|
9
|
+
}, id: headerType + index, children: _jsx("span", { className: isFirstDay ? "cwelltFirstDate_desc" : "", children: text }) }));
|
|
10
|
+
};
|
|
11
|
+
export const _preview = () => {
|
|
12
|
+
return (_jsx("table", { children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsx(DayHeader, { index: 0, text: new Date().toLocaleDateString(), width: 50, headerType: "test" }), _jsx(DayHeader, { index: 1, text: new Date().toLocaleDateString(), width: 50, headerType: "test" })] }) }) }));
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const MonthHeader = ({ index, text, width, headerType }) => {
|
|
3
|
+
return (_jsx("td", { style: {
|
|
4
|
+
display: "inline-block",
|
|
5
|
+
fontSize: "10px",
|
|
6
|
+
width: width,
|
|
7
|
+
maxWidth: width,
|
|
8
|
+
}, id: headerType + index, children: _jsx("span", { children: text }) }));
|
|
9
|
+
};
|
|
10
|
+
export const _preview = () => {
|
|
11
|
+
return (_jsx("table", { children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsx(MonthHeader, { index: 0, text: new Date().getMonth() + "." + new Date().getFullYear(), width: 50, headerType: "test" }, 1), _jsx(MonthHeader, { index: 1, text: new Date().getMonth() + 1 + "." + new Date().getFullYear(), width: 50, headerType: "test" }, 2)] }) }) }));
|
|
12
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import moment from "moment";
|
|
3
|
+
import { getMonthHeaderData } from "../../logic/dates/getMonthHeaderData";
|
|
4
|
+
import { getWeekHeaderDataFromWeekRange } from "../../logic/dates/getWeekHeaderDataFromWeekRange";
|
|
5
|
+
import { listOfDatesToWeekRangeList } from "../../logic/dates/listOfDatesToWeeks";
|
|
6
|
+
import { DayHeader } from "./DayHeader";
|
|
7
|
+
import { MonthHeader } from "./MonthHeader";
|
|
8
|
+
import { WeekHeader } from "./WeekHeader";
|
|
9
|
+
export const DaysHeader = ({ days, divisionType, maxWidth, headerType }) => {
|
|
10
|
+
let headerToDraw = [];
|
|
11
|
+
const filteredDays = days.filter((date) => {
|
|
12
|
+
return date.getHours() === 0;
|
|
13
|
+
});
|
|
14
|
+
const dateFormatter = (date) => {
|
|
15
|
+
return `${date.getDate()}.${date.getMonth() + 1}.${date.getFullYear()}`;
|
|
16
|
+
};
|
|
17
|
+
switch (divisionType) {
|
|
18
|
+
case "d":
|
|
19
|
+
{
|
|
20
|
+
headerToDraw = filteredDays.map((date, index) => {
|
|
21
|
+
return (_jsx(DayHeader, { text: dateFormatter(date), index: index, width: maxWidth / filteredDays.length, headerType: headerType }, index));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
break;
|
|
25
|
+
case "w":
|
|
26
|
+
{
|
|
27
|
+
const weekRanges = listOfDatesToWeekRangeList(filteredDays);
|
|
28
|
+
headerToDraw = getWeekHeaderDataFromWeekRange(weekRanges, maxWidth, dateFormatter).map((week, index) => {
|
|
29
|
+
return (_jsx(WeekHeader, { index: index, text: week.formattedString, width: week.width, headerType: headerType }, index));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
case "m":
|
|
34
|
+
{
|
|
35
|
+
const monthData = getMonthHeaderData(filteredDays, maxWidth);
|
|
36
|
+
headerToDraw = monthData.map(({ monthFormatted, width }, index) => (_jsx(MonthHeader, { index: index, text: monthFormatted, width: width, headerType: headerType }, index)));
|
|
37
|
+
}
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
return _jsx("tr", { className: "cwelltSchRowDate", children: headerToDraw });
|
|
41
|
+
};
|
|
42
|
+
export const _DaysPreview = () => {
|
|
43
|
+
const days = [];
|
|
44
|
+
for (let i = 0; i <= 7; i++) {
|
|
45
|
+
days.push(moment("20240722").add(i, "hours").toDate());
|
|
46
|
+
}
|
|
47
|
+
return (_jsx("table", { children: _jsx("tbody", { children: _jsx(DaysHeader, { days: days, divisionType: "d", maxWidth: window.screen.width * 0.9, headerType: "aircraft" }) }) }));
|
|
48
|
+
};
|
|
49
|
+
export const _WeeksPreview = () => {
|
|
50
|
+
const days = [];
|
|
51
|
+
for (let i = 0; i <= 18; i++) {
|
|
52
|
+
days.push(moment("20240722").add(i, "hours").toDate());
|
|
53
|
+
}
|
|
54
|
+
return (_jsx("table", { children: _jsx("tbody", { children: _jsx(DaysHeader, { days: days, divisionType: "w", maxWidth: window.screen.width * 0.9, headerType: "aircraft" }) }) }));
|
|
55
|
+
};
|
|
56
|
+
export const _MonthsPreview = () => {
|
|
57
|
+
const days = [];
|
|
58
|
+
for (let i = 0; i <= 2; i++) {
|
|
59
|
+
days.push(moment("20240822").add(i, "hours").toDate());
|
|
60
|
+
}
|
|
61
|
+
return (_jsx("table", { children: _jsx("tbody", { children: _jsx(DaysHeader, { days: days, divisionType: "m", maxWidth: window.screen.width * 0.9, headerType: "aircraft" }) }) }));
|
|
62
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const WeekHeader = ({ index, text, width, headerType }) => {
|
|
3
|
+
const isFirstDay = index == 0;
|
|
4
|
+
return (_jsx("td", { style: {
|
|
5
|
+
display: "inline-block",
|
|
6
|
+
fontSize: "10px",
|
|
7
|
+
width: width,
|
|
8
|
+
maxWidth: width,
|
|
9
|
+
}, id: headerType + index, children: _jsx("span", { className: isFirstDay ? "cwelltFirstDate_desc" : "", style: { whiteSpace: "nowrap" }, children: text }) }));
|
|
10
|
+
};
|
|
11
|
+
export const _preview = () => {
|
|
12
|
+
return (_jsx("table", { children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsx(WeekHeader, { index: 0, text: new Date().toLocaleDateString(), width: 50, headerType: "test" }, 1), _jsx(WeekHeader, { index: 1, text: new Date().toLocaleDateString(), width: 50, headerType: "test" }, 2)] }) }) }));
|
|
13
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const ResourcesTitleList = ({ resources, canBePinned, includesPinned, onCrewPinning, onClickResourceContextMenu, ResourceTitleComponent }) => {
|
|
3
|
+
return (_jsx("td", { className: "resourceArea", style: { width: "100px" }, children: resources.map((r, _i) => (_jsxs("div", { className: "resource CwelltFunctionDescription", style: { height: r.maxTop }, children: [(canBePinned || includesPinned) && (_jsx(PinButton, { canBePinned: canBePinned, resource: r, onCrewPinning: onCrewPinning })), _jsx(ResourceTitleComponent, { resource: r, handleOnClickResourceContextMenu: (e) => {
|
|
4
|
+
if (onClickResourceContextMenu) {
|
|
5
|
+
onClickResourceContextMenu(e, r);
|
|
6
|
+
}
|
|
7
|
+
} })] }, r.id.toString()))) }));
|
|
8
|
+
};
|
|
9
|
+
const PinButton = ({ canBePinned, resource, onCrewPinning }) => {
|
|
10
|
+
const buttonProps = canBePinned
|
|
11
|
+
? {
|
|
12
|
+
id: "cbl_pinL",
|
|
13
|
+
onClick: () => onCrewPinning(resource, ""),
|
|
14
|
+
children: _jsx("span", { className: "cbl_pin", style: { visibility: "visible" } })
|
|
15
|
+
}
|
|
16
|
+
: {
|
|
17
|
+
id: "cbl_pinLess45deg",
|
|
18
|
+
onClick: () => onCrewPinning(resource, "remove"),
|
|
19
|
+
children: _jsx("span", { className: "cbl_pinLess45deg cbl_pin", style: { color: "black", visibility: "visible" } })
|
|
20
|
+
};
|
|
21
|
+
return _jsx("button", { className: "cw-button-icon cw-icon-pin", ...buttonProps });
|
|
22
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import moment from "moment";
|
|
3
|
+
import { ResourceListRender } from "../ResourceListRender";
|
|
4
|
+
import { TimeLine } from "../time_line/TimeLine";
|
|
5
|
+
export const SchedulerContentArea = ({ now, showTimeline, timeLineLeftPx, timeSeparatorLeftPx, resources, scheduler, contextMenuContents, onEmptyClick, setContentArea, onClickContextMenu, }) => {
|
|
6
|
+
return (_jsxs("td", { className: "contentArea", style: { width: "100%", overflow: "hidden", position: "relative" }, ref: (reference) => {
|
|
7
|
+
if (reference) {
|
|
8
|
+
setContentArea(reference);
|
|
9
|
+
}
|
|
10
|
+
}, children: [showTimeline && (_jsx(TimeLine, { id: scheduler.props.id + "_timeline", marginLeft: timeLineLeftPx, zIndex: 8, toolTipTitle: moment(now).format("HH:mm") })), timeSeparatorLeftPx.map((pixels) => {
|
|
11
|
+
return _jsx(TimeLine, { marginLeft: pixels, color: "rgba(255,255,255,0.7)" });
|
|
12
|
+
}), _jsx("span", { onClick: () => {
|
|
13
|
+
if (onEmptyClick) {
|
|
14
|
+
onEmptyClick(scheduler.props.id);
|
|
15
|
+
}
|
|
16
|
+
}, children: _jsx(ResourceListRender, { resources: resources, state: scheduler.state, schedulerProps: scheduler.props, contentArea: scheduler.contentArea, onClickContextMenu: onClickContextMenu, crewAssignmentSchedulerContextMenu: contextMenuContents }) })] }));
|
|
17
|
+
};
|
package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SchedulerTimeLine } from "../scheduler_timeline/SchedulerTimeLine";
|
|
3
|
+
export const SchedulerHeader = ({ timelineProps, descriptionColumn }) => {
|
|
4
|
+
const { maxPx, hoursList, startDate, endDate, pxPerHour, headerName } = timelineProps;
|
|
5
|
+
return (_jsx("thead", { className: "cwellt_fc_header_scheduler", style: { position: "sticky", zIndex: 9 }, children: _jsxs("tr", { className: "cwellt_fc_header_row", children: [_jsxs("td", { className: "border", style: {
|
|
6
|
+
position: "sticky",
|
|
7
|
+
top: 0,
|
|
8
|
+
backgroundColor: "white",
|
|
9
|
+
width: "100px",
|
|
10
|
+
}, children: [_jsx("div", { style: {
|
|
11
|
+
display: "flex",
|
|
12
|
+
height: "30px",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
width: "150px",
|
|
15
|
+
}, children: _jsx("label", { children: headerName }) }), _jsx("div", { style: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
height: "30px",
|
|
18
|
+
alignItems: "center",
|
|
19
|
+
background: "rgba(0, 0, 0, 0.04)",
|
|
20
|
+
}, children: _jsx("span", { children: descriptionColumn }) })] }), _jsx("td", { style: {
|
|
21
|
+
position: "sticky",
|
|
22
|
+
top: 0,
|
|
23
|
+
zIndex: 6,
|
|
24
|
+
backgroundColor: "white",
|
|
25
|
+
}, children: _jsx(SchedulerTimeLine, { maxPx: maxPx, hoursList: hoursList, pxPerHour: pxPerHour, startDate: startDate, endDate: endDate, headerName: headerName }) })] }) }));
|
|
26
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { calculateDivisionType } from "../../logic/divisions/calculateDivisionType";
|
|
3
|
+
import { DaysHeader } from "../day_headers/MyDaysHeader";
|
|
4
|
+
import { TimeHeaderRow } from "../time_headers/TimeHeaderRow";
|
|
5
|
+
export const SchedulerTimeLine = ({ maxPx, hoursList, startDate, endDate, pxPerHour, headerName, }) => {
|
|
6
|
+
return (_jsx("table", { className: "content-area cwelltSchTable", style: { width: maxPx }, children: _jsxs("tbody", { style: { width: "100%", borderSpacing: 0 }, className: "content-area cwelltSchTbody", children: [_jsx(DaysHeader, { days: hoursList, divisionType: calculateDivisionType(startDate, endDate), maxWidth: pxPerHour * hoursList.length, headerType: headerName ?? "schedulerDateHeader" }), _jsx(TimeHeaderRow, { timeHeaders: hoursList, startDate: startDate, endDate: endDate, maxWidth: pxPerHour * hoursList.length, header: headerName ?? "schedulerTimeHeader" })] }) }));
|
|
7
|
+
};
|
|
8
|
+
export const _preview = () => {
|
|
9
|
+
const startDate = new Date("2024-03-20T00:00:00");
|
|
10
|
+
const endDate = new Date("2024-04-20T00:00:00");
|
|
11
|
+
const hoursList = generateHourlyDates(startDate, endDate);
|
|
12
|
+
return (_jsx(SchedulerTimeLine, { headerName: "test", pxPerHour: window.innerWidth / hoursList.length, maxPx: window.innerWidth, hoursList: hoursList, startDate: startDate, endDate: endDate }));
|
|
13
|
+
};
|
|
14
|
+
const generateHourlyDates = (start, end) => {
|
|
15
|
+
const dates = new Array();
|
|
16
|
+
const current = new Date(start);
|
|
17
|
+
while (current <= end) {
|
|
18
|
+
dates.push(new Date(current));
|
|
19
|
+
current.setHours(current.getHours(), 0, 0, 0); // Ensure the time is exactly on the hour
|
|
20
|
+
current.setHours(current.getHours() + 1);
|
|
21
|
+
}
|
|
22
|
+
return dates;
|
|
23
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getFormattedTimeForHeader } from "../../logic/dates/getFormatedTimeForHeader";
|
|
3
|
+
import { calculateDivisions } from "../../logic/divisions/calculateDivisions";
|
|
4
|
+
import { calculateDivisionType } from "../../logic/divisions/calculateDivisionType";
|
|
5
|
+
export const TimeHeader = ({ isWeekend, index, text, width, header }) => {
|
|
6
|
+
if (text === "") {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const commonStyles = {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
justifyContent: "left",
|
|
13
|
+
fontSize: "10px",
|
|
14
|
+
width: width,
|
|
15
|
+
maxWidth: width,
|
|
16
|
+
height: "2rem",
|
|
17
|
+
borderLeft: "1px solid white",
|
|
18
|
+
background: isWeekend ? "#cbc9c9" : "",
|
|
19
|
+
color: "#000000d9",
|
|
20
|
+
fontWeight: 700,
|
|
21
|
+
};
|
|
22
|
+
return (_jsx("td", { style: commonStyles, id: `${header}Time${index}`, children: _jsx("span", { style: { paddingLeft: "8px" }, children: text }) }, `t${index}`));
|
|
23
|
+
};
|
|
24
|
+
export const _preview = () => {
|
|
25
|
+
const startDate = new Date();
|
|
26
|
+
const endDate = new Date();
|
|
27
|
+
const calculatedDivision = calculateDivisions(startDate, endDate);
|
|
28
|
+
const calculatedDivType = calculateDivisionType(startDate, endDate);
|
|
29
|
+
const data = getFormattedTimeForHeader(calculatedDivType, calculatedDivision, startDate);
|
|
30
|
+
return _jsx(TimeHeader, { isWeekend: false, index: 1, text: data.text, width: 30, header: "test" });
|
|
31
|
+
};
|
package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getFormattedTimeForHeader } from "../../logic/dates/getFormatedTimeForHeader";
|
|
3
|
+
import { calculateDivisions } from "../../logic/divisions/calculateDivisions";
|
|
4
|
+
import { calculateDivisionType } from "../../logic/divisions/calculateDivisionType";
|
|
5
|
+
import { TimeHeader } from "./TimeHeader";
|
|
6
|
+
export const TimeHeaderRow = ({ timeHeaders, startDate, endDate, maxWidth, header }) => {
|
|
7
|
+
const calculatedDivision = calculateDivisions(startDate, endDate);
|
|
8
|
+
const calculatedDivType = calculateDivisionType(startDate, endDate);
|
|
9
|
+
const formattedHeaders = timeHeaders.map((th) => {
|
|
10
|
+
return getFormattedTimeForHeader(calculatedDivType, calculatedDivision, th);
|
|
11
|
+
});
|
|
12
|
+
const filteredHeaders = formattedHeaders.filter((element) => element.text !== "");
|
|
13
|
+
return (_jsx("tr", { className: "cwelltSchRowTime", style: { height: "30px" }, children: filteredHeaders.map(({ text, isWeekend }, index) => {
|
|
14
|
+
return (_jsx(TimeHeader, { isWeekend: isWeekend, index: index, text: text, width: maxWidth / filteredHeaders.length, header: header }, index));
|
|
15
|
+
}) }));
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip } from "antd";
|
|
3
|
+
export const TimeLine = ({ id, toolTipTitle, marginLeft, color = "rgba(255,0,0,.6)", pixels = 2, height = "100%", zIndex = 1, }) => {
|
|
4
|
+
return (_jsx(Tooltip, { title: toolTipTitle, children: _jsx("div", { id: id, style: {
|
|
5
|
+
borderLeft: `${pixels}px solid ${color}`,
|
|
6
|
+
marginLeft: marginLeft,
|
|
7
|
+
width: "0px",
|
|
8
|
+
height: height,
|
|
9
|
+
position: "absolute",
|
|
10
|
+
zIndex: zIndex,
|
|
11
|
+
} }) }));
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const daysBetweenTwoDates = (date1, date2) => {
|
|
2
|
+
const diff = Math.abs(date1.getTime() - date2.getTime());
|
|
3
|
+
let diffDays = 0;
|
|
4
|
+
const startOffset = Math.abs(date1.getTimezoneOffset());
|
|
5
|
+
const endOffset = Math.abs(date2.getTimezoneOffset());
|
|
6
|
+
// Summer: +1 -> +2, true
|
|
7
|
+
// Winter: +2 -> -1, false
|
|
8
|
+
if (startOffset > endOffset) {
|
|
9
|
+
diffDays = Math.floor(diff / (1000 * 3600 * 24));
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
diffDays = Math.ceil(diff / (1000 * 3600 * 24));
|
|
13
|
+
}
|
|
14
|
+
return diffDays;
|
|
15
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
export const getFormattedTimeForHeader = (calculatedDivType, calculatedDivision, timeHeader) => {
|
|
3
|
+
let showDate = "";
|
|
4
|
+
switch (calculatedDivType) {
|
|
5
|
+
case "d":
|
|
6
|
+
switch (calculatedDivision) {
|
|
7
|
+
case 8:
|
|
8
|
+
showDate =
|
|
9
|
+
timeHeader.getHours() === 0 ||
|
|
10
|
+
timeHeader.getHours() === 3 ||
|
|
11
|
+
timeHeader.getHours() === 6 ||
|
|
12
|
+
timeHeader.getHours() === 9 ||
|
|
13
|
+
timeHeader.getHours() === 12 ||
|
|
14
|
+
timeHeader.getHours() === 15 ||
|
|
15
|
+
timeHeader.getHours() === 18 ||
|
|
16
|
+
timeHeader.getHours() === 21
|
|
17
|
+
? moment(timeHeader).format("HH:mm")
|
|
18
|
+
: "";
|
|
19
|
+
break;
|
|
20
|
+
case 3:
|
|
21
|
+
showDate =
|
|
22
|
+
timeHeader.getHours() === 0 || timeHeader.getHours() === 8 || timeHeader.getHours() === 16
|
|
23
|
+
? moment(timeHeader).format("HH:mm")
|
|
24
|
+
: "";
|
|
25
|
+
break;
|
|
26
|
+
case 2:
|
|
27
|
+
showDate =
|
|
28
|
+
timeHeader.getHours() === 0 || timeHeader.getHours() === 12 ? moment(timeHeader).format("HH:mm") : "";
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
break;
|
|
32
|
+
case "m":
|
|
33
|
+
showDate = timeHeader.getHours() === 0 ? timeHeader.getDate().toString() : "";
|
|
34
|
+
break;
|
|
35
|
+
case "w":
|
|
36
|
+
showDate = timeHeader.getHours() === 0 ? timeHeader.getDate().toString() : "";
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
text: showDate,
|
|
41
|
+
isWeekend: timeHeader.getDay() === 6 || timeHeader.getDay() === 0,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const getMonthHeaderData = (dates, maxWidth) => {
|
|
2
|
+
if (dates.length === 0)
|
|
3
|
+
return [];
|
|
4
|
+
const dayWidth = maxWidth / dates.length;
|
|
5
|
+
const ranges = getMonthRanges(dates);
|
|
6
|
+
return ranges.map((range) => {
|
|
7
|
+
return {
|
|
8
|
+
monthFormatted: range.start.getMonth() + 1 + "." + range.start.getFullYear(),
|
|
9
|
+
width: dayWidth * range.daysLong,
|
|
10
|
+
};
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
const getMonthRanges = (dates) => {
|
|
14
|
+
const firstDay = dates[0];
|
|
15
|
+
const lastDay = dates[dates.length - 1];
|
|
16
|
+
let currentDate = new Date(firstDay);
|
|
17
|
+
const ranges = [];
|
|
18
|
+
while (currentDate <= lastDay) {
|
|
19
|
+
const rangeStart = new Date(currentDate);
|
|
20
|
+
let rangeEnd = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0);
|
|
21
|
+
if (rangeEnd >= lastDay) {
|
|
22
|
+
rangeEnd = lastDay;
|
|
23
|
+
}
|
|
24
|
+
ranges.push({
|
|
25
|
+
start: rangeStart,
|
|
26
|
+
daysLong: getDaysBetweenDates(rangeStart, rangeEnd),
|
|
27
|
+
});
|
|
28
|
+
currentDate = new Date(rangeEnd.getFullYear(), rangeEnd.getMonth() + 1, 1);
|
|
29
|
+
}
|
|
30
|
+
return ranges;
|
|
31
|
+
};
|
|
32
|
+
const getDaysBetweenDates = (startDate, endDate) => {
|
|
33
|
+
const timeDifference = endDate.getTime() - startDate.getTime();
|
|
34
|
+
return Math.floor(timeDifference / (1000 * 60 * 60 * 24)) + 1;
|
|
35
|
+
};
|
package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const getWeekHeaderDataFromWeekRange = (weekRange, maxWidth, dateFormatter) => weekRange.map(week => {
|
|
2
|
+
const numberOfDaysInScheduler = weekRange
|
|
3
|
+
.flatMap(element => {
|
|
4
|
+
return element.days;
|
|
5
|
+
})
|
|
6
|
+
.reduce((el1, el2) => {
|
|
7
|
+
return el1 + el2;
|
|
8
|
+
});
|
|
9
|
+
return {
|
|
10
|
+
formattedString: getStringForWeekRange(week, dateFormatter),
|
|
11
|
+
width: getWidthForWeekRange(maxWidth, week.days, numberOfDaysInScheduler)
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
const getStringForWeekRange = (weekRange, dateFormatter) => weekRange.days == 1
|
|
15
|
+
? dateFormatter(weekRange.start)
|
|
16
|
+
: `${dateFormatter(weekRange.start)} - ${dateFormatter(weekRange.end)}`;
|
|
17
|
+
const getWidthForWeekRange = (maxWidth, weekDays, monthDays) => {
|
|
18
|
+
const dayWidth = maxWidth / monthDays;
|
|
19
|
+
return dayWidth * weekDays;
|
|
20
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// stringRange: `${formatter(date)} - ${formatter(end)}`,
|
|
2
|
+
export const listOfDatesToWeekRangeList = (dates) => {
|
|
3
|
+
if (dates.length === 0) {
|
|
4
|
+
return [];
|
|
5
|
+
}
|
|
6
|
+
const datesToReturn = [];
|
|
7
|
+
dates.forEach((date, index) => {
|
|
8
|
+
const dayOfWeek = date.getDay();
|
|
9
|
+
const isFirstDay = index === 0;
|
|
10
|
+
const isLastDay = index === dates.length - 1;
|
|
11
|
+
const isSunday = dayOfWeek === 0;
|
|
12
|
+
const isMonday = dayOfWeek === 1;
|
|
13
|
+
if (isFirstDay && !isSunday) {
|
|
14
|
+
datesToReturn.push(createWeekRange(date, 8 - dayOfWeek));
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (isLastDay && !isSunday) {
|
|
18
|
+
if (!isMonday) {
|
|
19
|
+
datesToReturn.pop();
|
|
20
|
+
}
|
|
21
|
+
const firstOfWeek = getFirstDayOfWeek(date);
|
|
22
|
+
datesToReturn.push(createWeekRange(firstOfWeek, dayOfWeek));
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (isMonday) {
|
|
26
|
+
datesToReturn.push(createWeekRange(date, 7));
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
// this is because sunday is 0
|
|
30
|
+
if (isFirstDay && isSunday) {
|
|
31
|
+
datesToReturn.push(createWeekRange(date, 1));
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return datesToReturn;
|
|
36
|
+
};
|
|
37
|
+
const createWeekRange = (start, days) => {
|
|
38
|
+
const end = new Date(start);
|
|
39
|
+
end.setDate(end.getDate() + days - 1);
|
|
40
|
+
return {
|
|
41
|
+
days,
|
|
42
|
+
start,
|
|
43
|
+
end,
|
|
44
|
+
isShortWeek: days < 7
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
const getFirstDayOfWeek = (date) => {
|
|
48
|
+
const currentDate = new Date(date);
|
|
49
|
+
const dayOfWeek = currentDate.getDay();
|
|
50
|
+
// dayOfWeek 0 == (Sunday)
|
|
51
|
+
const diffToMonday = dayOfWeek === 0 ? 6 : dayOfWeek - 1;
|
|
52
|
+
// Set the date to the first day of the week
|
|
53
|
+
currentDate.setDate(currentDate.getDate() - diffToMonday);
|
|
54
|
+
return currentDate;
|
|
55
|
+
};
|