diff --git a/angular/demo/src/app/samples/progressbar/custom.route.ts b/angular/demo/src/app/samples/progressbar/custom.route.ts new file mode 100644 index 0000000000..8ac9ae7e95 --- /dev/null +++ b/angular/demo/src/app/samples/progressbar/custom.route.ts @@ -0,0 +1,83 @@ +import {ProgressbarComponent, ProgressbarContentDirective} from '@agnos-ui/angular'; +import {NgIf} from '@angular/common'; +import type {OnDestroy} from '@angular/core'; +import {Component} from '@angular/core'; +import type {Subscription} from 'rxjs'; +import {interval, map, startWith, takeWhile} from 'rxjs'; + +@Component({ + standalone: true, + imports: [ProgressbarComponent, ProgressbarContentDirective, NgIf], + template: ` +
+ {{ value === 0 ? 'Need to wake up.' : value < 100 ? 'Retrieving coffee... ' + value + '%' : 'Ready to work !' }} +
+The display can be fully customized while keeping the widget's functionality and accessibility.
++ The progressbar component implements the ARIA progressbar role. +
diff --git a/demo/src/routes/[framework]/components/progressbar/playground/+page.svelte b/demo/src/routes/[framework]/components/progressbar/playground/+page.svelte new file mode 100644 index 0000000000..52a7ed0e7d --- /dev/null +++ b/demo/src/routes/[framework]/components/progressbar/playground/+page.svelte @@ -0,0 +1,8 @@ + + ++ + "Need to wake up." + +
++ {value === 0 ? 'Need to wake up.' : value < 100 ? `Retrieving coffee... ${value}%` : 'Ready to work !'} +
++ + {value === 0 ? 'Need to wake up.' : value < 100 ? `Retrieving coffee... ${value}%` : 'Ready to work !'} + +
+