@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
|
@@ -0,0 +1,61 @@
|
|
|
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, { memo, useCallback } from 'react';
|
|
19
|
+
import { Pressable, StyleSheet, View } from 'react-native';
|
|
20
|
+
import { useThemeColor } from '../../../../theme';
|
|
21
|
+
import { Icon, Text } from '../../../atoms';
|
|
22
|
+
import { ganttStyles } from '../gantt-view.styles';
|
|
23
|
+
const GanttGroupHeader = ({ group, collapsed, onPress, }) => {
|
|
24
|
+
const Colors = useThemeColor();
|
|
25
|
+
const handlePress = useCallback(() => onPress(group.key), [group.key, onPress]);
|
|
26
|
+
return (<Pressable style={[
|
|
27
|
+
ganttStyles.groupRow,
|
|
28
|
+
{
|
|
29
|
+
backgroundColor: Colors.screenBackgroundColor,
|
|
30
|
+
borderBottomColor: Colors.secondaryColor_dark.background_light,
|
|
31
|
+
},
|
|
32
|
+
]} onPress={handlePress} testID={`ganttGroupHeader-${group.key}`}>
|
|
33
|
+
<Icon name={collapsed ? 'chevron-right' : 'chevron-down'} size={8} color={Colors.secondaryColor.background}/>
|
|
34
|
+
<Text style={styles.title} numberOfLines={1} fontSize={10} textColor={Colors.secondaryColor.background} writingType="important">
|
|
35
|
+
{group.title}
|
|
36
|
+
</Text>
|
|
37
|
+
<View style={[
|
|
38
|
+
styles.count,
|
|
39
|
+
{
|
|
40
|
+
backgroundColor: Colors.backgroundColor,
|
|
41
|
+
borderColor: Colors.secondaryColor.background_light,
|
|
42
|
+
},
|
|
43
|
+
]}>
|
|
44
|
+
<Text fontSize={9} textColor={Colors.placeholderTextColor}>
|
|
45
|
+
{group.rows?.length}
|
|
46
|
+
</Text>
|
|
47
|
+
</View>
|
|
48
|
+
</Pressable>);
|
|
49
|
+
};
|
|
50
|
+
const styles = StyleSheet.create({
|
|
51
|
+
title: {
|
|
52
|
+
flex: 1,
|
|
53
|
+
},
|
|
54
|
+
count: {
|
|
55
|
+
borderWidth: 1,
|
|
56
|
+
borderRadius: 4,
|
|
57
|
+
paddingHorizontal: 4,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
export default memo(GanttGroupHeader);
|
|
61
|
+
//# sourceMappingURL=GanttGroupHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GanttGroupHeader.js","sourceRoot":"","sources":["../../../../../src/components/organisms/GanttView/body/GanttGroupHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EA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YACZ;gBACE,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,WAAW,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;aACpD;SACF,CAAC,CACF;QAAA,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC,CACxD;UAAA,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CACrB;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;KACR;IACD,KAAK,EAAE;QACL,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,CAAC;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GanttDay, GanttGroup } from '../types';
|
|
3
|
+
interface GanttGroupLaneProps {
|
|
4
|
+
group: GanttGroup;
|
|
5
|
+
days: GanttDay[];
|
|
6
|
+
dayWidth: number;
|
|
7
|
+
contentWidth: number;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ group, days, dayWidth, contentWidth, }: GanttGroupLaneProps) => React.JSX.Element>;
|
|
10
|
+
export default _default;
|
|
@@ -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, { memo, useMemo } from 'react';
|
|
19
|
+
import { View } from 'react-native';
|
|
20
|
+
import { useThemeColor } from '../../../../theme';
|
|
21
|
+
import { ganttStyles } from '../gantt-view.styles';
|
|
22
|
+
import { buildNonWorkingFills } from '../gantt-view.helpers';
|
|
23
|
+
import GanttCellStrip from './GanttCellStrip';
|
|
24
|
+
const GanttGroupLane = ({ group, days, dayWidth, contentWidth, }) => {
|
|
25
|
+
const Colors = useThemeColor();
|
|
26
|
+
const fills = useMemo(() => buildNonWorkingFills(days, group.nonWorkingDays, dayWidth), [dayWidth, days, group.nonWorkingDays]);
|
|
27
|
+
return (<View style={[
|
|
28
|
+
ganttStyles.groupLane,
|
|
29
|
+
{
|
|
30
|
+
width: contentWidth,
|
|
31
|
+
backgroundColor: Colors.screenBackgroundColor,
|
|
32
|
+
borderBottomColor: Colors.secondaryColor_dark.background_light,
|
|
33
|
+
},
|
|
34
|
+
]}>
|
|
35
|
+
{fills.map(({ key, left, width, color }) => (<View key={key} style={[
|
|
36
|
+
ganttStyles.fill,
|
|
37
|
+
{ left, width, backgroundColor: color.background_light },
|
|
38
|
+
]} pointerEvents="none"/>))}
|
|
39
|
+
{group.cells != null && (<GanttCellStrip days={days} cells={group.cells} dayWidth={dayWidth} variant="full"/>)}
|
|
40
|
+
</View>);
|
|
41
|
+
};
|
|
42
|
+
export default memo(GanttGroupLane);
|
|
43
|
+
//# sourceMappingURL=GanttGroupLane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GanttGroupLane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e,EAAE,KAAK,CAAC,gBAAgB,EAAC;aACvD,CAAC,CACF,aAAa,CAAC,MAAM,EACpB,CACH,CAAC,CACF;MAAA,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,IAAI,CACtB,CAAC,cAAc,CACb,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,OAAO,CAAC,MAAM,EACd,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GanttDay, GanttItem, GanttRow, GanttRowLayout } from '../types';
|
|
3
|
+
interface GanttRowLaneProps {
|
|
4
|
+
row: GanttRow;
|
|
5
|
+
layout: GanttRowLayout;
|
|
6
|
+
days: GanttDay[];
|
|
7
|
+
dayWidth: number;
|
|
8
|
+
contentWidth: number;
|
|
9
|
+
showBarTitles: boolean;
|
|
10
|
+
onItemPress?: (item: GanttItem, row: GanttRow) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.MemoExoticComponent<({ row, layout, days, dayWidth, contentWidth, showBarTitles, onItemPress, }: GanttRowLaneProps) => React.JSX.Element>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
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, { memo, useMemo } from 'react';
|
|
19
|
+
import { View } from 'react-native';
|
|
20
|
+
import { useThemeColor } from '../../../../theme';
|
|
21
|
+
import { ganttStyles, getBarTop } from '../gantt-view.styles';
|
|
22
|
+
import { buildNonWorkingFills, computeBarGeometry, sortItemsByPriority, } from '../gantt-view.helpers';
|
|
23
|
+
import GanttBar from './GanttBar';
|
|
24
|
+
import GanttCellStrip from './GanttCellStrip';
|
|
25
|
+
const GanttRowLane = ({ row, layout, days, dayWidth, contentWidth, showBarTitles, onItemPress, }) => {
|
|
26
|
+
const Colors = useThemeColor();
|
|
27
|
+
const firstDateString = days[0]?.dateString;
|
|
28
|
+
const hasCells = row.cells != null;
|
|
29
|
+
const fills = useMemo(() => buildNonWorkingFills(days, row.nonWorkingDays, dayWidth), [dayWidth, days, row.nonWorkingDays]);
|
|
30
|
+
const bars = useMemo(() => sortItemsByPriority(row.items)
|
|
31
|
+
.map(item => ({
|
|
32
|
+
item,
|
|
33
|
+
geometry: computeBarGeometry(item, firstDateString, days.length, dayWidth),
|
|
34
|
+
}))
|
|
35
|
+
.filter(({ geometry }) => geometry != null), [dayWidth, days.length, firstDateString, row.items]);
|
|
36
|
+
return (<View style={[
|
|
37
|
+
ganttStyles.lane,
|
|
38
|
+
{
|
|
39
|
+
width: contentWidth,
|
|
40
|
+
height: layout.height,
|
|
41
|
+
borderBottomColor: Colors.secondaryColor_dark.background_light,
|
|
42
|
+
},
|
|
43
|
+
]}>
|
|
44
|
+
{fills.map(({ key, left, width, color }) => (<View key={key} style={[
|
|
45
|
+
ganttStyles.fill,
|
|
46
|
+
{ left, width, backgroundColor: color.background_light },
|
|
47
|
+
]} pointerEvents="none"/>))}
|
|
48
|
+
{hasCells && (<GanttCellStrip days={days} cells={row.cells} dayWidth={dayWidth}/>)}
|
|
49
|
+
{bars.map(({ item, geometry }) => (<GanttBar key={item.id} item={item} row={row} geometry={geometry} showTitle={showBarTitles} top={getBarTop(layout.laneIndexByItemId[`${item.id}`] ?? 0, hasCells)} onPress={onItemPress}/>))}
|
|
50
|
+
</View>);
|
|
51
|
+
};
|
|
52
|
+
export default memo(GanttRowLane);
|
|
53
|
+
//# sourceMappingURL=GanttRowLane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GanttRowLane.js","sourceRoot":"","sources":["../../../../../src/components/organisms/GanttView/body/GanttRowLane.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAY9C,MAAM,YAAY,GAAG,CAAC,EACpB,GAAG,EACH,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,WAAW,GACO,EAAE,EAAE;IACtB,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IAE5C,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC;IAEnC,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAA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,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,KAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAAG,CACtE,CACD;MAAA,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAE,EAAE,CAAC,CAC9B,CAAC,QAAQ,CACP,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CACb,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,QAAQ,CAAC,CAAC,QAAS,CAAC,CACpB,SAAS,CAAC,CAAC,aAAa,CAAC,CACzB,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC,CACtE,OAAO,CAAC,CAAC,WAAW,CAAC,EACrB,CACH,CAAC,CACJ;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GanttRow } from '../types';
|
|
3
|
+
interface GanttRowNameProps {
|
|
4
|
+
row: GanttRow;
|
|
5
|
+
height: number;
|
|
6
|
+
onPress?: (row: GanttRow) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: React.MemoExoticComponent<({ row, height, onPress }: GanttRowNameProps) => React.JSX.Element>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
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, { memo, useCallback } from 'react';
|
|
19
|
+
import { Pressable, StyleSheet, View } from 'react-native';
|
|
20
|
+
import { useThemeColor } from '../../../../theme';
|
|
21
|
+
import { Icon, Text } from '../../../atoms';
|
|
22
|
+
import { ganttStyles } from '../gantt-view.styles';
|
|
23
|
+
const GanttRowName = ({ row, height, onPress }) => {
|
|
24
|
+
const Colors = useThemeColor();
|
|
25
|
+
const handlePress = useCallback(() => onPress?.(row), [onPress, row]);
|
|
26
|
+
return (<Pressable style={[
|
|
27
|
+
ganttStyles.nameRow,
|
|
28
|
+
{
|
|
29
|
+
height,
|
|
30
|
+
borderBottomColor: Colors.secondaryColor_dark.background_light,
|
|
31
|
+
},
|
|
32
|
+
]} onPress={handlePress} disabled={onPress == null} testID={`ganttRowName-${row.key}`}>
|
|
33
|
+
<View style={styles.identity}>
|
|
34
|
+
<Text numberOfLines={2} fontSize={11}>
|
|
35
|
+
{row.title}
|
|
36
|
+
</Text>
|
|
37
|
+
{row.subtitle != null && (<Text numberOfLines={1} writingType="details" fontSize={9} textColor={Colors.placeholderTextColor}>
|
|
38
|
+
{row.subtitle}
|
|
39
|
+
</Text>)}
|
|
40
|
+
</View>
|
|
41
|
+
{row.warning != null && (<Icon name="exclamation-triangle-fill" size={11} color={Colors.cautionColor.background}/>)}
|
|
42
|
+
</Pressable>);
|
|
43
|
+
};
|
|
44
|
+
const styles = StyleSheet.create({
|
|
45
|
+
identity: {
|
|
46
|
+
flex: 1,
|
|
47
|
+
minWidth: 0,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
export default memo(GanttRowName);
|
|
51
|
+
//# sourceMappingURL=GanttRowName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GanttRowName.js","sourceRoot":"","sources":["../../../../../src/components/organisms/GanttView/body/GanttRowName.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AASjD,MAAM,YAAY,GAAG,CAAC,EAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAoB,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;IAEtE,OAAO,CACL,CAAC,SAAS,CACR,KAAK,CAAC,CAAC;YACL,WAAW,CAAC,OAAO;YACnB;gBACE,MAAM;gBACN,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC,gBAAgB;aAC/D;SACF,CAAC,CACF,OAAO,CAAC,CAAC,WAAW,CAAC,CACrB,QAAQ,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,CAC1B,MAAM,CAAC,CAAC,gBAAgB,GAAG,CAAC,GAAG,EAAE,CAAC,CAClC;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC3B;QAAA,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CACnC;UAAA,CAAC,GAAG,CAAC,KAAK,CACZ;QAAA,EAAE,IAAI,CACN;QAAA,CAAC,GAAG,CAAC,QAAQ,IAAI,IAAI,IAAI,CACvB,CAAC,IAAI,CACH,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,WAAW,CAAC,SAAS,CACrB,QAAQ,CAAC,CAAC,CAAC,CAAC,CACZ,SAAS,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC,CACvC;YAAA,CAAC,GAAG,CAAC,QAAQ,CACf;UAAA,EAAE,IAAI,CAAC,CACR,CACH;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,GAAG,CAAC,OAAO,IAAI,IAAI,IAAI,CACtB,CAAC,IAAI,CACH,IAAI,CAAC,2BAA2B,CAChC,IAAI,CAAC,CAAC,EAAE,CAAC,CACT,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,EACtC,CACH,CACH;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE;QACR,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,CAAC;KACZ;CACF,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as GanttCellStrip } from './GanttCellStrip';
|
|
2
|
+
export { default as GanttGridLines } from './GanttGridLines';
|
|
3
|
+
export { default as GanttGroupHeader } from './GanttGroupHeader';
|
|
4
|
+
export { default as GanttGroupLane } from './GanttGroupLane';
|
|
5
|
+
export { default as GanttRowLane } from './GanttRowLane';
|
|
6
|
+
export { default as GanttRowName } from './GanttRowName';
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export { default as GanttCellStrip } from './GanttCellStrip';
|
|
19
|
+
export { default as GanttGridLines } from './GanttGridLines';
|
|
20
|
+
export { default as GanttGroupHeader } from './GanttGroupHeader';
|
|
21
|
+
export { default as GanttGroupLane } from './GanttGroupLane';
|
|
22
|
+
export { default as GanttRowLane } from './GanttRowLane';
|
|
23
|
+
export { default as GanttRowName } from './GanttRowName';
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/organisms/GanttView/body/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Color } from '../../../theme';
|
|
2
|
+
import { GanttBarGeometry, GanttDay, GanttFill, GanttItem, GanttMonthBand, GanttPeriod, GanttRange, GanttRow, GanttRowLayout } from './types';
|
|
3
|
+
export declare const daysBetween: (fromDate: string, toDate: string) => number;
|
|
4
|
+
export declare const getIsoWeekNumber: (dateString: string) => number;
|
|
5
|
+
export declare const buildGanttDays: (referenceDate: Date, weeksBefore: number, weeksAfter: number, firstDayOfWeek: number) => GanttDay[];
|
|
6
|
+
export declare const buildGanttPeriods: (days: GanttDay[]) => GanttPeriod[];
|
|
7
|
+
export declare const buildMonthBands: (days: GanttDay[]) => GanttMonthBand[];
|
|
8
|
+
export declare const computeBarGeometry: (item: GanttItem, firstDateString: string, totalDays: number, dayWidth: number) => GanttBarGeometry | null;
|
|
9
|
+
export declare const sortItemsByPriority: (items?: GanttItem[]) => GanttItem[];
|
|
10
|
+
export declare const buildRowLayout: (row?: GanttRow) => GanttRowLayout;
|
|
11
|
+
export declare const getVisibleRange: (days: GanttDay[], scrollX: number, gridWidth: number, dayWidth: number, overscanDays?: number) => GanttRange | undefined;
|
|
12
|
+
export declare const getWeekScrollOffset: (dateString: string, firstDateString: string, dayWidth: number, gridWidth: number, contentWidth: number) => number;
|
|
13
|
+
export declare const buildNonWorkingFills: (days: GanttDay[], nonWorkingDays: Record<string, Color> | undefined, dayWidth: number) => GanttFill[];
|
|
14
|
+
/**
|
|
15
|
+
* Offset `weekStep` weeks away from where the grid currently sits. The current
|
|
16
|
+
* offset is rounded to a whole week first, so repeated presses stay on week
|
|
17
|
+
* boundaries even when the user left the scroll mid-week.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getSteppedScrollOffset: (currentOffset: number, weekStep: number, dayWidth: number, gridWidth: number, contentWidth: number) => number;
|
|
@@ -0,0 +1,219 @@
|
|
|
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 { DAYS_IN_WEEK, fromDateString, isWeekEnd, startOfWeek, toDateString, } from '../../../utils';
|
|
19
|
+
import { GANTT_BAR_MIN_WIDTH, getRowHeight } from './gantt-view.styles';
|
|
20
|
+
const MS_PER_DAY = 24 * 60 * 60 * 1000;
|
|
21
|
+
const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
22
|
+
export const daysBetween = (fromDate, toDate) => Math.round((fromDateString(toDate).getTime() - fromDateString(fromDate).getTime()) /
|
|
23
|
+
MS_PER_DAY);
|
|
24
|
+
export const getIsoWeekNumber = (dateString) => {
|
|
25
|
+
const date = fromDateString(dateString);
|
|
26
|
+
const thursday = new Date(date.getFullYear(), date.getMonth(), date.getDate() - ((date.getDay() + 6) % 7) + 3);
|
|
27
|
+
const firstThursday = new Date(thursday.getFullYear(), 0, 4);
|
|
28
|
+
firstThursday.setDate(firstThursday.getDate() - ((firstThursday.getDay() + 6) % 7) + 3);
|
|
29
|
+
return (1 +
|
|
30
|
+
Math.round((thursday.getTime() - firstThursday.getTime()) /
|
|
31
|
+
(DAYS_IN_WEEK * MS_PER_DAY)));
|
|
32
|
+
};
|
|
33
|
+
export const buildGanttDays = (referenceDate, weeksBefore, weeksAfter, firstDayOfWeek) => {
|
|
34
|
+
const current = startOfWeek(referenceDate, firstDayOfWeek);
|
|
35
|
+
current.setDate(current.getDate() - weeksBefore * DAYS_IN_WEEK);
|
|
36
|
+
const totalDays = (weeksBefore + weeksAfter + 1) * DAYS_IN_WEEK;
|
|
37
|
+
const days = [];
|
|
38
|
+
for (let index = 0; index < totalDays; index++) {
|
|
39
|
+
days.push({
|
|
40
|
+
dateString: toDateString(current),
|
|
41
|
+
dayNumber: current.getDate(),
|
|
42
|
+
dayOfWeek: current.getDay(),
|
|
43
|
+
monthIndex: current.getMonth(),
|
|
44
|
+
year: current.getFullYear(),
|
|
45
|
+
isWeekEnd: isWeekEnd(current),
|
|
46
|
+
isFirstDayOfWeek: current.getDay() === firstDayOfWeek,
|
|
47
|
+
});
|
|
48
|
+
current.setDate(current.getDate() + 1);
|
|
49
|
+
}
|
|
50
|
+
return days;
|
|
51
|
+
};
|
|
52
|
+
export const buildGanttPeriods = (days) => {
|
|
53
|
+
const periods = [];
|
|
54
|
+
days.forEach((day, index) => {
|
|
55
|
+
const current = periods[periods.length - 1];
|
|
56
|
+
if (current == null || day.isFirstDayOfWeek) {
|
|
57
|
+
periods.push({
|
|
58
|
+
key: day.dateString,
|
|
59
|
+
dayIndex: index,
|
|
60
|
+
numberOfDays: 1,
|
|
61
|
+
monthIndex: day.monthIndex,
|
|
62
|
+
lastMonthIndex: day.monthIndex,
|
|
63
|
+
weekNumber: getIsoWeekNumber(day.dateString),
|
|
64
|
+
});
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
current.numberOfDays += 1;
|
|
68
|
+
current.lastMonthIndex = day.monthIndex;
|
|
69
|
+
});
|
|
70
|
+
return periods;
|
|
71
|
+
};
|
|
72
|
+
export const buildMonthBands = (days) => {
|
|
73
|
+
const bands = [];
|
|
74
|
+
days.forEach((day, index) => {
|
|
75
|
+
const current = bands[bands.length - 1];
|
|
76
|
+
if (current != null &&
|
|
77
|
+
current.monthIndex === day.monthIndex &&
|
|
78
|
+
current.year === day.year) {
|
|
79
|
+
current.numberOfDays += 1;
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
bands.push({
|
|
83
|
+
key: day.dateString,
|
|
84
|
+
dayIndex: index,
|
|
85
|
+
numberOfDays: 1,
|
|
86
|
+
monthIndex: day.monthIndex,
|
|
87
|
+
year: day.year,
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
return bands;
|
|
91
|
+
};
|
|
92
|
+
export const computeBarGeometry = (item, firstDateString, totalDays, dayWidth) => {
|
|
93
|
+
if (item?.startDate == null || item?.endDate == null || dayWidth <= 0)
|
|
94
|
+
return null;
|
|
95
|
+
const startIndex = daysBetween(firstDateString, item.startDate);
|
|
96
|
+
const endIndex = daysBetween(firstDateString, item.endDate);
|
|
97
|
+
if (endIndex < startIndex)
|
|
98
|
+
return null;
|
|
99
|
+
const contentWidth = totalDays * dayWidth;
|
|
100
|
+
const rawLeft = (startIndex + (item.startsAfternoon ? 0.5 : 0)) * dayWidth;
|
|
101
|
+
const rawRight = (endIndex + (item.endsMorning ? 0.5 : 1)) * dayWidth;
|
|
102
|
+
if (rawRight <= 0 || rawLeft >= contentWidth)
|
|
103
|
+
return null;
|
|
104
|
+
const left = Math.max(rawLeft, 0);
|
|
105
|
+
const right = Math.min(rawRight, contentWidth);
|
|
106
|
+
return {
|
|
107
|
+
left,
|
|
108
|
+
width: Math.max(right - left, GANTT_BAR_MIN_WIDTH),
|
|
109
|
+
clipStart: rawLeft < 0,
|
|
110
|
+
clipEnd: rawRight > contentWidth,
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
export const sortItemsByPriority = (items) => Array.isArray(items)
|
|
114
|
+
? [...items].sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0))
|
|
115
|
+
: [];
|
|
116
|
+
const getItemSpan = (item, referenceDateString) => {
|
|
117
|
+
const startIndex = daysBetween(referenceDateString, item.startDate);
|
|
118
|
+
const endIndex = daysBetween(referenceDateString, item.endDate);
|
|
119
|
+
return {
|
|
120
|
+
start: startIndex + (item.startsAfternoon ? 0.5 : 0),
|
|
121
|
+
end: Math.max(endIndex + (item.endsMorning ? 0.5 : 1), startIndex + 0.5),
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export const buildRowLayout = (row) => {
|
|
125
|
+
const hasCells = row?.cells != null;
|
|
126
|
+
const items = (row?.items ?? []).filter(item => item?.startDate != null && item?.endDate != null);
|
|
127
|
+
if (items.length === 0)
|
|
128
|
+
return {
|
|
129
|
+
laneCount: 1,
|
|
130
|
+
laneIndexByItemId: {},
|
|
131
|
+
height: getRowHeight(1, hasCells),
|
|
132
|
+
};
|
|
133
|
+
const referenceDateString = items.reduce((earliest, item) => (item.startDate < earliest ? item.startDate : earliest), items[0].startDate);
|
|
134
|
+
const spans = items
|
|
135
|
+
.map(item => ({ item, ...getItemSpan(item, referenceDateString) }))
|
|
136
|
+
.sort((a, b) => a.start - b.start ||
|
|
137
|
+
(a.item.priority ?? 0) - (b.item.priority ?? 0) ||
|
|
138
|
+
`${a.item.id}`.localeCompare(`${b.item.id}`));
|
|
139
|
+
const laneEnds = [];
|
|
140
|
+
const laneIndexByItemId = {};
|
|
141
|
+
spans.forEach(({ item, start, end }) => {
|
|
142
|
+
const laneIndex = laneEnds.findIndex(laneEnd => laneEnd <= start);
|
|
143
|
+
if (laneIndex === -1) {
|
|
144
|
+
laneEnds.push(end);
|
|
145
|
+
laneIndexByItemId[`${item.id}`] = laneEnds.length - 1;
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
laneEnds[laneIndex] = end;
|
|
149
|
+
laneIndexByItemId[`${item.id}`] = laneIndex;
|
|
150
|
+
});
|
|
151
|
+
return {
|
|
152
|
+
laneCount: laneEnds.length,
|
|
153
|
+
laneIndexByItemId,
|
|
154
|
+
height: getRowHeight(laneEnds.length, hasCells),
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
export const getVisibleRange = (days, scrollX, gridWidth, dayWidth, overscanDays = DAYS_IN_WEEK) => {
|
|
158
|
+
if (days.length === 0 || dayWidth <= 0 || gridWidth <= 0)
|
|
159
|
+
return undefined;
|
|
160
|
+
const lastIndex = days.length - 1;
|
|
161
|
+
const firstVisible = Math.floor(scrollX / dayWidth) - overscanDays;
|
|
162
|
+
const lastVisible = Math.ceil((scrollX + gridWidth) / dayWidth) + overscanDays;
|
|
163
|
+
return {
|
|
164
|
+
fromDate: days[clamp(firstVisible, 0, lastIndex)].dateString,
|
|
165
|
+
toDate: days[clamp(lastVisible, 0, lastIndex)].dateString,
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export const getWeekScrollOffset = (dateString, firstDateString, dayWidth, gridWidth, contentWidth) => {
|
|
169
|
+
const dayIndex = daysBetween(firstDateString, dateString);
|
|
170
|
+
const weekIndex = Math.floor(dayIndex / DAYS_IN_WEEK);
|
|
171
|
+
return clamp(weekIndex * DAYS_IN_WEEK * dayWidth, 0, Math.max(contentWidth - gridWidth, 0));
|
|
172
|
+
};
|
|
173
|
+
export const buildNonWorkingFills = (days, nonWorkingDays, dayWidth) => {
|
|
174
|
+
if (nonWorkingDays == null || dayWidth <= 0)
|
|
175
|
+
return [];
|
|
176
|
+
const fills = [];
|
|
177
|
+
let runColor;
|
|
178
|
+
let runStart = 0;
|
|
179
|
+
let runLength = 0;
|
|
180
|
+
const flush = () => {
|
|
181
|
+
if (runColor == null)
|
|
182
|
+
return;
|
|
183
|
+
fills.push({
|
|
184
|
+
key: days[runStart].dateString,
|
|
185
|
+
left: runStart * dayWidth,
|
|
186
|
+
width: runLength * dayWidth,
|
|
187
|
+
color: runColor,
|
|
188
|
+
});
|
|
189
|
+
runColor = undefined;
|
|
190
|
+
runLength = 0;
|
|
191
|
+
};
|
|
192
|
+
days.forEach((day, index) => {
|
|
193
|
+
const color = nonWorkingDays[day.dateString];
|
|
194
|
+
if (color === runColor) {
|
|
195
|
+
runLength += 1;
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
flush();
|
|
199
|
+
if (color == null)
|
|
200
|
+
return;
|
|
201
|
+
runColor = color;
|
|
202
|
+
runStart = index;
|
|
203
|
+
runLength = 1;
|
|
204
|
+
});
|
|
205
|
+
flush();
|
|
206
|
+
return fills;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Offset `weekStep` weeks away from where the grid currently sits. The current
|
|
210
|
+
* offset is rounded to a whole week first, so repeated presses stay on week
|
|
211
|
+
* boundaries even when the user left the scroll mid-week.
|
|
212
|
+
*/
|
|
213
|
+
export const getSteppedScrollOffset = (currentOffset, weekStep, dayWidth, gridWidth, contentWidth) => {
|
|
214
|
+
const weekWidth = DAYS_IN_WEEK * dayWidth;
|
|
215
|
+
if (weekWidth <= 0)
|
|
216
|
+
return 0;
|
|
217
|
+
return clamp((Math.round(currentOffset / weekWidth) + weekStep) * weekWidth, 0, Math.max(contentWidth - gridWidth, 0));
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=gantt-view.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt-view.helpers.js","sourceRoot":"","sources":["../../../../src/components/organisms/GanttView/gantt-view.helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,SAAS,EACT,WAAW,EACX,YAAY,GACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAatE,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEvC,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAU,EAAE,CAChE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;AAE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