Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui5-timeline-group-item): introduce new component #9407

Merged
merged 18 commits into from
Aug 2, 2024
Merged

Conversation

hinzzx
Copy link
Contributor

@hinzzx hinzzx commented Jul 8, 2024

Introducing the new <ui5-timeline-group-item> web component.

It allows the application developers to group a <ui5-timeline-item>'s under one name, specified by the groupName property.

Mixed scenarios are possible, between <ui5-timeline-item>'s and <ui5-timeline-group-item>'s, where they are on the same level in the DOM.

Sample usage of groups in mixed scenarios could be:

<ui5-timeline id="verticalWithGrps">
    <ui5-timeline-item></ui5-timeline-item>
    <ui5-timeline-item></ui5-timeline-item>
 
    /* Items in a group */
    <ui5-timeline-group-item group-name="Events">

        <ui5-timeline-item>Morning event</ui5-timeline-item>
	<ui5-timeline-item>
	     <ui5-avatar initials="SK"></ui5-avatar>
	     <ui5-label>Good morning</ui5-label>
	</ui5-timeline-item>
	<ui5-timeline-item><ui5-avatar initials="SK"></ui5-avatar></ui5-timeline-item>

    </ui5-timeline-group-item>

    <ui5-timeline-item></ui5-timeline-item>
    <ui5-timeline-item></ui5-timeline-item>
</ui5-timeline>

Vertical layout

2024-07-22_09-36-41

Horizontal layout

2024-07-22_09-43-54

@hinzzx hinzzx marked this pull request as draft July 8, 2024 06:22
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/Timeline.ts Outdated Show resolved Hide resolved
packages/fiori/src/Timeline.ts Show resolved Hide resolved
packages/fiori/src/Timeline.ts Show resolved Hide resolved
packages/fiori/src/Timeline.ts Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/Timeline.ts Outdated Show resolved Hide resolved
packages/fiori/src/Timeline.ts Outdated Show resolved Hide resolved
packages/fiori/src/Timeline.ts Outdated Show resolved Hide resolved
packages/fiori/src/Timeline.ts Show resolved Hide resolved
packages/fiori/src/Timeline.ts Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.hbs Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.ts Outdated Show resolved Hide resolved
@hinzzx hinzzx changed the title WIP(ui5-timeline-group-item): introduce new component feat(ui5-timeline-group-item): introduce new component Jul 22, 2024
@hinzzx hinzzx marked this pull request as ready for review July 22, 2024 06:55
Copy link
Member

@Todor-ads Todor-ads left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my side, the change looks good. Let the colleagues also review this change.

@hinzzx hinzzx requested review from nnaydenow and ilhan007 July 23, 2024 06:56
packages/fiori/src/Timeline.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Show resolved Hide resolved
packages/fiori/src/TimelineItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.hbs Outdated Show resolved Hide resolved
@hinzzx hinzzx requested a review from nnaydenow July 26, 2024 06:29
packages/fiori/src/Timeline.ts Show resolved Hide resolved
packages/fiori/src/Timeline.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineGroupItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.ts Outdated Show resolved Hide resolved
packages/fiori/src/TimelineItem.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@nnaydenow nnaydenow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from API perspective looks fine

@nnaydenow nnaydenow dismissed their stale review July 31, 2024 13:09

from API perspective looks fine

@hinzzx hinzzx merged commit aea62ef into main Aug 2, 2024
10 checks passed
@hinzzx hinzzx deleted the feat-tl-group-item branch August 2, 2024 06:11
@tsanislavgatev
Copy link
Contributor

fixes: #7855

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants