-
Notifications
You must be signed in to change notification settings - Fork 51
Pagination TS conversion #2174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Pagination TS conversion #2174
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d7ce9fb
initial conversion of size-selecotr to ts
zamoore e6a09c9
finished converting SizeSelector
zamoore 6a9dcb6
initial conversion of Pagination::Info to ts
zamoore 6b51e97
finished initial conversion of HdsPaginationInfo component
zamoore 9daa2b3
initial conversion of pagination::numbered component
zamoore 1b025fb
finished initial conversion of hds::pagination::numbered
zamoore deef851
finished conversion
zamoore befa2bf
ts conversion in-progress
zamoore dcf4b32
initial conversion of the compact navigation component to ts
zamoore 0e72ea3
finished conversion of the compact pagination component
zamoore 3a84751
added ts files to component registry
zamoore 26b5e6c
cleaned up the number component
zamoore e009344
finished converting the arrow component
zamoore e35600c
cleaned up the info component
zamoore b00aa80
added to template-registry:
zamoore 180807b
cleaning up types
zamoore 37d2576
cleaning up types
zamoore 12a64d0
cleaning up types
zamoore 7722795
no more type errors
zamoore eb5ed48
fixed ts errors after rebase
zamoore c16f8e6
fixing tests
zamoore 0fafc62
fixing tests
zamoore fa1156b
Update changeset to be more inline with others
zamoore ed4ef8f
responding to PR feedback
zamoore b665e93
responding to PR feedback
zamoore 8f5a3b2
removed dev comments
zamoore File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| --- | ||
| "@hashicorp/design-system-components": minor | ||
| --- | ||
|
|
||
| `Hds::Pagination` - Converted component to Typescript |
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
packages/components/src/components/hds/pagination/compact/index.hbs
This file contains hidden or 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,4 +1,3 @@ | ||
| {{! @glint-nocheck: not typesafe yet }} | ||
| {{! | ||
| Copyright (c) HashiCorp, Inc. | ||
| SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
packages/components/src/components/hds/pagination/info/index.hbs
This file contains hidden or 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,4 +1,3 @@ | ||
| {{! @glint-nocheck: not typesafe yet }} | ||
| {{! | ||
| Copyright (c) HashiCorp, Inc. | ||
| SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
17 changes: 0 additions & 17 deletions
17
packages/components/src/components/hds/pagination/info/index.js
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
packages/components/src/components/hds/pagination/info/index.ts
This file contains hidden or 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 @@ | ||
| /** | ||
| * Copyright (c) HashiCorp, Inc. | ||
| * SPDX-License-Identifier: MPL-2.0 | ||
| */ | ||
|
|
||
| import Component from '@glimmer/component'; | ||
| import type { HdsPaginationNumberedSignature } from '../numbered/index'; | ||
| import type { HdsTextBodySignature } from '../../text/body'; | ||
| interface HdsPaginationInfoSignature { | ||
| Args: { | ||
| itemsRangeStart: number; | ||
| itemsRangeEnd: number; | ||
| showTotalItems?: HdsPaginationNumberedSignature['Args']['showTotalItems']; | ||
| totalItems: HdsPaginationNumberedSignature['Args']['totalItems']; | ||
| }; | ||
| Element: HdsTextBodySignature['Element']; | ||
zamoore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| export default class HdsPaginationInfoComponent extends Component<HdsPaginationInfoSignature> { | ||
| get showTotalItems(): boolean { | ||
| return this.args.showTotalItems ?? true; | ||
| } | ||
| } | ||
1 change: 0 additions & 1 deletion
1
packages/components/src/components/hds/pagination/nav/arrow.hbs
This file contains hidden or 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,4 +1,3 @@ | ||
| {{! @glint-nocheck: not typesafe yet }} | ||
| {{! | ||
| Copyright (c) HashiCorp, Inc. | ||
| SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
77 changes: 0 additions & 77 deletions
77
packages/components/src/components/hds/pagination/nav/arrow.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.