fh-matui 0.9.10__py3-none-any.whl → 0.9.11__py3-none-any.whl

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.
fh_matui/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.9.9"
1
+ __version__ = "0.9.10"
fh_matui/datatable.py CHANGED
@@ -280,31 +280,15 @@ def DataTable(
280
280
  cls=ButtonT.primary
281
281
  )
282
282
 
283
- # Pagination controls
283
+ # Pagination controls (using reusable Pagination component)
284
284
  pagination = None
285
285
  if total_pages > 1:
286
- prev_params = urlencode({"search": search, "page": max(1, page - 1), "page_size": page_size})
287
- next_params = urlencode({"search": search, "page": min(total_pages, page + 1), "page_size": page_size})
288
-
289
- pagination = Div(
290
- Button(
291
- Icon("navigate_before"),
292
- hx_get=f"{base_route}?{prev_params}",
293
- hx_target=f"#{container_id}",
294
- hx_push_url="true",
295
- disabled=page == 1,
296
- cls="circle"
297
- ),
298
- Span(f"Page {page} of {total_pages}", cls="middle"),
299
- Button(
300
- Icon("navigate_next"),
301
- hx_get=f"{base_route}?{next_params}",
302
- hx_target=f"#{container_id}",
303
- hx_push_url="true",
304
- disabled=page == total_pages,
305
- cls="circle"
306
- ),
307
- cls="row center-align"
286
+ pagination_params = urlencode({"search": search, "page_size": page_size})
287
+ pagination = Pagination(
288
+ current_page=page,
289
+ total_pages=total_pages,
290
+ hx_get=f"{base_route}?{pagination_params}",
291
+ hx_target=f"#{container_id}"
308
292
  )
309
293
 
310
294
  # Search form
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fh-matui
3
- Version: 0.9.10
3
+ Version: 0.9.11
4
4
  Summary: material-ui for fasthtml
5
5
  Home-page: https://github.com/abhisheksreesaila/fh-matui
6
6
  Author: abhishek sreesaila
@@ -1,14 +1,14 @@
1
- fh_matui/__init__.py,sha256=u_KIWOO-wJql3tmQezwk81ys0s3hKSCZ705RpLSz6vI,23
1
+ fh_matui/__init__.py,sha256=taelSBN5SjzTPZ994Gxw8NFdSDITeBao31tWpkapnXU,24
2
2
  fh_matui/_modidx.py,sha256=naHwPQ4kCo-5saE_uozmdPA881kp1gnqvKhmaG-Ya-4,23914
3
3
  fh_matui/app_pages.py,sha256=Sn9-tgBpaPNbR-0nZtPLoSCmAWLOGB4UQ88IkFvzBRY,10361
4
4
  fh_matui/components.py,sha256=Q-koxO-BCxG9Dse2QUpP5WrGSrbDyzBSLoqIGatUAg8,49503
5
5
  fh_matui/core.py,sha256=xtVBN8CtC50ZJ4Iu7o-mUhaA87tWdnz8gBfKRk63Zhs,10680
6
- fh_matui/datatable.py,sha256=vtkk7D8GrlDFCHilKxLi8SrncqxPW5n-ErrCJcI7OS4,39875
6
+ fh_matui/datatable.py,sha256=LsVwuTuoFOh3rIvETXefsqZOqxos4xi9ct2F7YPIIv8,39266
7
7
  fh_matui/foundations.py,sha256=b7PnObJpKN8ZAU9NzCm9xpfnHzFjjAROU7E2YvA_tj4,1820
8
8
  fh_matui/web_pages.py,sha256=4mF-jpfVcZTVepfQ-aMGgIUp-nBp0YCkvcdsWhUYeaA,34879
9
- fh_matui-0.9.10.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
10
- fh_matui-0.9.10.dist-info/METADATA,sha256=Cpydwe7SXoRz7urHUG1fxM70zskIs9F_cvBGdoB76_c,10491
11
- fh_matui-0.9.10.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
12
- fh_matui-0.9.10.dist-info/entry_points.txt,sha256=zn4CR4gNTiAAxbFsCxHAf2tQhtW29_YOffjbUTgeoWI,38
13
- fh_matui-0.9.10.dist-info/top_level.txt,sha256=l80d5eoA2ZjqtPYwAorLMS5PiHxUxz3zKzxMJ41Xoso,9
14
- fh_matui-0.9.10.dist-info/RECORD,,
9
+ fh_matui-0.9.11.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
10
+ fh_matui-0.9.11.dist-info/METADATA,sha256=NIMhExSVx75fEZgaO1WJiaugYb2bVtHSDaX_SandwLI,10491
11
+ fh_matui-0.9.11.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
12
+ fh_matui-0.9.11.dist-info/entry_points.txt,sha256=zn4CR4gNTiAAxbFsCxHAf2tQhtW29_YOffjbUTgeoWI,38
13
+ fh_matui-0.9.11.dist-info/top_level.txt,sha256=l80d5eoA2ZjqtPYwAorLMS5PiHxUxz3zKzxMJ41Xoso,9
14
+ fh_matui-0.9.11.dist-info/RECORD,,