-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: progressbar slot content renamed to slot structure
- Loading branch information
1 parent
12c9ad6
commit 0f451a9
Showing
12 changed files
with
85 additions
and
70 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
angular/demo/src/app/samples/progressbar/cofee-progressbar.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import {type ProgressbarWidget, SlotComponent} from '@agnos-ui/angular'; | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
standalone: true, | ||
template: ` | ||
<div class="position-relative" style="height: 300px"> | ||
<div class="cup"> | ||
<div class="cup-fill-parent"> | ||
<div class="cup-fill" [style.height.px]="state.value * 1.7"> | ||
@if (state.value >= 50) { | ||
<div class="bubble bubble-1"></div> | ||
<div class="bubble bubble-2"></div> | ||
<div class="bubble bubble-3"></div> | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
`, | ||
styles: "@import '@agnos-ui/common/samples/progressbar/custom.scss';", | ||
host: { | ||
style: 'display: contents;', | ||
}, | ||
}) | ||
export default class CoffeeProgressbarComponent extends SlotComponent<ProgressbarWidget> {} |
24 changes: 5 additions & 19 deletions
24
angular/demo/src/app/samples/progressbar/fullCustom.route.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type {AdaptSlotContentProps} from '@agnos-ui/react/types'; | ||
import type {ProgressbarContext} from '@agnos-ui/react/components/progressbar'; | ||
|
||
export const Coffee = ({state}: AdaptSlotContentProps<ProgressbarContext>) => ( | ||
<div className="position-relative" style={{height: '300px'}}> | ||
<div className="cup"> | ||
<div className="cup-fill-parent"> | ||
<div className="cup-fill" style={{height: `${1.7 * state.percentage}px`}}> | ||
{state.percentage >= 50 ? ( | ||
<> | ||
<div className="bubble bubble-1"></div> | ||
<div className="bubble bubble-2"></div> | ||
<div className="bubble bubble-3"></div> | ||
</> | ||
) : null} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters