@htmlbricks/hb-paginate 0.62.33 → 0.65.0
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/main.iife.js +5 -5
- package/main.iife.js.map +1 -1
- package/manifest.json +102 -7
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +12 -4
- package/types/webcomponent.type.d.ts +8 -2
package/manifest.json
CHANGED
|
@@ -96,6 +96,14 @@
|
|
|
96
96
|
"description": "Currently selected sort field",
|
|
97
97
|
"type": "string"
|
|
98
98
|
},
|
|
99
|
+
"sort_default_label": {
|
|
100
|
+
"description": "Custom label for the \"Default\" sort option (e.g. \"Relevance\")",
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"sort_default_value": {
|
|
104
|
+
"description": "Value for the \"Default\" sort option (emitted as sort_by when default is selected)",
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
99
107
|
"sort_direction": {
|
|
100
108
|
"description": "Current sort direction",
|
|
101
109
|
"enum": [
|
|
@@ -105,6 +113,10 @@
|
|
|
105
113
|
],
|
|
106
114
|
"type": "string"
|
|
107
115
|
},
|
|
116
|
+
"sort_direction_disabled": {
|
|
117
|
+
"description": "Whether the sort direction is disabled",
|
|
118
|
+
"type": "boolean"
|
|
119
|
+
},
|
|
108
120
|
"sort_disabled": {
|
|
109
121
|
"description": "Whether the sort controls are disabled",
|
|
110
122
|
"type": "boolean"
|
|
@@ -132,10 +144,6 @@
|
|
|
132
144
|
"type": "number"
|
|
133
145
|
}
|
|
134
146
|
},
|
|
135
|
-
"required": [
|
|
136
|
-
"total",
|
|
137
|
-
"size"
|
|
138
|
-
],
|
|
139
147
|
"type": "object"
|
|
140
148
|
},
|
|
141
149
|
"page": {
|
|
@@ -231,7 +239,8 @@
|
|
|
231
239
|
"pages": 4,
|
|
232
240
|
"info": {
|
|
233
241
|
"total": 47,
|
|
234
|
-
"size": 10
|
|
242
|
+
"size": 10,
|
|
243
|
+
"sort_direction_disabled": true
|
|
235
244
|
}
|
|
236
245
|
}
|
|
237
246
|
},
|
|
@@ -264,7 +273,7 @@
|
|
|
264
273
|
},
|
|
265
274
|
{
|
|
266
275
|
"name": "withSort",
|
|
267
|
-
"description": "Pagination with sort indicator",
|
|
276
|
+
"description": "Pagination with sort indicator (active sort on title)",
|
|
268
277
|
"data": {
|
|
269
278
|
"page": 0,
|
|
270
279
|
"pages": 4,
|
|
@@ -290,6 +299,92 @@
|
|
|
290
299
|
}
|
|
291
300
|
}
|
|
292
301
|
},
|
|
302
|
+
{
|
|
303
|
+
"name": "withSortDefault",
|
|
304
|
+
"description": "Pagination with sort indicator showing Default (no active sort)",
|
|
305
|
+
"data": {
|
|
306
|
+
"page": 0,
|
|
307
|
+
"pages": 4,
|
|
308
|
+
"info": {
|
|
309
|
+
"total": 100,
|
|
310
|
+
"size": 25,
|
|
311
|
+
"sort_fields": [
|
|
312
|
+
{
|
|
313
|
+
"value": "title",
|
|
314
|
+
"label": "Title"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"value": "date",
|
|
318
|
+
"label": "Date"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"value": "status",
|
|
322
|
+
"label": "Status"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"sort_by": "",
|
|
326
|
+
"sort_direction": "default"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "withSortDefaultMatchingField",
|
|
332
|
+
"description": "Default sort matches a sortable field — 'Title' is pre-selected with default direction",
|
|
333
|
+
"data": {
|
|
334
|
+
"page": 0,
|
|
335
|
+
"pages": 4,
|
|
336
|
+
"info": {
|
|
337
|
+
"total": 100,
|
|
338
|
+
"size": 25,
|
|
339
|
+
"sort_fields": [
|
|
340
|
+
{
|
|
341
|
+
"value": "title",
|
|
342
|
+
"label": "Title"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"value": "date",
|
|
346
|
+
"label": "Date"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"value": "status",
|
|
350
|
+
"label": "Status"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"sort_by": "title",
|
|
354
|
+
"sort_direction": "default",
|
|
355
|
+
"sort_default_value": "title"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "withSortDefaultCustomLabel",
|
|
361
|
+
"description": "Custom label for the Default sort option (shows 'Relevance' instead of 'Default')",
|
|
362
|
+
"data": {
|
|
363
|
+
"page": 0,
|
|
364
|
+
"pages": 4,
|
|
365
|
+
"info": {
|
|
366
|
+
"total": 100,
|
|
367
|
+
"size": 25,
|
|
368
|
+
"sort_fields": [
|
|
369
|
+
{
|
|
370
|
+
"value": "title",
|
|
371
|
+
"label": "Title"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"value": "date",
|
|
375
|
+
"label": "Date"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"value": "status",
|
|
379
|
+
"label": "Status"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"sort_by": "",
|
|
383
|
+
"sort_direction": "default",
|
|
384
|
+
"sort_default_label": "Relevance"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
293
388
|
{
|
|
294
389
|
"name": "withSortAndPageSize",
|
|
295
390
|
"description": "Pagination with sort and page size selector",
|
|
@@ -335,5 +430,5 @@
|
|
|
335
430
|
"size": {},
|
|
336
431
|
"iifePath": "main.iife.js",
|
|
337
432
|
"repoName": "@htmlbricks/hb-paginate",
|
|
338
|
-
"version": "0.
|
|
433
|
+
"version": "0.65.0"
|
|
339
434
|
}
|
package/package.json
CHANGED
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"description": "Currently selected sort field",
|
|
34
34
|
"type": "string"
|
|
35
35
|
},
|
|
36
|
+
"sort_default_label": {
|
|
37
|
+
"description": "Custom label for the \"Default\" sort option (e.g. \"Relevance\")",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"sort_default_value": {
|
|
41
|
+
"description": "Value for the \"Default\" sort option (emitted as sort_by when default is selected)",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
36
44
|
"sort_direction": {
|
|
37
45
|
"description": "Current sort direction",
|
|
38
46
|
"enum": [
|
|
@@ -42,6 +50,10 @@
|
|
|
42
50
|
],
|
|
43
51
|
"type": "string"
|
|
44
52
|
},
|
|
53
|
+
"sort_direction_disabled": {
|
|
54
|
+
"description": "Whether the sort direction is disabled",
|
|
55
|
+
"type": "boolean"
|
|
56
|
+
},
|
|
45
57
|
"sort_disabled": {
|
|
46
58
|
"description": "Whether the sort controls are disabled",
|
|
47
59
|
"type": "boolean"
|
|
@@ -69,10 +81,6 @@
|
|
|
69
81
|
"type": "number"
|
|
70
82
|
}
|
|
71
83
|
},
|
|
72
|
-
"required": [
|
|
73
|
-
"total",
|
|
74
|
-
"size"
|
|
75
|
-
],
|
|
76
84
|
"type": "object"
|
|
77
85
|
},
|
|
78
86
|
"page": {
|
|
@@ -4,8 +4,8 @@ export type Component = {
|
|
|
4
4
|
pages: number;
|
|
5
5
|
page: number;
|
|
6
6
|
info?: {
|
|
7
|
-
total
|
|
8
|
-
size
|
|
7
|
+
total?: number;
|
|
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
11
|
/** Comma-separated list of page size options for select mode (e.g. "10,25,50,100") */
|
|
@@ -18,6 +18,12 @@ export type Component = {
|
|
|
18
18
|
sort_direction?: "asc" | "desc" | "default";
|
|
19
19
|
/** Whether the sort controls are disabled */
|
|
20
20
|
sort_disabled?: boolean;
|
|
21
|
+
/** Whether the sort direction is disabled */
|
|
22
|
+
sort_direction_disabled?: boolean;
|
|
23
|
+
/** Value for the "Default" sort option (emitted as sort_by when default is selected) */
|
|
24
|
+
sort_default_value?: string;
|
|
25
|
+
/** Custom label for the "Default" sort option (e.g. "Relevance") */
|
|
26
|
+
sort_default_label?: string;
|
|
21
27
|
};
|
|
22
28
|
i18nlang?: string;
|
|
23
29
|
};
|