@htmlbricks/hb-table 0.66.21 → 0.66.25
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 +6 -5
- package/main.iife.js.map +1 -1
- package/manifest.json +4 -4
- package/package.json +10 -2
- package/types/html-elements.d.ts +58 -0
- package/types/svelte-elements.d.ts +35 -0
package/manifest.json
CHANGED
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
826
|
},
|
|
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 and
|
|
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 and a pagination skeleton overlay while `hb-paginate` stays mounted for prop sync. i18n via `i18nlang`.",
|
|
828
828
|
"storybookArgs": {
|
|
829
829
|
"size": {
|
|
830
830
|
"control": {
|
|
@@ -3446,7 +3446,7 @@
|
|
|
3446
3446
|
},
|
|
3447
3447
|
{
|
|
3448
3448
|
"name": "BasicTableLoadingPlaceholder",
|
|
3449
|
-
"description": "With `is_loading` true, tbody shows placeholder rows (count follows `size`, max 100) and the pagination
|
|
3449
|
+
"description": "With `is_loading` true, tbody shows placeholder rows (count follows `size`, max 100) and the pagination bar shows an inline skeleton overlay; `hb-paginate` stays mounted (hidden) so `page` / `pages` stay in sync.",
|
|
3450
3450
|
"data": {
|
|
3451
3451
|
"headers": [
|
|
3452
3452
|
{
|
|
@@ -3475,7 +3475,7 @@
|
|
|
3475
3475
|
}
|
|
3476
3476
|
}
|
|
3477
3477
|
],
|
|
3478
|
-
"iifeIntegrity": "sha384-
|
|
3478
|
+
"iifeIntegrity": "sha384-15CucW4rrBbwF0V3F+yAXZZCUD4c6UgmMkGTDdEFB32esTOf4QqJFugophZMMcOa",
|
|
3479
3479
|
"screenshots": [],
|
|
3480
3480
|
"licenses": [
|
|
3481
3481
|
{
|
|
@@ -3495,5 +3495,5 @@
|
|
|
3495
3495
|
"size": {},
|
|
3496
3496
|
"iifePath": "main.iife.js",
|
|
3497
3497
|
"repoName": "@htmlbricks/hb-table",
|
|
3498
|
-
"version": "0.66.
|
|
3498
|
+
"version": "0.66.25"
|
|
3499
3499
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-table",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.25",
|
|
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. Set `is_loading` to show Bootstrap placeholder rows and
|
|
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 and a pagination skeleton overlay while `hb-paginate` stays mounted for prop sync. i18n via `i18nlang`.",
|
|
6
6
|
"licenses": [
|
|
7
7
|
{
|
|
8
8
|
"type": "Apache-2.0",
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"main": "main.iife.js",
|
|
15
|
+
"types": "./types/html-elements.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": "./main.iife.js",
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./types/html-elements": "./types/html-elements.d.ts",
|
|
20
|
+
"./types/svelte-elements": "./types/svelte-elements.d.ts",
|
|
21
|
+
"./types/webcomponent.type": "./types/webcomponent.type.d.ts"
|
|
22
|
+
},
|
|
15
23
|
"dependencies": {},
|
|
16
24
|
"publishConfig": {
|
|
17
25
|
"access": "public"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOM typings for `hb-table`. Attribute values are strings (objects/arrays as JSON strings).
|
|
3
|
+
* Generated — do not edit by hand.
|
|
4
|
+
*/
|
|
5
|
+
import type { Component, Events } from "./webcomponent.type";
|
|
6
|
+
|
|
7
|
+
type DomKeys = keyof HTMLElement;
|
|
8
|
+
type HbComponentAttrs = {
|
|
9
|
+
[K in keyof Component as K extends DomKeys ? never : K]?: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Re-declare listener methods so custom `Events` overloads are compatible with
|
|
14
|
+
* `HTMLElement` (subclass methods must remain assignable to the base signatures).
|
|
15
|
+
*/
|
|
16
|
+
export interface HbTableElement
|
|
17
|
+
extends Omit<HTMLElement, "addEventListener" | "removeEventListener">,
|
|
18
|
+
HbComponentAttrs {
|
|
19
|
+
addEventListener<K extends keyof HTMLElementEventMap>(
|
|
20
|
+
type: K,
|
|
21
|
+
listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
|
|
22
|
+
options?: boolean | AddEventListenerOptions
|
|
23
|
+
): void;
|
|
24
|
+
addEventListener<K extends keyof Events & string>(
|
|
25
|
+
type: K,
|
|
26
|
+
listener: (this: this, ev: CustomEvent<Events[K]>) => void,
|
|
27
|
+
options?: boolean | AddEventListenerOptions
|
|
28
|
+
): void;
|
|
29
|
+
addEventListener(
|
|
30
|
+
type: string,
|
|
31
|
+
listener: EventListenerOrEventListenerObject,
|
|
32
|
+
options?: boolean | AddEventListenerOptions
|
|
33
|
+
): void;
|
|
34
|
+
|
|
35
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(
|
|
36
|
+
type: K,
|
|
37
|
+
listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
|
|
38
|
+
options?: boolean | EventListenerOptions
|
|
39
|
+
): void;
|
|
40
|
+
removeEventListener<K extends keyof Events & string>(
|
|
41
|
+
type: K,
|
|
42
|
+
listener: (this: this, ev: CustomEvent<Events[K]>) => void,
|
|
43
|
+
options?: boolean | EventListenerOptions
|
|
44
|
+
): void;
|
|
45
|
+
removeEventListener(
|
|
46
|
+
type: string,
|
|
47
|
+
listener: EventListenerOrEventListenerObject,
|
|
48
|
+
options?: boolean | EventListenerOptions
|
|
49
|
+
): void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLElementTagNameMap {
|
|
54
|
+
"hb-table": HbTableElement;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Svelte template typings for `hb-table` (`SvelteHTMLElements`).
|
|
3
|
+
* — Host attributes from `Component` (optional strings).
|
|
4
|
+
* — Custom events from `Events`: `on` + event key, optional `capture` suffix, or quoted `'on:'` + key (same pattern as built-in DOM events in Svelte).
|
|
5
|
+
* Generated — do not edit by hand.
|
|
6
|
+
* Requires dependency on `svelte` (for `svelte/elements`).
|
|
7
|
+
*/
|
|
8
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
9
|
+
import type { Component, Events } from "./webcomponent.type";
|
|
10
|
+
|
|
11
|
+
type DomKeys = keyof HTMLElement;
|
|
12
|
+
type HbSvelteAttrs = {
|
|
13
|
+
[K in keyof Component as K extends DomKeys ? never : K]?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** `detail` matches `Events[K]`; `currentTarget` is the host element. */
|
|
17
|
+
type HbSvelteCustomEventHandler<TDetail> = (
|
|
18
|
+
event: CustomEvent<TDetail> & { currentTarget: EventTarget & HTMLElement }
|
|
19
|
+
) => any;
|
|
20
|
+
|
|
21
|
+
type HbSvelteEventAttrs = {
|
|
22
|
+
[K in keyof Events & string as `on${K}`]?: HbSvelteCustomEventHandler<Events[K]>;
|
|
23
|
+
} & {
|
|
24
|
+
[K in keyof Events & string as `on${K}capture`]?: HbSvelteCustomEventHandler<Events[K]>;
|
|
25
|
+
} & {
|
|
26
|
+
[K in keyof Events & string as `on:${K}`]?: HbSvelteCustomEventHandler<Events[K]>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
declare module "svelte/elements" {
|
|
30
|
+
export interface SvelteHTMLElements {
|
|
31
|
+
"hb-table": HTMLAttributes<HTMLElement> & HbSvelteAttrs & HbSvelteEventAttrs;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {};
|