@htmlbricks/hb-paginate 0.71.1 → 0.71.3

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.
package/manifest.json CHANGED
@@ -26,6 +26,11 @@
26
26
  "type": "string"
27
27
  },
28
28
  "sort_direction": {
29
+ "enum": [
30
+ "asc",
31
+ "desc",
32
+ "default"
33
+ ],
29
34
  "type": "string"
30
35
  }
31
36
  },
@@ -78,8 +83,24 @@
78
83
  "additionalProperties": false,
79
84
  "properties": {
80
85
  "page_size_options": {
81
- "description": "Comma-separated list of page size options for select mode (e.g. \"10,25,50,100\")",
82
- "type": "string"
86
+ "anyOf": [
87
+ {
88
+ "type": "string"
89
+ },
90
+ {
91
+ "items": {
92
+ "type": "string"
93
+ },
94
+ "type": "array"
95
+ },
96
+ {
97
+ "items": {
98
+ "type": "number"
99
+ },
100
+ "type": "array"
101
+ }
102
+ ],
103
+ "description": "Page size options for select mode: comma-separated string, JSON array string, or array after `info` is parsed"
83
104
  },
84
105
  "page_size_type": {
85
106
  "description": "Type of page size selector: \"number\" for free input, \"select\" for dropdown",
@@ -480,7 +501,7 @@
480
501
  }
481
502
  }
482
503
  ],
483
- "iifeIntegrity": "sha384-u8Moi7SIet+fqSNZUg8NP/alA16IgOV47pz3xF0rrSo2kgQXepoQpfZHGab77TX2",
504
+ "iifeIntegrity": "sha384-dxkdijWYi9VCvK58uEfbwq2wcu7APJO596lHvjhq7kRjh+dL/Em/PFFvb1zdY1yo",
484
505
  "dependencies": [
485
506
  {
486
507
  "name": "hb-input-number",
@@ -510,5 +531,5 @@
510
531
  "size": {},
511
532
  "iifePath": "main.iife.js",
512
533
  "repoName": "@htmlbricks/hb-paginate",
513
- "version": "0.71.1"
534
+ "version": "0.71.3"
514
535
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-paginate",
3
- "version": "0.71.1",
3
+ "version": "0.71.3",
4
4
  "contributors": [],
5
5
  "description": "Pagination bar with first/prev/next/last and nearby page buttons, optional “showing X–Y of total” text, configurable page-size input or select, and optional sort field and direction controls with i18n labels.",
6
6
  "licenses": [
@@ -15,8 +15,24 @@
15
15
  "additionalProperties": false,
16
16
  "properties": {
17
17
  "page_size_options": {
18
- "description": "Comma-separated list of page size options for select mode (e.g. \"10,25,50,100\")",
19
- "type": "string"
18
+ "anyOf": [
19
+ {
20
+ "type": "string"
21
+ },
22
+ {
23
+ "items": {
24
+ "type": "string"
25
+ },
26
+ "type": "array"
27
+ },
28
+ {
29
+ "items": {
30
+ "type": "number"
31
+ },
32
+ "type": "array"
33
+ }
34
+ ],
35
+ "description": "Page size options for select mode: comma-separated string, JSON array string, or array after `info` is parsed"
20
36
  },
21
37
  "page_size_type": {
22
38
  "description": "Type of page size selector: \"number\" for free input, \"select\" for dropdown",
@@ -8,8 +8,8 @@ export type Component = {
8
8
  size?: number;
9
9
  /** Type of page size selector: "number" for free input, "select" for dropdown */
10
10
  page_size_type?: "number" | "select";
11
- /** Comma-separated list of page size options for select mode (e.g. "10,25,50,100") */
12
- page_size_options?: string;
11
+ /** Page size options for select mode: comma-separated string, JSON array string, or array after `info` is parsed */
12
+ page_size_options?: string | string[] | number[];
13
13
  /** Available sort fields. At least one must be present to show the sort indicator */
14
14
  sort_fields?: { value: string; label?: string }[];
15
15
  /** Currently selected sort field */
@@ -33,5 +33,5 @@ export type Component = {
33
33
  export type Events = {
34
34
  pageChange: { page: number; pages: number };
35
35
  changePageSize: { page_size: number };
36
- changeSort: { sort_by: string; sort_direction: string };
36
+ changeSort: { sort_by: string; sort_direction: "asc" | "desc" | "default" };
37
37
  };
@@ -24,6 +24,11 @@
24
24
  "type": "string"
25
25
  },
26
26
  "sort_direction": {
27
+ "enum": [
28
+ "asc",
29
+ "desc",
30
+ "default"
31
+ ],
27
32
  "type": "string"
28
33
  }
29
34
  },