@axelor/aos-mobile-ui 9.1.12 → 9.2.1
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 +16 -16
|
@@ -20,11 +20,11 @@ export const writingDefaultTheme = {
|
|
|
20
20
|
key: 'default',
|
|
21
21
|
name: 'Default',
|
|
22
22
|
style: {
|
|
23
|
-
defaultSize:
|
|
24
|
-
title: { fontSize:
|
|
25
|
-
subTitle: { fontSize:
|
|
26
|
-
textImportant: { fontSize:
|
|
27
|
-
textDetails: { fontSize:
|
|
23
|
+
defaultSize: 12,
|
|
24
|
+
title: { fontSize: 16, fontWeight: 'bold', fontStyle: 'normal' },
|
|
25
|
+
subTitle: { fontSize: 14, fontWeight: 'normal', fontStyle: 'normal' },
|
|
26
|
+
textImportant: { fontSize: 14, fontWeight: 'bold', fontStyle: 'normal' },
|
|
27
|
+
textDetails: { fontSize: 14, fontWeight: 'normal', fontStyle: 'italic' },
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
export const useWritingType = (type) => {
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
declare class Animation {
|
|
2
2
|
config: {
|
|
3
|
-
easeInEaseOut:
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
easeInEaseOut: Readonly<{
|
|
4
|
+
duration: number;
|
|
5
|
+
create?: import("react-native").LayoutAnimationAnim | undefined;
|
|
6
|
+
update?: import("react-native").LayoutAnimationAnim | undefined;
|
|
7
|
+
delete?: import("react-native").LayoutAnimationAnim | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
linear: Readonly<{
|
|
10
|
+
duration: number;
|
|
11
|
+
create?: import("react-native").LayoutAnimationAnim | undefined;
|
|
12
|
+
update?: import("react-native").LayoutAnimationAnim | undefined;
|
|
13
|
+
delete?: import("react-native").LayoutAnimationAnim | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
spring: Readonly<{
|
|
16
|
+
duration: number;
|
|
17
|
+
create?: import("react-native").LayoutAnimationAnim | undefined;
|
|
18
|
+
update?: import("react-native").LayoutAnimationAnim | undefined;
|
|
19
|
+
delete?: import("react-native").LayoutAnimationAnim | undefined;
|
|
20
|
+
}>;
|
|
6
21
|
};
|
|
7
22
|
constructor();
|
|
8
23
|
beforeAnimation(): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ViewStyle } from 'react-native';
|
|
2
|
+
import { CalendarMonth } from './dates';
|
|
3
|
+
export declare const DAY_ROW_HEIGHT = 46;
|
|
4
|
+
export declare const MONTH_TITLE_HEIGHT = 44;
|
|
5
|
+
export declare const WEEK_DAYS_ROW_HEIGHT = 26;
|
|
6
|
+
export declare const MAX_WEEKS_IN_MONTH = 6;
|
|
7
|
+
export declare const getWeeksHeight: (numberOfWeeks: number) => number;
|
|
8
|
+
export declare const getMonthHeight: (numberOfWeeks: number) => number;
|
|
9
|
+
export declare const buildMonthLayout: (months: CalendarMonth[]) => {
|
|
10
|
+
heights: number[];
|
|
11
|
+
offsets: number[];
|
|
12
|
+
};
|
|
13
|
+
export declare const getTodayOutlineStyle: (color: string) => ViewStyle;
|
|
14
|
+
export declare const dayCellStyles: Readonly<{
|
|
15
|
+
container: {
|
|
16
|
+
flex: number;
|
|
17
|
+
height: number;
|
|
18
|
+
alignItems: "center";
|
|
19
|
+
justifyContent: "center";
|
|
20
|
+
};
|
|
21
|
+
fillContainer: {
|
|
22
|
+
overflow: "hidden";
|
|
23
|
+
position: "absolute";
|
|
24
|
+
top: number;
|
|
25
|
+
bottom: number;
|
|
26
|
+
left: number;
|
|
27
|
+
right: number;
|
|
28
|
+
borderRadius: number;
|
|
29
|
+
};
|
|
30
|
+
outline: {
|
|
31
|
+
borderWidth: number;
|
|
32
|
+
position: "absolute";
|
|
33
|
+
top: number;
|
|
34
|
+
bottom: number;
|
|
35
|
+
left: number;
|
|
36
|
+
right: number;
|
|
37
|
+
borderRadius: number;
|
|
38
|
+
};
|
|
39
|
+
text: {
|
|
40
|
+
textAlign: "center";
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { Platform, StyleSheet } from 'react-native';
|
|
19
|
+
export const DAY_ROW_HEIGHT = 46;
|
|
20
|
+
export const MONTH_TITLE_HEIGHT = 44;
|
|
21
|
+
export const WEEK_DAYS_ROW_HEIGHT = 26;
|
|
22
|
+
const CELL_INSET = 3;
|
|
23
|
+
const CELL_RADIUS = 8;
|
|
24
|
+
export const MAX_WEEKS_IN_MONTH = 6;
|
|
25
|
+
export const getWeeksHeight = (numberOfWeeks) => numberOfWeeks * DAY_ROW_HEIGHT;
|
|
26
|
+
export const getMonthHeight = (numberOfWeeks) => MONTH_TITLE_HEIGHT + WEEK_DAYS_ROW_HEIGHT + getWeeksHeight(numberOfWeeks);
|
|
27
|
+
export const buildMonthLayout = (months) => {
|
|
28
|
+
const heights = [];
|
|
29
|
+
const offsets = [];
|
|
30
|
+
let offset = 0;
|
|
31
|
+
months.forEach(({ weeks }) => {
|
|
32
|
+
const height = getMonthHeight(weeks.length);
|
|
33
|
+
heights.push(height);
|
|
34
|
+
offsets.push(offset);
|
|
35
|
+
offset += height;
|
|
36
|
+
});
|
|
37
|
+
return { heights, offsets };
|
|
38
|
+
};
|
|
39
|
+
export const getTodayOutlineStyle = (color) => ({
|
|
40
|
+
borderColor: color,
|
|
41
|
+
borderStyle: Platform.OS === 'ios' ? 'solid' : 'dashed',
|
|
42
|
+
});
|
|
43
|
+
const inset = {
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
top: CELL_INSET,
|
|
46
|
+
bottom: CELL_INSET,
|
|
47
|
+
left: CELL_INSET,
|
|
48
|
+
right: CELL_INSET,
|
|
49
|
+
borderRadius: CELL_RADIUS,
|
|
50
|
+
};
|
|
51
|
+
export const dayCellStyles = StyleSheet.create({
|
|
52
|
+
container: {
|
|
53
|
+
flex: 1,
|
|
54
|
+
height: DAY_ROW_HEIGHT,
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
justifyContent: 'center',
|
|
57
|
+
},
|
|
58
|
+
fillContainer: { ...inset, overflow: 'hidden' },
|
|
59
|
+
outline: { ...inset, borderWidth: 1 },
|
|
60
|
+
text: {
|
|
61
|
+
textAlign: 'center',
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../src/utils/calendar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAY,MAAM,cAAc,CAAC;AAG7D,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AACjC,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEvC,MAAM,UAAU,GAAG,CAA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W;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,MAAM,EAAE,cAAc;QACtB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;IACD,aAAa,EAAE,EAAC,GAAG,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAC;IAC7C,OAAO,EAAE,EAAC,GAAG,KAAK,EAAE,WAAW,EAAE,CAAC,EAAC;IACnC,IAAI,EAAE;QACJ,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThemeColors } from '../theme';
|
|
2
|
+
export declare const INPUT_MIN_HEIGHT = 40;
|
|
3
|
+
export declare const getCommonStyles: (Colors?: ThemeColors, _required?: boolean, _isFocused?: boolean) => Readonly<{
|
|
2
4
|
filter: {
|
|
3
|
-
|
|
5
|
+
width: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
borderWidth: number;
|
|
4
9
|
borderRadius: number;
|
|
5
|
-
elevation: number;
|
|
6
|
-
shadowOpacity: number;
|
|
7
|
-
shadowColor: any;
|
|
8
|
-
shadowOffset: {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
};
|
|
12
10
|
paddingHorizontal: number;
|
|
13
11
|
paddingVertical: number;
|
|
14
12
|
marginVertical: number;
|
|
@@ -19,11 +17,6 @@ export function getCommonStyles(Colors: any, _required?: boolean): {
|
|
|
19
17
|
justifyContent: "space-between";
|
|
20
18
|
alignItems: "center";
|
|
21
19
|
};
|
|
22
|
-
filterSize: {
|
|
23
|
-
width: "90%";
|
|
24
|
-
height: number;
|
|
25
|
-
minHeight: number;
|
|
26
|
-
};
|
|
27
20
|
button: {
|
|
28
21
|
flexDirection: "row";
|
|
29
22
|
alignSelf: "center";
|
|
@@ -36,10 +29,5 @@ export function getCommonStyles(Colors: any, _required?: boolean): {
|
|
|
36
29
|
borderRadius: number;
|
|
37
30
|
borderWidth: number;
|
|
38
31
|
height: number;
|
|
39
|
-
minHeight: number;
|
|
40
|
-
};
|
|
41
|
-
inputFocused: {
|
|
42
|
-
borderWidth: number;
|
|
43
|
-
borderColor: any;
|
|
44
32
|
};
|
|
45
|
-
}
|
|
33
|
+
}>;
|
|
@@ -16,17 +16,21 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import { StyleSheet } from 'react-native';
|
|
19
|
-
export const
|
|
19
|
+
export const INPUT_MIN_HEIGHT = 40;
|
|
20
|
+
export const getCommonStyles = (Colors, _required = false, _isFocused = false) => StyleSheet.create({
|
|
20
21
|
filter: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
width: '90%',
|
|
23
|
+
backgroundColor: Colors?.screenBackgroundColor,
|
|
24
|
+
borderColor: _required
|
|
25
|
+
? Colors?.errorColor.background
|
|
26
|
+
: _isFocused
|
|
27
|
+
? Colors?.primaryColor.background
|
|
28
|
+
: Colors?.secondaryColor.background_light,
|
|
29
|
+
borderWidth: 1,
|
|
30
|
+
borderRadius: 12,
|
|
31
|
+
paddingHorizontal: 10,
|
|
28
32
|
paddingVertical: 0,
|
|
29
|
-
marginVertical:
|
|
33
|
+
marginVertical: 4,
|
|
30
34
|
},
|
|
31
35
|
filterAlign: {
|
|
32
36
|
marginHorizontal: 18,
|
|
@@ -34,11 +38,6 @@ export const getCommonStyles = (Colors, _required = false) => StyleSheet.create(
|
|
|
34
38
|
justifyContent: 'space-between',
|
|
35
39
|
alignItems: 'center',
|
|
36
40
|
},
|
|
37
|
-
filterSize: {
|
|
38
|
-
width: '90%',
|
|
39
|
-
height: 40,
|
|
40
|
-
minHeight: 40,
|
|
41
|
-
},
|
|
42
41
|
button: {
|
|
43
42
|
flexDirection: 'row',
|
|
44
43
|
alignSelf: 'center',
|
|
@@ -49,15 +48,8 @@ export const getCommonStyles = (Colors, _required = false) => StyleSheet.create(
|
|
|
49
48
|
paddingVertical: 2,
|
|
50
49
|
marginVertical: 5,
|
|
51
50
|
borderRadius: 7,
|
|
52
|
-
borderWidth: 2,
|
|
53
|
-
height: 50,
|
|
54
|
-
minHeight: 40,
|
|
55
|
-
},
|
|
56
|
-
inputFocused: {
|
|
57
51
|
borderWidth: 1,
|
|
58
|
-
|
|
59
|
-
? Colors.errorColor.background
|
|
60
|
-
: Colors.primaryColor.background,
|
|
52
|
+
height: 50,
|
|
61
53
|
},
|
|
62
54
|
});
|
|
63
55
|
//# sourceMappingURL=commons-styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commons-styles.js","sourceRoot":"","sources":["../../src/utils/commons-styles.
|
|
1
|
+
{"version":3,"file":"commons-styles.js","sourceRoot":"","sources":["../../src/utils/commons-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGxC,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAEnC,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAAoB,EACpB,YAAqB,KAAK,EAC1B,aAAsB,KAAK,EAC3B,EAAE,CACF,UAAU,CAAC,MAAM,CAAC;IAChB,MAAM,EAAE;QACN,KAAK,EAAE,KAAK;QACZ,eAAe,EAAE,MAAM,EAAE,qBAAqB;QAC9C,WAAW,EAAE,SAAS;YACpB,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU;YAC/B,CAAC,CAAC,UAAU;gBACV,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,UAAU;gBACjC,CAAC,CAAC,MAAM,EAAE,cAAc,CAAC,gBAAgB;QAC7C,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,EAAE;QAChB,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,CAAC;QAClB,cAAc,EAAE,CAAC;KAClB;IACD,WAAW,EAAE;QACX,gBAAgB,EAAE,EAAE;QACpB,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;KACrB;IACD,MAAM,EAAE;QACN,aAAa,EAAE,KAAK;QACpB,SAAS,EAAE,QAAQ;QACnB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,YAAY,EAAE,QAAQ;QACtB,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,CAAC;QAClB,cAAc,EAAE,CAAC;QACjB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,CAAC;QACd,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare function hexToRgb(hex: string): string;
|
|
2
2
|
export declare function addOpacityToHex(hexColor: string, opacity?: number): string;
|
|
3
|
+
export declare function blendHex(hexColor: string, surface: string, opacity?: number): string;
|
|
3
4
|
export declare function rgbaToHex(r: number, g: number, b: number, a?: number): string;
|
|
4
5
|
export declare function rgbaStringToHex(rgba: string): string;
|
|
5
6
|
export declare function getBestForegroundColor(hexColor: string): "#000000" | "#FFFFFF";
|
|
@@ -27,6 +27,13 @@ export function addOpacityToHex(hexColor, opacity = 1) {
|
|
|
27
27
|
.padStart(2, '0');
|
|
28
28
|
return `${hexColor}${alpha}`;
|
|
29
29
|
}
|
|
30
|
+
export function blendHex(hexColor, surface, opacity = 1) {
|
|
31
|
+
const [r, g, b] = hexToRgb(hexColor).split(', ').map(Number);
|
|
32
|
+
const [sr, sg, sb] = hexToRgb(surface).split(', ').map(Number);
|
|
33
|
+
const mix = (channel, surfaceChannel) => Math.round(channel * opacity + surfaceChannel * (1 - opacity));
|
|
34
|
+
const toHex = (value) => value.toString(16).padStart(2, '0');
|
|
35
|
+
return `#${toHex(mix(r, sr))}${toHex(mix(g, sg))}${toHex(mix(b, sb))}`;
|
|
36
|
+
}
|
|
30
37
|
export function rgbaToHex(r, g, b, a = 1) {
|
|
31
38
|
const toHex = (value) => value.toString(16).padStart(2, '0');
|
|
32
39
|
return addOpacityToHex(`#${toHex(r)}${toHex(g)}${toHex(b)}`, a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commons-utlis.js","sourceRoot":"","sources":["../../src/utils/commons-utlis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,UAAU,QAAQ,CAAC,GAAW;IAClC,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5C,OAAO,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,QAAgB,EAAE,OAAO,GAAG,CAAC;IAC3D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;SACpC,QAAQ,CAAC,EAAE,CAAC;SACZ,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAEpB,OAAO,GAAG,QAAQ,GAAG,KAAK,EAAE,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,IAAY,CAAC;IACtE,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAA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,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAE7D,MAAM,SAAS,GACb,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;IAE/D,OAAO,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const toDateString: (date: Date) => string;
|
|
2
|
+
export declare const fromDateString: (dateString: string) => Date;
|
|
3
|
+
export declare const DAYS_IN_WEEK = 7;
|
|
4
|
+
export declare const DEFAULT_FIRST_DAY_OF_WEEK = 1;
|
|
5
|
+
export declare const startOfWeek: (date: Date, firstDayOfWeek: number) => Date;
|
|
6
|
+
export declare const isWeekEnd: (date: Date) => boolean;
|
|
7
|
+
export declare const formatDateString: (dateString: string, format: string) => string;
|
|
8
|
+
export declare const getMonthTitleKey: (monthIndex: number) => string;
|
|
9
|
+
export declare const getDayTitleKey: (dayIndex: number) => string;
|
|
10
|
+
export declare const getWeekDayKeys: (firstDayOfWeek: number) => string[];
|
|
11
|
+
export declare const formatLongDate: (dateString: string | undefined, translator: (key: string) => string) => string;
|
|
12
|
+
export declare const formatDateRange: (fromDate: string | undefined, toDate: string | undefined, translator: (key: string) => string) => string;
|
|
13
|
+
export interface CalendarDay {
|
|
14
|
+
dateString: string;
|
|
15
|
+
dayNumber: number;
|
|
16
|
+
isWeekEnd: boolean;
|
|
17
|
+
isOutOfMonth: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface CalendarMonth {
|
|
20
|
+
key: string;
|
|
21
|
+
monthKey: string;
|
|
22
|
+
year: number;
|
|
23
|
+
monthIndex: number;
|
|
24
|
+
weeks: CalendarDay[][];
|
|
25
|
+
}
|
|
26
|
+
export declare const getMonthKey: (year: number, monthIndex: number) => string;
|
|
27
|
+
export declare const buildMonth: (year: number, monthIndex: number, firstDayOfWeek: number) => CalendarMonth;
|
|
28
|
+
export declare const buildMonths: (referenceDate: Date, monthsBefore: number, monthsAfter: number, firstDayOfWeek: number) => CalendarMonth[];
|
|
29
|
+
export declare const monthIndexOf: (months: CalendarMonth[], dateString: string | undefined) => number;
|
|
30
|
+
export declare const sliceByMonth: <T>(data: Record<string, T>, months: CalendarMonth[], emptyValue: Record<string, T>) => Record<string, Record<string, T>>;
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
const MONTH_LONG_KEYS = [
|
|
19
|
+
'Base_MonthLong_January',
|
|
20
|
+
'Base_MonthLong_February',
|
|
21
|
+
'Base_MonthLong_March',
|
|
22
|
+
'Base_MonthLong_April',
|
|
23
|
+
'Base_MonthLong_May',
|
|
24
|
+
'Base_MonthLong_June',
|
|
25
|
+
'Base_MonthLong_July',
|
|
26
|
+
'Base_MonthLong_August',
|
|
27
|
+
'Base_MonthLong_September',
|
|
28
|
+
'Base_MonthLong_October',
|
|
29
|
+
'Base_MonthLong_November',
|
|
30
|
+
'Base_MonthLong_December',
|
|
31
|
+
];
|
|
32
|
+
const DAY_SHORT_KEYS = [
|
|
33
|
+
'Base_Day_Sun',
|
|
34
|
+
'Base_Day_Mon',
|
|
35
|
+
'Base_Day_Tue',
|
|
36
|
+
'Base_Day_Wed',
|
|
37
|
+
'Base_Day_Thu',
|
|
38
|
+
'Base_Day_Fri',
|
|
39
|
+
'Base_Day_Sat',
|
|
40
|
+
];
|
|
41
|
+
const pad = (value) => (value < 10 ? `0${value}` : `${value}`);
|
|
42
|
+
export const toDateString = (date) => `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
|
|
43
|
+
export const fromDateString = (dateString) => {
|
|
44
|
+
const [year, month, day] = dateString.split('-').map(Number);
|
|
45
|
+
return new Date(year, month - 1, day);
|
|
46
|
+
};
|
|
47
|
+
export const DAYS_IN_WEEK = 7;
|
|
48
|
+
export const DEFAULT_FIRST_DAY_OF_WEEK = 1;
|
|
49
|
+
export const startOfWeek = (date, firstDayOfWeek) => {
|
|
50
|
+
const result = new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
51
|
+
result.setDate(result.getDate() - ((result.getDay() - firstDayOfWeek + 7) % 7));
|
|
52
|
+
return result;
|
|
53
|
+
};
|
|
54
|
+
export const isWeekEnd = (date) => date.getDay() === 0 || date.getDay() === 6;
|
|
55
|
+
export const formatDateString = (dateString, format) => {
|
|
56
|
+
if (dateString == null || format == null)
|
|
57
|
+
return '';
|
|
58
|
+
const [year, month, day] = dateString.split('-');
|
|
59
|
+
return format
|
|
60
|
+
.replace('DD', day)
|
|
61
|
+
.replace('MM', month)
|
|
62
|
+
.replace('YYYY', year)
|
|
63
|
+
.replace('YY', year?.slice(2));
|
|
64
|
+
};
|
|
65
|
+
export const getMonthTitleKey = (monthIndex) => MONTH_LONG_KEYS[monthIndex];
|
|
66
|
+
export const getDayTitleKey = (dayIndex) => DAY_SHORT_KEYS[dayIndex];
|
|
67
|
+
export const getWeekDayKeys = (firstDayOfWeek) => DAY_SHORT_KEYS.map((_, index) => DAY_SHORT_KEYS[(index + firstDayOfWeek) % 7]);
|
|
68
|
+
export const formatLongDate = (dateString, translator) => {
|
|
69
|
+
if (dateString == null)
|
|
70
|
+
return '';
|
|
71
|
+
const date = fromDateString(dateString);
|
|
72
|
+
return `${translator(getDayTitleKey(date.getDay()))} ${date.getDate()} ${translator(getMonthTitleKey(date.getMonth()))} ${date.getFullYear()}`;
|
|
73
|
+
};
|
|
74
|
+
export const formatDateRange = (fromDate, toDate, translator) => {
|
|
75
|
+
if (fromDate == null || toDate == null)
|
|
76
|
+
return '';
|
|
77
|
+
const from = fromDateString(fromDate);
|
|
78
|
+
const to = fromDateString(toDate);
|
|
79
|
+
const fromMonth = translator(getMonthTitleKey(from.getMonth()));
|
|
80
|
+
const toMonth = translator(getMonthTitleKey(to.getMonth()));
|
|
81
|
+
if (from.getFullYear() !== to.getFullYear()) {
|
|
82
|
+
return `${from.getDate()} ${fromMonth} ${from.getFullYear()} - ${to.getDate()} ${toMonth} ${to.getFullYear()}`;
|
|
83
|
+
}
|
|
84
|
+
if (from.getMonth() !== to.getMonth()) {
|
|
85
|
+
return `${from.getDate()} ${fromMonth} - ${to.getDate()} ${toMonth}`;
|
|
86
|
+
}
|
|
87
|
+
return `${from.getDate()} - ${to.getDate()} ${toMonth}`;
|
|
88
|
+
};
|
|
89
|
+
export const getMonthKey = (year, monthIndex) => toDateString(new Date(year, monthIndex, 1)).slice(0, 7);
|
|
90
|
+
export const buildMonth = (year, monthIndex, firstDayOfWeek) => {
|
|
91
|
+
const firstDay = new Date(year, monthIndex, 1);
|
|
92
|
+
const _year = firstDay.getFullYear();
|
|
93
|
+
const _monthIndex = firstDay.getMonth();
|
|
94
|
+
const numberOfDays = new Date(_year, _monthIndex + 1, 0).getDate();
|
|
95
|
+
const leadingCells = (firstDay.getDay() - firstDayOfWeek + 7) % 7;
|
|
96
|
+
const numberOfCells = Math.ceil((leadingCells + numberOfDays) / 7) * 7;
|
|
97
|
+
const cells = [];
|
|
98
|
+
for (let index = 0; index < numberOfCells; index++) {
|
|
99
|
+
const day = new Date(_year, _monthIndex, index - leadingCells + 1);
|
|
100
|
+
cells.push({
|
|
101
|
+
dateString: toDateString(day),
|
|
102
|
+
dayNumber: day.getDate(),
|
|
103
|
+
isWeekEnd: isWeekEnd(day),
|
|
104
|
+
isOutOfMonth: day.getMonth() !== _monthIndex,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
const weeks = [];
|
|
108
|
+
for (let index = 0; index < cells.length; index += 7) {
|
|
109
|
+
weeks.push(cells.slice(index, index + 7));
|
|
110
|
+
}
|
|
111
|
+
const monthKey = getMonthKey(_year, _monthIndex);
|
|
112
|
+
return { key: monthKey, monthKey, year: _year, monthIndex: _monthIndex, weeks };
|
|
113
|
+
};
|
|
114
|
+
export const buildMonths = (referenceDate, monthsBefore, monthsAfter, firstDayOfWeek) => {
|
|
115
|
+
const months = [];
|
|
116
|
+
for (let index = -monthsBefore; index <= monthsAfter; index++) {
|
|
117
|
+
months.push(buildMonth(referenceDate.getFullYear(), referenceDate.getMonth() + index, firstDayOfWeek));
|
|
118
|
+
}
|
|
119
|
+
return months;
|
|
120
|
+
};
|
|
121
|
+
export const monthIndexOf = (months, dateString) => dateString == null
|
|
122
|
+
? -1
|
|
123
|
+
: months.findIndex(({ monthKey }) => monthKey === dateString.slice(0, 7));
|
|
124
|
+
export const sliceByMonth = (data, months, emptyValue) => {
|
|
125
|
+
const result = {};
|
|
126
|
+
months.forEach(({ monthKey }) => {
|
|
127
|
+
result[monthKey] = emptyValue;
|
|
128
|
+
});
|
|
129
|
+
if (data == null)
|
|
130
|
+
return result;
|
|
131
|
+
Object.entries(data).forEach(([dateString, value]) => {
|
|
132
|
+
const monthKey = dateString.slice(0, 7);
|
|
133
|
+
if (result[monthKey] == null)
|
|
134
|
+
return;
|
|
135
|
+
if (result[monthKey] === emptyValue) {
|
|
136
|
+
result[monthKey] = {};
|
|
137
|
+
}
|
|
138
|
+
result[monthKey][dateString] = value;
|
|
139
|
+
});
|
|
140
|
+
return result;
|
|
141
|
+
};
|
|
142
|
+
//# sourceMappingURL=dates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dates.js","sourceRoot":"","sources":["../../src/utils/dates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,eAAe,GAAG;IACtB,wBAAwB;IACxB,yBAAyB;IACzB,sBAAsB;IACtB,sBAAsB;IACtB,oBAAoB;IACpB,qBAAqB;IACrB,qBAAqB;IACrB,uBAAuB;IACvB,0BAA0B;IAC1B,wBAAwB;IACxB,yBAAyB;IACzB,yBAAyB;CAC1B,CAAC;AAEF,MAAM,cAAc,GAAG;IACrB,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;CACf,CAAC;AAEF,MAAM,GAAG,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAU,EAAU,EAAE,CACjD,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;AAE7E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAkB,EAAQ,EAAE;IACzD,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAE7D,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,MAA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,CAAC,GAAG,EAAE,CAAC;QACxB,CAAC;QAED,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
1
|
+
export { replace, indexOfElement } from './arrays';
|
|
2
|
+
export * from './calendar';
|
|
3
|
+
export { getCommonStyles, INPUT_MIN_HEIGHT } from './commons-styles';
|
|
4
|
+
export * from './commons-utlis';
|
|
5
|
+
export * from './dates';
|
|
6
|
+
export { formatNumber, unformatNumber } from './formatters';
|
|
7
|
+
export { getFromList, getItemsFromList } from './list';
|
|
8
|
+
export { isHalf, getIntegerPart, roundHalf, roundInteger } from './number';
|
|
9
|
+
export { deepCopy } from './objects';
|
|
10
|
+
export { splitInTwo, checkNullString, capitalizeFirstLetter, sliceString, } from './strings';
|
package/lib/utils/index.js
CHANGED
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
export { replace, indexOfElement } from './arrays';
|
|
19
|
-
export
|
|
19
|
+
export * from './calendar';
|
|
20
|
+
export { getCommonStyles, INPUT_MIN_HEIGHT } from './commons-styles';
|
|
21
|
+
export * from './commons-utlis';
|
|
22
|
+
export * from './dates';
|
|
20
23
|
export { formatNumber, unformatNumber } from './formatters';
|
|
21
24
|
export { getFromList, getItemsFromList } from './list';
|
|
22
25
|
export { isHalf, getIntegerPart, roundHalf, roundInteger } from './number';
|
|
23
26
|
export { deepCopy } from './objects';
|
|
24
27
|
export { splitInTwo, checkNullString, capitalizeFirstLetter, sliceString, } from './strings';
|
|
25
|
-
export * from './commons-utlis';
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
package/lib/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;AACjD,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAC,eAAe,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AACnE,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAC,YAAY,EAAE,cAAc,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAC,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAC,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AACzE,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,WAAW,GACZ,MAAM,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axelor/aos-mobile-ui",
|
|
3
|
-
"version": "9.1
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"author": "Axelor",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -30,24 +30,24 @@
|
|
|
30
30
|
"icons:build": "npm run icons:clean && node scripts/icons-build.js"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@react-native-community/slider": "5.1
|
|
33
|
+
"@react-native-community/slider": "5.2.1",
|
|
34
34
|
"bootstrap-icons": "1.13.1",
|
|
35
35
|
"react": "*",
|
|
36
36
|
"react-native": "*",
|
|
37
|
-
"react-native-gesture-handler": "
|
|
38
|
-
"react-native-gifted-charts": "1.4.
|
|
37
|
+
"react-native-gesture-handler": "3.3.0",
|
|
38
|
+
"react-native-gifted-charts": "1.4.81",
|
|
39
39
|
"react-native-linear-gradient": "2.8.3",
|
|
40
40
|
"react-native-pell-rich-editor": "1.10.0",
|
|
41
|
-
"react-native-svg": "15.15.
|
|
41
|
+
"react-native-svg": "15.15.5",
|
|
42
42
|
"react-native-system-navigation-bar": "2.8.0",
|
|
43
|
-
"react-native-webview": "13.
|
|
43
|
+
"react-native-webview": "13.17.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@babel/runtime": "^7.25.0",
|
|
47
|
-
"@react-native-community/slider": "5.1
|
|
48
|
-
"@react-native/babel-preset": "0.
|
|
49
|
-
"@react-native/eslint-config": "0.
|
|
50
|
-
"@react-native/typescript-config": "0.
|
|
47
|
+
"@react-native-community/slider": "5.2.1",
|
|
48
|
+
"@react-native/babel-preset": "0.87.1",
|
|
49
|
+
"@react-native/eslint-config": "0.87.1",
|
|
50
|
+
"@react-native/typescript-config": "0.87.1",
|
|
51
51
|
"@svgr/core": "^6.5.1",
|
|
52
52
|
"@svgr/plugin-jsx": "^6.5.1",
|
|
53
53
|
"@svgr/plugin-prettier": "^6.5.1",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"eslint": "8.57.0",
|
|
58
58
|
"glob": "^8.1.0",
|
|
59
59
|
"prettier": "^3.3.3",
|
|
60
|
-
"react": "19.2.
|
|
61
|
-
"react-native": "0.
|
|
62
|
-
"react-native-gesture-handler": "
|
|
63
|
-
"react-native-gifted-charts": "1.4.
|
|
60
|
+
"react": "19.2.3",
|
|
61
|
+
"react-native": "0.87.1",
|
|
62
|
+
"react-native-gesture-handler": "3.3.0",
|
|
63
|
+
"react-native-gifted-charts": "1.4.81",
|
|
64
64
|
"react-native-linear-gradient": "2.8.3",
|
|
65
65
|
"react-native-pell-rich-editor": "1.10.0",
|
|
66
|
-
"react-native-svg": "15.15.
|
|
66
|
+
"react-native-svg": "15.15.5",
|
|
67
67
|
"react-native-system-navigation-bar": "2.8.0",
|
|
68
|
-
"react-native-webview": "13.
|
|
68
|
+
"react-native-webview": "13.17.0"
|
|
69
69
|
},
|
|
70
70
|
"resolutions": {
|
|
71
71
|
"@types/react": "^19.2.0"
|