@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
|
@@ -29,8 +29,7 @@ const FormInput = ({ title, defaultValue, readOnly, style, required = false, onC
|
|
|
29
29
|
setValue(_value);
|
|
30
30
|
onChange?.(_value);
|
|
31
31
|
}, [onChange]);
|
|
32
|
-
const commonStyles = useMemo(() => getCommonStyles(Colors, _required), [Colors, _required]);
|
|
33
|
-
const styles = useMemo(() => getStyles(Colors, _required), [Colors, _required]);
|
|
32
|
+
const commonStyles = useMemo(() => getCommonStyles(Colors, _required, isFocused), [Colors, _required, isFocused]);
|
|
34
33
|
const handleSelection = useCallback(() => {
|
|
35
34
|
setIsFocused(true);
|
|
36
35
|
onSelection?.();
|
|
@@ -46,27 +45,21 @@ const FormInput = ({ title, defaultValue, readOnly, style, required = false, onC
|
|
|
46
45
|
{!checkNullString(title) && <Text style={styles.title}>{title}</Text>}
|
|
47
46
|
<View testID="formInputInnerContainer" style={[
|
|
48
47
|
commonStyles.filter,
|
|
49
|
-
commonStyles.filterSize,
|
|
50
48
|
commonStyles.filterAlign,
|
|
51
49
|
styles.content,
|
|
52
|
-
isFocused && commonStyles.inputFocused,
|
|
53
50
|
adjustHeightWithLines && { height: undefined },
|
|
54
51
|
]}>
|
|
55
52
|
<Input style={styles.input} value={value} onChange={onValueChange} onSelection={handleSelection} onEndFocus={handleEndFocus} keyboardType={keyboardType} numberOfLines={null} readOnly={readOnly} multiline={multiline}/>
|
|
56
53
|
</View>
|
|
57
54
|
</View>);
|
|
58
55
|
};
|
|
59
|
-
const
|
|
56
|
+
const styles = StyleSheet.create({
|
|
60
57
|
container: {
|
|
61
58
|
width: '90%',
|
|
62
59
|
minHeight: 62,
|
|
63
60
|
},
|
|
64
61
|
content: {
|
|
65
62
|
width: '100%',
|
|
66
|
-
borderColor: _required
|
|
67
|
-
? Colors.errorColor.background
|
|
68
|
-
: Colors.secondaryColor.background,
|
|
69
|
-
borderWidth: 1,
|
|
70
63
|
marginHorizontal: 0,
|
|
71
64
|
minHeight: 40,
|
|
72
65
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormInput.js","sourceRoot":"","sources":["../../../../src/components/molecules/FormInput/FormInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAsB,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACnE,OAAO,
|
|
1
|
+
{"version":3,"file":"FormInput.js","sourceRoot":"","sources":["../../../../src/components/molecules/FormInput/FormInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAsB,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACnE,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAgBxC,MAAM,SAAS,GAAG,CAAC,EACjB,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,GAAG,KAAK,EACjB,qBAAqB,GAAG,KAAK,GACd,EAAE,EAAE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
*/
|
|
18
18
|
import React, { useMemo } from 'react';
|
|
19
19
|
import { StyleSheet, View } from 'react-native';
|
|
20
|
-
import { Slider, Text } from '../../atoms';
|
|
21
20
|
import { useThemeColor } from '../../../theme';
|
|
22
21
|
import { getCommonStyles } from '../../../utils';
|
|
22
|
+
import { Slider, Text } from '../../atoms';
|
|
23
23
|
const FormSlider = ({ style, title, color, minValue, minLimit, maxValue, maxLimit, step, displayStepNumber, defaultValue, displaySliderValue, readonly, onChange, }) => {
|
|
24
24
|
const Colors = useThemeColor();
|
|
25
25
|
const commonStyles = useMemo(() => getCommonStyles(Colors), [Colors]);
|
|
26
|
-
const styles = useMemo(() => getStyles(Colors.secondaryColor.background), [Colors]);
|
|
27
26
|
return (<View testID="formSliderContainer" style={[styles.container, style]}>
|
|
28
27
|
<Text style={styles.title}>{title}</Text>
|
|
29
|
-
<View style={[
|
|
30
|
-
commonStyles.filter,
|
|
31
|
-
commonStyles.filterSize,
|
|
32
|
-
commonStyles.filterAlign,
|
|
33
|
-
styles.content,
|
|
34
|
-
]}>
|
|
28
|
+
<View style={[commonStyles.filter, commonStyles.filterAlign, styles.content]}>
|
|
35
29
|
<Slider color={color} minValue={minValue} minLimit={minLimit} maxValue={maxValue} maxLimit={maxLimit} step={step} displayStepNumber={displayStepNumber} defaultValue={defaultValue} displaySliderValue={displaySliderValue} disabled={readonly} onChange={onChange}/>
|
|
36
30
|
</View>
|
|
37
31
|
</View>);
|
|
38
32
|
};
|
|
39
|
-
const
|
|
33
|
+
const styles = StyleSheet.create({
|
|
40
34
|
container: {
|
|
41
35
|
width: '90%',
|
|
42
36
|
minHeight: 62,
|
|
@@ -46,12 +40,8 @@ const getStyles = (color) => StyleSheet.create({
|
|
|
46
40
|
marginLeft: 10,
|
|
47
41
|
},
|
|
48
42
|
content: {
|
|
49
|
-
justifyContent: 'space-around',
|
|
50
43
|
width: '100%',
|
|
51
44
|
marginHorizontal: 0,
|
|
52
|
-
paddingHorizontal: 4,
|
|
53
|
-
borderWidth: 1,
|
|
54
|
-
borderColor: color,
|
|
55
45
|
},
|
|
56
46
|
});
|
|
57
47
|
export default FormSlider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSlider.js","sourceRoot":"","sources":["../../../../src/components/molecules/FormSlider/FormSlider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"FormSlider.js","sourceRoot":"","sources":["../../../../src/components/molecules/FormSlider/FormSlider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAQ,aAAa,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAkBzC,MAAM,UAAU,GAAG,CAAC,EAClB,KAAK,EACL,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACR,QAAQ,GACQ,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEtE,OAAO,CACL,CAAC,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,C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
|
|
5
|
+
itemStyle?: any;
|
|
6
|
+
ruleStyle?: any;
|
|
7
|
+
title?: string;
|
|
8
|
+
data: any[];
|
|
9
|
+
renderItem: (item: any, index: number) => any;
|
|
10
|
+
keyExtractor?: (item: any, index: number) => string;
|
|
11
|
+
}
|
|
12
|
+
declare const GroupedCard: ({ style, titleStyle, itemStyle, ruleStyle, title, data, renderItem, keyExtractor, }: GroupedCardProps) => React.JSX.Element;
|
|
13
|
+
export default GroupedCard;
|
|
@@ -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 from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { checkNullString } from '../../../utils';
|
|
21
|
+
import { useThemeColor } from '../../../theme';
|
|
22
|
+
import { Card, HorizontalRule, Text } from '../../atoms';
|
|
23
|
+
const GroupedCard = ({ style, titleStyle, itemStyle, ruleStyle, title, data, renderItem, keyExtractor, }) => {
|
|
24
|
+
const Colors = useThemeColor();
|
|
25
|
+
if (!Array.isArray(data) || data.length === 0)
|
|
26
|
+
return null;
|
|
27
|
+
return (<Card style={[styles.container, style]}>
|
|
28
|
+
{!checkNullString(title) && (<Text style={[styles.title, titleStyle]} fontSize={12} textColor={Colors.secondaryColor.background}>
|
|
29
|
+
{title}
|
|
30
|
+
</Text>)}
|
|
31
|
+
{data.map((item, index) => (<View key={keyExtractor ? keyExtractor(item, index) : index}>
|
|
32
|
+
{index > 0 && (<HorizontalRule style={[styles.rule, ruleStyle]} color={Colors.secondaryColor.background_light} width={0.5}/>)}
|
|
33
|
+
<View style={itemStyle} testID="groupedCardItem">
|
|
34
|
+
{renderItem(item, index)}
|
|
35
|
+
</View>
|
|
36
|
+
</View>))}
|
|
37
|
+
</Card>);
|
|
38
|
+
};
|
|
39
|
+
const styles = StyleSheet.create({
|
|
40
|
+
container: {
|
|
41
|
+
paddingHorizontal: 0,
|
|
42
|
+
paddingRight: 0,
|
|
43
|
+
paddingVertical: 4,
|
|
44
|
+
width: '90%',
|
|
45
|
+
alignSelf: 'center',
|
|
46
|
+
marginBottom: 8,
|
|
47
|
+
marginTop: 0,
|
|
48
|
+
},
|
|
49
|
+
title: {
|
|
50
|
+
marginVertical: 5,
|
|
51
|
+
marginLeft: 15,
|
|
52
|
+
fontWeight: 'bold',
|
|
53
|
+
},
|
|
54
|
+
rule: {
|
|
55
|
+
marginHorizontal: 0,
|
|
56
|
+
marginVertical: 4,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
export default GroupedCard;
|
|
60
|
+
//# sourceMappingURL=GroupedCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupedCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/GroupedCard/GroupedCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,E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I,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAC9C;YAAA,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAC1B;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CACJ;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,iBAAiB,EAAE,CAAC;QACpB,YAAY,EAAE,CAAC;QACf,eAAe,EAAE,CAAC;QAClB,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,QAAQ;QACnB,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,CAAC;KACb;IACD,KAAK,EAAE;QACL,cAAc,EAAE,CAAC;QACjB,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,MAAM;KACnB;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,CAAC;QACnB,cAAc,EAAE,CAAC;KAClB;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -17,17 +17,15 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useMemo } from 'react';
|
|
19
19
|
import { View, StyleSheet } from 'react-native';
|
|
20
|
-
import { HorizontalRule, Text } from '../../atoms';
|
|
21
20
|
import { useThemeColor } from '../../../theme';
|
|
21
|
+
import { HorizontalRule, Text } from '../../atoms';
|
|
22
22
|
const HorizontalRuleText = ({ style, textStyle, lineStyle, text, color: _color, }) => {
|
|
23
23
|
const Colors = useThemeColor();
|
|
24
24
|
const color = useMemo(() => _color ?? Colors.secondaryColor.background_light, [_color, Colors]);
|
|
25
|
-
const renderLine = useCallback(() => {
|
|
26
|
-
return (<HorizontalRule style={[styles.line, lineStyle, { borderColor: color }]}/>);
|
|
27
|
-
}, [color, lineStyle]);
|
|
25
|
+
const renderLine = useCallback(() => <HorizontalRule style={[styles.line, lineStyle]} color={color}/>, [color, lineStyle]);
|
|
28
26
|
return (<View style={[styles.container, style]} testID="horizontalRuleTextContainer">
|
|
29
27
|
{renderLine()}
|
|
30
|
-
<Text style={[styles.text, textStyle]}
|
|
28
|
+
<Text style={[styles.text, textStyle]} textColor={color}>
|
|
31
29
|
{text}
|
|
32
30
|
</Text>
|
|
33
31
|
{renderLine()}
|
|
@@ -38,10 +36,11 @@ const styles = StyleSheet.create({
|
|
|
38
36
|
flexDirection: 'row',
|
|
39
37
|
alignItems: 'center',
|
|
40
38
|
marginVertical: 2,
|
|
39
|
+
paddingHorizontal: 10,
|
|
40
|
+
gap: 10,
|
|
41
41
|
},
|
|
42
42
|
line: {
|
|
43
43
|
flex: 1,
|
|
44
|
-
marginHorizontal: 10,
|
|
45
44
|
},
|
|
46
45
|
text: {
|
|
47
46
|
textAlign: 'center',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalRuleText.js","sourceRoot":"","sources":["../../../../src/components/molecules/HorizontalRuleText/HorizontalRuleText.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"HorizontalRuleText.js","sourceRoot":"","sources":["../../../../src/components/molecules/HorizontalRuleText/HorizontalRuleText.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,cAAc,EAAE,IAAI,EAAC,MAAM,aAAa,CAA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S,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { Ref } from 'react';
|
|
2
|
-
import { KeyboardTypeOptions,
|
|
2
|
+
import { KeyboardTypeOptions, TextInputInstance } from 'react-native';
|
|
3
3
|
interface IconInputProps {
|
|
4
4
|
style?: any;
|
|
5
|
-
inputRef?: Ref<
|
|
6
|
-
value
|
|
7
|
-
onChange
|
|
5
|
+
inputRef?: Ref<TextInputInstance>;
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (_v?: string) => void;
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
readOnly?: boolean;
|
|
10
10
|
required?: boolean;
|
|
@@ -16,17 +16,15 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
19
|
-
import { StyleSheet, View } from 'react-native';
|
|
20
|
-
import { getCommonStyles } from '../../../utils
|
|
19
|
+
import { StyleSheet, View, } from 'react-native';
|
|
20
|
+
import { checkNullString, getCommonStyles } from '../../../utils';
|
|
21
21
|
import { useThemeColor } from '../../../theme';
|
|
22
|
-
import { Input } from '../../atoms';
|
|
23
|
-
import { checkNullString } from '../../../utils/strings';
|
|
22
|
+
import { Input, VerticalRule } from '../../atoms';
|
|
24
23
|
const IconInput = ({ style, inputRef, value, onChange, placeholder, readOnly, required = false, secureTextEntry, onSelection, multiline, numberOfLines, keyboardType, onEndFocus, isFocus = false, leftIconsList = [], rightIconsList = [], isScannableInput, }) => {
|
|
25
24
|
const Colors = useThemeColor();
|
|
26
|
-
const styles = useMemo(() => getStyles(Colors), [Colors]);
|
|
27
25
|
const [isFocused, setIsFocused] = useState(false);
|
|
28
26
|
const _required = useMemo(() => required && checkNullString(value), [required, value]);
|
|
29
|
-
const commonStyles = useMemo(() => getCommonStyles(Colors, _required), [Colors, _required]);
|
|
27
|
+
const commonStyles = useMemo(() => getCommonStyles(Colors, _required, isFocused), [Colors, _required, isFocused]);
|
|
30
28
|
const handleSelection = useCallback(() => {
|
|
31
29
|
setIsFocused(true);
|
|
32
30
|
onSelection?.();
|
|
@@ -35,30 +33,24 @@ const IconInput = ({ style, inputRef, value, onChange, placeholder, readOnly, re
|
|
|
35
33
|
setIsFocused(false);
|
|
36
34
|
onEndFocus?.();
|
|
37
35
|
}, [onEndFocus]);
|
|
38
|
-
|
|
36
|
+
const visibleRightIcons = useMemo(() => rightIconsList.filter(iconComponent => iconComponent?.props?.visible !== false), [rightIconsList]);
|
|
37
|
+
return (<View testID="iconInputContainer" style={[commonStyles.filter, commonStyles.filterAlign, style]}>
|
|
39
38
|
{leftIconsList.map((iconComponent, index) => React.cloneElement(iconComponent, { key: index }))}
|
|
40
39
|
<Input inputRef={inputRef} style={styles.input} value={value} onChange={onChange} placeholder={placeholder} readOnly={readOnly} secureTextEntry={secureTextEntry} onSelection={handleSelection} multiline={multiline} numberOfLines={numberOfLines} keyboardType={keyboardType} onEndFocus={handleEndFocus} isFocus={isFocus} isScannableInput={isScannableInput}/>
|
|
41
|
-
{
|
|
40
|
+
{visibleRightIcons.map((iconComponent, index) => (<React.Fragment key={index}>
|
|
41
|
+
{index > 0 && (<VerticalRule style={styles.divider} color={Colors.secondaryColor.background_light}/>)}
|
|
42
|
+
{React.cloneElement(iconComponent, { key: index })}
|
|
43
|
+
</React.Fragment>))}
|
|
42
44
|
</View>);
|
|
43
45
|
};
|
|
44
|
-
const
|
|
45
|
-
container: {
|
|
46
|
-
borderColor: Colors.secondaryColor.background,
|
|
47
|
-
borderWidth: 1,
|
|
48
|
-
borderRadius: 7,
|
|
49
|
-
backgroundColor: Colors.backgroundColor,
|
|
50
|
-
flexDirection: 'row',
|
|
51
|
-
justifyContent: 'space-between',
|
|
52
|
-
alignItems: 'center',
|
|
53
|
-
paddingLeft: 5,
|
|
54
|
-
paddingRight: 8,
|
|
55
|
-
marginHorizontal: 20,
|
|
56
|
-
marginVertical: 6,
|
|
57
|
-
minHeight: 40,
|
|
58
|
-
},
|
|
46
|
+
const styles = StyleSheet.create({
|
|
59
47
|
input: {
|
|
60
48
|
flex: 1,
|
|
61
49
|
},
|
|
50
|
+
divider: {
|
|
51
|
+
height: '60%',
|
|
52
|
+
marginHorizontal: 10,
|
|
53
|
+
},
|
|
62
54
|
});
|
|
63
55
|
export default IconInput;
|
|
64
56
|
//# sourceMappingURL=IconInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconInput.js","sourceRoot":"","sources":["../../../../src/components/molecules/IconInput/IconInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAM,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"IconInput.js","sourceRoot":"","sources":["../../../../src/components/molecules/IconInput/IconInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAM,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACjE,OAAO,EAEL,UAAU,EAEV,IAAI,GACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,KAAK,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAsBhD,MAAM,SAAS,GAAG,CAAC,EACjB,KAAK,EACL,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,eAAe,EACf,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACZ,UAAU,EACV,OAAO,GAAG,KAAK,EACf,aAAa,GAAG,EAAE,EAClB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K,EAAE;QACL,IAAI,EAAE,CAAC;KACR;IACD,OAAO,EAAE;QACP,MAAM,EAAE,KAAK;QACb,gBAAgB,EAAE,EAAE;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Color } from '../../../theme';
|
|
3
|
+
interface IconTileProps {
|
|
4
|
+
style?: any;
|
|
5
|
+
testID?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
iconSize?: number;
|
|
8
|
+
color?: Color;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
iconColor?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
padding?: number;
|
|
13
|
+
borderRadius?: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
onPress?: () => void;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
declare const IconTile: ({ style, testID, icon, iconSize, color, backgroundColor, iconColor, size, padding, borderRadius, disabled, onPress, children, }: IconTileProps) => React.JSX.Element;
|
|
19
|
+
export default IconTile;
|
|
@@ -0,0 +1,43 @@
|
|
|
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, { useMemo } from 'react';
|
|
19
|
+
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
20
|
+
import { useThemeColor } from '../../../theme';
|
|
21
|
+
import { Icon } from '../../atoms';
|
|
22
|
+
const IconTile = ({ style, testID, icon, iconSize = 18, color, backgroundColor, iconColor, size, padding = 10, borderRadius = 12, disabled = false, onPress, children, }) => {
|
|
23
|
+
const Colors = useThemeColor();
|
|
24
|
+
const _color = useMemo(() => color ?? Colors.primaryColor, [Colors.primaryColor, color]);
|
|
25
|
+
const _backgroundColor = useMemo(() => backgroundColor ?? _color.background_light, [backgroundColor, _color.background_light]);
|
|
26
|
+
const _iconColor = useMemo(() => iconColor ?? _color.background, [_color.background, iconColor]);
|
|
27
|
+
const styles = useMemo(() => getStyles(_backgroundColor, size, padding, borderRadius), [_backgroundColor, size, padding, borderRadius]);
|
|
28
|
+
return (<TouchableOpacity style={[styles.tile, style]} testID={testID} onPress={onPress} disabled={!onPress || disabled} activeOpacity={0.9}>
|
|
29
|
+
{icon != null && <Icon name={icon} size={iconSize} color={_iconColor}/>}
|
|
30
|
+
{children}
|
|
31
|
+
</TouchableOpacity>);
|
|
32
|
+
};
|
|
33
|
+
const getStyles = (backgroundColor, size, padding, borderRadius) => StyleSheet.create({
|
|
34
|
+
tile: {
|
|
35
|
+
...(size != null ? { width: size, height: size } : { padding }),
|
|
36
|
+
borderRadius,
|
|
37
|
+
justifyContent: 'center',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
backgroundColor,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
export default IconTile;
|
|
43
|
+
//# sourceMappingURL=IconTile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconTile.js","sourceRoot":"","sources":["../../../../src/components/molecules/IconTile/IconTile.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAA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AAC,CACf,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,QAAQ,CAAC,CAAC,CAAC,OAAO,IAAI,QAAQ,CAAC,CAC/B,aAAa,CAAC,CAAC,GAAG,CAAC,CACnB;MAAA,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,EAAG,CACxE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAChB,eAAmC,EACnC,IAAwB,EACxB,OAAe,EACf,YAAoB,EACpB,EAAE,CACF,UAAU,CAAC,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC,EAAC,OAAO,EAAC,CAAC;QAC3D,YAAY;QACZ,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,eAAe;KAChB;CACF,CAAC,CAAC;AAEL,eAAe,QAAQ,CAAC"}
|
|
@@ -6,7 +6,7 @@ interface IncrementProps {
|
|
|
6
6
|
value: string | undefined;
|
|
7
7
|
decimalSpacer?: string;
|
|
8
8
|
thousandSpacer?: string;
|
|
9
|
-
onValueChange: (_v?:
|
|
9
|
+
onValueChange: (_v?: string | number) => void;
|
|
10
10
|
onFocus?: () => void;
|
|
11
11
|
onBlur?: () => void;
|
|
12
12
|
readonly?: boolean;
|
|
@@ -73,12 +73,12 @@ const Increment = ({ style, inputStyle, value, decimalSpacer, thousandSpacer, on
|
|
|
73
73
|
}, [handleValueFormatting, isFocused, value]);
|
|
74
74
|
const handlePlus = () => {
|
|
75
75
|
const unformattedValue = defaultFormatting ? unformat(valueQty) : valueQty;
|
|
76
|
-
const newValue = parseFloat(unformattedValue) + stepSize;
|
|
76
|
+
const newValue = parseFloat(unformattedValue ?? '0') + stepSize;
|
|
77
77
|
handleResult(newValue);
|
|
78
78
|
};
|
|
79
79
|
const handleMinus = () => {
|
|
80
80
|
const unformattedValue = defaultFormatting ? unformat(valueQty) : valueQty;
|
|
81
|
-
const newValue = parseFloat(unformattedValue) - stepSize;
|
|
81
|
+
const newValue = parseFloat(unformattedValue ?? '0') - stepSize;
|
|
82
82
|
handleResult(newValue);
|
|
83
83
|
};
|
|
84
84
|
const handleEndInput = useCallback(() => {
|
|
@@ -95,7 +95,7 @@ const Increment = ({ style, inputStyle, value, decimalSpacer, thousandSpacer, on
|
|
|
95
95
|
const handleFocus = () => {
|
|
96
96
|
setIsFocused(true);
|
|
97
97
|
if (defaultFormatting) {
|
|
98
|
-
setValueQty(current => unformat(current).replace('.', decimalSpacer));
|
|
98
|
+
setValueQty((current) => unformat(current).replace('.', decimalSpacer));
|
|
99
99
|
}
|
|
100
100
|
if (inputRef.current?.setSelection) {
|
|
101
101
|
inputRef.current.setSelection(0, valueQty.length);
|
|
@@ -123,8 +123,6 @@ const getStyles = (Colors) => StyleSheet.create({
|
|
|
123
123
|
gap: 2,
|
|
124
124
|
},
|
|
125
125
|
input: {
|
|
126
|
-
fontSize: 23,
|
|
127
|
-
fontWeight: 'bold',
|
|
128
126
|
paddingBottom: 0,
|
|
129
127
|
textAlign: 'center',
|
|
130
128
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Increment.js","sourceRoot":"","sources":["../../../../src/components/molecules/Increment/Increment.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,EAEL,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,IAAI,GACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,cAAc,EAAE,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAc,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EACL,YAAY,IAAI,OAAO,EACvB,cAAc,IAAI,SAAS,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAClC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAqBhD,MAAM,SAAS,GAAG,CAAC,EACjB,KAAK,EACL,UAAU,EACV,KAAK,EACL,aAAa,EACb,cAAc,EACd,aAAa,EACb,OAAO,EACP,MAAM,EACN,QAAQ,GAAG,KAAK,EAChB,iBAAiB,GAAG,IAAI,EACxB,QAAQ,GAAG,CAAC,EACZ,QAAQ,GAAG,CAAC,EACZ,QAAQ,EACR,WAAW,GAAG,KAAK,EACnB,YAAY,GAAG,SAAS,EACxB,KAAK,GACU,EAAE,EAAE;IACnB,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,gBAAgB,GAAG,cAAc,EAAE,CAAC;IAC1C,MAAM,YAAY,GAAG,MAAM,CAAM,IAAI,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,MAAM,CAAM,IAAI,CAAC,CAAC;IAEnC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"Increment.js","sourceRoot":"","sources":["../../../../src/components/molecules/Increment/Increment.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,EAEL,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,IAAI,GACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,cAAc,EAAE,sBAAsB,EA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AY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,cAAc,CAAC,CAC3B,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAEvB;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,eAAe,CACd,QAAQ,CAAC,SAAS,CAClB,OAAO,CAAC,CAAC,UAAU,CAAC,CACpB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,IAAI,IAAI,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,CAC/D,WAAW,CAAC,CAAC,WAAW,CAAC,EAE7B;IAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAmB,EAAE,EAAE,CACxC,UAAU,CAAC,MAAM,CAAC;IAChB,mBAAmB,EAAE;QACnB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACP;IACD,KAAK,EAAE;QACL,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,WAAW,EAAE,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;QACvD,iBAAiB,EAAE,MAAM,CAAC,cAAc,CAAC,UAAU;QACnD,iBAAiB,EAAE,GAAG;QACtB,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,CAAC;KACd;IACD,eAAe,EAAE;QACf,KAAK,EAAE,KAAK;KACb;CACF,CAAC,CAAC;AAEL,eAAe,SAAS,CAAC"}
|
|
@@ -19,34 +19,27 @@ import React, { useMemo } from 'react';
|
|
|
19
19
|
import { StyleSheet } from 'react-native';
|
|
20
20
|
import { useThemeColor } from '../../../theme';
|
|
21
21
|
import { Icon } from '../../atoms';
|
|
22
|
-
const ICON_SIZE =
|
|
22
|
+
const ICON_SIZE = 14;
|
|
23
23
|
const DEFAULT_BUTTON_SIZE = 35;
|
|
24
24
|
const BIG_BUTTON_SIZE = 75;
|
|
25
|
-
const IncrementButton = ({ style, iconName, onPress
|
|
25
|
+
const IncrementButton = ({ style, iconName, onPress, readonly = false, disabled = false, isBigButton = false, }) => {
|
|
26
26
|
const Colors = useThemeColor();
|
|
27
27
|
const buttonSize = useMemo(() => (isBigButton ? BIG_BUTTON_SIZE : DEFAULT_BUTTON_SIZE), [isBigButton]);
|
|
28
28
|
const styles = useMemo(() => getStyles(Colors, buttonSize), [Colors, buttonSize]);
|
|
29
|
-
if (readonly)
|
|
29
|
+
if (readonly)
|
|
30
30
|
return null;
|
|
31
|
-
}
|
|
32
|
-
return (<Icon name={iconName} size={ICON_SIZE} color={disabled
|
|
31
|
+
return (<Icon style={[styles.container, style]} name={iconName} size={ICON_SIZE} color={disabled
|
|
33
32
|
? Colors.secondaryColor.background
|
|
34
|
-
: Colors.primaryColor.background} touchable={!disabled} onPress={onPress}
|
|
33
|
+
: Colors.primaryColor.background} touchable={!disabled} onPress={onPress}/>);
|
|
35
34
|
};
|
|
36
35
|
const getStyles = (Colors, buttonSize) => StyleSheet.create({
|
|
37
|
-
|
|
36
|
+
container: {
|
|
38
37
|
backgroundColor: Colors.backgroundColor,
|
|
39
|
-
elevation: 3,
|
|
40
|
-
shadowOpacity: 0.5,
|
|
41
|
-
shadowColor: Colors.secondaryColor.background,
|
|
42
|
-
shadowOffset: { width: 0, height: 0 },
|
|
43
38
|
justifyContent: 'center',
|
|
44
39
|
alignItems: 'center',
|
|
45
40
|
padding: 2,
|
|
46
41
|
paddingHorizontal: 5,
|
|
47
|
-
|
|
48
|
-
borderWidth: 0.5,
|
|
49
|
-
borderRadius: 10,
|
|
42
|
+
borderRadius: 12,
|
|
50
43
|
width: buttonSize ?? DEFAULT_BUTTON_SIZE,
|
|
51
44
|
height: buttonSize ?? DEFAULT_BUTTON_SIZE,
|
|
52
45
|
flexShrink: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IncrementButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/Increment/IncrementButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAc,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,eAAe,GAAG,EAAE,CAAC;AAW3B,MAAM,eAAe,GAAG,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,OAAO,
|
|
1
|
+
{"version":3,"file":"IncrementButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/Increment/IncrementButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAc,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,eAAe,GAAG,EAAE,CAAC;AAW3B,MAAM,eAAe,GAAG,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,WAAW,GAAG,KAAK,GACE,EAAE,EAAE;IACzB,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,OAAO,CACx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{ StyleSheet, View } from 'react-native';
|
|
20
20
|
import { useThemeColor } from '../../../theme';
|
|
21
|
+
import { checkNullString } from '../../../utils';
|
|
21
22
|
import { Icon, Text } from '../../atoms';
|
|
22
|
-
import { hexToRgb } from '../../../utils/commons-utlis';
|
|
23
23
|
const Label = ({ style, message, type = 'error', iconName, color, visible = true, showClose = false, onClose = () => { }, }) => {
|
|
24
24
|
const Colors = useThemeColor();
|
|
25
25
|
const [isVisible, setIsVisible] = useState(visible);
|
|
26
26
|
const typeConfig = useMemo(() => {
|
|
27
|
-
let config
|
|
27
|
+
let config;
|
|
28
28
|
switch (type) {
|
|
29
29
|
case 'error':
|
|
30
30
|
config = {
|
|
@@ -45,7 +45,7 @@ const Label = ({ style, message, type = 'error', iconName, color, visible = true
|
|
|
45
45
|
config = { color: Colors.successColor, iconName: 'check-circle-fill' };
|
|
46
46
|
break;
|
|
47
47
|
default:
|
|
48
|
-
config = { color:
|
|
48
|
+
config = { color: undefined, iconName: undefined };
|
|
49
49
|
break;
|
|
50
50
|
}
|
|
51
51
|
if (color != null) {
|
|
@@ -54,39 +54,35 @@ const Label = ({ style, message, type = 'error', iconName, color, visible = true
|
|
|
54
54
|
if (iconName != null) {
|
|
55
55
|
config.iconName = iconName;
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return config;
|
|
58
58
|
}, [Colors, color, iconName, type]);
|
|
59
|
-
const styles = useMemo(() =>
|
|
60
|
-
return getStyles(typeConfig?.color);
|
|
61
|
-
}, [typeConfig]);
|
|
59
|
+
const styles = useMemo(() => getStyles(typeConfig?.color), [typeConfig]);
|
|
62
60
|
const handleClose = useCallback(() => {
|
|
63
61
|
setIsVisible(false);
|
|
64
62
|
onClose();
|
|
65
63
|
}, [onClose]);
|
|
66
64
|
useEffect(() => {
|
|
67
65
|
setIsVisible(_current => {
|
|
68
|
-
if (visible == null || _current === visible)
|
|
66
|
+
if (visible == null || _current === visible)
|
|
69
67
|
return _current;
|
|
70
|
-
}
|
|
71
68
|
return visible;
|
|
72
69
|
});
|
|
73
70
|
}, [visible]);
|
|
74
|
-
if (!isVisible)
|
|
71
|
+
if (!isVisible)
|
|
75
72
|
return null;
|
|
76
|
-
}
|
|
77
73
|
return (<View testID="labelContainer" style={[styles.container, style]}>
|
|
78
|
-
<Icon name={typeConfig?.iconName} color={typeConfig?.color?.foreground}/>
|
|
74
|
+
{!checkNullString(typeConfig?.iconName) && (<Icon name={typeConfig?.iconName} color={typeConfig?.color?.foreground}/>)}
|
|
79
75
|
<Text style={styles.text}>{message}</Text>
|
|
80
76
|
{showClose && (<Icon name="x-lg" color={typeConfig?.color?.foreground} touchable={true} onPress={handleClose}/>)}
|
|
81
77
|
</View>);
|
|
82
78
|
};
|
|
83
|
-
const getStyles = color => StyleSheet.create({
|
|
79
|
+
const getStyles = (color) => StyleSheet.create({
|
|
84
80
|
container: {
|
|
85
81
|
width: '100%',
|
|
86
|
-
borderColor: color?.
|
|
82
|
+
borderColor: color?.background,
|
|
87
83
|
borderWidth: 1,
|
|
88
84
|
borderRadius: 7,
|
|
89
|
-
backgroundColor:
|
|
85
|
+
backgroundColor: color?.background_light,
|
|
90
86
|
flexDirection: 'row',
|
|
91
87
|
justifyContent: 'flex-start',
|
|
92
88
|
alignItems: 'center',
|