@axelor/aos-mobile-ui 9.1.11 → 9.2.0
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/lib/components/atoms/BorderBar/BorderBar.d.ts +9 -0
- package/lib/components/atoms/BorderBar/BorderBar.js +30 -0
- package/lib/components/atoms/BorderBar/BorderBar.js.map +1 -0
- package/lib/components/atoms/Card/Card.d.ts +2 -1
- package/lib/components/atoms/Card/Card.js +2 -2
- package/lib/components/atoms/Card/Card.js.map +1 -1
- package/lib/components/atoms/HorizontalRule/HorizontalRule.d.ts +3 -1
- package/lib/components/atoms/HorizontalRule/HorizontalRule.js +5 -7
- package/lib/components/atoms/HorizontalRule/HorizontalRule.js.map +1 -1
- package/lib/components/atoms/HtmlInput/HtmlInput.d.ts +3 -1
- package/lib/components/atoms/HtmlInput/HtmlInput.js +13 -8
- package/lib/components/atoms/HtmlInput/HtmlInput.js.map +1 -1
- package/lib/components/atoms/HtmlViewer/HtmlViewer.d.ts +10 -0
- package/lib/components/atoms/HtmlViewer/HtmlViewer.js +93 -0
- package/lib/components/atoms/HtmlViewer/HtmlViewer.js.map +1 -0
- package/lib/components/atoms/Icon/Icon.d.ts +2 -1
- package/lib/components/atoms/Icon/Icon.js +4 -5
- package/lib/components/atoms/Icon/Icon.js.map +1 -1
- package/lib/components/atoms/Input/Input.d.ts +5 -5
- package/lib/components/atoms/Input/Input.js +6 -5
- package/lib/components/atoms/Input/Input.js.map +1 -1
- package/lib/components/atoms/ProgressCircle/ProgressCircle.js +11 -7
- package/lib/components/atoms/ProgressCircle/ProgressCircle.js.map +1 -1
- package/lib/components/atoms/RadioButton/RadioButton.js +25 -21
- package/lib/components/atoms/RadioButton/RadioButton.js.map +1 -1
- package/lib/components/atoms/Screen/Screen.d.ts +1 -2
- package/lib/components/atoms/Screen/Screen.js +2 -9
- package/lib/components/atoms/Screen/Screen.js.map +1 -1
- package/lib/components/atoms/Switch/Switch.d.ts +1 -1
- package/lib/components/atoms/Switch/Switch.js +5 -5
- package/lib/components/atoms/Switch/Switch.js.map +1 -1
- package/lib/components/atoms/Text/Text.d.ts +2 -1
- package/lib/components/atoms/Text/Text.js +1 -1
- package/lib/components/atoms/Text/Text.js.map +1 -1
- package/lib/components/atoms/VerticalRule/VerticalRule.d.ts +8 -0
- package/lib/components/atoms/VerticalRule/VerticalRule.js +33 -0
- package/lib/components/atoms/VerticalRule/VerticalRule.js.map +1 -0
- package/lib/components/atoms/index.d.ts +3 -0
- package/lib/components/atoms/index.js +3 -0
- package/lib/components/atoms/index.js.map +1 -1
- package/lib/components/molecules/Alert/Alert.js +18 -30
- package/lib/components/molecules/Alert/Alert.js.map +1 -1
- package/lib/components/molecules/Badge/Badge.d.ts +2 -1
- package/lib/components/molecules/Badge/Badge.js +15 -12
- package/lib/components/molecules/Badge/Badge.js.map +1 -1
- package/lib/components/molecules/BottomSheet/BottomSheet.js +1 -1
- package/lib/components/molecules/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/components/molecules/Breadcrumb/Breadcrumb.js +1 -1
- package/lib/components/molecules/Button/Button.d.ts +2 -1
- package/lib/components/molecules/Button/Button.js +6 -12
- package/lib/components/molecules/Button/Button.js.map +1 -1
- package/lib/components/molecules/CalendarLegend/CalendarLegend.d.ts +13 -0
- package/lib/components/molecules/CalendarLegend/CalendarLegend.js +89 -0
- package/lib/components/molecules/CalendarLegend/CalendarLegend.js.map +1 -0
- package/lib/components/molecules/CalendarLegend/index.d.ts +2 -0
- package/lib/components/molecules/CalendarLegend/index.js +19 -0
- package/lib/components/molecules/CalendarLegend/index.js.map +1 -0
- package/lib/components/molecules/CalendarLegend/types.d.ts +6 -0
- package/lib/components/molecules/CalendarLegend/types.js +19 -0
- package/lib/components/molecules/CalendarLegend/types.js.map +1 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.d.ts +15 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.js +49 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.js.map +1 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.d.ts +8 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.js +35 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.js.map +1 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.d.ts +7 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.js +44 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.js.map +1 -0
- package/lib/components/molecules/CalendarMonthGrid/index.d.ts +3 -0
- package/lib/components/molecules/CalendarMonthGrid/index.js +21 -0
- package/lib/components/molecules/CalendarMonthGrid/index.js.map +1 -0
- package/lib/components/molecules/CardIconButton/CardIconButton.js +1 -1
- package/lib/components/molecules/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/molecules/Checkbox/Checkbox.js +11 -27
- package/lib/components/molecules/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/molecules/Chip/Chip.d.ts +1 -1
- package/lib/components/molecules/Chip/Chip.js +23 -19
- package/lib/components/molecules/Chip/Chip.js.map +1 -1
- package/lib/components/molecules/CircleButton/CircleButton.js +1 -1
- package/lib/components/molecules/CircleButton/CircleButton.js.map +1 -1
- package/lib/components/molecules/ClearableCard/ClearableCard.js +2 -7
- package/lib/components/molecules/ClearableCard/ClearableCard.js.map +1 -1
- package/lib/components/molecules/DoubleIcon/DoubleIcon.js +1 -1
- package/lib/components/molecules/DoubleIcon/DoubleIcon.js.map +1 -1
- package/lib/components/molecules/DropdownCard/DropdownCard.d.ts +4 -3
- package/lib/components/molecules/DropdownCard/DropdownCard.js +36 -55
- package/lib/components/molecules/DropdownCard/DropdownCard.js.map +1 -1
- package/lib/components/molecules/DropdownMenu/DropdownMenu.d.ts +4 -2
- package/lib/components/molecules/DropdownMenu/DropdownMenu.js +52 -26
- package/lib/components/molecules/DropdownMenu/DropdownMenu.js.map +1 -1
- package/lib/components/molecules/EditableHtmlInput/EditableHtmlInput.js +2 -3
- package/lib/components/molecules/EditableHtmlInput/EditableHtmlInput.js.map +1 -1
- package/lib/components/molecules/EditableInput/EditableInput.js +4 -17
- package/lib/components/molecules/EditableInput/EditableInput.js.map +1 -1
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.d.ts +2 -2
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js +13 -23
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js.map +1 -1
- package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js +6 -17
- package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js.map +1 -1
- package/lib/components/molecules/FormInput/FormInput.d.ts +1 -1
- package/lib/components/molecules/FormInput/FormInput.js +2 -9
- package/lib/components/molecules/FormInput/FormInput.js.map +1 -1
- package/lib/components/molecules/FormSlider/FormSlider.js +3 -13
- package/lib/components/molecules/FormSlider/FormSlider.js.map +1 -1
- package/lib/components/molecules/GroupedCard/GroupedCard.d.ts +13 -0
- package/lib/components/molecules/GroupedCard/GroupedCard.js +60 -0
- package/lib/components/molecules/GroupedCard/GroupedCard.js.map +1 -0
- package/lib/components/molecules/HorizontalRuleText/HorizontalRuleText.js +5 -6
- package/lib/components/molecules/HorizontalRuleText/HorizontalRuleText.js.map +1 -1
- package/lib/components/molecules/IconInput/IconInput.d.ts +4 -4
- package/lib/components/molecules/IconInput/IconInput.js +15 -23
- package/lib/components/molecules/IconInput/IconInput.js.map +1 -1
- package/lib/components/molecules/IconTile/IconTile.d.ts +19 -0
- package/lib/components/molecules/IconTile/IconTile.js +43 -0
- package/lib/components/molecules/IconTile/IconTile.js.map +1 -0
- package/lib/components/molecules/Increment/Increment.d.ts +1 -1
- package/lib/components/molecules/Increment/Increment.js +3 -5
- package/lib/components/molecules/Increment/Increment.js.map +1 -1
- package/lib/components/molecules/Increment/IncrementButton.js +7 -14
- package/lib/components/molecules/Increment/IncrementButton.js.map +1 -1
- package/lib/components/molecules/Label/Label.d.ts +1 -1
- package/lib/components/molecules/Label/Label.js +11 -15
- package/lib/components/molecules/Label/Label.js.map +1 -1
- package/lib/components/molecules/LabelText/LabelText.js +6 -4
- package/lib/components/molecules/LabelText/LabelText.js.map +1 -1
- package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.d.ts +6 -7
- package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.js +91 -33
- package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.js.map +1 -1
- package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js +21 -33
- package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js.map +1 -1
- package/lib/components/molecules/NotesCard/NotesCard.d.ts +2 -1
- package/lib/components/molecules/NotesCard/NotesCard.js +11 -15
- package/lib/components/molecules/NotesCard/NotesCard.js.map +1 -1
- package/lib/components/molecules/NumberBubble/NumberBubble.js +2 -2
- package/lib/components/molecules/NumberBubble/NumberBubble.js.map +1 -1
- package/lib/components/molecules/NumberChevronInput/NumberChevronInput.d.ts +5 -3
- package/lib/components/molecules/NumberChevronInput/NumberChevronInput.js +35 -28
- package/lib/components/molecules/NumberChevronInput/NumberChevronInput.js.map +1 -1
- package/lib/components/molecules/PanelTabs/PanelTabs.js +1 -1
- package/lib/components/molecules/PeriodNavigation/PeriodNavigation.d.ts +14 -0
- package/lib/components/molecules/PeriodNavigation/PeriodNavigation.js +45 -0
- package/lib/components/molecules/PeriodNavigation/PeriodNavigation.js.map +1 -0
- package/lib/components/molecules/RadioSelect/RadioSelect.js +8 -8
- package/lib/components/molecules/RadioSelect/RadioSelect.js.map +1 -1
- package/lib/components/molecules/RightIconButton/RightIconButton.d.ts +4 -1
- package/lib/components/molecules/RightIconButton/RightIconButton.js +8 -7
- package/lib/components/molecules/RightIconButton/RightIconButton.js.map +1 -1
- package/lib/components/molecules/SelectionContainer/SelectionContainer.d.ts +2 -1
- package/lib/components/molecules/SelectionContainer/SelectionContainer.js +46 -58
- package/lib/components/molecules/SelectionContainer/SelectionContainer.js.map +1 -1
- package/lib/components/molecules/StarScore/StarScore.d.ts +1 -1
- package/lib/components/molecules/StarScore/StarScore.js +7 -10
- package/lib/components/molecules/StarScore/StarScore.js.map +1 -1
- package/lib/components/molecules/Stepper/StepList.d.ts +2 -1
- package/lib/components/molecules/Stepper/StepList.js +14 -12
- package/lib/components/molecules/Stepper/StepList.js.map +1 -1
- package/lib/components/molecules/Stepper/Stepper.d.ts +1 -2
- package/lib/components/molecules/Stepper/Stepper.js +17 -28
- package/lib/components/molecules/Stepper/Stepper.js.map +1 -1
- package/lib/components/molecules/SwitchCard/SwitchCard.d.ts +6 -2
- package/lib/components/molecules/SwitchCard/SwitchCard.js +6 -13
- package/lib/components/molecules/SwitchCard/SwitchCard.js.map +1 -1
- package/lib/components/molecules/TextUnit/TextUnit.js +3 -3
- package/lib/components/molecules/TextUnit/TextUnit.js.map +1 -1
- package/lib/components/molecules/ToggleSwitch/ToggleSwitch.js +34 -34
- package/lib/components/molecules/ToggleSwitch/ToggleSwitch.js.map +1 -1
- package/lib/components/molecules/ViewAllContainer/ViewAllContainer.d.ts +2 -1
- package/lib/components/molecules/ViewAllContainer/ViewAllContainer.js +24 -33
- package/lib/components/molecules/ViewAllContainer/ViewAllContainer.js.map +1 -1
- package/lib/components/molecules/index.d.ts +5 -0
- package/lib/components/molecules/index.js +5 -0
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/ActionCard/ActionCard.js +4 -5
- package/lib/components/organisms/ActionCard/ActionCard.js.map +1 -1
- package/lib/components/organisms/ActionSheet/ActionSheet.d.ts +2 -1
- package/lib/components/organisms/ActionSheet/ActionSheet.js +18 -8
- package/lib/components/organisms/ActionSheet/ActionSheet.js.map +1 -1
- package/lib/components/organisms/AgendaView/AgendaDayCell.d.ts +13 -0
- package/lib/components/organisms/AgendaView/AgendaDayCell.js +71 -0
- package/lib/components/organisms/AgendaView/AgendaDayCell.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaDayRow.d.ts +14 -0
- package/lib/components/organisms/AgendaView/AgendaDayRow.js +65 -0
- package/lib/components/organisms/AgendaView/AgendaDayRow.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaHeader.d.ts +12 -0
- package/lib/components/organisms/AgendaView/AgendaHeader.js +44 -0
- package/lib/components/organisms/AgendaView/AgendaHeader.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaItemRow.d.ts +8 -0
- package/lib/components/organisms/AgendaView/AgendaItemRow.js +58 -0
- package/lib/components/organisms/AgendaView/AgendaItemRow.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaMonth.d.ts +16 -0
- package/lib/components/organisms/AgendaView/AgendaMonth.js +26 -0
- package/lib/components/organisms/AgendaView/AgendaMonth.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaMonthSeparator.d.ts +7 -0
- package/lib/components/organisms/AgendaView/AgendaMonthSeparator.js +41 -0
- package/lib/components/organisms/AgendaView/AgendaMonthSeparator.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaView.d.ts +24 -0
- package/lib/components/organisms/AgendaView/AgendaView.js +134 -0
- package/lib/components/organisms/AgendaView/AgendaView.js.map +1 -0
- package/lib/components/organisms/AgendaView/MonthList.d.ts +16 -0
- package/lib/components/organisms/AgendaView/MonthList.js +64 -0
- package/lib/components/organisms/AgendaView/MonthList.js.map +1 -0
- package/lib/components/organisms/AgendaView/MonthPanel.d.ts +17 -0
- package/lib/components/organisms/AgendaView/MonthPanel.js +108 -0
- package/lib/components/organisms/AgendaView/MonthPanel.js.map +1 -0
- package/lib/components/organisms/AgendaView/agenda-view.helpers.d.ts +6 -0
- package/lib/components/organisms/AgendaView/agenda-view.helpers.js +53 -0
- package/lib/components/organisms/AgendaView/agenda-view.helpers.js.map +1 -0
- package/lib/components/organisms/AgendaView/index.d.ts +3 -0
- package/lib/components/organisms/AgendaView/index.js +20 -0
- package/lib/components/organisms/AgendaView/index.js.map +1 -0
- package/lib/components/organisms/AgendaView/types.d.ts +12 -0
- package/lib/components/organisms/AgendaView/types.js +19 -0
- package/lib/components/organisms/AgendaView/types.js.map +1 -0
- package/lib/components/organisms/AgendaView/use-month-panel-drag.d.ts +13 -0
- package/lib/components/organisms/AgendaView/use-month-panel-drag.js +77 -0
- package/lib/components/organisms/AgendaView/use-month-panel-drag.js.map +1 -0
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js +5 -5
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js.map +1 -1
- package/lib/components/organisms/AutoCompleteSearch/ItemCard.d.ts +2 -2
- package/lib/components/organisms/AutoCompleteSearch/ItemCard.js +13 -20
- package/lib/components/organisms/AutoCompleteSearch/ItemCard.js.map +1 -1
- package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js +8 -9
- package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js.map +1 -1
- package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.d.ts +12 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.js +60 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.d.ts +28 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.js +140 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/DayCell.d.ts +17 -0
- package/lib/components/organisms/CalendarRangePicker/DayCell.js +131 -0
- package/lib/components/organisms/CalendarRangePicker/DayCell.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/RangeMonth.d.ts +18 -0
- package/lib/components/organisms/CalendarRangePicker/RangeMonth.js +35 -0
- package/lib/components/organisms/CalendarRangePicker/RangeMonth.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.d.ts +12 -0
- package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.js +68 -0
- package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/index.d.ts +2 -0
- package/lib/components/organisms/CalendarRangePicker/index.js +19 -0
- package/lib/components/organisms/CalendarRangePicker/index.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/types.d.ts +11 -0
- package/lib/components/organisms/CalendarRangePicker/types.js +19 -0
- package/lib/components/organisms/CalendarRangePicker/types.js.map +1 -0
- package/lib/components/organisms/ChipSelect/ChipSelect.js +24 -21
- package/lib/components/organisms/ChipSelect/ChipSelect.js.map +1 -1
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.d.ts +2 -0
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js +2 -2
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js.map +1 -1
- package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.d.ts +3 -2
- package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js +36 -34
- package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js.map +1 -1
- package/lib/components/organisms/FloatingButton/FloatingActionButton.d.ts +2 -2
- package/lib/components/organisms/FloatingButton/FloatingActionButton.js +2 -1
- package/lib/components/organisms/FloatingButton/FloatingActionButton.js.map +1 -1
- package/lib/components/organisms/GanttView/GanttView.d.ts +36 -0
- package/lib/components/organisms/GanttView/GanttView.js +267 -0
- package/lib/components/organisms/GanttView/GanttView.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttBar.d.ts +12 -0
- package/lib/components/organisms/GanttView/body/GanttBar.js +52 -0
- package/lib/components/organisms/GanttView/body/GanttBar.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttCellStrip.d.ts +10 -0
- package/lib/components/organisms/GanttView/body/GanttCellStrip.js +55 -0
- package/lib/components/organisms/GanttView/body/GanttCellStrip.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttGridLines.d.ts +9 -0
- package/lib/components/organisms/GanttView/body/GanttGridLines.js +45 -0
- package/lib/components/organisms/GanttView/body/GanttGridLines.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttGroupHeader.d.ts +9 -0
- package/lib/components/organisms/GanttView/body/GanttGroupHeader.js +61 -0
- package/lib/components/organisms/GanttView/body/GanttGroupHeader.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttGroupLane.d.ts +10 -0
- package/lib/components/organisms/GanttView/body/GanttGroupLane.js +43 -0
- package/lib/components/organisms/GanttView/body/GanttGroupLane.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttRowLane.d.ts +13 -0
- package/lib/components/organisms/GanttView/body/GanttRowLane.js +53 -0
- package/lib/components/organisms/GanttView/body/GanttRowLane.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttRowName.d.ts +9 -0
- package/lib/components/organisms/GanttView/body/GanttRowName.js +51 -0
- package/lib/components/organisms/GanttView/body/GanttRowName.js.map +1 -0
- package/lib/components/organisms/GanttView/body/index.d.ts +6 -0
- package/lib/components/organisms/GanttView/body/index.js +24 -0
- package/lib/components/organisms/GanttView/body/index.js.map +1 -0
- package/lib/components/organisms/GanttView/gantt-view.helpers.d.ts +19 -0
- package/lib/components/organisms/GanttView/gantt-view.helpers.js +219 -0
- package/lib/components/organisms/GanttView/gantt-view.helpers.js.map +1 -0
- package/lib/components/organisms/GanttView/gantt-view.styles.d.ts +124 -0
- package/lib/components/organisms/GanttView/gantt-view.styles.js +148 -0
- package/lib/components/organisms/GanttView/gantt-view.styles.js.map +1 -0
- package/lib/components/organisms/GanttView/header/GanttControls.d.ts +13 -0
- package/lib/components/organisms/GanttView/header/GanttControls.js +53 -0
- package/lib/components/organisms/GanttView/header/GanttControls.js.map +1 -0
- package/lib/components/organisms/GanttView/header/GanttHeader.d.ts +24 -0
- package/lib/components/organisms/GanttView/header/GanttHeader.js +75 -0
- package/lib/components/organisms/GanttView/header/GanttHeader.js.map +1 -0
- package/lib/components/organisms/GanttView/header/index.d.ts +1 -0
- package/lib/components/organisms/GanttView/header/index.js +19 -0
- package/lib/components/organisms/GanttView/header/index.js.map +1 -0
- package/lib/components/organisms/GanttView/index.d.ts +4 -0
- package/lib/components/organisms/GanttView/index.js +21 -0
- package/lib/components/organisms/GanttView/index.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.d.ts +10 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.js +67 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleHeader.d.ts +15 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleHeader.js +46 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleHeader.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.d.ts +8 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.js +69 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.d.ts +6 -0
- package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.js +53 -0
- package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/index.d.ts +1 -0
- package/lib/components/organisms/GanttView/scale/index.js +19 -0
- package/lib/components/organisms/GanttView/scale/index.js.map +1 -0
- package/lib/components/organisms/GanttView/types.d.ts +87 -0
- package/lib/components/organisms/GanttView/types.js +19 -0
- package/lib/components/organisms/GanttView/types.js.map +1 -0
- package/lib/components/organisms/GanttView/use-default-zoom.d.ts +2 -0
- package/lib/components/organisms/GanttView/use-default-zoom.js +23 -0
- package/lib/components/organisms/GanttView/use-default-zoom.js.map +1 -0
- package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js +6 -2
- package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js.map +1 -1
- package/lib/components/organisms/HeaderContainer/HeaderContainer.js +21 -17
- package/lib/components/organisms/HeaderContainer/HeaderContainer.js.map +1 -1
- package/lib/components/organisms/ImageBubble/ImageBubble.d.ts +1 -1
- package/lib/components/organisms/ImageBubble/ImageBubble.js +4 -7
- package/lib/components/organisms/ImageBubble/ImageBubble.js.map +1 -1
- package/lib/components/organisms/InfoBubble/InfoBubble.js +1 -1
- package/lib/components/organisms/InfoBubble/InfoBubble.js.map +1 -1
- package/lib/components/organisms/InfoButton/InfoButton.d.ts +1 -1
- package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js +6 -10
- package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js.map +1 -1
- package/lib/components/organisms/Picker/Picker.d.ts +2 -1
- package/lib/components/organisms/Picker/Picker.js +25 -29
- package/lib/components/organisms/Picker/Picker.js.map +1 -1
- package/lib/components/organisms/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/components/organisms/ProgressBar/ProgressBar.js +11 -16
- package/lib/components/organisms/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/components/organisms/QuantityCard/QuantityCard.d.ts +3 -2
- package/lib/components/organisms/QuantityCard/QuantityCard.js +47 -56
- package/lib/components/organisms/QuantityCard/QuantityCard.js.map +1 -1
- package/lib/components/organisms/ScrollList/DottedButton.js +10 -18
- package/lib/components/organisms/ScrollList/DottedButton.js.map +1 -1
- package/lib/components/organisms/ScrollList/ScrollList.js +9 -7
- package/lib/components/organisms/ScrollList/ScrollList.js.map +1 -1
- package/lib/components/organisms/ScrollList/TopActions.js +5 -3
- package/lib/components/organisms/ScrollList/TopActions.js.map +1 -1
- package/lib/components/organisms/SearchBar/SearchBar.d.ts +3 -3
- package/lib/components/organisms/SearchBar/SearchBar.js +15 -32
- package/lib/components/organisms/SearchBar/SearchBar.js.map +1 -1
- package/lib/components/organisms/SingleSelectScrollList/SingleSelectScrollList.js +1 -1
- package/lib/components/organisms/ToggleButton/ToggleButton.js +2 -2
- package/lib/components/organisms/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/organisms/ViewAllEditList/AllLinesAlert.js +14 -16
- package/lib/components/organisms/ViewAllEditList/AllLinesAlert.js.map +1 -1
- package/lib/components/organisms/ViewAllEditList/LineComponent.js +6 -8
- package/lib/components/organisms/ViewAllEditList/LineComponent.js.map +1 -1
- package/lib/components/organisms/ViewAllEditList/ViewAllEditList.d.ts +3 -2
- package/lib/components/organisms/ViewAllEditList/ViewAllEditList.js +5 -9
- package/lib/components/organisms/ViewAllEditList/ViewAllEditList.js.map +1 -1
- package/lib/components/organisms/WeekDayPicker/DayGauge.d.ts +18 -0
- package/lib/components/organisms/WeekDayPicker/DayGauge.js +112 -0
- package/lib/components/organisms/WeekDayPicker/DayGauge.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/WeekDayPicker.d.ts +18 -0
- package/lib/components/organisms/WeekDayPicker/WeekDayPicker.js +118 -0
- package/lib/components/organisms/WeekDayPicker/WeekDayPicker.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/WeekRow.d.ts +15 -0
- package/lib/components/organisms/WeekDayPicker/WeekRow.js +39 -0
- package/lib/components/organisms/WeekDayPicker/WeekRow.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/index.d.ts +3 -0
- package/lib/components/organisms/WeekDayPicker/index.js +20 -0
- package/lib/components/organisms/WeekDayPicker/index.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/types.d.ts +17 -0
- package/lib/components/organisms/WeekDayPicker/types.js +19 -0
- package/lib/components/organisms/WeekDayPicker/types.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/week-day.helpers.d.ts +9 -0
- package/lib/components/organisms/WeekDayPicker/week-day.helpers.js +83 -0
- package/lib/components/organisms/WeekDayPicker/week-day.helpers.js.map +1 -0
- package/lib/components/organisms/index.d.ts +4 -0
- package/lib/components/organisms/index.js +4 -0
- package/lib/components/organisms/index.js.map +1 -1
- package/lib/components/templates/BottomBar/BottomBar.js +81 -22
- package/lib/components/templates/BottomBar/BottomBar.js.map +1 -1
- package/lib/components/templates/BottomBar/ItemTitle.d.ts +1 -1
- package/lib/components/templates/BottomBar/ItemTitle.js +1 -2
- package/lib/components/templates/BottomBar/ItemTitle.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/BarChart.js +3 -3
- package/lib/components/templates/Dashboard/Chart/BarChart.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js +1 -1
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js +24 -20
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js.map +1 -1
- package/lib/components/templates/ObjectCard/ObjectCard.d.ts +3 -2
- package/lib/components/templates/ObjectCard/ObjectCard.js +46 -32
- package/lib/components/templates/ObjectCard/ObjectCard.js.map +1 -1
- package/lib/components/templates/TabsScreen/Tab.js +1 -1
- package/lib/components/templates/TabsScreen/Tab.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-click-outside.js +2 -2
- package/lib/hooks/use-click-outside.js.map +1 -1
- package/lib/hooks/use-orientation.d.ts +1 -0
- package/lib/hooks/use-orientation.js +23 -0
- package/lib/hooks/use-orientation.js.map +1 -0
- package/lib/theme/color/ThemeContext.js +1 -1
- package/lib/theme/color/ThemeContext.js.map +1 -1
- package/lib/theme/color/color.defaults.js +22 -22
- package/lib/theme/color/content.helpers.d.ts +2 -1
- package/lib/theme/color/content.helpers.js +47 -45
- package/lib/theme/color/content.helpers.js.map +1 -1
- package/lib/theme/color/themes.js +83 -80
- package/lib/theme/color/themes.js.map +1 -1
- package/lib/theme/color/types.d.ts +1 -0
- package/lib/theme/writing/writingTheme.js +5 -5
- package/lib/tools/AnimationUtil.d.ts +18 -3
- package/lib/utils/calendar.d.ts +42 -0
- package/lib/utils/calendar.js +64 -0
- package/lib/utils/calendar.js.map +1 -0
- package/lib/utils/commons-styles.d.ts +8 -20
- package/lib/utils/commons-styles.js +14 -22
- package/lib/utils/commons-styles.js.map +1 -1
- package/lib/utils/commons-utlis.d.ts +1 -0
- package/lib/utils/commons-utlis.js +7 -0
- package/lib/utils/commons-utlis.js.map +1 -1
- package/lib/utils/dates.d.ts +30 -0
- package/lib/utils/dates.js +142 -0
- package/lib/utils/dates.js.map +1 -0
- package/lib/utils/index.d.ts +10 -8
- package/lib/utils/index.js +4 -2
- package/lib/utils/index.js.map +1 -1
- package/package.json +14 -14
|
@@ -27,12 +27,12 @@ const isValidString = (string) => {
|
|
|
27
27
|
const TIME_WITHOUT_INPUT = 2000;
|
|
28
28
|
const TIME_BETWEEN_CALL = 1000;
|
|
29
29
|
const ITEM_HEIGHT = 40;
|
|
30
|
-
const AutoCompleteSearch = ({ title, objectList, value = null, required = false, readonly = false, onChangeValue, fetchData = () => { }, displayValue, placeholder, changeScreenAfter = false, navigate = false, oneFilter = false, onSelection = () => { }, onScanPress, scanIconColor
|
|
30
|
+
const AutoCompleteSearch = ({ title, objectList, value = null, required = false, readonly = false, onChangeValue, fetchData = () => { }, displayValue, placeholder, changeScreenAfter = false, navigate = false, oneFilter = false, onSelection = () => { }, onScanPress, scanIconColor, selectLastItem = true, style, showDetailsPopup = false, loadingList, moreLoading, isListEnd, translator, isScrollViewContainer = false, isScannableInput, }) => {
|
|
31
31
|
const [displayList, setDisplayList] = useState(false);
|
|
32
|
-
const [previousState, setPreviousState] = useState(
|
|
32
|
+
const [previousState, setPreviousState] = useState();
|
|
33
33
|
const [selected, setSelected] = useState(value ? true : false);
|
|
34
34
|
const [isPopupVisible, setPopupIsVisible] = useState(false);
|
|
35
|
-
const [searchText, setSearchText] = useState(value ? displayValue(value) :
|
|
35
|
+
const [searchText, setSearchText] = useState(value ? displayValue?.(value) : undefined);
|
|
36
36
|
let timeOutRequestCall = useRef(null);
|
|
37
37
|
let intervalRequestCall = useRef(null);
|
|
38
38
|
const inputRef = useRef(null);
|
|
@@ -64,7 +64,7 @@ const AutoCompleteSearch = ({ title, objectList, value = null, required = false,
|
|
|
64
64
|
inputRef?.current?.blur();
|
|
65
65
|
setDisplayList(false);
|
|
66
66
|
setSelected(true);
|
|
67
|
-
setSearchText(changeScreenAfter ? '' : displayValue(item));
|
|
67
|
+
setSearchText(changeScreenAfter ? '' : displayValue?.(item));
|
|
68
68
|
setPopupIsVisible(false);
|
|
69
69
|
onChangeValue?.(item);
|
|
70
70
|
}
|
|
@@ -115,7 +115,7 @@ const AutoCompleteSearch = ({ title, objectList, value = null, required = false,
|
|
|
115
115
|
if (isValidString(searchText) && !selected) {
|
|
116
116
|
if (set.length === 1 && selectLastItem) {
|
|
117
117
|
const shouldResetValue = changeScreenAfter || oneFilter;
|
|
118
|
-
setSearchText(shouldResetValue ? '' : displayValue(set[0]));
|
|
118
|
+
setSearchText(shouldResetValue ? '' : displayValue?.(set[0]));
|
|
119
119
|
setDisplayList(false);
|
|
120
120
|
stopInterval();
|
|
121
121
|
onChangeValue?.(set[0]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoCompleteSearch.js","sourceRoot":"","sources":["../../../../src/components/organisms/AutoCompleteSearch/AutoCompleteSearch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAC,QAAQ,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"AutoCompleteSearch.js","sourceRoot":"","sources":["../../../../src/components/organisms/AutoCompleteSearch/AutoCompleteSearch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAqB,IAAI,EAAC,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAC,sB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onSelect, title, isSelected }: {
|
|
2
|
+
declare const ItemCard: ({ onSelect, title, isSelected, }: {
|
|
3
3
|
onSelect?: () => void;
|
|
4
|
-
title
|
|
4
|
+
title?: string;
|
|
5
5
|
isSelected?: boolean;
|
|
6
6
|
}) => React.JSX.Element;
|
|
7
7
|
export default ItemCard;
|
|
@@ -15,45 +15,38 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import React
|
|
18
|
+
import React from 'react';
|
|
19
19
|
import { StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
20
20
|
import { useThemeColor } from '../../../theme';
|
|
21
|
-
import { Icon, Text } from '../../atoms';
|
|
22
|
-
const ItemCard = ({ onSelect
|
|
21
|
+
import { HorizontalRule, Icon, Text } from '../../atoms';
|
|
22
|
+
const ItemCard = ({ onSelect, title, isSelected = false, }) => {
|
|
23
23
|
const Colors = useThemeColor();
|
|
24
|
-
const styles = useMemo(() => getStyles(Colors, isSelected), [Colors, isSelected]);
|
|
25
24
|
return (<View>
|
|
26
25
|
<TouchableOpacity activeOpacity={0.9} style={styles.item} onPress={onSelect}>
|
|
27
|
-
<Text style={styles.text} writingType="important"
|
|
28
|
-
{title}
|
|
26
|
+
<Text style={styles.text} writingType="important">
|
|
27
|
+
{title ?? ''}
|
|
29
28
|
</Text>
|
|
30
|
-
{isSelected
|
|
29
|
+
{isSelected ? (<Icon name="check-lg" color={Colors.primaryColor.background}/>) : (<Icon name="chevron-right" size={15} color={Colors.secondaryColor.background_light}/>)}
|
|
31
30
|
</TouchableOpacity>
|
|
32
|
-
<
|
|
31
|
+
<HorizontalRule style={styles.border} color={Colors.secondaryColor.background_light} width={0.5}/>
|
|
33
32
|
</View>);
|
|
34
33
|
};
|
|
35
|
-
const
|
|
34
|
+
const styles = StyleSheet.create({
|
|
36
35
|
item: {
|
|
37
36
|
minHeight: 40,
|
|
38
37
|
flexDirection: 'row',
|
|
39
|
-
|
|
38
|
+
alignItems: 'center',
|
|
40
39
|
position: 'relative',
|
|
41
40
|
width: '100%',
|
|
41
|
+
padding: 10,
|
|
42
|
+
gap: 5,
|
|
42
43
|
},
|
|
43
44
|
text: {
|
|
44
45
|
alignSelf: 'center',
|
|
45
|
-
|
|
46
|
-
marginVertical: 7,
|
|
47
|
-
marginLeft: 10,
|
|
46
|
+
flex: 1,
|
|
48
47
|
},
|
|
49
48
|
border: {
|
|
50
|
-
|
|
51
|
-
borderBottomWidth: 1,
|
|
52
|
-
width: '104%',
|
|
53
|
-
left: -14,
|
|
54
|
-
},
|
|
55
|
-
icon: {
|
|
56
|
-
marginRight: 10,
|
|
49
|
+
width: '100%',
|
|
57
50
|
},
|
|
58
51
|
});
|
|
59
52
|
export default ItemCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/AutoCompleteSearch/ItemCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ItemCard.js","sourceRoot":"","sources":["../../../../src/components/organisms/AutoCompleteSearch/ItemCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,cAAc,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAEvD,MAAM,QAAQ,GAAG,CAAC,EAChB,QAAQ,EACR,KAAK,EACL,UAAU,GAAG,KAAK,GAKnB,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,OAAO,CACL,CAAC,IAAI,CACH;MAAA,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C,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React, { useState, useCallback } from 'react';
|
|
19
19
|
import { Dimensions, StyleSheet, View } from 'react-native';
|
|
20
|
-
import { checkNullString } from '../../../utils
|
|
20
|
+
import { checkNullString } from '../../../utils';
|
|
21
21
|
import { Alert } from '../../molecules';
|
|
22
22
|
import { AutoCompleteSearch, ScrollList } from '../../organisms';
|
|
23
23
|
import ItemCard from './ItemCard';
|
|
@@ -26,10 +26,10 @@ const SearchDetailsPopUp = ({ isVisible, objectList, value = null, placeholder,
|
|
|
26
26
|
const fetchAPI = useCallback(({ page = 0, searchValue }) => {
|
|
27
27
|
if (isVisible) {
|
|
28
28
|
setSearchText(searchValue);
|
|
29
|
-
fetchData({ page, searchValue });
|
|
29
|
+
fetchData?.({ page, searchValue });
|
|
30
30
|
}
|
|
31
31
|
}, [fetchData, isVisible]);
|
|
32
|
-
const filterAPI = useCallback(data => fetchAPI(data), [fetchAPI]);
|
|
32
|
+
const filterAPI = useCallback((data) => fetchAPI(data), [fetchAPI]);
|
|
33
33
|
const scrollAPI = useCallback((page) => fetchAPI({ page }), [fetchAPI]);
|
|
34
34
|
return (<Alert visible={isVisible} style={styles.popup} cancelButtonConfig={{
|
|
35
35
|
showInHeader: true,
|
|
@@ -37,7 +37,7 @@ const SearchDetailsPopUp = ({ isVisible, objectList, value = null, placeholder,
|
|
|
37
37
|
}}>
|
|
38
38
|
<View style={styles.container}>
|
|
39
39
|
<AutoCompleteSearch objectList={objectList} onChangeValue={onSelect} fetchData={filterAPI} displayValue={displayValue} placeholder={placeholder} oneFilter={true} showDetailsPopup={false} style={styles.input}/>
|
|
40
|
-
<ScrollList style={styles.scroll} loadingList={loadingList} data={objectList} renderItem={({ item }) => (<ItemCard onSelect={() => onSelect(item)} title={displayValue(item)} isSelected={value === displayValue(item)}/>)} fetchData={scrollAPI} moreLoading={moreLoading} isListEnd={isListEnd} filter={!checkNullString(searchText)} translator={translator}/>
|
|
40
|
+
<ScrollList style={styles.scroll} loadingList={loadingList ?? false} data={objectList} renderItem={({ item }) => (<ItemCard onSelect={() => onSelect?.(item)} title={displayValue?.(item)} isSelected={value === displayValue?.(item)}/>)} fetchData={scrollAPI} moreLoading={moreLoading ?? false} isListEnd={isListEnd ?? true} filter={!checkNullString(searchText)} translator={translator}/>
|
|
41
41
|
</View>
|
|
42
42
|
</Alert>);
|
|
43
43
|
};
|
|
@@ -48,19 +48,18 @@ const styles = StyleSheet.create({
|
|
|
48
48
|
paddingHorizontal: 10,
|
|
49
49
|
paddingRight: 10,
|
|
50
50
|
paddingVertical: 10,
|
|
51
|
-
paddingTop: 20,
|
|
52
51
|
position: 'absolute',
|
|
53
|
-
|
|
52
|
+
gap: 0,
|
|
54
53
|
},
|
|
55
54
|
container: {
|
|
56
|
-
|
|
55
|
+
flex: 1,
|
|
56
|
+
width: '100%',
|
|
57
57
|
},
|
|
58
58
|
input: {
|
|
59
59
|
width: '100%',
|
|
60
60
|
},
|
|
61
61
|
scroll: {
|
|
62
|
-
|
|
63
|
-
height: '100%',
|
|
62
|
+
flex: 1,
|
|
64
63
|
},
|
|
65
64
|
});
|
|
66
65
|
export default SearchDetailsPopUp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchDetailsPopUp.js","sourceRoot":"","sources":["../../../../src/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AACnD,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"SearchDetailsPopUp.js","sourceRoot":"","sources":["../../../../src/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.t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M,CAAC,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CACrC,UAAU,CAAC,CAAC,UAAU,CAAC,EAE3B;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE;QACL,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,GAAG;QAC7C,SAAS,EAAE,IAAI;QACf,iBAAiB,EAAE,EAAE;QACrB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;KACP;IACD,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,MAAM;KACd;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM;KACd;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CalendarDaySheetProps {
|
|
3
|
+
dateString?: string;
|
|
4
|
+
events?: any[];
|
|
5
|
+
canSelect: boolean;
|
|
6
|
+
translator: (key: string) => string;
|
|
7
|
+
renderEvent?: (event: any, closeSheet: () => void) => React.ReactNode;
|
|
8
|
+
onSelect: () => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const CalendarDaySheet: ({ dateString, events, canSelect, translator, renderEvent, onSelect, onClose, }: CalendarDaySheetProps) => React.JSX.Element;
|
|
12
|
+
export default CalendarDaySheet;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { formatDateString } from '../../../utils';
|
|
21
|
+
import { useThemeColor } from '../../../theme';
|
|
22
|
+
import { BottomSheet, Button } from '../../molecules';
|
|
23
|
+
import { Text } from '../../atoms';
|
|
24
|
+
const CalendarDaySheet = ({ dateString, events, canSelect, translator, renderEvent, onSelect, onClose, }) => {
|
|
25
|
+
const Colors = useThemeColor();
|
|
26
|
+
const handleSelect = useCallback(() => {
|
|
27
|
+
onClose();
|
|
28
|
+
onSelect();
|
|
29
|
+
}, [onClose, onSelect]);
|
|
30
|
+
return (<BottomSheet visible={dateString != null} title={formatDateString(dateString, translator('Base_DateFormat'))} onClose={onClose}>
|
|
31
|
+
<View style={styles.container}>
|
|
32
|
+
{events?.map((event, index) => (<View key={index} style={styles.event} testID={`calendarDaySheetEvent-${index}`}>
|
|
33
|
+
{renderEvent?.(event, onClose)}
|
|
34
|
+
</View>))}
|
|
35
|
+
{canSelect ? (<Button iconName="plus-lg" title={translator('Base_SelectThisDay')} onPress={handleSelect} style={styles.button}/>) : (<Text style={styles.fullDay} writingType="details" textColor={Colors.placeholderTextColor}>
|
|
36
|
+
{translator('Base_Calendar_FullDay')}
|
|
37
|
+
</Text>)}
|
|
38
|
+
</View>
|
|
39
|
+
</BottomSheet>);
|
|
40
|
+
};
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
container: {
|
|
43
|
+
width: '100%',
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
paddingBottom: 10,
|
|
46
|
+
gap: 10,
|
|
47
|
+
},
|
|
48
|
+
event: {
|
|
49
|
+
width: '100%',
|
|
50
|
+
},
|
|
51
|
+
button: {
|
|
52
|
+
marginTop: 5,
|
|
53
|
+
},
|
|
54
|
+
fullDay: {
|
|
55
|
+
textAlign: 'center',
|
|
56
|
+
paddingVertical: 5,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
export default CalendarDaySheet;
|
|
60
|
+
//# sourceMappingURL=CalendarDaySheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarDaySheet.js","sourceRoot":"","sources":["../../../../src/components/organisms/CalendarRangePicker/CalendarDaySheet.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AAYjC,MAAM,gBAAgB,GAAG,CAAC,EACxB,UAAU,EACV,MAAM,EACN,SAAS,EACT,UAAU,EACV,WAAW,EACX,QAAQ,EACR,OAAO,GACe,EAAE,EAAE;IAC1B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,YAAY,GAAG,WAAW,CAAC,GAAG,EAAE;QACpC,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,CAAC;IACb,CAAC,EAAE,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AU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,QAAQ;QACpB,aAAa,EAAE,EAAE;QACjB,GAAG,EAAE,EAAE;KACR;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM;KACd;IACD,MAAM,EAAE;QACN,SAAS,EAAE,CAAC;KACb;IACD,OAAO,EAAE;QACP,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,CAAC;KACnB;CACF,CAAC,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Color } from '../../../theme';
|
|
3
|
+
import { DateRange, DayMark } from './types';
|
|
4
|
+
import { CalendarLegendItem } from '../../molecules';
|
|
5
|
+
interface CalendarRangePickerProps {
|
|
6
|
+
selection: DateRange;
|
|
7
|
+
onSelectionChange: (selection: DateRange) => void;
|
|
8
|
+
marksByDate?: Record<string, DayMark>;
|
|
9
|
+
disabledDates?: Record<string, Color>;
|
|
10
|
+
monthsBefore?: number;
|
|
11
|
+
monthsAfter?: number;
|
|
12
|
+
firstDayOfWeek?: number;
|
|
13
|
+
disabledColor: Color;
|
|
14
|
+
disabledTitle?: string;
|
|
15
|
+
legendItems?: CalendarLegendItem[];
|
|
16
|
+
showTodayButton?: boolean;
|
|
17
|
+
renderEvent?: (event: any, closeSheet: () => void) => React.ReactNode;
|
|
18
|
+
readonly?: boolean;
|
|
19
|
+
disableFullDaySelection?: boolean;
|
|
20
|
+
translator: (key: string) => string;
|
|
21
|
+
onVisibleRangeChange?: (range: {
|
|
22
|
+
fromDate: string;
|
|
23
|
+
toDate: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
style?: any;
|
|
26
|
+
}
|
|
27
|
+
declare const CalendarRangePicker: ({ selection, onSelectionChange, marksByDate, disabledDates, monthsBefore, monthsAfter, firstDayOfWeek, disabledColor, disabledTitle, legendItems, showTodayButton, renderEvent, readonly, disableFullDaySelection, translator, onVisibleRangeChange, style, }: CalendarRangePickerProps) => React.JSX.Element;
|
|
28
|
+
export default CalendarRangePicker;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
19
|
+
import { FlatList, StyleSheet, View } from 'react-native';
|
|
20
|
+
import { buildMonthLayout, buildMonths, monthIndexOf, toDateString, } from '../../../utils';
|
|
21
|
+
import { CalendarLegend } from '../../molecules';
|
|
22
|
+
import CalendarDaySheet from './CalendarDaySheet';
|
|
23
|
+
import RangeMonth from './RangeMonth';
|
|
24
|
+
import { applyDayPress, clampRange, getMonthSelection, hasEvents, isDayFull, sliceDisabledByMonth, sliceMarksByMonth, } from './calendar-range.helpers';
|
|
25
|
+
const EMPTY_DATA = {};
|
|
26
|
+
const viewabilityConfig = { itemVisiblePercentThreshold: 10 };
|
|
27
|
+
const VISIBLE_RANGE_DELAY = 300;
|
|
28
|
+
const CalendarRangePicker = ({ selection, onSelectionChange, marksByDate = EMPTY_DATA, disabledDates = EMPTY_DATA, monthsBefore = 12, monthsAfter = 12, firstDayOfWeek = 1, disabledColor, disabledTitle, legendItems, showTodayButton = true, renderEvent, readonly = false, disableFullDaySelection = true, translator, onVisibleRangeChange, style, }) => {
|
|
29
|
+
const referenceDate = useRef(new Date());
|
|
30
|
+
const todayDateString = useMemo(() => toDateString(referenceDate.current), []);
|
|
31
|
+
const months = useMemo(() => buildMonths(referenceDate.current, monthsBefore, monthsAfter, firstDayOfWeek), [firstDayOfWeek, monthsAfter, monthsBefore]);
|
|
32
|
+
const { heights, offsets } = useMemo(() => buildMonthLayout(months), [months]);
|
|
33
|
+
const marksByMonth = useMemo(() => sliceMarksByMonth(marksByDate, months), [marksByDate, months]);
|
|
34
|
+
const disabledByMonth = useMemo(() => sliceDisabledByMonth(disabledDates, months), [disabledDates, months]);
|
|
35
|
+
const selectionRef = useRef(selection);
|
|
36
|
+
selectionRef.current = selection;
|
|
37
|
+
const [sheetDate, setSheetDate] = useState();
|
|
38
|
+
const marksRef = useRef(marksByDate);
|
|
39
|
+
marksRef.current = marksByDate;
|
|
40
|
+
const disabledRef = useRef(disabledDates);
|
|
41
|
+
disabledRef.current = disabledDates;
|
|
42
|
+
const applySelection = useCallback((dateString) => {
|
|
43
|
+
const range = applyDayPress(dateString, selectionRef.current);
|
|
44
|
+
onSelectionChange(disableFullDaySelection
|
|
45
|
+
? clampRange(range, _date => isDayFull(marksRef.current?.[_date]))
|
|
46
|
+
: range);
|
|
47
|
+
}, [disableFullDaySelection, onSelectionChange]);
|
|
48
|
+
const handleDayPress = useCallback((dateString) => {
|
|
49
|
+
const mark = marksRef.current?.[dateString];
|
|
50
|
+
if (hasEvents(mark) && renderEvent != null) {
|
|
51
|
+
setSheetDate(dateString);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (readonly || (disableFullDaySelection && isDayFull(mark)))
|
|
55
|
+
return;
|
|
56
|
+
applySelection(dateString);
|
|
57
|
+
}, [applySelection, disableFullDaySelection, readonly, renderEvent]);
|
|
58
|
+
const closeSheet = useCallback(() => setSheetDate(undefined), []);
|
|
59
|
+
const handleSheetSelect = useCallback(() => applySelection(sheetDate), [applySelection, sheetDate]);
|
|
60
|
+
const sheetMark = sheetDate == null ? undefined : marksByDate?.[sheetDate];
|
|
61
|
+
const isSheetDayBookable = sheetDate != null && disabledDates?.[sheetDate] == null;
|
|
62
|
+
const renderItem = useCallback(({ item }) => {
|
|
63
|
+
const monthSelection = getMonthSelection(item, selection);
|
|
64
|
+
return (<RangeMonth month={item} marks={marksByMonth[item.monthKey]} disabledDates={disabledByMonth[item.monthKey]} selectionStart={monthSelection.startDate} selectionEnd={monthSelection.endDate} todayDateString={todayDateString} firstDayOfWeek={firstDayOfWeek} disabledColor={disabledColor} translator={translator} onDayPress={handleDayPress}/>);
|
|
65
|
+
}, [
|
|
66
|
+
disabledByMonth,
|
|
67
|
+
firstDayOfWeek,
|
|
68
|
+
handleDayPress,
|
|
69
|
+
marksByMonth,
|
|
70
|
+
disabledColor,
|
|
71
|
+
selection,
|
|
72
|
+
todayDateString,
|
|
73
|
+
translator,
|
|
74
|
+
]);
|
|
75
|
+
const getItemLayout = useCallback((_, index) => ({
|
|
76
|
+
length: heights[index],
|
|
77
|
+
offset: offsets[index],
|
|
78
|
+
index,
|
|
79
|
+
}), [heights, offsets]);
|
|
80
|
+
const keyExtractor = useCallback((item) => item.key, []);
|
|
81
|
+
const list = useRef(null);
|
|
82
|
+
const todayIndex = useMemo(() => monthIndexOf(months, todayDateString), [months, todayDateString]);
|
|
83
|
+
const _legendItems = useMemo(() => {
|
|
84
|
+
if (disabledTitle == null)
|
|
85
|
+
return legendItems;
|
|
86
|
+
return [
|
|
87
|
+
...(legendItems ?? []),
|
|
88
|
+
{ key: 'disabled', title: disabledTitle, color: disabledColor },
|
|
89
|
+
];
|
|
90
|
+
}, [disabledColor, disabledTitle, legendItems]);
|
|
91
|
+
const scrollToToday = useCallback(() => {
|
|
92
|
+
if (todayIndex >= 0) {
|
|
93
|
+
list.current?.scrollToIndex({ index: todayIndex, animated: true });
|
|
94
|
+
}
|
|
95
|
+
}, [todayIndex]);
|
|
96
|
+
const lastEmittedRange = useRef(undefined);
|
|
97
|
+
const emitTimeout = useRef(undefined);
|
|
98
|
+
useEffect(() => () => clearTimeout(emitTimeout.current), []);
|
|
99
|
+
const emitVisibleRange = useRef(undefined);
|
|
100
|
+
emitVisibleRange.current = (viewableItems) => {
|
|
101
|
+
if (onVisibleRangeChange == null || viewableItems.length === 0)
|
|
102
|
+
return;
|
|
103
|
+
const indexes = viewableItems
|
|
104
|
+
.map(({ index }) => index)
|
|
105
|
+
.filter(index => index != null);
|
|
106
|
+
if (indexes.length === 0)
|
|
107
|
+
return;
|
|
108
|
+
const firstMonth = months[Math.max(Math.min(...indexes) - 1, 0)];
|
|
109
|
+
const lastMonth = months[Math.min(Math.max(...indexes) + 1, months.length - 1)];
|
|
110
|
+
const fromDate = `${firstMonth.monthKey}-01`;
|
|
111
|
+
const toDate = toDateString(new Date(lastMonth.year, lastMonth.monthIndex + 1, 0));
|
|
112
|
+
const rangeKey = `${fromDate}_${toDate}`;
|
|
113
|
+
if (rangeKey === lastEmittedRange.current)
|
|
114
|
+
return;
|
|
115
|
+
lastEmittedRange.current = rangeKey;
|
|
116
|
+
clearTimeout(emitTimeout.current);
|
|
117
|
+
emitTimeout.current = setTimeout(() => onVisibleRangeChange({ fromDate, toDate }), VISIBLE_RANGE_DELAY);
|
|
118
|
+
};
|
|
119
|
+
const viewabilityConfigCallbackPairs = useRef([
|
|
120
|
+
{
|
|
121
|
+
viewabilityConfig,
|
|
122
|
+
onViewableItemsChanged: ({ viewableItems, }) => emitVisibleRange.current?.(viewableItems),
|
|
123
|
+
},
|
|
124
|
+
]);
|
|
125
|
+
return (<View style={[styles.container, style]}>
|
|
126
|
+
<CalendarLegend items={_legendItems} showTodayButton={showTodayButton} translator={translator} onTodayPress={scrollToToday}/>
|
|
127
|
+
<FlatList ref={list} data={months} renderItem={renderItem} keyExtractor={keyExtractor} getItemLayout={getItemLayout} initialScrollIndex={monthsBefore} initialNumToRender={2} maxToRenderPerBatch={2} windowSize={5} removeClippedSubviews showsVerticalScrollIndicator={false} viewabilityConfigCallbackPairs={viewabilityConfigCallbackPairs.current} testID="calendarRangePickerList"/>
|
|
128
|
+
<CalendarDaySheet dateString={sheetDate} events={sheetMark?.events} canSelect={!readonly &&
|
|
129
|
+
isSheetDayBookable &&
|
|
130
|
+
(!disableFullDaySelection || !isDayFull(sheetMark))} translator={translator} renderEvent={renderEvent} onSelect={handleSheetSelect} onClose={closeSheet}/>
|
|
131
|
+
</View>);
|
|
132
|
+
};
|
|
133
|
+
const styles = StyleSheet.create({
|
|
134
|
+
container: {
|
|
135
|
+
flex: 1,
|
|
136
|
+
width: '100%',
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
export default CalendarRangePicker;
|
|
140
|
+
//# sourceMappingURL=CalendarRangePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarRangePicker.js","sourceRoot":"","sources":["../../../../src/components/organisms/CalendarRangePicker/CalendarRangePicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAC,QAAQ,EAAiB,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAEvE,OAAO,EACL,gBAAgB,EAChB,WAAW,EAEX,YAAY,EACZ,YAAY,GACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAC,cAAc,EAAqB,MAAM,iBAAiB,CAAC;AACnE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EACL,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAsBlC,MAAM,UAAU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ACf,UAAU,CAAC,CAAC,SAAS,CAAC,CACtB,MAAM,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAC1B,SAAS,CAAC,CACR,CAAC,QAAQ;YACT,kBAAkB;YAClB,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CACpD,CAAC,CACD,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAC5B,OAAO,CAAC,CAAC,UAAU,CAAC,EAExB;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Color } from '../../../theme';
|
|
3
|
+
interface DayCellProps {
|
|
4
|
+
dateString: string;
|
|
5
|
+
dayNumber: number;
|
|
6
|
+
isWeekEnd: boolean;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
isToday: boolean;
|
|
9
|
+
isDisabled: boolean;
|
|
10
|
+
hasEvents: boolean;
|
|
11
|
+
morningColor?: Color;
|
|
12
|
+
afternoonColor?: Color;
|
|
13
|
+
disabledColor: Color;
|
|
14
|
+
onPress: (dateString: string) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: React.MemoExoticComponent<({ dateString, dayNumber, isWeekEnd, isSelected, isToday, isDisabled, hasEvents, morningColor, afternoonColor, disabledColor, onPress, }: DayCellProps) => React.JSX.Element>;
|
|
17
|
+
export default _default;
|