@cwellt_software/cwellt-reactjs-lib 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (583) hide show
  1. package/dist/index.cjs.js +1314 -70
  2. package/dist/index.css +2 -2
  3. package/dist/index.d.ts +235 -4
  4. package/dist/index.es.js +1310 -71
  5. package/dist/playground/main.d.ts.map +1 -1
  6. package/dist/src/common/classes/CwSelectList.js +12 -0
  7. package/dist/src/common/classes/CwSelectListItems.js +14 -0
  8. package/dist/src/common/functions/collections.js +18 -0
  9. package/dist/src/common/functions/colorManipulation.js +76 -0
  10. package/dist/src/common/functions/dsl/UiEventDSL.js +20 -0
  11. package/dist/src/common/functions/useSingleAndDoubleClicks.js +28 -0
  12. package/dist/src/components/control/action/button/CwButton.js +13 -0
  13. package/dist/src/components/control/action/buttons/CwButtons.js +188 -0
  14. package/dist/src/components/control/action/contextmenu/CwContextMenu.js +43 -0
  15. package/dist/src/components/control/action/contextual-menu/CwContextualMenu.js +55 -0
  16. package/dist/src/components/control/action/search/CwSearch.js +67 -0
  17. package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.js +11 -0
  18. package/dist/src/components/control/choice/checkbox/CwCheckbox.js +15 -0
  19. package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.js +99 -0
  20. package/dist/src/components/control/choice/dropdown/CwDropdown.js +27 -0
  21. package/dist/src/components/control/choice/dropdown/CwDropdownContainer.js +30 -0
  22. package/dist/src/components/control/choice/dropdown/CwDropdownFilter.js +10 -0
  23. package/dist/src/components/control/choice/multi-filter/CwMultiFilter.js +298 -0
  24. package/dist/src/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.js +17 -0
  25. package/dist/src/components/control/choice/multiselect/CwHeadFilter.js +80 -0
  26. package/dist/src/components/control/choice/multiselect/CwMultiselect.js +393 -0
  27. package/dist/src/components/control/choice/multiselect/CwOptionList.js +36 -0
  28. package/dist/src/components/control/choice/option/CwOption.js +16 -0
  29. package/dist/src/components/control/choice/select/CwSelect.js +36 -0
  30. package/dist/src/components/control/choice/toggle/CwToggle.js +9 -0
  31. package/dist/src/components/control/input/any/CwInput.js +16 -0
  32. package/dist/src/components/control/input/color/CwColorPicker.js +210 -0
  33. package/dist/src/components/control/input/color/CwInputColor.js +142 -0
  34. package/dist/src/components/control/input/date/CwInputDate.js +29 -0
  35. package/dist/src/components/control/input/date-picker/CwInputDatePicker.js +109 -0
  36. package/dist/src/components/control/input/date-text/CwInputDateText.js +90 -0
  37. package/dist/src/components/control/input/datetime/CwInputDatetime.js +29 -0
  38. package/dist/src/components/control/input/digit/CwDigit.js +28 -0
  39. package/dist/src/components/control/input/file/CwFileUpload.js +52 -0
  40. package/dist/src/components/control/input/file/CwFileUploadMultiple.js +148 -0
  41. package/dist/src/components/control/input/image/CwInputImage.js +52 -0
  42. package/dist/src/components/control/input/image-area/CwImageArea.js +113 -0
  43. package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts +42 -0
  44. package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -0
  45. package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts +63 -0
  46. package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -0
  47. package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts +47 -0
  48. package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts.map +1 -0
  49. package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts +46 -0
  50. package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -0
  51. package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts +38 -0
  52. package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -0
  53. package/dist/src/components/control/input/new-dates/dateRangePresets.d.ts +19 -0
  54. package/dist/src/components/control/input/new-dates/dateRangePresets.d.ts.map +1 -0
  55. package/dist/src/components/control/input/number/CwInputNumber.js +11 -0
  56. package/dist/src/components/control/input/phone/CwInputPhone.js +24 -0
  57. package/dist/src/components/control/input/text/CwInputText.js +31 -0
  58. package/dist/src/components/control/input/text-area/CwTextArea.js +9 -0
  59. package/dist/src/components/control/input/time/CwTime.js +29 -0
  60. package/dist/src/components/control/input/weekday/CwWeekdaySelector.js +143 -0
  61. package/dist/src/components/custom/find-airport/CwFindAirportComp.js +240 -0
  62. package/dist/src/components/custom/scheduler/CwSchedulerComp.js +211 -0
  63. package/dist/src/components/custom/scheduler/CwSuperSchedulerComp.js +269 -0
  64. package/dist/src/components/custom/scheduler/components/EventRender.js +142 -0
  65. package/dist/src/components/custom/scheduler/components/ResourceListRender.js +12 -0
  66. package/dist/src/components/custom/scheduler/components/ResourceRender.js +26 -0
  67. package/dist/src/components/custom/scheduler/components/day_headers/DayHeader.js +13 -0
  68. package/dist/src/components/custom/scheduler/components/day_headers/MonthHeader.js +12 -0
  69. package/dist/src/components/custom/scheduler/components/day_headers/MyDaysHeader.js +62 -0
  70. package/dist/src/components/custom/scheduler/components/day_headers/WeekHeader.js +13 -0
  71. package/dist/src/components/custom/scheduler/components/resources_title_list/ResourcesTitleList.js +24 -0
  72. package/dist/src/components/custom/scheduler/components/scheduler_content_area/SchedulerContentArea.js +17 -0
  73. package/dist/src/components/custom/scheduler/components/scheduler_header/SchedulerHeader.js +26 -0
  74. package/dist/src/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.js +23 -0
  75. package/dist/src/components/custom/scheduler/components/time_headers/TimeHeader.js +31 -0
  76. package/dist/src/components/custom/scheduler/components/time_headers/TimeHeaderRow.js +16 -0
  77. package/dist/src/components/custom/scheduler/components/time_line/TimeLine.js +12 -0
  78. package/dist/src/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.js +5 -0
  79. package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDates.js +15 -0
  80. package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.js +5 -0
  81. package/dist/src/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.js +43 -0
  82. package/dist/src/components/custom/scheduler/logic/dates/getMonthHeaderData.js +35 -0
  83. package/dist/src/components/custom/scheduler/logic/dates/getUtcToday.js +6 -0
  84. package/dist/src/components/custom/scheduler/logic/dates/getWeekHeaderDataFromWeekRange.js +20 -0
  85. package/dist/src/components/custom/scheduler/logic/dates/listOfDatesToWeeks.js +55 -0
  86. package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisionType.js +13 -0
  87. package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisions.js +16 -0
  88. package/dist/src/components/custom/scheduler/logic/filtering/filterEvents.js +33 -0
  89. package/dist/src/components/custom/scheduler/logic/filtering/filterResources.js +14 -0
  90. package/dist/src/components/custom/scheduler/logic/filtering/hasSameProperties.js +10 -0
  91. package/dist/src/components/custom/scheduler/logic/onDrop/OnDrop.js +45 -0
  92. package/dist/src/components/custom/scheduler/logic/pixels/getHeightLineScheduler.js +14 -0
  93. package/dist/src/components/custom/scheduler/logic/pixels/getPixelsForEvent.js +32 -0
  94. package/dist/src/components/custom/scheduler/logic/pixels/heightScheduler.js +14 -0
  95. package/dist/src/components/custom/scheduler/logic/pixels/heightSchedulerPinned.js +9 -0
  96. package/dist/src/components/custom/scheduler/logic/state_handle/doubleClickOnResource.js +5 -0
  97. package/dist/src/components/custom/scheduler/logic/state_handle/handleResourceChange.js +11 -0
  98. package/dist/src/components/custom/scheduler/logic/state_handle/onDragOver.js +9 -0
  99. package/dist/src/components/custom/scheduler/logic/state_handle/onDropEventToResource.js +3 -0
  100. package/dist/src/components/custom/scheduler/logic/strings/compareStrings.js +7 -0
  101. package/dist/src/components/custom/scheduler/logic/strings/getGUID.js +7 -0
  102. package/dist/src/components/custom/scheduler/logic/ui/checkIfSlotAvailable.js +8 -0
  103. package/dist/src/components/custom/scheduler/logic/ui/getEventsOfResource.js +45 -0
  104. package/dist/src/components/custom/scheduler/logic/ui/getTimeHeaders.js +35 -0
  105. package/dist/src/components/custom/scheduler/logic/ui/isAllowedToMove.js +19 -0
  106. package/dist/src/components/custom/scheduler/logic/ui/updateResourceVisibility.js +15 -0
  107. package/dist/src/components/custom/scheduler/state/CblDragAndDrop.js +18 -0
  108. package/dist/src/components/custom/scheduler/state/CwSchedulerProps.js +1 -0
  109. package/dist/src/components/custom/scheduler/state/Resource.js +18 -0
  110. package/dist/src/components/custom/scheduler/state/State.js +1 -0
  111. package/dist/src/components/custom/scheduler/state/cblEvent.js +28 -0
  112. package/dist/src/components/custom/scheduler/state/cblEventCompProps.js +1 -0
  113. package/dist/src/components/custom/scheduler/state/resourceCompProps2.js +1 -0
  114. package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.js +123 -0
  115. package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.d.ts +2 -1
  116. package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.d.ts.map +1 -1
  117. package/dist/src/components/custom/scheduler-new/presentation/NewSchedulerUiEvents.js +118 -0
  118. package/dist/src/components/custom/scheduler-new/presentation/SchedulerPresenter.js +166 -0
  119. package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderDivision.js +26 -0
  120. package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderTitle.js +8 -0
  121. package/dist/src/components/custom/scheduler-new/presentation/components/header/SchedulerHeader.js +86 -0
  122. package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.js +60 -0
  123. package/dist/src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.js +24 -0
  124. package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.js +150 -0
  125. package/dist/src/components/custom/scheduler-new/presentation/components/row/EventSideDrag.js +11 -0
  126. package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.js +176 -0
  127. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.js +8 -0
  128. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.js +39 -0
  129. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.js +8 -0
  130. package/dist/src/components/custom/scheduler-new/presentation/helpers.js +43 -0
  131. package/dist/src/components/custom/scheduler-new/presentation/logic/WeekendCalc.js +24 -0
  132. package/dist/src/components/custom/scheduler-new/presentation/logic/dateFromPercentage.js +7 -0
  133. package/dist/src/components/custom/scheduler-new/presentation/logic/eventIsVisible.js +7 -0
  134. package/dist/src/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.js +113 -0
  135. package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.js +21 -0
  136. package/dist/src/components/custom/scheduler-new/presentation/logic/getEventSizes.js +30 -0
  137. package/dist/src/components/custom/scheduler-new/presentation/logic/getLinesByDivisions.js +13 -0
  138. package/dist/src/components/custom/scheduler-new/presentation/logic/getPercentageFromMouseEvent.js +7 -0
  139. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.js +32 -0
  140. package/dist/src/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.js +12 -0
  141. package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.js +267 -0
  142. package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.js +269 -0
  143. package/dist/src/components/custom/scheduler-temporal/components/EventRender.js +142 -0
  144. package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.js +12 -0
  145. package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.js +26 -0
  146. package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.js +13 -0
  147. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.js +12 -0
  148. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.js +62 -0
  149. package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.js +13 -0
  150. package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.js +22 -0
  151. package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.js +17 -0
  152. package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.js +26 -0
  153. package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.js +23 -0
  154. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.js +31 -0
  155. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.js +16 -0
  156. package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.js +12 -0
  157. package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.js +5 -0
  158. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.js +15 -0
  159. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.js +5 -0
  160. package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.js +43 -0
  161. package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.js +35 -0
  162. package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.js +6 -0
  163. package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.js +20 -0
  164. package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.js +55 -0
  165. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.js +13 -0
  166. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.js +16 -0
  167. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.js +10 -0
  168. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.js +34 -0
  169. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.js +14 -0
  170. package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.js +10 -0
  171. package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.js +36 -0
  172. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.js +14 -0
  173. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.js +32 -0
  174. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.js +14 -0
  175. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.js +9 -0
  176. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.js +5 -0
  177. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.js +178 -0
  178. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.js +11 -0
  179. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.js +9 -0
  180. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.js +3 -0
  181. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.js +3 -0
  182. package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.js +7 -0
  183. package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.js +7 -0
  184. package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.js +9 -0
  185. package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.js +92 -0
  186. package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.js +242 -0
  187. package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.js +35 -0
  188. package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.js +19 -0
  189. package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.js +241 -0
  190. package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.js +15 -0
  191. package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.js +18 -0
  192. package/dist/src/components/custom/scheduler-temporal/state/Resource.js +18 -0
  193. package/dist/src/components/custom/scheduler-temporal/state/cblEvent.js +28 -0
  194. package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.js +1 -0
  195. package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.js +1 -0
  196. package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts.map +1 -1
  197. package/dist/src/components/custom/super-scheduler/PinRowHeader.js +53 -0
  198. package/dist/src/components/custom/super-scheduler/SuperScheduler.js +23 -0
  199. package/dist/src/components/custom/super-scheduler/SuperSchedulerEvents.js +15 -0
  200. package/dist/src/components/custom/super-scheduler/SuperSchedulerPresenter.js +45 -0
  201. package/dist/src/components/display/data/accordion/CwAccordionContainer.js +20 -0
  202. package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.js +138 -0
  203. package/dist/src/components/display/data/table/CwTable.d.ts.map +1 -1
  204. package/dist/src/components/display/data/table/CwTable.js +203 -0
  205. package/dist/src/components/display/graphics/icon/CwIcon.js +23 -0
  206. package/dist/src/components/display/graphics/loading/CwLoading.js +27 -0
  207. package/dist/src/components/display/graphics/loading-small/CwLoadingSmall.js +20 -0
  208. package/dist/src/components/display/text/heading/CwHeadingMain.js +5 -0
  209. package/dist/src/components/display/text/heading/CwHeadingSecond.js +5 -0
  210. package/dist/src/components/display/text/label/CwLabel.js +13 -0
  211. package/dist/src/components/display/text/message/CwMessage.js +75 -0
  212. package/dist/src/components/display/text/note/CwNote.js +78 -0
  213. package/dist/src/components/display/text/tag/CwChip.js +57 -0
  214. package/dist/src/components/display/text/tag/CwTag.js +21 -0
  215. package/dist/src/components/display/text/tooltip/CwTooltip.js +4 -0
  216. package/dist/src/components/layout/align/CwAlign.js +54 -0
  217. package/dist/src/components/layout/card/CwCard.js +55 -0
  218. package/dist/src/components/layout/card/CwCardList.js +38 -0
  219. package/dist/src/components/layout/dialog/CwDialog.js +255 -0
  220. package/dist/src/components/layout/dialog/CwDialogManager.js +44 -0
  221. package/dist/src/components/layout/list/details/CwExpandable.js +28 -0
  222. package/dist/src/components/layout/list/key-value/CwKeyValueList.d.ts +2 -3
  223. package/dist/src/components/layout/list/key-value/CwKeyValueList.d.ts.map +1 -1
  224. package/dist/src/components/layout/list/key-value/CwKeyValueList.js +23 -0
  225. package/dist/src/components/layout/list/sortable/CwSortableList.js +73 -0
  226. package/dist/src/components/layout/list/sortable/useSortableList.js +53 -0
  227. package/dist/src/components/layout/modal/CwModalReportFunctional.js +23 -0
  228. package/dist/src/components/layout/modal/hover/CwModalHover.js +61 -0
  229. package/dist/src/components/layout/modal/legacy/cw_modal.js +44 -0
  230. package/dist/src/components/layout/modal/legacy/cw_modal_confirm.js +39 -0
  231. package/dist/src/components/layout/modal/legacy/cw_modal_iframe.js +44 -0
  232. package/dist/src/components/layout/modal/legacy/cw_modal_report.js +26 -0
  233. package/dist/src/components/layout/table/grouped/CwTableGrouped.js +70 -0
  234. package/dist/src/components/layout/tabs/CwTabs.js +53 -0
  235. package/dist/src/index.d.ts +6 -0
  236. package/dist/src/index.d.ts.map +1 -1
  237. package/dist/src/index.js +187 -0
  238. package/dist/test/components/custom/new-scheduler/presentation/logic/getDefaultDivisions.test.js +48 -0
  239. package/dist/test/components/custom/new-scheduler/presentation/logic/hoursBetween.test.js +15 -0
  240. package/dist/test/components/custom/new-scheduler/presentation/logic/monthDivisions.test.js +42 -0
  241. package/dist/test/components/custom/new-scheduler/presentation/logic/weekendCalc.test.js +30 -0
  242. package/dist/test/components/custom/scheduler/addMinutesToDateFromPx.test.js +43 -0
  243. package/dist/test/components/custom/scheduler/checkIfSlotAvailable.test.js +30 -0
  244. package/dist/test/components/custom/scheduler/daysBetweenTwoDates.test.js +61 -0
  245. package/dist/test/components/custom/scheduler/daysBetweenTwoDatesWithoutCeilForEvent.test.js +27 -0
  246. package/dist/test/components/custom/scheduler/getGUID.test.js +30 -0
  247. package/dist/test/components/custom/scheduler/getPixelsForEvent.test.js +38 -0
  248. package/dist/test/components/custom/scheduler/getTimeHeaders.test.js +35 -0
  249. package/dist/test/components/custom/scheduler/hasSameProperties.test.js +51 -0
  250. package/dist/test/components/custom/scheduler/isAllowedToMove.test.js +28 -0
  251. package/dist/test/components/custom/scheduler/listOfDatesToWeeks.test.js +72 -0
  252. package/dist/test/jest.setup.js +1 -0
  253. package/package.json +6 -2
  254. package/dist/assets/asset-DnHaq7m- +0 -50
  255. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-full-normal.woff2 +0 -0
  256. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-grad-normal.woff2 +0 -0
  257. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-opsz-normal.woff2 +0 -0
  258. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-slnt-normal.woff2 +0 -0
  259. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-standard-normal.woff2 +0 -0
  260. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-wdth-normal.woff2 +0 -0
  261. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-wght-normal.woff2 +0 -0
  262. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-xopq-normal.woff2 +0 -0
  263. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-xtra-normal.woff2 +0 -0
  264. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-yopq-normal.woff2 +0 -0
  265. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytas-normal.woff2 +0 -0
  266. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytde-normal.woff2 +0 -0
  267. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytfi-normal.woff2 +0 -0
  268. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytlc-normal.woff2 +0 -0
  269. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ext-ytuc-normal.woff2 +0 -0
  270. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-full-normal.woff2 +0 -0
  271. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-grad-normal.woff2 +0 -0
  272. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-opsz-normal.woff2 +0 -0
  273. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-slnt-normal.woff2 +0 -0
  274. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-standard-normal.woff2 +0 -0
  275. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-wdth-normal.woff2 +0 -0
  276. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-wght-normal.woff2 +0 -0
  277. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-xopq-normal.woff2 +0 -0
  278. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-xtra-normal.woff2 +0 -0
  279. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-yopq-normal.woff2 +0 -0
  280. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytas-normal.woff2 +0 -0
  281. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytde-normal.woff2 +0 -0
  282. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytfi-normal.woff2 +0 -0
  283. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytlc-normal.woff2 +0 -0
  284. package/dist/content/fonts/roboto-flex/files/roboto-flex-cyrillic-ytuc-normal.woff2 +0 -0
  285. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-full-normal.woff2 +0 -0
  286. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-grad-normal.woff2 +0 -0
  287. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-opsz-normal.woff2 +0 -0
  288. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-slnt-normal.woff2 +0 -0
  289. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-standard-normal.woff2 +0 -0
  290. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-wdth-normal.woff2 +0 -0
  291. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-wght-normal.woff2 +0 -0
  292. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-xopq-normal.woff2 +0 -0
  293. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-xtra-normal.woff2 +0 -0
  294. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-yopq-normal.woff2 +0 -0
  295. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytas-normal.woff2 +0 -0
  296. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytde-normal.woff2 +0 -0
  297. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytfi-normal.woff2 +0 -0
  298. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytlc-normal.woff2 +0 -0
  299. package/dist/content/fonts/roboto-flex/files/roboto-flex-greek-ytuc-normal.woff2 +0 -0
  300. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-full-normal.woff2 +0 -0
  301. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-grad-normal.woff2 +0 -0
  302. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-opsz-normal.woff2 +0 -0
  303. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-slnt-normal.woff2 +0 -0
  304. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-standard-normal.woff2 +0 -0
  305. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-wdth-normal.woff2 +0 -0
  306. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-wght-normal.woff2 +0 -0
  307. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-xopq-normal.woff2 +0 -0
  308. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-xtra-normal.woff2 +0 -0
  309. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-yopq-normal.woff2 +0 -0
  310. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytas-normal.woff2 +0 -0
  311. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytde-normal.woff2 +0 -0
  312. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytfi-normal.woff2 +0 -0
  313. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytlc-normal.woff2 +0 -0
  314. package/dist/content/fonts/roboto-flex/files/roboto-flex-vietnamese-ytuc-normal.woff2 +0 -0
  315. package/dist/content/icons/cw-icons/css/cw-icons.css +0 -2784
  316. package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.eot +0 -0
  317. package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.svg +0 -11
  318. package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.ttf +0 -0
  319. package/dist/content/icons/cw-icons/fonts/cwAvinodeFont/CblAvinodeIcon.woff +0 -0
  320. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.eot +0 -0
  321. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.svg +0 -38
  322. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.ttf +0 -0
  323. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.woff +0 -0
  324. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/CblCrewControl.woff2 +0 -0
  325. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.eot +0 -0
  326. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.svg +0 -29
  327. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.ttf +0 -0
  328. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.woff +0 -0
  329. package/dist/content/icons/cw-icons/fonts/cwCrewControlFont/Crew Control.woff2 +0 -0
  330. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.eot +0 -0
  331. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.svg +0 -12
  332. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.ttf +0 -0
  333. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblCrewControlReact.woff +0 -0
  334. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.eot +0 -0
  335. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.svg +0 -11
  336. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.ttf +0 -0
  337. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/CblDutyIcon.woff +0 -0
  338. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.eot +0 -0
  339. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.svg +0 -12
  340. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.ttf +0 -0
  341. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/SessionWarning.woff +0 -0
  342. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.eot +0 -0
  343. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.svg +0 -26
  344. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.ttf +0 -0
  345. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.woff +0 -0
  346. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblDuty.woff2 +0 -0
  347. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.eot +0 -0
  348. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.svg +0 -13
  349. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.ttf +0 -0
  350. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrol.woff +0 -0
  351. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.eot +0 -0
  352. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.svg +0 -29
  353. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.ttf +0 -0
  354. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.woff +0 -0
  355. package/dist/content/icons/cw-icons/fonts/cwCrewControlNewIcon/cblcrewcontrolfont.woff2 +0 -0
  356. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.eot +0 -0
  357. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.svg +0 -29
  358. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.ttf +0 -0
  359. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.woff +0 -0
  360. package/dist/content/icons/cw-icons/fonts/cwCrewFont/Crew.woff2 +0 -0
  361. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.eot +0 -0
  362. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.svg +0 -17
  363. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.ttf +0 -0
  364. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.woff +0 -0
  365. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/Crew Planning.woff2 +0 -0
  366. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.eot +0 -0
  367. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.svg +0 -20
  368. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.ttf +0 -0
  369. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.woff +0 -0
  370. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewPlanningFont.woff2 +0 -0
  371. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.eot +0 -0
  372. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.svg +0 -12
  373. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.ttf +0 -0
  374. package/dist/content/icons/cw-icons/fonts/cwCrewPlanningFont/CrewSchedulingFont.woff +0 -0
  375. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.eot +0 -0
  376. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.svg +0 -20
  377. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.ttf +0 -0
  378. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.woff +0 -0
  379. package/dist/content/icons/cw-icons/fonts/cwDispatchFont/Dispatch.woff2 +0 -0
  380. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.eot +0 -0
  381. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.svg +0 -12
  382. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.ttf +0 -0
  383. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/ArchiveEmanual.woff +0 -0
  384. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.eot +0 -0
  385. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.svg +0 -14
  386. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.ttf +0 -0
  387. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/CblEmanualNewIcons.woff +0 -0
  388. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.eot +0 -0
  389. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.svg +0 -38
  390. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.ttf +0 -0
  391. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.woff +0 -0
  392. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/Emanual.woff2 +0 -0
  393. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.eot +0 -0
  394. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.svg +0 -11
  395. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.ttf +0 -0
  396. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualApprovedFile.woff +0 -0
  397. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.eot +0 -0
  398. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.svg +0 -17
  399. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.ttf +0 -0
  400. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.woff +0 -0
  401. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMark.woff2 +0 -0
  402. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.eot +0 -0
  403. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.svg +0 -11
  404. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.ttf +0 -0
  405. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualBookMarkLink.woff +0 -0
  406. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.eot +0 -0
  407. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.svg +0 -11
  408. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.ttf +0 -0
  409. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFolder.woff +0 -0
  410. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.eot +0 -0
  411. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.svg +0 -13
  412. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.ttf +0 -0
  413. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFont.woff +0 -0
  414. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.eot +0 -0
  415. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.svg +0 -32
  416. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.ttf +0 -0
  417. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.woff +0 -0
  418. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualFontNew.woff2 +0 -0
  419. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.eot +0 -0
  420. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.svg +0 -11
  421. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.ttf +0 -0
  422. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPendingIcon.woff +0 -0
  423. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.eot +0 -0
  424. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.svg +0 -11
  425. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.ttf +0 -0
  426. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishFile.woff +0 -0
  427. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.eot +0 -0
  428. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.svg +0 -11
  429. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.ttf +0 -0
  430. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualPublishIconFile.woff +0 -0
  431. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.eot +0 -0
  432. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.svg +0 -11
  433. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.ttf +0 -0
  434. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrash.woff +0 -0
  435. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.eot +0 -0
  436. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.svg +0 -11
  437. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.ttf +0 -0
  438. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/EmanualRestoreTrashRight.woff +0 -0
  439. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.eot +0 -0
  440. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.svg +0 -12
  441. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.ttf +0 -0
  442. package/dist/content/icons/cw-icons/fonts/cwEmanualFont/LibraryIcon.woff +0 -0
  443. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.eot +0 -0
  444. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.svg +0 -158
  445. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.ttf +0 -0
  446. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.woff +0 -0
  447. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/Favorites.woff2 +0 -0
  448. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.eot +0 -0
  449. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.svg +0 -18
  450. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.ttf +0 -0
  451. package/dist/content/icons/cw-icons/fonts/cwFavoritesElement/cwellt_icon.woff +0 -0
  452. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.eot +0 -0
  453. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.svg +0 -62
  454. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.ttf +0 -0
  455. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.woff +0 -0
  456. package/dist/content/icons/cw-icons/fonts/cwFavoritesFont/Favorites.woff2 +0 -0
  457. package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.eot +0 -0
  458. package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.svg +0 -43
  459. package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.ttf +0 -0
  460. package/dist/content/icons/cw-icons/fonts/cwFavoritesIcons/CblFavoritesIcons.woff +0 -0
  461. package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.eot +0 -0
  462. package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.svg +0 -49
  463. package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.ttf +0 -0
  464. package/dist/content/icons/cw-icons/fonts/cwFgIconsFonts/CblFigIcons.woff +0 -0
  465. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.eot +0 -0
  466. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.svg +0 -41
  467. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.ttf +0 -0
  468. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.woff +0 -0
  469. package/dist/content/icons/cw-icons/fonts/cwFlightOpsFont/FlightOps.woff2 +0 -0
  470. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.eot +0 -0
  471. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.svg +0 -11
  472. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.ttf +0 -0
  473. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/CblUndoIcon.woff +0 -0
  474. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.eot +0 -0
  475. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.svg +0 -11
  476. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.ttf +0 -0
  477. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/FlightWatchOnTimeIcon.woff +0 -0
  478. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.eot +0 -0
  479. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.svg +0 -41
  480. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.ttf +0 -0
  481. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.woff +0 -0
  482. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/General.woff2 +0 -0
  483. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.eot +0 -0
  484. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.svg +0 -12
  485. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.ttf +0 -0
  486. package/dist/content/icons/cw-icons/fonts/cwGeneralFont/IDCardStatusIcon.woff +0 -0
  487. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.eot +0 -0
  488. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.svg +0 -17
  489. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.ttf +0 -0
  490. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.woff +0 -0
  491. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/Favorites.woff2 +0 -0
  492. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.eot +0 -0
  493. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.svg +0 -11
  494. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.ttf +0 -0
  495. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/calculator.woff +0 -0
  496. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.eot +0 -0
  497. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.svg +0 -11
  498. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.ttf +0 -0
  499. package/dist/content/icons/cw-icons/fonts/cwNewGeneralFontIcon/icons_cwellt.woff +0 -0
  500. package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.eot +0 -0
  501. package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.svg +0 -12
  502. package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.ttf +0 -0
  503. package/dist/content/icons/cw-icons/fonts/cwOpstoolReactFont/opstoolReactIcons.woff +0 -0
  504. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.eot +0 -0
  505. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.svg +0 -17
  506. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.ttf +0 -0
  507. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.woff +0 -0
  508. package/dist/content/icons/cw-icons/fonts/cwPaxRelationsFont/Pax Relations.woff2 +0 -0
  509. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.eot +0 -0
  510. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.svg +0 -50
  511. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.ttf +0 -0
  512. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.woff +0 -0
  513. package/dist/content/icons/cw-icons/fonts/cwSalesFont/Sales.woff2 +0 -0
  514. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.eot +0 -0
  515. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.svg +0 -17
  516. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.ttf +0 -0
  517. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.woff +0 -0
  518. package/dist/content/icons/cw-icons/fonts/cwTrainingFont/Training.woff2 +0 -0
  519. package/dist/content/icons/font-awesome/webfonts/fa-brands-400.ttf +0 -0
  520. package/dist/content/icons/font-awesome/webfonts/fa-regular-400.ttf +0 -0
  521. package/dist/content/icons/font-awesome/webfonts/fa-solid-900.ttf +0 -0
  522. package/dist/content/icons/font-awesome/webfonts/fa-v4compatibility.ttf +0 -0
  523. package/dist/index.cjs.js.map +0 -1
  524. package/dist/index.css.map +0 -1
  525. package/dist/index.d.ts.map +0 -1
  526. package/dist/index.esm.js +0 -4836
  527. package/dist/src/common/functions/reactor.d.ts +0 -2
  528. package/dist/src/common/functions/reactor.d.ts.map +0 -1
  529. package/dist/src/components/control/input/chipper/CwChip.d.ts +0 -12
  530. package/dist/src/components/control/input/chipper/CwChip.d.ts.map +0 -1
  531. package/dist/src/components/custom/scheduler/components/ClearSchedulerButton.d.ts +0 -8
  532. package/dist/src/components/custom/scheduler/components/ClearSchedulerButton.d.ts.map +0 -1
  533. package/dist/src/components/custom/scheduler/logic/filtering/filterAndProcessResources.d.ts +0 -14
  534. package/dist/src/components/custom/scheduler/logic/filtering/filterAndProcessResources.d.ts.map +0 -1
  535. package/dist/src/components/custom/scheduler/logic/pixels/calculateMaxPxFromDateRange.d.ts +0 -2
  536. package/dist/src/components/custom/scheduler/logic/pixels/calculateMaxPxFromDateRange.d.ts.map +0 -1
  537. package/dist/src/components/custom/scheduler/logic/state_handle/handleDateChange.d.ts +0 -5
  538. package/dist/src/components/custom/scheduler/logic/state_handle/handleDateChange.d.ts.map +0 -1
  539. package/dist/src/components/custom/scheduler/logic/state_handle/handlePropChanges.d.ts +0 -5
  540. package/dist/src/components/custom/scheduler/logic/state_handle/handlePropChanges.d.ts.map +0 -1
  541. package/dist/src/components/custom/scheduler/logic/state_handle/onResizeEvent.d.ts +0 -3
  542. package/dist/src/components/custom/scheduler/logic/state_handle/onResizeEvent.d.ts.map +0 -1
  543. package/dist/src/components/custom/scheduler/logic/ui/getHasPropsChanged.d.ts +0 -3
  544. package/dist/src/components/custom/scheduler/logic/ui/getHasPropsChanged.d.ts.map +0 -1
  545. package/dist/src/components/custom/scheduler/logic/ui/shouldTriggerScroll.d.ts +0 -3
  546. package/dist/src/components/custom/scheduler/logic/ui/shouldTriggerScroll.d.ts.map +0 -1
  547. package/dist/src/components/custom/scheduler/state/EventProps.d.ts +0 -7
  548. package/dist/src/components/custom/scheduler/state/EventProps.d.ts.map +0 -1
  549. package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgrounEvent.d.ts +0 -1
  550. package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgrounEvent.d.ts.map +0 -1
  551. package/dist/src/components/custom/scheduler-new/presentation/components/row/cancellablePromise.d.ts +0 -7
  552. package/dist/src/components/custom/scheduler-new/presentation/components/row/cancellablePromise.d.ts.map +0 -1
  553. package/dist/src/components/custom/scheduler-new/presentation/components/row/useCancellablePromise.d.ts +0 -7
  554. package/dist/src/components/custom/scheduler-new/presentation/components/row/useCancellablePromise.d.ts.map +0 -1
  555. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsByResource.d.ts +0 -5
  556. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsByResource.d.ts.map +0 -1
  557. package/dist/src/components/custom/scheduler-new/presentation/state/external/Event.d.ts +0 -9
  558. package/dist/src/components/custom/scheduler-new/presentation/state/external/Event.d.ts.map +0 -1
  559. package/dist/src/components/custom/scheduler-new/presentation/state/external/Row.d.ts +0 -5
  560. package/dist/src/components/custom/scheduler-new/presentation/state/external/Row.d.ts.map +0 -1
  561. package/dist/src/components/custom/scheduler-new/presentation/state/ui/EventSideDragState.d.ts +0 -6
  562. package/dist/src/components/custom/scheduler-new/presentation/state/ui/EventSideDragState.d.ts.map +0 -1
  563. package/dist/src/components/custom/scheduler-new/presentation/state/ui/HeaderDivision.d.ts +0 -5
  564. package/dist/src/components/custom/scheduler-new/presentation/state/ui/HeaderDivision.d.ts.map +0 -1
  565. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerEventState.d.ts +0 -14
  566. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerEventState.d.ts.map +0 -1
  567. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerHeaderState.d.ts +0 -11
  568. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerHeaderState.d.ts.map +0 -1
  569. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerRow.d.ts +0 -8
  570. package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerRow.d.ts.map +0 -1
  571. package/dist/test/components/custom/newScheduler/presentation/logic/getDefaultDivisions.test.d.ts.map +0 -1
  572. package/dist/test/components/custom/scheduler/calculateMaxPxFromDateRange.test.d.ts +0 -2
  573. package/dist/test/components/custom/scheduler/calculateMaxPxFromDateRange.test.d.ts.map +0 -1
  574. package/dist/test/components/custom/scheduler/filterEvents.test.d.ts.map +0 -1
  575. package/dist/test/components/custom/scheduler/shouldTriggerScroll.test.d.ts.map +0 -1
  576. package/dist/test/example.test.d.ts +0 -1
  577. package/dist/test/example.test.d.ts.map +0 -1
  578. /package/dist/src/{components/custom/scheduler-new/presentation/TestScheduler.d.ts → common/interfaces/CwSelectListProps.js} +0 -0
  579. /package/dist/{test/components/custom/newScheduler/presentation/logic/getDefaultDivisions.test.d.ts → src/components/custom/scheduler-new/presentation/components/header/SchedulerHeaderState.js} +0 -0
  580. /package/dist/{test/components/custom/newScheduler/presentation/logic/hoursBetween.test.d.ts → src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.js} +0 -0
  581. /package/dist/{test/components/custom/newScheduler/presentation/logic/weekendCalc.test.d.ts → src/components/custom/scheduler-new/presentation/state/ui/WeekRange.js} +0 -0
  582. /package/dist/{test/components/custom/scheduler/filterEvents.test.d.ts → src/components/custom/scheduler-temporal/state/CwSchedulerProps.js} +0 -0
  583. /package/dist/{test/components/custom/scheduler/shouldTriggerScroll.test.d.ts → src/components/custom/scheduler-temporal/state/State.js} +0 -0
@@ -0,0 +1,99 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Select, Tag } from "antd";
3
+ import * as React from "react";
4
+ const { Option, OptGroup } = Select;
5
+ export class MultiSelect extends React.Component {
6
+ constructor(Props) {
7
+ super(Props);
8
+ this.state = {
9
+ selected: null,
10
+ isVisibleDropDown: false,
11
+ activeClassName: ""
12
+ };
13
+ }
14
+ componentDidMount() {
15
+ this.setState({
16
+ selected: this.props.selectedItems?.map((s) => ({
17
+ type: s.type,
18
+ id: s.id,
19
+ despription: s.despription,
20
+ color: s.color
21
+ }))
22
+ });
23
+ this.onClickSelect = this.onClickSelect.bind(this);
24
+ }
25
+ onClickSelect = () => {
26
+ this.setState({
27
+ isVisibleDropDown: !this.state.isVisibleDropDown
28
+ });
29
+ this.setState({
30
+ activeClassName: "cwelltSelectDropDown_active"
31
+ });
32
+ };
33
+ handleOnDropDownVisibleChange = () => {
34
+ const dropDown_content = document.getElementsByClassName("cwelltSelectDropDown");
35
+ for (let i = 0; i <= dropDown_content.length; i++) {
36
+ dropDown_content[i]?.addEventListener("mouseleave", () => {
37
+ this.setState({
38
+ isVisibleDropDown: false
39
+ });
40
+ });
41
+ }
42
+ };
43
+ onKeyUpSelect = (e_KeyUp_select) => {
44
+ if (e_KeyUp_select.key === "Enter" || e_KeyUp_select.key === "Escape") {
45
+ this.setState({
46
+ isVisibleDropDown: false
47
+ });
48
+ }
49
+ else {
50
+ this.setState({
51
+ isVisibleDropDown: true
52
+ });
53
+ }
54
+ };
55
+ // mouseHover dropDown active
56
+ onMouseHoverDropDownActive = () => {
57
+ const dropDown_active = document.getElementsByClassName("cwelltSelectDropDown_active");
58
+ const itemArray = () => {
59
+ Array.from(dropDown_active).forEach(index => {
60
+ const dropDown = index;
61
+ dropDown.addEventListener("mouseover", () => { });
62
+ });
63
+ return true;
64
+ };
65
+ if (dropDown_active.length > 0 && itemArray()) {
66
+ return true;
67
+ }
68
+ else {
69
+ return false;
70
+ }
71
+ };
72
+ // clicl cwelltDropDown
73
+ onMouseLeaveMultiSelect = (event_mouseLeave) => {
74
+ const post = event_mouseLeave.currentTarget.getBoundingClientRect();
75
+ const posCursorY = event_mouseLeave.clientY;
76
+ if (posCursorY > post.bottom && this.state.isVisibleDropDown === true) {
77
+ this.setState({
78
+ isVisibleDropDown: true
79
+ });
80
+ }
81
+ else {
82
+ this.setState({
83
+ isVisibleDropDown: false
84
+ });
85
+ }
86
+ };
87
+ render() {
88
+ return (_jsx("div", { style: {
89
+ display: "flex",
90
+ flexDirection: "row",
91
+ alignItems: "flexStart",
92
+ width: "100%"
93
+ }, id: "contentMultiSelect", onMouseLeave: e => this.onMouseLeaveMultiSelect(e), children: _jsx("div", { style: { flex: 1 }, children: _jsx(Select, { autoClearSearchValue: true, mode: "multiple", allowClear: true, style: { width: "100%" }, onChange: this.props.handleChange, optionFilterProp: "description", virtual: true, showArrow: true, size: "middle", className: this.props.selectedItems?.length === 0
94
+ ? "cwelltMultiSelect cwelltSelect cwelltSelectSimple cwelltMultiSelect_searchIcon"
95
+ : "cwelltMultiSelect cwelltSelect cwelltSelectSimple", placeholder: "Search or filter...", dropdownClassName: this.state.isVisibleDropDown
96
+ ? " cwelltSelectDropDown cwelltSelectDropDown_active"
97
+ : "cwelltSelectDropDown", value: this.props.selectedItems?.map(s => s.type + "_" + s.id), onClick: () => this.onClickSelect(), open: this.state.isVisibleDropDown, onDropdownVisibleChange: () => this.handleOnDropDownVisibleChange(), onKeyUp: e_KeyUp_select => this.onKeyUpSelect(e_KeyUp_select), children: this.props.selectLists.map((slArray, i) => (_jsx(OptGroup, { label: slArray.length > 0 ? slArray[0]?.type : "", children: slArray.map(sl => (_jsx(Option, { value: sl.type + "_" + sl.id, type: sl.type, description: sl.description, val: sl.id, children: _jsx(Tag, { color: sl.color, children: sl.description }) }, sl.type + "_" + sl.id))) }, "_" + i))) }) }) }));
98
+ }
99
+ }
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from "react";
3
+ export function CwDropdown(optionsProps) {
4
+ const [selectedOption, setSelectedOption] = useState(optionsProps.defaultSelected || "");
5
+ useEffect(() => {
6
+ if (optionsProps.defaultSelected !== undefined && optionsProps.defaultSelected !== selectedOption) {
7
+ setSelectedOption(optionsProps.defaultSelected);
8
+ if (optionsProps.handleChange) {
9
+ optionsProps.handleChange(optionsProps.defaultSelected);
10
+ }
11
+ }
12
+ }, [optionsProps.defaultSelected, selectedOption, optionsProps.handleChange]);
13
+ const handleOptionSelect = (event) => {
14
+ const selectedValue = event.target.value;
15
+ setSelectedOption(selectedValue);
16
+ if (optionsProps.handleChange) {
17
+ optionsProps.handleChange(selectedValue);
18
+ }
19
+ };
20
+ return (_jsxs("div", { className: optionsProps.labelPosition === "inline"
21
+ ? "cwellt_flex cwellt_flex_row cwellt_align_items_center cwDropDownComp" + " " + optionsProps.className
22
+ : optionsProps.labelPosition === "column"
23
+ ? "cwellt_flex cwellt_flex_column cwellt_align-items_baseline cwDropDownComp" + " " + optionsProps.className
24
+ : "cwellt_flex cwellt_flex_row cwellt_align_items_center cwDropDownComp" + " " + optionsProps.className, style: optionsProps.style, id: optionsProps.id, children: [_jsx("label", { className: optionsProps.disabled === true
25
+ ? "cw_label_text cw_label_text_disabled" + " " + optionsProps.labelClassName
26
+ : "cw_label_text" + " " + optionsProps.labelClassName, children: optionsProps.labelName }), _jsx("select", { value: selectedOption, onChange: handleOptionSelect, className: "cw_select", style: optionsProps.styleSelect, disabled: optionsProps.disabled || optionsProps.selectList.length === 0, children: optionsProps.selectList.length === 0 ? (_jsx("option", { value: "", className: "cw_option", disabled: true, children: "No data" })) : (_jsxs(_Fragment, { children: [_jsx("option", { value: "", className: "cw_option", children: optionsProps.placeholder }), optionsProps.selectList.map(option => (_jsx("option", { value: option.id, className: "cw_option", style: optionsProps.styleOption, children: option.description }, option.id)))] })) })] }));
27
+ }
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { useEffect } from "react";
4
+ export function CwDropdownContainer(dropDownContainerProps) {
5
+ // #region
6
+ // - Ref dropDownContainer
7
+ const dropDownContainer_ref = React.createRef();
8
+ // - Ref list container
9
+ const dropDown_listContainer = React.createRef();
10
+ // #endregion
11
+ // #region Functions
12
+ const onKeyPressDropDownContainer = (event_keyDown) => {
13
+ dropDownContainerProps.onKeyDownDropDownContainer(event_keyDown);
14
+ };
15
+ const onMouseLeaveDropDownContainer = (event_onMouseLeave) => {
16
+ if (typeof dropDownContainerProps.onMouseLeaveDropDownContainer === "function") {
17
+ dropDownContainerProps.onMouseLeaveDropDownContainer(event_onMouseLeave);
18
+ }
19
+ };
20
+ // #endregion
21
+ // #region UseEffect
22
+ useEffect(() => {
23
+ window.addEventListener("keydown", onKeyPressDropDownContainer);
24
+ return () => {
25
+ window.removeEventListener("keydown", onKeyPressDropDownContainer);
26
+ };
27
+ }, []);
28
+ // #endregion
29
+ return (_jsx("div", { className: `cw-dropdown-container ${dropDownContainerProps.className || ''}`, onKeyDown: onKeyPressDropDownContainer, onMouseLeave: onMouseLeaveDropDownContainer, tabIndex: 0, hidden: !dropDownContainerProps.dropDownState, children: _jsx("div", { className: "cw-dropdown-list", id: dropDownContainerProps.idDropDownContainer, ref: dropDownContainer_ref, children: _jsx("div", { ref: dropDown_listContainer, children: dropDownContainerProps.children }) }) }));
30
+ }
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export function CwDropdownFilter(props) {
3
+ // Determine visibility state
4
+ const isVisible = props.DropDownFilterState ?? false;
5
+ // Generate CSS classes
6
+ const containerClassName = `cw-dropdown-filter ${props.isNested ? 'dropdown-nested' : ''}`.trim();
7
+ // Only apply inline styles for width override if provided
8
+ const inlineStyles = props.width ? { width: props.width } : undefined;
9
+ return (_jsxs("div", { id: props.IdContent, className: containerClassName, children: [props.children, isVisible && (_jsx("nav", { className: "cw-dropdown-menu", style: inlineStyles, onMouseLeave: props.onMouseLeave, id: props.idDropDownFilter, role: "menu", children: _jsx("ul", { role: "none", children: props.DataSourceDropDownItem?.map((item) => (_jsx("li", { id: item.IdDropDown_filter, role: "menuitem", children: item.dropDownFilter_desc }, item.IdDropDown_filter))) }) }))] }));
10
+ }
@@ -0,0 +1,298 @@
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
+ };
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,80 @@
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
+ }