@cwellt_software/cwellt-reactjs-lib 1.4.13 → 1.4.15
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 +343 -94
- package/dist/index.css +2 -2
- package/dist/index.d.ts +287 -81
- package/dist/index.es.js +342 -96
- package/dist/src/common/hooks/useRovingSingleSelect.d.ts +28 -0
- package/dist/src/common/hooks/useRovingSingleSelect.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButton.d.ts +14 -4
- package/dist/src/components/control/action/button/CwButton.d.ts.map +1 -1
- package/dist/src/components/control/action/button/CwButtonSplit.d.ts +52 -0
- package/dist/src/components/control/action/button/CwButtonSplit.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButtonSwitch.d.ts +65 -0
- package/dist/src/components/control/action/button/CwButtonSwitch.d.ts.map +1 -0
- package/dist/src/components/control/action/buttons/CwButtons.d.ts +5 -5
- package/dist/src/components/control/action/buttons/CwButtons.d.ts.map +1 -1
- package/dist/src/components/control/action/search/CwSearch.d.ts +1 -1
- package/dist/src/components/control/action/search/CwSearch.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheck.d.ts +7 -6
- package/dist/src/components/control/choice/checkbox/CwCheck.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckbox.d.ts +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckbox.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts +30 -7
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwRadio.d.ts +10 -0
- package/dist/src/components/control/choice/checkbox/CwRadio.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwRadioGroup.d.ts +58 -0
- package/dist/src/components/control/choice/checkbox/CwRadioGroup.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownFilter.d.ts +1 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownFilter.d.ts.map +1 -1
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts +1 -1
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts.map +1 -1
- package/dist/src/components/control/choice/option/CwOption.d.ts +1 -1
- package/dist/src/components/control/choice/option/CwOption.d.ts.map +1 -1
- package/dist/src/components/control/choice/select/CwDropdown.d.ts +1 -1
- package/dist/src/components/control/choice/select/CwDropdown.d.ts.map +1 -1
- package/dist/src/components/control/choice/select/CwSelect.d.ts +1 -1
- package/dist/src/components/control/choice/select/CwSelect.d.ts.map +1 -1
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.d.ts +1 -1
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.d.ts.map +1 -1
- package/dist/src/components/control/choice/toggle/CwToggle.d.ts +7 -6
- package/dist/src/components/control/choice/toggle/CwToggle.d.ts.map +1 -1
- package/dist/src/components/control/choice/tree-view/CwTreeView.d.ts +1 -1
- package/dist/src/components/control/choice/tree-view/CwTreeView.d.ts.map +1 -1
- package/dist/src/components/control/input/any/CwInput.d.ts +1 -1
- package/dist/src/components/control/input/any/CwInput.d.ts.map +1 -1
- package/dist/src/components/control/input/date-text/CwInputDateText.d.ts +1 -1
- package/dist/src/components/control/input/date-text/CwInputDateText.d.ts.map +1 -1
- package/dist/src/components/control/input/datetime/CwInputDatetime.d.ts +1 -1
- package/dist/src/components/control/input/datetime/CwInputDatetime.d.ts.map +1 -1
- package/dist/src/components/control/input/digit/CwDigit.d.ts +1 -1
- package/dist/src/components/control/input/digit/CwDigit.d.ts.map +1 -1
- package/dist/src/components/control/input/file/CwFileUpload.d.ts +1 -1
- package/dist/src/components/control/input/file/CwFileUpload.d.ts.map +1 -1
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts +1 -1
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts.map +1 -1
- package/dist/src/components/control/input/image/CwInputImage.d.ts +1 -1
- package/dist/src/components/control/input/image/CwInputImage.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts +2 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts +2 -1
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePickerTemporal.d.ts +2 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts +2 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerTemporal.d.ts +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts +4 -3
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/number/CwInputNumber.d.ts +1 -1
- package/dist/src/components/control/input/number/CwInputNumber.d.ts.map +1 -1
- package/dist/src/components/control/input/phone/CwInputPhone.d.ts +1 -1
- package/dist/src/components/control/input/phone/CwInputPhone.d.ts.map +1 -1
- package/dist/src/components/control/input/text/CwInputText.d.ts +1 -1
- package/dist/src/components/control/input/text/CwInputText.d.ts.map +1 -1
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts +1 -1
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts.map +1 -1
- package/dist/src/components/control/input/time/CwTime.d.ts +1 -1
- package/dist/src/components/control/input/time/CwTime.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/CwSchedulerComp.d.ts +1 -1
- package/dist/src/components/custom/scheduler/CwSuperSchedulerComp.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/DayHeader.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/DayHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/MonthHeader.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/MonthHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/WeekHeader.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/WeekHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/time_headers/TimeHeader.d.ts +1 -1
- package/dist/src/components/custom/scheduler/components/time_headers/TimeHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderDivision.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderDivision.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderTitle.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/HeaderTitle.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/Event.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts +1 -1
- 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 +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 +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts +1 -1
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts +2 -2
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts.map +1 -1
- package/dist/src/components/display/data/accordion/CwAccordionContainer.d.ts +1 -1
- package/dist/src/components/display/data/accordion/CwAccordionContainer.d.ts.map +1 -1
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts +2 -2
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts.map +1 -1
- package/dist/src/components/display/data/table/CwTable.d.ts +1 -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 +1 -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 +1 -1
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts.map +1 -1
- package/dist/src/components/display/data/tooltip_manager/CwTooltipManager.d.ts.map +1 -1
- package/dist/src/components/display/graphics/icon/CwIcon.d.ts +2 -2
- package/dist/src/components/display/graphics/icon/CwIcon.d.ts.map +1 -1
- package/dist/src/components/display/graphics/icon/svg-icons.d.ts +2 -2
- package/dist/src/components/display/graphics/image-gallery/CwImageGallery.d.ts +1 -1
- package/dist/src/components/display/graphics/image-gallery/CwImageGallery.d.ts.map +1 -1
- package/dist/src/components/display/graphics/image-zoom/CwImageZoom.d.ts +1 -1
- package/dist/src/components/display/graphics/image-zoom/CwImageZoom.d.ts.map +1 -1
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts +1 -1
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts.map +1 -1
- package/dist/src/components/display/graphics/loading-small/CwLoadingSmall.d.ts +1 -1
- package/dist/src/components/display/graphics/loading-small/CwLoadingSmall.d.ts.map +1 -1
- package/dist/src/components/display/text/heading/CwHeadingMain.d.ts +1 -1
- package/dist/src/components/display/text/heading/CwHeadingMain.d.ts.map +1 -1
- package/dist/src/components/display/text/heading/CwHeadingSecond.d.ts +1 -1
- package/dist/src/components/display/text/heading/CwHeadingSecond.d.ts.map +1 -1
- package/dist/src/components/display/text/label/CwLabel.d.ts +1 -1
- package/dist/src/components/display/text/label/CwLabel.d.ts.map +1 -1
- package/dist/src/components/display/text/message/CwMessage.d.ts +1 -1
- package/dist/src/components/layout/align/CwAlign.d.ts +1 -1
- package/dist/src/components/layout/align/CwAlign.d.ts.map +1 -1
- package/dist/src/components/layout/card/CwCardList.d.ts +1 -1
- package/dist/src/components/layout/card/CwCardList.d.ts.map +1 -1
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.d.ts +2 -2
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.d.ts.map +1 -1
- package/dist/src/components/layout/list/sortable/CwSortableList.d.ts +2 -2
- package/dist/src/components/layout/list/sortable/CwSortableList.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal.d.ts +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_report.d.ts +1 -1
- package/dist/src/components/layout/tabs/CwTabs.d.ts +1 -1
- package/dist/src/components/layout/tabs/CwTabs.d.ts.map +1 -1
- package/dist/src/dev/index.d.ts +1 -1
- package/dist/src/dev/index.d.ts.map +1 -1
- package/dist/src/dev/palette.d.ts +2 -2
- package/dist/src/dev/palette.d.ts.map +1 -1
- package/dist/src/dev/previews.d.ts +2 -1
- package/dist/src/dev/previews.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/playground/PlaygroundApp.d.ts.map +1 -1
- package/dist/src/playground/PlaygroundSection.d.ts +13 -0
- package/dist/src/playground/PlaygroundSection.d.ts.map +1 -0
- package/dist/src/playground/pages/CwButtonPage.d.ts +3 -0
- package/dist/src/playground/pages/CwButtonPage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwButtonSplitPage.d.ts +3 -0
- package/dist/src/playground/pages/CwButtonSplitPage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwButtonSwitchPage.d.ts +3 -0
- package/dist/src/playground/pages/CwButtonSwitchPage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwCheckboxGroupPage.d.ts +3 -0
- package/dist/src/playground/pages/CwCheckboxGroupPage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwRadioGroupPage.d.ts +3 -0
- package/dist/src/playground/pages/CwRadioGroupPage.d.ts.map +1 -0
- package/dist/src/playground/pages/TooltipCrashPage.d.ts +3 -0
- package/dist/src/playground/pages/TooltipCrashPage.d.ts.map +1 -0
- package/dist/test/common/hooks/useRovingSingleSelect.test.d.ts +2 -0
- package/dist/test/common/hooks/useRovingSingleSelect.test.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import React__default, { HTMLProps, PropsWithChildren, FC, ReactNode, CSSProperties, ReactElement, HTMLAttributes, DetailedHTMLProps, TextareaHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, Component, ComponentType } from 'react';
|
|
4
3
|
import * as CSS from 'csstype';
|
|
@@ -48,9 +47,9 @@ interface CwGroupLayoutProps {
|
|
|
48
47
|
itemLayout?: CwLayoutProps;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
declare function CwHeadingMain(props: React__default.PropsWithChildren<React__default.HTMLProps<HTMLHeadingElement>>):
|
|
50
|
+
declare function CwHeadingMain(props: React__default.PropsWithChildren<React__default.HTMLProps<HTMLHeadingElement>>): React__default.JSX.Element;
|
|
52
51
|
|
|
53
|
-
declare function CwHeadingSecond(props: React__default.PropsWithChildren<React__default.HTMLProps<HTMLHeadingElement>>):
|
|
52
|
+
declare function CwHeadingSecond(props: React__default.PropsWithChildren<React__default.HTMLProps<HTMLHeadingElement>>): React__default.JSX.Element;
|
|
54
53
|
|
|
55
54
|
interface CwLabelProps extends Omit<HTMLProps<PropsWithChildren<HTMLLabelElement>>, "className"> {
|
|
56
55
|
/** Text to display on the label; Same as props.children
|
|
@@ -73,7 +72,7 @@ interface CwLabelProps extends Omit<HTMLProps<PropsWithChildren<HTMLLabelElement
|
|
|
73
72
|
* <CwLabel justify="right" >Username:</CwLabel>
|
|
74
73
|
* ```
|
|
75
74
|
*/
|
|
76
|
-
declare function CwLabel(props: CwLabelProps):
|
|
75
|
+
declare function CwLabel(props: CwLabelProps): React$1.JSX.Element;
|
|
77
76
|
|
|
78
77
|
type ChipColorScheme = 'danger' | 'warning' | 'success' | 'info' | 'neutral' | 'custom';
|
|
79
78
|
type ChipVariant = 'soft' | 'solid' | 'outline';
|
|
@@ -157,7 +156,7 @@ declare const CwMessage: FC<CwMessageProps>;
|
|
|
157
156
|
*/
|
|
158
157
|
declare const useCwMessage: () => {
|
|
159
158
|
showMessage: (props: CwMessageProps) => void;
|
|
160
|
-
RenderMessage:
|
|
159
|
+
RenderMessage: React$1.JSX.Element | null;
|
|
161
160
|
};
|
|
162
161
|
declare class CwMessageManager {
|
|
163
162
|
private static instance;
|
|
@@ -261,7 +260,7 @@ type ImageItem = {
|
|
|
261
260
|
*/
|
|
262
261
|
declare function CwImageGallery({ images }: {
|
|
263
262
|
images: ImageItem[];
|
|
264
|
-
}):
|
|
263
|
+
}): React$1.JSX.Element;
|
|
265
264
|
|
|
266
265
|
type ZoomImageItem = {
|
|
267
266
|
src: string;
|
|
@@ -281,7 +280,7 @@ type ZoomImageItem = {
|
|
|
281
280
|
* <ImageZoom src={'base64ImageString'}
|
|
282
281
|
* alt={'Alternative text'}/>
|
|
283
282
|
*/
|
|
284
|
-
declare function CwImageZoom(image: ZoomImageItem):
|
|
283
|
+
declare function CwImageZoom(image: ZoomImageItem): React$1.JSX.Element;
|
|
285
284
|
|
|
286
285
|
interface CwIconProps extends Omit<HTMLProps<HTMLSpanElement>, "className" | "size"> {
|
|
287
286
|
/** Icon identifier */
|
|
@@ -293,7 +292,7 @@ interface CwIconProps extends Omit<HTMLProps<HTMLSpanElement>, "className" | "si
|
|
|
293
292
|
/** Tooltip position **/
|
|
294
293
|
tooltipPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
295
294
|
}
|
|
296
|
-
declare function CwIcon(props: CwIconProps):
|
|
295
|
+
declare function CwIcon(props: CwIconProps): React__default.JSX.Element;
|
|
297
296
|
|
|
298
297
|
type LoadingSize = 'small' | 'regular' | 'large';
|
|
299
298
|
type IconPosition = 'inside' | 'outside';
|
|
@@ -332,7 +331,7 @@ interface CwLoadingProps {
|
|
|
332
331
|
* <UserProfile />
|
|
333
332
|
* </CwLoading>
|
|
334
333
|
*/
|
|
335
|
-
declare function CwLoading({ isLoading, text, size, iconPosition, iconName, animation, children }: React__default.PropsWithChildren<CwLoadingProps>):
|
|
334
|
+
declare function CwLoading({ isLoading, text, size, iconPosition, iconName, animation, children }: React__default.PropsWithChildren<CwLoadingProps>): React__default.JSX.Element;
|
|
336
335
|
|
|
337
336
|
interface CwLoadingSmallProps {
|
|
338
337
|
isLoading?: boolean;
|
|
@@ -349,7 +348,7 @@ interface CwLoadingSmallProps {
|
|
|
349
348
|
* // Use:
|
|
350
349
|
* <CwLoading size="small" />
|
|
351
350
|
*/
|
|
352
|
-
declare function CwLoadingSmall(CwelltLoadingAppointements: React$1.PropsWithChildren<CwLoadingSmallProps>):
|
|
351
|
+
declare function CwLoadingSmall(CwelltLoadingAppointements: React$1.PropsWithChildren<CwLoadingSmallProps>): React$1.JSX.Element;
|
|
353
352
|
|
|
354
353
|
type TooltipPosition = "top" | "bottom" | "left" | "right";
|
|
355
354
|
interface CwGenericTooltipProps {
|
|
@@ -449,7 +448,7 @@ interface CwModalProps {
|
|
|
449
448
|
* **Note:** For new development, we recommend using {@link CwDialog} instead. CwModal remains supported for existing code.
|
|
450
449
|
* @see {@link CwDialog}
|
|
451
450
|
*/
|
|
452
|
-
declare function CwModal(custModalProps: React__default.PropsWithChildren<CwModalProps>):
|
|
451
|
+
declare function CwModal(custModalProps: React__default.PropsWithChildren<CwModalProps>): React__default.JSX.Element;
|
|
453
452
|
|
|
454
453
|
interface ConfirmationPopupProps {
|
|
455
454
|
isOpen: boolean;
|
|
@@ -461,7 +460,7 @@ interface ConfirmationPopupProps {
|
|
|
461
460
|
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
462
461
|
children: ReactNode;
|
|
463
462
|
}
|
|
464
|
-
declare function CwConfirmationPopup(props: ConfirmationPopupProps):
|
|
463
|
+
declare function CwConfirmationPopup(props: ConfirmationPopupProps): React__default.JSX.Element;
|
|
465
464
|
|
|
466
465
|
interface CwReportModalFunctionalProps {
|
|
467
466
|
content: string;
|
|
@@ -502,7 +501,7 @@ interface State$2 {
|
|
|
502
501
|
}
|
|
503
502
|
declare class CwReportModal extends React$1.Component<CwReportModalProps, State$2> {
|
|
504
503
|
constructor(props: Readonly<CwReportModalProps>);
|
|
505
|
-
render():
|
|
504
|
+
render(): React$1.JSX.Element;
|
|
506
505
|
}
|
|
507
506
|
|
|
508
507
|
interface CwModalHoverProps extends Omit<HTMLProps<HTMLDialogElement>, "className"> {
|
|
@@ -604,7 +603,7 @@ interface CwAlignProps extends Omit<PropsWithChildren<HTMLProps<HTMLDivElement>>
|
|
|
604
603
|
* </div>
|
|
605
604
|
* </CwAlign>
|
|
606
605
|
*/
|
|
607
|
-
declare function CwAlign(props: CwAlignProps):
|
|
606
|
+
declare function CwAlign(props: CwAlignProps): React$1.JSX.Element;
|
|
608
607
|
|
|
609
608
|
type CardChip = Omit<CwChipProps, 'closable' | 'onClose' | 'className' | 'style'>;
|
|
610
609
|
interface CwCardProps {
|
|
@@ -696,7 +695,7 @@ interface CwCardListProps<T> extends React__default.HTMLAttributes<HTMLDivElemen
|
|
|
696
695
|
/** Extracts a stable unique key from each item to avoid index-based reconciliation bugs */
|
|
697
696
|
keyExtractor?: (item: T, index: number) => string | number;
|
|
698
697
|
}
|
|
699
|
-
declare function CwCardList<T>({ items, renderCard, pageSize, layout, defaultCardWidth, cardGap, isLoading, emptyState, sortOptions, defaultSortKey, keyExtractor, ...htmlProps }: CwCardListProps<T>):
|
|
698
|
+
declare function CwCardList<T>({ items, renderCard, pageSize, layout, defaultCardWidth, cardGap, isLoading, emptyState, sortOptions, defaultSortKey, keyExtractor, ...htmlProps }: CwCardListProps<T>): React__default.JSX.Element;
|
|
700
699
|
|
|
701
700
|
interface CwAccordionContainerProps {
|
|
702
701
|
children?: any;
|
|
@@ -709,7 +708,7 @@ interface CwAccordionContainerProps {
|
|
|
709
708
|
* @remarks Previously CwAccordionContainer
|
|
710
709
|
* @returns
|
|
711
710
|
*/
|
|
712
|
-
declare function CwAccordionContainer(CwelltAccordionContainerProps: React$1.PropsWithChildren<CwAccordionContainerProps>):
|
|
711
|
+
declare function CwAccordionContainer(CwelltAccordionContainerProps: React$1.PropsWithChildren<CwAccordionContainerProps>): React$1.JSX.Element;
|
|
713
712
|
|
|
714
713
|
interface Column$1<T = any> {
|
|
715
714
|
title: string;
|
|
@@ -818,7 +817,7 @@ interface CwTableProps<T = any> {
|
|
|
818
817
|
*
|
|
819
818
|
* @returns React component
|
|
820
819
|
*/
|
|
821
|
-
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>>):
|
|
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;
|
|
822
821
|
|
|
823
822
|
interface SortableColumn<T = any> {
|
|
824
823
|
/** Header label */
|
|
@@ -891,7 +890,7 @@ interface CwSortableTableProps<T = any> {
|
|
|
891
890
|
* - Reorder is calculated in onDragEnd using lastValidDropIndex
|
|
892
891
|
* - draggedItem is tracked in state, not via dataTransfer
|
|
893
892
|
*/
|
|
894
|
-
declare function CwSortableTable<T = any>({ columns, data, rowKey, onReorder, loading, textNoData, className, tableClassName, maxHeight, showHandle, style, saveLabel, discardLabel, }: Readonly<CwSortableTableProps<T>>):
|
|
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;
|
|
895
894
|
|
|
896
895
|
interface SortableTableDragState {
|
|
897
896
|
/** Index of the row currently being dragged (-1 if none) */
|
|
@@ -1032,7 +1031,7 @@ interface CwTableServerSideProps<T = any> {
|
|
|
1032
1031
|
*
|
|
1033
1032
|
* @returns React component
|
|
1034
1033
|
*/
|
|
1035
|
-
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>>):
|
|
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;
|
|
1036
1035
|
|
|
1037
1036
|
interface Tab {
|
|
1038
1037
|
key: string;
|
|
@@ -1080,7 +1079,7 @@ interface CwTabsProps {
|
|
|
1080
1079
|
* />
|
|
1081
1080
|
* @returns A tab
|
|
1082
1081
|
*/
|
|
1083
|
-
declare function CwTabs(CwTabsProps: React__default.PropsWithChildren<CwTabsProps>):
|
|
1082
|
+
declare function CwTabs(CwTabsProps: React__default.PropsWithChildren<CwTabsProps>): React__default.JSX.Element;
|
|
1084
1083
|
|
|
1085
1084
|
interface CwExpandableProps extends Omit<HTMLProps<PropsWithChildren<HTMLDetailsElement>>, "className"> {
|
|
1086
1085
|
/** Title of the expandable */
|
|
@@ -1233,7 +1232,7 @@ interface CwSortableListProps<T extends SortableItem$1> {
|
|
|
1233
1232
|
readOnly?: boolean;
|
|
1234
1233
|
maxHeight?: number | string;
|
|
1235
1234
|
}
|
|
1236
|
-
declare function CwSortableList<T extends SortableItem$1>({ items, onReorder, renderItem, className, movedItems, emptyMessage, readOnly, maxHeight, }: CwSortableListProps<T>):
|
|
1235
|
+
declare function CwSortableList<T extends SortableItem$1>({ items, onReorder, renderItem, className, movedItems, emptyMessage, readOnly, maxHeight, }: CwSortableListProps<T>): React__default.JSX.Element;
|
|
1237
1236
|
|
|
1238
1237
|
/**
|
|
1239
1238
|
* useSortableList
|
|
@@ -1388,7 +1387,7 @@ interface CwFileUploadProps {
|
|
|
1388
1387
|
onChange: (file: File) => void;
|
|
1389
1388
|
onSaveHexContent: (hexContent: string) => void;
|
|
1390
1389
|
}
|
|
1391
|
-
declare function CwFileUpload(fileUploadProps: React__default.PropsWithChildren<CwFileUploadProps>):
|
|
1390
|
+
declare function CwFileUpload(fileUploadProps: React__default.PropsWithChildren<CwFileUploadProps>): React__default.JSX.Element;
|
|
1392
1391
|
|
|
1393
1392
|
interface CwFileUploadMultipleLabels {
|
|
1394
1393
|
uploadDisabled: string;
|
|
@@ -1419,7 +1418,7 @@ interface CwFileUploadMultipleProps {
|
|
|
1419
1418
|
initialFileName?: string;
|
|
1420
1419
|
labels?: Partial<CwFileUploadMultipleLabels>;
|
|
1421
1420
|
}
|
|
1422
|
-
declare function CwFileUploadMultiple(fileUploadProps: React__default.PropsWithChildren<CwFileUploadMultipleProps>):
|
|
1421
|
+
declare function CwFileUploadMultiple(fileUploadProps: React__default.PropsWithChildren<CwFileUploadMultipleProps>): React__default.JSX.Element;
|
|
1423
1422
|
|
|
1424
1423
|
interface CwInputProps {
|
|
1425
1424
|
id?: string;
|
|
@@ -1435,15 +1434,18 @@ interface CwInputProps {
|
|
|
1435
1434
|
required?: boolean;
|
|
1436
1435
|
error?: boolean;
|
|
1437
1436
|
}
|
|
1438
|
-
declare function CwInput(CwInputProps: React__default.PropsWithChildren<CwInputProps>):
|
|
1437
|
+
declare function CwInput(CwInputProps: React__default.PropsWithChildren<CwInputProps>): React__default.JSX.Element;
|
|
1439
1438
|
|
|
1440
1439
|
/**
|
|
1441
1440
|
* CwButton - Customizable button component with variant styles, color themes, and icon support
|
|
1442
1441
|
*
|
|
1443
1442
|
* @param text - Button text content (displayed in <strong> tag when no children)
|
|
1444
|
-
* @param variant - Button style: 'solid' (default), 'outline', or '
|
|
1443
|
+
* @param variant - Button style: 'solid' (default), 'outline', 'icon', or 'ghost' (low-emphasis text button: transparent, fills with the container color on hover/press)
|
|
1445
1444
|
* @param color - Color theme: 'primary' (default), 'danger', or 'neutral'
|
|
1445
|
+
* @param size - Button size: 'small', 'medium' (default), or 'large'
|
|
1446
1446
|
* @param icon - Icon identifier for CSS classes (cwi-{icon})
|
|
1447
|
+
* @param iconPosition - Icon placement relative to the text: 'left' (default, icon-then-text) or 'right' (text-then-icon). Only affects the auto icon+text rendering, not the icon variant or custom children.
|
|
1448
|
+
* @param pressed - Toggle/"on" state for a toggle button. When defined, sets `aria-pressed` and a selected fill; leave undefined for a normal (non-toggle) button. The consumer owns the state (`pressed` + `onClick`).
|
|
1447
1449
|
* @param className - Additional CSS classes
|
|
1448
1450
|
* @param title - Built-in tooltip
|
|
1449
1451
|
* @param tooltipPosition - Tooltip position: 'top', 'bottom' (default), 'left', 'right'
|
|
@@ -1451,20 +1453,27 @@ declare function CwInput(CwInputProps: React__default.PropsWithChildren<CwInputP
|
|
|
1451
1453
|
*
|
|
1452
1454
|
* @example
|
|
1453
1455
|
* <CwButton text="Save" />
|
|
1456
|
+
* <CwButton text="Save" size="small" />
|
|
1454
1457
|
* <CwButton text="Delete" variant="outline" color="danger" />
|
|
1455
1458
|
* <CwButton variant="icon" icon="edit" title="Edit item" />
|
|
1456
1459
|
* <CwButton icon="star" text="Favorite" color="primary" />
|
|
1460
|
+
* <CwButton text="Next" icon="chevron-right" iconPosition="right" />
|
|
1461
|
+
* <CwButton text="Export" icon="download" variant="ghost" />
|
|
1462
|
+
* <CwButton variant="icon" icon="pin" pressed={isPinned} onClick={togglePinned} title="Pin" />
|
|
1457
1463
|
* <CwButton className="custom-class">Custom content</CwButton>
|
|
1458
1464
|
*/
|
|
1459
|
-
|
|
1465
|
+
|
|
1466
|
+
interface CwButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1460
1467
|
text?: string;
|
|
1461
|
-
variant?: 'solid' | 'outline' | 'icon';
|
|
1468
|
+
variant?: 'solid' | 'outline' | 'icon' | 'ghost';
|
|
1462
1469
|
color?: 'primary' | 'danger' | 'neutral';
|
|
1470
|
+
size?: 'small' | 'medium' | 'large';
|
|
1471
|
+
iconPosition?: 'left' | 'right';
|
|
1472
|
+
pressed?: boolean;
|
|
1463
1473
|
icon?: string;
|
|
1464
1474
|
tooltipPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
1465
|
-
ref?: React.LegacyRef<HTMLButtonElement>;
|
|
1466
1475
|
}
|
|
1467
|
-
declare
|
|
1476
|
+
declare const CwButton: React__default.ForwardRefExoticComponent<CwButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1468
1477
|
|
|
1469
1478
|
interface CwDigitProps extends Omit<HTMLProps<HTMLInputElement>, "className" | "type"> {
|
|
1470
1479
|
/** Props to define alignment and size; undefined == column
|
|
@@ -1499,7 +1508,7 @@ interface CwDigitProps extends Omit<HTMLProps<HTMLInputElement>, "className" | "
|
|
|
1499
1508
|
* />
|
|
1500
1509
|
* ```
|
|
1501
1510
|
*/
|
|
1502
|
-
declare function CwDigit(props: CwDigitProps):
|
|
1511
|
+
declare function CwDigit(props: CwDigitProps): React$1.JSX.Element;
|
|
1503
1512
|
|
|
1504
1513
|
interface ColorPickerProps {
|
|
1505
1514
|
initialColor: string;
|
|
@@ -1599,7 +1608,7 @@ interface CwInputTextProps extends Omit<HTMLProps<HTMLInputElement>, never> {
|
|
|
1599
1608
|
* />
|
|
1600
1609
|
* ```
|
|
1601
1610
|
*/
|
|
1602
|
-
declare function CwInputText(props: CwInputTextProps):
|
|
1611
|
+
declare function CwInputText(props: CwInputTextProps): React$1.JSX.Element;
|
|
1603
1612
|
|
|
1604
1613
|
interface CwInputPhoneProps extends Omit<HTMLProps<HTMLInputElement>, "className" | "type"> {
|
|
1605
1614
|
/** Props to define alignment and size; undefined == column
|
|
@@ -1630,7 +1639,7 @@ interface CwInputPhoneProps extends Omit<HTMLProps<HTMLInputElement>, "className
|
|
|
1630
1639
|
* <CwInputPhone iconProps={{iconId:"phone"}} labelProps={{children:"Phone"}} />
|
|
1631
1640
|
* ```
|
|
1632
1641
|
*/
|
|
1633
|
-
declare function CwInputPhone(props: CwInputPhoneProps):
|
|
1642
|
+
declare function CwInputPhone(props: CwInputPhoneProps): React$1.JSX.Element;
|
|
1634
1643
|
|
|
1635
1644
|
interface CwInputNumberProps {
|
|
1636
1645
|
id?: string;
|
|
@@ -1649,7 +1658,7 @@ interface CwInputNumberProps {
|
|
|
1649
1658
|
min?: number;
|
|
1650
1659
|
max?: number;
|
|
1651
1660
|
}
|
|
1652
|
-
declare function CwInputNumber(CwInputNumberProps: React__default.PropsWithChildren<CwInputNumberProps>):
|
|
1661
|
+
declare function CwInputNumber(CwInputNumberProps: React__default.PropsWithChildren<CwInputNumberProps>): React__default.JSX.Element;
|
|
1653
1662
|
|
|
1654
1663
|
interface CwTextAreaProps extends Omit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "className"> {
|
|
1655
1664
|
/** Can it be resized? */
|
|
@@ -1672,7 +1681,7 @@ interface CwTextAreaProps extends Omit<DetailedHTMLProps<TextareaHTMLAttributes<
|
|
|
1672
1681
|
*/
|
|
1673
1682
|
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
1674
1683
|
}
|
|
1675
|
-
declare function CwTextArea(props: CwTextAreaProps):
|
|
1684
|
+
declare function CwTextArea(props: CwTextAreaProps): React$1.JSX.Element;
|
|
1676
1685
|
|
|
1677
1686
|
interface CwInputDatetimeProps extends Omit<HTMLProps<HTMLInputElement>, "className" | "type"> {
|
|
1678
1687
|
/** Props to define alignment and size; undefined == column
|
|
@@ -1707,7 +1716,7 @@ interface CwInputDatetimeProps extends Omit<HTMLProps<HTMLInputElement>, "classN
|
|
|
1707
1716
|
* />
|
|
1708
1717
|
* ```
|
|
1709
1718
|
*/
|
|
1710
|
-
declare function CwInputDatetime(props: CwInputDatetimeProps):
|
|
1719
|
+
declare function CwInputDatetime(props: CwInputDatetimeProps): React$1.JSX.Element;
|
|
1711
1720
|
|
|
1712
1721
|
interface CwInputTimeProps extends Omit<HTMLProps<HTMLInputElement>, "className" | "type"> {
|
|
1713
1722
|
/** Props to define alignment and size; undefined == column
|
|
@@ -1742,7 +1751,7 @@ interface CwInputTimeProps extends Omit<HTMLProps<HTMLInputElement>, "className"
|
|
|
1742
1751
|
* />
|
|
1743
1752
|
* ```
|
|
1744
1753
|
*/
|
|
1745
|
-
declare function CwTime(props: CwInputTimeProps):
|
|
1754
|
+
declare function CwTime(props: CwInputTimeProps): React$1.JSX.Element;
|
|
1746
1755
|
|
|
1747
1756
|
interface CwInputDateTextProps extends Omit<React__default.HTMLProps<HTMLInputElement>, "className" | "type" | "placeholder" | "defaultValue" | "onChange"> {
|
|
1748
1757
|
/** "DD.MM.YYYY" by default */
|
|
@@ -1775,13 +1784,13 @@ interface CwInputDateTextProps extends Omit<React__default.HTMLProps<HTMLInputEl
|
|
|
1775
1784
|
* />
|
|
1776
1785
|
* ```
|
|
1777
1786
|
*/
|
|
1778
|
-
declare function CwInputDateText(props: CwInputDateTextProps):
|
|
1787
|
+
declare function CwInputDateText(props: CwInputDateTextProps): React__default.JSX.Element;
|
|
1779
1788
|
|
|
1780
1789
|
interface CwInputImageProps extends Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "className" | "type" | "onChange"> {
|
|
1781
1790
|
allowedImageFormats?: string[];
|
|
1782
1791
|
onChange?: (image: string | null) => void;
|
|
1783
1792
|
}
|
|
1784
|
-
declare function CwInputImage(props: CwInputImageProps):
|
|
1793
|
+
declare function CwInputImage(props: CwInputImageProps): React$1.JSX.Element;
|
|
1785
1794
|
|
|
1786
1795
|
interface CwImageAreaProps extends Omit<HTMLProps<HTMLImageElement>, "className" | "ref" | "onMouseDown" | "onMouseMove" | "onMouseUp" | "onDragStart"> {
|
|
1787
1796
|
/** Not implemented */
|
|
@@ -1891,14 +1900,16 @@ declare const CwWeekdaySelector: FC<CwWeekdaySelectorProps>;
|
|
|
1891
1900
|
interface CwCheckProps extends Omit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type"> {
|
|
1892
1901
|
/** Props for the label component */
|
|
1893
1902
|
labelProps?: CwLabelProps;
|
|
1894
|
-
/** Text content for the checkbox label
|
|
1903
|
+
/** Text content for the checkbox label
|
|
1904
|
+
* @deprecated Use `labelProps.text` instead. */
|
|
1895
1905
|
labelText?: string;
|
|
1896
|
-
/**
|
|
1897
|
-
|
|
1898
|
-
/** Layout alignment: "row" (side by side) | "column" (label
|
|
1906
|
+
/** Layout of the input relative to its label: "row" (side by side, default) | "column" (label below) */
|
|
1907
|
+
direction?: "row" | "column";
|
|
1908
|
+
/** Layout alignment: "row" (side by side) | "column" (label below) @default "row"
|
|
1909
|
+
* @deprecated Use `direction` instead. */
|
|
1899
1910
|
alignment?: "row" | "column";
|
|
1900
1911
|
}
|
|
1901
|
-
declare function CwCheck(props: CwCheckProps):
|
|
1912
|
+
declare function CwCheck(props: CwCheckProps): React__default.JSX.Element;
|
|
1902
1913
|
|
|
1903
1914
|
/**
|
|
1904
1915
|
* @deprecated Use {@link CwCheck} for single checkboxes or {@link CwCheckboxGroup} for multiple options.
|
|
@@ -1918,7 +1929,7 @@ interface CwCheckboxProps {
|
|
|
1918
1929
|
disabled?: boolean;
|
|
1919
1930
|
error?: boolean;
|
|
1920
1931
|
}
|
|
1921
|
-
declare function CwCheckbox(CwCheckboxProps: React__default.PropsWithChildren<CwCheckboxProps>):
|
|
1932
|
+
declare function CwCheckbox(CwCheckboxProps: React__default.PropsWithChildren<CwCheckboxProps>): React__default.JSX.Element;
|
|
1922
1933
|
|
|
1923
1934
|
interface CheckboxOption {
|
|
1924
1935
|
/** Value sent to onChange */
|
|
@@ -1928,7 +1939,17 @@ interface CheckboxOption {
|
|
|
1928
1939
|
/** Disables this specific option */
|
|
1929
1940
|
disabled?: boolean;
|
|
1930
1941
|
}
|
|
1931
|
-
|
|
1942
|
+
/**
|
|
1943
|
+
* Extends the shared {@link CwGroupLayoutProps} (`groupLayout` + `itemLayout`), the same layout
|
|
1944
|
+
* interface {@link CwRadioGroup} and {@link CwKeyValueList} use:
|
|
1945
|
+
* - `groupLayout` — label vs group block. `direction: "row"` (default, kept for backward
|
|
1946
|
+
* compatibility) = label beside the options; `"column"` = label above. Honors `align`/`gap`.
|
|
1947
|
+
* - `itemLayout` — flow of the checkbox options. `direction: "column"` (default) = stacked;
|
|
1948
|
+
* `"row"` = inline with wrap. Honors `gap`. It also drives each checkbox's own box-to-text
|
|
1949
|
+
* layout to the OPPOSITE axis: stacked items get the box beside the text, side-by-side items
|
|
1950
|
+
* get the box above the text.
|
|
1951
|
+
*/
|
|
1952
|
+
interface CwCheckboxGroupProps extends CwGroupLayoutProps {
|
|
1932
1953
|
/** List of options to display */
|
|
1933
1954
|
options: CheckboxOption[];
|
|
1934
1955
|
/** Currently selected values */
|
|
@@ -1937,32 +1958,101 @@ interface CwCheckboxGroupProps {
|
|
|
1937
1958
|
onChange: (selected: string[]) => void;
|
|
1938
1959
|
/** Props for the label component */
|
|
1939
1960
|
labelProps?: CwLabelProps;
|
|
1940
|
-
/** Props for alignment */
|
|
1941
|
-
alignProps?: CwAlignProps;
|
|
1942
1961
|
/** Marks the group as required */
|
|
1943
1962
|
required?: boolean;
|
|
1944
1963
|
/** Disables all options */
|
|
1945
1964
|
disabled?: boolean;
|
|
1946
|
-
/**
|
|
1965
|
+
/** Additional CSS class for the container */
|
|
1966
|
+
className?: string;
|
|
1967
|
+
/** Error or info messages below the group */
|
|
1968
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
1969
|
+
/** Props for alignment
|
|
1970
|
+
* @deprecated Use `groupLayout` instead. */
|
|
1971
|
+
alignProps?: CwAlignProps;
|
|
1972
|
+
/** Layout alignment of each individual checkbox: "row" (default) | "column"
|
|
1973
|
+
* @deprecated Use `itemLayout` instead. */
|
|
1947
1974
|
optionsAlignment?: "row" | "column";
|
|
1975
|
+
"data-testid"?: string;
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
* CwCheckboxGroup - Multi-select group of native checkbox inputs.
|
|
1979
|
+
*
|
|
1980
|
+
* Use for selecting any number of values from a list of options. Layout follows the
|
|
1981
|
+
* CwKeyValueList / CwRadioGroup convention with two nested {@link CwLayoutProps} axes applied as
|
|
1982
|
+
* `data-*` attributes: `groupLayout` positions the label relative to the group block (root grid),
|
|
1983
|
+
* `itemLayout` controls how the checkboxes flow among themselves (options container) and, on the
|
|
1984
|
+
* opposite axis, each checkbox's own box-to-text layout.
|
|
1985
|
+
*/
|
|
1986
|
+
declare function CwCheckboxGroup({ options, value, onChange, labelProps, groupLayout, itemLayout, required, disabled, className, feedback, alignProps, optionsAlignment, "data-testid": dataTestId, }: CwCheckboxGroupProps): React$1.JSX.Element;
|
|
1987
|
+
|
|
1988
|
+
interface RadioOption {
|
|
1989
|
+
/** Value sent to onChange */
|
|
1990
|
+
value: string;
|
|
1991
|
+
/** Text displayed next to the radio */
|
|
1992
|
+
label: string;
|
|
1993
|
+
/** Disables this specific option */
|
|
1994
|
+
disabled?: boolean;
|
|
1995
|
+
}
|
|
1996
|
+
/**
|
|
1997
|
+
* Extends the shared {@link CwGroupLayoutProps} (`groupLayout` + `itemLayout`), the same layout
|
|
1998
|
+
* interface {@link CwKeyValueList} uses:
|
|
1999
|
+
* - `groupLayout` — label vs radiogroup block. `direction: "column"` (default) = label above;
|
|
2000
|
+
* `"row"` = label beside the options. Honors `align`/`gap`.
|
|
2001
|
+
* - `itemLayout` — flow of the radio options. `direction: "column"` (default) = stacked;
|
|
2002
|
+
* `"row"` = inline with wrap. Honors `gap`. It also drives each radio's own circle-to-text
|
|
2003
|
+
* layout to the OPPOSITE axis: stacked items get the circle beside the text, side-by-side
|
|
2004
|
+
* items get the circle above the text.
|
|
2005
|
+
*/
|
|
2006
|
+
interface CwRadioGroupProps extends CwGroupLayoutProps {
|
|
2007
|
+
/** List of options to display */
|
|
2008
|
+
options: RadioOption[];
|
|
2009
|
+
/** Currently selected value */
|
|
2010
|
+
value?: string;
|
|
2011
|
+
/** Callback when the selection changes - returns the selected value */
|
|
2012
|
+
onChange: (value: string) => void;
|
|
2013
|
+
/** Props for the label component */
|
|
2014
|
+
labelProps?: CwLabelProps;
|
|
2015
|
+
/** Marks the group as required */
|
|
2016
|
+
required?: boolean;
|
|
2017
|
+
/** Disables all options */
|
|
2018
|
+
disabled?: boolean;
|
|
1948
2019
|
/** Additional CSS class for the container */
|
|
1949
2020
|
className?: string;
|
|
1950
2021
|
/** Error or info messages below the group */
|
|
1951
2022
|
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
2023
|
+
/** Accessible name for the radiogroup when no visible `labelProps` label is rendered (a11y fallback). */
|
|
2024
|
+
"aria-label"?: string;
|
|
2025
|
+
/** Accessible name for the radiogroup when no visible `labelProps` label is rendered (a11y fallback). */
|
|
2026
|
+
"aria-labelledby"?: string;
|
|
2027
|
+
"data-testid"?: string;
|
|
1952
2028
|
}
|
|
1953
|
-
|
|
2029
|
+
/**
|
|
2030
|
+
* CwRadioGroup - Single-select group of native radio inputs.
|
|
2031
|
+
*
|
|
2032
|
+
* Built on `<input type="radio">` sharing one `name`, so the browser provides radio-group
|
|
2033
|
+
* semantics (roving tabindex, arrow-key navigation) natively. Use for a single choice from a
|
|
2034
|
+
* list of options; for 2–3 options shown as a strip use CwButtonSwitch.
|
|
2035
|
+
*
|
|
2036
|
+
* Layout follows the CwKeyValueList convention with two nested {@link CwLayoutProps} axes
|
|
2037
|
+
* applied as `data-*` attributes: `groupLayout` positions the label relative to the radiogroup
|
|
2038
|
+
* block (root grid), `itemLayout` controls how the radios flow among themselves (options
|
|
2039
|
+
* container) and, on the opposite axis, each radio's own circle-to-text layout.
|
|
2040
|
+
*/
|
|
2041
|
+
declare function CwRadioGroup({ options, value, onChange, labelProps, groupLayout, itemLayout, required, disabled, className, feedback, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "data-testid": dataTestId, }: CwRadioGroupProps): React$1.JSX.Element;
|
|
1954
2042
|
|
|
1955
2043
|
interface CwToggleProps extends Omit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type"> {
|
|
1956
2044
|
/** Props for the label component */
|
|
1957
2045
|
labelProps?: CwLabelProps;
|
|
1958
|
-
/** Text content for the toggle label
|
|
2046
|
+
/** Text content for the toggle label
|
|
2047
|
+
* @deprecated Use `labelProps.text` instead. */
|
|
1959
2048
|
labelText?: string;
|
|
1960
|
-
/**
|
|
1961
|
-
|
|
1962
|
-
/** Layout alignment: "row" (side by side) | "column" (label above) @default "row"
|
|
2049
|
+
/** Layout of the input relative to its label: "row" (side by side, default) | "column" (label above) */
|
|
2050
|
+
direction?: "row" | "column";
|
|
2051
|
+
/** Layout alignment: "row" (side by side) | "column" (label above) @default "row"
|
|
2052
|
+
* @deprecated Use `direction` instead. */
|
|
1963
2053
|
alignment?: "row" | "column";
|
|
1964
2054
|
}
|
|
1965
|
-
declare function CwToggle(props: CwToggleProps):
|
|
2055
|
+
declare function CwToggle(props: CwToggleProps): React__default.JSX.Element;
|
|
1966
2056
|
|
|
1967
2057
|
interface CwSelectProps extends DetailedHTMLProps<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
|
|
1968
2058
|
/** Props to define alignment and size; undefined == column
|
|
@@ -2017,7 +2107,7 @@ interface CwSelectProps extends DetailedHTMLProps<SelectHTMLAttributes<HTMLSelec
|
|
|
2017
2107
|
* <CwOption value="w" >White</CwOption>
|
|
2018
2108
|
* </CwSelect>
|
|
2019
2109
|
*/
|
|
2020
|
-
declare function CwSelect(props: CwSelectProps):
|
|
2110
|
+
declare function CwSelect(props: CwSelectProps): React$1.JSX.Element;
|
|
2021
2111
|
|
|
2022
2112
|
/** A single selectable option in a {@link CwDropdown}. */
|
|
2023
2113
|
interface CwDropdownOption {
|
|
@@ -2068,7 +2158,7 @@ interface CwDropdownProps extends Omit<React__default.HTMLAttributes<HTMLDivElem
|
|
|
2068
2158
|
* labelProps={{ text: 'My Label' }}
|
|
2069
2159
|
* />
|
|
2070
2160
|
*/
|
|
2071
|
-
declare function CwDropdown({ options, value, onChange, labelProps, alignProps, placeholder, allowSearch, disabled, required, feedback, className, style, ...otherProps }: CwDropdownProps):
|
|
2161
|
+
declare function CwDropdown({ options, value, onChange, labelProps, alignProps, placeholder, allowSearch, disabled, required, feedback, className, style, ...otherProps }: CwDropdownProps): React__default.JSX.Element;
|
|
2072
2162
|
|
|
2073
2163
|
interface CwOptionProps extends Omit<HTMLProps<PropsWithChildren<HTMLOptionElement>>, "className"> {
|
|
2074
2164
|
text?: string;
|
|
@@ -2086,7 +2176,7 @@ interface CwOptionProps extends Omit<HTMLProps<PropsWithChildren<HTMLOptionEleme
|
|
|
2086
2176
|
* <CwOption>C</CwOption>
|
|
2087
2177
|
* </CwSelect>
|
|
2088
2178
|
*/
|
|
2089
|
-
declare function CwOption(props: CwOptionProps):
|
|
2179
|
+
declare function CwOption(props: CwOptionProps): React$1.JSX.Element;
|
|
2090
2180
|
|
|
2091
2181
|
interface CwDropdownListItems {
|
|
2092
2182
|
IdDropDown_filter?: string | number | any;
|
|
@@ -2102,7 +2192,7 @@ interface CwDropdownFilterProps {
|
|
|
2102
2192
|
isNested?: boolean;
|
|
2103
2193
|
IdContent?: string;
|
|
2104
2194
|
}
|
|
2105
|
-
declare function CwDropdownFilter(props: React$1.PropsWithChildren<CwDropdownFilterProps>):
|
|
2195
|
+
declare function CwDropdownFilter(props: React$1.PropsWithChildren<CwDropdownFilterProps>): React$1.JSX.Element;
|
|
2106
2196
|
|
|
2107
2197
|
interface CwPopoverButtonProps extends Omit<CwButtonProps, "onClick" | "children"> {
|
|
2108
2198
|
/** Content rendered inside the floating panel */
|
|
@@ -2135,7 +2225,7 @@ interface CwPopoverButtonProps extends Omit<CwButtonProps, "onClick" | "children
|
|
|
2135
2225
|
* <CwToggle labelText="Show assigned" checked={v} onChange={setV} />
|
|
2136
2226
|
* </CwPopoverButton>
|
|
2137
2227
|
*/
|
|
2138
|
-
declare function CwPopoverButton({ children, panelWidth, placement, panelClassName, ...buttonProps }: CwPopoverButtonProps):
|
|
2228
|
+
declare function CwPopoverButton({ children, panelWidth, placement, panelClassName, ...buttonProps }: CwPopoverButtonProps): React__default.JSX.Element;
|
|
2139
2229
|
|
|
2140
2230
|
interface CwMultiFilterTagProps {
|
|
2141
2231
|
/** Make sure each ID is unique */
|
|
@@ -2399,7 +2489,7 @@ interface CwTagSelectorProps {
|
|
|
2399
2489
|
* />
|
|
2400
2490
|
* ```
|
|
2401
2491
|
*/
|
|
2402
|
-
declare function CwTagSelector({ id, options, value, onChange, labelProps, iconProps, alignProps, placeholder, disabled, showSelectAll, feedback, className, style, }: CwTagSelectorProps):
|
|
2492
|
+
declare function CwTagSelector({ id, options, value, onChange, labelProps, iconProps, alignProps, placeholder, disabled, showSelectAll, feedback, className, style, }: CwTagSelectorProps): React__default.JSX.Element;
|
|
2403
2493
|
|
|
2404
2494
|
type CwTreeNode<T> = {
|
|
2405
2495
|
id: string | number;
|
|
@@ -2413,7 +2503,7 @@ type TreeViewProps<T> = {
|
|
|
2413
2503
|
allowParentSelection?: boolean;
|
|
2414
2504
|
selectedId?: string | number | null;
|
|
2415
2505
|
};
|
|
2416
|
-
declare function CwTreeView<T>({ data, onSelect, allowParentSelection, selectedId: initialSelectedId }: TreeViewProps<T>):
|
|
2506
|
+
declare function CwTreeView<T>({ data, onSelect, allowParentSelection, selectedId: initialSelectedId }: TreeViewProps<T>): React$1.JSX.Element;
|
|
2417
2507
|
|
|
2418
2508
|
/** Props for {@link CwSearchInput}. */
|
|
2419
2509
|
interface CwSearchInputProps extends HTMLProps<HTMLDivElement> {
|
|
@@ -2450,7 +2540,7 @@ interface CwSearchInputProps extends HTMLProps<HTMLDivElement> {
|
|
|
2450
2540
|
* placeholder="Search by name…"
|
|
2451
2541
|
* />
|
|
2452
2542
|
*/
|
|
2453
|
-
declare function CwSearchInput(optionsProps: React__default.PropsWithChildren<CwSearchInputProps>):
|
|
2543
|
+
declare function CwSearchInput(optionsProps: React__default.PropsWithChildren<CwSearchInputProps>): React__default.JSX.Element;
|
|
2454
2544
|
|
|
2455
2545
|
/**
|
|
2456
2546
|
* One result row returned by {@link CwSearchAsyncProps.onSearch} /
|
|
@@ -2640,6 +2730,122 @@ interface ContextMenuProps extends React__default.PropsWithChildren {
|
|
|
2640
2730
|
}
|
|
2641
2731
|
declare const CwContextMenu: React__default.FC<ContextMenuProps>;
|
|
2642
2732
|
|
|
2733
|
+
interface CwButtonSplitAction {
|
|
2734
|
+
key: string;
|
|
2735
|
+
label: string;
|
|
2736
|
+
/** cwi icon name (verified against NewCwIcons.json) */
|
|
2737
|
+
icon?: string;
|
|
2738
|
+
disabled?: boolean;
|
|
2739
|
+
}
|
|
2740
|
+
interface CwButtonSplitProps {
|
|
2741
|
+
/** Main action label */
|
|
2742
|
+
text: string;
|
|
2743
|
+
/** Optional main-action icon */
|
|
2744
|
+
icon?: string;
|
|
2745
|
+
/** Default/main action */
|
|
2746
|
+
onClick: () => void;
|
|
2747
|
+
/** Alternative actions shown in the dropdown menu */
|
|
2748
|
+
actions: CwButtonSplitAction[];
|
|
2749
|
+
/** Fired when a menu item is chosen */
|
|
2750
|
+
onSelect: (key: string) => void;
|
|
2751
|
+
/** Shared visual style for both parts. @default 'solid' */
|
|
2752
|
+
variant?: "solid" | "outline";
|
|
2753
|
+
/** Shared color theme for both parts. @default 'primary' */
|
|
2754
|
+
color?: "primary" | "danger" | "neutral";
|
|
2755
|
+
/** Shared size for both parts. @default 'medium' */
|
|
2756
|
+
size?: "small" | "medium" | "large";
|
|
2757
|
+
/** Disables both parts */
|
|
2758
|
+
disabled?: boolean;
|
|
2759
|
+
/** Menu alignment relative to the control. @default 'bottom-end' */
|
|
2760
|
+
placement?: "bottom-start" | "bottom-end";
|
|
2761
|
+
"data-testid"?: string;
|
|
2762
|
+
}
|
|
2763
|
+
/**
|
|
2764
|
+
* CwButtonSplit - A primary action joined to a dropdown of alternative actions.
|
|
2765
|
+
*
|
|
2766
|
+
* Composes a main {@link CwButton} with a {@link CwPopoverButton} chevron whose
|
|
2767
|
+
* panel holds a vertical menu of alternatives (rendered as `variant="ghost"` rows).
|
|
2768
|
+
* Both parts share variant, color and size and read as one joined control.
|
|
2769
|
+
*
|
|
2770
|
+
* @example
|
|
2771
|
+
* <CwButtonSplit
|
|
2772
|
+
* text="Save"
|
|
2773
|
+
* icon="save"
|
|
2774
|
+
* onClick={handleSave}
|
|
2775
|
+
* actions={[
|
|
2776
|
+
* { key: "saveAs", label: "Save as…", icon: "copy" },
|
|
2777
|
+
* { key: "saveAndClose", label: "Save and close" },
|
|
2778
|
+
* ]}
|
|
2779
|
+
* onSelect={handleSelect}
|
|
2780
|
+
* />
|
|
2781
|
+
*/
|
|
2782
|
+
declare function CwButtonSplit({ text, icon, onClick, actions, onSelect, variant, color, size, disabled, placement, "data-testid": dataTestId, }: CwButtonSplitProps): React__default.JSX.Element;
|
|
2783
|
+
|
|
2784
|
+
interface CwButtonSwitchOption {
|
|
2785
|
+
/** Value sent to onChange */
|
|
2786
|
+
value: string;
|
|
2787
|
+
/** Text displayed on the segment */
|
|
2788
|
+
label: string;
|
|
2789
|
+
/** Optional cwi icon name */
|
|
2790
|
+
icon?: string;
|
|
2791
|
+
/** Disables this specific segment */
|
|
2792
|
+
disabled?: boolean;
|
|
2793
|
+
}
|
|
2794
|
+
interface CwButtonSwitchProps {
|
|
2795
|
+
/** Options rendered as joined segments */
|
|
2796
|
+
options: CwButtonSwitchOption[];
|
|
2797
|
+
/** Currently selected value */
|
|
2798
|
+
value: string;
|
|
2799
|
+
/** Callback when the selection changes */
|
|
2800
|
+
onChange: (value: string) => void;
|
|
2801
|
+
/** Segment size */
|
|
2802
|
+
size?: "small" | "medium" | "large";
|
|
2803
|
+
/** Shared color theme for every segment */
|
|
2804
|
+
color?: "primary" | "danger" | "neutral";
|
|
2805
|
+
/** Render only each option's icon (label becomes the tooltip + accessible name). Every option must have an `icon`. */
|
|
2806
|
+
iconOnly?: boolean;
|
|
2807
|
+
/**
|
|
2808
|
+
* Orientation of the joined strip: "row" (default, horizontal) or "column" (vertical,
|
|
2809
|
+
* stacked full-width segments). Only orientation is exposed because the segments are joined
|
|
2810
|
+
* (no gap), so gap/align/justify are not meaningful.
|
|
2811
|
+
*/
|
|
2812
|
+
direction?: "row" | "column";
|
|
2813
|
+
/** Disables every segment */
|
|
2814
|
+
disabled?: boolean;
|
|
2815
|
+
/** Accessible name for the radiogroup (there is no visible label on this inline control). */
|
|
2816
|
+
"aria-label"?: string;
|
|
2817
|
+
/** Accessible name for the radiogroup (there is no visible label on this inline control). */
|
|
2818
|
+
"aria-labelledby"?: string;
|
|
2819
|
+
"data-testid"?: string;
|
|
2820
|
+
}
|
|
2821
|
+
/**
|
|
2822
|
+
* CwButtonSwitch - Segmented single-select control: a strip of joined CwButtons.
|
|
2823
|
+
*
|
|
2824
|
+
* The selected segment renders `solid`, the others `outline`, both sharing the `color`
|
|
2825
|
+
* theme (`primary` default, `danger`, or `neutral`). It is a proper ARIA radiogroup with
|
|
2826
|
+
* roving tabindex (one tab stop) and arrow-key navigation, provided by
|
|
2827
|
+
* {@link useRovingSingleSelect}. Use for 2–3 mutually-exclusive options that benefit from
|
|
2828
|
+
* being shown side by side; for a longer list use CwRadioGroup.
|
|
2829
|
+
*
|
|
2830
|
+
* `direction="column"` renders the strip vertically (stacked, full-width segments) instead of
|
|
2831
|
+
* the default horizontal `row`; arrow-key navigation handles both orientations.
|
|
2832
|
+
*
|
|
2833
|
+
* Set `iconOnly` to render just each option's icon; the option's `label` is still required
|
|
2834
|
+
* and is passed as the segment title, so it becomes the tooltip and the accessible name.
|
|
2835
|
+
*
|
|
2836
|
+
* It is an inline control with no form label — if a caption is needed, place it next to the
|
|
2837
|
+
* control at the call site, and pass `aria-label` (or `aria-labelledby`) to name the radiogroup
|
|
2838
|
+
* for screen readers.
|
|
2839
|
+
*
|
|
2840
|
+
* @example
|
|
2841
|
+
* <CwButtonSwitch
|
|
2842
|
+
* options={[{ value: "list", label: "List", icon: "list" }, { value: "grid", label: "Grid", icon: "grid" }]}
|
|
2843
|
+
* value={view}
|
|
2844
|
+
* onChange={setView}
|
|
2845
|
+
* />
|
|
2846
|
+
*/
|
|
2847
|
+
declare function CwButtonSwitch({ options, value, onChange, size, color, iconOnly, direction, disabled, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "data-testid": dataTestId, }: CwButtonSwitchProps): React$1.JSX.Element;
|
|
2848
|
+
|
|
2643
2849
|
/**
|
|
2644
2850
|
* Props for legacy icon button wrappers
|
|
2645
2851
|
* @deprecated These wrappers exist for backward compatibility.
|
|
@@ -2656,29 +2862,29 @@ interface cw_btnProps extends Omit<CwButtonProps, 'variant' | 'icon' | 'color'>
|
|
|
2656
2862
|
* Save button wrapper (6 uses pending delete)
|
|
2657
2863
|
* @deprecated Use <CwButton variant="icon" icon="save" onClick={...} /> instead
|
|
2658
2864
|
*/
|
|
2659
|
-
declare function CwBtnSave({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps):
|
|
2865
|
+
declare function CwBtnSave({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): React$1.JSX.Element;
|
|
2660
2866
|
/**
|
|
2661
2867
|
* Edit button wrapper (5 uses pending delete)
|
|
2662
2868
|
* @deprecated Use <CwButton variant="icon" icon="edit" onClick={...} /> instead
|
|
2663
2869
|
*/
|
|
2664
|
-
declare function CwBtnEdit({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps):
|
|
2870
|
+
declare function CwBtnEdit({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): React$1.JSX.Element;
|
|
2665
2871
|
/**
|
|
2666
2872
|
* Delete button wrapper (4 uses pending delete)
|
|
2667
2873
|
* @deprecated Use <CwButton variant="icon" icon="delete" color="danger" onClick={...} /> instead
|
|
2668
2874
|
*/
|
|
2669
|
-
declare function CwBtnDelete({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps):
|
|
2875
|
+
declare function CwBtnDelete({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): React$1.JSX.Element;
|
|
2670
2876
|
/**
|
|
2671
2877
|
* Approve button wrapper.
|
|
2672
2878
|
* DO NOT DELETE — used by Operon (lib pinned at ^1.0.9, currently dormant).
|
|
2673
2879
|
* @deprecated Use <CwButton variant="icon" icon="check-circle" onClick={...} /> instead
|
|
2674
2880
|
*/
|
|
2675
|
-
declare function CwBtnApprove({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps):
|
|
2881
|
+
declare function CwBtnApprove({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): React$1.JSX.Element;
|
|
2676
2882
|
/**
|
|
2677
2883
|
* Cancel button wrapper.
|
|
2678
2884
|
* DO NOT DELETE — used by Operon (lib pinned at ^1.0.9, currently dormant).
|
|
2679
2885
|
* @deprecated Use <CwButton variant="icon" icon="cancel" color="danger" onClick={...} /> instead
|
|
2680
2886
|
*/
|
|
2681
|
-
declare function CwBtnCancel({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps):
|
|
2887
|
+
declare function CwBtnCancel({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): React$1.JSX.Element;
|
|
2682
2888
|
|
|
2683
2889
|
type DateMatcher$4 = Matcher;
|
|
2684
2890
|
interface CwDatePickerProps {
|
|
@@ -2732,7 +2938,7 @@ interface CwDatePickerProps {
|
|
|
2732
2938
|
*/
|
|
2733
2939
|
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
2734
2940
|
}
|
|
2735
|
-
declare function CwDatePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, yearRangeStart, yearRangeEnd, feedback, }: Readonly<CwDatePickerProps>):
|
|
2941
|
+
declare function CwDatePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, yearRangeStart, yearRangeEnd, feedback, }: Readonly<CwDatePickerProps>): React__default.JSX.Element;
|
|
2736
2942
|
|
|
2737
2943
|
interface DateRangePreset {
|
|
2738
2944
|
key: string;
|
|
@@ -2802,7 +3008,7 @@ interface CwDateRangePickerProps {
|
|
|
2802
3008
|
*/
|
|
2803
3009
|
customPresets?: DateRangePreset[];
|
|
2804
3010
|
}
|
|
2805
|
-
declare function CwDateRangePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, maxRangeDays, defaultMonth, labelProps, alignProps, placeholderFrom, placeholderTo, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showPresets, presetKeys, customPresets, }: Readonly<CwDateRangePickerProps>):
|
|
3011
|
+
declare function CwDateRangePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, maxRangeDays, defaultMonth, labelProps, alignProps, placeholderFrom, placeholderTo, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showPresets, presetKeys, customPresets, }: Readonly<CwDateRangePickerProps>): React$1.JSX.Element;
|
|
2806
3012
|
|
|
2807
3013
|
interface CwDateTimePickerProps {
|
|
2808
3014
|
/** Current selected datetime */
|
|
@@ -2852,7 +3058,7 @@ interface CwDateTimePickerProps {
|
|
|
2852
3058
|
/** Numeric timezone offset in hours (e.g., 1, 5.5, -3) */
|
|
2853
3059
|
timezoneOffset?: number;
|
|
2854
3060
|
}
|
|
2855
|
-
declare function CwDateTimePicker({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, nowLabel, locale, timezoneOffset, }: Readonly<CwDateTimePickerProps>):
|
|
3061
|
+
declare function CwDateTimePicker({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, nowLabel, locale, timezoneOffset, }: Readonly<CwDateTimePickerProps>): React$1.JSX.Element;
|
|
2856
3062
|
|
|
2857
3063
|
type DateMatcher$2 = Matcher;
|
|
2858
3064
|
interface CwDateTimePickerCompactProps {
|
|
@@ -2907,7 +3113,7 @@ interface CwDateTimePickerCompactProps {
|
|
|
2907
3113
|
/** Last year shown in the year dropdown. Defaults to `maxDateTime`'s year, or 5 years after today when not set. */
|
|
2908
3114
|
yearRangeEnd?: number;
|
|
2909
3115
|
}
|
|
2910
|
-
declare function CwDateTimePickerCompact({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, nowLabel, timeLabel, locale, yearRangeStart, yearRangeEnd, }: Readonly<CwDateTimePickerCompactProps>):
|
|
3116
|
+
declare function CwDateTimePickerCompact({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, nowLabel, timeLabel, locale, yearRangeStart, yearRangeEnd, }: Readonly<CwDateTimePickerCompactProps>): React__default.JSX.Element;
|
|
2911
3117
|
|
|
2912
3118
|
interface CwTimePickerProps {
|
|
2913
3119
|
/** Current selected time in format "HH:mm" (24h format) */
|
|
@@ -2943,7 +3149,7 @@ interface CwTimePickerProps {
|
|
|
2943
3149
|
*/
|
|
2944
3150
|
useNative?: boolean;
|
|
2945
3151
|
}
|
|
2946
|
-
declare function CwTimePicker({ value, onChange, interval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, useNative, }: CwTimePickerProps):
|
|
3152
|
+
declare function CwTimePicker({ value, onChange, interval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, useNative, }: CwTimePickerProps): React__default.JSX.Element;
|
|
2947
3153
|
|
|
2948
3154
|
type DateMatcher$1 = Matcher;
|
|
2949
3155
|
interface CwDatePickerTemporalProps {
|
|
@@ -2994,7 +3200,7 @@ interface CwDatePickerTemporalProps {
|
|
|
2994
3200
|
/** Feedback messages shown below the input */
|
|
2995
3201
|
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
2996
3202
|
}
|
|
2997
|
-
declare function CwDatePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, yearRangeStart, yearRangeEnd, feedback, }: Readonly<CwDatePickerTemporalProps>):
|
|
3203
|
+
declare function CwDatePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, yearRangeStart, yearRangeEnd, feedback, }: Readonly<CwDatePickerTemporalProps>): React__default.JSX.Element;
|
|
2998
3204
|
|
|
2999
3205
|
interface CwDateTimePickerTemporalProps {
|
|
3000
3206
|
/** Current selected datetime (local wall-clock, no timezone) */
|
|
@@ -3042,7 +3248,7 @@ interface CwDateTimePickerTemporalProps {
|
|
|
3042
3248
|
/** Locale for date formatting and calendar strings (default: enGB) */
|
|
3043
3249
|
locale?: DayPickerLocale;
|
|
3044
3250
|
}
|
|
3045
|
-
declare function CwDateTimePickerTemporal({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, nowLabel, locale, }: Readonly<CwDateTimePickerTemporalProps>):
|
|
3251
|
+
declare function CwDateTimePickerTemporal({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, nowLabel, locale, }: Readonly<CwDateTimePickerTemporalProps>): React$1.JSX.Element;
|
|
3046
3252
|
|
|
3047
3253
|
interface DateRangePresetTemporal {
|
|
3048
3254
|
key: string;
|
|
@@ -3127,7 +3333,7 @@ interface CwDateRangePickerTemporalProps {
|
|
|
3127
3333
|
*/
|
|
3128
3334
|
customPresets?: DateRangePresetTemporal[];
|
|
3129
3335
|
}
|
|
3130
|
-
declare function CwDateRangePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, maxRangeDays, defaultMonth, labelProps, alignProps, placeholderFrom, placeholderTo, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, locale, yearRangeStart, yearRangeEnd, showPresets, presetKeys, customPresets, }: Readonly<CwDateRangePickerTemporalProps>):
|
|
3336
|
+
declare function CwDateRangePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, maxRangeDays, defaultMonth, labelProps, alignProps, placeholderFrom, placeholderTo, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, locale, yearRangeStart, yearRangeEnd, showPresets, presetKeys, customPresets, }: Readonly<CwDateRangePickerTemporalProps>): React__default.JSX.Element;
|
|
3131
3337
|
|
|
3132
3338
|
declare class cblEvent {
|
|
3133
3339
|
id: string;
|
|
@@ -3229,7 +3435,7 @@ declare class CwSuperScheduler extends React$1.Component<SuperSchedulerProps$1,
|
|
|
3229
3435
|
checkIfSlotAvailable(array: Array<cblEvent>, event: cblEvent): boolean;
|
|
3230
3436
|
handleOnClickContextMenuResource: (date: Date, resource: Resource, key: string, schedulerId: string) => void;
|
|
3231
3437
|
dateUTCString(date: any): any;
|
|
3232
|
-
render():
|
|
3438
|
+
render(): React$1.JSX.Element;
|
|
3233
3439
|
}
|
|
3234
3440
|
declare class CblDragAndDrop$1 {
|
|
3235
3441
|
fromId: string | null;
|
|
@@ -3327,7 +3533,7 @@ declare class CwScheduler extends Component<CwSchedulerProps, State> {
|
|
|
3327
3533
|
getNewResources: (_nextProps: CwSchedulerProps, dayPx: number) => Resource[];
|
|
3328
3534
|
handleOnClickContextMenuResourceScheduler: (_clickEvent: any, _resource: Resource) => void;
|
|
3329
3535
|
handleCrewPinning: (resource: Resource, text: string) => void;
|
|
3330
|
-
render():
|
|
3536
|
+
render(): React$1.JSX.Element;
|
|
3331
3537
|
}
|
|
3332
3538
|
|
|
3333
3539
|
declare class UiEvent {
|
|
@@ -3447,7 +3653,7 @@ interface SchedulerProps<T extends RowHeaderDm, P extends SchedulerEventDm> {
|
|
|
3447
3653
|
/** Caps the visible event box height (rem). Passed to EventComp; defaults to 1.5. */
|
|
3448
3654
|
maxEventHeightRem?: number;
|
|
3449
3655
|
}
|
|
3450
|
-
declare const Scheduler: <T extends RowHeaderDm, P extends SchedulerEventDm>(props: SchedulerProps<T, P>) =>
|
|
3656
|
+
declare const Scheduler: <T extends RowHeaderDm, P extends SchedulerEventDm>(props: SchedulerProps<T, P>) => React__default.JSX.Element;
|
|
3451
3657
|
|
|
3452
3658
|
interface SchedulerRowProps<T extends RowHeaderDm, P extends SchedulerEventDm> {
|
|
3453
3659
|
events: P[];
|
|
@@ -3513,7 +3719,7 @@ interface SuperSchedulerProps<T extends PinRowHeaderProps> {
|
|
|
3513
3719
|
rowHeaderWidth?: number | string;
|
|
3514
3720
|
maxEventHeightRem?: number;
|
|
3515
3721
|
}
|
|
3516
|
-
declare const SuperScheduler: <T extends PinRowHeaderProps>({ id, state, header, rows, events, headerColumnComp, pinnedOrderCategory, unPinnedOrderCategory, backgroundEvents, indicatorRows, contextMenuItems, onEvent, rowHeightRem, rowHeaderWidth, maxEventHeightRem, EventComp, }: SuperSchedulerProps<T>) =>
|
|
3722
|
+
declare const SuperScheduler: <T extends PinRowHeaderProps>({ id, state, header, rows, events, headerColumnComp, pinnedOrderCategory, unPinnedOrderCategory, backgroundEvents, indicatorRows, contextMenuItems, onEvent, rowHeightRem, rowHeaderWidth, maxEventHeightRem, EventComp, }: SuperSchedulerProps<T>) => React$1.JSX.Element;
|
|
3517
3723
|
|
|
3518
3724
|
declare class OnPinRow implements UiEvent {
|
|
3519
3725
|
readonly id: string;
|
|
@@ -3698,5 +3904,5 @@ declare class OnClickContextMenu implements UiEvent {
|
|
|
3698
3904
|
constructor(id: string, clickedMenu: string);
|
|
3699
3905
|
}
|
|
3700
3906
|
|
|
3701
|
-
export { CblDragAndDrop$1 as CblDragAndDrop, CwAccordionContainer, CwAlign, CwAnchoredMenu, CwBtnApprove, CwBtnCancel, CwBtnDelete, CwBtnEdit, CwBtnSave, CwButton, CwCard, CwCardList, CwCheck, CwCheckbox, CwCheckboxGroup, CwChip, CwColorPicker, CwConfirmationPopup, CwContextMenu, CwDatePicker, CwDatePickerTemporal, CwDateRangePicker, CwDateRangePickerTemporal, CwDateTimePicker, CwDateTimePickerCompact, CwDateTimePickerTemporal, CwDialog, CwDigit, CwDisplayMessage, CwDropdown, CwDropdownFilter, CwExpandable, CwFileUpload, CwFileUploadMultiple, CwFindAirport, CwFindCrewmember, CwGenericTooltip, CwHeadingMain, CwHeadingSecond, CwIcon, CwImageArea, CwImageGallery, CwImageZoom, CwInput, CwInputColor, CwInputDateText, CwInputDatetime, CwInputImage, CwInputNumber, CwInputPhone, CwInputText, CwKeyValueList, CwLabel, CwLoading, CwLoadingSmall, CwMasterDetail, CwMessage, CwMessageManager, CwMessageType, CwModal, CwModalHover, CwModalReportFunctional, CwMultiFilter, CwMultiFilterTag, CwNote, CwOption, CwPopoverButton, CwReportModal, CwScheduler, CwSearchAsync, CwSearchInput, CwSelect, CwSelectList, CwSelectListItems, 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, eventIsVisible, filterVisibleEvents, getDefaultDivisions, getEventSizes, getPresetsByKeysTemporal, itemsToMultiFilterTags, useCwMessage, useSortableList, useSortableTable, useTooltipConstraint };
|
|
3702
|
-
export type { BackgroundEventDm, CardChip, ChipColorScheme, ChipVariant, Column$1 as Column, ConfirmationPopupProps, CwAlignProps, 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, 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 };
|
|
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, CwFileUpload, CwFileUploadMultiple, CwFindAirport, CwFindCrewmember, CwGenericTooltip, CwHeadingMain, CwHeadingSecond, CwIcon, CwImageArea, CwImageGallery, CwImageZoom, CwInput, CwInputColor, CwInputDateText, CwInputDatetime, CwInputImage, CwInputNumber, CwInputPhone, CwInputText, CwKeyValueList, CwLabel, CwLoading, CwLoadingSmall, CwMasterDetail, CwMessage, CwMessageManager, CwMessageType, CwModal, CwModalHover, CwModalReportFunctional, CwMultiFilter, CwMultiFilterTag, CwNote, CwOption, CwPopoverButton, CwRadioGroup, CwReportModal, CwScheduler, CwSearchAsync, CwSearchInput, CwSelect, CwSelectList, CwSelectListItems, 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, eventIsVisible, filterVisibleEvents, getDefaultDivisions, getEventSizes, getPresetsByKeysTemporal, itemsToMultiFilterTags, useCwMessage, useSortableList, useSortableTable, useTooltipConstraint };
|
|
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 };
|