Skip to content

Commit

Permalink
Merge branch 'main' into users/munteannatan/experimental-events
Browse files Browse the repository at this point in the history
  • Loading branch information
munteannatan committed Mar 18, 2024
2 parents cba3d20 + aeaa29b commit 85d961a
Show file tree
Hide file tree
Showing 70 changed files with 1,486 additions and 186 deletions.
2 changes: 1 addition & 1 deletion angular-workspace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
"ng-packagr": "^15.2.2",
"playwright": "1.40.0",
"rollup": "^4.12.0",
"typescript": "~4.8.2"
"typescript": "~4.9.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,19 @@
<div class="sub-container">
<div class="container-label">Select</div>
<nimble-select filter-mode="standard" appearance="underline">
<nimble-list-option hidden selected disabled>Select an option</nimble-list-option>
<nimble-list-option>Option 1</nimble-list-option>
<nimble-list-option>Option 2</nimble-list-option>
<nimble-list-option>Option 3</nimble-list-option>
</nimble-select>
<nimble-select appearance="outline">
<nimble-list-option hidden selected disabled>Select an option</nimble-list-option>
<nimble-list-option>Option 1</nimble-list-option>
<nimble-list-option>Option 2</nimble-list-option>
<nimble-list-option>Option 3</nimble-list-option>
</nimble-select>
<nimble-select appearance="block">
<nimble-list-option hidden selected disabled>Select an option</nimble-list-option>
<nimble-list-option>Option 1</nimble-list-option>
<nimble-list-option>Option 2</nimble-list-option>
<nimble-list-option>Option 3</nimble-list-option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,6 @@ export class CustomAppComponent implements AfterViewInit {
public constructor(@Inject(ActivatedRoute) public readonly route: ActivatedRoute) {
this.tableData$ = this.tableDataSubject.asObservable();
this.addTableRows(10);

this.comboboxItems = [];
for (let i = 0; i < 300; i++) {
this.comboboxItems.push({
first: i.toString(),
last: i.toString()
});
}
}

public ngAfterViewInit(): void {
Expand Down
72 changes: 72 additions & 0 deletions angular-workspace/projects/ni/nimble-angular/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,78 @@
{
"name": "@ni/nimble-angular",
"entries": [
{
"date": "Thu, 14 Mar 2024 14:48:16 GMT",
"version": "20.4.1",
"tag": "@ni/nimble-angular_v20.4.1",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@ni/nimble-angular",
"comment": "Bump @ni/nimble-components to v22.0.1",
"commit": "not available"
}
]
}
},
{
"date": "Wed, 13 Mar 2024 23:07:24 GMT",
"version": "20.4.0",
"tag": "@ni/nimble-angular_v20.4.0",
"comments": {
"minor": [
{
"author": "[email protected]",
"package": "@ni/nimble-angular",
"commit": "518c229b964d2c4a2e77210692f5d367f2937ff4",
"comment": "Update default values in label provider directives and expose additional label provider properties"
},
{
"author": "beachball",
"package": "@ni/nimble-angular",
"comment": "Bump @ni/nimble-components to v22.0.0",
"commit": "not available"
}
]
}
},
{
"date": "Tue, 12 Mar 2024 22:17:11 GMT",
"version": "20.3.0",
"tag": "@ni/nimble-angular_v20.3.0",
"comments": {
"minor": [
{
"author": "[email protected]",
"package": "@ni/nimble-angular",
"commit": "880dfa1a7f1f9f478dc87199184dba3e5e2c0a56",
"comment": "Add selected and hidden attributes to NimbleListOptionDirective. Also exporting SelectPageObject."
},
{
"author": "beachball",
"package": "@ni/nimble-angular",
"comment": "Bump @ni/nimble-components to v21.10.2",
"commit": "not available"
}
]
}
},
{
"date": "Tue, 12 Mar 2024 21:01:54 GMT",
"version": "20.2.21",
"tag": "@ni/nimble-angular_v20.2.21",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@ni/nimble-angular",
"comment": "Bump @ni/nimble-components to v21.10.1",
"commit": "not available"
}
]
}
},
{
"date": "Thu, 07 Mar 2024 21:20:52 GMT",
"version": "20.2.20",
Expand Down
36 changes: 35 additions & 1 deletion angular-workspace/projects/ni/nimble-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,43 @@
# Change Log - @ni/nimble-angular

This log was last generated on Thu, 07 Mar 2024 21:20:52 GMT and should not be manually modified.
This log was last generated on Thu, 14 Mar 2024 14:48:16 GMT and should not be manually modified.

<!-- Start content -->

## 20.4.1

Thu, 14 Mar 2024 14:48:16 GMT

### Patches

- Bump @ni/nimble-components to v22.0.1

## 20.4.0

Wed, 13 Mar 2024 23:07:24 GMT

### Minor changes

- Update default values in label provider directives and expose additional label provider properties ([ni/nimble@518c229](https://github.com/ni/nimble/commit/518c229b964d2c4a2e77210692f5d367f2937ff4))
- Bump @ni/nimble-components to v22.0.0

## 20.3.0

Tue, 12 Mar 2024 22:17:11 GMT

### Minor changes

- Add selected and hidden attributes to NimbleListOptionDirective. Also exporting SelectPageObject. ([ni/nimble@880dfa1](https://github.com/ni/nimble/commit/880dfa1a7f1f9f478dc87199184dba3e5e2c0a56))
- Bump @ni/nimble-components to v21.10.2

## 20.2.21

Tue, 12 Mar 2024 21:01:54 GMT

### Patches

- Bump @ni/nimble-components to v21.10.1

## 20.2.20

Thu, 07 Mar 2024 21:20:52 GMT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@ export class NimbleLabelProviderCoreWithDefaultsDirective {
this.elementRef.nativeElement.popupDismiss = $localize`:Nimble popup - dismiss|:Close`;
this.elementRef.nativeElement.numericDecrement = $localize`:Nimble numeric - decrement|:Decrement`;
this.elementRef.nativeElement.numericIncrement = $localize`:Nimble numeric - increment|:Increment`;
this.elementRef.nativeElement.popupIconError = $localize`:Nimble popup icon - error|:Error`;
this.elementRef.nativeElement.popupIconWarning = $localize`:Nimble popup icon - warning|:Warning`;
this.elementRef.nativeElement.popupIconInformation = $localize`:Nimble popup icon - information|:Information`;
this.elementRef.nativeElement.filterSearch = $localize`:Nimble select - search items|:Search`;
this.elementRef.nativeElement.filterNoResults = $localize`:Nimble select - no items|:No items found`;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,44 @@ export class NimbleLabelProviderCoreDirective {
@Input('numeric-increment') public set numericIncrement(value: string | undefined) {
this.renderer.setProperty(this.elementRef.nativeElement, 'numericIncrement', value);
}

public get popupIconError(): string | undefined {
return this.elementRef.nativeElement.popupIconError;
}

@Input('popup-icon-error') public set popupIconError(value: string | undefined) {
this.renderer.setProperty(this.elementRef.nativeElement, 'popupIconError', value);
}

public get popupIconWarning(): string | undefined {
return this.elementRef.nativeElement.popupIconWarning;
}

@Input('popup-icon-warning') public set popupIconWarning(value: string | undefined) {
this.renderer.setProperty(this.elementRef.nativeElement, 'popupIconWarning', value);
}

public get popupIconInformation(): string | undefined {
return this.elementRef.nativeElement.popupIconInformation;
}

@Input('popup-icon-information') public set popupIconInformation(value: string | undefined) {
this.renderer.setProperty(this.elementRef.nativeElement, 'popupIconInformation', value);
}

public get filterSearch(): string | undefined {
return this.elementRef.nativeElement.filterSearch;
}

@Input('filter-search') public set filterSearch(value: string | undefined) {
this.renderer.setProperty(this.elementRef.nativeElement, 'filterSearch', value);
}

public get filterNoResults(): string | undefined {
return this.elementRef.nativeElement.filterNoResults;
}

@Input('filter-no-results') public set filterNoResults(value: string | undefined) {
this.renderer.setProperty(this.elementRef.nativeElement, 'filterNoResults', value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ describe('Nimble LabelProviderCore withDefaults directive', () => {
loadTranslations({
[computeMsgId('Close', 'Nimble popup - dismiss')]: 'Translated close',
[computeMsgId('Decrement', 'Nimble numeric - decrement')]: 'Translated decrement',
[computeMsgId('Increment', 'Nimble numeric - increment')]: 'Translated increment'
[computeMsgId('Increment', 'Nimble numeric - increment')]: 'Translated increment',
[computeMsgId('Error', 'Nimble popup icon - error')]: 'Translated error',
[computeMsgId('Warning', 'Nimble popup icon - warning')]: 'Translated warning',
[computeMsgId('Information', 'Nimble popup icon - information')]: 'Translated information',
[computeMsgId('Search', 'Nimble select - search items')]: 'Translated search',
[computeMsgId('No items found', 'Nimble select - no items')]: 'Translated no items found'
});
const fixture = TestBed.createComponent(TestHostComponent);
const testHostComponent = fixture.componentInstance;
Expand All @@ -42,5 +47,10 @@ describe('Nimble LabelProviderCore withDefaults directive', () => {
expect(labelProvider.popupDismiss).toBe('Translated close');
expect(labelProvider.numericDecrement).toBe('Translated decrement');
expect(labelProvider.numericIncrement).toBe('Translated increment');
expect(labelProvider.popupIconError).toBe('Translated error');
expect(labelProvider.popupIconWarning).toBe('Translated warning');
expect(labelProvider.popupIconInformation).toBe('Translated information');
expect(labelProvider.filterSearch).toBe('Translated search');
expect(labelProvider.filterNoResults).toBe('Translated no items found');
});
});
Loading

0 comments on commit 85d961a

Please sign in to comment.