-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into users/munteannatan/wafer-map-test-fixes
- Loading branch information
Showing
175 changed files
with
29,978 additions
and
5,026 deletions.
There are no files selected for viewing
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,22 @@ | ||
module.exports = { | ||
ci: { | ||
collect: { | ||
staticDistDir: './dist/example-client-app', | ||
url: [ | ||
'http://localhost:58452/#/customapp' | ||
], | ||
numberOfRuns: 3, | ||
}, | ||
assert: { | ||
assertions: { | ||
'categories:performance': ['warn', { minScore: 0.9 }], | ||
// TODO: reset to 0.9 as part of https://github.com/ni/nimble/issues/1090 | ||
// TODO: reset to error as part of https://github.com/ni/nimble/issues/1650 | ||
'categories:accessibility': ['warn', { minScore: 0.88 }] | ||
} | ||
}, | ||
upload: { | ||
target: 'temporary-public-storage', | ||
}, | ||
}, | ||
}; |
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
23 changes: 23 additions & 0 deletions
23
angular-workspace/projects/example-client-app/src/tests/pipes.spec.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,23 @@ | ||
import { DurationPipe, NumberTextPipe, byteUnitScale, byte1024UnitScale, voltUnitScale } from '@ni/nimble-angular/pipes'; | ||
|
||
describe('Pipes', () => { | ||
it('exports DurationPipe', () => { | ||
expect(new DurationPipe('en')).toBeTruthy(); | ||
}); | ||
|
||
it('exports NumberTextPipe', () => { | ||
expect(new NumberTextPipe('en')).toBeTruthy(); | ||
}); | ||
|
||
it('exports byteUnitScale', () => { | ||
expect(byteUnitScale).toBeTruthy(); | ||
}); | ||
|
||
it('exports byte1024UnitScale', () => { | ||
expect(byte1024UnitScale).toBeTruthy(); | ||
}); | ||
|
||
it('exports voltUnitScale', () => { | ||
expect(voltUnitScale).toBeTruthy(); | ||
}); | ||
}); |
87 changes: 87 additions & 0 deletions
87
angular-workspace/projects/ni/nimble-angular/CHANGELOG.json
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 |
---|---|---|
@@ -1,6 +1,93 @@ | ||
{ | ||
"name": "@ni/nimble-angular", | ||
"entries": [ | ||
{ | ||
"date": "Fri, 02 Feb 2024 21:51:03 GMT", | ||
"version": "20.0.1", | ||
"tag": "@ni/nimble-angular_v20.0.1", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "beachball", | ||
"package": "@ni/nimble-angular", | ||
"comment": "Bump @ni/nimble-components to v21.2.0", | ||
"commit": "not available" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 31 Jan 2024 20:22:58 GMT", | ||
"version": "20.0.0", | ||
"tag": "@ni/nimble-angular_v20.0.0", | ||
"comments": { | ||
"major": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@ni/nimble-angular", | ||
"commit": "bf9013d5cb92106ddd1fcf6fd84e6684930462b8", | ||
"comment": "Create new NumberTextPipe and change existing DurationPipe to be a standalone pipe (removing NimblePipesModule)" | ||
}, | ||
{ | ||
"author": "beachball", | ||
"package": "@ni/nimble-angular", | ||
"comment": "Bump @ni/nimble-components to v21.1.0", | ||
"commit": "not available" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 31 Jan 2024 17:51:55 GMT", | ||
"version": "19.4.0", | ||
"tag": "@ni/nimble-angular_v19.4.0", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@ni/nimble-angular", | ||
"commit": "147777aaf8332d80a89aecec247a95ee31233965", | ||
"comment": "Include href in NavigationGuard" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 29 Jan 2024 11:31:46 GMT", | ||
"version": "19.3.1", | ||
"tag": "@ni/nimble-angular_v19.3.1", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@ni/nimble-angular", | ||
"commit": "ec2e0ddef1d910d44097ccb2a976ad2343dbac63", | ||
"comment": "Add validator APIs to rich text editor and viewer components" | ||
}, | ||
{ | ||
"author": "beachball", | ||
"package": "@ni/nimble-angular", | ||
"comment": "Bump @ni/nimble-components to v21.0.5", | ||
"commit": "not available" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Sat, 27 Jan 2024 17:56:18 GMT", | ||
"version": "19.3.0", | ||
"tag": "@ni/nimble-angular_v19.3.0", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@ni/nimble-angular", | ||
"commit": "39bd1f821cd5394c75187abbcf3c3dcc9b3a1572", | ||
"comment": "Adding Angular support for table data hierarchy" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 25 Jan 2024 02:58:12 GMT", | ||
"version": "19.2.4", | ||
|
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
10 changes: 0 additions & 10 deletions
10
angular-workspace/projects/ni/nimble-angular/pipes/nimble-pipes.module.ts
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
angular-workspace/projects/ni/nimble-angular/pipes/number-text.pipe.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,25 @@ | ||
import { Inject, LOCALE_ID, Pipe, PipeTransform } from '@angular/core'; | ||
import { NumberTextUnitFormat, NumberTextUnitFormatOptions } from '@ni/nimble-components/dist/esm/table-column/number-text/models/number-text-unit-format'; | ||
|
||
/** | ||
* A pipe that transforms a number into a string with optional unit | ||
*/ | ||
@Pipe({ | ||
name: 'numberText', | ||
standalone: true | ||
}) | ||
export class NumberTextPipe implements PipeTransform { | ||
/** | ||
* @internal | ||
*/ | ||
public numberTextUnitFormat?: NumberTextUnitFormat; | ||
|
||
public constructor(@Inject(LOCALE_ID) private readonly locale: string) {} | ||
|
||
public transform(value: number, options?: NumberTextUnitFormatOptions): string { | ||
if (!this.numberTextUnitFormat?.optionsMatch(options)) { | ||
this.numberTextUnitFormat = new NumberTextUnitFormat(this.locale, options); | ||
} | ||
return this.numberTextUnitFormat.format(value); | ||
} | ||
} |
5 changes: 4 additions & 1 deletion
5
angular-workspace/projects/ni/nimble-angular/pipes/public-api.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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
export * from './duration.pipe'; | ||
export * from './nimble-pipes.module'; | ||
export * from './number-text.pipe'; | ||
export { byteUnitScale } from '@ni/nimble-components/dist/esm/utilities/unit-format/unit-scale/byte-unit-scale'; | ||
export { byte1024UnitScale } from '@ni/nimble-components/dist/esm/utilities/unit-format/unit-scale/byte-1024-unit-scale'; | ||
export { voltUnitScale } from '@ni/nimble-components/dist/esm/utilities/unit-format/unit-scale/volt-unit-scale'; |
Oops, something went wrong.