@htmlbricks/hb-table 0.66.26 → 0.67.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/README.md +5 -4
- package/main.iife.js +134 -254
- package/main.iife.js.map +1 -1
- package/manifest.json +161 -6
- package/package.json +2 -2
- package/types/webcomponent.type.d.json +1 -1
- package/types/webcomponent.type.d.ts +2 -2
package/manifest.json
CHANGED
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
"type": "string"
|
|
374
374
|
},
|
|
375
375
|
"is_loading": {
|
|
376
|
-
"description": "When true (or web attribute `\"yes\"` / `\"true\"`), tbody shows
|
|
376
|
+
"description": "When true (or web attribute `\"yes\"` / `\"true\"`), tbody shows Bulma skeleton rows (count matches `size`, capped at 100) and a single `skeleton-block` covers `hb-paginate` (still mounted, hidden).",
|
|
377
377
|
"type": "boolean"
|
|
378
378
|
},
|
|
379
379
|
"page": {
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
826
|
},
|
|
827
|
-
"description": "
|
|
827
|
+
"description": "Bulma-styled data table driven by JSON `headers` and `rows` (`_id` required): column sort, header search (text, enum, date range), formatted values (nested keys, datetime via dayjs), copy-to-clipboard, row highlight and `selectrow` clicks. Global `actions` and per-row `_actions` can open confirm or schema dialogs (`hb-dialog` / `hb-dialogform`). Optional multi-select with `selectactions`, `add_item` slot, and `hb-paginate` for page size, sort sync, and server-style `externalfilter` / `total` workflows. Set `is_loading` for Bulma skeleton placeholders in tbody and a single `skeleton-block` over pagination while `hb-paginate` stays mounted for prop sync. i18n via `i18nlang`.",
|
|
828
828
|
"storybookArgs": {
|
|
829
829
|
"size": {
|
|
830
830
|
"control": {
|
|
@@ -1007,7 +1007,38 @@
|
|
|
1007
1007
|
}
|
|
1008
1008
|
},
|
|
1009
1009
|
"styleSetup": {
|
|
1010
|
-
"vars": [
|
|
1010
|
+
"vars": [
|
|
1011
|
+
{
|
|
1012
|
+
"name": "--hb-table-footer-margin-inline-end",
|
|
1013
|
+
"valueType": "number",
|
|
1014
|
+
"defaultValue": "1.25rem",
|
|
1015
|
+
"description": "Margin on the inline-end side of the footer pagination block (`hb-paginate` and loading skeleton). Defaults to `--bulma-block-spacing`."
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "--hb-table-sk-pagination-height",
|
|
1019
|
+
"valueType": "number",
|
|
1020
|
+
"defaultValue": "2.5em",
|
|
1021
|
+
"description": "Height of the pagination loading placeholder (`skeleton-block` over `hb-paginate`). Defaults to `--bulma-control-height`."
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "--hb-table-sk-pagination-min-width",
|
|
1025
|
+
"valueType": "number",
|
|
1026
|
+
"defaultValue": "min(28rem, 100%)",
|
|
1027
|
+
"description": "Minimum width of the pagination area while `is_loading` (wider skeleton rectangle). Default caps at viewport via `min(..., 100%)`."
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"name": "--hb-table-sk-pagination-offset-inline-end",
|
|
1031
|
+
"valueType": "number",
|
|
1032
|
+
"defaultValue": "0.65rem",
|
|
1033
|
+
"description": "Added to `--hb-table-footer-margin-inline-end` while `is_loading` only, shifting the skeleton slightly inward from the host inline-end edge."
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "--hb-table-toolbar-settings-margin-inline-start",
|
|
1037
|
+
"valueType": "number",
|
|
1038
|
+
"defaultValue": "1.25rem",
|
|
1039
|
+
"description": "Margin before the multi-select settings (gear) button in `part=\"table-actions\"`. Defaults to `--bulma-block-spacing`."
|
|
1040
|
+
}
|
|
1041
|
+
],
|
|
1011
1042
|
"parts": [
|
|
1012
1043
|
{
|
|
1013
1044
|
"name": "table",
|
|
@@ -3446,7 +3477,7 @@
|
|
|
3446
3477
|
},
|
|
3447
3478
|
{
|
|
3448
3479
|
"name": "BasicTableLoadingPlaceholder",
|
|
3449
|
-
"description": "With `is_loading` true, tbody
|
|
3480
|
+
"description": "With `is_loading` true, tbody uses Bulma `skeleton-lines`, `checkbox.is-skeleton`, and `button.is-skeleton` (count follows `size`, max 100); the footer shows one `skeleton-block` over `hb-paginate` (height `--hb-table-sk-pagination-height`, min-width `--hb-table-sk-pagination-min-width`). `hb-paginate` stays mounted (hidden) so `page` / `pages` stay in sync.",
|
|
3450
3481
|
"data": {
|
|
3451
3482
|
"headers": [
|
|
3452
3483
|
{
|
|
@@ -3475,7 +3506,131 @@
|
|
|
3475
3506
|
}
|
|
3476
3507
|
}
|
|
3477
3508
|
],
|
|
3478
|
-
"iifeIntegrity": "sha384-
|
|
3509
|
+
"iifeIntegrity": "sha384-xaQfiK/mBpO5WxBk/Mj4eJsSJV0tctLIv5rkrL5npX+cuaK0KX7H1jiTRLZzwDKd",
|
|
3510
|
+
"dependencies": [
|
|
3511
|
+
{
|
|
3512
|
+
"name": "hb-dialog",
|
|
3513
|
+
"dependencies": []
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
"name": "hb-dialogform",
|
|
3517
|
+
"dependencies": [
|
|
3518
|
+
{
|
|
3519
|
+
"name": "hb-dialog",
|
|
3520
|
+
"dependencies": []
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
"name": "hb-form",
|
|
3524
|
+
"dependencies": [
|
|
3525
|
+
{
|
|
3526
|
+
"name": "hb-input-area",
|
|
3527
|
+
"dependencies": []
|
|
3528
|
+
},
|
|
3529
|
+
{
|
|
3530
|
+
"name": "hb-input-array-objects",
|
|
3531
|
+
"dependencies": [
|
|
3532
|
+
{
|
|
3533
|
+
"name": "hb-form",
|
|
3534
|
+
"dependencies": []
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"name": "hb-table",
|
|
3538
|
+
"dependencies": []
|
|
3539
|
+
}
|
|
3540
|
+
]
|
|
3541
|
+
},
|
|
3542
|
+
{
|
|
3543
|
+
"name": "hb-input-array-tags",
|
|
3544
|
+
"dependencies": []
|
|
3545
|
+
},
|
|
3546
|
+
{
|
|
3547
|
+
"name": "hb-input-checkbox",
|
|
3548
|
+
"dependencies": []
|
|
3549
|
+
},
|
|
3550
|
+
{
|
|
3551
|
+
"name": "hb-input-color",
|
|
3552
|
+
"dependencies": []
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"name": "hb-input-coords",
|
|
3556
|
+
"dependencies": [
|
|
3557
|
+
{
|
|
3558
|
+
"name": "hb-input-number",
|
|
3559
|
+
"dependencies": []
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
"name": "hb-map",
|
|
3563
|
+
"dependencies": []
|
|
3564
|
+
}
|
|
3565
|
+
]
|
|
3566
|
+
},
|
|
3567
|
+
{
|
|
3568
|
+
"name": "hb-input-date",
|
|
3569
|
+
"dependencies": []
|
|
3570
|
+
},
|
|
3571
|
+
{
|
|
3572
|
+
"name": "hb-input-datetime",
|
|
3573
|
+
"dependencies": [
|
|
3574
|
+
{
|
|
3575
|
+
"name": "hb-input-date",
|
|
3576
|
+
"dependencies": []
|
|
3577
|
+
},
|
|
3578
|
+
{
|
|
3579
|
+
"name": "hb-input-number",
|
|
3580
|
+
"dependencies": []
|
|
3581
|
+
}
|
|
3582
|
+
]
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
"name": "hb-input-email",
|
|
3586
|
+
"dependencies": []
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
"name": "hb-input-file",
|
|
3590
|
+
"dependencies": []
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"name": "hb-input-number",
|
|
3594
|
+
"dependencies": []
|
|
3595
|
+
},
|
|
3596
|
+
{
|
|
3597
|
+
"name": "hb-input-radio",
|
|
3598
|
+
"dependencies": []
|
|
3599
|
+
},
|
|
3600
|
+
{
|
|
3601
|
+
"name": "hb-input-range",
|
|
3602
|
+
"dependencies": []
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
"name": "hb-input-select",
|
|
3606
|
+
"dependencies": []
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"name": "hb-input-text",
|
|
3610
|
+
"dependencies": []
|
|
3611
|
+
}
|
|
3612
|
+
]
|
|
3613
|
+
}
|
|
3614
|
+
]
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
"name": "hb-paginate",
|
|
3618
|
+
"dependencies": [
|
|
3619
|
+
{
|
|
3620
|
+
"name": "hb-input-number",
|
|
3621
|
+
"dependencies": []
|
|
3622
|
+
},
|
|
3623
|
+
{
|
|
3624
|
+
"name": "hb-input-select",
|
|
3625
|
+
"dependencies": []
|
|
3626
|
+
}
|
|
3627
|
+
]
|
|
3628
|
+
},
|
|
3629
|
+
{
|
|
3630
|
+
"name": "hb-tooltip",
|
|
3631
|
+
"dependencies": []
|
|
3632
|
+
}
|
|
3633
|
+
],
|
|
3479
3634
|
"screenshots": [],
|
|
3480
3635
|
"licenses": [
|
|
3481
3636
|
{
|
|
@@ -3495,5 +3650,5 @@
|
|
|
3495
3650
|
"size": {},
|
|
3496
3651
|
"iifePath": "main.iife.js",
|
|
3497
3652
|
"repoName": "@htmlbricks/hb-table",
|
|
3498
|
-
"version": "0.
|
|
3653
|
+
"version": "0.67.0"
|
|
3499
3654
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-table",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.0",
|
|
4
4
|
"contributors": [],
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Bulma-styled data table driven by JSON `headers` and `rows` (`_id` required): column sort, header search (text, enum, date range), formatted values (nested keys, datetime via dayjs), copy-to-clipboard, row highlight and `selectrow` clicks. Global `actions` and per-row `_actions` can open confirm or schema dialogs (`hb-dialog` / `hb-dialogform`). Optional multi-select with `selectactions`, `add_item` slot, and `hb-paginate` for page size, sort sync, and server-style `externalfilter` / `total` workflows. Set `is_loading` for Bulma skeleton placeholders in tbody and a single `skeleton-block` over pagination while `hb-paginate` stays mounted for prop sync. i18n via `i18nlang`.",
|
|
6
6
|
"licenses": [
|
|
7
7
|
{
|
|
8
8
|
"type": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"type": "string"
|
|
41
41
|
},
|
|
42
42
|
"is_loading": {
|
|
43
|
-
"description": "When true (or web attribute `\"yes\"` / `\"true\"`), tbody shows
|
|
43
|
+
"description": "When true (or web attribute `\"yes\"` / `\"true\"`), tbody shows Bulma skeleton rows (count matches `size`, capped at 100) and a single `skeleton-block` covers `hb-paginate` (still mounted, hidden).",
|
|
44
44
|
"type": "boolean"
|
|
45
45
|
},
|
|
46
46
|
"page": {
|
|
@@ -87,8 +87,8 @@ export type Component = {
|
|
|
87
87
|
/** Current sort direction */
|
|
88
88
|
sort_direction?: string;
|
|
89
89
|
/**
|
|
90
|
-
* When true (or web attribute `"yes"` / `"true"`), tbody shows
|
|
91
|
-
* (count matches `size`, capped at 100) and
|
|
90
|
+
* When true (or web attribute `"yes"` / `"true"`), tbody shows Bulma skeleton rows
|
|
91
|
+
* (count matches `size`, capped at 100) and a single `skeleton-block` covers `hb-paginate` (still mounted, hidden).
|
|
92
92
|
*/
|
|
93
93
|
is_loading?: boolean;
|
|
94
94
|
};
|