@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.
Files changed (584) hide show
  1. package/dist/index.cjs.js +1314 -316
  2. package/dist/index.css +2 -2
  3. package/dist/index.d.ts +235 -6
  4. package/dist/index.es.js +1310 -316
  5. package/dist/src/common/classes/CwSelectList.js +12 -0
  6. package/dist/src/common/classes/CwSelectListItems.js +14 -0
  7. package/dist/src/common/functions/collections.js +18 -0
  8. package/dist/src/common/functions/colorManipulation.js +76 -0
  9. package/dist/src/common/functions/dsl/UiEventDSL.js +20 -0
  10. package/dist/src/common/functions/useSingleAndDoubleClicks.js +28 -0
  11. package/dist/src/components/control/action/button/CwButton.js +13 -0
  12. package/dist/src/components/control/action/buttons/CwButtons.js +188 -0
  13. package/dist/src/components/control/action/contextmenu/CwContextMenu.js +43 -0
  14. package/dist/src/components/control/action/contextual-menu/CwContextualMenu.js +55 -0
  15. package/dist/src/components/control/action/search/CwSearch.js +67 -0
  16. package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.js +11 -0
  17. package/dist/src/components/control/choice/checkbox/CwCheckbox.js +15 -0
  18. package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.js +99 -0
  19. package/dist/src/components/control/choice/dropdown/CwDropdown.js +27 -0
  20. package/dist/src/components/control/choice/dropdown/CwDropdownContainer.js +30 -0
  21. package/dist/src/components/control/choice/dropdown/CwDropdownFilter.js +10 -0
  22. package/dist/src/components/control/choice/multi-filter/CwMultiFilter.js +298 -0
  23. package/dist/src/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.js +17 -0
  24. package/dist/src/components/control/choice/multiselect/CwHeadFilter.js +80 -0
  25. package/dist/src/components/control/choice/multiselect/CwMultiselect.js +393 -0
  26. package/dist/src/components/control/choice/multiselect/CwOptionList.js +36 -0
  27. package/dist/src/components/control/choice/option/CwOption.js +16 -0
  28. package/dist/src/components/control/choice/select/CwSelect.js +36 -0
  29. package/dist/src/components/control/choice/toggle/CwToggle.js +9 -0
  30. package/dist/src/components/control/input/any/CwInput.js +16 -0
  31. package/dist/src/components/control/input/color/CwColorPicker.js +210 -0
  32. package/dist/src/components/control/input/color/CwInputColor.js +142 -0
  33. package/dist/src/components/control/input/date/CwInputDate.js +29 -0
  34. package/dist/src/components/control/input/date-picker/CwInputDatePicker.js +109 -0
  35. package/dist/src/components/control/input/date-text/CwInputDateText.js +90 -0
  36. package/dist/src/components/control/input/datetime/CwInputDatetime.js +29 -0
  37. package/dist/src/components/control/input/digit/CwDigit.js +28 -0
  38. package/dist/src/components/control/input/file/CwFileUpload.js +52 -0
  39. package/dist/src/components/control/input/file/CwFileUploadMultiple.js +148 -0
  40. package/dist/src/components/control/input/image/CwInputImage.js +52 -0
  41. package/dist/src/components/control/input/image-area/CwImageArea.js +113 -0
  42. package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts +42 -0
  43. package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -0
  44. package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts +63 -0
  45. package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -0
  46. package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts +47 -0
  47. package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts.map +1 -0
  48. package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts +46 -0
  49. package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -0
  50. package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts +38 -0
  51. package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -0
  52. package/dist/src/components/control/input/new-dates/dateRangePresets.d.ts +19 -0
  53. package/dist/src/components/control/input/new-dates/dateRangePresets.d.ts.map +1 -0
  54. package/dist/src/components/control/input/number/CwInputNumber.js +11 -0
  55. package/dist/src/components/control/input/phone/CwInputPhone.js +24 -0
  56. package/dist/src/components/control/input/text/CwInputText.js +31 -0
  57. package/dist/src/components/control/input/text-area/CwTextArea.js +9 -0
  58. package/dist/src/components/control/input/time/CwTime.js +29 -0
  59. package/dist/src/components/control/input/weekday/CwWeekdaySelector.js +143 -0
  60. package/dist/src/components/custom/find-airport/CwFindAirportComp.js +240 -0
  61. package/dist/src/components/custom/scheduler/CwSchedulerComp.js +211 -0
  62. package/dist/src/components/custom/scheduler/CwSuperSchedulerComp.js +269 -0
  63. package/dist/src/components/custom/scheduler/components/EventRender.js +142 -0
  64. package/dist/src/components/custom/scheduler/components/ResourceListRender.js +12 -0
  65. package/dist/src/components/custom/scheduler/components/ResourceRender.js +26 -0
  66. package/dist/src/components/custom/scheduler/components/day_headers/DayHeader.js +13 -0
  67. package/dist/src/components/custom/scheduler/components/day_headers/MonthHeader.js +12 -0
  68. package/dist/src/components/custom/scheduler/components/day_headers/MyDaysHeader.js +62 -0
  69. package/dist/src/components/custom/scheduler/components/day_headers/WeekHeader.js +13 -0
  70. package/dist/src/components/custom/scheduler/components/resources_title_list/ResourcesTitleList.js +24 -0
  71. package/dist/src/components/custom/scheduler/components/scheduler_content_area/SchedulerContentArea.js +17 -0
  72. package/dist/src/components/custom/scheduler/components/scheduler_header/SchedulerHeader.js +26 -0
  73. package/dist/src/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.js +23 -0
  74. package/dist/src/components/custom/scheduler/components/time_headers/TimeHeader.js +31 -0
  75. package/dist/src/components/custom/scheduler/components/time_headers/TimeHeaderRow.js +16 -0
  76. package/dist/src/components/custom/scheduler/components/time_line/TimeLine.js +12 -0
  77. package/dist/src/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.js +5 -0
  78. package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDates.js +15 -0
  79. package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.js +5 -0
  80. package/dist/src/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.js +43 -0
  81. package/dist/src/components/custom/scheduler/logic/dates/getMonthHeaderData.js +35 -0
  82. package/dist/src/components/custom/scheduler/logic/dates/getUtcToday.js +6 -0
  83. package/dist/src/components/custom/scheduler/logic/dates/getWeekHeaderDataFromWeekRange.js +20 -0
  84. package/dist/src/components/custom/scheduler/logic/dates/listOfDatesToWeeks.js +55 -0
  85. package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisionType.js +13 -0
  86. package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisions.js +16 -0
  87. package/dist/src/components/custom/scheduler/logic/filtering/filterEvents.js +33 -0
  88. package/dist/src/components/custom/scheduler/logic/filtering/filterResources.js +14 -0
  89. package/dist/src/components/custom/scheduler/logic/filtering/hasSameProperties.js +10 -0
  90. package/dist/src/components/custom/scheduler/logic/onDrop/OnDrop.js +45 -0
  91. package/dist/src/components/custom/scheduler/logic/pixels/getHeightLineScheduler.js +14 -0
  92. package/dist/src/components/custom/scheduler/logic/pixels/getPixelsForEvent.js +32 -0
  93. package/dist/src/components/custom/scheduler/logic/pixels/heightScheduler.js +14 -0
  94. package/dist/src/components/custom/scheduler/logic/pixels/heightSchedulerPinned.js +9 -0
  95. package/dist/src/components/custom/scheduler/logic/state_handle/doubleClickOnResource.js +5 -0
  96. package/dist/src/components/custom/scheduler/logic/state_handle/handleResourceChange.js +11 -0
  97. package/dist/src/components/custom/scheduler/logic/state_handle/onDragOver.js +9 -0
  98. package/dist/src/components/custom/scheduler/logic/state_handle/onDropEventToResource.js +3 -0
  99. package/dist/src/components/custom/scheduler/logic/strings/compareStrings.js +7 -0
  100. package/dist/src/components/custom/scheduler/logic/strings/getGUID.js +7 -0
  101. package/dist/src/components/custom/scheduler/logic/ui/checkIfSlotAvailable.js +8 -0
  102. package/dist/src/components/custom/scheduler/logic/ui/getEventsOfResource.js +45 -0
  103. package/dist/src/components/custom/scheduler/logic/ui/getTimeHeaders.js +35 -0
  104. package/dist/src/components/custom/scheduler/logic/ui/isAllowedToMove.js +19 -0
  105. package/dist/src/components/custom/scheduler/logic/ui/updateResourceVisibility.js +15 -0
  106. package/dist/src/components/custom/scheduler/state/CblDragAndDrop.js +18 -0
  107. package/dist/src/components/custom/scheduler/state/CwSchedulerProps.js +1 -0
  108. package/dist/src/components/custom/scheduler/state/Resource.js +18 -0
  109. package/dist/src/components/custom/scheduler/state/State.js +1 -0
  110. package/dist/src/components/custom/scheduler/state/cblEvent.js +28 -0
  111. package/dist/src/components/custom/scheduler/state/cblEventCompProps.js +1 -0
  112. package/dist/src/components/custom/scheduler/state/resourceCompProps2.js +1 -0
  113. package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.js +123 -0
  114. package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.d.ts +2 -1
  115. package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.d.ts.map +1 -1
  116. package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.js +118 -0
  117. package/dist/src/components/custom/scheduler-new/presentation/SchedulerPresenter.js +166 -0
  118. package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderDivision.js +26 -0
  119. package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderTitle.js +8 -0
  120. package/dist/src/components/custom/scheduler-new/presentation/components/header/SchedulerHeader.js +86 -0
  121. package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.js +60 -0
  122. package/dist/src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.js +24 -0
  123. package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.js +150 -0
  124. package/dist/src/components/custom/scheduler-new/presentation/components/row/EventSideDrag.js +11 -0
  125. package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.js +176 -0
  126. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.js +8 -0
  127. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.js +39 -0
  128. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.js +8 -0
  129. package/dist/src/components/custom/scheduler-new/presentation/helpers.js +43 -0
  130. package/dist/src/components/custom/scheduler-new/presentation/logic/WeekendCalc.js +24 -0
  131. package/dist/src/components/custom/scheduler-new/presentation/logic/dateFromPercentage.js +7 -0
  132. package/dist/src/components/custom/scheduler-new/presentation/logic/eventIsVisible.js +7 -0
  133. package/dist/src/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.js +113 -0
  134. package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.js +21 -0
  135. package/dist/src/components/custom/scheduler-new/presentation/logic/getEventSizes.js +30 -0
  136. package/dist/src/components/custom/scheduler-new/presentation/logic/getLinesByDivisions.js +13 -0
  137. package/dist/src/components/custom/scheduler-new/presentation/logic/getPercentageFromMouseEvent.js +7 -0
  138. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.js +32 -0
  139. package/dist/src/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.js +12 -0
  140. package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.js +267 -0
  141. package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.js +269 -0
  142. package/dist/src/components/custom/scheduler-temporal/components/EventRender.js +142 -0
  143. package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.js +12 -0
  144. package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.js +26 -0
  145. package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.js +13 -0
  146. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.js +12 -0
  147. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.js +62 -0
  148. package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.js +13 -0
  149. package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.js +22 -0
  150. package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.js +17 -0
  151. package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.js +26 -0
  152. package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.js +23 -0
  153. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.js +31 -0
  154. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.js +16 -0
  155. package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.js +12 -0
  156. package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.js +5 -0
  157. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.js +15 -0
  158. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.js +5 -0
  159. package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.js +43 -0
  160. package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.js +35 -0
  161. package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.js +6 -0
  162. package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.js +20 -0
  163. package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.js +55 -0
  164. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.js +13 -0
  165. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.js +16 -0
  166. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.js +10 -0
  167. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.js +34 -0
  168. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.js +14 -0
  169. package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.js +10 -0
  170. package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.js +36 -0
  171. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.js +14 -0
  172. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.js +32 -0
  173. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.js +14 -0
  174. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.js +9 -0
  175. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.js +5 -0
  176. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.js +178 -0
  177. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.js +11 -0
  178. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.js +9 -0
  179. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.js +3 -0
  180. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.js +3 -0
  181. package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.js +7 -0
  182. package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.js +7 -0
  183. package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.js +9 -0
  184. package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.js +92 -0
  185. package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.js +242 -0
  186. package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.js +35 -0
  187. package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.js +19 -0
  188. package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.js +241 -0
  189. package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.js +15 -0
  190. package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.js +18 -0
  191. package/dist/src/components/custom/scheduler-temporal/state/Resource.js +18 -0
  192. package/dist/src/components/custom/scheduler-temporal/state/cblEvent.js +28 -0
  193. package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.js +1 -0
  194. package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.js +1 -0
  195. package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts.map +1 -1
  196. package/dist/src/components/custom/super-scheduler/PinRowHeader.js +53 -0
  197. package/dist/src/components/custom/super-scheduler/SuperScheduler.js +23 -0
  198. package/dist/src/components/custom/super-scheduler/SuperSchedulerEvents.js +15 -0
  199. package/dist/src/components/custom/super-scheduler/SuperSchedulerPresenter.js +45 -0
  200. package/dist/src/components/display/data/accordion/CwAccordionContainer.js +20 -0
  201. package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.js +138 -0
  202. package/dist/src/components/display/data/table/CwTable.d.ts.map +1 -1
  203. package/dist/src/components/display/data/table/CwTable.js +203 -0
  204. package/dist/src/components/display/graphics/icon/CwIcon.js +23 -0
  205. package/dist/src/components/display/graphics/loading/CwLoading.js +27 -0
  206. package/dist/src/components/display/graphics/loading-small/CwLoadingSmall.js +20 -0
  207. package/dist/src/components/display/text/heading/CwHeadingMain.js +5 -0
  208. package/dist/src/components/display/text/heading/CwHeadingSecond.js +5 -0
  209. package/dist/src/components/display/text/label/CwLabel.js +13 -0
  210. package/dist/src/components/display/text/message/CwMessage.js +75 -0
  211. package/dist/src/components/display/text/note/CwNote.js +78 -0
  212. package/dist/src/components/display/text/tag/CwChip.js +57 -0
  213. package/dist/src/components/display/text/tag/CwTag.js +21 -0
  214. package/dist/src/components/display/text/tooltip/CwTooltip.js +4 -0
  215. package/dist/src/components/layout/align/CwAlign.js +54 -0
  216. package/dist/src/components/layout/card/CwCard.js +55 -0
  217. package/dist/src/components/layout/card/CwCardList.js +38 -0
  218. package/dist/src/components/layout/dialog/CwDialog.js +255 -0
  219. package/dist/src/components/layout/dialog/CwDialogManager.js +44 -0
  220. package/dist/src/components/layout/list/details/CwExpandable.js +28 -0
  221. package/dist/src/components/layout/list/key-value/CwKeyValueList.d.ts +2 -3
  222. package/dist/src/components/layout/list/key-value/CwKeyValueList.d.ts.map +1 -1
  223. package/dist/src/components/layout/list/key-value/CwKeyValueList.js +23 -0
  224. package/dist/src/components/layout/list/sortable/CwSortableList.js +73 -0
  225. package/dist/src/components/layout/list/sortable/useSortableList.js +53 -0
  226. package/dist/src/components/layout/modal/CwModalReportFunctional.js +23 -0
  227. package/dist/src/components/layout/modal/hover/CwModalHover.js +61 -0
  228. package/dist/src/components/layout/modal/legacy/cw_modal.js +44 -0
  229. package/dist/src/components/layout/modal/legacy/cw_modal_confirm.js +39 -0
  230. package/dist/src/components/layout/modal/legacy/cw_modal_iframe.js +44 -0
  231. package/dist/src/components/layout/modal/legacy/cw_modal_report.js +26 -0
  232. package/dist/src/components/layout/table/grouped/CwTableGrouped.js +70 -0
  233. package/dist/src/components/layout/tabs/CwTabs.js +53 -0
  234. package/dist/src/dev/palette.d.ts +1 -1
  235. package/dist/src/dev/palette.d.ts.map +1 -1
  236. package/dist/src/index.d.ts +6 -1
  237. package/dist/src/index.d.ts.map +1 -1
  238. package/dist/src/index.js +187 -0
  239. package/dist/test/components/custom/new-scheduler/presentation/logic/getDefaultDivisions.test.js +48 -0
  240. package/dist/test/components/custom/new-scheduler/presentation/logic/hoursBetween.test.js +15 -0
  241. package/dist/test/components/custom/new-scheduler/presentation/logic/monthDivisions.test.js +42 -0
  242. package/dist/test/components/custom/new-scheduler/presentation/logic/weekendCalc.test.js +30 -0
  243. package/dist/test/components/custom/scheduler/addMinutesToDateFromPx.test.js +43 -0
  244. package/dist/test/components/custom/scheduler/checkIfSlotAvailable.test.js +30 -0
  245. package/dist/test/components/custom/scheduler/daysBetweenTwoDates.test.js +61 -0
  246. package/dist/test/components/custom/scheduler/daysBetweenTwoDatesWithoutCeilForEvent.test.js +27 -0
  247. package/dist/test/components/custom/scheduler/getGUID.test.js +30 -0
  248. package/dist/test/components/custom/scheduler/getPixelsForEvent.test.js +38 -0
  249. package/dist/test/components/custom/scheduler/getTimeHeaders.test.js +35 -0
  250. package/dist/test/components/custom/scheduler/hasSameProperties.test.js +51 -0
  251. package/dist/test/components/custom/scheduler/isAllowedToMove.test.js +28 -0
  252. package/dist/test/components/custom/scheduler/listOfDatesToWeeks.test.js +72 -0
  253. package/dist/test/jest.setup.js +1 -0
  254. package/package.json +6 -2
  255. package/dist/assets/asset-DnHaq7m- +0 -50
  256. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-full-normal.woff2 +0 -0
  257. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-grad-normal.woff2 +0 -0
  258. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-opsz-normal.woff2 +0 -0
  259. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-slnt-normal.woff2 +0 -0
  260. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-standard-normal.woff2 +0 -0
  261. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-wdth-normal.woff2 +0 -0
  262. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-wght-normal.woff2 +0 -0
  263. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-xopq-normal.woff2 +0 -0
  264. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-xtra-normal.woff2 +0 -0
  265. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-yopq-normal.woff2 +0 -0
  266. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytas-normal.woff2 +0 -0
  267. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytde-normal.woff2 +0 -0
  268. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytfi-normal.woff2 +0 -0
  269. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytlc-normal.woff2 +0 -0
  270. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytuc-normal.woff2 +0 -0
  271. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-full-normal.woff2 +0 -0
  272. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-grad-normal.woff2 +0 -0
  273. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-opsz-normal.woff2 +0 -0
  274. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-slnt-normal.woff2 +0 -0
  275. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-standard-normal.woff2 +0 -0
  276. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-wdth-normal.woff2 +0 -0
  277. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-wght-normal.woff2 +0 -0
  278. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-xopq-normal.woff2 +0 -0
  279. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-xtra-normal.woff2 +0 -0
  280. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-yopq-normal.woff2 +0 -0
  281. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytas-normal.woff2 +0 -0
  282. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytde-normal.woff2 +0 -0
  283. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytfi-normal.woff2 +0 -0
  284. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytlc-normal.woff2 +0 -0
  285. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytuc-normal.woff2 +0 -0
  286. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-full-normal.woff2 +0 -0
  287. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-grad-normal.woff2 +0 -0
  288. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-opsz-normal.woff2 +0 -0
  289. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-slnt-normal.woff2 +0 -0
  290. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-standard-normal.woff2 +0 -0
  291. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-wdth-normal.woff2 +0 -0
  292. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-wght-normal.woff2 +0 -0
  293. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-xopq-normal.woff2 +0 -0
  294. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-xtra-normal.woff2 +0 -0
  295. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-yopq-normal.woff2 +0 -0
  296. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytas-normal.woff2 +0 -0
  297. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytde-normal.woff2 +0 -0
  298. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytfi-normal.woff2 +0 -0
  299. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytlc-normal.woff2 +0 -0
  300. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytuc-normal.woff2 +0 -0
  301. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-full-normal.woff2 +0 -0
  302. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-grad-normal.woff2 +0 -0
  303. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-opsz-normal.woff2 +0 -0
  304. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-slnt-normal.woff2 +0 -0
  305. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-standard-normal.woff2 +0 -0
  306. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-wdth-normal.woff2 +0 -0
  307. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-wght-normal.woff2 +0 -0
  308. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-xopq-normal.woff2 +0 -0
  309. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-xtra-normal.woff2 +0 -0
  310. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-yopq-normal.woff2 +0 -0
  311. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytas-normal.woff2 +0 -0
  312. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytde-normal.woff2 +0 -0
  313. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytfi-normal.woff2 +0 -0
  314. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytlc-normal.woff2 +0 -0
  315. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytuc-normal.woff2 +0 -0
  316. package/dist/content/icons/cw-icons/css/cw-icons.css +0 -2784
  317. package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.eot +0 -0
  318. package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.svg +0 -11
  319. package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.ttf +0 -0
  320. package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.woff +0 -0
  321. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.eot +0 -0
  322. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.svg +0 -38
  323. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.ttf +0 -0
  324. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.woff +0 -0
  325. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.woff2 +0 -0
  326. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.eot +0 -0
  327. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.svg +0 -29
  328. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.ttf +0 -0
  329. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.woff +0 -0
  330. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.woff2 +0 -0
  331. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.eot +0 -0
  332. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.svg +0 -12
  333. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.ttf +0 -0
  334. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.woff +0 -0
  335. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.eot +0 -0
  336. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.svg +0 -11
  337. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.ttf +0 -0
  338. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.woff +0 -0
  339. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.eot +0 -0
  340. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.svg +0 -12
  341. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.ttf +0 -0
  342. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.woff +0 -0
  343. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.eot +0 -0
  344. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.svg +0 -26
  345. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.ttf +0 -0
  346. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.woff +0 -0
  347. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.woff2 +0 -0
  348. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.eot +0 -0
  349. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.svg +0 -13
  350. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.ttf +0 -0
  351. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.woff +0 -0
  352. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.eot +0 -0
  353. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.svg +0 -29
  354. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.ttf +0 -0
  355. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.woff +0 -0
  356. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.woff2 +0 -0
  357. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.eot +0 -0
  358. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.svg +0 -29
  359. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.ttf +0 -0
  360. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.woff +0 -0
  361. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.woff2 +0 -0
  362. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.eot +0 -0
  363. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.svg +0 -17
  364. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.ttf +0 -0
  365. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.woff +0 -0
  366. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.woff2 +0 -0
  367. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.eot +0 -0
  368. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.svg +0 -20
  369. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.ttf +0 -0
  370. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.woff +0 -0
  371. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.woff2 +0 -0
  372. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.eot +0 -0
  373. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.svg +0 -12
  374. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.ttf +0 -0
  375. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.woff +0 -0
  376. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.eot +0 -0
  377. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.svg +0 -20
  378. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.ttf +0 -0
  379. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.woff +0 -0
  380. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.woff2 +0 -0
  381. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.eot +0 -0
  382. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.svg +0 -12
  383. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.ttf +0 -0
  384. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.woff +0 -0
  385. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.eot +0 -0
  386. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.svg +0 -14
  387. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.ttf +0 -0
  388. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.woff +0 -0
  389. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.eot +0 -0
  390. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.svg +0 -38
  391. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.ttf +0 -0
  392. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.woff +0 -0
  393. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.woff2 +0 -0
  394. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.eot +0 -0
  395. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.svg +0 -11
  396. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.ttf +0 -0
  397. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.woff +0 -0
  398. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.eot +0 -0
  399. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.svg +0 -17
  400. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.ttf +0 -0
  401. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.woff +0 -0
  402. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.woff2 +0 -0
  403. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.eot +0 -0
  404. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.svg +0 -11
  405. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.ttf +0 -0
  406. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.woff +0 -0
  407. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.eot +0 -0
  408. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.svg +0 -11
  409. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.ttf +0 -0
  410. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.woff +0 -0
  411. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.eot +0 -0
  412. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.svg +0 -13
  413. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.ttf +0 -0
  414. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.woff +0 -0
  415. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.eot +0 -0
  416. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.svg +0 -32
  417. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.ttf +0 -0
  418. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.woff +0 -0
  419. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.woff2 +0 -0
  420. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.eot +0 -0
  421. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.svg +0 -11
  422. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.ttf +0 -0
  423. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.woff +0 -0
  424. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.eot +0 -0
  425. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.svg +0 -11
  426. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.ttf +0 -0
  427. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.woff +0 -0
  428. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.eot +0 -0
  429. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.svg +0 -11
  430. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.ttf +0 -0
  431. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.woff +0 -0
  432. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.eot +0 -0
  433. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.svg +0 -11
  434. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.ttf +0 -0
  435. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.woff +0 -0
  436. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.eot +0 -0
  437. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.svg +0 -11
  438. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.ttf +0 -0
  439. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.woff +0 -0
  440. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.eot +0 -0
  441. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.svg +0 -12
  442. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.ttf +0 -0
  443. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.woff +0 -0
  444. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.eot +0 -0
  445. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.svg +0 -158
  446. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.ttf +0 -0
  447. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.woff +0 -0
  448. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.woff2 +0 -0
  449. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.eot +0 -0
  450. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.svg +0 -18
  451. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.ttf +0 -0
  452. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.woff +0 -0
  453. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.eot +0 -0
  454. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.svg +0 -62
  455. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.ttf +0 -0
  456. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.woff +0 -0
  457. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.woff2 +0 -0
  458. package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.eot +0 -0
  459. package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.svg +0 -43
  460. package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.ttf +0 -0
  461. package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.woff +0 -0
  462. package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.eot +0 -0
  463. package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.svg +0 -49
  464. package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.ttf +0 -0
  465. package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.woff +0 -0
  466. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.eot +0 -0
  467. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.svg +0 -41
  468. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.ttf +0 -0
  469. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.woff +0 -0
  470. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.woff2 +0 -0
  471. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.eot +0 -0
  472. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.svg +0 -11
  473. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.ttf +0 -0
  474. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.woff +0 -0
  475. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.eot +0 -0
  476. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.svg +0 -11
  477. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.ttf +0 -0
  478. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.woff +0 -0
  479. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.eot +0 -0
  480. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.svg +0 -41
  481. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.ttf +0 -0
  482. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.woff +0 -0
  483. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.woff2 +0 -0
  484. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.eot +0 -0
  485. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.svg +0 -12
  486. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.ttf +0 -0
  487. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.woff +0 -0
  488. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.eot +0 -0
  489. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.svg +0 -17
  490. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.ttf +0 -0
  491. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.woff +0 -0
  492. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.woff2 +0 -0
  493. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.eot +0 -0
  494. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.svg +0 -11
  495. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.ttf +0 -0
  496. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.woff +0 -0
  497. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.eot +0 -0
  498. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.svg +0 -11
  499. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.ttf +0 -0
  500. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.woff +0 -0
  501. package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.eot +0 -0
  502. package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.svg +0 -12
  503. package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.ttf +0 -0
  504. package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.woff +0 -0
  505. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.eot +0 -0
  506. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.svg +0 -17
  507. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.ttf +0 -0
  508. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.woff +0 -0
  509. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.woff2 +0 -0
  510. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.eot +0 -0
  511. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.svg +0 -50
  512. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.ttf +0 -0
  513. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.woff +0 -0
  514. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.woff2 +0 -0
  515. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.eot +0 -0
  516. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.svg +0 -17
  517. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.ttf +0 -0
  518. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.woff +0 -0
  519. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.woff2 +0 -0
  520. package/dist/content/icons/font-awesome/webfonts/fa-brands-400.ttf +0 -0
  521. package/dist/content/icons/font-awesome/webfonts/fa-regular-400.ttf +0 -0
  522. package/dist/content/icons/font-awesome/webfonts/fa-solid-900.ttf +0 -0
  523. package/dist/content/icons/font-awesome/webfonts/fa-v4compatibility.ttf +0 -0
  524. package/dist/index.cjs.js.map +0 -1
  525. package/dist/index.css.map +0 -1
  526. package/dist/index.d.ts.map +0 -1
  527. package/dist/index.esm.js +0 -4836
  528. package/dist/src/common/functions/reactor.d.ts +0 -2
  529. package/dist/src/common/functions/reactor.d.ts.map +0 -1
  530. package/dist/src/components/control/input/chipper/CwChip.d.ts +0 -12
  531. package/dist/src/components/control/input/chipper/CwChip.d.ts.map +0 -1
  532. package/dist/src/components/custom/scheduler/components/ClearSchedulerButton.d.ts +0 -8
  533. package/dist/src/components/custom/scheduler/components/ClearSchedulerButton.d.ts.map +0 -1
  534. package/dist/src/components/custom/scheduler/logic/filtering/filterAndProcessResources.d.ts +0 -14
  535. package/dist/src/components/custom/scheduler/logic/filtering/filterAndProcessResources.d.ts.map +0 -1
  536. package/dist/src/components/custom/scheduler/logic/pixels/calculateMaxPxFromDateRange.d.ts +0 -2
  537. package/dist/src/components/custom/scheduler/logic/pixels/calculateMaxPxFromDateRange.d.ts.map +0 -1
  538. package/dist/src/components/custom/scheduler/logic/state_handle/handleDateChange.d.ts +0 -5
  539. package/dist/src/components/custom/scheduler/logic/state_handle/handleDateChange.d.ts.map +0 -1
  540. package/dist/src/components/custom/scheduler/logic/state_handle/handlePropChanges.d.ts +0 -5
  541. package/dist/src/components/custom/scheduler/logic/state_handle/handlePropChanges.d.ts.map +0 -1
  542. package/dist/src/components/custom/scheduler/logic/state_handle/onResizeEvent.d.ts +0 -3
  543. package/dist/src/components/custom/scheduler/logic/state_handle/onResizeEvent.d.ts.map +0 -1
  544. package/dist/src/components/custom/scheduler/logic/ui/getHasPropsChanged.d.ts +0 -3
  545. package/dist/src/components/custom/scheduler/logic/ui/getHasPropsChanged.d.ts.map +0 -1
  546. package/dist/src/components/custom/scheduler/logic/ui/shouldTriggerScroll.d.ts +0 -3
  547. package/dist/src/components/custom/scheduler/logic/ui/shouldTriggerScroll.d.ts.map +0 -1
  548. package/dist/src/components/custom/scheduler/state/EventProps.d.ts +0 -7
  549. package/dist/src/components/custom/scheduler/state/EventProps.d.ts.map +0 -1
  550. package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgrounEvent.d.ts +0 -1
  551. package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgrounEvent.d.ts.map +0 -1
  552. package/dist/src/components/custom/scheduler-new/presentation/components/row/cancellablePromise.d.ts +0 -7
  553. package/dist/src/components/custom/scheduler-new/presentation/components/row/cancellablePromise.d.ts.map +0 -1
  554. package/dist/src/components/custom/scheduler-new/presentation/components/row/useCancellablePromise.d.ts +0 -7
  555. package/dist/src/components/custom/scheduler-new/presentation/components/row/useCancellablePromise.d.ts.map +0 -1
  556. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsByResource.d.ts +0 -5
  557. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsByResource.d.ts.map +0 -1
  558. package/dist/src/components/custom/scheduler-new/presentation/state/external/Event.d.ts +0 -9
  559. package/dist/src/components/custom/scheduler-new/presentation/state/external/Event.d.ts.map +0 -1
  560. package/dist/src/components/custom/scheduler-new/presentation/state/external/Row.d.ts +0 -5
  561. package/dist/src/components/custom/scheduler-new/presentation/state/external/Row.d.ts.map +0 -1
  562. package/dist/src/components/custom/scheduler-new/presentation/state/ui/EventSideDragState.d.ts +0 -6
  563. package/dist/src/components/custom/scheduler-new/presentation/state/ui/EventSideDragState.d.ts.map +0 -1
  564. package/dist/src/components/custom/scheduler-new/presentation/state/ui/HeaderDivision.d.ts +0 -5
  565. package/dist/src/components/custom/scheduler-new/presentation/state/ui/HeaderDivision.d.ts.map +0 -1
  566. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerEventState.d.ts +0 -14
  567. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerEventState.d.ts.map +0 -1
  568. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerHeaderState.d.ts +0 -11
  569. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerHeaderState.d.ts.map +0 -1
  570. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerRow.d.ts +0 -8
  571. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerRow.d.ts.map +0 -1
  572. package/dist/test/components/custom/newScheduler/presentation/logic/getDefaultDivisions.test.d.ts.map +0 -1
  573. package/dist/test/components/custom/scheduler/calculateMaxPxFromDateRange.test.d.ts +0 -2
  574. package/dist/test/components/custom/scheduler/calculateMaxPxFromDateRange.test.d.ts.map +0 -1
  575. package/dist/test/components/custom/scheduler/filterEvents.test.d.ts.map +0 -1
  576. package/dist/test/components/custom/scheduler/shouldTriggerScroll.test.d.ts.map +0 -1
  577. package/dist/test/example.test.d.ts +0 -1
  578. package/dist/test/example.test.d.ts.map +0 -1
  579. /package/dist/src/{components/custom/scheduler-new/presentation/TestScheduler.d.ts → common/interfaces/CwSelectListProps.js} +0 -0
  580. /package/dist/{test/components/custom/newScheduler/presentation/logic/getDefaultDivisions.test.d.ts → src/components/custom/scheduler-new/presentation/components/header/SchedulerHeaderState.js} +0 -0
  581. /package/dist/{test/components/custom/newScheduler/presentation/logic/hoursBetween.test.d.ts → src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.js} +0 -0
  582. /package/dist/{test/components/custom/newScheduler/presentation/logic/weekendCalc.test.d.ts → src/components/custom/scheduler-new/presentation/state/ui/WeekRange.js} +0 -0
  583. /package/dist/{test/components/custom/scheduler/filterEvents.test.d.ts → src/components/custom/scheduler-temporal/state/CwSchedulerProps.js} +0 -0
  584. /package/dist/{test/components/custom/scheduler/shouldTriggerScroll.test.d.ts → src/components/custom/scheduler-temporal/state/State.js} +0 -0
@@ -0,0 +1,211 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import moment from "moment";
3
+ import { Component } from "react";
4
+ import { ResourcesTitleList } from "./components/resources_title_list/ResourcesTitleList";
5
+ import { SchedulerContentArea } from "./components/scheduler_content_area/SchedulerContentArea";
6
+ import { SchedulerHeader } from "./components/scheduler_header/SchedulerHeader";
7
+ import { addMinutesToDateFromPx } from "./logic/dates/addMinutesToDateFromPx";
8
+ import { daysBetweenTwoDates } from "./logic/dates/daysBetweenTwoDates";
9
+ import { daysBetweenTwoDatesIncludingBoth } from "./logic/dates/daysBetweenTwoDatesWithoutCeil";
10
+ import { getUtcToday } from "./logic/dates/getUtcToday";
11
+ import { calculateDivisions } from "./logic/divisions/calculateDivisions";
12
+ import { filterEvents } from "./logic/filtering/filterEvents";
13
+ import { filterResources } from "./logic/filtering/filterResources";
14
+ import { heightScheduler } from "./logic/pixels/heightScheduler";
15
+ import { getEventsInInnerRows } from "./logic/ui/getEventsOfResource";
16
+ import { getTimeHeaders } from "./logic/ui/getTimeHeaders";
17
+ export class CwScheduler extends Component {
18
+ contentArea;
19
+ calculateMaxPx = () => {
20
+ const mainElement = document.body;
21
+ const mainRect = mainElement.getBoundingClientRect();
22
+ return Math.floor(mainRect.width - 190);
23
+ };
24
+ constructor(props) {
25
+ super(props);
26
+ const maxPx = this.calculateMaxPx();
27
+ const timeHeaders = getTimeHeaders(props.startDate, props.endDate);
28
+ const dayPx = maxPx / Math.floor(daysBetweenTwoDates(props.startDate, props.endDate));
29
+ const hourPx = dayPx / 24;
30
+ const minutePx = dayPx / 1440;
31
+ window?.addEventListener("resize", this.handleResize);
32
+ const divisions = calculateDivisions(this.props.startDate, this.props.endDate);
33
+ const divisionsLeftPx = timeHeaders
34
+ .filter((_, index) => {
35
+ return index != 0 && index % (24 / divisions) == 0;
36
+ })
37
+ .map((date) => {
38
+ const daysDiff = daysBetweenTwoDatesIncludingBoth(date, props.startDate);
39
+ const pixels = daysDiff * 24 * hourPx;
40
+ return pixels;
41
+ });
42
+ this.state = {
43
+ maxPx: maxPx,
44
+ dayPx: dayPx,
45
+ hourPx: hourPx,
46
+ minutePx: minutePx,
47
+ timeHeaders: timeHeaders,
48
+ divisionsLeftPx: divisionsLeftPx,
49
+ eventHeight: 30,
50
+ resources: props.resources,
51
+ lineStyle: 0,
52
+ nowUtc: getUtcToday(),
53
+ division: divisions,
54
+ divisionType: "",
55
+ pinnedResources: props.pinnedResources ? props.pinnedResources : [],
56
+ selectedEvents: [],
57
+ showConsoleLogs: false, // Change to false to not show the console.log(...)
58
+ };
59
+ }
60
+ handleResize = () => {
61
+ const maxPx = this.calculateMaxPx();
62
+ const days = Math.floor(daysBetweenTwoDates(this.props.startDate, this.props.endDate));
63
+ const dayPx = maxPx / days;
64
+ const hourPx = dayPx / 24;
65
+ const updated = { ...this.state, maxPx: maxPx, hourPx: hourPx, dayPx: dayPx };
66
+ this.setState(updated);
67
+ };
68
+ objectsEqual = (o1, o2) => {
69
+ Object.keys(o1).length === Object.keys(o2).length && Object.keys(o1).every((p) => o1[p] === o2[p]);
70
+ };
71
+ objectsEqualDeep = (o1, o2) => typeof o1 === "object" && Object.keys(o1).length > 0
72
+ ? Object.keys(o1).length === Object.keys(o2).length &&
73
+ Object.keys(o1).every((p) => this.objectsEqual(o1[p], o2[p]))
74
+ : o1 === o2;
75
+ arraysEqual = (a1, a2) => a1.length === a2.length && a1.every((o, idx) => this.objectsEqualDeep(o, a2[idx]));
76
+ componentWillReceiveProps(_nextProps) {
77
+ if (this.state.showConsoleLogs) {
78
+ console.log("Schedule - componentWillReceiveProps, start: ", moment(new Date()).toString());
79
+ console.log("Schedule - componentWillReceiveProps - has changes, start: ", moment(new Date()).toString());
80
+ }
81
+ const dateChange = _nextProps.startDate.toISOString() !== this.props.startDate.toISOString() ||
82
+ _nextProps.endDate.toISOString() !== this.props.endDate.toISOString();
83
+ if (dateChange) {
84
+ const startDate = _nextProps.startDate;
85
+ const endDate = _nextProps.endDate;
86
+ const maxPx = this.calculateMaxPx();
87
+ const timeHeaders = getTimeHeaders(startDate, endDate);
88
+ const days = Math.floor(daysBetweenTwoDates(startDate, endDate));
89
+ const dayPx = maxPx / days;
90
+ const hourPx = dayPx / 24;
91
+ const minutePx = dayPx / 1440;
92
+ const now = getUtcToday();
93
+ const isInDateRange = now >= startDate && now <= endDate && this.contentArea !== undefined;
94
+ const lineStyle = isInDateRange ? daysBetweenTwoDatesIncludingBoth(startDate, now) * dayPx : 0;
95
+ const divisions = calculateDivisions(startDate, endDate);
96
+ const divisionsLeftPx = timeHeaders
97
+ .filter((_, index) => {
98
+ return index != 0 && index % (24 / divisions) == 0;
99
+ })
100
+ .map((date) => {
101
+ const daysDiff = daysBetweenTwoDatesIncludingBoth(date, startDate);
102
+ const pixels = daysDiff * dayPx;
103
+ return pixels;
104
+ });
105
+ this.setState({
106
+ maxPx: maxPx, // window.screen.width * 0.9,
107
+ dayPx: dayPx,
108
+ hourPx: hourPx,
109
+ minutePx: minutePx,
110
+ timeHeaders: timeHeaders,
111
+ divisionsLeftPx: divisionsLeftPx,
112
+ resources: this.getNewResources(_nextProps, dayPx),
113
+ lineStyle: lineStyle,
114
+ nowUtc: now,
115
+ division: divisions,
116
+ divisionType: "",
117
+ pinnedResources: this.props.pinnedResources ?? [],
118
+ });
119
+ if (this.state.showConsoleLogs) {
120
+ console.log("Schedule - componentWillReceiveProps - print on schedule, end: ", moment(new Date()).toString());
121
+ console.log("Schedule - componentWillReceiveProps, end: ", moment(new Date()).toString());
122
+ }
123
+ return;
124
+ }
125
+ const areSameEvents = this.arraysEqual(_nextProps.events, this.props.events);
126
+ const areSameRows = this.arraysEqual(_nextProps.resources, this.props.resources);
127
+ if (!areSameEvents || !areSameRows) {
128
+ const startDate = _nextProps.startDate;
129
+ const endDate = _nextProps.endDate;
130
+ const maxPx = this.calculateMaxPx();
131
+ const days = Math.floor(daysBetweenTwoDates(startDate, endDate));
132
+ const dayPx = maxPx / days;
133
+ this.setState({
134
+ resources: this.getNewResources(_nextProps, dayPx),
135
+ });
136
+ return;
137
+ }
138
+ }
139
+ getNewResources = (_nextProps, dayPx) => {
140
+ const mappedEvents = filterEvents(_nextProps.events, _nextProps.startDate, _nextProps.endDate, this.props.id, this.props.module)
141
+ .filter((event) => {
142
+ const outOfRange = event.end <= this.props.startDate || event.start >= this.props.endDate;
143
+ return !outOfRange;
144
+ });
145
+ const resources = filterResources(this.props.module, this.props.resourceName, _nextProps.resources, this.props.groupByFunction, _nextProps.endDate, _nextProps.startDate, this.props.id);
146
+ const newResources = resources
147
+ .map((resource) => {
148
+ return {
149
+ ...resource,
150
+ events: mappedEvents.filter((event) => event.resourceId === resource.id),
151
+ };
152
+ })
153
+ .map((resource) => {
154
+ const tops = getEventsInInnerRows(resource, this.state.eventHeight, dayPx, _nextProps.startDate);
155
+ const height = tops.length === 0 ? this.state.eventHeight : tops.length * this.state.eventHeight;
156
+ let flatMapEvents = [];
157
+ for (let h = 0; h < tops.length; h++) {
158
+ flatMapEvents = flatMapEvents.concat(tops[h]);
159
+ }
160
+ return {
161
+ ...resource,
162
+ maxTop: height,
163
+ events: flatMapEvents,
164
+ };
165
+ });
166
+ return newResources;
167
+ };
168
+ handleOnClickContextMenuResourceScheduler = (_clickEvent, _resource) => {
169
+ let datetime = new Date();
170
+ const _ca = this.contentArea;
171
+ if (_clickEvent.domEvent.currentTarget !== undefined) {
172
+ const leftPos = _clickEvent.domEvent.currentTarget.parentElement.getBoundingClientRect().left -
173
+ (_ca?.getBoundingClientRect()?.left ?? 0) -
174
+ window.scrollX;
175
+ datetime = addMinutesToDateFromPx(this.props.startDate, leftPos, this.state.minutePx);
176
+ }
177
+ if (this.props.scheduler_handleOnClickContextMenuResource) {
178
+ this.props.scheduler_handleOnClickContextMenuResource(datetime, _resource, _clickEvent.key, this.props.id);
179
+ }
180
+ };
181
+ handleCrewPinning = (resource, text) => {
182
+ if (this.props.scheduler_handlePinned) {
183
+ this.props.scheduler_handlePinned.call(this.props.parent, resource.id, text, this.props.id);
184
+ }
185
+ };
186
+ render() {
187
+ const isInDateRange = this.state.nowUtc >= this.props.startDate &&
188
+ this.state.nowUtc <= this.props.endDate &&
189
+ this.contentArea !== undefined;
190
+ const showTimeline = isInDateRange && this.state.lineStyle < this.state.maxPx;
191
+ const isPinnedTable = this.props.id.toLowerCase().includes("pinned");
192
+ const schedulerHeight = heightScheduler(this.state.resources, this.props.height, this.props.id === "crewAssignmentsScheduler");
193
+ return (_jsx("div", { id: this.props.id, style: {
194
+ maxHeight: isPinnedTable ? "auto" : schedulerHeight,
195
+ }, className: this.state.resources.length > 0 ? "cwellt_tb_con" : "cwellt_tb_con cw_tb_con_emptyValues", children: _jsxs("table", { id: "cwelltTableScheduler", children: [this.props.id !== "crewAssignmentsScheduler" && (_jsx(SchedulerHeader, { timelineProps: {
196
+ maxPx: this.state.maxPx,
197
+ hoursList: this.state.timeHeaders,
198
+ pxPerHour: this.state.hourPx,
199
+ startDate: this.props.startDate,
200
+ endDate: this.props.endDate,
201
+ headerName: this.props.resourceName,
202
+ }, descriptionColumn: this.props.descriptionColumn })), _jsx("tbody", { style: {
203
+ width: this.state.maxPx + 150,
204
+ maxHeight: isPinnedTable ? "auto" : schedulerHeight,
205
+ }, className: isPinnedTable ? "fc-body cw-fc-body-pinned" : "fc-body", children: _jsxs("tr", { className: "fc_body_row", children: [_jsx(ResourcesTitleList, { resources: this.state.resources, canBePinned: this.props.canBePinned ?? false, includesPinned: this.props.id.toLowerCase().includes("pinned"), onCrewPinning: this.handleCrewPinning, onClickResourceContextMenu: (_e, resource) => {
206
+ if (this.props.scheduler_handleOnClickResourceContextMenu) {
207
+ this.props.scheduler_handleOnClickResourceContextMenu(_e, resource);
208
+ }
209
+ }, ResourceTitleComponent: this.props.resourceComp }), _jsx("td", { className: "dividerArea" }), _jsx(SchedulerContentArea, { now: this.state.nowUtc, showTimeline: showTimeline, timeSeparatorLeftPx: this.state.divisionsLeftPx, timeLineLeftPx: this.state.lineStyle, resources: this.state.resources, contextMenuContents: this.props.resourceContextMenuContents, scheduler: this, onEmptyClick: this.props.scheduler_handleEmptyClick, setContentArea: (n) => (this.contentArea = n), onClickContextMenu: this.handleOnClickContextMenuResourceScheduler })] }) })] }) }));
210
+ }
211
+ }
@@ -0,0 +1,269 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import _ from "lodash";
3
+ import * as React from "react";
4
+ import { CwButton } from "../../control/action/button/CwButton";
5
+ import { CwScheduler } from "./CwSchedulerComp";
6
+ let topsCounter = 0;
7
+ export class CwSuperScheduler extends React.Component {
8
+ constructor(Props) {
9
+ super(Props);
10
+ this.state = {
11
+ topsCalculated: 0,
12
+ height: 50,
13
+ dataConfig: this.props.dataConfig ? this.props.dataConfig : undefined,
14
+ pinnedResources: []
15
+ };
16
+ }
17
+ componentDidUpdate(_previousProps, _previousState) {
18
+ if (this.props.pinnedResources !== _previousProps.pinnedResources) {
19
+ let returnedTops = 0;
20
+ let returnedHeight = 50;
21
+ let data;
22
+ if (this.props.pinnedResources) {
23
+ let pinned = [...this.props.pinnedResources];
24
+ pinned = _.uniq(pinned);
25
+ for (let i = 0; i < pinned.length; i++) {
26
+ data = this.returnDynamicHeight(pinned[i], returnedTops);
27
+ returnedTops = data.topsCalculated;
28
+ returnedHeight = data.height;
29
+ }
30
+ this.setState({
31
+ topsCalculated: returnedTops,
32
+ height: returnedHeight !== 50 ? 80 + returnedHeight : 50,
33
+ pinnedResources: this.props.pinnedResources
34
+ });
35
+ }
36
+ }
37
+ }
38
+ scheduler_handleCblEventClick = (cblEvent, schedulerId) => {
39
+ this.props.scheduler_handleCblEventClick(cblEvent, schedulerId);
40
+ };
41
+ scheduler_handleCblEventClickRight = (cblEvent, schedulerId) => {
42
+ if (this.props.scheduler_handleCblEventClickRight) {
43
+ this.props.scheduler_handleCblEventClickRight(cblEvent, schedulerId);
44
+ }
45
+ };
46
+ scheduler_handleCblEventDoubleClick = (cblEvent, schedulerId) => {
47
+ this.props.scheduler_handleCblEventDoubleClick(cblEvent, schedulerId);
48
+ };
49
+ scheduler_handlePinnedClickMultipleIds = (resIds, schedulerId, requestString) => {
50
+ this.props.scheduler_handlePinningOfResources(resIds, "", schedulerId, requestString);
51
+ };
52
+ scheduler_handlePinnedClick = (resId, text, schedulerId) => {
53
+ const array = new Array();
54
+ array.push(resId);
55
+ this.props.scheduler_handlePinningOfResources(array, text, schedulerId, "resources");
56
+ };
57
+ returnDynamicHeight(pinned, topsCalculated) {
58
+ let height = 100;
59
+ let maxTop = 0;
60
+ const eventHeight = 30;
61
+ const tops = new Array();
62
+ tops[0] = new Array();
63
+ const diffDates = this.props.endDate.getTime() - this.props.startDate.getTime();
64
+ const diffDays = diffDates / (1000 * 3600 * 24);
65
+ const dateToFilter = new Date(this.props.startDate.getTime());
66
+ dateToFilter.setDate(dateToFilter.getDate() + diffDays);
67
+ let events = this.props.pinnedEvents !== undefined ? this.props.pinnedEvents : new Array();
68
+ events = events
69
+ .filter(x => pinned === x.resourceId && x.start >= this.props.startDate && x.start <= dateToFilter)
70
+ .sort((a, b) => {
71
+ return +new Date(a.start) - +new Date(b.start);
72
+ });
73
+ for (let i = 0; i < events.length; i++) {
74
+ const event = events[i];
75
+ if (i === 0 || event.isFullHeight) {
76
+ tops[0].push(event);
77
+ }
78
+ else {
79
+ let found = false;
80
+ for (let j = 0; j < tops.length && found === false; j++) {
81
+ found = this.checkIfSlotAvailable(tops[j], event);
82
+ if (found === true || event.isFullHeight) {
83
+ tops[j].push(event);
84
+ }
85
+ }
86
+ if (found === false) {
87
+ maxTop++;
88
+ tops[maxTop] = new Array();
89
+ tops[maxTop].push(event);
90
+ }
91
+ }
92
+ }
93
+ for (let h = 0; h < tops.length; h++) {
94
+ if (tops.length === 0) {
95
+ height = 100;
96
+ }
97
+ else {
98
+ height = (topsCalculated + tops.length) * eventHeight;
99
+ }
100
+ }
101
+ topsCounter = topsCounter + tops.length;
102
+ return {
103
+ topsCalculated: topsCalculated + tops.length,
104
+ height: height
105
+ };
106
+ }
107
+ checkIfSlotAvailable(array, event) {
108
+ let found = false;
109
+ if (array[array.length - 1].end <= event.start || array[array.length - 1].isFullHeight) {
110
+ found = true;
111
+ }
112
+ return found;
113
+ }
114
+ handleOnClickContextMenuResource = (date, resource, key, schedulerId) => {
115
+ let url = "";
116
+ switch (key) {
117
+ case "showReserves": {
118
+ // CrewControl
119
+ if (this.props.module === "CrewControl") {
120
+ url = "/Winops/CrewControl/CrewControlReact/GetCrewIdsOfReserve";
121
+ }
122
+ // CrewScheduling
123
+ if (this.props.module === "CrewScheduling") {
124
+ url = "/Winops/CrewPlanning/CrewPlanning/GetCrewIdsOfReserve";
125
+ }
126
+ const requestOptions = {
127
+ method: "POST",
128
+ headers: { "Content-Type": "application/json" },
129
+ body: JSON.stringify({
130
+ from: this.dateUTCString(this.props.startDate),
131
+ to: this.dateUTCString(this.props.endDate),
132
+ acftCategories: [],
133
+ functions: [],
134
+ clickedDate: this.dateUTCString(date),
135
+ airportSelected: this.props.airportSelected
136
+ })
137
+ };
138
+ if (this.state.dataConfig) {
139
+ fetch(this.state.dataConfig + url, requestOptions)
140
+ .then(response => response.json())
141
+ .then(res => {
142
+ if (res.length > 0) {
143
+ this.scheduler_handlePinnedClickMultipleIds(res, schedulerId, "Reserves");
144
+ }
145
+ else {
146
+ alert("No Reserves");
147
+ }
148
+ });
149
+ }
150
+ break;
151
+ }
152
+ case "showStandbys": {
153
+ // CrewControl
154
+ if (this.props.module === "CrewControl") {
155
+ url = "/Winops/CrewControl/CrewControlReact/GetCrewIdsOfStandby";
156
+ }
157
+ // CrewScheduling
158
+ if (this.props.module === "CrewScheduling") {
159
+ url = "/Winops/CrewPlanning/CrewPlanning/GetCrewIdsOfStandby";
160
+ }
161
+ const requestOptions2 = {
162
+ method: "POST",
163
+ headers: { "Content-Type": "application/json" },
164
+ body: JSON.stringify({
165
+ from: this.dateUTCString(this.props.startDate),
166
+ to: this.dateUTCString(this.props.startDate),
167
+ acftCategories: [],
168
+ functions: [],
169
+ clickedDate: this.dateUTCString(date),
170
+ airportSelected: this.props.airportSelected
171
+ })
172
+ };
173
+ if (this.state.dataConfig) {
174
+ fetch(this.state.dataConfig + url, requestOptions2)
175
+ .then(response => response.json())
176
+ .then(res => {
177
+ if (res.length > 0) {
178
+ this.scheduler_handlePinnedClickMultipleIds(res, schedulerId, "Standbys");
179
+ }
180
+ else {
181
+ alert("No Standbys");
182
+ }
183
+ });
184
+ }
185
+ break;
186
+ }
187
+ case "showAvailables": {
188
+ // CrewControl
189
+ if (this.props.module === "CrewControl") {
190
+ url = "/Winops/CrewControl/CrewControlReact/GetCrewIdsOfAvailables";
191
+ }
192
+ // CrewScheduling
193
+ if (this.props.module === "CrewScheduling") {
194
+ url = "/Winops/CrewPlanning/CrewPlanning/GetCrewIdsOfAvailables";
195
+ }
196
+ const requestOptions3 = {
197
+ method: "POST",
198
+ headers: { "Content-Type": "application/json" },
199
+ body: JSON.stringify({
200
+ from: this.dateUTCString(this.props.startDate),
201
+ to: this.dateUTCString(this.props.startDate),
202
+ acftCategories: [],
203
+ functions: [],
204
+ clickedDate: this.dateUTCString(date),
205
+ airportSelected: this.props.airportSelected
206
+ })
207
+ };
208
+ if (this.state.dataConfig) {
209
+ fetch(this.state.dataConfig + url, requestOptions3)
210
+ .then(response => response.json())
211
+ .then(res => {
212
+ if (res.length > 0) {
213
+ this.scheduler_handlePinnedClickMultipleIds(res, schedulerId, "Availables");
214
+ }
215
+ else {
216
+ alert("No Availables");
217
+ }
218
+ });
219
+ }
220
+ break;
221
+ }
222
+ default: {
223
+ if (this.props.scheduler_handleOnClickContextMenuResource) {
224
+ this.props.scheduler_handleOnClickContextMenuResource(date, resource, key);
225
+ }
226
+ break;
227
+ }
228
+ }
229
+ };
230
+ dateUTCString(date) {
231
+ if (date instanceof Date) {
232
+ if (date.getFullYear() > 1901)
233
+ return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes())).toISOString();
234
+ }
235
+ return date;
236
+ }
237
+ render() {
238
+ const havePinnedResources = this.state.pinnedResources?.length > 0;
239
+ const firstSchedulerResources = havePinnedResources
240
+ ? this.props.resourcesToPin.filter(x => this.state.pinnedResources.includes(x.id))
241
+ : new Array();
242
+ const secondSchedulerResources = this.props.resources.filter(x => !this.state.pinnedResources.includes(x.id));
243
+ const pinnedEvents = this.props.pinnedEvents !== undefined
244
+ ? this.props.pinnedEvents.filter(x => this.state.pinnedResources.includes(x.resourceId))
245
+ : new Array();
246
+ const notPinnedEvents = this.props.events.filter(x => !this.props.pinnedResources?.includes(x.resourceId));
247
+ return (_jsxs("div", { className: "cwelltSuperScheduler_content", children: [_jsx(CwScheduler, { id: "crewPinnedScheduler", events: pinnedEvents, resources: firstSchedulerResources, height: this.state.height, startDate: this.props.startDate, endDate: this.props.endDate, scheduler_handleCblEventClick: this.props.scheduler_handleCblEventClick, scheduler_handleCblEventClickRight: this.props.scheduler_handleCblEventClickRight, scheduler_handleCblEventDoubleClick: this.props.scheduler_handleCblEventDoubleClick, scheduler_handleOnDropCblEventsOnResource: this.props.scheduler_handleOnDropCblEventsOnResource, parent: this.props.parent, cblEventComp: this.props.cblEventComp, scheduler_handleOnClickEventContextMenu: this.props.scheduler_handleOnClickEventContextMenu, resourceComp: this.props.resourceComp, scheduler_handleOnClickContextMenuResource: this.props.scheduler_handleOnClickContextMenuResource, resourceContextMenuContents: this.props.resourceContextMenuContents, scheduler_handleDblClickOnResourceInScheduler: this.props.scheduler_handleDblClickOnResourceInScheduler, scheduler_handleEmptyClick: this.props.scheduler_handleEmptyClick, canBePinned: false, scheduler_handlePinned: this.scheduler_handlePinnedClick, resourceName: this.props.resourceName, descriptionColumn: this.props.descriptionColumn, scheduler_handleOnClickResourceContextMenu: this.props.scheduler_handleOnClickResourceContextMenu, groupByFunction: this.props.groupByFunction }), havePinnedResources && (_jsx("div", { style: { padding: "0.5rem" }, children: _jsx(CwButton, { text: "Clear", onClick: () => {
248
+ this.props.scheduler_handleClearPinnedOnParent();
249
+ } }) })), _jsx(CwScheduler, { id: "crewAssignmentsScheduler", events: notPinnedEvents, resources: secondSchedulerResources, height: this.props.height, startDate: this.props.startDate, endDate: this.props.endDate, scheduler_handleCblEventClick: this.props.scheduler_handleCblEventClick, scheduler_handleCblEventClickRight: this.props.scheduler_handleCblEventClickRight, scheduler_handleCblEventDoubleClick: this.props.scheduler_handleCblEventDoubleClick, scheduler_handleOnDropCblEventsOnResource: this.props.scheduler_handleOnDropCblEventsOnResource, parent: this.props.parent, cblEventComp: this.props.cblEventComp, scheduler_handleOnClickEventContextMenu: this.props.scheduler_handleOnClickEventContextMenu, resourceComp: this.props.resourceComp, scheduler_handleOnClickContextMenuResource: this.handleOnClickContextMenuResource, resourceContextMenuContents: this.props.resourceContextMenuContents, scheduler_handleDblClickOnResourceInScheduler: this.props.scheduler_handleDblClickOnResourceInScheduler, scheduler_handleEmptyClick: this.props.scheduler_handleEmptyClick, canBePinned: true, scheduler_handlePinned: this.scheduler_handlePinnedClick, scheduler_handleCblEventResize: this.props.scheduler_handleCblEventResize, resourceName: this.props.resourceName, descriptionColumn: this.props.descriptionColumn, scheduler_handleOnClickResourceContextMenu: this.props.scheduler_handleOnClickResourceContextMenu, airportSelected: this.props.airportSelected, module: this.props.module, groupByFunction: this.props.groupByFunction })] }));
250
+ }
251
+ }
252
+ export class CblDragAndDrop {
253
+ fromId;
254
+ toId;
255
+ data;
256
+ droppedOnDate;
257
+ resizeFromStart;
258
+ resizeFromEnd;
259
+ isCtrlKey;
260
+ constructor(fromId, toId, data, droppedOnDate = null, resizeFromStart = null, resizeFromEnd = null, isCtrlKey = null) {
261
+ this.fromId = fromId;
262
+ this.toId = toId;
263
+ this.data = data;
264
+ this.droppedOnDate = droppedOnDate;
265
+ this.resizeFromStart = resizeFromStart;
266
+ this.resizeFromEnd = resizeFromEnd;
267
+ this.isCtrlKey = isCtrlKey;
268
+ }
269
+ }
@@ -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 " +
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);