@htmlbricks/hb-paginate 0.66.12 → 0.66.14

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
@@ -150,6 +150,10 @@
150
150
  },
151
151
  "type": "object"
152
152
  },
153
+ "is_loading": {
154
+ "description": "When true (or attribute `\"yes\"` / `\"true\"`), shows Bootstrap placeholders instead of interactive controls.",
155
+ "type": "boolean"
156
+ },
153
157
  "page": {
154
158
  "type": "number"
155
159
  },
@@ -169,7 +173,7 @@
169
173
  }
170
174
  }
171
175
  },
172
- "description": "Pagination bar with first/prev/next/last and nearby page buttons, optional “showing X–Y of total” text, configurable page-size input or select, and optional sort field and direction controls with i18n labels.",
176
+ "description": "Pagination bar with first/prev/next/last and nearby page buttons, optional “showing X–Y of total” text, configurable page-size input or select, and optional sort field and direction controls with i18n labels. Set `is_loading` to show Bootstrap placeholders instead of controls (e.g. cascaded from `hb-table`).",
173
177
  "storybookArgs": {
174
178
  "page": {
175
179
  "control": {
@@ -195,6 +199,11 @@
195
199
  "it"
196
200
  ]
197
201
  },
202
+ "is_loading": {
203
+ "control": {
204
+ "type": "boolean"
205
+ }
206
+ },
198
207
  "pageChange": {
199
208
  "action": "pageChange"
200
209
  },
@@ -497,9 +506,36 @@
497
506
  "sort_direction": "asc"
498
507
  }
499
508
  }
509
+ },
510
+ {
511
+ "name": "loadingPlaceholder",
512
+ "description": "Bootstrap placeholders for the bar and page controls (`is_loading` true; `hb-table` passes this while loading).",
513
+ "data": {
514
+ "page": 0,
515
+ "pages": 4,
516
+ "is_loading": true,
517
+ "info": {
518
+ "total": 100,
519
+ "size": 25,
520
+ "page_size_type": "select",
521
+ "page_size_options": "10,25,50,100",
522
+ "sort_fields": [
523
+ {
524
+ "value": "title",
525
+ "label": "Title"
526
+ },
527
+ {
528
+ "value": "date",
529
+ "label": "Date"
530
+ }
531
+ ],
532
+ "sort_by": "title",
533
+ "sort_direction": "asc"
534
+ }
535
+ }
500
536
  }
501
537
  ],
502
- "iifeIntegrity": "sha384-AvWUWkuxVunHVfIKABYbsfrSY50bV6+9PxJwxWmjnN7JLWYdmgdW3xzUynZDFCIM",
538
+ "iifeIntegrity": "sha384-imS9yJIF3EM1JmRtlvVNsl9SmycbcOzxI2Q1pF9Ozv2QnsbQJhzV+maq3dHJDsr3",
503
539
  "screenshots": [],
504
540
  "licenses": [
505
541
  {
@@ -519,5 +555,5 @@
519
555
  "size": {},
520
556
  "iifePath": "main.iife.js",
521
557
  "repoName": "@htmlbricks/hb-paginate",
522
- "version": "0.66.12"
558
+ "version": "0.66.14"
523
559
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-paginate",
3
- "version": "0.66.12",
3
+ "version": "0.66.14",
4
4
  "contributors": [],
5
- "description": "Pagination bar with first/prev/next/last and nearby page buttons, optional “showing X–Y of total” text, configurable page-size input or select, and optional sort field and direction controls with i18n labels.",
5
+ "description": "Pagination bar with first/prev/next/last and nearby page buttons, optional “showing X–Y of total” text, configurable page-size input or select, and optional sort field and direction controls with i18n labels. Set `is_loading` to show Bootstrap placeholders instead of controls (e.g. cascaded from `hb-table`).",
6
6
  "licenses": [
7
7
  {
8
8
  "type": "Apache-2.0",
@@ -87,6 +87,10 @@
87
87
  },
88
88
  "type": "object"
89
89
  },
90
+ "is_loading": {
91
+ "description": "When true (or attribute `\"yes\"` / `\"true\"`), shows Bootstrap placeholders instead of interactive controls.",
92
+ "type": "boolean"
93
+ },
90
94
  "page": {
91
95
  "type": "number"
92
96
  },
@@ -28,6 +28,10 @@ export type Component = {
28
28
  sort_default_label?: string;
29
29
  };
30
30
  i18nlang?: string;
31
+ /**
32
+ * When true (or attribute `"yes"` / `"true"`), shows Bootstrap placeholders instead of interactive controls.
33
+ */
34
+ is_loading?: boolean;
31
35
  };
32
36
 
33
37
  export type Events = {