Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v15.0.2-rc.0 (2023-08-16)
* **progress-button** fix styling & add playground page

# v15.0.1-rc.0 (2023-08-11)
* **suggest** add custom tooltip
* **grid** show border for column resize
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-components",
"version": "15.0.1-rc.0",
"version": "15.0.2-rc.0",
"author": {
"name": "UiPath Inc",
"url": "https://uipath.com"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ui-button-progress-bar {
display: block;
width: 100%;
width: 0;

Choose a reason for hiding this comment

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

why is width explicitly set to 0?

Copy link
Member Author

Choose a reason for hiding this comment

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

so it doesn't occupy space inside the button

padding: 0;
margin: 0;

.mat-mdc-progress-bar {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion projects/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uipath/angular",
"version": "15.0.1-rc.0",
"version": "15.0.2-rc.0",
"license": "MIT",
"author": {
"name": "UiPath Inc",
Expand Down
5 changes: 5 additions & 0 deletions projects/playground/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Routes,
} from '@angular/router';
import { TreeSelectPageComponent } from 'projects/playground/src/app/pages/tree-select/tree-select.page';
import { ProgressButtonPageComponent } from 'projects/playground/src/app/pages/progress-button/progress-button.page';

const routes: Routes = [
{
Expand All @@ -31,6 +32,10 @@ const routes: Routes = [
path: 'tree',
component: TreeSelectPageComponent,
},
{
path: 'progress-button',
component: ProgressButtonPageComponent,
},
{
path: '**',
redirectTo: 'home',
Expand Down
4 changes: 4 additions & 0 deletions projects/playground/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export class AppComponent {
name: 'Suggest',
link: '/suggest',
},
{
name: 'Progress button',
link: '/progress-button',
},
{
name: 'Tree select',
link: '/tree',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { UiProgressButtonModule } from '@uipath/angular/directives/ui-progress-button';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { ProgressButtonPageComponent } from './progress-button.page';

@NgModule({
declarations: [
ProgressButtonPageComponent,
],
imports: [
CommonModule,
UiProgressButtonModule,
MatButtonModule,
MatIconModule,
],
})
export class SuggestModule { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<button mat-flat-button
color="primary"
(click)="toggle()">
<mat-icon>radio_button_partial</mat-icon>
Toggle loading state</button>

<div class="group">
<button mat-button
ui-progress-button
[progressButtonLoading]="isLoading">test</button>
<button mat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="primary">test</button>
<button mat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="warn">test</button>
<button mat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="accent">test</button>

</div>

<div class="group">
<button mat-flat-button
ui-progress-button
[progressButtonLoading]="isLoading">test</button>
<button mat-flat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="primary">test</button>
<button mat-flat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="warn">test</button>
<button mat-flat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="accent">test</button>

</div>

<div class="group">
<button mat-flat-button
ui-progress-button
[progressButtonLoading]="isLoading">
<mat-icon>home</mat-icon>
test</button>
<button mat-flat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="primary">
<mat-icon>home</mat-icon>
test</button>
<button mat-flat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="warn">
<mat-icon>home</mat-icon>
test</button>
<button mat-flat-button
ui-progress-button
[progressButtonLoading]="isLoading"
color="accent">
<mat-icon>home</mat-icon>
test</button>

</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:host {
display: flex;
flex-direction: column;
gap: 10px;

> button {
width: fit-content;
}

.group {
display: flex;
gap: 10px;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {
ChangeDetectionStrategy,
Component,
} from '@angular/core';

@Component({
selector: 'ui-app-progress-button',
templateUrl: './progress-button.page.html',
styleUrls: ['./progress-button.page.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ProgressButtonPageComponent {
isLoading = false;

toggle() {
this.isLoading = !this.isLoading;
}
}