@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,298 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { createElement as _createElement } from "react";
3
- import { useEffect, useRef, useState } from "react";
4
- import { CwMultiFilterTag } from "./components/tag/CwMultiFilterTag";
5
- import styles from "./cw-multi-filter.module.css";
6
- /**
7
- * A multiple filter selector, a MULTI-SELECT even. Allows users to select and filter items based on tags.
8
- * @remark
9
- * The CwMultiFilter component provides a user interface for selecting multiple filter options
10
- * organized by categories. Each filter option is represented as a clickable tag with customizable
11
- * colors. The component manages the selection state internally but reports changes via a callback.
12
- *
13
- * Filter tags should include the following properties:
14
- * - `Name`: Display name of the filter
15
- * - `Value`: Actual value used for filtering logic
16
- * - `Category`: Group the filter belongs to
17
- * - `ID`: Unique identifier for the filter
18
- * - `PrimaryColor`: Background color of the tag
19
- * - `OnPrimaryColor`: Text color of the tag
20
- *
21
- * ```
22
- * ╭───────────────────────────────────────────────────────────────╮
23
- * │ ╭──────────╮ ╭──────────╮ ╭──────────╮ │
24
- * │ │FilterA x │ │FilterC x │ │FilterB x │ FilterC│ X │
25
- * │ ╰──────────╯ ╰──────────╯ ╰──────────╯ │
26
- * ╰───────────────────────────────────────────────────────────────╯
27
- * │ (All) (CategoryA) (CategoryB) │
28
- * │─────────────────────────────────────────────────────────────│
29
- * │ ╭────────╮ │
30
- * │ │FilterF │ │
31
- * │ ╰────────╯ │
32
- * ╰─────────────────────────────────────────────────────────────╯
33
- * ```
34
- * @example
35
- * ```tsx
36
- * import { CwMultiFilter, type CwMultiFilterTagProps, type ICwMultiFilterTag } from "cwellt-reactjs-lib";
37
- * import { useCallback, useState } from "react";
38
- * import { hexToRGB } from "../common/functions/color";
39
- *
40
- * function FilterExample() {
41
- * // State to track selected filter tags
42
- * const [selectedTags, setSelectedTags] = useState(new Set<CwMultiFilterTagProps>());
43
- *
44
- * // Sample data to filter
45
- * const [users, setUsers] = useState([
46
- * { id: 1, name: "John", role: "admin", department: "IT" },
47
- * { id: 2, name: "Sarah", role: "user", department: "HR" },
48
- * // More users...
49
- * ]);
50
- *
51
- * // Filtered users based on selected tags
52
- * const [filteredUsers, setFilteredUsers] = useState(users);
53
- *
54
- * // Define filter options
55
- * const filterOptions = new Set([
56
- * {
57
- * Name: "Admin",
58
- * Value: "admin",
59
- * Category: "Roles",
60
- * ID: "Roles_admin",
61
- * OnPrimaryColor: hexToRGB("#2050a8"),
62
- * PrimaryColor: hexToRGB("#cedcff")
63
- * },
64
- * {
65
- * Name: "User",
66
- * Value: "user",
67
- * Category: "Roles",
68
- * ID: "Roles_user",
69
- * OnPrimaryColor: hexToRGB("#2050a8"),
70
- * PrimaryColor: hexToRGB("#cedcff")
71
- * },
72
- * {
73
- * Name: "IT",
74
- * Value: "IT",
75
- * Category: "Departments",
76
- * ID: "Departments_IT",
77
- * OnPrimaryColor: hexToRGB("#a82037"),
78
- * PrimaryColor: hexToRGB("#ffceda")
79
- * },
80
- * {
81
- * Name: "HR",
82
- * Value: "HR",
83
- * Category: "Departments",
84
- * ID: "Departments_HR",
85
- * OnPrimaryColor: hexToRGB("#a82037"),
86
- * PrimaryColor: hexToRGB("#ffceda")
87
- * }
88
- * ]);
89
- *
90
- * // Handle filter changes
91
- * const onChangeFilters = useCallback((tags: Set<ICwMultiFilterTag>) => {
92
- * setSelectedTags(tags);
93
- * const tagsArray = Array.from(tags);
94
- *
95
- * // Get values for each category
96
- * const roleValues = tagsArray
97
- * .filter(tag => tag.Category === "Roles")
98
- * .map(tag => tag.Value);
99
- *
100
- * const departmentValues = tagsArray
101
- * .filter(tag => tag.Category === "Departments")
102
- * .map(tag => tag.Value);
103
- *
104
- * // Apply filters
105
- * if (tagsArray.length === 0) {
106
- * // No filters applied
107
- * setFilteredUsers(users);
108
- * } else {
109
- * let filtered = users;
110
- *
111
- * if (roleValues.length > 0) {
112
- * filtered = filtered.filter(user => roleValues.includes(user.role));
113
- * }
114
- *
115
- * if (departmentValues.length > 0) {
116
- * filtered = filtered.filter(user => departmentValues.includes(user.department));
117
- * }
118
- *
119
- * setFilteredUsers(filtered);
120
- * }
121
- * }, [users]);
122
- *
123
- * return (
124
- * <div>
125
- * <h2>Filter Users</h2>
126
- * <div style={{ width: "50%" }}>
127
- * <CwMultiFilter
128
- * id="user-filter"
129
- * allTags={filterOptions}
130
- * onChangeSelectedTags={onChangeFilters}
131
- * selectedTags={selectedTags}
132
- * />
133
- * </div>
134
- * <div style={{ marginTop: "20px" }}>
135
- * <h3>Filtered Results ({filteredUsers.length})</h3>
136
- * <ul>
137
- * {filteredUsers.map(user => (
138
- * <li key={user.id}>{user.name} - {user.role} ({user.department})</li>
139
- * ))}
140
- * </ul>
141
- * </div>
142
- * </div>
143
- * );
144
- * }
145
- * ```
146
- * @param {CwMultiFilterProps} props
147
- * @returns Set the `onChange` callback to a function to check for changes in the selected filters
148
- */
149
- export const CwMultiFilter = ({ allTags, id, onChangeSelectedTags, selectedTags, style }) => {
150
- const [filteredTags, setFilteredTags] = useState(new Set());
151
- const [inputTextValue, setInputTextValue] = useState("");
152
- const [isPanelOpen, setIsPanelOpen] = useState(false);
153
- const [selectedCategory, setSelectedCategory] = useState("All");
154
- const componentRef = useRef(null);
155
- const inputRef = useRef(null);
156
- useEffect(() => {
157
- function handleClickOutside(event) {
158
- if (componentRef.current && !componentRef.current.contains(event.target)) {
159
- setIsPanelOpen(false);
160
- setFilteredTags(new Set());
161
- setSelectedCategory("All");
162
- setInputTextValue("");
163
- }
164
- }
165
- document.addEventListener("mousedown", handleClickOutside);
166
- return () => {
167
- document.removeEventListener("mousedown", handleClickOutside);
168
- };
169
- }, []);
170
- const categoriesMappedToTags = () => {
171
- const categoriesMap = new Map();
172
- allTags.forEach(tag => {
173
- const category = categoriesMap.get(tag.Category) || new Set();
174
- category.add(tag);
175
- categoriesMap.set(tag.Category, category);
176
- });
177
- return categoriesMap;
178
- };
179
- const handleClickCategory = (category) => {
180
- setSelectedCategory(category);
181
- setFilteredTags(category != "All" ? (categoriesMappedToTags().get(category) ?? new Set()) : new Set());
182
- };
183
- const rgbAString = (r, g, b) => {
184
- return `rgb(${r}, ${g}, ${b})`;
185
- };
186
- const getColor = (category) => {
187
- const test = categoriesMappedToTags().get(category)?.values().next().value;
188
- if (test !== undefined) {
189
- return {
190
- onPrimary: rgbAString(test.OnPrimaryColor.r, test.OnPrimaryColor.g, test.OnPrimaryColor.b),
191
- primary: rgbAString(test.PrimaryColor.r, test.PrimaryColor.g, test.PrimaryColor.b),
192
- };
193
- }
194
- else {
195
- return {
196
- onPrimary: "var(--cw-color-on-primary)",
197
- primary: "var(--cw-color-primary)"
198
- };
199
- }
200
- };
201
- const handleInputText = (input) => {
202
- if (selectedCategory !== "All")
203
- setSelectedCategory("All");
204
- input = input.trimStart();
205
- setInputTextValue(input);
206
- if (input !== "") {
207
- const newFilterTags = Array.from(allTags).filter(tag => !Array.from(selectedTags).some(t => t.ID === tag.ID) &&
208
- tag.Name.replaceAll(" ", "").toLowerCase().includes(input.replaceAll(" ", "").toLowerCase()));
209
- setFilteredTags(new Set(newFilterTags));
210
- }
211
- else {
212
- setFilteredTags(new Set());
213
- }
214
- };
215
- const addTag = (newTag) => {
216
- newTag.Selected = true;
217
- newTag.Removable = true;
218
- newTag.Selectable = false;
219
- if (selectedTags.has(newTag) || Array.from(selectedTags).some(t => t.ID === newTag.ID)) {
220
- return;
221
- }
222
- else {
223
- const updatedTags = new Set(selectedTags).add(newTag);
224
- onChangeSelectedTags?.(updatedTags);
225
- setInputTextValue("");
226
- //setFilteredTags(allTags);
227
- }
228
- };
229
- const removeTag = (id) => {
230
- const updatedTags = new Set(selectedTags);
231
- const toDelete = Array.from(updatedTags).find(i => i.ID === id);
232
- if (toDelete) {
233
- toDelete.Selected = false;
234
- toDelete.Selectable = true;
235
- toDelete.Removable = false;
236
- updatedTags.delete(toDelete);
237
- }
238
- onChangeSelectedTags?.(updatedTags);
239
- };
240
- useEffect(() => {
241
- // force to load all tags on first render
242
- if (selectedCategory === "All" && filteredTags.size === 0)
243
- setFilteredTags(new Set());
244
- }, [allTags]);
245
- const handleDivClick = () => {
246
- if (inputRef !== null) {
247
- inputRef.current?.focus();
248
- }
249
- };
250
- return (_jsxs("form", { ref: componentRef, id: id, className: styles["cw-multi-filter"], style: style, onSubmit: (e) => {
251
- e.preventDefault();
252
- }, children: [_jsxs("div", { onClick: handleDivClick, className: styles["cw-multi-filter-search"], style: isPanelOpen ? { outline: "1px solid var(--cw-color-primary)", outlineOffset: "-2px" } : {}, children: [_jsxs("ul", { id: id + "_selected_filters", children: [Array.from(selectedTags).map(tag => (_createElement(CwMultiFilterTag, { ...tag, key: tag.ID, Selectable: false, Removable: true, OnRemove: () => removeTag(tag.ID) }))), _jsx("input", { type: "text", id: id + "_input", ref: inputRef, value: inputTextValue, spellCheck: false, onFocus: () => setIsPanelOpen(true), onChange: e => handleInputText(e.target.value), autoComplete: "off", placeholder: "Write to filter", onKeyDown: e => {
253
- switch (e.key) {
254
- case "Enter":
255
- case "Tab":
256
- if (inputTextValue.trim().length > 0 && filteredTags.size > 0) {
257
- const foundTag = Array.from(filteredTags)[0];
258
- if (foundTag) {
259
- addTag(foundTag);
260
- }
261
- }
262
- break;
263
- case "Backspace": {
264
- if (inputTextValue === "" && selectedTags.size > 0) {
265
- removeTag(Array.from(selectedTags).toReversed()[0].ID);
266
- }
267
- break;
268
- }
269
- }
270
- } })] }), selectedTags.size > 0 ? (_jsx("input", { type: "reset", value: "\u00D7", onClick: e => {
271
- e.preventDefault();
272
- onChangeSelectedTags?.(new Set());
273
- } })) : null] }), _jsxs("section", { className: styles["cw-multi-filter-catalog-container"], "data-display-none": !isPanelOpen, children: [_jsxs("nav", { children: [_jsx("button", { style: selectedCategory === "All"
274
- ? {
275
- backgroundColor: "var(--cw-color-primary-container)",
276
- color: "var(--cw-color-primary)",
277
- outline: "2px solid var(--cw-color-primary)",
278
- outlineOffset: "-2px",
279
- fontWeight: 400
280
- }
281
- : {}, onClick: () => handleClickCategory("All"), children: "SEARCH IN ALL CATEGORIES" }), Array.from(categoriesMappedToTags().keys()).map(category => (_jsx("button", { style: selectedCategory === category
282
- ? {
283
- backgroundColor: getColor(category).primary,
284
- color: getColor(category).onPrimary,
285
- outline: "2px solid " + getColor(category).onPrimary,
286
- outlineOffset: "-2px",
287
- fontWeight: 400
288
- }
289
- : {
290
- backgroundColor: getColor(category).primary,
291
- color: getColor(category).onPrimary,
292
- }, onClick: () => handleClickCategory(category), children: category }, category)))] }), _jsx("ul", { children: Array.from(filteredTags).map((props) => (_jsx(CwMultiFilterTag, { ...props, Selectable: true, Removable: false, Selected: Array.from(selectedTags).some(p => p.ID === props.ID), OnSelect: () => {
293
- if (Array.from(selectedTags).some(p => p.ID === props.ID))
294
- removeTag(props.ID);
295
- else
296
- addTag(props);
297
- } }, props.ID))) })] })] }));
298
- };
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CwIcon } from "../../../../../display/graphics/icon/CwIcon";
3
- import styles from "./cw-multi-filter-tag.module.css";
4
- export const CwMultiFilterTag = props => {
5
- const { ID, Name, Value, Category, Removable, PrimaryColor, OnPrimaryColor, Selectable, Selected, OnSelect } = props;
6
- const BackgroundColor = `rgb(${PrimaryColor.r},${PrimaryColor.g},${PrimaryColor.b})`;
7
- const TextColor = `rgb(${OnPrimaryColor.r},${OnPrimaryColor.g},${OnPrimaryColor.b})`;
8
- return (_jsxs("li", { className: styles["cw-multifilter-tag"], "data-selected": !!props.Selected, "data-removable": !!props.Removable, style: {
9
- color: TextColor,
10
- backgroundColor: BackgroundColor,
11
- opacity: Selected && !Removable ? "0.5" : "1",
12
- outlineColor: TextColor
13
- }, onClick: () => {
14
- if (Selectable)
15
- OnSelect?.(props);
16
- }, children: [_jsx("span", { id: ID, "data-value": Value, "data-category": Category, children: Name }), Removable && (_jsx("span", { onClick: () => props.OnRemove?.(props), children: _jsx(CwIcon, { iconId: "close" }) }))] }));
17
- };
@@ -1,80 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { useEffect, useRef, useState } from "react";
4
- import { CwIcon } from "../../../display/graphics/icon/CwIcon";
5
- export function CwHeadFilter(cwelltFilterTabMultiSelectProps) {
6
- // - Reference div content input search
7
- const headContent_ref = React.createRef();
8
- const optionList = document.getElementsByClassName("cw-multiselect-option-list");
9
- const refContent = useRef(null);
10
- // - Hooks show clear button
11
- const [_isShowClearButton, setShowClearButton] = useState(false);
12
- // - Hooks value of input search
13
- const [inputValue, setInputValue] = useState("");
14
- // Ref [ input ] ( cwellt_headFilterTab )
15
- const headInputFitlerTab_ref = useRef(null);
16
- const headFilter_content_tags_ref = useRef(null);
17
- // cwellt_headFilterTab [ onclick ( show dropDown and enable input .focus() )]
18
- const onClickHeaderFilterTab = () => {
19
- // Show and hide dropDownContainer - onShowDropDown [ interface ]
20
- cwelltFilterTabMultiSelectProps.onShowDropDown();
21
- // Click on dropDown enable input - [ ref : headFitlerTab_ref ] and evaluating not null
22
- if (headInputFitlerTab_ref.current) {
23
- headInputFitlerTab_ref.current.focus();
24
- }
25
- };
26
- // - on change input search
27
- const onChangeInputSearch = (event_onChangeInput) => {
28
- // let searchInput_length = event_onChangeInput.currentTarget.value.length;
29
- // if (searchInput_length > 0) {
30
- // setShowClearButton(true);
31
- // } else {
32
- // setShowClearButton(false);
33
- // }
34
- setInputValue(event_onChangeInput.currentTarget.value);
35
- // - onChangeSearch
36
- cwelltFilterTabMultiSelectProps.onChangeSearch(event_onChangeInput);
37
- };
38
- // - clear input value
39
- const onClearInputValue = (e) => {
40
- setInputValue("");
41
- setShowClearButton(false);
42
- // onClearValue
43
- cwelltFilterTabMultiSelectProps.onClearValue(e);
44
- };
45
- // - onKeyPress
46
- const onKeyPressInput = (event_keyPress) => {
47
- if (typeof cwelltFilterTabMultiSelectProps.onKeypressInput === "function") {
48
- cwelltFilterTabMultiSelectProps.onKeypressInput(event_keyPress);
49
- // clear input field
50
- if (event_keyPress.key === "Enter") {
51
- setInputValue("");
52
- }
53
- }
54
- };
55
- const handleBlur = (event) => {
56
- if (typeof cwelltFilterTabMultiSelectProps.onBlur === "function") {
57
- cwelltFilterTabMultiSelectProps.onBlur(event);
58
- }
59
- };
60
- const clickOptionList = () => {
61
- if (optionList.length > 0) {
62
- Array.from(optionList).forEach(index => {
63
- const optionListItem = index;
64
- optionListItem.addEventListener("click", () => {
65
- setInputValue("");
66
- });
67
- });
68
- }
69
- };
70
- //#region useEffect
71
- useEffect(() => {
72
- window.addEventListener("keypress", onKeyPressInput);
73
- clickOptionList();
74
- return () => {
75
- window.removeEventListener("keypress", onKeyPressInput);
76
- };
77
- });
78
- //#endregion
79
- return (_jsxs("div", { className: cwelltFilterTabMultiSelectProps.className + " cw-headfilter", style: cwelltFilterTabMultiSelectProps.style, id: cwelltFilterTabMultiSelectProps.Id, onMouseLeave: cwelltFilterTabMultiSelectProps.onMouseLeave, ref: refContent, children: [_jsxs("div", { className: "cw-headfilter-wrapper", onClick: () => onClickHeaderFilterTab(), children: [_jsx(CwIcon, { iconId: "search", size: "large" }), _jsxs("div", { className: "cw-headfilter-content", children: [_jsx("div", { className: "cw-flex-row cw-gap-small cw-align-left-center cw-flex-wrap", ref: headFilter_content_tags_ref, children: cwelltFilterTabMultiSelectProps.tagValueContent }), _jsx("div", { className: "headFilter_search_content", ref: headContent_ref, children: _jsx("input", { id: "headFilter_inputSearch", value: inputValue, onKeyPress: event_keyPress => onKeyPressInput(event_keyPress), onBlur: handleBlur, type: "search", onChange: event_onChangeInput => onChangeInputSearch(event_onChangeInput), placeholder: cwelltFilterTabMultiSelectProps.placeholder_desc, ref: headInputFitlerTab_ref }) })] }), _jsx(CwIcon, { iconId: "close-circle", onClick: (e) => onClearInputValue(e) })] }), cwelltFilterTabMultiSelectProps.children] }));
80
- }