@htmlbricks/hb-table 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/manifest.json CHANGED
@@ -417,6 +417,10 @@
417
417
  "description": "Custom label for the \"Default\" sort option in the pagination bar (e.g. \"Relevance\")",
418
418
  "type": "string"
419
419
  },
420
+ "sort_strict_direction": {
421
+ "description": "When true, sort direction only allows \"asc\" and \"desc\" (no \"default\" state)",
422
+ "type": "boolean"
423
+ },
420
424
  "style": {
421
425
  "type": "string"
422
426
  },
@@ -970,6 +974,11 @@
970
974
  "type": "boolean"
971
975
  }
972
976
  },
977
+ "sort_strict_direction": {
978
+ "control": {
979
+ "type": "boolean"
980
+ }
981
+ },
973
982
  "changePageSize": {
974
983
  "action": "changePageSizeEvent"
975
984
  }
@@ -3407,6 +3416,132 @@
3407
3416
  "page_size_type": "select",
3408
3417
  "page_size_options": "5,10,25"
3409
3418
  }
3419
+ },
3420
+ {
3421
+ "name": "BasicTableWithStrictSortDirection",
3422
+ "description": "Sort direction only allows asc/desc (no default/clear state)",
3423
+ "data": {
3424
+ "headers": [
3425
+ {
3426
+ "label": "title",
3427
+ "key": "title",
3428
+ "search": true
3429
+ },
3430
+ {
3431
+ "label": "description",
3432
+ "key": "description"
3433
+ },
3434
+ {
3435
+ "label": "nested",
3436
+ "key": "testnested.nested"
3437
+ },
3438
+ {
3439
+ "label": "data",
3440
+ "key": "time",
3441
+ "type": "datetime",
3442
+ "format": "DD MMMM YYYY"
3443
+ }
3444
+ ],
3445
+ "rows": [
3446
+ {
3447
+ "title": "bau",
3448
+ "videoSrc": "https://comapi.be-on.tv/v1/public/records/61043eedb50af916a6429fdc/video",
3449
+ "time": "2021-08-06T22:46:30.565Z",
3450
+ "_id": "bau",
3451
+ "status": "closed"
3452
+ },
3453
+ {
3454
+ "title": "bb1",
3455
+ "videoSrc": "https://comapi.be-on.tv/v1/public/records/61043eedb50af916a6429fdc/video",
3456
+ "time": "2021-08-06T22:46:31.565Z",
3457
+ "description": "ffff2",
3458
+ "_id": "bb1",
3459
+ "status": "closed"
3460
+ },
3461
+ {
3462
+ "title": "bb2",
3463
+ "time": "2021-08-02T22:46:32.565Z",
3464
+ "_id": "bb2",
3465
+ "status": "active"
3466
+ },
3467
+ {
3468
+ "title": "ss",
3469
+ "time": "2021-08-06T22:46:34.565Z",
3470
+ "description": "fffffff",
3471
+ "testnested": {
3472
+ "nested": "dddd"
3473
+ },
3474
+ "_id": "ss",
3475
+ "status": "active"
3476
+ },
3477
+ {
3478
+ "title": "bb4",
3479
+ "time": "2021-08-06T22:46:34.565Z",
3480
+ "_id": "bb4",
3481
+ "status": "active"
3482
+ },
3483
+ {
3484
+ "title": "aa5",
3485
+ "time": "2021-08-06T22:46:34.565Z",
3486
+ "_id": "aa5",
3487
+ "status": "active"
3488
+ },
3489
+ {
3490
+ "title": "bb6",
3491
+ "time": "2021-08-06T22:46:34.565Z",
3492
+ "_id": "bb6",
3493
+ "status": "active"
3494
+ },
3495
+ {
3496
+ "title": "bb7",
3497
+ "time": "2021-08-06T22:46:34.565Z",
3498
+ "_id": "bb7",
3499
+ "status": "active"
3500
+ },
3501
+ {
3502
+ "title": "bb8",
3503
+ "time": "2021-08-06T22:46:34.565Z",
3504
+ "_id": "bb8",
3505
+ "status": "active"
3506
+ },
3507
+ {
3508
+ "title": "bb9",
3509
+ "time": "2021-08-06T22:46:33.565Z",
3510
+ "_id": "bb9",
3511
+ "status": "active"
3512
+ },
3513
+ {
3514
+ "title": "bb10",
3515
+ "time": "2021-08-06T22:46:34.565Z",
3516
+ "_id": "bb10",
3517
+ "status": "active"
3518
+ },
3519
+ {
3520
+ "title": "bb11",
3521
+ "time": "2021-08-06T22:46:34.565Z",
3522
+ "_id": "bb11",
3523
+ "status": "active"
3524
+ },
3525
+ {
3526
+ "title": "bb12",
3527
+ "time": "2021-08-06T22:46:34.565Z",
3528
+ "videoSrc": "https://comapi.be-on.tv/v1/public/records/61043eedb50af916a6429fdc/video",
3529
+ "_id": "bb12",
3530
+ "status": "active"
3531
+ },
3532
+ {
3533
+ "title": "bb13",
3534
+ "time": "2021-08-07T22:46:39.565Z",
3535
+ "_id": "bb13",
3536
+ "status": "active"
3537
+ }
3538
+ ],
3539
+ "total": 14,
3540
+ "size": 5,
3541
+ "sort_strict_direction": true,
3542
+ "page_size_type": "select",
3543
+ "page_size_options": "5,10,25"
3544
+ }
3410
3545
  }
3411
3546
  ],
3412
3547
  "screenshots": [],
@@ -3427,5 +3562,5 @@
3427
3562
  "size": {},
3428
3563
  "iifePath": "main.iife.js",
3429
3564
  "repoName": "@htmlbricks/hb-table",
3430
- "version": "0.65.0"
3565
+ "version": "0.65.2"
3431
3566
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-table",
3
- "version": "0.65.0",
3
+ "version": "0.65.2",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [
@@ -84,6 +84,10 @@
84
84
  "description": "Custom label for the \"Default\" sort option in the pagination bar (e.g. \"Relevance\")",
85
85
  "type": "string"
86
86
  },
87
+ "sort_strict_direction": {
88
+ "description": "When true, sort direction only allows \"asc\" and \"desc\" (no \"default\" state)",
89
+ "type": "boolean"
90
+ },
87
91
  "style": {
88
92
  "type": "string"
89
93
  },
@@ -82,6 +82,8 @@ export type Component = {
82
82
  sort_default_label?: string;
83
83
  /** When true, hides the sort select and direction button from the pagination bar */
84
84
  disable_paginate_sort?: boolean;
85
+ /** When true, sort direction only allows "asc" and "desc" (no "default" state) */
86
+ sort_strict_direction?: boolean;
85
87
  };
86
88
 
87
89
  export type Events = {