Skip to content

Commit

Permalink
Merge pull request #141 from emulsify-ds/emulsif-241-convert-pager-to…
Browse files Browse the repository at this point in the history
…-support-sdc

EMULSIF-241: Convert Pager to support SDC
  • Loading branch information
callinmullaney authored Aug 28, 2024
2 parents 23035ac + 21f3c60 commit b4ab5ea
Show file tree
Hide file tree
Showing 12 changed files with 466 additions and 112 deletions.
90 changes: 90 additions & 0 deletions src/components/pager/pager-both-ellipses.component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json

name: Pager with Both Ellipses
group: Components
status: stable
props:
type: object
required:
- current
- ellipses
- items
properties:
current:
type: integer
title: Current Page
description: 'Specifies the current active page number'
data: 5
ellipses:
type: object
title: Ellipses Visibility
description: 'Specifies whether to display ellipses for next and previous page navigation'
properties:
previous:
type: boolean
title: Show Previous Ellipsis
description: 'Determines whether to display an ellipsis for the previous page'
data: true
next:
type: boolean
title: Show Next Ellipsis
description: 'Determines whether to display an ellipsis for the next page'
data: true
items:
type: object
title: Page Items
description: 'Specifies the links for page navigation'
properties:
previous:
type: object
title: Previous Page Link
properties:
href:
type: string
title: Previous Page URL
description: 'URL for the previous page'
data: '#'
next:
type: object
title: Next Page Link
properties:
href:
type: string
title: Next Page URL
description: 'URL for the next page'
data: '#'
pages:
type: object
title: Page Links
description: 'Links for the page numbers'
properties:
3:
type: object
properties:
href:
type: string
data: '#'
4:
type: object
properties:
href:
type: string
data: '#'
5:
type: object
properties:
href:
type: string
data: '#'
6:
type: object
properties:
href:
type: string
data: '#'
7:
type: object
properties:
href:
type: string
data: '#'
20 changes: 0 additions & 20 deletions src/components/pager/pager-both-ellipses.yml

This file was deleted.

113 changes: 113 additions & 0 deletions src/components/pager/pager-first-last.component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json

name: Pager with First and Last
group: Components
status: stable
props:
type: object
required:
- current
- ellipses
- items
properties:
current:
type: integer
title: Current Page
description: 'Specifies the current active page number'
data: 10
ellipses:
type: object
title: Ellipses Visibility
description: 'Specifies whether to display ellipses for next and previous page navigation'
properties:
previous:
type: boolean
title: Show Previous Ellipsis
description: 'Determines whether to display an ellipsis for the previous page'
data: true
next:
type: boolean
title: Show Next Ellipsis
description: 'Determines whether to display an ellipsis for the next page'
data: true
items:
type: object
title: Page Items
description: 'Specifies the links for page navigation'
properties:
first:
type: object
title: First Page Link
properties:
href:
type: string
title: First Page URL
description: 'URL for the first page'
data: '#'
last:
type: object
title: Last Page Link
properties:
href:
type: string
title: Last Page URL
description: 'URL for the last page'
data: '#'
previous:
type: object
title: Previous Page Link
properties:
href:
type: string
title: Previous Page URL
description: 'URL for the previous page'
data: '#'
next:
type: object
title: Next Page Link
properties:
href:
type: string
title: Next Page URL
description: 'URL for the next page'
data: '#'
pages:
type: object
title: Page Links
description: 'Links for the page numbers'
properties:
9:
type: object
properties:
href:
type: string
title: Page 9 URL
data: '#'
10:
type: object
properties:
href:
type: string
title: Page 10 URL
data: '#'
11:
type: object
properties:
href:
type: string
title: Page 11 URL
data: '#'
12:
type: object
properties:
href:
type: string
title: Page 12 URL
data: '#'
13:
type: object
properties:
href:
type: string
title: Page 13 URL
data: '#'
24 changes: 0 additions & 24 deletions src/components/pager/pager-first-last.yml

This file was deleted.

81 changes: 81 additions & 0 deletions src/components/pager/pager-next-ellipses.component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json

name: Pager with Next Ellipses
group: Components
status: stable
props:
type: object
required:
- current
- ellipses
- items
properties:
current:
type: integer
title: Current Page
description: 'Specifies the current active page number'
data: 5
ellipses:
type: object
title: Ellipses Visibility
description: 'Specifies whether to display ellipses for the next page navigation'
properties:
next:
type: boolean
title: Show Next Ellipsis
description: 'Determines whether to display an ellipsis for the next page'
data: true
items:
type: object
title: Page Items
description: 'Specifies the links for page navigation'
properties:
next:
type: object
title: Next Page Link
properties:
href:
type: string
title: Next Page URL
description: 'URL for the next page'
data: '#'
pages:
type: object
title: Page Links
description: 'Links for the page numbers'
properties:
1:
type: object
properties:
href:
type: string
title: Page 1 URL
data: '#'
2:
type: object
properties:
href:
type: string
title: Page 2 URL
data: '#'
3:
type: object
properties:
href:
type: string
title: Page 3 URL
data: '#'
4:
type: object
properties:
href:
type: string
title: Page 4 URL
data: '#'
5:
type: object
properties:
href:
type: string
title: Page 5 URL
data: '#'
17 changes: 0 additions & 17 deletions src/components/pager/pager-next-ellipses.yml

This file was deleted.

Loading

0 comments on commit b4ab5ea

Please sign in to comment.