@cwellt_software/cwellt-reactjs-lib 1.2.14 → 1.2.16

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 (272) hide show
  1. package/dist/deprecated/components/MultiSelect_deprecated_.d.ts +24 -0
  2. package/dist/deprecated/components/MultiSelect_deprecated_.d.ts.map +1 -0
  3. package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts +17 -0
  4. package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts.map +1 -0
  5. package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts +17 -0
  6. package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts.map +1 -0
  7. package/dist/deprecated/components/multiselect/CwMultiselect.d.ts +13 -0
  8. package/dist/deprecated/components/multiselect/CwMultiselect.d.ts.map +1 -0
  9. package/dist/deprecated/components/multiselect/CwOptionList.d.ts +14 -0
  10. package/dist/deprecated/components/multiselect/CwOptionList.d.ts.map +1 -0
  11. package/dist/deprecated/components/tag/CwTag.d.ts +15 -0
  12. package/dist/deprecated/components/tag/CwTag.d.ts.map +1 -0
  13. package/dist/index.cjs.js +116 -65
  14. package/dist/index.css +1 -1
  15. package/dist/index.d.ts +35 -2
  16. package/dist/index.es.js +116 -66
  17. package/dist/src/components/control/action/button/CwPopoverButton.d.ts +33 -0
  18. package/dist/src/components/control/action/button/CwPopoverButton.d.ts.map +1 -0
  19. package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts +19 -0
  20. package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts.map +1 -0
  21. package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts +21 -0
  22. package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts.map +1 -0
  23. package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts +35 -0
  24. package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts.map +1 -0
  25. package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts +47 -0
  26. package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts.map +1 -0
  27. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts +1 -12
  28. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts.map +1 -1
  29. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts +1 -11
  30. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts.map +1 -1
  31. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts +1 -1
  32. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts.map +1 -1
  33. package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts +1 -1
  34. package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts.map +1 -1
  35. package/dist/src/index.d.ts +1 -0
  36. package/dist/src/index.d.ts.map +1 -1
  37. package/package.json +2 -2
  38. package/dist/src/common/classes/CwSelectList.js +0 -12
  39. package/dist/src/common/classes/CwSelectListItems.js +0 -14
  40. package/dist/src/common/functions/collections.js +0 -18
  41. package/dist/src/common/functions/colorManipulation.js +0 -76
  42. package/dist/src/common/functions/dsl/UiEventDSL.js +0 -20
  43. package/dist/src/common/functions/useSingleAndDoubleClicks.js +0 -28
  44. package/dist/src/common/interfaces/CwSelectListProps.js +0 -1
  45. package/dist/src/components/control/action/button/CwButton.js +0 -13
  46. package/dist/src/components/control/action/buttons/CwButtons.js +0 -188
  47. package/dist/src/components/control/action/contextmenu/CwContextMenu.js +0 -43
  48. package/dist/src/components/control/action/contextual-menu/CwContextualMenu.js +0 -55
  49. package/dist/src/components/control/action/search/CwSearch.js +0 -67
  50. package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.js +0 -11
  51. package/dist/src/components/control/choice/checkbox/CwCheckbox.js +0 -15
  52. package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.js +0 -99
  53. package/dist/src/components/control/choice/dropdown/CwDropdown.js +0 -27
  54. package/dist/src/components/control/choice/dropdown/CwDropdownContainer.js +0 -30
  55. package/dist/src/components/control/choice/dropdown/CwDropdownFilter.js +0 -10
  56. package/dist/src/components/control/choice/multi-filter/CwMultiFilter.js +0 -298
  57. package/dist/src/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.js +0 -17
  58. package/dist/src/components/control/choice/multiselect/CwHeadFilter.js +0 -80
  59. package/dist/src/components/control/choice/multiselect/CwMultiselect.js +0 -393
  60. package/dist/src/components/control/choice/multiselect/CwOptionList.js +0 -36
  61. package/dist/src/components/control/choice/option/CwOption.js +0 -16
  62. package/dist/src/components/control/choice/select/CwSelect.js +0 -36
  63. package/dist/src/components/control/choice/toggle/CwToggle.js +0 -9
  64. package/dist/src/components/control/input/any/CwInput.js +0 -16
  65. package/dist/src/components/control/input/color/CwColorPicker.js +0 -210
  66. package/dist/src/components/control/input/color/CwInputColor.js +0 -142
  67. package/dist/src/components/control/input/date/CwInputDate.js +0 -29
  68. package/dist/src/components/control/input/date-picker/CwInputDatePicker.js +0 -109
  69. package/dist/src/components/control/input/date-text/CwInputDateText.js +0 -90
  70. package/dist/src/components/control/input/datetime/CwInputDatetime.js +0 -29
  71. package/dist/src/components/control/input/digit/CwDigit.js +0 -28
  72. package/dist/src/components/control/input/file/CwFileUpload.js +0 -52
  73. package/dist/src/components/control/input/file/CwFileUploadMultiple.js +0 -148
  74. package/dist/src/components/control/input/image/CwInputImage.js +0 -52
  75. package/dist/src/components/control/input/image-area/CwImageArea.js +0 -113
  76. package/dist/src/components/control/input/new-dates/example.d.ts +0 -2
  77. package/dist/src/components/control/input/new-dates/example.d.ts.map +0 -1
  78. package/dist/src/components/control/input/number/CwInputNumber.js +0 -11
  79. package/dist/src/components/control/input/phone/CwInputPhone.js +0 -24
  80. package/dist/src/components/control/input/text/CwInputText.js +0 -31
  81. package/dist/src/components/control/input/text-area/CwTextArea.js +0 -9
  82. package/dist/src/components/control/input/time/CwTime.js +0 -29
  83. package/dist/src/components/control/input/weekday/CwWeekdaySelector.js +0 -143
  84. package/dist/src/components/custom/find-airport/CwFindAirportComp.js +0 -240
  85. package/dist/src/components/custom/scheduler/CwSchedulerComp.js +0 -211
  86. package/dist/src/components/custom/scheduler/CwSuperSchedulerComp.js +0 -269
  87. package/dist/src/components/custom/scheduler/components/EventRender.js +0 -142
  88. package/dist/src/components/custom/scheduler/components/ResourceListRender.js +0 -12
  89. package/dist/src/components/custom/scheduler/components/ResourceRender.js +0 -26
  90. package/dist/src/components/custom/scheduler/components/day_headers/DayHeader.js +0 -13
  91. package/dist/src/components/custom/scheduler/components/day_headers/MonthHeader.js +0 -12
  92. package/dist/src/components/custom/scheduler/components/day_headers/MyDaysHeader.js +0 -62
  93. package/dist/src/components/custom/scheduler/components/day_headers/WeekHeader.js +0 -13
  94. package/dist/src/components/custom/scheduler/components/resources_title_list/ResourcesTitleList.js +0 -24
  95. package/dist/src/components/custom/scheduler/components/scheduler_content_area/SchedulerContentArea.js +0 -17
  96. package/dist/src/components/custom/scheduler/components/scheduler_header/SchedulerHeader.js +0 -26
  97. package/dist/src/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.js +0 -23
  98. package/dist/src/components/custom/scheduler/components/time_headers/TimeHeader.js +0 -31
  99. package/dist/src/components/custom/scheduler/components/time_headers/TimeHeaderRow.js +0 -16
  100. package/dist/src/components/custom/scheduler/components/time_line/TimeLine.js +0 -12
  101. package/dist/src/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.js +0 -5
  102. package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDates.js +0 -15
  103. package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.js +0 -5
  104. package/dist/src/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.js +0 -43
  105. package/dist/src/components/custom/scheduler/logic/dates/getMonthHeaderData.js +0 -35
  106. package/dist/src/components/custom/scheduler/logic/dates/getUtcToday.js +0 -6
  107. package/dist/src/components/custom/scheduler/logic/dates/getWeekHeaderDataFromWeekRange.js +0 -20
  108. package/dist/src/components/custom/scheduler/logic/dates/listOfDatesToWeeks.js +0 -55
  109. package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisionType.js +0 -13
  110. package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisions.js +0 -16
  111. package/dist/src/components/custom/scheduler/logic/filtering/filterEvents.js +0 -33
  112. package/dist/src/components/custom/scheduler/logic/filtering/filterResources.js +0 -14
  113. package/dist/src/components/custom/scheduler/logic/filtering/hasSameProperties.js +0 -10
  114. package/dist/src/components/custom/scheduler/logic/onDrop/OnDrop.js +0 -45
  115. package/dist/src/components/custom/scheduler/logic/pixels/getHeightLineScheduler.js +0 -14
  116. package/dist/src/components/custom/scheduler/logic/pixels/getPixelsForEvent.js +0 -32
  117. package/dist/src/components/custom/scheduler/logic/pixels/heightScheduler.js +0 -14
  118. package/dist/src/components/custom/scheduler/logic/pixels/heightSchedulerPinned.js +0 -9
  119. package/dist/src/components/custom/scheduler/logic/state_handle/doubleClickOnResource.js +0 -5
  120. package/dist/src/components/custom/scheduler/logic/state_handle/handleResourceChange.js +0 -11
  121. package/dist/src/components/custom/scheduler/logic/state_handle/onDragOver.js +0 -9
  122. package/dist/src/components/custom/scheduler/logic/state_handle/onDropEventToResource.js +0 -3
  123. package/dist/src/components/custom/scheduler/logic/strings/compareStrings.js +0 -7
  124. package/dist/src/components/custom/scheduler/logic/strings/getGUID.js +0 -7
  125. package/dist/src/components/custom/scheduler/logic/ui/checkIfSlotAvailable.js +0 -8
  126. package/dist/src/components/custom/scheduler/logic/ui/getEventsOfResource.js +0 -45
  127. package/dist/src/components/custom/scheduler/logic/ui/getTimeHeaders.js +0 -35
  128. package/dist/src/components/custom/scheduler/logic/ui/isAllowedToMove.js +0 -19
  129. package/dist/src/components/custom/scheduler/logic/ui/updateResourceVisibility.js +0 -15
  130. package/dist/src/components/custom/scheduler/state/CblDragAndDrop.js +0 -18
  131. package/dist/src/components/custom/scheduler/state/CwSchedulerProps.js +0 -1
  132. package/dist/src/components/custom/scheduler/state/Resource.js +0 -18
  133. package/dist/src/components/custom/scheduler/state/State.js +0 -1
  134. package/dist/src/components/custom/scheduler/state/cblEvent.js +0 -28
  135. package/dist/src/components/custom/scheduler/state/cblEventCompProps.js +0 -1
  136. package/dist/src/components/custom/scheduler/state/resourceCompProps2.js +0 -1
  137. package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.js +0 -123
  138. package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.js +0 -118
  139. package/dist/src/components/custom/scheduler-new/presentation/SchedulerPresenter.js +0 -166
  140. package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderDivision.js +0 -26
  141. package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderTitle.js +0 -8
  142. package/dist/src/components/custom/scheduler-new/presentation/components/header/SchedulerHeader.js +0 -86
  143. package/dist/src/components/custom/scheduler-new/presentation/components/header/SchedulerHeaderState.js +0 -1
  144. package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.js +0 -60
  145. package/dist/src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.js +0 -24
  146. package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.js +0 -150
  147. package/dist/src/components/custom/scheduler-new/presentation/components/row/EventSideDrag.js +0 -11
  148. package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.js +0 -176
  149. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.js +0 -8
  150. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.js +0 -39
  151. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.js +0 -8
  152. package/dist/src/components/custom/scheduler-new/presentation/helpers.js +0 -43
  153. package/dist/src/components/custom/scheduler-new/presentation/logic/WeekendCalc.js +0 -24
  154. package/dist/src/components/custom/scheduler-new/presentation/logic/dateFromPercentage.js +0 -7
  155. package/dist/src/components/custom/scheduler-new/presentation/logic/eventIsVisible.js +0 -7
  156. package/dist/src/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.js +0 -113
  157. package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.js +0 -21
  158. package/dist/src/components/custom/scheduler-new/presentation/logic/getEventSizes.js +0 -30
  159. package/dist/src/components/custom/scheduler-new/presentation/logic/getLinesByDivisions.js +0 -13
  160. package/dist/src/components/custom/scheduler-new/presentation/logic/getPercentageFromMouseEvent.js +0 -7
  161. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.js +0 -32
  162. package/dist/src/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.js +0 -12
  163. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.js +0 -1
  164. package/dist/src/components/custom/scheduler-new/presentation/state/ui/WeekRange.js +0 -1
  165. package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.js +0 -267
  166. package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.js +0 -269
  167. package/dist/src/components/custom/scheduler-temporal/components/EventRender.js +0 -142
  168. package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.js +0 -12
  169. package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.js +0 -26
  170. package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.js +0 -13
  171. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.js +0 -12
  172. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.js +0 -62
  173. package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.js +0 -13
  174. package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.js +0 -22
  175. package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.js +0 -17
  176. package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.js +0 -26
  177. package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.js +0 -23
  178. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.js +0 -31
  179. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.js +0 -16
  180. package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.js +0 -12
  181. package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.js +0 -5
  182. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.js +0 -15
  183. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.js +0 -5
  184. package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.js +0 -43
  185. package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.js +0 -35
  186. package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.js +0 -6
  187. package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.js +0 -20
  188. package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.js +0 -55
  189. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.js +0 -13
  190. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.js +0 -16
  191. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.js +0 -10
  192. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.js +0 -34
  193. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.js +0 -14
  194. package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.js +0 -10
  195. package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.js +0 -36
  196. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.js +0 -14
  197. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.js +0 -32
  198. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.js +0 -14
  199. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.js +0 -9
  200. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.js +0 -5
  201. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.js +0 -178
  202. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.js +0 -11
  203. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.js +0 -9
  204. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.js +0 -3
  205. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.js +0 -3
  206. package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.js +0 -7
  207. package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.js +0 -7
  208. package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.js +0 -9
  209. package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.js +0 -92
  210. package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.js +0 -242
  211. package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.js +0 -35
  212. package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.js +0 -19
  213. package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.js +0 -241
  214. package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.js +0 -15
  215. package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.js +0 -18
  216. package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.js +0 -1
  217. package/dist/src/components/custom/scheduler-temporal/state/Resource.js +0 -18
  218. package/dist/src/components/custom/scheduler-temporal/state/State.js +0 -1
  219. package/dist/src/components/custom/scheduler-temporal/state/cblEvent.js +0 -28
  220. package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.js +0 -1
  221. package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.js +0 -1
  222. package/dist/src/components/custom/super-scheduler/PinRowHeader.js +0 -53
  223. package/dist/src/components/custom/super-scheduler/SuperScheduler.js +0 -23
  224. package/dist/src/components/custom/super-scheduler/SuperSchedulerEvents.js +0 -15
  225. package/dist/src/components/custom/super-scheduler/SuperSchedulerPresenter.js +0 -45
  226. package/dist/src/components/display/data/accordion/CwAccordionContainer.js +0 -20
  227. package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.js +0 -138
  228. package/dist/src/components/display/data/table/CwTable.js +0 -203
  229. package/dist/src/components/display/graphics/icon/CwIcon.js +0 -23
  230. package/dist/src/components/display/graphics/loading/CwLoading.js +0 -27
  231. package/dist/src/components/display/graphics/loading-small/CwLoadingSmall.js +0 -20
  232. package/dist/src/components/display/text/heading/CwHeadingMain.js +0 -5
  233. package/dist/src/components/display/text/heading/CwHeadingSecond.js +0 -5
  234. package/dist/src/components/display/text/label/CwLabel.js +0 -13
  235. package/dist/src/components/display/text/message/CwMessage.js +0 -75
  236. package/dist/src/components/display/text/note/CwNote.js +0 -78
  237. package/dist/src/components/display/text/tag/CwChip.js +0 -57
  238. package/dist/src/components/display/text/tag/CwTag.js +0 -21
  239. package/dist/src/components/display/text/tooltip/CwTooltip.js +0 -4
  240. package/dist/src/components/layout/align/CwAlign.js +0 -54
  241. package/dist/src/components/layout/card/CwCard.js +0 -55
  242. package/dist/src/components/layout/card/CwCardList.js +0 -38
  243. package/dist/src/components/layout/dialog/CwDialog.js +0 -255
  244. package/dist/src/components/layout/dialog/CwDialogManager.js +0 -44
  245. package/dist/src/components/layout/list/details/CwExpandable.js +0 -28
  246. package/dist/src/components/layout/list/key-value/CwKeyValueList.js +0 -23
  247. package/dist/src/components/layout/list/sortable/CwSortableList.js +0 -73
  248. package/dist/src/components/layout/list/sortable/useSortableList.js +0 -53
  249. package/dist/src/components/layout/modal/CwModalReportFunctional.js +0 -23
  250. package/dist/src/components/layout/modal/hover/CwModalHover.js +0 -61
  251. package/dist/src/components/layout/modal/legacy/cw_modal.js +0 -44
  252. package/dist/src/components/layout/modal/legacy/cw_modal_confirm.js +0 -39
  253. package/dist/src/components/layout/modal/legacy/cw_modal_iframe.js +0 -44
  254. package/dist/src/components/layout/modal/legacy/cw_modal_report.js +0 -26
  255. package/dist/src/components/layout/table/grouped/CwTableGrouped.js +0 -70
  256. package/dist/src/components/layout/tabs/CwTabs.js +0 -53
  257. package/dist/src/index.js +0 -187
  258. package/dist/test/components/custom/new-scheduler/presentation/logic/getDefaultDivisions.test.js +0 -48
  259. package/dist/test/components/custom/new-scheduler/presentation/logic/hoursBetween.test.js +0 -15
  260. package/dist/test/components/custom/new-scheduler/presentation/logic/monthDivisions.test.js +0 -42
  261. package/dist/test/components/custom/new-scheduler/presentation/logic/weekendCalc.test.js +0 -30
  262. package/dist/test/components/custom/scheduler/addMinutesToDateFromPx.test.js +0 -43
  263. package/dist/test/components/custom/scheduler/checkIfSlotAvailable.test.js +0 -30
  264. package/dist/test/components/custom/scheduler/daysBetweenTwoDates.test.js +0 -61
  265. package/dist/test/components/custom/scheduler/daysBetweenTwoDatesWithoutCeilForEvent.test.js +0 -27
  266. package/dist/test/components/custom/scheduler/getGUID.test.js +0 -30
  267. package/dist/test/components/custom/scheduler/getPixelsForEvent.test.js +0 -38
  268. package/dist/test/components/custom/scheduler/getTimeHeaders.test.js +0 -35
  269. package/dist/test/components/custom/scheduler/hasSameProperties.test.js +0 -51
  270. package/dist/test/components/custom/scheduler/isAllowedToMove.test.js +0 -28
  271. package/dist/test/components/custom/scheduler/listOfDatesToWeeks.test.js +0 -72
  272. package/dist/test/jest.setup.js +0 -1
@@ -1,61 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useEffect, useRef } from "react";
3
- /**
4
- * A modal that appears when an element is hovered
5
- * @param children Contents of the modal
6
- * @param hovereable Element to hover to display the modal
7
- * @param onFirstOpened Function to run only once when the modal opens for the first time
8
- * @example
9
- * <CwModalHover hovereable={<span>Hover me!</span>}>
10
- * <p>Hello there</p>
11
- * </CwModalHover>
12
- */
13
- export const CwModalHover = ({ children, hovereable, onFirstOpened, ...dialogProps }) => {
14
- // Do not turn these into useState, it will break it.
15
- const mouseDialogState = { isInsideDialog: false };
16
- const mouseHoverState = { isInsideHover: false };
17
- const isFirstOpening = { value: true };
18
- const dialogRef = useRef(null);
19
- const hoverRef = useRef(null);
20
- const tryClosingDialog = () => {
21
- setTimeout(() => {
22
- if (!mouseHoverState.isInsideHover && !mouseDialogState.isInsideDialog) {
23
- if (dialogRef.current) {
24
- dialogRef.current.open = false;
25
- }
26
- }
27
- }, 100);
28
- };
29
- const tryOpeningDialog = () => {
30
- setTimeout(() => {
31
- if (mouseHoverState.isInsideHover || mouseDialogState.isInsideDialog) {
32
- if (dialogRef.current) {
33
- dialogRef.current.open = true;
34
- if (!isFirstOpening.value) {
35
- isFirstOpening.value = true;
36
- onFirstOpened?.();
37
- }
38
- }
39
- }
40
- }, 50);
41
- };
42
- useEffect(() => {
43
- if (hoverRef.current) {
44
- hoverRef.current.onmouseenter = () => {
45
- mouseHoverState.isInsideHover = true;
46
- tryOpeningDialog();
47
- };
48
- hoverRef.current.onmouseleave = () => {
49
- mouseHoverState.isInsideHover = false;
50
- tryClosingDialog();
51
- };
52
- }
53
- }, [hoverRef]);
54
- return (_jsxs("div", { ref: hoverRef, className: "cw-modal-hover", children: [_jsx("div", { "data-hovereable-icon": true, children: hovereable }), _jsx("dialog", { ...dialogProps, ref: dialogRef, onMouseEnter: () => {
55
- mouseDialogState.isInsideDialog = true;
56
- tryOpeningDialog();
57
- }, onMouseLeave: () => {
58
- mouseDialogState.isInsideDialog = false;
59
- tryClosingDialog();
60
- }, children: children })] }));
61
- };
@@ -1,44 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Tooltip } from "antd";
3
- import { useRef, useState } from "react";
4
- // [ Draggable ]
5
- import Draggable from "react-draggable";
6
- // Reference for draggable modal
7
- export function CwModal(custModalProps) {
8
- const draggableRef = useRef(null);
9
- // Hooks [ modal draggable ]
10
- const [isModalDisabled, setModalDisabled] = useState(true);
11
- // [ optional : hideFooter by default it shows the footer ]
12
- const isHide = custModalProps.hideModalActions !== null && custModalProps.hideModalActions !== undefined
13
- ? custModalProps.hideModalActions
14
- : false;
15
- // [ Show custom button === true ? show : default buttons ]
16
- const isShowcustButton = custModalProps.ShowcustButton !== null && custModalProps.ShowcustButton !== undefined
17
- ? custModalProps.ShowcustButton
18
- : false;
19
- const cwelltOnMouseOverModal = () => {
20
- setModalDisabled(false);
21
- };
22
- // [ OnMouseOut ]
23
- const cwelltOnMouseOutModal = () => {
24
- setModalDisabled(true);
25
- };
26
- // Default size of modal
27
- const widthModalDef = custModalProps.widthModal !== null && custModalProps.widthModal !== undefined ? custModalProps.widthModal : "40em";
28
- const modalStyle = {
29
- // width default
30
- widthDefStyle: {
31
- width: "40em"
32
- },
33
- // width customizable
34
- widthCustomStyle: {
35
- width: custModalProps.widthModal
36
- }
37
- };
38
- return (_jsx("div", { children: custModalProps.modalState && (_jsxs("div", { className: custModalProps.classNameModalOverlay + " cwelltModalOverlay", children: [_jsx("div", { className: "cwelltModalOverlayBg", onClick: custModalProps.onCloseModal }), _jsx(Draggable, { disabled: isModalDisabled, axis: "both", nodeRef: draggableRef, children: _jsxs("div", { className: custModalProps.classNameModal + " cwelltContainerModal", ref: draggableRef, style: widthModalDef !== "40em" ? modalStyle.widthCustomStyle : modalStyle.widthDefStyle, children: [_jsxs("div", { className: "cwelltModalHeader", onMouseOver: cwelltOnMouseOverModal, onMouseOut: cwelltOnMouseOutModal, children: [_jsx("div", { className: "cwelltModalTitle", children: custModalProps.titleModal }), _jsx("button", { className: "cwelltBtnCloseModal", onClick: custModalProps.onCloseModal, children: _jsx("span", { className: "cwelltCloseIcon" }) })] }), _jsx("div", { className: "cwelltModalBody", children: _jsx("div", { className: "cwelltContainerModalBody", style: { position: "relative" }, children: custModalProps.children }) }), isHide === false ? (
39
- // [ false : show modal ]
40
- _jsxs("div", { className: "cwelltModalFooter", onMouseOver: cwelltOnMouseOverModal, onMouseOut: cwelltOnMouseOutModal, children: [_jsx(Tooltip, { placement: "bottom", title: "Save", color: "#368ee0", children: _jsx("div", { className: "cwellt_flex cwellt_justify_center cwelltModalFooterContButton", style: { width: "2em" }, children: _jsx("button", { className: "btnModalFooterAction cwellt_btn_act cwellt_btn_act_df cwellt_btn_Nbg cwellt_btn_save ", onClick: custModalProps.onSaveModal, form: custModalProps.formSaveModal, hidden: custModalProps.HideBtnModal, type: custModalProps.HtmlSubmitModal }) }) }), isShowcustButton === true ? (_jsx(Tooltip, { placement: "bottom", title: custModalProps.custButtonTitle, color: custModalProps.custColorButtonTooltip, children: _jsx("div", { className: "cwellt_flex cwellt_justify_center cwelltModalFooterContButton", style: { width: "2em" }, children: _jsx("button", { className: "btnModalFooterAction cwellt_btn_act cwellt_btn_act_df cwellt_btn_Nbg " +
41
- custModalProps.custButtonClassName, onClick: custModalProps.custButtonClick }) }) })) : (_jsx("div", {}))] })) : (
42
- // true [ do not show the modal ]
43
- _jsx("div", { style: { display: "none" } }))] }) })] })) }));
44
- }
@@ -1,39 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Tooltip } from "antd";
3
- import React, { useState } from "react";
4
- // [ Draggable ]
5
- import Draggable from "react-draggable";
6
- // Reference for draggable modal
7
- const draggableRef = React.createRef();
8
- export function CwModalConfirm(custModalProps) {
9
- const classNameOverlay = custModalProps.classNameModalOverlay !== null || custModalProps.classNameModalOverlay !== undefined
10
- ? ""
11
- : custModalProps.classNameModalOverlay;
12
- // Default size of modal
13
- const widthModalDef = custModalProps.widthModalConfirm !== null && custModalProps.widthModalConfirm !== undefined
14
- ? custModalProps.widthModalConfirm
15
- : "17em";
16
- const modalStyle = {
17
- // width default
18
- widthDefStyle: {
19
- width: "17em"
20
- },
21
- // width customizable
22
- widthCustomStyle: {
23
- width: custModalProps.widthModalConfirm
24
- }
25
- };
26
- // Hooks [ modal draggable ]
27
- const [ismodalDisabled, setModalDisabled] = useState(true);
28
- // [ onMouseOver ]
29
- const cwelltOnMouseOverModal = () => {
30
- setModalDisabled(false);
31
- };
32
- // [ OnMouseOut ]
33
- const cwelltOnMouseOutModal = () => {
34
- setModalDisabled(true);
35
- // finding parent element
36
- };
37
- return (_jsx("div", { children: custModalProps.modalStateConfirm && (_jsx("div", { className: classNameOverlay !== undefined ? custModalProps.classNameModalOverlay + " cwelltModalOverlay" : "", children: _jsx(Draggable, { disabled: ismodalDisabled, children: _jsxs("div", { className: " cwelltContainerModal", ref: draggableRef, style: widthModalDef !== "17em" ? modalStyle.widthCustomStyle : modalStyle.widthDefStyle, children: [_jsxs("div", { className: "cwelltModalHeader", onMouseOver: cwelltOnMouseOverModal, onMouseOut: cwelltOnMouseOutModal, children: [_jsx("div", { className: "cwelltModalTitle", children: custModalProps.headerTextConfirm }), _jsx("button", { className: "cwelltBtnCloseModal", onClick: custModalProps.onCloseModalConfirm, children: _jsx("span", { className: "cwelltCloseIcon" }) })] }), _jsx("div", { className: "cwelltModalBody", children: _jsxs("div", { className: "cwelltContainerModalBody", children: [_jsx("div", { className: "cwellt_content_r_df_align", children: _jsx("label", { className: "cwellt_modalConfirmDesc", children: custModalProps.descriptionModalConfirm }) }), _jsx("div", { style: { display: "none" }, children: custModalProps.children })] }) }), _jsx("div", { className: "cwelltModalFooter", onMouseOver: cwelltOnMouseOverModal, onMouseOut: cwelltOnMouseOutModal, children: _jsx(Tooltip, { placement: "bottom", title: custModalProps.confirmText, color: "#368ee0", children: _jsx("div", { className: "cwellt_flex cwellt_justify_center", style: { width: "2em" }, children: _jsx("button", { className: "btnModalFooterAction cwellt_btn_act cwellt_btn_act_df cwellt_btn_Nbg " +
38
- custModalProps.confirmClassName, onClick: custModalProps.onClickActionModalConfirm }) }) }) })] }) }) })) }));
39
- }
@@ -1,44 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Modal } from "antd";
3
- import * as React from "react";
4
- import Draggable from "react-draggable";
5
- export class CwModalIframe extends React.Component {
6
- constructor(Props) {
7
- super(Props);
8
- this.state = {
9
- disabled: true
10
- };
11
- }
12
- // For draggable modal
13
- draggableRef = React.createRef();
14
- handleCancel = () => {
15
- this.props.SET_IFRAME_VISIBLE(false);
16
- };
17
- render() {
18
- const { disabled } = this.state;
19
- return (_jsx(Modal
20
- // title={this.props.title}
21
- , {
22
- // title={this.props.title}
23
- title: _jsx("div", { style: {
24
- width: "100%",
25
- cursor: "move"
26
- }, onMouseOver: () => {
27
- if (this.state.disabled) {
28
- this.setState({
29
- disabled: false
30
- });
31
- }
32
- }, onMouseOut: () => {
33
- this.setState({
34
- disabled: true
35
- });
36
- }, children: this.props.title }), visible: this.props.visible, width: this.props.width, footer: null, bodyStyle: {
37
- padding: 0,
38
- width: this.props.width + "px",
39
- height: this.props.height + "px"
40
- }, onCancel: () => {
41
- this.handleCancel();
42
- }, destroyOnClose: true, modalRender: modal => (_jsx(Draggable, { disabled: disabled, children: _jsxs("div", { ref: this.draggableRef, children: [" ", modal] }) })), children: _jsx("div", { className: "videoWrapper", children: _jsx("iframe", { id: "iframeAspx", title: this.props.title, src: this.props.cblConfig + "/SSO/SSORedirect?url=" + encodeURIComponent(this.props.url) }) }) }));
43
- }
44
- }
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { CwDialog } from "../../dialog/CwDialog";
4
- export class CwReportModal extends React.Component {
5
- formRef = React.createRef();
6
- constructor(props) {
7
- super(props);
8
- this.state = {
9
- disabled: true,
10
- // modal position
11
- modalPosition: {
12
- top: 0,
13
- left: 0,
14
- right: 0,
15
- bottom: 0,
16
- },
17
- isModal: props.isModal !== undefined && props.isModal !== null ? props.isModal : true,
18
- };
19
- }
20
- render() {
21
- return (_jsx("div", { id: "cwelltModalReportContent", children: this.state.isModal === true ? (_jsxs(CwDialog, { open: this.props.visible, width: this.props.width, headline: this.props.title, customFooter: new Array(_jsx("div", {})), onClose: () => {
22
- this.formRef?.current?.resetFields();
23
- this.props.SET_MODAL_REPORT_VISIBLE(false);
24
- }, hideFooter: true, children: [this.props.name !== "Empty.pdf" && (_jsx("div", { style: { width: "100%", height: "100%", overflowX: "auto", overflowY: "auto" }, children: _jsx("embed", { src: "data:application/pdf;base64," + this.props.content, type: "application/pdf", style: { width: "100%", height: "100%", display: "block" } }) })), this.props.name === "Empty.pdf" && (_jsx("div", { children: _jsxs("h1", { style: { marginLeft: "2em" }, children: [" ", "Please add a(n) ", this.props.reportName, " report in ", this.props.moduleSettings, " Settings"] }) }))] })) : (_jsxs("div", { children: [this.props.name !== "Empty.pdf" && (_jsx("embed", { src: "data:application/pdf;base64," + this.props.content, type: "application/pdf", width: "100%", height: "600px" })), this.props.name === "Empty.pdf" && (_jsxs("div", { children: ["Please add a(n) ", this.props.reportName, " report in ", this.props.moduleSettings, " Settings"] }))] })) }));
25
- }
26
- }
@@ -1,70 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useState } from "react";
3
- /**
4
- * A table with expandable row groups.
5
- * @param props The data to display
6
- * @example
7
- * const sampleTableData: CwTableGroupedData = {
8
- * head: [
9
- * { title: "Name", expandSize: "20%" },
10
- * { title: "Age", expandSize: "10%" },
11
- * { title: "Occupation", expandSize: "50%" },
12
- * { title: "Location", expandSize: "20%" }
13
- * ],
14
- * groups: [
15
- * {
16
- * title: "Group 1",
17
- * rows: [
18
- * {
19
- * cells: [
20
- * { content: <span>John Doe</span>, compare: () => {} },
21
- * { content: <span>30</span>, compare: () => {} },
22
- * { content: <span>Software Engineer</span>, compare: () => {} },
23
- * { content: <span>New York</span>, compare: () => {} }
24
- * ]
25
- * },
26
- * {
27
- * cells: [
28
- * { content: <span>Jane Smith</span>, compare: () => {} },
29
- * { content: <span>25</span>, compare: () => {} },
30
- * { content: <span>Graphic Designer</span>, compare: () => {} },
31
- * { content: <span>San Francisco</span>, compare: () => {} }
32
- * ]
33
- * }
34
- * ]
35
- * },
36
- * {
37
- * title: "Group 2",
38
- * rows: [
39
- * {
40
- * cells: [
41
- * { content: <span>Alice Johnson</span>, compare: () => {} },
42
- * { content: <span>28</span>, compare: () => {} },
43
- * { content: <span>Data Analyst</span>, compare: () => {} },
44
- * { content: <span>Chicago</span>, compare: () => {} }
45
- * ]
46
- * },
47
- * {
48
- * cells: [
49
- * { content: <span>Bob Roberts</span>, compare: () => {} },
50
- * { content: <span>32</span>, compare: () => {} },
51
- * { content: <span>Marketer</span>, compare: () => {} },
52
- * { content: <span>Miami</span>, compare: () => {} }
53
- * ]
54
- * }
55
- * ]
56
- * }
57
- * ]
58
- * };
59
- */
60
- export const CwTableGrouped = props => {
61
- const [expandedGroups, setExpandedGroups] = useState({});
62
- const handleToggle = (index) => {
63
- setExpandedGroups(prev => ({
64
- ...prev,
65
- [index]: !prev[index]
66
- }));
67
- };
68
- return (_jsx("div", { className: "cw-table-grouped", style: { width: "100%" }, children: _jsxs("table", { style: { width: "100%" }, children: [_jsx("colgroup", { children: props.tableData.head.map((head, i) => (_jsx("col", { span: 1, style: { width: head.expandSize } }, i))) }), _jsx("thead", { children: _jsx("tr", { children: props.tableData.head.map((head, i) => (_jsx("th", { children: head.title }, i))) }) }), _jsx("tbody", { children: props.tableData.groups.map((group, i) => (_jsxs(React.Fragment, { children: [_jsx("tr", { "data-group": true, "data-expanded": !!expandedGroups[i], onClick: () => handleToggle(i), children: _jsx("td", { colSpan: props.tableData.head.length, children: group.title }) }), expandedGroups[i] &&
69
- group.rows.map((child, j) => (_jsx("tr", { "data-row": true, "data-row-last-of-group": j == group.rows.length - 1, children: child.cells.map((cell, k) => (_jsx("td", { children: cell.content }, k))) }, j)))] }, i))) }), _jsx("tfoot", {})] }) }));
70
- };
@@ -1,53 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import styles from "./cw-tabs.module.css";
4
- const TabIcon = ({ icon }) => {
5
- if (!icon)
6
- return null;
7
- // If icon is a string, treat it as a class name
8
- if (typeof icon === 'string') {
9
- return (_jsx("span", { className: `cwi-icons ${icon}` }));
10
- }
11
- // If icon is a ReactNode, return it directly
12
- return icon;
13
- };
14
- /**
15
- * CwTabs component for displaying tabbed content.
16
- * @param CwTabsProps
17
- * @example
18
- The way to use the tab component:
19
- * const [activeTab, setActiveTab] = useState("1");
20
- *
21
- * const handleTabChange = (tab) => {
22
- * setActiveTab(tab.key);
23
- * };
24
- *
25
- * const tabs = [
26
- * { key: "1", title: 'Tab 1', icon: 'iconClassname', content: <div>Content for tab 1</div> },
27
- * { key: "2", title: 'Tab 2', icon: 'iconClassname', content: <div>Content for tab 2</div> },
28
- * { key: "3", title: 'Tab 3', icon: 'iconClassname', content: <div>Content for tab 3</div> },
29
- * ];
30
- *
31
- * <CwTabs
32
- * tabs={tabs}
33
- * tabsPosition="top"
34
- * defaultActiveKey={activeTab} // Use the current state for defaultActiveKey
35
- * onTabClick={handleTabChange}
36
- * />
37
- * @returns A tab
38
- */
39
- export function CwTabs(CwTabsProps) {
40
- // const [activeTab, setActiveTab] = useState<string | null>(null);
41
- const [activeTab, setActiveTab] = useState(CwTabsProps.defaultActiveKey !== undefined ? CwTabsProps.defaultActiveKey : CwTabsProps.tabs[0].key);
42
- const handleTabClick = (tab) => {
43
- setActiveTab(tab.key);
44
- if (CwTabsProps.onTabClick) {
45
- CwTabsProps.onTabClick(tab);
46
- }
47
- };
48
- const position = CwTabsProps.tabsPosition || 'top';
49
- const tabsListStyle = position === 'left' && CwTabsProps.tabsListWidth
50
- ? { minWidth: CwTabsProps.tabsListWidth }
51
- : undefined;
52
- return (_jsxs("div", { id: CwTabsProps.id, className: styles['cw-tabs'], style: CwTabsProps.style, "data-tabs-position": position, children: [_jsx("ul", { style: tabsListStyle, children: CwTabsProps.tabs.map(tab => (_jsxs("li", { className: `${tab.key === activeTab ? "cw-tab-active" : ""}`, onClick: () => handleTabClick(tab), "data-active": tab.key === activeTab, children: [_jsx(TabIcon, { icon: tab.icon }), tab.title] }, tab.key))) }), _jsx("div", { className: styles['cw-tabs-content'], children: activeTab !== null && CwTabsProps.tabs.find(tab => tab.key === activeTab)?.content })] }));
53
- }
package/dist/src/index.js DELETED
@@ -1,187 +0,0 @@
1
- /*
2
- * This file is RESERVED for import/export ONLY
3
- - You can find all the exported react components in here
4
- ? For exported styles go to "./index.css"
5
- ! ALWAYS put a './' at the start of import paths
6
- */
7
- import "./index.css";
8
- // ================================ COMMON ================================== \\
9
- // Select List
10
- export { CwSelectList } from "./common/classes/CwSelectList";
11
- export { CwSelectListItems } from "./common/classes/CwSelectListItems";
12
- // ================================ DISPLAY ===================================\\
13
- // TEXT
14
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
15
- // Headings
16
- export { CwHeadingMain } from "./components/display/text/heading/CwHeadingMain";
17
- export { CwHeadingSecond } from "./components/display/text/heading/CwHeadingSecond";
18
- // Label
19
- export { CwLabel } from "./components/display/text/label/CwLabel";
20
- // Tooltip
21
- export { CwTooltip } from "./components/display/text/tooltip/CwTooltip";
22
- // Tag
23
- export { CwChip } from "./components/display/text/tag/CwChip";
24
- export { CwTag } from "./components/display/text/tag/CwTag";
25
- // Message
26
- export { CwDisplayMessage, CwMessage, CwMessageManager, CwMessageType, useCwMessage } from "./components/display/text/message/CwMessage";
27
- // Note
28
- export { CwNote } from "./components/display/text/note/CwNote";
29
- // GRAPHIC
30
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
31
- // Icon
32
- export { CwIcon } from "./components/display/graphics/icon/CwIcon";
33
- // Loading
34
- export { CwLoading } from "./components/display/graphics/loading/CwLoading";
35
- // Loading/Small
36
- export { CwLoadingSmall } from "./components/display/graphics/loading-small/CwLoadingSmall";
37
- // DATA
38
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
39
- export { CwGenericTooltip } from "./components/display/data/generic_tooltip/CwGenericTooltip";
40
- // ================================ LAYOUT ================================== \\
41
- // MODAL
42
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
43
- // Modal
44
- export { CwModal } from "./components/layout/modal/legacy/cw_modal";
45
- // Modal/Confirm
46
- export { CwModalConfirm } from "./components/layout/modal/legacy/cw_modal_confirm";
47
- // Modal/Iframe
48
- export { CwModalIframe } from "./components/layout/modal/legacy/cw_modal_iframe";
49
- // Modal/Report
50
- export { CwModalReportFunctional } from "./components/layout/modal/CwModalReportFunctional";
51
- export { CwReportModal } from "./components/layout/modal/legacy/cw_modal_report";
52
- // Modal/hover
53
- export { CwModalHover } from "./components/layout/modal/hover/CwModalHover";
54
- // Dialog
55
- export { CwDialog } from "./components/layout/dialog/CwDialog";
56
- // Notification
57
- export { CwDialogManager } from "./components/layout/dialog/CwDialogManager";
58
- // Align
59
- export { CwAlign } from "./components/layout/align/CwAlign";
60
- // Card
61
- export { CwCard } from "./components/layout/card/CwCard";
62
- export { CwCardList } from "./components/layout/card/CwCardList";
63
- // LIST
64
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
65
- // Container/Accordion
66
- export { CwAccordionContainer } from "./components/display/data/accordion/CwAccordionContainer";
67
- // Table
68
- export { CwTable } from "./components/display/data/table/CwTable";
69
- // Tabs
70
- export { CwTabs } from "./components/layout/tabs/CwTabs";
71
- // Expandable
72
- export { CwExpandable } from "./components/layout/list/details/CwExpandable";
73
- // KeyValueList
74
- export { CwKeyValueList } from "./components/layout/list/key-value/CwKeyValueList";
75
- // Sortable
76
- export { CwSortableList } from "./components/layout/list/sortable/CwSortableList";
77
- export { useSortableList } from "./components/layout/list/sortable/useSortableList";
78
- // TABLE
79
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
80
- // GroupedTable
81
- export { CwTableGrouped } from "./components/layout/table/grouped/CwTableGrouped";
82
- // =============================== CONTROL ================================== \\
83
- // INPUT
84
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
85
- // File
86
- export { CwFileUpload } from "./components/control/input/file/CwFileUpload";
87
- export { CwFileUploadMultiple } from "./components/control/input/file/CwFileUploadMultiple";
88
- // Input
89
- export { CwInput } from "./components/control/input/any/CwInput";
90
- // Input number (digit) new one
91
- export { CwDigit } from "./components/control/input/digit/CwDigit";
92
- // Input color
93
- export { CwColorPicker } from "./components/control/input/color/CwColorPicker";
94
- export { CwInputColor } from "./components/control/input/color/CwInputColor";
95
- // Text
96
- export { CwInputText } from "./components/control/input/text/CwInputText";
97
- // Phone
98
- export { CwInputPhone } from "./components/control/input/phone/CwInputPhone";
99
- // Number
100
- export { CwInputNumber } from "./components/control/input/number/CwInputNumber";
101
- // Textarea
102
- export { CwTextArea } from "./components/control/input/text-area/CwTextArea";
103
- // Date
104
- export { CwInputDate } from "./components/control/input/date/CwInputDate";
105
- // Date picker
106
- export { CwInputDatePicker } from "./components/control/input/date-picker/CwInputDatePicker";
107
- // Datetime
108
- export { CwInputDatetime } from "./components/control/input/datetime/CwInputDatetime";
109
- // Input time
110
- export { CwTime } from "./components/control/input/time/CwTime";
111
- // Date text
112
- export { CwInputDateText } from "./components/control/input/date-text/CwInputDateText";
113
- // Image
114
- export { CwInputImage } from "./components/control/input/image/CwInputImage";
115
- // Image area
116
- export { CwImageArea } from "./components/control/input/image-area/CwImageArea";
117
- // Weekday
118
- export { CwWeekdaySelector, Weekdays } from "./components/control/input/weekday/CwWeekdaySelector";
119
- // CHOICE
120
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
121
- // Checkbox
122
- export { CwCheckbox } from "./components/control/choice/checkbox/CwCheckbox";
123
- // Toggle
124
- export { CwToggle } from "./components/control/choice/toggle/CwToggle";
125
- // Select
126
- export { CwSelect } from "./components/control/choice/select/CwSelect";
127
- // Option
128
- export { CwOption } from "./components/control/choice/option/CwOption";
129
- // Dropdown
130
- export { CwDropdown } from "./components/control/choice/dropdown/CwDropdown";
131
- export { CwDropdownContainer } from "./components/control/choice/dropdown/CwDropdownContainer";
132
- export { CwDropdownFilter } from "./components/control/choice/dropdown/CwDropdownFilter";
133
- // Multiselect - old/deprecated
134
- export { MultiSelect } from "./components/control/choice/deprecated/MultiSelect_deprecated_";
135
- // Multiselect
136
- export { itemsToMultiFilterTags } from "./common/functions/collections";
137
- export { CwHeadFilter } from "./components/control/choice/multiselect/CwHeadFilter";
138
- export { CwMultiselect } from "./components/control/choice/multiselect/CwMultiselect";
139
- export { CwOptionList } from "./components/control/choice/multiselect/CwOptionList";
140
- // MultiFilter - new!
141
- export { CwMultiFilterTag } from "./components/control/choice/multi-filter/components/tag/CwMultiFilterTag";
142
- export { CwMultiFilter } from "./components/control/choice/multi-filter/CwMultiFilter";
143
- // ACTION
144
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
145
- // Search
146
- export { CwSearchInput } from "./components/control/action/search/CwSearch";
147
- // Context menu
148
- export { CwContextMenu } from "./components/control/action/contextmenu/CwContextMenu";
149
- // Contextual menu, scientists have not yet found the difference between this and CwContextMenu
150
- export { CwContextualMenu } from "./components/control/action/contextual-menu/CwContextualMenu";
151
- // Button
152
- export { CwButton } from "./components/control/action/button/CwButton";
153
- // Buttons
154
- export { CwBtnAdd, CwBtnAddFolder, CwBtnAirport, CwBtnAlert, CwBtnApprove, CwBtnBookMark, CwBtnBulkDuty, CwBtnCancel, CwBtnCrewPlanning, CwBtnDelay, CwBtnDelete, CwBtnDownload, CwBtnDownLoadAllInfo, CwBtnDropDownMenu, CwBtnEdit, CwBtnEditFolder, CwBtnFiles, CwBtnGeneratePairing, CwBtnGoBackFolder, CwBtnHide, CwBtnImportRequests, CwBtnMVT, CwBtnNavFirstItemView, CwBtnNavLastItemView, CwBtnNavNextDay, CwBtnNavPreviewItem, CwBtnPairing, CwBtnPrint, CwBtnPropertyFolder, CwBtnPublish, CwBtnRefresh, CwBtnReleasePeriod, CwBtnSave, CwBtnSearch, CwBtnSelect, CwBtnShare, CwBtnStatistic, CwBtnUploadFiles, CwBtnVacations, CwBtnView, CwButtonDef, CwFloatingButton } from "./components/control/action/buttons/CwButtons";
155
- // ========================== CLIENT COMPONENTS ============================= \\
156
- import { CwScheduler2 } from "./components/custom/scheduler-temporal/CwSchedulerComp2";
157
- import { CwScheduler } from "./components/custom/scheduler/CwSchedulerComp";
158
- export { CwScheduler, CwScheduler2 };
159
- // NEW SCHEDULER
160
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
161
- export { Scheduler } from "./components/custom/scheduler-new/presentation/NewScheduler";
162
- // Components
163
- export { DefaultRowHeader } from "./components/custom/scheduler-new/presentation/components/row/DefaultRowHeader";
164
- export { SchedulerEvent } from "./components/custom/scheduler-new/presentation/components/row/Event";
165
- // Helpers
166
- export { eventIsVisible } from "../src/components/custom/scheduler-new/presentation/logic/eventIsVisible";
167
- export { getDefaultDivisions } from "./components/custom/scheduler-new/presentation/logic/getDefaultDivisions";
168
- export { getEventSizes } from "./components/custom/scheduler-new/presentation/logic/getEventSizes";
169
- // Events
170
- export { UiEvent } from "./common/functions/dsl/UiEventDSL";
171
- // OLD SCHEDULER
172
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
173
- // Components
174
- export { CwSuperScheduler } from "./components/custom/scheduler/CwSuperSchedulerComp";
175
- // State
176
- export { cblEvent } from "./components/custom/scheduler/state/cblEvent";
177
- export { Resource } from "./components/custom/scheduler/state/Resource";
178
- // Types
179
- export { CblDragAndDrop } from "./components/custom/scheduler/CwSuperSchedulerComp";
180
- import { PinRowHeader } from "./components/custom/super-scheduler/PinRowHeader";
181
- import { SuperScheduler } from "./components/custom/super-scheduler/SuperScheduler";
182
- import { OnClearPinned, OnPinRow, OnUnpinRow } from "./components/custom/super-scheduler/SuperSchedulerEvents";
183
- // OTHER
184
- // '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
185
- export { CwFindAirport } from "./components/custom/find-airport/CwFindAirportComp";
186
- export { OnClearPinned, OnPinRow, OnUnpinRow, PinRowHeader, SuperScheduler };
187
- export { OnClickContextMenu, OnClickEvent, OnClickRowEvent, OnClickRowHeader, OnClickUtc, OnDoubleClickEvent, OnDoubleClickRowEvent, OnDragEvent, OnDropCtrlEvent, OnDropEvent, OnEndClickHeaderEvent, OnLeftDragStart, OnMultiClickEvent, OnRangeClickEvent, OnRightClickEvent, OnRightClickRow, OnRightDragStart, OnStartClickHeaderEvent } from "./components/custom/scheduler-new/presentation/NewSchedulerUiEvents";
@@ -1,48 +0,0 @@
1
- import { getWeeksByDays } from "../../../../../../src/components/custom/scheduler-new/presentation/logic/getDefaultDivisions";
2
- describe("getWeeksByDays", () => {
3
- test("should return empty list if 0 days", () => {
4
- expect(getWeeksByDays(0, new Date("2024-10-13"))).toStrictEqual([]);
5
- });
6
- test("should return empty list if negative days", () => {
7
- expect(getWeeksByDays(-20, new Date("2024-10-13"))).toStrictEqual([]);
8
- });
9
- test("if 1 day should return 1 WeekRange", () => {
10
- const weekRanges = getWeeksByDays(1, new Date("2024-10-13"));
11
- expect(weekRanges.length).toBe(1);
12
- });
13
- test("if 2 days should return 2 days in same weekRange ", () => {
14
- const weekRanges = getWeeksByDays(2, new Date("2024-10-14"));
15
- const first = weekRanges[0];
16
- expect(first.days).toBe(2);
17
- });
18
- test("if 2 days first sunday should return 2 weekRanges", () => {
19
- const weekRanges = getWeeksByDays(2, new Date("2024-10-13"));
20
- expect(weekRanges.length).toBe(2);
21
- const first = weekRanges[0];
22
- expect(first.days).toBe(1);
23
- });
24
- test("when first day is monday and 8 days first should return 7 days", () => {
25
- const weekRanges = getWeeksByDays(8, new Date("2024-09-02"));
26
- const first = weekRanges[0];
27
- expect(first.days).toBe(7);
28
- });
29
- test("When first day is sunday first should return 1 day", () => {
30
- const weekRanges = getWeeksByDays(2, new Date("2024-09-01"));
31
- const first = weekRanges[0];
32
- expect(first.days).toBe(1);
33
- });
34
- test("When last day is monday last should return 1 day", () => {
35
- const weekRanges = getWeeksByDays(2, new Date("2024-09-08"));
36
- const last = weekRanges[weekRanges.length - 1];
37
- expect(weekRanges.length).toBe(2);
38
- expect(last.days).toBe(1);
39
- });
40
- test("when 29 days and stars sunday should return 5 weeks ", () => {
41
- const weekRanges = getWeeksByDays(29, new Date("2024-09-01"));
42
- const last = weekRanges[weekRanges.length - 1];
43
- const first = weekRanges[0];
44
- expect(weekRanges.length).toBe(5);
45
- expect(last.days).toBe(7);
46
- expect(first.days).toBe(1);
47
- });
48
- });
@@ -1,15 +0,0 @@
1
- import { hoursBetween } from "../../../../../../src/components/custom/scheduler-new/presentation/logic/getEventSizes";
2
- describe("hoursbetween", () => {
3
- test("from hour to 1 more expect 1", () => {
4
- const hours = hoursBetween(new Date("2024-10-14"), new Date("2024-10-14T01:00:00.000Z"));
5
- expect(hours).toBe(1);
6
- });
7
- test("from hour to 30m more expect 0.5", () => {
8
- const hours = hoursBetween(new Date("2024-10-14"), new Date("2024-10-14T00:30:00.000Z"));
9
- expect(hours).toBe(0.5);
10
- });
11
- test("from hour to 30m more expect 0.5", () => {
12
- const hours = hoursBetween(new Date("2024-10-14"), new Date("2024-10-13T23:30:00.000Z"));
13
- expect(hours).toBe(-0.5);
14
- });
15
- });