@cwellt_software/cwellt-reactjs-lib 1.4.15 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content/fonts/roboto-mono/LICENSE +93 -0
- package/dist/content/fonts/roboto-mono/RobotoMono.css +43 -0
- package/dist/content/fonts/roboto-mono/files/roboto-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/content/fonts/roboto-mono/files/roboto-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/content/fonts/roboto-mono/files/roboto-mono-latin-wght-italic.woff2 +0 -0
- package/dist/content/fonts/roboto-mono/files/roboto-mono-latin-wght-normal.woff2 +0 -0
- package/dist/content/icons/new-cw-icons/NewCwIcons.json +1 -1
- package/dist/content/icons/new-cw-icons/css/new-cw-icons.css +260 -824
- package/dist/content/icons/new-cw-icons/fonts/NewCwIcons.woff +0 -0
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts +24 -0
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts.map +1 -0
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts +17 -0
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts.map +1 -0
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts +17 -0
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts.map +1 -0
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts +13 -0
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts.map +1 -0
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts +14 -0
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts.map +1 -0
- package/dist/deprecated/components/tag/CwTag.d.ts +15 -0
- package/dist/deprecated/components/tag/CwTag.d.ts.map +1 -0
- package/dist/index.cjs.js +514 -213
- package/dist/index.css +2 -2
- package/dist/index.d.ts +226 -51
- package/dist/index.es.js +508 -212
- package/dist/playground/main.d.ts +4 -0
- package/dist/playground/main.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts +33 -0
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts.map +1 -0
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts +29 -0
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts +102 -0
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwSearch.d.ts +2 -0
- package/dist/src/components/control/action/search/CwSearch.d.ts.map +1 -1
- package/dist/src/components/control/action/search/searchKeyboardNavigation.d.ts +35 -0
- package/dist/src/components/control/action/search/searchKeyboardNavigation.d.ts.map +1 -0
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts +19 -0
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts.map +1 -0
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts +19 -0
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts.map +1 -0
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts +21 -0
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts.map +1 -0
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts +24 -0
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts +19 -0
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts +17 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts +21 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts.map +1 -0
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts +17 -0
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts.map +1 -0
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts +13 -0
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts.map +1 -0
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts +14 -0
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts.map +1 -0
- package/dist/src/components/control/choice/nav-menu/CwNavMenu.d.ts +78 -0
- package/dist/src/components/control/choice/nav-menu/CwNavMenu.d.ts.map +1 -0
- package/dist/src/components/control/choice/nav-menu/filterNavItems.d.ts +9 -0
- package/dist/src/components/control/choice/nav-menu/filterNavItems.d.ts.map +1 -0
- package/dist/src/components/control/choice/nav-menu/sortNavItems.d.ts +9 -0
- package/dist/src/components/control/choice/nav-menu/sortNavItems.d.ts.map +1 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts +12 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts.map +1 -1
- package/dist/src/components/control/input/image/CwInputImage.d.ts +17 -2
- package/dist/src/components/control/input/image/CwInputImage.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts +47 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts +24 -0
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts +86 -0
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts +10 -0
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts +20 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts +14 -0
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts +11 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts +11 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts +13 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts +11 -0
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts +14 -0
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts +23 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts +8 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts +12 -0
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts +12 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts +10 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts +12 -0
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts +7 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts +10 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts +7 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts +8 -0
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts +13 -0
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts +7 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts +6 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts +5 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts +5 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts +6 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts +2 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts +4 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts +3 -0
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts +11 -0
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts +43 -0
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts +14 -0
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts +25 -0
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts +18 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts +7 -0
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts +6 -0
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts.map +1 -0
- package/dist/src/components/display/data/table/CwTable.d.ts +4 -1
- package/dist/src/components/display/data/table/CwTable.d.ts.map +1 -1
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.d.ts +4 -1
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.d.ts.map +1 -1
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts +4 -2
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts.map +1 -1
- package/dist/src/components/display/graphics/icon/CwIcon.d.ts +1 -1
- package/dist/src/components/display/graphics/icon/CwIcon.d.ts.map +1 -1
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts +3 -14
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts.map +1 -1
- package/dist/src/components/display/graphics/loading/loadingConfig.d.ts +16 -0
- package/dist/src/components/display/graphics/loading/loadingConfig.d.ts.map +1 -0
- package/dist/src/components/display/graphics/progress/CwProgress.d.ts +36 -0
- package/dist/src/components/display/graphics/progress/CwProgress.d.ts.map +1 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeleton.d.ts +31 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeleton.d.ts.map +1 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts +21 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts.map +1 -0
- package/dist/src/components/display/graphics/skeleton/normalizeSkeletonCount.d.ts +8 -0
- package/dist/src/components/display/graphics/skeleton/normalizeSkeletonCount.d.ts.map +1 -0
- package/dist/src/components/display/graphics/skeleton/skeletonCellWidth.d.ts +8 -0
- package/dist/src/components/display/graphics/skeleton/skeletonCellWidth.d.ts.map +1 -0
- package/dist/src/components/display/text/tag/CwTag.d.ts +15 -0
- package/dist/src/components/display/text/tag/CwTag.d.ts.map +1 -0
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts +11 -0
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts.map +1 -0
- package/dist/src/components/layout/card/CwCard.d.ts +3 -1
- package/dist/src/components/layout/card/CwCard.d.ts.map +1 -1
- package/dist/src/components/layout/card/CwCardList.d.ts +4 -2
- package/dist/src/components/layout/card/CwCardList.d.ts.map +1 -1
- package/dist/src/components/layout/list/key-value/CwKeyValueList.d.ts +4 -0
- package/dist/src/components/layout/list/key-value/CwKeyValueList.d.ts.map +1 -1
- package/dist/src/components/layout/master-detail/CwMasterDetail.d.ts +4 -0
- package/dist/src/components/layout/master-detail/CwMasterDetail.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts +16 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts.map +1 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts +21 -0
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts.map +1 -0
- package/dist/src/components/layout/tabs/CwTabs.d.ts +7 -0
- package/dist/src/components/layout/tabs/CwTabs.d.ts.map +1 -1
- package/dist/src/index.d.ts +6 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/playground/PlaygroundApp.d.ts.map +1 -1
- package/dist/src/playground/pages/CwFileUploadMultiplePage.d.ts +3 -0
- package/dist/src/playground/pages/CwFileUploadMultiplePage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwInputImagePage.d.ts.map +1 -1
- package/dist/src/playground/pages/CwNavMenuPage.d.ts +3 -0
- package/dist/src/playground/pages/CwNavMenuPage.d.ts.map +1 -0
- package/dist/src/playground/pages/IconLibraryPage.d.ts +3 -0
- package/dist/src/playground/pages/IconLibraryPage.d.ts.map +1 -0
- package/dist/src/playground/pages/LoadingPage.d.ts +3 -0
- package/dist/src/playground/pages/LoadingPage.d.ts.map +1 -0
- package/dist/src/playground/pages/ProgressPage.d.ts +3 -0
- package/dist/src/playground/pages/ProgressPage.d.ts.map +1 -0
- package/dist/src/playground/pages/SelectorsPage.d.ts.map +1 -1
- package/dist/src/playground/pages/SkeletonPage.d.ts +3 -0
- package/dist/src/playground/pages/SkeletonPage.d.ts.map +1 -0
- package/dist/test/components/control/action/search/searchKeyboardNavigation.test.d.ts +2 -0
- package/dist/test/components/control/action/search/searchKeyboardNavigation.test.d.ts.map +1 -0
- package/dist/test/components/control/choice/nav-menu/CwNavMenu.test.d.ts +2 -0
- package/dist/test/components/control/choice/nav-menu/CwNavMenu.test.d.ts.map +1 -0
- package/dist/test/components/control/choice/nav-menu/filterNavItems.test.d.ts +2 -0
- package/dist/test/components/control/choice/nav-menu/filterNavItems.test.d.ts.map +1 -0
- package/dist/test/components/control/choice/nav-menu/sortNavItems.test.d.ts +2 -0
- package/dist/test/components/control/choice/nav-menu/sortNavItems.test.d.ts.map +1 -0
- package/dist/test/components/control/input/file/fileMatchesAccept.test.d.ts +2 -0
- package/dist/test/components/control/input/file/fileMatchesAccept.test.d.ts.map +1 -0
- package/dist/test/components/control/input/image/readImageFileAsDataUrl.test.d.ts +2 -0
- package/dist/test/components/control/input/image/readImageFileAsDataUrl.test.d.ts.map +1 -0
- package/dist/test/components/display/data/table/CwTable.test.d.ts +2 -0
- package/dist/test/components/display/data/table/CwTable.test.d.ts.map +1 -0
- package/dist/test/components/display/data/table-serverside/CwTableServerSide.test.d.ts +2 -0
- package/dist/test/components/display/data/table-serverside/CwTableServerSide.test.d.ts.map +1 -0
- package/dist/test/components/display/data/table_sortable/CwSortableTable.test.d.ts +2 -0
- package/dist/test/components/display/data/table_sortable/CwSortableTable.test.d.ts.map +1 -0
- package/dist/test/components/display/graphics/loading/CwLoading.test.d.ts +2 -0
- package/dist/test/components/display/graphics/loading/CwLoading.test.d.ts.map +1 -0
- package/dist/test/components/display/graphics/progress/CwProgress.test.d.ts +2 -0
- package/dist/test/components/display/graphics/progress/CwProgress.test.d.ts.map +1 -0
- package/dist/test/components/display/graphics/skeleton/CwSkeleton.test.d.ts +2 -0
- package/dist/test/components/display/graphics/skeleton/CwSkeleton.test.d.ts.map +1 -0
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts +2 -0
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts.map +1 -0
- package/dist/test/components/display/graphics/skeleton/normalizeSkeletonCount.test.d.ts +2 -0
- package/dist/test/components/display/graphics/skeleton/normalizeSkeletonCount.test.d.ts.map +1 -0
- package/dist/test/components/display/graphics/skeleton/skeletonCellWidth.test.d.ts +2 -0
- package/dist/test/components/display/graphics/skeleton/skeletonCellWidth.test.d.ts.map +1 -0
- package/dist/test/components/layout/card/CwCard.test.d.ts +2 -0
- package/dist/test/components/layout/card/CwCard.test.d.ts.map +1 -0
- package/dist/test/components/layout/card/CwCardList.test.d.ts +2 -0
- package/dist/test/components/layout/card/CwCardList.test.d.ts.map +1 -0
- package/dist/test/components/layout/list/key-value/CwKeyValueList.test.d.ts +2 -0
- package/dist/test/components/layout/list/key-value/CwKeyValueList.test.d.ts.map +1 -0
- package/dist/test/components/layout/master-detail/CwMasterDetail.test.d.ts +2 -0
- package/dist/test/components/layout/master-detail/CwMasterDetail.test.d.ts.map +1 -0
- package/dist/test/jest.setup.d.ts +2 -0
- package/dist/test/jest.setup.d.ts.map +1 -0
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -282,7 +282,7 @@ type ZoomImageItem = {
|
|
|
282
282
|
*/
|
|
283
283
|
declare function CwImageZoom(image: ZoomImageItem): React$1.JSX.Element;
|
|
284
284
|
|
|
285
|
-
interface CwIconProps extends Omit<HTMLProps<HTMLSpanElement>, "
|
|
285
|
+
interface CwIconProps extends Omit<HTMLProps<HTMLSpanElement>, "size"> {
|
|
286
286
|
/** Icon identifier */
|
|
287
287
|
iconId: string;
|
|
288
288
|
/** Color variant **/
|
|
@@ -305,50 +305,101 @@ interface CwLoadingProps {
|
|
|
305
305
|
size?: LoadingSize;
|
|
306
306
|
/** Position of the icon */
|
|
307
307
|
iconPosition?: IconPosition;
|
|
308
|
-
/** Custom icon class
|
|
308
|
+
/** Custom icon class. Falls back to the global default (configureCwLoading); with none, a neutral ring is shown. */
|
|
309
309
|
iconName?: string;
|
|
310
310
|
/** Custom animation (default: 'spin') */
|
|
311
311
|
animation?: string;
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
|
-
* CwLoading
|
|
314
|
+
* CwLoading — a spinner with optional text that dims the wrapped content while loading.
|
|
315
315
|
*
|
|
316
|
-
*
|
|
317
|
-
* and disables the wrapped content while in loading state.
|
|
316
|
+
* Icon resolves as `iconName` prop → `getCwLoadingDefaults().icon` → none (neutral ring).
|
|
318
317
|
*
|
|
319
318
|
* @example
|
|
320
|
-
* // Basic usage
|
|
321
319
|
* <CwLoading isLoading={isSubmitting}>
|
|
322
320
|
* <form>...</form>
|
|
323
321
|
* </CwLoading>
|
|
324
|
-
*
|
|
325
|
-
* // With custom text and size
|
|
326
|
-
* <CwLoading
|
|
327
|
-
* isLoading={isLoading}
|
|
328
|
-
* text="Please wait..."
|
|
329
|
-
* size="large"
|
|
330
|
-
* >
|
|
331
|
-
* <UserProfile />
|
|
332
|
-
* </CwLoading>
|
|
333
322
|
*/
|
|
334
323
|
declare function CwLoading({ isLoading, text, size, iconPosition, iconName, animation, children }: React__default.PropsWithChildren<CwLoadingProps>): React__default.JSX.Element;
|
|
335
324
|
|
|
336
|
-
|
|
337
|
-
|
|
325
|
+
/**
|
|
326
|
+
* Global, module-level defaults for CwLoading (singleton, no provider).
|
|
327
|
+
* An app sets these once at init; every CwLoading reads them at render time.
|
|
328
|
+
*/
|
|
329
|
+
interface CwLoadingDefaults {
|
|
330
|
+
/** Icon class applied when a CwLoading has no explicit `iconName` (e.g. 'cwi-plane-solid'). */
|
|
331
|
+
icon?: string;
|
|
338
332
|
}
|
|
339
333
|
/**
|
|
340
|
-
*
|
|
334
|
+
* Register global CwLoading defaults. Call once at app init, before the first render.
|
|
335
|
+
* Merges into any previously configured defaults.
|
|
336
|
+
*/
|
|
337
|
+
declare function configureCwLoading(next: CwLoadingDefaults): void;
|
|
338
|
+
/** Read the currently configured CwLoading defaults. */
|
|
339
|
+
declare function getCwLoadingDefaults(): CwLoadingDefaults;
|
|
340
|
+
|
|
341
|
+
type SkeletonVariant = 'text' | 'rect' | 'circle';
|
|
342
|
+
interface CwSkeletonProps {
|
|
343
|
+
/** Shape of the placeholder. Default: 'text'. */
|
|
344
|
+
variant?: SkeletonVariant;
|
|
345
|
+
/** CSS length. Defaults: text and rect 100%; circle falls back to the height so it stays round. */
|
|
346
|
+
width?: string;
|
|
347
|
+
/** CSS length. Defaults: text 1em, rect 6rem, circle 2.5rem. */
|
|
348
|
+
height?: string;
|
|
349
|
+
/** Number of stacked placeholders. Default 1. When variant is 'text' and count > 1, the last line renders at 60% width for realism. */
|
|
350
|
+
count?: number;
|
|
351
|
+
/** Border-radius override. Defaults: text/rect var(--cw-border-radius), circle 50%. */
|
|
352
|
+
radius?: string;
|
|
353
|
+
/** Spacing between stacked placeholders when count > 1. CSS length. Default: var(--cw-spacing-tiny). */
|
|
354
|
+
gap?: string;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* CwSkeleton - a shimmering placeholder that reserves the shape of content while it loads.
|
|
341
358
|
*
|
|
342
|
-
*
|
|
359
|
+
* Renders inline <span> elements so it can sit inside text-level contexts. Sizing flows
|
|
360
|
+
* through component-scoped custom properties; only the props the caller provides are set
|
|
361
|
+
* inline, so the CSS defaults per variant (and the 60% last-line rule) stay in charge.
|
|
343
362
|
*
|
|
344
363
|
* @example
|
|
345
|
-
*
|
|
346
|
-
* <
|
|
364
|
+
* <CwSkeleton count={3} />
|
|
365
|
+
* <CwSkeleton variant="circle" />
|
|
366
|
+
* <CwSkeleton variant="rect" height="10rem" />
|
|
367
|
+
*/
|
|
368
|
+
declare function CwSkeleton({ variant, width, height, count, radius, gap }: CwSkeletonProps): React__default.JSX.Element;
|
|
369
|
+
|
|
370
|
+
type ProgressColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
371
|
+
type ProgressSize = 'small' | 'regular' | 'large';
|
|
372
|
+
interface CwProgressProps {
|
|
373
|
+
/** Progress percentage, 0-100 (clamped). Ignored when indeterminate. */
|
|
374
|
+
value?: number;
|
|
375
|
+
/** Sweeping animation for unmeasurable progress. Respects prefers-reduced-motion (static partial fill). */
|
|
376
|
+
indeterminate?: boolean;
|
|
377
|
+
/** Label beside (row layout) or above (column layout) the bar. */
|
|
378
|
+
label?: string;
|
|
379
|
+
/** Right-side value label. Defaults to the rounded percent when value is set and not indeterminate. */
|
|
380
|
+
rightLabel?: string;
|
|
381
|
+
/** Bar size. Default 'regular'. */
|
|
382
|
+
size?: ProgressSize;
|
|
383
|
+
/** Label placement relative to the bar. Default 'row'. */
|
|
384
|
+
layout?: 'row' | 'column';
|
|
385
|
+
/** Semantic color. Default 'primary'. */
|
|
386
|
+
color?: ProgressColor;
|
|
387
|
+
/** Tabular figures for the value label so digits do not jump while counting. */
|
|
388
|
+
monoValue?: boolean;
|
|
389
|
+
/** Larger, bolder value label. */
|
|
390
|
+
prominent?: boolean;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* CwProgress - a determinate or indeterminate progress bar.
|
|
347
394
|
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
395
|
+
* Use it for measurable operations (imports, uploads, batch jobs). For short
|
|
396
|
+
* unmeasurable waits use CwLoading; for initial layout loads use CwSkeleton.
|
|
397
|
+
*
|
|
398
|
+
* @example
|
|
399
|
+
* <CwProgress value={62} label="Import" color="success" />
|
|
400
|
+
* <CwProgress indeterminate label="Uploading" />
|
|
350
401
|
*/
|
|
351
|
-
declare function
|
|
402
|
+
declare function CwProgress({ value, indeterminate, label, rightLabel, size, layout, color, monoValue, prominent }: CwProgressProps): React__default.JSX.Element;
|
|
352
403
|
|
|
353
404
|
type TooltipPosition = "top" | "bottom" | "left" | "right";
|
|
354
405
|
interface CwGenericTooltipProps {
|
|
@@ -631,8 +682,10 @@ interface CwCardProps {
|
|
|
631
682
|
clickable?: boolean;
|
|
632
683
|
/*** Click handler when clickable is true **/
|
|
633
684
|
onClick?: () => void;
|
|
634
|
-
/*** Whether the card is in a loading state **/
|
|
685
|
+
/*** Whether the card is in a loading state - the content zone renders skeleton lines instead of children **/
|
|
635
686
|
isLoading?: boolean;
|
|
687
|
+
/*** Number of skeleton text lines shown in the content while isLoading. Default 3 **/
|
|
688
|
+
skeletonLines?: number;
|
|
636
689
|
/*** Whether the card is disabled **/
|
|
637
690
|
disabled?: boolean;
|
|
638
691
|
/*** Custom style object for additional inline styles **/
|
|
@@ -684,8 +737,10 @@ interface CwCardListProps<T> extends React__default.HTMLAttributes<HTMLDivElemen
|
|
|
684
737
|
defaultCardWidth?: number;
|
|
685
738
|
/** Gap between cards (in pixels) */
|
|
686
739
|
cardGap?: number;
|
|
687
|
-
/** Loading state */
|
|
740
|
+
/** Loading state - renders ghost cards in the same layout instead of items */
|
|
688
741
|
isLoading?: boolean;
|
|
742
|
+
/** Number of ghost cards shown while isLoading. Default 6 */
|
|
743
|
+
skeletonCards?: number;
|
|
689
744
|
/** Optional custom empty state component */
|
|
690
745
|
emptyState?: ReactNode;
|
|
691
746
|
/** Available sort options */
|
|
@@ -695,7 +750,7 @@ interface CwCardListProps<T> extends React__default.HTMLAttributes<HTMLDivElemen
|
|
|
695
750
|
/** Extracts a stable unique key from each item to avoid index-based reconciliation bugs */
|
|
696
751
|
keyExtractor?: (item: T, index: number) => string | number;
|
|
697
752
|
}
|
|
698
|
-
declare function CwCardList<T>({ items, renderCard, pageSize, layout, defaultCardWidth, cardGap, isLoading, emptyState, sortOptions, defaultSortKey, keyExtractor, ...htmlProps }: CwCardListProps<T>): React__default.JSX.Element;
|
|
753
|
+
declare function CwCardList<T>({ items, renderCard, pageSize, layout, defaultCardWidth, cardGap, isLoading, skeletonCards, emptyState, sortOptions, defaultSortKey, keyExtractor, ...htmlProps }: CwCardListProps<T>): React__default.JSX.Element;
|
|
699
754
|
|
|
700
755
|
interface CwAccordionContainerProps {
|
|
701
756
|
children?: any;
|
|
@@ -738,7 +793,10 @@ interface CwTableProps<T = any> {
|
|
|
738
793
|
testId?: string;
|
|
739
794
|
textNoData?: string;
|
|
740
795
|
rowKey?: keyof T;
|
|
796
|
+
/** Renders skeleton placeholder rows in the body instead of data. The header stays real. */
|
|
741
797
|
loading?: boolean;
|
|
798
|
+
/** Number of skeleton rows shown while loading. Default 5. */
|
|
799
|
+
skeletonRows?: number;
|
|
742
800
|
scrollHeight?: number | string;
|
|
743
801
|
stickyHeader?: boolean;
|
|
744
802
|
pageLabel?: string;
|
|
@@ -817,7 +875,7 @@ interface CwTableProps<T = any> {
|
|
|
817
875
|
*
|
|
818
876
|
* @returns React component
|
|
819
877
|
*/
|
|
820
|
-
declare function CwTable<T = any>({ columns, data, pagination, pageSizeOptions, expandedRowRender, onExpand, className, classNameRow, style, classNameContainer, id, testId, textNoData, rowKey, loading, scrollHeight, stickyHeader, pageLabel, rowSelection }: Readonly<CwTableProps<T>>): React__default.JSX.Element;
|
|
878
|
+
declare function CwTable<T = any>({ columns, data, pagination, pageSizeOptions, expandedRowRender, onExpand, className, classNameRow, style, classNameContainer, id, testId, textNoData, rowKey, loading, skeletonRows, scrollHeight, stickyHeader, pageLabel, rowSelection }: Readonly<CwTableProps<T>>): React__default.JSX.Element;
|
|
821
879
|
|
|
822
880
|
interface SortableColumn<T = any> {
|
|
823
881
|
/** Header label */
|
|
@@ -853,8 +911,10 @@ interface CwSortableTableProps<T = any> {
|
|
|
853
911
|
* }}
|
|
854
912
|
*/
|
|
855
913
|
onReorder: (newData: T[]) => Promise<void>;
|
|
856
|
-
/**
|
|
914
|
+
/** Renders skeleton placeholder rows in the body instead of data. The header stays real. */
|
|
857
915
|
loading?: boolean;
|
|
916
|
+
/** Number of skeleton rows shown while loading. Default 5. */
|
|
917
|
+
skeletonRows?: number;
|
|
858
918
|
/** Message shown when data is empty */
|
|
859
919
|
textNoData?: string;
|
|
860
920
|
/** CSS class for the outer container */
|
|
@@ -890,7 +950,7 @@ interface CwSortableTableProps<T = any> {
|
|
|
890
950
|
* - Reorder is calculated in onDragEnd using lastValidDropIndex
|
|
891
951
|
* - draggedItem is tracked in state, not via dataTransfer
|
|
892
952
|
*/
|
|
893
|
-
declare function CwSortableTable<T = any>({ columns, data, rowKey, onReorder, loading, textNoData, className, tableClassName, maxHeight, showHandle, style, saveLabel, discardLabel, }: Readonly<CwSortableTableProps<T>>): React__default.JSX.Element;
|
|
953
|
+
declare function CwSortableTable<T = any>({ columns, data, rowKey, onReorder, loading, skeletonRows, textNoData, className, tableClassName, maxHeight, showHandle, style, saveLabel, discardLabel, }: Readonly<CwSortableTableProps<T>>): React__default.JSX.Element;
|
|
894
954
|
|
|
895
955
|
interface SortableTableDragState {
|
|
896
956
|
/** Index of the row currently being dragged (-1 if none) */
|
|
@@ -967,7 +1027,10 @@ interface CwTableServerSideProps<T = any> {
|
|
|
967
1027
|
testId?: string;
|
|
968
1028
|
textNoData?: string;
|
|
969
1029
|
rowKey?: keyof T;
|
|
1030
|
+
/** Renders skeleton placeholder rows in the body instead of data. The header stays real. */
|
|
970
1031
|
loading?: boolean;
|
|
1032
|
+
/** Number of skeleton rows shown while loading. Default 5. */
|
|
1033
|
+
skeletonRows?: number;
|
|
971
1034
|
scrollHeight?: number | string;
|
|
972
1035
|
stickyHeader?: boolean;
|
|
973
1036
|
rowSelection?: {
|
|
@@ -1031,7 +1094,7 @@ interface CwTableServerSideProps<T = any> {
|
|
|
1031
1094
|
*
|
|
1032
1095
|
* @returns React component
|
|
1033
1096
|
*/
|
|
1034
|
-
declare function CwTableServerSide<T = any>({ columns, data, totalItems, pagination, pageSizeOptions, pageLabel, expandedRowRender, onExpand, className, classNameRow, style, classNameContainer, id, testId, textNoData, rowKey, loading, scrollHeight, stickyHeader, rowSelection, onChange, serverState, }: Readonly<CwTableServerSideProps<T>>): React__default.JSX.Element;
|
|
1097
|
+
declare function CwTableServerSide<T = any>({ columns, data, totalItems, pagination, pageSizeOptions, pageLabel, expandedRowRender, onExpand, className, classNameRow, style, classNameContainer, id, testId, textNoData, rowKey, loading, skeletonRows, scrollHeight, stickyHeader, rowSelection, onChange, serverState, }: Readonly<CwTableServerSideProps<T>>): React__default.JSX.Element;
|
|
1035
1098
|
|
|
1036
1099
|
interface Tab {
|
|
1037
1100
|
key: string;
|
|
@@ -1053,6 +1116,13 @@ interface CwTabsProps {
|
|
|
1053
1116
|
tabs: Tab[];
|
|
1054
1117
|
tabsPosition?: 'top' | 'left';
|
|
1055
1118
|
tabsListWidth?: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* Height for the tab content panel (any CSS length, e.g. `calc(100vh - 10rem)`).
|
|
1121
|
+
* Sets the internal `--tabs-height` so a scrollable child (e.g. a `CwTable` with
|
|
1122
|
+
* `stickyHeader` + `scrollHeight`) gets a bounded scroll container without the
|
|
1123
|
+
* call site declaring the CSS variable itself. Defaults to `75vh` when omitted.
|
|
1124
|
+
*/
|
|
1125
|
+
contentHeight?: string;
|
|
1056
1126
|
}
|
|
1057
1127
|
/**
|
|
1058
1128
|
* CwTabs component for displaying tabbed content.
|
|
@@ -1139,6 +1209,10 @@ interface CwMasterDetailProps {
|
|
|
1139
1209
|
resizable?: boolean;
|
|
1140
1210
|
/** Whether to show the search input */
|
|
1141
1211
|
showSearch?: boolean;
|
|
1212
|
+
/** Renders skeleton placeholders in the master list and detail panel instead of content. */
|
|
1213
|
+
loading?: boolean;
|
|
1214
|
+
/** Number of skeleton rows shown in the master list while loading. Default 5. */
|
|
1215
|
+
skeletonRows?: number;
|
|
1142
1216
|
}
|
|
1143
1217
|
declare const CwMasterDetail: React__default.FC<CwMasterDetailProps>;
|
|
1144
1218
|
|
|
@@ -1159,6 +1233,10 @@ interface CwKeyValueListProps extends HTMLAttributes<HTMLDListElement>, CwGroupL
|
|
|
1159
1233
|
* @deprecated use itemLayout.direction instead
|
|
1160
1234
|
**/
|
|
1161
1235
|
direction?: 'row' | 'column';
|
|
1236
|
+
/** Renders skeleton placeholder rows instead of items. The whole list is one data load, so both dt and dd ghost. */
|
|
1237
|
+
loading?: boolean;
|
|
1238
|
+
/** Number of skeleton rows shown while loading. Default 4. */
|
|
1239
|
+
skeletonRows?: number;
|
|
1162
1240
|
}
|
|
1163
1241
|
/**
|
|
1164
1242
|
* A component for displaying key-value pairs in a definition list format
|
|
@@ -1373,22 +1451,6 @@ interface CwTableGroupedProps {
|
|
|
1373
1451
|
*/
|
|
1374
1452
|
declare const CwTableGrouped: FC<CwTableGroupedProps>;
|
|
1375
1453
|
|
|
1376
|
-
interface ConfigDM {
|
|
1377
|
-
ID: number;
|
|
1378
|
-
Description: string;
|
|
1379
|
-
Value: string;
|
|
1380
|
-
Bindata: string;
|
|
1381
|
-
}
|
|
1382
|
-
interface CwFileUploadProps {
|
|
1383
|
-
accept: string;
|
|
1384
|
-
acceptString: string;
|
|
1385
|
-
sizeString?: string;
|
|
1386
|
-
file?: ConfigDM;
|
|
1387
|
-
onChange: (file: File) => void;
|
|
1388
|
-
onSaveHexContent: (hexContent: string) => void;
|
|
1389
|
-
}
|
|
1390
|
-
declare function CwFileUpload(fileUploadProps: React__default.PropsWithChildren<CwFileUploadProps>): React__default.JSX.Element;
|
|
1391
|
-
|
|
1392
1454
|
interface CwFileUploadMultipleLabels {
|
|
1393
1455
|
uploadDisabled: string;
|
|
1394
1456
|
clickToUpload: string;
|
|
@@ -1397,6 +1459,7 @@ interface CwFileUploadMultipleLabels {
|
|
|
1397
1459
|
allTypesAccepted: string;
|
|
1398
1460
|
changeFile: string;
|
|
1399
1461
|
clearAll: string;
|
|
1462
|
+
upload: string;
|
|
1400
1463
|
addMoreFiles: string;
|
|
1401
1464
|
filesSelected: (count: number) => string;
|
|
1402
1465
|
fileTooLarge: (name: string, maxSize: number) => string;
|
|
@@ -1412,10 +1475,14 @@ interface CwFileUploadMultipleProps {
|
|
|
1412
1475
|
allowedTypes?: string[];
|
|
1413
1476
|
onSelect?: (files: FileList | null) => void;
|
|
1414
1477
|
onError?: (error: string) => void;
|
|
1478
|
+
onConfirm?: (files: FileList) => void;
|
|
1479
|
+
confirmLabel?: string;
|
|
1480
|
+
confirmDisabled?: boolean;
|
|
1415
1481
|
className?: string;
|
|
1416
1482
|
disabled?: boolean;
|
|
1417
1483
|
hideClearAll?: boolean;
|
|
1418
1484
|
initialFileName?: string;
|
|
1485
|
+
statusText?: string;
|
|
1419
1486
|
labels?: Partial<CwFileUploadMultipleLabels>;
|
|
1420
1487
|
}
|
|
1421
1488
|
declare function CwFileUploadMultiple(fileUploadProps: React__default.PropsWithChildren<CwFileUploadMultipleProps>): React__default.JSX.Element;
|
|
@@ -1786,9 +1853,22 @@ interface CwInputDateTextProps extends Omit<React__default.HTMLProps<HTMLInputEl
|
|
|
1786
1853
|
*/
|
|
1787
1854
|
declare function CwInputDateText(props: CwInputDateTextProps): React__default.JSX.Element;
|
|
1788
1855
|
|
|
1789
|
-
interface
|
|
1856
|
+
interface CwInputImageLabels {
|
|
1857
|
+
dropImageHere: string;
|
|
1858
|
+
paste: string;
|
|
1859
|
+
browse: string;
|
|
1860
|
+
acceptedFormats: (formats: string) => string;
|
|
1861
|
+
clipboardError: string;
|
|
1862
|
+
invalidType: (formats: string) => string;
|
|
1863
|
+
readError: string;
|
|
1864
|
+
}
|
|
1865
|
+
interface CwInputImageProps extends Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "className" | "type" | "onChange" | "onError" | "size"> {
|
|
1790
1866
|
allowedImageFormats?: string[];
|
|
1791
|
-
onChange?: (
|
|
1867
|
+
onChange?: (dataUrl: string | null, file?: File) => void;
|
|
1868
|
+
onError?: (error: string) => void;
|
|
1869
|
+
labels?: Partial<CwInputImageLabels>;
|
|
1870
|
+
/** Scales the dropzone and drives the size of the Paste/Browse buttons. Unset = default (medium) size. */
|
|
1871
|
+
size?: "small" | "medium" | "large";
|
|
1792
1872
|
}
|
|
1793
1873
|
declare function CwInputImage(props: CwInputImageProps): React$1.JSX.Element;
|
|
1794
1874
|
|
|
@@ -2505,6 +2585,99 @@ type TreeViewProps<T> = {
|
|
|
2505
2585
|
};
|
|
2506
2586
|
declare function CwTreeView<T>({ data, onSelect, allowParentSelection, selectedId: initialSelectedId }: TreeViewProps<T>): React$1.JSX.Element;
|
|
2507
2587
|
|
|
2588
|
+
interface CwNavItem {
|
|
2589
|
+
/** Stable id, also the React key */
|
|
2590
|
+
id: string;
|
|
2591
|
+
/** Resolved display text — the consumer owns i18n / tenant naming */
|
|
2592
|
+
label: string;
|
|
2593
|
+
/** Link target for leaves; groups may omit it */
|
|
2594
|
+
href?: string;
|
|
2595
|
+
/** Resolved secondary text — not rendered by the menu, but searched alongside label and href */
|
|
2596
|
+
description?: string;
|
|
2597
|
+
/** CW icon name */
|
|
2598
|
+
icon?: string;
|
|
2599
|
+
/** Non-empty children make this item a collapsible group */
|
|
2600
|
+
children?: CwNavItem[];
|
|
2601
|
+
}
|
|
2602
|
+
/** Remaining props land on the <nav> — `data-*` (CBT walkthrough targets), `aria-*`, `data-testid`. */
|
|
2603
|
+
interface CwNavMenuProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
|
|
2604
|
+
/** Already permission-filtered and ordered by the consumer */
|
|
2605
|
+
items: CwNavItem[];
|
|
2606
|
+
/** Renders placeholder rows instead of the tree */
|
|
2607
|
+
loading?: boolean;
|
|
2608
|
+
/**
|
|
2609
|
+
* Router-agnostic active detection; nothing is highlighted when omitted. Injected because the
|
|
2610
|
+
* library cannot depend on a router (WinOps: react-router-dom 6.28, Improve: a different one,
|
|
2611
|
+
* playground: none) — the consumer answers "is this the current page?", the component owns the
|
|
2612
|
+
* highlight. Revisitable: if the apps ever converge on one router, this could move inside.
|
|
2613
|
+
*/
|
|
2614
|
+
isActive?: (item: CwNavItem) => boolean;
|
|
2615
|
+
/** Inject a router link component; defaults to a plain <a href> */
|
|
2616
|
+
renderLink?: (item: CwNavItem, children: ReactNode) => ReactNode;
|
|
2617
|
+
/**
|
|
2618
|
+
* Show a trailing chevron on **top-level** group rows. Nested groups (level 2+) always show it
|
|
2619
|
+
* and ignore this flag — don't normalise the two cases: a level-1 group is already marked by
|
|
2620
|
+
* its heavier type and [open] background, while a nested group is otherwise indistinguishable
|
|
2621
|
+
* from its sibling leaf links.
|
|
2622
|
+
*/
|
|
2623
|
+
showExpandIndicator?: boolean;
|
|
2624
|
+
/**
|
|
2625
|
+
* Filters the tree through `filterNavItems`: a group survives when it or any descendant matches.
|
|
2626
|
+
* Quoted `"phrases"` match the label; loose words match label + description + href. Blank or
|
|
2627
|
+
* omitted means no filtering.
|
|
2628
|
+
*/
|
|
2629
|
+
search?: string;
|
|
2630
|
+
/** Shown only while a search is active and nothing matched — an empty `items` still renders nothing */
|
|
2631
|
+
emptyMessage?: string;
|
|
2632
|
+
/**
|
|
2633
|
+
* Sorts the **top level** alphabetically; nested lists keep the consumer's order. Off by default.
|
|
2634
|
+
* Level-1-only is deliberate: a long list of modules is hard to scan, while the pages inside one
|
|
2635
|
+
* are ordered on purpose.
|
|
2636
|
+
*/
|
|
2637
|
+
sortAlphabetically?: boolean;
|
|
2638
|
+
/**
|
|
2639
|
+
* Rows for the sticky favourites section above the tree. Omit it and no section renders. The
|
|
2640
|
+
* library owns the disclosure and its look; the rows are yours, so their markup, secondary text
|
|
2641
|
+
* and any `data-*` stay under your control.
|
|
2642
|
+
*/
|
|
2643
|
+
favoritesSlot?: ReactNode;
|
|
2644
|
+
/** Header for the favourites section. Pass your own translation. */
|
|
2645
|
+
favoritesLabel?: string;
|
|
2646
|
+
/** Attributes for the favourites `<details>` — `data-tour`, or `open` to override the default. */
|
|
2647
|
+
favoritesProps?: HTMLAttributes<HTMLDetailsElement>;
|
|
2648
|
+
/**
|
|
2649
|
+
* Marks a leaf as favourited with a star. Indicator only — toggling stays with the consumer
|
|
2650
|
+
* (a context menu on the link, for instance), so no row gains a control it didn't have.
|
|
2651
|
+
*/
|
|
2652
|
+
isFavorite?: (item: CwNavItem) => boolean;
|
|
2653
|
+
/**
|
|
2654
|
+
* An app-provided section between the favourites and the tree — WinOps's external "Places" links,
|
|
2655
|
+
* for instance. Kept out of `items` on purpose: it is a parallel list, so it is not filtered by
|
|
2656
|
+
* `search` or reordered by `sortAlphabetically`.
|
|
2657
|
+
*
|
|
2658
|
+
* A `<details>` placed here is styled as a top-level section automatically.
|
|
2659
|
+
*/
|
|
2660
|
+
beforeTreeSlot?: ReactNode;
|
|
2661
|
+
}
|
|
2662
|
+
/** Sizes only its own icons — content injected via `renderLink` is styled by the consumer. */
|
|
2663
|
+
declare function CwNavMenu({ items, loading, isActive, renderLink, showExpandIndicator, search, emptyMessage, sortAlphabetically, favoritesSlot, favoritesLabel, favoritesProps, isFavorite, beforeTreeSlot, className, ...navProps }: CwNavMenuProps): React$1.JSX.Element;
|
|
2664
|
+
|
|
2665
|
+
/**
|
|
2666
|
+
* Filters a nav tree by a search string, keeping a group whose descendants match.
|
|
2667
|
+
*
|
|
2668
|
+
* Supports `"quoted phrases"` (must appear in the label) alongside loose words (any field) — this is
|
|
2669
|
+
* behaviour users are told about, so don't simplify it.
|
|
2670
|
+
*/
|
|
2671
|
+
declare function filterNavItems(items: CwNavItem[], search?: string): CwNavItem[];
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* Sorts the top level alphabetically, leaving every nested list in the order the consumer gave.
|
|
2675
|
+
*
|
|
2676
|
+
* Deliberately level 1 only: this exists because a long list of modules is hard to scan, while the
|
|
2677
|
+
* pages inside a module are ordered on purpose. Returns the input untouched when not sorting.
|
|
2678
|
+
*/
|
|
2679
|
+
declare function sortNavItems(items: CwNavItem[], alphabetically?: boolean): CwNavItem[];
|
|
2680
|
+
|
|
2508
2681
|
/** Props for {@link CwSearchInput}. */
|
|
2509
2682
|
interface CwSearchInputProps extends HTMLProps<HTMLDivElement> {
|
|
2510
2683
|
/** List of items to search through. Each item must be a `CwSelectList` instance. */
|
|
@@ -2527,6 +2700,8 @@ interface CwSearchInputProps extends HTMLProps<HTMLDivElement> {
|
|
|
2527
2700
|
error?: boolean;
|
|
2528
2701
|
/** Custom renderer for each suggestion item. Receives the matching `CwSelectList` entry. */
|
|
2529
2702
|
renderOption?: (option: CwSelectList) => React__default.ReactNode;
|
|
2703
|
+
/** Focuses the internal `<input>` on mount when `true`. */
|
|
2704
|
+
autoFocus?: boolean;
|
|
2530
2705
|
}
|
|
2531
2706
|
/**
|
|
2532
2707
|
* Text input with a live-filtered suggestion dropdown backed by a local `CwSelectList` array.
|
|
@@ -3904,5 +4079,5 @@ declare class OnClickContextMenu implements UiEvent {
|
|
|
3904
4079
|
constructor(id: string, clickedMenu: string);
|
|
3905
4080
|
}
|
|
3906
4081
|
|
|
3907
|
-
export { CblDragAndDrop$1 as CblDragAndDrop, CwAccordionContainer, CwAlign, CwAnchoredMenu, CwBtnApprove, CwBtnCancel, CwBtnDelete, CwBtnEdit, CwBtnSave, CwButton, CwButtonSplit, CwButtonSwitch, CwCard, CwCardList, CwCheck, CwCheckbox, CwCheckboxGroup, CwChip, CwColorPicker, CwConfirmationPopup, CwContextMenu, CwDatePicker, CwDatePickerTemporal, CwDateRangePicker, CwDateRangePickerTemporal, CwDateTimePicker, CwDateTimePickerCompact, CwDateTimePickerTemporal, CwDialog, CwDigit, CwDisplayMessage, CwDropdown, CwDropdownFilter, CwExpandable,
|
|
3908
|
-
export type { BackgroundEventDm, CardChip, ChipColorScheme, ChipVariant, Column$1 as Column, ConfirmationPopupProps, CwAlignProps, CwButtonSplitAction, CwButtonSplitProps, CwButtonSwitchOption, CwButtonSwitchProps, CwCardListProps, CwCardProps, CwChipProps, CwDialogProps, CwDropdownOption, CwDropdownProps, CwExpandableProps, CwGroupLayoutProps, CwImageAreaMethods, CwImageAreaProps, CwInputDateTextProps, CwInputDatetimeProps, CwInputImageProps, CwInputNumberProps, CwInputPhoneProps, CwInputTextProps, CwInputTimeProps, CwKeyValueListProps, CwLabelProps, CwLayoutProps, CwMasterDetailItem, CwMasterDetailProps, CwMessageProps, CwModalHoverProps, CwMultiFilterProps, CwMultiFilterTagProps, CwNoteProps, CwPopoverButtonProps, CwRadioGroupProps, CwReportModalFunctionalProps, CwSearchAsyncOption, CwSearchAsyncProps, CwSelectListProps, CwSortableListProps, CwSortableTableProps, CwTableGroupedData, CwTableGroupedData_Group, CwTableGroupedData_Row, CwTableGroupedProps, CwTagSelectorOption, CwTagSelectorProps, CwTextAreaProps, CwTreeNode, DataItem, DateRangePresetTemporal, DateRangeValue, DateRangeValueTemporal, ICwMultiFilterTag, ImageItem, IndicatorRowDm, MenuOption, OnEvent, PinRowHeaderProps, RowHeaderDm, RowHeaderProps, SchedulerEventDm, SchedulerEventState, SchedulerRowProps, SchedulerState, ServerSideTableState, SortableColumn, SortableTableDragState, SuperSchedulerProps, Tab, UseSortableTableReturn, Weekday, ZoomImageItem, cblEventCompProps, resourceCompProps2 };
|
|
4082
|
+
export { CblDragAndDrop$1 as CblDragAndDrop, CwAccordionContainer, CwAlign, CwAnchoredMenu, CwBtnApprove, CwBtnCancel, CwBtnDelete, CwBtnEdit, CwBtnSave, CwButton, CwButtonSplit, CwButtonSwitch, CwCard, CwCardList, CwCheck, CwCheckbox, CwCheckboxGroup, CwChip, CwColorPicker, CwConfirmationPopup, CwContextMenu, CwDatePicker, CwDatePickerTemporal, CwDateRangePicker, CwDateRangePickerTemporal, CwDateTimePicker, CwDateTimePickerCompact, CwDateTimePickerTemporal, CwDialog, CwDigit, CwDisplayMessage, CwDropdown, CwDropdownFilter, CwExpandable, CwFileUploadMultiple, CwFindAirport, CwFindCrewmember, CwGenericTooltip, CwHeadingMain, CwHeadingSecond, CwIcon, CwImageArea, CwImageGallery, CwImageZoom, CwInput, CwInputColor, CwInputDateText, CwInputDatetime, CwInputImage, CwInputNumber, CwInputPhone, CwInputText, CwKeyValueList, CwLabel, CwLoading, CwMasterDetail, CwMessage, CwMessageManager, CwMessageType, CwModal, CwModalHover, CwModalReportFunctional, CwMultiFilter, CwMultiFilterTag, CwNavMenu, CwNote, CwOption, CwPopoverButton, CwProgress, CwRadioGroup, CwReportModal, CwScheduler, CwSearchAsync, CwSearchInput, CwSelect, CwSelectList, CwSelectListItems, CwSkeleton, CwSortableList, CwSortableTable, CwSuperScheduler, CwTable, CwTableGrouped, CwTableServerSide, CwTabs, CwTagSelector, CwTextArea, CwTime, CwTimePicker, CwToggle, CwTooltipManager, CwTooltipNew, CwTreeView, CwWeekdaySelector, DefaultRowHeader, OnClearPinned, OnClickContextMenu, OnClickEvent, OnClickRowEvent, OnClickRowHeader, OnClickUtc, OnDoubleClickEvent, OnDoubleClickRowEvent, OnDragEvent, OnDropCtrlEvent, OnDropEvent, OnEndClickHeaderEvent, OnLeftDragStart, OnMultiClickEvent, OnPinRow, OnRangeClickEvent, OnRightClickEvent, OnRightClickRow, OnRightDragStart, OnStartClickHeaderEvent, OnUnpinRow, PRESET_LIBRARY_TEMPORAL, PinRowHeader, Resource, Scheduler, SchedulerEvent, SuperScheduler, TooltipConstraintContext, UiEvent, Weekdays, cblEvent, configureCwLoading, eventIsVisible, filterNavItems, filterVisibleEvents, getCwLoadingDefaults, getDefaultDivisions, getEventSizes, getPresetsByKeysTemporal, itemsToMultiFilterTags, sortNavItems, useCwMessage, useSortableList, useSortableTable, useTooltipConstraint };
|
|
4083
|
+
export type { BackgroundEventDm, CardChip, ChipColorScheme, ChipVariant, Column$1 as Column, ConfirmationPopupProps, CwAlignProps, CwButtonSplitAction, CwButtonSplitProps, CwButtonSwitchOption, CwButtonSwitchProps, CwCardListProps, CwCardProps, CwChipProps, CwDialogProps, CwDropdownOption, CwDropdownProps, CwExpandableProps, CwGroupLayoutProps, CwImageAreaMethods, CwImageAreaProps, CwInputDateTextProps, CwInputDatetimeProps, CwInputImageProps, CwInputNumberProps, CwInputPhoneProps, CwInputTextProps, CwInputTimeProps, CwKeyValueListProps, CwLabelProps, CwLayoutProps, CwLoadingDefaults, CwMasterDetailItem, CwMasterDetailProps, CwMessageProps, CwModalHoverProps, CwMultiFilterProps, CwMultiFilterTagProps, CwNavItem, CwNavMenuProps, CwNoteProps, CwPopoverButtonProps, CwProgressProps, CwRadioGroupProps, CwReportModalFunctionalProps, CwSearchAsyncOption, CwSearchAsyncProps, CwSelectListProps, CwSkeletonProps, CwSortableListProps, CwSortableTableProps, CwTableGroupedData, CwTableGroupedData_Group, CwTableGroupedData_Row, CwTableGroupedProps, CwTagSelectorOption, CwTagSelectorProps, CwTextAreaProps, CwTreeNode, DataItem, DateRangePresetTemporal, DateRangeValue, DateRangeValueTemporal, ICwMultiFilterTag, ImageItem, IndicatorRowDm, MenuOption, OnEvent, PinRowHeaderProps, RowHeaderDm, RowHeaderProps, SchedulerEventDm, SchedulerEventState, SchedulerRowProps, SchedulerState, ServerSideTableState, SortableColumn, SortableTableDragState, SuperSchedulerProps, Tab, UseSortableTableReturn, Weekday, ZoomImageItem, cblEventCompProps, resourceCompProps2 };
|