@cwellt_software/cwellt-reactjs-lib 1.4.8 → 1.4.9
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 +100 -303
- package/dist/index.css +2 -2
- package/dist/index.d.ts +24 -56
- package/dist/index.es.js +99 -301
- package/dist/src/common/hooks/useDropdownPortal.d.ts +1 -0
- package/dist/src/common/hooks/useDropdownPortal.d.ts.map +1 -1
- package/dist/src/components/control/action/buttons/CwButtons.d.ts +15 -3
- package/dist/src/components/control/action/buttons/CwButtons.d.ts.map +1 -1
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts.map +1 -1
- package/dist/src/components/control/choice/select/CwSelect.d.ts +7 -0
- package/dist/src/components/control/choice/select/CwSelect.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts.map +1 -1
- package/dist/src/components/layout/modal/legacy/cw_modal.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -4
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -554,16 +554,6 @@ interface CwDialogProps extends HTMLProps<PropsWithChildren<HTMLDialogElement>>
|
|
|
554
554
|
}
|
|
555
555
|
declare const CwDialog: FC<CwDialogProps>;
|
|
556
556
|
|
|
557
|
-
declare class CwDialogManager {
|
|
558
|
-
private static openDialogs;
|
|
559
|
-
static OpenDialog(id: string, props: CwDialogProps): void;
|
|
560
|
-
static CloseDialog(id: string): void;
|
|
561
|
-
static CloseAllDialogs(): void;
|
|
562
|
-
static CloseLastDialog(): void;
|
|
563
|
-
static CloseFirstDialog(): void;
|
|
564
|
-
static GetOpenDialogCount(): number;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
557
|
interface CwAlignProps extends Omit<PropsWithChildren<HTMLProps<HTMLDivElement>>, "className" | "style"> {
|
|
568
558
|
alignContent?: CSS.Property.AlignContent;
|
|
569
559
|
alignItems?: CSS.Property.AlignItems;
|
|
@@ -1684,47 +1674,6 @@ interface CwTextAreaProps extends Omit<DetailedHTMLProps<TextareaHTMLAttributes<
|
|
|
1684
1674
|
}
|
|
1685
1675
|
declare function CwTextArea(props: CwTextAreaProps): react_jsx_runtime.JSX.Element;
|
|
1686
1676
|
|
|
1687
|
-
interface CwInputDateProps extends Omit<HTMLProps<HTMLInputElement>, "className" | "type"> {
|
|
1688
|
-
/** Props to define alignment and size; undefined == column
|
|
1689
|
-
* @example alignProps={{_direction:"row"}} */
|
|
1690
|
-
alignProps?: CwAlignProps;
|
|
1691
|
-
/** Props of the button; undefined == no button
|
|
1692
|
-
* @example buttonProps={{children:"Ok"}} */
|
|
1693
|
-
buttonProps?: CwButtonProps;
|
|
1694
|
-
/** Props of the label; undefined == no label
|
|
1695
|
-
* @example labelProps={{children:"Your name please:"}} */
|
|
1696
|
-
labelProps?: CwLabelProps;
|
|
1697
|
-
/** Props of the icon; undefined == no icon
|
|
1698
|
-
* @example iconProps={{_id:"phone"}} */
|
|
1699
|
-
iconProps?: CwIconProps;
|
|
1700
|
-
}
|
|
1701
|
-
/**
|
|
1702
|
-
* Input for entering a string of text.
|
|
1703
|
-
* @remarks
|
|
1704
|
-
* ```txt
|
|
1705
|
-
* CwIcon CwLabel input type=date CwButton
|
|
1706
|
-
* ↑ ↑ ↑ ↑
|
|
1707
|
-
* ╭────────────────────╮╭════╮
|
|
1708
|
-
* ⌂ Birthdate │ 0000 / 00 / 00 │║ Ok ║
|
|
1709
|
-
* ╰────────────────────╯╰════╯
|
|
1710
|
-
* ```
|
|
1711
|
-
* @example
|
|
1712
|
-
* ```tsx
|
|
1713
|
-
* <CwInputDate
|
|
1714
|
-
* iconProps={{ iconId: "Birthdate" }}
|
|
1715
|
-
* labelProps={{ children: "Name", width: "100px" }}
|
|
1716
|
-
* buttonProps={{ children: "Ok", onClick:()=>{alert("happy happy joy joy")} }}
|
|
1717
|
-
* />
|
|
1718
|
-
* ```
|
|
1719
|
-
*/
|
|
1720
|
-
declare function CwInputDate(props: CwInputDateProps): react_jsx_runtime.JSX.Element;
|
|
1721
|
-
|
|
1722
|
-
interface CwInputDatePickerProps {
|
|
1723
|
-
value: string;
|
|
1724
|
-
onChange?: (value: string) => void;
|
|
1725
|
-
}
|
|
1726
|
-
declare const CwInputDatePicker: FC<CwInputDatePickerProps>;
|
|
1727
|
-
|
|
1728
1677
|
interface CwInputDatetimeProps extends Omit<HTMLProps<HTMLInputElement>, "className" | "type"> {
|
|
1729
1678
|
/** Props to define alignment and size; undefined == column
|
|
1730
1679
|
* @example alignProps={{_direction:"row"}} */
|
|
@@ -2036,6 +1985,13 @@ interface CwSelectProps extends DetailedHTMLProps<SelectHTMLAttributes<HTMLSelec
|
|
|
2036
1985
|
* @example feedback={[{ type: "neutral", message: "Select a breed" }, { type: "danger", message: "This field is required" }]}
|
|
2037
1986
|
*/
|
|
2038
1987
|
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
1988
|
+
/**
|
|
1989
|
+
* Convenience callback that receives the selected value as a plain string,
|
|
1990
|
+
* avoiding the React synthetic-event pooling issue where `e.currentTarget`
|
|
1991
|
+
* becomes `null` inside callback-style state updaters.
|
|
1992
|
+
* @example handleChange={(value) => setForm(prev => ({ ...prev, id: value }))}
|
|
1993
|
+
*/
|
|
1994
|
+
handleChange?: (value: string) => void;
|
|
2039
1995
|
}
|
|
2040
1996
|
/**
|
|
2041
1997
|
* Input for selecting an option from a list
|
|
@@ -2597,20 +2553,32 @@ interface cw_btnProps extends Omit<CwButtonProps, 'variant' | 'icon' | 'color'>
|
|
|
2597
2553
|
cw_btn_disabled?: boolean;
|
|
2598
2554
|
}
|
|
2599
2555
|
/**
|
|
2600
|
-
* Save button wrapper
|
|
2556
|
+
* Save button wrapper (6 uses pending delete)
|
|
2601
2557
|
* @deprecated Use <CwButton variant="icon" icon="save" onClick={...} /> instead
|
|
2602
2558
|
*/
|
|
2603
2559
|
declare function CwBtnSave({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): react_jsx_runtime.JSX.Element;
|
|
2604
2560
|
/**
|
|
2605
|
-
* Edit button wrapper
|
|
2561
|
+
* Edit button wrapper (5 uses pending delete)
|
|
2606
2562
|
* @deprecated Use <CwButton variant="icon" icon="edit" onClick={...} /> instead
|
|
2607
2563
|
*/
|
|
2608
2564
|
declare function CwBtnEdit({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): react_jsx_runtime.JSX.Element;
|
|
2609
2565
|
/**
|
|
2610
|
-
* Delete button wrapper
|
|
2566
|
+
* Delete button wrapper (4 uses pending delete)
|
|
2611
2567
|
* @deprecated Use <CwButton variant="icon" icon="delete" color="danger" onClick={...} /> instead
|
|
2612
2568
|
*/
|
|
2613
2569
|
declare function CwBtnDelete({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): react_jsx_runtime.JSX.Element;
|
|
2570
|
+
/**
|
|
2571
|
+
* Approve button wrapper.
|
|
2572
|
+
* DO NOT DELETE — used by Operon (lib pinned at ^1.0.9, currently dormant).
|
|
2573
|
+
* @deprecated Use <CwButton variant="icon" icon="check-circle" onClick={...} /> instead
|
|
2574
|
+
*/
|
|
2575
|
+
declare function CwBtnApprove({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): react_jsx_runtime.JSX.Element;
|
|
2576
|
+
/**
|
|
2577
|
+
* Cancel button wrapper.
|
|
2578
|
+
* DO NOT DELETE — used by Operon (lib pinned at ^1.0.9, currently dormant).
|
|
2579
|
+
* @deprecated Use <CwButton variant="icon" icon="cancel" color="danger" onClick={...} /> instead
|
|
2580
|
+
*/
|
|
2581
|
+
declare function CwBtnCancel({ cw_btnOnclick, cw_btn_disabled, onClick, disabled, ...rest }: cw_btnProps): react_jsx_runtime.JSX.Element;
|
|
2614
2582
|
|
|
2615
2583
|
type DateMatcher$3 = Matcher;
|
|
2616
2584
|
interface CwDatePickerProps {
|
|
@@ -3478,5 +3446,5 @@ declare class OnClickContextMenu implements UiEvent {
|
|
|
3478
3446
|
constructor(id: string, clickedMenu: string);
|
|
3479
3447
|
}
|
|
3480
3448
|
|
|
3481
|
-
export { CblDragAndDrop$1 as CblDragAndDrop, CwAccordionContainer, CwAlign, CwAnchoredMenu, CwBtnDelete, CwBtnEdit, CwBtnSave, CwButton, CwCard, CwCardList, CwCheck, CwCheckbox, CwCheckboxGroup, CwChip, CwColorPicker, CwConfirmationPopup, CwContextMenu, CwDatePicker, CwDatePickerTemporal, CwDateRangePicker, CwDateTimePicker, CwDateTimePickerCompact, CwDialog,
|
|
3482
|
-
export type { BackgroundEventDm, CardChip, ChipColorScheme, ChipVariant, Column$1 as Column, ConfirmationPopupProps, CwAlignProps, CwCardListProps, CwCardProps, CwChipProps, CwDialogProps, CwDropdownOption, CwDropdownProps, CwExpandableProps, CwGroupLayoutProps, CwImageAreaMethods, CwImageAreaProps,
|
|
3449
|
+
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, CwDateTimePicker, CwDateTimePickerCompact, 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, 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, PinRowHeader, Resource, Scheduler, SchedulerEvent, SuperScheduler, TooltipConstraintContext, UiEvent, Weekdays, cblEvent, eventIsVisible, filterVisibleEvents, getDefaultDivisions, getEventSizes, itemsToMultiFilterTags, useCwMessage, useSortableList, useSortableTable, useTooltipConstraint };
|
|
3450
|
+
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, CwSelectListProps, CwSortableListProps, CwSortableTableProps, CwTableGroupedData, CwTableGroupedData_Group, CwTableGroupedData_Row, CwTableGroupedProps, CwTagSelectorOption, CwTagSelectorProps, CwTextAreaProps, CwTreeNode, DataItem, DateRangeValue, ICwMultiFilterTag, ImageItem, IndicatorRowDm, MenuOption, OnEvent, PinRowHeaderProps, RowHeaderDm, RowHeaderProps, SchedulerEventDm, SchedulerEventState, SchedulerRowProps, SchedulerState, ServerSideTableState, SortableColumn, SortableTableDragState, SuperSchedulerProps, Tab, UseSortableTableReturn, Weekday, ZoomImageItem, cblEventCompProps, resourceCompProps2 };
|