@cwellt_software/cwellt-reactjs-lib 1.4.4 → 1.4.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/content/icons/new-cw-icons/NewCwIcons.json +1 -204
- package/dist/content/icons/new-cw-icons/css/new-cw-icons.css +9 -1
- package/dist/content/icons/new-cw-icons/fonts/NewCwIcons.woff +0 -0
- package/dist/index.cjs.js +2809 -738
- package/dist/index.css +3 -1
- package/dist/index.d.ts +790 -33
- package/dist/index.es.js +2797 -739
- package/dist/src/common/functions/collections.d.ts.map +1 -1
- package/dist/src/common/functions/colorManipulation.d.ts.map +1 -1
- package/dist/src/common/functions/dsl/UiEventDSL.d.ts +1 -1
- package/dist/src/common/functions/useSingleAndDoubleClicks.d.ts.map +1 -1
- package/dist/src/common/hooks/useDropdownPortal.d.ts +86 -0
- package/dist/src/common/hooks/useDropdownPortal.d.ts.map +1 -0
- package/dist/src/common/interfaces/CwFormTypes.d.ts +5 -0
- package/dist/src/common/interfaces/CwFormTypes.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwSearch.d.ts +22 -0
- package/dist/src/components/control/action/search/CwSearch.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheck.d.ts +15 -0
- package/dist/src/components/control/choice/checkbox/CwCheck.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwCheckbox.d.ts +4 -0
- package/dist/src/components/control/choice/checkbox/CwCheckbox.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts +35 -0
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts +35 -0
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.d.ts.map +1 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts +6 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts.map +1 -1
- package/dist/src/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.d.ts +1 -0
- package/dist/src/components/control/choice/multi-filter/components/tag/CwMultiFilterTag.d.ts.map +1 -1
- package/dist/src/components/control/choice/option/CwOption.d.ts +3 -1
- package/dist/src/components/control/choice/option/CwOption.d.ts.map +1 -1
- package/dist/src/components/control/choice/select/CwDropdown.d.ts +56 -0
- package/dist/src/components/control/choice/select/CwDropdown.d.ts.map +1 -0
- package/dist/src/components/control/choice/select/CwSelect.d.ts +7 -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 +68 -0
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.d.ts.map +1 -0
- package/dist/src/components/control/choice/toggle/CwToggle.d.ts +1 -1
- package/dist/src/components/control/choice/toggle/CwToggle.d.ts.map +1 -1
- package/dist/src/components/control/input/color/CwInputColor.d.ts +30 -0
- package/dist/src/components/control/input/color/CwInputColor.d.ts.map +1 -1
- package/dist/src/components/control/input/date-picker/CwInputDatePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/date-picker/datePickerUtils.d.ts +38 -0
- package/dist/src/components/control/input/date-picker/datePickerUtils.d.ts.map +1 -0
- package/dist/src/components/control/input/date-text/CwInputDateText.d.ts +4 -4
- package/dist/src/components/control/input/date-text/CwInputDateText.d.ts.map +1 -1
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts +17 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts +10 -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 +48 -0
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.d.ts +8 -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 +8 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/datePickerHelpers.d.ts +20 -0
- package/dist/src/components/control/input/new-dates/datePickerHelpers.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/dateRangePresets.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/usePickerPopup.d.ts +23 -0
- package/dist/src/components/control/input/new-dates/usePickerPopup.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/utils/timezoneHelpers.d.ts +38 -0
- package/dist/src/components/control/input/new-dates/utils/timezoneHelpers.d.ts.map +1 -0
- package/dist/src/components/control/input/text/CwInputText.d.ts +7 -0
- package/dist/src/components/control/input/text/CwInputText.d.ts.map +1 -1
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts +6 -0
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts.map +1 -1
- package/dist/src/components/custom/find-airport/CwFindAirportComp.d.ts +37 -1
- package/dist/src/components/custom/find-airport/CwFindAirportComp.d.ts.map +1 -1
- package/dist/src/components/custom/find-crewmember/CwFindCrewmemberComp.d.ts +44 -0
- package/dist/src/components/custom/find-crewmember/CwFindCrewmemberComp.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler/CwSchedulerComp.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/CwSuperSchedulerComp.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/day_headers/MyDaysHeader.d.ts +0 -3
- package/dist/src/components/custom/scheduler/components/day_headers/MyDaysHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/scheduler_content_area/SchedulerContentArea.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/components/time_line/TimeLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/addMinutesToDateFromPx.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDates.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/getFormatedTimeForHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/getMonthHeaderData.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/dates/listOfDatesToWeeks.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisionType.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/divisions/calculateDivisions.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/filtering/filterEvents.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/filtering/filterResources.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/filtering/hasSameProperties.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/pixels/getHeightLineScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/pixels/getPixelsForEvent.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/pixels/heightScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/pixels/heightSchedulerPinned.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/doubleClickOnResource.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/onDragOver.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/state_handle/onDropEventToResource.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/strings/compareStrings.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/checkIfSlotAvailable.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/getEventsOfResource.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/getTimeHeaders.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/isAllowedToMove.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler/logic/ui/updateResourceVisibility.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.d.ts +4 -1
- package/dist/src/components/custom/scheduler-new/presentation/NewScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/SchedulerPresenter.d.ts.map +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/SchedulerHeader.d.ts +6 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/header/SchedulerHeader.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/row/BackgroundEvent.d.ts +1 -0
- 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/DefaultRowHeader.d.ts +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/DefaultRowHeader.d.ts.map +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/IndicatorRow.d.ts +18 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/IndicatorRow.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/row/SchedulerRow.d.ts +3 -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 -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/helpers.d.ts +0 -9
- package/dist/src/components/custom/scheduler-new/presentation/helpers.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/WeekendCalc.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/dateFromPercentage.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/eventIsVisible.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/filterVisibleEvents.d.ts +3 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/filterVisibleEvents.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDefaultDivisions.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getDivisions.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getEventSizes.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/getLinesByDivisions.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/isToday.d.ts +2 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/isToday.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/sortByCategoryAndTitle.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.d.ts +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/state/ui/SchedulerState.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts +1 -2
- package/dist/src/components/custom/super-scheduler/PinRowHeader.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts +3 -0
- package/dist/src/components/custom/super-scheduler/SuperScheduler.d.ts.map +1 -1
- package/dist/src/components/custom/super-scheduler/SuperSchedulerPresenter.d.ts.map +1 -1
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts +13 -0
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts.map +1 -1
- package/dist/src/components/display/data/table/CwTable.d.ts +4 -1
- package/dist/src/components/display/data/table/CwTable.d.ts.map +1 -1
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.d.ts +4 -1
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.d.ts.map +1 -1
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts +74 -0
- package/dist/src/components/display/data/table_sortable/CwSortableTable.d.ts.map +1 -0
- package/dist/src/components/display/data/table_sortable/useSortableTable.d.ts +42 -0
- package/dist/src/components/display/data/table_sortable/useSortableTable.d.ts.map +1 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltip.d.ts +25 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltip.d.ts.map +1 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltipManager.d.ts +19 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltipManager.d.ts.map +1 -0
- package/dist/src/components/display/text/message/CwMessage.d.ts +3 -2
- package/dist/src/components/display/text/message/CwMessage.d.ts.map +1 -1
- package/dist/src/components/display/text/note/CwNote.d.ts +1 -1
- package/dist/src/components/display/text/note/CwNote.d.ts.map +1 -1
- package/dist/src/components/display/text/tag/CwChip.d.ts +1 -1
- package/dist/src/components/display/text/tag/CwChip.d.ts.map +1 -1
- package/dist/src/components/layout/dialog/CwDialog.d.ts +2 -0
- package/dist/src/components/layout/dialog/CwDialog.d.ts.map +1 -1
- package/dist/src/components/layout/dialog/CwDialogManager.d.ts.map +1 -1
- package/dist/src/components/layout/list/sortable/CwSortableList.d.ts +2 -1
- package/dist/src/components/layout/list/sortable/CwSortableList.d.ts.map +1 -1
- package/dist/src/components/layout/master-detail/CwMasterDetail.d.ts +41 -0
- package/dist/src/components/layout/master-detail/CwMasterDetail.d.ts.map +1 -0
- 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 +0 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_report.d.ts.map +1 -1
- package/dist/src/components/layout/table/grouped/CwTableGrouped.d.ts +2 -0
- package/dist/src/components/layout/table/grouped/CwTableGrouped.d.ts.map +1 -1
- package/dist/src/components/layout/tabs/CwTabs.d.ts +2 -0
- package/dist/src/components/layout/tabs/CwTabs.d.ts.map +1 -1
- package/dist/src/dev/index.d.ts +5 -0
- package/dist/src/dev/index.d.ts.map +1 -0
- package/dist/src/dev/palette.d.ts +3 -0
- package/dist/src/dev/palette.d.ts.map +1 -0
- package/dist/src/dev/previews.d.ts +3 -0
- package/dist/src/dev/previews.d.ts.map +1 -0
- package/dist/src/dev/useInitial.d.ts +3 -0
- package/dist/src/dev/useInitial.d.ts.map +1 -0
- package/dist/src/index.d.ts +15 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/main.d.ts +2 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/playground/PlaygroundApp.d.ts +4 -0
- package/dist/src/playground/PlaygroundApp.d.ts.map +1 -0
- package/dist/src/playground/pages/ColorContrastPage.d.ts +3 -0
- package/dist/src/playground/pages/ColorContrastPage.d.ts.map +1 -0
- package/dist/src/playground/pages/DatePickerLocalePage.d.ts +3 -0
- package/dist/src/playground/pages/DatePickerLocalePage.d.ts.map +1 -0
- package/dist/src/playground/pages/DatePickerTemporalPage.d.ts +3 -0
- package/dist/src/playground/pages/DatePickerTemporalPage.d.ts.map +1 -0
- package/dist/src/playground/pages/SelectorsPage.d.ts +3 -0
- package/dist/src/playground/pages/SelectorsPage.d.ts.map +1 -0
- package/dist/src/playground/pages/TablePaginationPage.d.ts +3 -0
- package/dist/src/playground/pages/TablePaginationPage.d.ts.map +1 -0
- package/dist/src/playground/pages/TableServerSideComparePage.d.ts +3 -0
- package/dist/src/playground/pages/TableServerSideComparePage.d.ts.map +1 -0
- package/dist/test/components/control/input/date-picker/datePickerUtils.test.d.ts +2 -0
- package/dist/test/components/control/input/date-picker/datePickerUtils.test.d.ts.map +1 -0
- package/dist/test/components/control/input/new-dates/datePickerHelpers.test.d.ts +2 -0
- package/dist/test/components/control/input/new-dates/datePickerHelpers.test.d.ts.map +1 -0
- package/dist/test/components/control/input/new-dates/timezoneHelpers.test.d.ts +2 -0
- package/dist/test/components/control/input/new-dates/timezoneHelpers.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/header/getStartEnd.test.d.ts +2 -0
- package/dist/test/components/custom/new-scheduler/presentation/header/getStartEnd.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/dateFromPercentage.test.d.ts +2 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/dateFromPercentage.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/eventIsVisible.test.d.ts +2 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/eventIsVisible.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/filterVisibleEvents.test.d.ts +2 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/filterVisibleEvents.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/isToday.test.d.ts +2 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/isToday.test.d.ts.map +1 -0
- package/dist/test/components/custom/scheduler/getFormattedTimeForHeader.test.d.ts +2 -0
- package/dist/test/components/custom/scheduler/getFormattedTimeForHeader.test.d.ts.map +1 -0
- package/dist/test/vitest.setup.d.ts +2 -0
- package/dist/test/vitest.setup.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a date as DD.MM.YYYY (German locale).
|
|
3
|
+
*/
|
|
4
|
+
export declare function toGermanDate(dateString: string | Date): string;
|
|
5
|
+
/**
|
|
6
|
+
* Formats a date as YYYY-MM-DD (ISO).
|
|
7
|
+
*/
|
|
8
|
+
export declare function toISODate(dateString: string | Date): string;
|
|
9
|
+
/**
|
|
10
|
+
* Validates whether a string is a valid DD.MM.YYYY date.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isValidGermanDate(textDate: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Converts a DD.MM.YYYY string to YYYY-MM-DD, or null if invalid.
|
|
15
|
+
*/
|
|
16
|
+
export declare function germanDateToISO(textDate: string): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a DD.MM.YYYY string to a Date object, or null if invalid.
|
|
19
|
+
*/
|
|
20
|
+
export declare function germanDateToDate(textDate: string): Date | null;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the number of days in the month and the Monday-based
|
|
23
|
+
* weekday offset (0 = Monday) for the 1st of the month.
|
|
24
|
+
*/
|
|
25
|
+
export declare function computeCalendarGrid(internalDate: Date): {
|
|
26
|
+
daysInMonth: number;
|
|
27
|
+
startDay: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Returns true when the given day in the internalDate's month/year
|
|
31
|
+
* matches the selected ISO value string.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isSelectedDay(internalDate: Date, day: number, value: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Returns a new Date set to the 1st of the month offset by `direction` months.
|
|
36
|
+
*/
|
|
37
|
+
export declare function computeNextMonthDate(currentDate: Date, direction: number): Date;
|
|
38
|
+
//# sourceMappingURL=datePickerUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datePickerUtils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/date-picker/datePickerUtils.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAK9D;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAE3D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG/D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAI9D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,IAAI,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CASjG;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAOrF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAQ/E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CwButtonProps } from "
|
|
3
|
-
import { CwIconProps } from "
|
|
4
|
-
import { CwLabelProps } from "
|
|
5
|
-
import { CwAlignProps } from "
|
|
2
|
+
import { CwButtonProps } from "../../action/button/CwButton";
|
|
3
|
+
import { CwIconProps } from "../../../display/graphics/icon/CwIcon";
|
|
4
|
+
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
5
|
+
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
6
6
|
export interface CwInputDateTextProps extends Omit<React.HTMLProps<HTMLInputElement>, "className" | "type" | "placeholder" | "defaultValue" | "onChange"> {
|
|
7
7
|
/** "DD.MM.YYYY" by default */
|
|
8
8
|
dateFormat?: "MM/DD/YYYY" | "DD/MM/YYYY" | "DD.MM.YYYY" | "YYYY-MM-DD";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwInputDateText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/date-text/CwInputDateText.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CwInputDateText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/date-text/CwInputDateText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAY,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAU,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA+CtE,MAAM,WAAW,oBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,CAAC;IACnH,8BAA8B;IAC9B,UAAU,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACvE,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CA2H1D"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export interface CwFileUploadMultipleLabels {
|
|
3
|
+
uploadDisabled: string;
|
|
4
|
+
clickToUpload: string;
|
|
5
|
+
acceptedFiles: (accept: string) => string;
|
|
6
|
+
singleFileOnly: string;
|
|
7
|
+
allTypesAccepted: string;
|
|
8
|
+
changeFile: string;
|
|
9
|
+
clearAll: string;
|
|
10
|
+
addMoreFiles: string;
|
|
11
|
+
filesSelected: (count: number) => string;
|
|
12
|
+
fileTooLarge: (name: string, maxSize: number) => string;
|
|
13
|
+
invalidFormat: (name: string, accepted: string) => string;
|
|
14
|
+
invalidMimeType: (name: string, types: string) => string;
|
|
15
|
+
alreadySelected: (name: string) => string;
|
|
16
|
+
}
|
|
2
17
|
interface CwFileUploadMultipleProps {
|
|
3
18
|
name?: string;
|
|
4
19
|
accept?: string;
|
|
@@ -9,7 +24,9 @@ interface CwFileUploadMultipleProps {
|
|
|
9
24
|
onError?: (error: string) => void;
|
|
10
25
|
className?: string;
|
|
11
26
|
disabled?: boolean;
|
|
27
|
+
hideClearAll?: boolean;
|
|
12
28
|
initialFileName?: string;
|
|
29
|
+
labels?: Partial<CwFileUploadMultipleLabels>;
|
|
13
30
|
}
|
|
14
31
|
export declare function CwFileUploadMultiple(fileUploadProps: React.PropsWithChildren<CwFileUploadMultipleProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwFileUploadMultiple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/file/CwFileUploadMultiple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAK7D,UAAU,yBAAyB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CwFileUploadMultiple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/file/Cw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e,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC7C;AAED,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,2CAwUvG"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type DayPickerLocale } from "react-day-picker/locale";
|
|
2
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
1
3
|
import { Matcher } from "react-day-picker";
|
|
2
4
|
import "react-day-picker/dist/style.css";
|
|
3
5
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
@@ -39,6 +41,13 @@ export interface CwDatePickerProps {
|
|
|
39
41
|
/** Number of months to display (default: 1) */
|
|
40
42
|
numberOfMonths?: number;
|
|
41
43
|
showTodayButton?: boolean;
|
|
44
|
+
locale?: DayPickerLocale;
|
|
45
|
+
todayLabel?: string;
|
|
46
|
+
/** Feedback messages shown below the input; accepts a single message or an array for multiple
|
|
47
|
+
* @example feedback={{ type: "danger", message: "This field is required" }}
|
|
48
|
+
* @example feedback={[{ type: "neutral", message: "Select a departure date" }, { type: "warning", message: "Date is in the past" }]}
|
|
49
|
+
*/
|
|
50
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
42
51
|
}
|
|
43
|
-
export declare function CwDatePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, }: Readonly<CwDatePickerProps>): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare function CwDatePicker({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, locale, todayLabel, feedback, }: Readonly<CwDatePickerProps>): import("react/jsx-runtime").JSX.Element;
|
|
44
53
|
//# sourceMappingURL=CwDatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDatePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CwDatePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,iCAAiC,CAAC;AAEzC,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAKtE,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,WAAW,iBAAiB;IACjC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,iCAAiC;IACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAG3C,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,yCAAyC;IACzC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,yDAAyD;IACzD,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,mDAAmD;IACnD,YAAY,CAAC,EAAE,IAAI,CAAC;IAGpB,gCAAgC;IAChC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC;IAG1B,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;IAG1E,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAGD,wBAAgB,YAAY,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAA6B,EAC7B,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,eAAuB,EACvB,MAAgC,EAChC,UAAoB,EACpB,QAAQ,GACR,EAAE,QAAQ,CAAC,iBAAiB,CAAC,2CA2R7B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
2
|
+
import { Matcher } from "react-day-picker";
|
|
3
|
+
import "react-day-picker/dist/style.css";
|
|
4
|
+
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
5
|
+
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
6
|
+
export type DateMatcher = Matcher;
|
|
7
|
+
export interface CwDatePickerTemporalProps {
|
|
8
|
+
/** Current selected date */
|
|
9
|
+
value?: Temporal.PlainDate;
|
|
10
|
+
/** Callback when date changes */
|
|
11
|
+
onChange: (date: Temporal.PlainDate | undefined) => void;
|
|
12
|
+
/** Minimum selectable date */
|
|
13
|
+
minDate?: Temporal.PlainDate;
|
|
14
|
+
/** Maximum selectable date */
|
|
15
|
+
maxDate?: Temporal.PlainDate;
|
|
16
|
+
/** Array of specific dates to disable */
|
|
17
|
+
disabledDates?: Temporal.PlainDate[];
|
|
18
|
+
/** Function to determine if a date should be disabled */
|
|
19
|
+
disabledMatcher?: DateMatcher;
|
|
20
|
+
/** Default month to display when calendar opens */
|
|
21
|
+
defaultMonth?: Temporal.PlainYearMonth;
|
|
22
|
+
/** Props for label component */
|
|
23
|
+
labelProps?: CwLabelProps;
|
|
24
|
+
/** Props for alignment */
|
|
25
|
+
alignProps?: CwAlignProps;
|
|
26
|
+
/** Placeholder text for input */
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
/** Display format for the input (default: dd/MM/yyyy) */
|
|
29
|
+
displayFormat?: string;
|
|
30
|
+
/** Is the input disabled */
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/** Is the input required */
|
|
33
|
+
required?: boolean;
|
|
34
|
+
/** Additional CSS class for container */
|
|
35
|
+
className?: string;
|
|
36
|
+
/** Show clear button */
|
|
37
|
+
showClear?: boolean;
|
|
38
|
+
/** Pop Up Position */
|
|
39
|
+
popupPosition?: "left-bottom" | "left-top" | "right-top" | "right-bottom";
|
|
40
|
+
/** Number of months to display (default: 1) */
|
|
41
|
+
numberOfMonths?: number;
|
|
42
|
+
showTodayButton?: boolean;
|
|
43
|
+
todayLabel?: string;
|
|
44
|
+
/** Feedback messages shown below the input */
|
|
45
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
46
|
+
}
|
|
47
|
+
export declare function CwDatePickerTemporal({ value, onChange, minDate, maxDate, disabledDates, disabledMatcher, defaultMonth, labelProps, alignProps, placeholder, displayFormat, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, todayLabel, feedback, }: Readonly<CwDatePickerTemporalProps>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=CwDatePickerTemporal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwDatePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePickerTemporal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAE/E,OAAO,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACpD,OAAO,iCAAiC,CAAC;AAEzC,OAAO,EAAU,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAU,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAMpE,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,WAAW,yBAAyB;IACzC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC3B,iCAAiC;IACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IAGzD,8BAA8B;IAC9B,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC7B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC7B,yCAAyC;IACzC,aAAa,CAAC,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;IACrC,yDAAyD;IACzD,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,mDAAmD;IACnD,YAAY,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;IAGvC,gCAAgC;IAChC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC;IAG1B,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;IAG1E,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAGD,wBAAgB,oBAAoB,CAAC,EACpC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAA6B,EAC7B,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,eAAuB,EACvB,UAAoB,EACpB,QAAQ,GACR,EAAE,QAAQ,CAAC,yBAAyB,CAAC,2CAqMrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateRangePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAwB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAW,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAW,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAIpF,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDateRangePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input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,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;IAG1E,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;CAClC;AAGD,wBAAgB,iBAAiB,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,eAA6B,EAC7B,aAAyB,EACzB,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,WAAmB,EACnB,UAAU,EACV,aAAa,GACb,EAAE,QAAQ,CAAC,sBAAsB,CAAC,2CAogBlC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type DayPickerLocale } from "react-day-picker/locale";
|
|
1
2
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
2
3
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
3
4
|
import { DateMatcher } from "./CwDatePicker";
|
|
@@ -42,6 +43,12 @@ export interface CwDateTimePickerProps {
|
|
|
42
43
|
numberOfMonths?: number;
|
|
43
44
|
/** Show "Now" button to select current date and time */
|
|
44
45
|
showNowButton?: boolean;
|
|
46
|
+
/** Label for the "Now" button */
|
|
47
|
+
nowLabel?: string;
|
|
48
|
+
/** Locale for date formatting and calendar strings (default: enGB) */
|
|
49
|
+
locale?: DayPickerLocale;
|
|
50
|
+
/** Numeric timezone offset in hours (e.g., 1, 5.5, -3) */
|
|
51
|
+
timezoneOffset?: number;
|
|
45
52
|
}
|
|
46
|
-
export declare function CwDateTimePicker({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, datePlaceholder, timePlaceholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showNowButton, }: Readonly<CwDateTimePickerProps>): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export 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>): import("react/jsx-runtime").JSX.Element;
|
|
47
54
|
//# sourceMappingURL=CwDateTimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateTimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"CwDateTimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAU,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAU,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAe,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAIzD,MAAM,WAAW,qBAAqB;IACrC,gCAAgC;IAChC,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,qCAAqC;IACrC,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAG/C,kCAAkC;IAClC,WAAW,CAAC,EAAE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WAAW,EACX,aAAa,EACb,eAAe,EACf,YAAiB,EACjB,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,eAA8B,EAC9B,eAAyB,EACzB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,aAAqB,EACrB,QAAgB,EAChB,MAAgC,EAChC,cAAc,GACd,EAAE,QAAQ,CAAC,qBAAqB,CAAC,2CAiWjC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Matcher } from "react-day-picker";
|
|
2
|
+
import { type DayPickerLocale } from "react-day-picker/locale";
|
|
2
3
|
import "react-day-picker/dist/style.css";
|
|
3
4
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
4
5
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
@@ -41,6 +42,12 @@ export interface CwDateTimePickerCompactProps {
|
|
|
41
42
|
/** Number of months to display (default: 1) */
|
|
42
43
|
numberOfMonths?: number;
|
|
43
44
|
showTodayButton?: boolean;
|
|
45
|
+
/** Label for the "Now" button */
|
|
46
|
+
nowLabel?: string;
|
|
47
|
+
/** Label for the time column header */
|
|
48
|
+
timeLabel?: string;
|
|
49
|
+
/** Locale for date formatting and calendar strings (default: enGB) */
|
|
50
|
+
locale?: DayPickerLocale;
|
|
44
51
|
}
|
|
45
|
-
export declare function CwDateTimePickerCompact({ value, onChange, minDateTime, maxDateTime, disabledDates, disabledMatcher, timeInterval, minTime, maxTime, labelProps, alignProps, placeholder, disabled, required, className, showClear, popupPosition, numberOfMonths, showTodayButton, }: Readonly<CwDateTimePickerCompactProps>): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export 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, }: Readonly<CwDateTimePickerCompactProps>): import("react/jsx-runtime").JSX.Element;
|
|
46
53
|
//# sourceMappingURL=CwDateTimePickerCompact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateTimePickerCompact.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePickerCompact.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,iCAAiC,CAAC;AAEzC,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDateTimePickerCompact.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePickerCompact.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,iCAAiC,CAAC;AAEzC,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAOtE,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,WAAW,4BAA4B;IAC5C,gCAAgC;IAChC,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,qCAAqC;IACrC,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAG/C,kCAAkC;IAClC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,kCAAkC;IAClC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,yCAAyC;IACzC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,yDAAyD;IACzD,eAAe,CAAC,EAAE,WAAW,CAAC;IAG9B,2DAA2D;IAC3D,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,GAA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imePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwTimePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,YAAY,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAU,YAAY,EAAC,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"CwTimePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwTimePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,YAAY,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAU,YAAY,EAAC,MAAM,6CAA6C,CAAC;AAMlF,MAAM,WAAW,iBAAiB;IACjC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAG7C,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACjC,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,gCAAgC;IAChC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC;IAG1B,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,CAAC;IAC1E;;;;OAIG;IAEH,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAQD,wBAAgB,YAAY,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,QAAa,EACb,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,WAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,SAA4B,GAC5B,EAAE,iBAAiB,2CA8QnB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a 2-digit year into a 4-digit year using a sliding window
|
|
3
|
+
* based on the current year. The window spans from (currentYear - 80)
|
|
4
|
+
* to (currentYear + 19), so two-digit years are always mapped to the
|
|
5
|
+
* nearest century within that 100-year range.
|
|
6
|
+
*
|
|
7
|
+
* Example (currentYear = 2026):
|
|
8
|
+
* 00–46 → 2000–2046
|
|
9
|
+
* 47–99 → 1947–1999
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveTwoDigitYear(twoDigitYear: number, currentYear?: number): number;
|
|
12
|
+
export declare const parseDate: (dateString: string, formatStr: string) => Temporal.PlainDate | undefined;
|
|
13
|
+
export declare const validate: (parsed: Temporal.PlainDate | undefined, minDate: Temporal.PlainDate | undefined, maxDate: Temporal.PlainDate | undefined) => boolean;
|
|
14
|
+
/** Temporal.PlainDate -> JS Date (for DayPicker interop) */
|
|
15
|
+
export declare function plainDateToJsDate(pd: Temporal.PlainDate): Date;
|
|
16
|
+
/** JS Date -> Temporal.PlainDate */
|
|
17
|
+
export declare function jsDateToPlainDate(d: Date): Temporal.PlainDate;
|
|
18
|
+
/** Format a PlainDate using a simple format string (dd, MM, yyyy tokens) */
|
|
19
|
+
export declare function formatPlainDate(pd: Temporal.PlainDate, fmt: string): string;
|
|
20
|
+
//# sourceMappingURL=datePickerHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datePickerHelpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/datePickerHelpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAUtF;AAED,eAAO,MAAM,SAAS,GAAI,YAAY,MAAM,EAAE,WAAW,MAAM,KAAG,QAAQ,CAAC,SAAS,GAAG,SA8CtF,CAAC;AAEF,eAAO,MAAM,QAAQ,GACpB,QAAQ,QAAQ,CAAC,SAAS,GAAG,SAAS,EACtC,SAAS,QAAQ,CAAC,SAAS,GAAG,SAAS,EACvC,SAAS,QAAQ,CAAC,SAAS,GAAG,SAAS,KACrC,OAKF,CAAC;AAEF,4DAA4D;AAC5D,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAE9D;AAED,oCAAoC;AACpC,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,CAM7D;AAED,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,EAAE,EAAE,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAM3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateRangePresets.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/dateRangePresets.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,IAAI,CAAA;KAAE,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CA6Q1D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"dateRangePresets.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/dateRangePresets.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,IAAI,CAAA;KAAE,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CA6Q1D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,KAAG,eAAe,EAIhE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type PopupPosition = "left-bottom" | "left-top" | "right-bottom" | "right-top";
|
|
2
|
+
interface PickerPopupOptions {
|
|
3
|
+
anchorRef: React.RefObject<HTMLElement | null>;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
position?: PopupPosition;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Renders a picker popup in a portal so it escapes overflow containers.
|
|
10
|
+
* Positions itself relative to the anchor element.
|
|
11
|
+
*
|
|
12
|
+
* Thin wrapper around {@link useDropdownPortal} that adds directional
|
|
13
|
+
* preference logic ("left-bottom", "right-top", etc.) for calendar popups.
|
|
14
|
+
* The public API is unchanged — existing callers (`CwDatePicker`, etc.) need
|
|
15
|
+
* no modifications.
|
|
16
|
+
*/
|
|
17
|
+
export declare function usePickerPopup({ anchorRef, isOpen, onClose, position }: PickerPopupOptions): {
|
|
18
|
+
popupRef: import("react").RefObject<HTMLDivElement>;
|
|
19
|
+
popupStyle: import("../../../../common/hooks/useDropdownPortal").DropdownPanelStyle;
|
|
20
|
+
renderPopup: (children: React.ReactNode) => React.ReactNode | null;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=usePickerPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePickerPopup.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/usePickerPopup.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,CAAC;AAEtF,UAAU,kBAAkB;IAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAwB,EAAE,EAAE,kBAAkB;;;;EAyC1G"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a numeric offset in hours (e.g. 0, 1, -5, 5.5) to a
|
|
3
|
+
* Temporal-compatible offset string like "+00:00", "+01:00", "-05:00", "+05:30".
|
|
4
|
+
*/
|
|
5
|
+
export declare function offsetHoursToString(offset: number): string;
|
|
6
|
+
/**
|
|
7
|
+
* Converts a Date to a new Date whose local year/month/day
|
|
8
|
+
* reflect the date in the given UTC offset.
|
|
9
|
+
*
|
|
10
|
+
* This is necessary because date-fns format() and DayPicker
|
|
11
|
+
* always use the browser's local timezone. By "shifting" the date,
|
|
12
|
+
* we ensure the correct date displays regardless of browser timezone.
|
|
13
|
+
*
|
|
14
|
+
* @param date - The original Date object
|
|
15
|
+
* @param timezoneOffset - Numeric offset in hours (e.g., 0 for UTC, 1 for CET, -5 for EST, 5.5 for IST)
|
|
16
|
+
* @returns A new Date with local fields matching the target timezone's date
|
|
17
|
+
*/
|
|
18
|
+
export declare function getDateInOffset(date: Date, timezoneOffset: number): Date;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the time string (HH:mm) for a Date in the given UTC offset.
|
|
21
|
+
*
|
|
22
|
+
* @param date - The original Date object
|
|
23
|
+
* @param timezoneOffset - Numeric offset in hours (e.g., 0 for UTC, 1 for CET, -5 for EST, 5.5 for IST)
|
|
24
|
+
* @returns Time string in "HH:mm" format for the given offset
|
|
25
|
+
*/
|
|
26
|
+
export declare function getTimeInOffset(date: Date, timezoneOffset: number): string;
|
|
27
|
+
/**
|
|
28
|
+
* Combines a display date (local fields) and time components into a real Date
|
|
29
|
+
* by interpreting them in the given UTC offset.
|
|
30
|
+
*
|
|
31
|
+
* @param date - Date whose local year/month/day are the "display" values
|
|
32
|
+
* @param hours - Hour component (0-23)
|
|
33
|
+
* @param minutes - Minute component (0-59)
|
|
34
|
+
* @param timezoneOffset - Numeric offset in hours
|
|
35
|
+
* @returns A Date representing the UTC instant of that date+time in the given offset
|
|
36
|
+
*/
|
|
37
|
+
export declare function combineDateTimeInOffset(date: Date, hours: number, minutes: number, timezoneOffset: number): Date;
|
|
38
|
+
//# sourceMappingURL=timezoneHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezoneHelpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/control/input/new-dates/utils/timezoneHelpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAM1D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,CAIxE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAI1E;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAChE,IAAI,CAON"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLProps } from "react";
|
|
2
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
2
3
|
import { CwButtonProps } from "../../../../components/control/action/button/CwButton";
|
|
3
4
|
import { CwIconProps } from "../../../../components/display/graphics/icon/CwIcon";
|
|
4
5
|
import { CwLabelProps } from "../../../../components/display/text/label/CwLabel";
|
|
@@ -16,6 +17,11 @@ export interface CwInputTextProps extends Omit<HTMLProps<HTMLInputElement>, neve
|
|
|
16
17
|
/** Props of the icon; undefined == no icon
|
|
17
18
|
* @example iconProps={{iconId:"phone"}} */
|
|
18
19
|
iconProps?: CwIconProps;
|
|
20
|
+
/** Feedback messages shown below the input; accepts a single message or an array for multiple
|
|
21
|
+
* @example feedback={{ type: "danger", message: "This field is required" }}
|
|
22
|
+
* @example feedback={[{ type: "neutral", message: "Enter your full name" }, { type: "warning", message: "This name is already in use" }]}
|
|
23
|
+
*/
|
|
24
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
19
25
|
}
|
|
20
26
|
/**
|
|
21
27
|
* Input for entering a string of text.
|
|
@@ -33,6 +39,7 @@ export interface CwInputTextProps extends Omit<HTMLProps<HTMLInputElement>, neve
|
|
|
33
39
|
* iconProps={{ id: "home" }}
|
|
34
40
|
* labelProps={{ children: "Name", width: "100px" }}
|
|
35
41
|
* buttonProps={{ children: "Ok", onclick:()=>{alert("hi")} }}
|
|
42
|
+
* feedback={{ type: "danger", message: "This field is required" }}
|
|
36
43
|
* />
|
|
37
44
|
* ```
|
|
38
45
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwInputText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/text/CwInputText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAY,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAChG,OAAO,EAAU,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAC1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B,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAkClD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as CSS from "csstype";
|
|
2
2
|
import { DetailedHTMLProps, TextareaHTMLAttributes } from "react";
|
|
3
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
3
4
|
import { CwButtonProps } from "../../../../components/control/action/button/CwButton";
|
|
4
5
|
import { CwIconProps } from "../../../../components/display/graphics/icon/CwIcon";
|
|
5
6
|
import { CwLabelProps } from "../../../../components/display/text/label/CwLabel";
|
|
@@ -19,6 +20,11 @@ export interface CwTextAreaProps extends Omit<DetailedHTMLProps<TextareaHTMLAttr
|
|
|
19
20
|
/** Props of the icon; undefined == no icon
|
|
20
21
|
* @example iconProps={{iconId:"phone"}} */
|
|
21
22
|
iconProps?: CwIconProps;
|
|
23
|
+
/** Feedback messages shown below the select; accepts a single message or an array for multiple
|
|
24
|
+
* @example feedback={{ type: "neutral", message: "Select the cat breed that best matches your preference" }}
|
|
25
|
+
* @example feedback={[{ type: "neutral", message: "Select a breed" }, { type: "danger", message: "This field is required" }]}
|
|
26
|
+
*/
|
|
27
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
22
28
|
}
|
|
23
29
|
export declare function CwTextArea(props: CwTextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
24
30
|
//# sourceMappingURL=CwTextArea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTextArea.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/text-area/CwTextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAY,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAChG,OAAO,EAAU,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAW,YAA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;gDAC4C;IAC5C,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B;8DAC0D;IAC1D,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B;+CAC2C;IAC3C,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;;MAGE;IACF,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAiChD"}
|
|
@@ -2,20 +2,56 @@ import React from "react";
|
|
|
2
2
|
import { type CwLabelProps } from "../../display/text/label/CwLabel";
|
|
3
3
|
import { type CwAlignProps } from "../../layout/align/CwAlign";
|
|
4
4
|
type DisplayMode = "default" | "icao-only" | "iata-only" | "full-text";
|
|
5
|
+
/** Props for {@link CwFindAirport}. */
|
|
5
6
|
export interface CwFindAirportProps {
|
|
7
|
+
/** Called with the selected airport's `AptKey` when a result is chosen. */
|
|
6
8
|
handleChange: (value: number) => void;
|
|
9
|
+
/** API search mode passed to the WinOps backend. Defaults to `"OnlyDatabase"`. */
|
|
7
10
|
searchType?: string;
|
|
11
|
+
/** Input placeholder text. Defaults to `"Search airport…"`. */
|
|
8
12
|
placeHolder?: string;
|
|
13
|
+
/** Marks the field as required (visual indicator only). */
|
|
9
14
|
required?: boolean;
|
|
15
|
+
/** Base URL of the WinOps backend, e.g. `"https://localhost:44300"`. */
|
|
10
16
|
cblConfig: string;
|
|
11
17
|
className?: string;
|
|
18
|
+
/** Pre-select an airport by its `AptKey`. Triggers an initial fetch to resolve the display text. */
|
|
12
19
|
value?: number;
|
|
13
20
|
disabled?: boolean;
|
|
14
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Controls what part of the airport name is shown in the input after selection.
|
|
23
|
+
* - `"default"` — short `ICAO(IATA)` code format
|
|
24
|
+
* - `"icao-only"` — only the 4-letter ICAO code
|
|
25
|
+
* - `"iata-only"` — only the 3-letter IATA code
|
|
26
|
+
* - `"full-text"` — full `DisplayAirportText` from the API
|
|
27
|
+
*/
|
|
28
|
+
displayMode?: DisplayMode; /** Fixed CSS width for the input wrapper, e.g. `"400px"`. */
|
|
15
29
|
width?: string;
|
|
30
|
+
/** Text shown in the input on first render before any API data is loaded. */
|
|
31
|
+
initialDisplayText?: string;
|
|
32
|
+
/** Props forwarded to the internal `CwLabel`. */
|
|
16
33
|
labelProps?: CwLabelProps;
|
|
34
|
+
/** Props forwarded to the `CwAlign` layout wrapper. */
|
|
17
35
|
alignProps?: CwAlignProps;
|
|
18
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* API-backed airport search input for WinOps.
|
|
39
|
+
*
|
|
40
|
+
* Fetches matching airports from the WinOps backend as the user types (debounced).
|
|
41
|
+
* Renders results in a shared `cw-choice-dropdown` styled panel with keyboard navigation.
|
|
42
|
+
* Supports pre-selecting an airport by `value` (AptKey) and customising the displayed text
|
|
43
|
+
* format via `displayMode`.
|
|
44
|
+
*
|
|
45
|
+
* Requires a running WinOps backend — set `cblConfig` to its base URL.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* <CwFindAirport
|
|
49
|
+
* cblConfig="https://localhost:44300"
|
|
50
|
+
* handleChange={(key) => setAirportKey(key)}
|
|
51
|
+
* labelProps={{ text: 'Departure Airport' }}
|
|
52
|
+
* displayMode="iata-only"
|
|
53
|
+
* />
|
|
54
|
+
*/
|
|
19
55
|
export declare const CwFindAirport: React.FC<CwFindAirportProps>;
|
|
20
56
|
export {};
|
|
21
57
|
//# sourceMappingURL=CwFindAirportComp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwFindAirportComp.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/find-airport/CwFindAirportComp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CwFindAirportComp.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/find-airport/CwFindAirportComp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAgBxE,KAAK,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAEvE,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IAClC,2EAA2E;IAC3E,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oGAAoG;IACpG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC,6DAA6D;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,uDAAuD;IACvD,UAAU,CAAC,EAAE,YAAY,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoXtD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type CwLabelProps } from "../../display/text/label/CwLabel";
|
|
3
|
+
import { type CwAlignProps } from "../../layout/align/CwAlign";
|
|
4
|
+
/** Props for {@link CwFindCrewmember}. */
|
|
5
|
+
export interface CwFindCrewmemberProps {
|
|
6
|
+
/** Called with the selected crewmember's numeric ID when a result is chosen. */
|
|
7
|
+
handleChange: (value: number) => void;
|
|
8
|
+
/** Input placeholder text. Defaults to `"Search crew…"`. */
|
|
9
|
+
placeHolder?: string;
|
|
10
|
+
/** Marks the field as required (visual indicator only). */
|
|
11
|
+
required?: boolean;
|
|
12
|
+
/** Base URL of the WinOps backend, e.g. `"https://localhost:44300"`. */
|
|
13
|
+
cblConfig: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Pre-select a crewmember by their numeric ID. Triggers an initial fetch to resolve the display text. */
|
|
16
|
+
value?: number;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Fixed CSS width for the input wrapper, e.g. `"400px"`. */
|
|
19
|
+
width?: string;
|
|
20
|
+
/** Text shown in the input on first render before any API data is loaded. */
|
|
21
|
+
initialDisplayText?: string;
|
|
22
|
+
/** Props forwarded to the internal `CwLabel`. */
|
|
23
|
+
labelProps?: CwLabelProps;
|
|
24
|
+
/** Props forwarded to the `CwAlign` layout wrapper. */
|
|
25
|
+
alignProps?: CwAlignProps;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* API-backed crewmember search input for WinOps.
|
|
29
|
+
*
|
|
30
|
+
* Fetches matching crewmembers from the WinOps backend as the user types (debounced).
|
|
31
|
+
* Renders results in a shared `cw-choice-dropdown` styled panel with keyboard navigation.
|
|
32
|
+
* Supports pre-selecting a crewmember by numeric `value` (ID).
|
|
33
|
+
*
|
|
34
|
+
* Requires a running WinOps backend — set `cblConfig` to its base URL.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* <CwFindCrewmember
|
|
38
|
+
* cblConfig="https://localhost:44300"
|
|
39
|
+
* handleChange={(id) => setCrewId(id)}
|
|
40
|
+
* labelProps={{ text: 'Crew Member' }}
|
|
41
|
+
* />
|
|
42
|
+
*/
|
|
43
|
+
export declare const CwFindCrewmember: React.FC<CwFindCrewmemberProps>;
|
|
44
|
+
//# sourceMappingURL=CwFindCrewmemberComp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwFindCrewmemberComp.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/find-crewmember/CwFindCrewmemberComp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAexE,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACrC,gFAAgF;IAChF,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0GAA0G;IAC1G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,uDAAuD;IACvD,UAAU,CAAC,EAAE,YAAY,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6Q5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwSchedulerComp.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/scheduler/CwSchedulerComp.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAelC,OAA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ACtC,aAAa,GAAE,OAAO,GAAG,IAAW,EACpC,SAAS,GAAE,OAAO,GAAG,IAAW;CAUjC"}
|
|
@@ -6,8 +6,5 @@ interface DaysHeaderProps {
|
|
|
6
6
|
headerType: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const DaysHeader: FC<DaysHeaderProps>;
|
|
9
|
-
export declare const _DaysPreview: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const _WeeksPreview: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const _MonthsPreview: () => import("react/jsx-runtime").JSX.Element;
|
|
12
9
|
export {};
|
|
13
10
|
//# sourceMappingURL=MyDaysHeader.d.ts.map
|