@htmlbricks/hb-paginate 0.65.0 → 0.65.2
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 +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +34 -1
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +4 -0
- package/types/webcomponent.type.d.ts +2 -0
package/manifest.json
CHANGED
|
@@ -140,6 +140,10 @@
|
|
|
140
140
|
},
|
|
141
141
|
"type": "array"
|
|
142
142
|
},
|
|
143
|
+
"sort_strict_direction": {
|
|
144
|
+
"description": "When true, sort_direction can only be \"asc\" or \"desc\" (no \"default\" state)",
|
|
145
|
+
"type": "boolean"
|
|
146
|
+
},
|
|
143
147
|
"total": {
|
|
144
148
|
"type": "number"
|
|
145
149
|
}
|
|
@@ -385,6 +389,35 @@
|
|
|
385
389
|
}
|
|
386
390
|
}
|
|
387
391
|
},
|
|
392
|
+
{
|
|
393
|
+
"name": "withSortStrictDirection",
|
|
394
|
+
"description": "Sort direction only allows asc/desc (no default state)",
|
|
395
|
+
"data": {
|
|
396
|
+
"page": 0,
|
|
397
|
+
"pages": 4,
|
|
398
|
+
"info": {
|
|
399
|
+
"total": 100,
|
|
400
|
+
"size": 25,
|
|
401
|
+
"sort_fields": [
|
|
402
|
+
{
|
|
403
|
+
"value": "title",
|
|
404
|
+
"label": "Title"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"value": "date",
|
|
408
|
+
"label": "Date"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"value": "status",
|
|
412
|
+
"label": "Status"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"sort_by": "title",
|
|
416
|
+
"sort_direction": "asc",
|
|
417
|
+
"sort_strict_direction": true
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
388
421
|
{
|
|
389
422
|
"name": "withSortAndPageSize",
|
|
390
423
|
"description": "Pagination with sort and page size selector",
|
|
@@ -430,5 +463,5 @@
|
|
|
430
463
|
"size": {},
|
|
431
464
|
"iifePath": "main.iife.js",
|
|
432
465
|
"repoName": "@htmlbricks/hb-paginate",
|
|
433
|
-
"version": "0.65.
|
|
466
|
+
"version": "0.65.2"
|
|
434
467
|
}
|
package/package.json
CHANGED
|
@@ -20,6 +20,8 @@ export type Component = {
|
|
|
20
20
|
sort_disabled?: boolean;
|
|
21
21
|
/** Whether the sort direction is disabled */
|
|
22
22
|
sort_direction_disabled?: boolean;
|
|
23
|
+
/** When true, sort_direction can only be "asc" or "desc" (no "default" state) */
|
|
24
|
+
sort_strict_direction?: boolean;
|
|
23
25
|
/** Value for the "Default" sort option (emitted as sort_by when default is selected) */
|
|
24
26
|
sort_default_value?: string;
|
|
25
27
|
/** Custom label for the "Default" sort option (e.g. "Relevance") */
|