@htmlbricks/hb-table 0.66.11 → 0.66.13

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
@@ -372,6 +372,10 @@
372
372
  "id": {
373
373
  "type": "string"
374
374
  },
375
+ "is_loading": {
376
+ "description": "When true (or web attribute `\"yes\"` / `\"true\"`), tbody shows Bootstrap placeholder rows; count matches `size` (page size), capped at 100. The same value is forwarded to `hb-paginate`.",
377
+ "type": "boolean"
378
+ },
375
379
  "page": {
376
380
  "type": "number"
377
381
  },
@@ -820,7 +824,7 @@
820
824
  }
821
825
  }
822
826
  },
823
- "description": "Bootstrap-striped 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. i18n via `i18nlang`.",
827
+ "description": "Bootstrap-striped 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` to show Bootstrap placeholder rows while data loads (row count follows `size`, max 100); the same flag is passed to `hb-paginate` for its loading placeholders. i18n via `i18nlang`.",
824
828
  "storybookArgs": {
825
829
  "size": {
826
830
  "control": {
@@ -995,6 +999,11 @@
995
999
  },
996
1000
  "changePageSize": {
997
1001
  "action": "changePageSizeEvent"
1002
+ },
1003
+ "is_loading": {
1004
+ "control": {
1005
+ "type": "boolean"
1006
+ }
998
1007
  }
999
1008
  },
1000
1009
  "styleSetup": {
@@ -3434,9 +3443,39 @@
3434
3443
  "page_size_type": "select",
3435
3444
  "page_size_options": "5,10,25"
3436
3445
  }
3446
+ },
3447
+ {
3448
+ "name": "BasicTableLoadingPlaceholder",
3449
+ "description": "With `is_loading` true, tbody shows placeholder rows; count follows `size` (page size), max 100.",
3450
+ "data": {
3451
+ "headers": [
3452
+ {
3453
+ "label": "title",
3454
+ "key": "title",
3455
+ "search": true
3456
+ },
3457
+ {
3458
+ "label": "description",
3459
+ "key": "description"
3460
+ },
3461
+ {
3462
+ "label": "nested",
3463
+ "key": "testnested.nested"
3464
+ },
3465
+ {
3466
+ "label": "data",
3467
+ "key": "time",
3468
+ "type": "datetime",
3469
+ "format": "DD MMMM YYYY"
3470
+ }
3471
+ ],
3472
+ "rows": [],
3473
+ "size": 5,
3474
+ "is_loading": true
3475
+ }
3437
3476
  }
3438
3477
  ],
3439
- "iifeIntegrity": "sha384-QJJDujoe7s5quNakfwiajbWvgSPLf+QdSCeFhXrlPAKbbJl2ZlXwmPOLzlnyAGg9",
3478
+ "iifeIntegrity": "sha384-uPsrjvaIPFBCsRDHCwGuWRXPAn7zGim89S9YCNIiMkcpG4GyeH7SKon04SALKUUL",
3440
3479
  "screenshots": [],
3441
3480
  "licenses": [
3442
3481
  {
@@ -3456,5 +3495,5 @@
3456
3495
  "size": {},
3457
3496
  "iifePath": "main.iife.js",
3458
3497
  "repoName": "@htmlbricks/hb-table",
3459
- "version": "0.66.11"
3498
+ "version": "0.66.13"
3460
3499
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-table",
3
- "version": "0.66.11",
3
+ "version": "0.66.13",
4
4
  "contributors": [],
5
- "description": "Bootstrap-striped 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. i18n via `i18nlang`.",
5
+ "description": "Bootstrap-striped 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` to show Bootstrap placeholder rows while data loads (row count follows `size`, max 100); the same flag is passed to `hb-paginate` for its loading placeholders. i18n via `i18nlang`.",
6
6
  "licenses": [
7
7
  {
8
8
  "type": "Apache-2.0",
@@ -39,6 +39,10 @@
39
39
  "id": {
40
40
  "type": "string"
41
41
  },
42
+ "is_loading": {
43
+ "description": "When true (or web attribute `\"yes\"` / `\"true\"`), tbody shows Bootstrap placeholder rows; count matches `size` (page size), capped at 100. The same value is forwarded to `hb-paginate`.",
44
+ "type": "boolean"
45
+ },
42
46
  "page": {
43
47
  "type": "number"
44
48
  },
@@ -86,6 +86,11 @@ export type Component = {
86
86
  sort_strict_direction?: boolean;
87
87
  /** Current sort direction */
88
88
  sort_direction?: string;
89
+ /**
90
+ * When true (or web attribute `"yes"` / `"true"`), tbody shows Bootstrap placeholder rows;
91
+ * count matches `size` (page size), capped at 100. The same value is forwarded to `hb-paginate`.
92
+ */
93
+ is_loading?: boolean;
89
94
  };
90
95
 
91
96
  export type Events = {