@cwellt_software/cwellt-reactjs-lib 1.5.3 → 1.5.5
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/index.cjs.js +85 -26
- package/dist/index.css +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +85 -26
- package/dist/src/common/functions/colorManipulation.d.ts.map +1 -1
- package/dist/src/common/functions/lazy.d.ts +13 -0
- package/dist/src/common/functions/lazy.d.ts.map +1 -0
- package/dist/src/common/styles/tokens/ColorContrast.stories.d.ts +11 -0
- package/dist/src/common/styles/tokens/ColorContrast.stories.d.ts.map +1 -0
- package/dist/src/common/styles/tokens/ColorPalette.stories.d.ts +22 -0
- package/dist/src/common/styles/tokens/ColorPalette.stories.d.ts.map +1 -0
- package/dist/src/common/styles/tokens/DarkModePreview.stories.d.ts +12 -0
- package/dist/src/common/styles/tokens/DarkModePreview.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButton.stories.d.ts +28 -0
- package/dist/src/components/control/action/button/CwButton.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButtonSplit.stories.d.ts +24 -0
- package/dist/src/components/control/action/button/CwButtonSplit.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButtonSwitch.stories.d.ts +39 -0
- package/dist/src/components/control/action/button/CwButtonSwitch.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/contextmenu/CwAnchoredMenu.stories.d.ts +29 -0
- package/dist/src/components/control/action/contextmenu/CwAnchoredMenu.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/contextmenu/CwContextMenu.stories.d.ts +24 -0
- package/dist/src/components/control/action/contextmenu/CwContextMenu.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwSearchAsync.stories.d.ts +103 -0
- package/dist/src/components/control/action/search/CwSearchAsync.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwSearchInput.stories.d.ts +452 -0
- package/dist/src/components/control/action/search/CwSearchInput.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwCheck.stories.d.ts +47 -0
- package/dist/src/components/control/choice/checkbox/CwCheck.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.stories.d.ts +102 -0
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwRadioGroup.stories.d.ts +96 -0
- package/dist/src/components/control/choice/checkbox/CwRadioGroup.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.stories.d.ts +29 -0
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts +11 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts.map +1 -1
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.stories.d.ts +53 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/nav-menu/CwNavMenu.stories.d.ts +325 -0
- package/dist/src/components/control/choice/nav-menu/CwNavMenu.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/select/CwDropdown.stories.d.ts +653 -0
- package/dist/src/components/control/choice/select/CwDropdown.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/select/CwSelect.stories.d.ts +657 -0
- package/dist/src/components/control/choice/select/CwSelect.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.stories.d.ts +132 -0
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/toggle/CwToggle.stories.d.ts +47 -0
- package/dist/src/components/control/choice/toggle/CwToggle.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/tree-view/CwTreeView.stories.d.ts +41 -0
- package/dist/src/components/control/choice/tree-view/CwTreeView.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/color/CwColorPicker.stories.d.ts +31 -0
- package/dist/src/components/control/input/color/CwColorPicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/color/CwInputColor.stories.d.ts +91 -0
- package/dist/src/components/control/input/color/CwInputColor.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/digit/CwDigit.stories.d.ts +845 -0
- package/dist/src/components/control/input/digit/CwDigit.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.stories.d.ts +78 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/image/CwInputImage.stories.d.ts +38 -0
- package/dist/src/components/control/input/image/CwInputImage.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/image-area/CwImageArea.stories.d.ts +50 -0
- package/dist/src/components/control/input/image-area/CwImageArea.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDatePicker.stories.d.ts +140 -0
- package/dist/src/components/control/input/new-dates/CwDatePicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.stories.d.ts +160 -0
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.stories.d.ts +150 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwTimePicker.stories.d.ts +111 -0
- package/dist/src/components/control/input/new-dates/CwTimePicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/phone/CwInputPhone.stories.d.ts +839 -0
- package/dist/src/components/control/input/phone/CwInputPhone.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/text/CwInputText.stories.d.ts +840 -0
- package/dist/src/components/control/input/text/CwInputText.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/text-area/CwTextArea.stories.d.ts +668 -0
- package/dist/src/components/control/input/text-area/CwTextArea.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.stories.d.ts +108 -0
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.stories.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/Scheduler.stories.d.ts +41 -0
- package/dist/src/components/custom/scheduler-new/presentation/Scheduler.stories.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts.map +1 -1
- package/dist/src/components/display/data/table/CwTable.stories.d.ts +59 -0
- package/dist/src/components/display/data/table/CwTable.stories.d.ts.map +1 -0
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.stories.d.ts +53 -0
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.stories.d.ts.map +1 -0
- package/dist/src/components/display/data/table_sortable/CwSortableTable.stories.d.ts +45 -0
- package/dist/src/components/display/data/table_sortable/CwSortableTable.stories.d.ts.map +1 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltipNew.stories.d.ts +52 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltipNew.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/icon/CwIcon.stories.d.ts +37 -0
- package/dist/src/components/display/graphics/icon/CwIcon.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/image-gallery/CwImageGallery.stories.d.ts +24 -0
- package/dist/src/components/display/graphics/image-gallery/CwImageGallery.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/image-zoom/CwImageZoom.stories.d.ts +23 -0
- package/dist/src/components/display/graphics/image-zoom/CwImageZoom.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/loading/CwLoading.stories.d.ts +44 -0
- package/dist/src/components/display/graphics/loading/CwLoading.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/progress/CwProgress.stories.d.ts +61 -0
- package/dist/src/components/display/graphics/progress/CwProgress.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeleton.stories.d.ts +52 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeleton.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/badge/CwBadge.stories.d.ts +36 -0
- package/dist/src/components/display/text/badge/CwBadge.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/heading/CwHeading.stories.d.ts +23 -0
- package/dist/src/components/display/text/heading/CwHeading.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/label/CwLabel.stories.d.ts +31 -0
- package/dist/src/components/display/text/label/CwLabel.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/message/CwMessage.stories.d.ts +38 -0
- package/dist/src/components/display/text/message/CwMessage.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/note/CwNote.stories.d.ts +51 -0
- package/dist/src/components/display/text/note/CwNote.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/tag/CwChip.stories.d.ts +29 -0
- package/dist/src/components/display/text/tag/CwChip.stories.d.ts.map +1 -0
- package/dist/src/components/layout/card/CwCard.stories.d.ts +75 -0
- package/dist/src/components/layout/card/CwCard.stories.d.ts.map +1 -0
- package/dist/src/components/layout/card/CwCardList.stories.d.ts +52 -0
- package/dist/src/components/layout/card/CwCardList.stories.d.ts.map +1 -0
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.stories.d.ts +55 -0
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.stories.d.ts.map +1 -0
- package/dist/src/components/layout/dialog/CwDialog.stories.d.ts +62 -0
- package/dist/src/components/layout/dialog/CwDialog.stories.d.ts.map +1 -0
- package/dist/src/components/layout/list/details/CwExpandable.stories.d.ts +35 -0
- package/dist/src/components/layout/list/details/CwExpandable.stories.d.ts.map +1 -0
- package/dist/src/components/layout/list/key-value/CwKeyValueList.stories.d.ts +84 -0
- package/dist/src/components/layout/list/key-value/CwKeyValueList.stories.d.ts.map +1 -0
- package/dist/src/components/layout/list/sortable/CwSortableList.stories.d.ts +49 -0
- package/dist/src/components/layout/list/sortable/CwSortableList.stories.d.ts.map +1 -0
- package/dist/src/components/layout/master-detail/CwMasterDetail.stories.d.ts +71 -0
- package/dist/src/components/layout/master-detail/CwMasterDetail.stories.d.ts.map +1 -0
- package/dist/src/components/layout/modal/hover/CwModalHover.stories.d.ts +404 -0
- package/dist/src/components/layout/modal/hover/CwModalHover.stories.d.ts.map +1 -0
- package/dist/src/components/layout/table/grouped/CwTableGrouped.stories.d.ts +31 -0
- package/dist/src/components/layout/table/grouped/CwTableGrouped.stories.d.ts.map +1 -0
- package/dist/src/components/layout/tabs/CwTabs.stories.d.ts +36 -0
- package/dist/src/components/layout/tabs/CwTabs.stories.d.ts.map +1 -0
- package/dist/src/content/icons/IconLibrary.stories.d.ts +20 -0
- package/dist/src/content/icons/IconLibrary.stories.d.ts.map +1 -0
- package/dist/src/playground/pages/SelectorsPage.d.ts.map +1 -1
- package/dist/src/storybook/PaletteAndComponentMappingDecorator.d.ts +28 -0
- package/dist/src/storybook/PaletteAndComponentMappingDecorator.d.ts.map +1 -0
- package/dist/src/storybook/PaletteDecorator.d.ts +12 -0
- package/dist/src/storybook/PaletteDecorator.d.ts.map +1 -0
- package/dist/src/storybook/StoryValue.d.ts +11 -0
- package/dist/src/storybook/StoryValue.d.ts.map +1 -0
- package/dist/src/storybook/componentMappings.d.ts +39 -0
- package/dist/src/storybook/componentMappings.d.ts.map +1 -0
- package/dist/src/storybook/cssVarOverrideStore.d.ts +23 -0
- package/dist/src/storybook/cssVarOverrideStore.d.ts.map +1 -0
- package/dist/src/storybook/groupLayoutStoryArgs.d.ts +77 -0
- package/dist/src/storybook/groupLayoutStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/inputStoryArgs.d.ts +68 -0
- package/dist/src/storybook/inputStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/layoutStoryArgs.d.ts +60 -0
- package/dist/src/storybook/layoutStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/needsRefactor.d.ts +15 -0
- package/dist/src/storybook/needsRefactor.d.ts.map +1 -0
- package/dist/src/storybook/palettes.d.ts +35 -0
- package/dist/src/storybook/palettes.d.ts.map +1 -0
- package/dist/src/storybook/pickerStoryArgs.d.ts +63 -0
- package/dist/src/storybook/pickerStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/sampleImages.d.ts +11 -0
- package/dist/src/storybook/sampleImages.d.ts.map +1 -0
- package/dist/src/storybook/sampleRows.d.ts +12 -0
- package/dist/src/storybook/sampleRows.d.ts.map +1 -0
- package/dist/src/storybook/storySource.d.ts +22 -0
- package/dist/src/storybook/storySource.d.ts.map +1 -0
- package/dist/src/storybook/useCssVarOverride.d.ts +17 -0
- package/dist/src/storybook/useCssVarOverride.d.ts.map +1 -0
- package/dist/test/common/functions/colorManipulation.test.d.ts +2 -0
- package/dist/test/common/functions/colorManipulation.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.d.ts +2 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.d.ts.map +1 -0
- package/dist/test/storybook/cssVarOverrideStore.test.d.ts +2 -0
- package/dist/test/storybook/cssVarOverrideStore.test.d.ts.map +1 -0
- package/dist/test/storybook/groupLayoutStoryArgs.test.d.ts +2 -0
- package/dist/test/storybook/groupLayoutStoryArgs.test.d.ts.map +1 -0
- package/dist/test/storybook/inputStoryArgs.test.d.ts +2 -0
- package/dist/test/storybook/inputStoryArgs.test.d.ts.map +1 -0
- package/dist/test/storybook/layoutStoryArgs.test.d.ts +2 -0
- package/dist/test/storybook/layoutStoryArgs.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts +0 -24
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts.map +0 -1
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts +0 -17
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts +0 -17
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts +0 -13
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts +0 -14
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts.map +0 -1
- package/dist/deprecated/components/tag/CwTag.d.ts +0 -15
- package/dist/deprecated/components/tag/CwTag.d.ts.map +0 -1
- package/dist/playground/main.d.ts +0 -4
- package/dist/playground/main.d.ts.map +0 -1
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts +0 -63
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts.map +0 -1
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts +0 -33
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts.map +0 -1
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts +0 -29
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts.map +0 -1
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts +0 -102
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts.map +0 -1
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts +0 -19
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts +0 -19
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts +0 -21
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts +0 -24
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts +0 -19
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts +0 -17
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts +0 -21
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts +0 -17
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts +0 -13
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts +0 -14
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts.map +0 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts +0 -47
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts +0 -24
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts +0 -86
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts +0 -20
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts +0 -13
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts +0 -23
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts +0 -8
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts +0 -8
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts +0 -13
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts +0 -5
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts +0 -5
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts +0 -43
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts +0 -25
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts +0 -18
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts.map +0 -1
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts +0 -21
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts.map +0 -1
- package/dist/src/components/display/text/tag/CwTag.d.ts +0 -15
- package/dist/src/components/display/text/tag/CwTag.d.ts.map +0 -1
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts +0 -11
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts.map +0 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts +0 -16
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts.map +0 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts +0 -21
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts.map +0 -1
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts +0 -2
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts.map +0 -1
- package/dist/test/jest.setup.d.ts +0 -2
- package/dist/test/jest.setup.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -93,13 +93,27 @@ function colorToHSL(color) {
|
|
|
93
93
|
l: Math.round(l * 100)
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
+
const HEX_CACHE_LIMIT = 500;
|
|
97
|
+
const hexCache = new Map();
|
|
98
|
+
let canvasContext = null;
|
|
96
99
|
function colorToHEX(color) {
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
const cached = hexCache.get(color);
|
|
101
|
+
if (cached !== undefined)
|
|
102
|
+
return cached;
|
|
103
|
+
if (!canvasContext) {
|
|
104
|
+
canvasContext = document.createElement('canvas').getContext('2d');
|
|
105
|
+
if (!canvasContext)
|
|
106
|
+
throw new Error('Could not create canvas context');
|
|
107
|
+
}
|
|
108
|
+
// A reused context keeps its previous fillStyle when the new color is invalid; reset it to the
|
|
109
|
+
// fresh-canvas default so an invalid color still gives black instead of the last valid color.
|
|
110
|
+
canvasContext.fillStyle = '#000000';
|
|
111
|
+
canvasContext.fillStyle = color;
|
|
112
|
+
const hex = canvasContext.fillStyle;
|
|
113
|
+
if (hexCache.size >= HEX_CACHE_LIMIT)
|
|
114
|
+
hexCache.clear();
|
|
115
|
+
hexCache.set(color, hex);
|
|
116
|
+
return hex;
|
|
103
117
|
}
|
|
104
118
|
function getHSLColor(color, alpha = 1) {
|
|
105
119
|
const hsl = colorToHSL(color);
|
|
@@ -4966,21 +4980,29 @@ var styles$b = {"cw-multi-filter-catalog-container":"cw-multi-filter-module__cw-
|
|
|
4966
4980
|
* @param {CwMultiFilterProps} props
|
|
4967
4981
|
* @returns Set the `onChange` callback to a function to check for changes in the selected filters
|
|
4968
4982
|
*/
|
|
4969
|
-
const CwMultiFilter = ({ allTags, id, onChangeSelectedTags, selectedTags, placeholder = "Write to filter", allCategoriesLabel = "ALL CATEGORIES", className, style }) => {
|
|
4983
|
+
const CwMultiFilter = ({ allTags, id, onChangeSelectedTags, selectedTags, placeholder = "Write to filter", allCategoriesLabel = "ALL CATEGORIES", className, style, testId, initialTagVisibility = "all" }) => {
|
|
4970
4984
|
const [inputTextValue, setInputTextValue] = useState("");
|
|
4971
4985
|
const [isPanelOpen, setIsPanelOpen] = useState(false);
|
|
4972
4986
|
const [selectedCategory, setSelectedCategory] = useState("All");
|
|
4987
|
+
// True once the user touches the current opening (any category click or a search); gates the cascade.
|
|
4988
|
+
const [hasInteracted, setHasInteracted] = useState(false);
|
|
4973
4989
|
const componentRef = useRef(null);
|
|
4974
4990
|
const inputRef = useRef(null);
|
|
4975
4991
|
const wrapperRef = useRef(null);
|
|
4976
4992
|
const { panelRef, panelStyle, renderPanel } = useDropdownPortal({
|
|
4977
4993
|
anchorRef: wrapperRef,
|
|
4978
4994
|
isOpen: isPanelOpen,
|
|
4979
|
-
onClose: () =>
|
|
4995
|
+
onClose: () => setIsPanelOpen(false),
|
|
4980
4996
|
});
|
|
4997
|
+
// Single reset point for all transient panel state on close, whatever closed it - the clear-all
|
|
4998
|
+
// button closes the panel directly and bypasses onClose, so resetting here covers every path.
|
|
4981
4999
|
useEffect(() => {
|
|
4982
|
-
|
|
4983
|
-
|
|
5000
|
+
if (!isPanelOpen) {
|
|
5001
|
+
setHasInteracted(false);
|
|
5002
|
+
setSelectedCategory("All");
|
|
5003
|
+
setInputTextValue("");
|
|
5004
|
+
}
|
|
5005
|
+
}, [isPanelOpen]);
|
|
4984
5006
|
const categoriesMappedToTags = () => {
|
|
4985
5007
|
const categoriesMap = new Map();
|
|
4986
5008
|
allTags.forEach(tag => {
|
|
@@ -4991,6 +5013,9 @@ const CwMultiFilter = ({ allTags, id, onChangeSelectedTags, selectedTags, placeh
|
|
|
4991
5013
|
return categoriesMap;
|
|
4992
5014
|
};
|
|
4993
5015
|
const displayTags = useMemo(() => {
|
|
5016
|
+
if (initialTagVisibility === "afterCategoryOrSearch" && !hasInteracted) {
|
|
5017
|
+
return [];
|
|
5018
|
+
}
|
|
4994
5019
|
let tags = Array.from(allTags);
|
|
4995
5020
|
if (selectedCategory !== "All") {
|
|
4996
5021
|
tags = tags.filter(t => t.Category === selectedCategory);
|
|
@@ -5000,8 +5025,9 @@ const CwMultiFilter = ({ allTags, id, onChangeSelectedTags, selectedTags, placeh
|
|
|
5000
5025
|
tags = tags.filter(t => t.Name.replaceAll(" ", "").toLowerCase().includes(input));
|
|
5001
5026
|
}
|
|
5002
5027
|
return tags;
|
|
5003
|
-
}, [allTags, selectedCategory, inputTextValue]);
|
|
5028
|
+
}, [allTags, selectedCategory, inputTextValue, initialTagVisibility, hasInteracted]);
|
|
5004
5029
|
const handleClickCategory = (category) => {
|
|
5030
|
+
setHasInteracted(true);
|
|
5005
5031
|
setSelectedCategory(category);
|
|
5006
5032
|
};
|
|
5007
5033
|
const rgbAString = (r, g, b) => {
|
|
@@ -5026,6 +5052,8 @@ const CwMultiFilter = ({ allTags, id, onChangeSelectedTags, selectedTags, placeh
|
|
|
5026
5052
|
const handleInputText = (input) => {
|
|
5027
5053
|
if (selectedCategory !== "All")
|
|
5028
5054
|
setSelectedCategory("All");
|
|
5055
|
+
if (input.trim() !== "")
|
|
5056
|
+
setHasInteracted(true);
|
|
5029
5057
|
setInputTextValue(input.trimStart());
|
|
5030
5058
|
};
|
|
5031
5059
|
const addTag = (newTag) => {
|
|
@@ -5052,7 +5080,7 @@ const CwMultiFilter = ({ allTags, id, onChangeSelectedTags, selectedTags, placeh
|
|
|
5052
5080
|
inputRef.current?.focus();
|
|
5053
5081
|
}
|
|
5054
5082
|
};
|
|
5055
|
-
return (jsxs("form", { ref: componentRef, id: id, className: `${styles$b["cw-multi-filter"]}${className ? ` ${className}` : ""}`, style: style, onSubmit: (e) => {
|
|
5083
|
+
return (jsxs("form", { ref: componentRef, id: id, "data-testid": testId, className: `${styles$b["cw-multi-filter"]}${className ? ` ${className}` : ""}`, style: style, onSubmit: (e) => {
|
|
5056
5084
|
e.preventDefault();
|
|
5057
5085
|
}, children: [jsxs("div", { onClick: handleDivClick, ref: wrapperRef, className: styles$b["cw-multi-filter-search"], style: isPanelOpen ? { outline: "1px solid var(--cw-color-outline-variant)" } : {}, 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.currentTarget.value), autoComplete: "off", placeholder: selectedTags.size === 0 ? placeholder : "", onKeyDown: e => {
|
|
5058
5086
|
switch (e.key) {
|
|
@@ -8983,18 +9011,16 @@ const getNow$1 = (isUtc) => {
|
|
|
8983
9011
|
return now;
|
|
8984
9012
|
};
|
|
8985
9013
|
const TimeLine = ({ left, top = "0px", height, color, width = "2px", zIndexNumber = 0, isHeader, isUtc = false }) => {
|
|
8986
|
-
const [currentTime, setCurrentTime] = useState(getNow$1(isUtc));
|
|
9014
|
+
const [currentTime, setCurrentTime] = useState(() => getNow$1(isUtc));
|
|
8987
9015
|
useEffect(() => {
|
|
9016
|
+
if (!isHeader) {
|
|
9017
|
+
return;
|
|
9018
|
+
}
|
|
8988
9019
|
const interval = setInterval(() => {
|
|
8989
9020
|
setCurrentTime(getNow$1(isUtc));
|
|
8990
|
-
}, 60000);
|
|
9021
|
+
}, 60000);
|
|
8991
9022
|
return () => clearInterval(interval);
|
|
8992
|
-
}, [isUtc]);
|
|
8993
|
-
const timeString = currentTime.toLocaleTimeString([], {
|
|
8994
|
-
hour: '2-digit',
|
|
8995
|
-
minute: '2-digit',
|
|
8996
|
-
hour12: false
|
|
8997
|
-
});
|
|
9023
|
+
}, [isUtc, isHeader]);
|
|
8998
9024
|
return (jsx("div", { style: {
|
|
8999
9025
|
position: "absolute",
|
|
9000
9026
|
top: top,
|
|
@@ -9006,7 +9032,11 @@ const TimeLine = ({ left, top = "0px", height, color, width = "2px", zIndexNumbe
|
|
|
9006
9032
|
zIndex: zIndexNumber,
|
|
9007
9033
|
}, className: styles$3["scheduler-timeline-now"], children: isHeader && (jsx("span", { style: {
|
|
9008
9034
|
color: color,
|
|
9009
|
-
}, className: styles$3["scheduler-timeline-label"], children:
|
|
9035
|
+
}, className: styles$3["scheduler-timeline-label"], children: currentTime.toLocaleTimeString([], {
|
|
9036
|
+
hour: '2-digit',
|
|
9037
|
+
minute: '2-digit',
|
|
9038
|
+
hour12: false
|
|
9039
|
+
}) })) }));
|
|
9010
9040
|
};
|
|
9011
9041
|
|
|
9012
9042
|
function isToday(startDate, endDate) {
|
|
@@ -9201,7 +9231,7 @@ const eventsCollide = (event1, event2) => {
|
|
|
9201
9231
|
return eventInsideOther || eventCollideStart || eventCollideEnd;
|
|
9202
9232
|
};
|
|
9203
9233
|
// Function to separate events into non-colliding rows
|
|
9204
|
-
const
|
|
9234
|
+
const computeInnerRows = (events) => {
|
|
9205
9235
|
const sortedEvents = [...events].sort((a, b) => {
|
|
9206
9236
|
const aOrder = a.order ?? Number.MAX_SAFE_INTEGER;
|
|
9207
9237
|
const bOrder = b.order ?? Number.MAX_SAFE_INTEGER;
|
|
@@ -9226,15 +9256,44 @@ const separateEventsToInnerRows = (events) => {
|
|
|
9226
9256
|
}
|
|
9227
9257
|
return rows;
|
|
9228
9258
|
};
|
|
9259
|
+
// The scheduler asks for the same row's lanes several times per repaint (total height, virtual-list
|
|
9260
|
+
// item size, row render). Row event arrays keep their identity until their events change, so the
|
|
9261
|
+
// array itself is the cache key.
|
|
9262
|
+
const innerRowsCache = new WeakMap();
|
|
9263
|
+
const separateEventsToInnerRows = (events) => {
|
|
9264
|
+
const cached = innerRowsCache.get(events);
|
|
9265
|
+
if (cached) {
|
|
9266
|
+
return cached;
|
|
9267
|
+
}
|
|
9268
|
+
const rows = computeInnerRows(events);
|
|
9269
|
+
innerRowsCache.set(events, rows);
|
|
9270
|
+
return rows;
|
|
9271
|
+
};
|
|
9229
9272
|
|
|
9230
9273
|
const DivisionLine = ({ left, top = "0px", height, isDayBoundary }) => {
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9274
|
+
return (jsx("div", { style: {
|
|
9275
|
+
position: "absolute",
|
|
9276
|
+
top: top,
|
|
9277
|
+
height: height,
|
|
9278
|
+
left: left + "%",
|
|
9279
|
+
width: isDayBoundary ? "2px" : "1px",
|
|
9280
|
+
background: isDayBoundary ? "rgba(255,255,255,1)" : "rgba(255,255,255,0.8)",
|
|
9281
|
+
pointerEvents: "none",
|
|
9282
|
+
zIndex: 0,
|
|
9283
|
+
} }));
|
|
9234
9284
|
};
|
|
9235
9285
|
|
|
9236
9286
|
const WeekEndLine = ({ left, top = "0px", height, widthPercentage }) => {
|
|
9237
|
-
return (jsx(
|
|
9287
|
+
return (jsx("div", { style: {
|
|
9288
|
+
position: "absolute",
|
|
9289
|
+
top: top,
|
|
9290
|
+
height: height,
|
|
9291
|
+
left: left + "%",
|
|
9292
|
+
width: widthPercentage + "%",
|
|
9293
|
+
background: "rgba(0,0,0,0.05)",
|
|
9294
|
+
pointerEvents: "none",
|
|
9295
|
+
zIndex: 0,
|
|
9296
|
+
} }));
|
|
9238
9297
|
};
|
|
9239
9298
|
|
|
9240
9299
|
var styles$1 = {"scheduler-row-header":"scheduler-row-module__scheduler-row-header__S-iv4"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorManipulation.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/colorManipulation.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"colorManipulation.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/colorManipulation.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,CAAC;AA4CzB,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAkBpD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,GAAE,MAAU,GAAG,MAAM,CAGxE;AA0BD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CA2C1D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A value the caller can either hand over directly or describe as a thunk to build on demand.
|
|
3
|
+
*
|
|
4
|
+
* Building React content for every item of a large collection costs memory and CPU even when
|
|
5
|
+
* most of it is never seen: a virtualised scheduler paints a few dozen of its hundreds of rows,
|
|
6
|
+
* and a tooltip only matters while the pointer rests on it. Accepting a thunk lets the caller
|
|
7
|
+
* defer that work to the component that knows whether it is needed, without forcing every
|
|
8
|
+
* existing caller to change - a plain value still works.
|
|
9
|
+
*/
|
|
10
|
+
export type Lazy<T> = T | (() => T);
|
|
11
|
+
/** Calls `value` when it is a thunk, otherwise returns it unchanged. */
|
|
12
|
+
export declare function resolveLazy<T>(value: Lazy<T> | undefined): T | undefined;
|
|
13
|
+
//# sourceMappingURL=lazy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/lazy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAEpC,wEAAwE;AACxE,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,CAExE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Contrast: Story;
|
|
11
|
+
//# sourceMappingURL=ColorContrast.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorContrast.stories.d.ts","sourceRoot":"","sources":["../../../../../src/common/styles/tokens/ColorContrast.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAoW5D,QAAA,MAAM,IAAI;;;;;CAGM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,KAGtB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
/** The old cw-colors.css tokens - now bridge aliases, several changing resolved value on purpose. */
|
|
11
|
+
export declare const OldTokens: Story;
|
|
12
|
+
export declare const Primitives: Story;
|
|
13
|
+
/** themes/cw-theme.css - theme + component-assignment tokens. Light values only; each routes
|
|
14
|
+
* through the old token above it when one exists, so a customer's runtime override still reaches
|
|
15
|
+
* these new consumers. Dark values are stored as comments in the CSS, not shown here. */
|
|
16
|
+
export declare const ThemeTokens: Story;
|
|
17
|
+
/** Also defined in cw-theme.css, alongside the theme tokens above - its own story because it is a
|
|
18
|
+
* distinct layer (3), not a subsection of layer 2. Already shipped in this branch, not a future task. */
|
|
19
|
+
export declare const ComponentAssignments: Story;
|
|
20
|
+
/** Also defined in cw-theme.css. Own story because it renders a shadow, not a color swatch. */
|
|
21
|
+
export declare const ShadowTokens: Story;
|
|
22
|
+
//# sourceMappingURL=ColorPalette.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPalette.stories.d.ts","sourceRoot":"","sources":["../../../../../src/common/styles/tokens/ColorPalette.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA8Y5D,QAAA,MAAM,IAAI;;;;;CAGM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAcnC,qGAAqG;AACrG,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAC;AAEF;;yFAEyF;AACzF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF;yGACyG;AACzG,eAAO,MAAM,oBAAoB,EAAE,KAYlC,CAAC;AAOF,+FAA+F;AAC/F,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
tags: string[];
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const CwButtonPreview: Story;
|
|
12
|
+
//# sourceMappingURL=DarkModePreview.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarkModePreview.stories.d.ts","sourceRoot":"","sources":["../../../../../src/common/styles/tokens/DarkModePreview.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA6N5D,QAAA,MAAM,IAAI;;;;;;CAQM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,eAAe,EAAE,KAG7B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("./CwButton").CwButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
args: {
|
|
6
|
+
text: string;
|
|
7
|
+
variant: "solid";
|
|
8
|
+
color: "primary";
|
|
9
|
+
size: "medium";
|
|
10
|
+
icon: string;
|
|
11
|
+
disabled: false;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
onClick: {
|
|
15
|
+
action: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Default: Story;
|
|
22
|
+
/** Square button with the icon alone; the tooltip carries the label. Shown at rest and pressed. */
|
|
23
|
+
export declare const IconOnly: Story;
|
|
24
|
+
/** The badge overlays the top-right corner of any variant. */
|
|
25
|
+
export declare const WithBadge: Story;
|
|
26
|
+
/** Every variant crossed with every color, at the selected size. */
|
|
27
|
+
export declare const Matrix: Story;
|
|
28
|
+
//# sourceMappingURL=CwButton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwButton.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAcuB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,mGAAmG;AACnG,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,MAAM,EAAE,KAoBpB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwButtonSplit, type CwButtonSplitAction } from "./CwButtonSplit";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwButtonSplit;
|
|
6
|
+
args: {
|
|
7
|
+
text: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
actions: CwButtonSplitAction[];
|
|
10
|
+
variant: "solid";
|
|
11
|
+
color: "primary";
|
|
12
|
+
size: "medium";
|
|
13
|
+
disabled: false;
|
|
14
|
+
placement: "bottom-end";
|
|
15
|
+
onClick: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
16
|
+
onSelect: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Default: Story;
|
|
22
|
+
/** Every variant crossed with every color; open a menu to see the ghost rows take the same color. */
|
|
23
|
+
export declare const Matrix: Story;
|
|
24
|
+
//# sourceMappingURL=CwButtonSplit.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwButtonSplit.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwButtonSplit.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAW1E,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;CAe4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,qGAAqG;AACrG,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwButtonSwitch, type CwButtonSwitchProps } from "./CwButtonSwitch";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwButtonSwitch;
|
|
6
|
+
args: {
|
|
7
|
+
options: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
}[];
|
|
12
|
+
value: string;
|
|
13
|
+
size: "medium";
|
|
14
|
+
color: "primary";
|
|
15
|
+
iconOnly: false;
|
|
16
|
+
direction: "row";
|
|
17
|
+
disabled: false;
|
|
18
|
+
"aria-label": string;
|
|
19
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
20
|
+
};
|
|
21
|
+
parameters: {
|
|
22
|
+
docs: {
|
|
23
|
+
source: {
|
|
24
|
+
transform: (_code: string, storyContext: {
|
|
25
|
+
args: Record<string, unknown>;
|
|
26
|
+
}) => string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
render: (args: CwButtonSwitchProps) => import("react").JSX.Element;
|
|
31
|
+
};
|
|
32
|
+
export default meta;
|
|
33
|
+
type Story = StoryObj<typeof meta>;
|
|
34
|
+
export declare const Default: Story;
|
|
35
|
+
/** Icons only; each option's label becomes the tooltip and the accessible name. */
|
|
36
|
+
export declare const IconOnly: Story;
|
|
37
|
+
/** One segment disabled on its own, independent of the whole control. */
|
|
38
|
+
export declare const DisabledSegment: Story;
|
|
39
|
+
//# sourceMappingURL=CwButtonSwitch.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwButtonSwitch.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwButtonSwitch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAsB5E,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB6B,CAAC;AAExC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,mFAAmF;AACnF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,eAAe,EAAE,KAS7B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type MenuOption } from "./CwAnchoredMenu";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<import("./CwAnchoredMenu").CwAnchoredMenuProps>;
|
|
6
|
+
args: {
|
|
7
|
+
options: MenuOption[];
|
|
8
|
+
placement: "bottom";
|
|
9
|
+
onSelect: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
10
|
+
onOpenChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
11
|
+
onContextMenu: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
open: {
|
|
15
|
+
control: false;
|
|
16
|
+
};
|
|
17
|
+
children: {
|
|
18
|
+
control: false;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
render: (args: import("./CwAnchoredMenu").CwAnchoredMenuProps) => import("react").JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
export default meta;
|
|
24
|
+
type Story = StoryObj<typeof meta>;
|
|
25
|
+
/** Anchored to the trigger with an arrow; flips to the opposite side when the viewport runs out. */
|
|
26
|
+
export declare const Default: Story;
|
|
27
|
+
/** Plain strings work too; the string is both label and key. */
|
|
28
|
+
export declare const StringOptions: Story;
|
|
29
|
+
//# sourceMappingURL=CwAnchoredMenu.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwAnchoredMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/contextmenu/CwAnchoredMenu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAuB6B,CAAC;AAExC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,oGAAoG;AACpG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<import("./CwContextMenu").CwContextMenuProps>;
|
|
5
|
+
args: {
|
|
6
|
+
options: string[];
|
|
7
|
+
offset: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
onSelect: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
children: {
|
|
15
|
+
control: false;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
render: (args: import("./CwContextMenu").CwContextMenuProps) => import("react").JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
/** Opens at the pointer on right-click; closes on selection, outside click or Escape. */
|
|
23
|
+
export declare const Default: Story;
|
|
24
|
+
//# sourceMappingURL=CwContextMenu.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwContextMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/contextmenu/CwContextMenu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAkB4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,yFAAyF;AACzF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type CwSearchAsyncOption, type CwSearchAsyncProps } from "./CwSearchAsync";
|
|
3
|
+
interface Args extends CwSearchAsyncProps {
|
|
4
|
+
/** Story-only: labelProps.text */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Story-only: alignProps.flexDirection */
|
|
7
|
+
direction: "row" | "column";
|
|
8
|
+
}
|
|
9
|
+
declare const meta: {
|
|
10
|
+
title: string;
|
|
11
|
+
component: import("react").FC<CwSearchAsyncProps>;
|
|
12
|
+
args: {
|
|
13
|
+
label: string;
|
|
14
|
+
direction: "row";
|
|
15
|
+
onSearch: (text: string, signal: AbortSignal) => Promise<CwSearchAsyncOption[]>;
|
|
16
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
minChars: number;
|
|
19
|
+
debounceMs: number;
|
|
20
|
+
disabled: false;
|
|
21
|
+
required: false;
|
|
22
|
+
width: string;
|
|
23
|
+
};
|
|
24
|
+
argTypes: {
|
|
25
|
+
label: {
|
|
26
|
+
control: "text";
|
|
27
|
+
description: string;
|
|
28
|
+
table: {
|
|
29
|
+
category: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
direction: {
|
|
33
|
+
control: "inline-radio";
|
|
34
|
+
options: string[];
|
|
35
|
+
description: string;
|
|
36
|
+
table: {
|
|
37
|
+
category: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
labelProps: {
|
|
41
|
+
control: false;
|
|
42
|
+
};
|
|
43
|
+
alignProps: {
|
|
44
|
+
control: false;
|
|
45
|
+
};
|
|
46
|
+
icon: {
|
|
47
|
+
control: false;
|
|
48
|
+
};
|
|
49
|
+
onSearch: {
|
|
50
|
+
control: false;
|
|
51
|
+
};
|
|
52
|
+
onResolveInitial: {
|
|
53
|
+
control: false;
|
|
54
|
+
};
|
|
55
|
+
onResolveSelection: {
|
|
56
|
+
control: false;
|
|
57
|
+
};
|
|
58
|
+
value: {
|
|
59
|
+
control: false;
|
|
60
|
+
};
|
|
61
|
+
searchTrigger: {
|
|
62
|
+
control: false;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
66
|
+
label: string;
|
|
67
|
+
direction: "row" | "column";
|
|
68
|
+
onSearch: (text: string, signal: AbortSignal) => Promise<CwSearchAsyncOption[]>;
|
|
69
|
+
onChange: (id: CwSearchAsyncOption["id"] | null) => void;
|
|
70
|
+
value?: CwSearchAsyncOption["id"] | undefined;
|
|
71
|
+
onResolveInitial?: ((id: CwSearchAsyncOption["id"], signal: AbortSignal) => Promise<CwSearchAsyncOption>) | undefined;
|
|
72
|
+
onResolveSelection?: ((option: CwSearchAsyncOption, signal: AbortSignal) => Promise<CwSearchAsyncOption>) | undefined;
|
|
73
|
+
icon?: import("../../../display/graphics/icon/CwIcon").CwIconProps | undefined;
|
|
74
|
+
placeholder?: string | undefined;
|
|
75
|
+
minChars?: number | undefined;
|
|
76
|
+
debounceMs?: number | undefined;
|
|
77
|
+
disabled?: boolean | undefined;
|
|
78
|
+
required?: boolean | undefined;
|
|
79
|
+
initialDisplayText?: string | undefined;
|
|
80
|
+
searchTrigger?: number | undefined;
|
|
81
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
82
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
83
|
+
width?: string | undefined;
|
|
84
|
+
className?: string | undefined;
|
|
85
|
+
}>) => import("react").JSX.Element)[];
|
|
86
|
+
parameters: {
|
|
87
|
+
docs: {
|
|
88
|
+
source: {
|
|
89
|
+
transform: (_code: string, storyContext: {
|
|
90
|
+
args: Record<string, unknown>;
|
|
91
|
+
}) => string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
96
|
+
};
|
|
97
|
+
export default meta;
|
|
98
|
+
type Story = StoryObj<typeof meta>;
|
|
99
|
+
/** Debounced `onSearch` with an AbortSignal; two-line rows when an option has a `subLabel`, and `inputLabel` in the field once chosen. */
|
|
100
|
+
export declare const Default: Story;
|
|
101
|
+
/** A preselected `value` is resolved to its display text through `onResolveInitial`. */
|
|
102
|
+
export declare const Preselected: Story;
|
|
103
|
+
//# sourceMappingURL=CwSearchAsync.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwSearchAsync.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/search/CwSearchAsync.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAiB,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAwBnG,UAAU,IAAK,SAAQ,kBAAkB;IACxC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC5B;AAUD,QAAA,MAAM,IAAI;;;;;;yBA3BkB,MAAM,UAAU,WAAW,KAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAchF,MAAM;mBAEF,KAAK,GAAG,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CN,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,0IAA0I;AAC1I,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,wFAAwF;AACxF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC"}
|