@enki-tek/fms-web-components 0.1.21 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ const DEFAULT_PAGE_COUNT = 5;
6
6
  export let noOfItems = 300;
7
7
  export let itemPerPage = 30;
8
8
  export let currentPage = 1;
9
+ export let size = "lg";
9
10
  let pageCount = Math.ceil(noOfItems / itemPerPage);
10
11
  let pagesToShow = pageCount > DEFAULT_PAGE_COUNT ? DEFAULT_PAGE_COUNT : pageCount;
11
12
  let pageNumbers = [];
@@ -48,7 +49,7 @@ function nextPage() {
48
49
  }
49
50
  </script>
50
51
 
51
- <Pagination size="lg" ariaLabel="Page navigation example">
52
+ <Pagination {size} ariaLabel="Page navigation example">
52
53
  <PaginationItem disabled={currentPage === 1} class="eradius custom-pagination-list">
53
54
  <PaginationLink previous href="#" class="custom-pagination-link-add" on:click={prevPage}
54
55
  ><Icon name="chevron-left" /></PaginationLink
@@ -4,6 +4,7 @@ declare const __propDef: {
4
4
  noOfItems?: number | undefined;
5
5
  itemPerPage?: number | undefined;
6
6
  currentPage?: number | undefined;
7
+ size?: string | undefined;
7
8
  };
8
9
  events: {
9
10
  pageChanged: CustomEvent<any>;
@@ -5,7 +5,7 @@
5
5
  export let sensor = false;
6
6
  </script>
7
7
 
8
- <div class="{sensor ? "col-12 col-md-12 col-sm-12 col-lg-12 col-xl-6" : "col-12 col-md-6 col-sm-6 col-lg-6 col-xl-3" } ">
8
+ <div class="{sensor ? "col-12" : "col-12 col-md-6 col-sm-6 col-lg-6 col-xl-3" } ">
9
9
  <div class="{notify ? 'blip' : ''} m-2 card {className} {small ? 'card-mini' : ''}">
10
10
  <slot />
11
11
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",