@krak-stack/registry 0.11.5 → 0.11.7
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/CHANGELOG.md +36 -0
- package/dist/components/audit-log-table/classes.d.ts +1 -0
- package/dist/components/audit-log-table/html.d.ts +158 -0
- package/dist/components/audit-log-table/html.js +3260 -0
- package/dist/components/audit-log-table/index.d.ts +37 -0
- package/dist/components/audit-log-table/react.d.ts +3 -51
- package/dist/components/audit-log-table/react.js +246 -92
- package/dist/components/audit-log-table/schema.d.ts +122 -0
- package/dist/components/copy-button/html.d.ts +2 -2
- package/dist/components/danger-confirmation/index.d.ts +2 -2
- package/dist/components/data-table/classes.d.ts +10 -3
- package/dist/components/data-table/html.d.ts +93 -21
- package/dist/components/data-table/html.js +122 -32
- package/dist/components/data-table/index.d.ts +97 -9
- package/dist/components/data-table/react.d.ts +14 -3
- package/dist/components/data-table/react.js +162 -19
- package/dist/components/data-table/schema.d.ts +175 -16
- package/dist/components/date-input/html.d.ts +2 -2
- package/dist/components/docs/html.js +1 -1
- package/dist/components/editable-text/html.d.ts +2 -2
- package/dist/components/editable-text/index.d.ts +4 -4
- package/dist/components/editing-locale-switcher/html.d.ts +2 -2
- package/dist/components/email-editor/legacy-editor.html.d.ts +6 -6
- package/dist/components/form/react.d.ts +5 -5
- package/dist/components/locale-switcher/html.d.ts +2 -2
- package/dist/components/map-menu/html.d.ts +4 -4
- package/dist/components/presence-transition/index.d.ts +2 -2
- package/dist/components/select-with-custom-input/html.d.ts +2 -2
- package/dist/components/sidebar-layout/html.js +1 -1
- package/dist/components/switch/react.d.ts +14 -0
- package/dist/components/switch/react.js +55 -0
- package/dist/components/theme-switcher/html.d.ts +2 -2
- package/dist/components/tracking-notice/classes.d.ts +6 -0
- package/dist/components/tracking-notice/html.d.ts +85 -0
- package/dist/components/tracking-notice/html.js +354 -0
- package/dist/components/tracking-notice/index.d.ts +95 -0
- package/dist/components/tracking-notice/react.d.ts +5 -27
- package/dist/components/tracking-notice/react.js +189 -59
- package/dist/components/tracking-notice/schema.d.ts +45 -0
- package/dist/components/upload-attachment/html.d.ts +4 -4
- package/dist/components/virtualized-combobox/html.d.ts +3 -3
- package/dist/components/webhook-delivery-table/html.js +122 -32
- package/dist/components/webhook-delivery-table/react.js +162 -19
- package/dist/services/events/browser.js +39 -26
- package/dist/services/events/index.js +23 -19
- package/dist/services/opentelemetry/web-vitals.js +27 -23
- package/package.json +9 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
declare const AuditLogMessagesSchema: Schema.Struct<{
|
|
3
|
+
readonly title: Schema.String;
|
|
4
|
+
readonly event: Schema.String;
|
|
5
|
+
readonly allEvents: Schema.String;
|
|
6
|
+
readonly time: Schema.String;
|
|
7
|
+
readonly action: Schema.String;
|
|
8
|
+
readonly target: Schema.String;
|
|
9
|
+
readonly actor: Schema.String;
|
|
10
|
+
readonly method: Schema.String;
|
|
11
|
+
readonly actorMember: Schema.String;
|
|
12
|
+
readonly impersonatedBy: Schema.String;
|
|
13
|
+
readonly actorOrganization: Schema.String;
|
|
14
|
+
readonly methodApiKey: Schema.String;
|
|
15
|
+
readonly methodSession: Schema.String;
|
|
16
|
+
readonly methodUnknown: Schema.String;
|
|
17
|
+
}>;
|
|
18
|
+
export type AuditLogMessages = typeof AuditLogMessagesSchema.Type;
|
|
19
|
+
export declare const AuditLogTablePropsSchema: Schema.Struct<{
|
|
20
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
21
|
+
readonly eventName: Schema.NonEmptyString;
|
|
22
|
+
readonly timeUnixNano: Schema.String;
|
|
23
|
+
readonly observedTimeUnixNano: Schema.optional<Schema.String>;
|
|
24
|
+
readonly severityNumber: Schema.optional<Schema.Int>;
|
|
25
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
26
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
27
|
+
readonly attributes: Schema.$Array<Schema.Struct<{
|
|
28
|
+
readonly key: Schema.NonEmptyString;
|
|
29
|
+
readonly value: Schema.StructWithRest<Schema.Struct<{
|
|
30
|
+
readonly stringValue: Schema.optional<Schema.String>;
|
|
31
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
32
|
+
}>>;
|
|
33
|
+
}>>;
|
|
34
|
+
readonly rowCount: Schema.Int;
|
|
35
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
36
|
+
readonly value: Schema.String;
|
|
37
|
+
readonly label: Schema.String;
|
|
38
|
+
}>>>;
|
|
39
|
+
readonly state: Schema.optionalKey<Schema.Struct<{
|
|
40
|
+
readonly page: Schema.decodeTo<Schema.Int, Schema.optional<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>, never, never>;
|
|
41
|
+
readonly pageSize: Schema.decodeTo<Schema.Int, Schema.optional<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>, never, never>;
|
|
42
|
+
readonly globalFilter: Schema.optional<Schema.String>;
|
|
43
|
+
readonly sort: Schema.optional<Schema.declare<readonly {
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly direction: "asc" | "desc";
|
|
46
|
+
}[], readonly {
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly direction: "asc" | "desc";
|
|
49
|
+
}[]>>;
|
|
50
|
+
readonly filters: Schema.optional<Schema.declare<readonly ({
|
|
51
|
+
readonly id: string;
|
|
52
|
+
readonly kind: "number";
|
|
53
|
+
readonly min?: number | undefined;
|
|
54
|
+
readonly max?: number | undefined;
|
|
55
|
+
} | {
|
|
56
|
+
readonly id: string;
|
|
57
|
+
readonly kind: "date";
|
|
58
|
+
readonly from?: string | undefined;
|
|
59
|
+
readonly to?: string | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
readonly kind: "text";
|
|
63
|
+
readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
|
|
64
|
+
readonly value: string;
|
|
65
|
+
} | {
|
|
66
|
+
readonly id: string;
|
|
67
|
+
readonly kind: "boolean";
|
|
68
|
+
readonly value: boolean;
|
|
69
|
+
} | {
|
|
70
|
+
readonly id: string;
|
|
71
|
+
readonly kind: "values";
|
|
72
|
+
readonly values: readonly [string, ...string[]];
|
|
73
|
+
})[], readonly ({
|
|
74
|
+
readonly id: string;
|
|
75
|
+
readonly kind: "number";
|
|
76
|
+
readonly min?: number | undefined;
|
|
77
|
+
readonly max?: number | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
readonly id: string;
|
|
80
|
+
readonly kind: "date";
|
|
81
|
+
readonly from?: string | undefined;
|
|
82
|
+
readonly to?: string | undefined;
|
|
83
|
+
} | {
|
|
84
|
+
readonly id: string;
|
|
85
|
+
readonly kind: "text";
|
|
86
|
+
readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
|
|
87
|
+
readonly value: string;
|
|
88
|
+
} | {
|
|
89
|
+
readonly id: string;
|
|
90
|
+
readonly kind: "boolean";
|
|
91
|
+
readonly value: boolean;
|
|
92
|
+
} | {
|
|
93
|
+
readonly id: string;
|
|
94
|
+
readonly kind: "values";
|
|
95
|
+
readonly values: readonly [string, ...string[]];
|
|
96
|
+
})[]>>;
|
|
97
|
+
readonly eventName: Schema.optional<Schema.NonEmptyString>;
|
|
98
|
+
}>>;
|
|
99
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
100
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
101
|
+
readonly messages: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
102
|
+
readonly title: Schema.optional<Schema.String>;
|
|
103
|
+
readonly event: Schema.optional<Schema.String>;
|
|
104
|
+
readonly allEvents: Schema.optional<Schema.String>;
|
|
105
|
+
readonly time: Schema.optional<Schema.String>;
|
|
106
|
+
readonly action: Schema.optional<Schema.String>;
|
|
107
|
+
readonly target: Schema.optional<Schema.String>;
|
|
108
|
+
readonly actor: Schema.optional<Schema.String>;
|
|
109
|
+
readonly method: Schema.optional<Schema.String>;
|
|
110
|
+
readonly actorMember: Schema.optional<Schema.String>;
|
|
111
|
+
readonly impersonatedBy: Schema.optional<Schema.String>;
|
|
112
|
+
readonly actorOrganization: Schema.optional<Schema.String>;
|
|
113
|
+
readonly methodApiKey: Schema.optional<Schema.String>;
|
|
114
|
+
readonly methodSession: Schema.optional<Schema.String>;
|
|
115
|
+
readonly methodUnknown: Schema.optional<Schema.String>;
|
|
116
|
+
}>>>;
|
|
117
|
+
readonly loading: Schema.optionalKey<Schema.Boolean>;
|
|
118
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
119
|
+
readonly empty: Schema.optionalKey<Schema.String>;
|
|
120
|
+
}>;
|
|
121
|
+
export type AuditLogTableProps = typeof AuditLogTablePropsSchema.Type;
|
|
122
|
+
export {};
|
|
@@ -39,10 +39,10 @@ export declare const CopyButton: Component.Component<"CopyButton", {
|
|
|
39
39
|
}, {
|
|
40
40
|
readonly status: "copied" | "failed" | "idle";
|
|
41
41
|
}, {
|
|
42
|
-
readonly _tag: "Reset";
|
|
43
|
-
} | {
|
|
44
42
|
readonly _tag: "Finished";
|
|
45
43
|
readonly success: boolean;
|
|
46
44
|
} | {
|
|
47
45
|
readonly _tag: "Pressed";
|
|
46
|
+
} | {
|
|
47
|
+
readonly _tag: "Reset";
|
|
48
48
|
}, never, never, Html.Elements, {}, never>;
|
|
@@ -98,8 +98,6 @@ export declare const DangerConfirmationModel: Component.Component<"DangerConfirm
|
|
|
98
98
|
readonly text: string;
|
|
99
99
|
readonly status: "failed" | "idle" | "pending" | "succeeded";
|
|
100
100
|
}, {
|
|
101
|
-
readonly _tag: "Opened";
|
|
102
|
-
} | {
|
|
103
101
|
readonly _tag: "Confirmed";
|
|
104
102
|
} | {
|
|
105
103
|
readonly _tag: "Dismissed";
|
|
@@ -109,5 +107,7 @@ export declare const DangerConfirmationModel: Component.Component<"DangerConfirm
|
|
|
109
107
|
} | {
|
|
110
108
|
readonly _tag: "Finished";
|
|
111
109
|
readonly success: boolean;
|
|
110
|
+
} | {
|
|
111
|
+
readonly _tag: "Opened";
|
|
112
112
|
}, never, RunConfirmation, never, {}, never>;
|
|
113
113
|
export {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { TableClassesOverrides } from "./schema.js";
|
|
2
|
+
export declare const booleanCellControl = "flex min-h-16 w-full items-center justify-start px-2 in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0 in-[[data-slot=table-cell]]:min-h-0 has-[:focus-visible]:outline-2 has-[:focus-visible]:-outline-offset-2 has-[:focus-visible]:outline-ring";
|
|
3
|
+
export declare const tableBadgeTones: {
|
|
4
|
+
success: string;
|
|
5
|
+
info: string;
|
|
6
|
+
muted: string;
|
|
7
|
+
};
|
|
2
8
|
export declare const tableClasses: {
|
|
3
9
|
readonly selectionCell: "w-10 p-0 align-middle";
|
|
4
10
|
readonly selectionCenter: "grid place-items-center";
|
|
@@ -10,16 +16,16 @@ export declare const tableClasses: {
|
|
|
10
16
|
readonly menubar: "h-auto w-full flex-wrap justify-start border border-input bg-transparent";
|
|
11
17
|
readonly cell: "overflow-hidden";
|
|
12
18
|
readonly cellContent: "min-w-0 wrap-anywhere";
|
|
13
|
-
readonly actionTrigger: "size-8 focus-visible:ring-
|
|
19
|
+
readonly actionTrigger: "size-8 focus-visible:ring-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring";
|
|
14
20
|
readonly actionsCell: "sticky right-0 z-20 w-10 min-w-10 cursor-default bg-background p-0 transition-colors group-hover/row:bg-[color-mix(in_oklab,var(--muted)_50%,var(--background))]";
|
|
15
21
|
readonly actionsAlign: "flex min-h-12 items-center justify-end pe-1";
|
|
16
22
|
readonly header: "relative h-12 p-0";
|
|
17
23
|
readonly stickyHeader: "sticky top-0 z-30 bg-background";
|
|
18
24
|
readonly stickyHeaderRule: "after:border-border after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:border-b";
|
|
19
|
-
readonly headerTrigger: "absolute inset-0 h-full w-full min-w-0 justify-start rounded-none px-2 pe-4 focus-visible:ring-
|
|
25
|
+
readonly headerTrigger: "absolute inset-0 h-full w-full min-w-0 justify-start rounded-none px-2 pe-4 focus-visible:ring-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring";
|
|
20
26
|
readonly resizeHandle: "absolute inset-y-0 right-0 z-10 w-2 cursor-col-resize touch-none outline-none after:absolute after:inset-y-3 after:right-0 after:w-px after:bg-border hover:after:w-0.5 hover:after:bg-primary/60 focus-visible:after:w-0.5 focus-visible:after:bg-ring";
|
|
21
27
|
readonly relationshipCell: "grid min-h-16 in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0 in-[[data-slot=table-cell]]:min-h-0";
|
|
22
|
-
readonly relationshipTrigger: "h-full w-full min-w-0 justify-between rounded-none px-2 text-start focus-visible:ring-
|
|
28
|
+
readonly relationshipTrigger: "h-full w-full min-w-0 justify-between rounded-none px-2 text-start focus-visible:ring-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring";
|
|
23
29
|
readonly reference: "flex min-w-0 items-center gap-2";
|
|
24
30
|
readonly referenceAvatar: "relative grid size-8 shrink-0 place-items-center overflow-hidden bg-muted text-xs font-medium";
|
|
25
31
|
readonly referenceText: "flex min-w-0 flex-col leading-tight";
|
|
@@ -30,6 +36,7 @@ export declare const tableClasses: {
|
|
|
30
36
|
readonly referenceName: "truncate font-medium";
|
|
31
37
|
readonly referenceDescription: "text-muted-foreground truncate text-xs";
|
|
32
38
|
};
|
|
39
|
+
export declare const tableResultsFooterClass = "bg-background text-muted-foreground sticky bottom-0 z-30 shrink-0 border-t px-2 py-2 text-sm";
|
|
33
40
|
export declare const resolveTableClasses: (overrides?: TableClassesOverrides) => {
|
|
34
41
|
selectionCell: string;
|
|
35
42
|
selectionCenter: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Component } from "effect/ui";
|
|
2
2
|
import { Html } from "effect/ui/html";
|
|
3
3
|
export { DataTableEdit, DataTableEvents } from "./index.js";
|
|
4
|
-
export type { DataTableAction, DataTableCellValue, DataTableColumn, DataTableProps, DataTablePublicState, DataTableRow, DataTableSort, } from "./schema.js";
|
|
4
|
+
export type { DataTableAction, DataTableCellValue, DataTableColumn, DataTableProps, DataTablePublicState, DataTableRow, DataTableSort, DataTableBadgeOptions, } from "./schema.js";
|
|
5
5
|
export declare const DataTable: Component.Component<"DataTable", {
|
|
6
6
|
readonly classes?: {
|
|
7
7
|
readonly actionTrigger?: string | undefined;
|
|
@@ -80,6 +80,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
80
80
|
readonly emptyLabel?: string | undefined;
|
|
81
81
|
readonly nulls?: "first" | "last" | undefined;
|
|
82
82
|
readonly type: "text";
|
|
83
|
+
readonly display?: "badge" | undefined;
|
|
84
|
+
readonly typeOptions?: {
|
|
85
|
+
readonly options?: readonly {
|
|
86
|
+
readonly value: string;
|
|
87
|
+
readonly label?: string | undefined;
|
|
88
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
89
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
} | undefined;
|
|
83
92
|
readonly fields?: readonly ({
|
|
84
93
|
readonly id: string;
|
|
85
94
|
readonly headerName: string;
|
|
@@ -96,6 +105,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
96
105
|
readonly emptyLabel?: string | undefined;
|
|
97
106
|
readonly nulls?: "first" | "last" | undefined;
|
|
98
107
|
readonly type: "text";
|
|
108
|
+
readonly display?: "badge" | undefined;
|
|
109
|
+
readonly typeOptions?: {
|
|
110
|
+
readonly options?: readonly {
|
|
111
|
+
readonly value: string;
|
|
112
|
+
readonly label?: string | undefined;
|
|
113
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
114
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
} | undefined;
|
|
99
117
|
} | {
|
|
100
118
|
readonly id: string;
|
|
101
119
|
readonly headerName: string;
|
|
@@ -237,7 +255,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
237
255
|
readonly variant?: "default" | "destructive" | undefined;
|
|
238
256
|
readonly disabled?: boolean | undefined;
|
|
239
257
|
}[] | undefined;
|
|
240
|
-
readonly display?: "icon" | "list" | undefined;
|
|
258
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
241
259
|
readonly visibleCount?: number | undefined;
|
|
242
260
|
readonly actionsLabel?: string | undefined;
|
|
243
261
|
readonly manageLabel?: string | undefined;
|
|
@@ -284,6 +302,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
284
302
|
readonly emptyLabel?: string | undefined;
|
|
285
303
|
readonly nulls?: "first" | "last" | undefined;
|
|
286
304
|
readonly type: "text";
|
|
305
|
+
readonly display?: "badge" | undefined;
|
|
306
|
+
readonly typeOptions?: {
|
|
307
|
+
readonly options?: readonly {
|
|
308
|
+
readonly value: string;
|
|
309
|
+
readonly label?: string | undefined;
|
|
310
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
311
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
312
|
+
}[] | undefined;
|
|
313
|
+
} | undefined;
|
|
287
314
|
} | {
|
|
288
315
|
readonly id: string;
|
|
289
316
|
readonly headerName: string;
|
|
@@ -425,7 +452,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
425
452
|
readonly variant?: "default" | "destructive" | undefined;
|
|
426
453
|
readonly disabled?: boolean | undefined;
|
|
427
454
|
}[] | undefined;
|
|
428
|
-
readonly display?: "icon" | "list" | undefined;
|
|
455
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
429
456
|
readonly visibleCount?: number | undefined;
|
|
430
457
|
readonly actionsLabel?: string | undefined;
|
|
431
458
|
readonly manageLabel?: string | undefined;
|
|
@@ -462,6 +489,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
462
489
|
readonly emptyLabel?: string | undefined;
|
|
463
490
|
readonly nulls?: "first" | "last" | undefined;
|
|
464
491
|
readonly type: "text";
|
|
492
|
+
readonly display?: "badge" | undefined;
|
|
493
|
+
readonly typeOptions?: {
|
|
494
|
+
readonly options?: readonly {
|
|
495
|
+
readonly value: string;
|
|
496
|
+
readonly label?: string | undefined;
|
|
497
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
498
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
499
|
+
}[] | undefined;
|
|
500
|
+
} | undefined;
|
|
465
501
|
} | {
|
|
466
502
|
readonly id: string;
|
|
467
503
|
readonly headerName: string;
|
|
@@ -603,7 +639,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
603
639
|
readonly variant?: "default" | "destructive" | undefined;
|
|
604
640
|
readonly disabled?: boolean | undefined;
|
|
605
641
|
}[] | undefined;
|
|
606
|
-
readonly display?: "icon" | "list" | undefined;
|
|
642
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
607
643
|
readonly visibleCount?: number | undefined;
|
|
608
644
|
readonly actionsLabel?: string | undefined;
|
|
609
645
|
readonly manageLabel?: string | undefined;
|
|
@@ -646,6 +682,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
646
682
|
readonly emptyLabel?: string | undefined;
|
|
647
683
|
readonly nulls?: "first" | "last" | undefined;
|
|
648
684
|
readonly type: "text";
|
|
685
|
+
readonly display?: "badge" | undefined;
|
|
686
|
+
readonly typeOptions?: {
|
|
687
|
+
readonly options?: readonly {
|
|
688
|
+
readonly value: string;
|
|
689
|
+
readonly label?: string | undefined;
|
|
690
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
691
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
692
|
+
}[] | undefined;
|
|
693
|
+
} | undefined;
|
|
649
694
|
} | {
|
|
650
695
|
readonly id: string;
|
|
651
696
|
readonly headerName: string;
|
|
@@ -787,7 +832,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
787
832
|
readonly variant?: "default" | "destructive" | undefined;
|
|
788
833
|
readonly disabled?: boolean | undefined;
|
|
789
834
|
}[] | undefined;
|
|
790
|
-
readonly display?: "icon" | "list" | undefined;
|
|
835
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
791
836
|
readonly visibleCount?: number | undefined;
|
|
792
837
|
readonly actionsLabel?: string | undefined;
|
|
793
838
|
readonly manageLabel?: string | undefined;
|
|
@@ -832,6 +877,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
832
877
|
readonly emptyLabel?: string | undefined;
|
|
833
878
|
readonly nulls?: "first" | "last" | undefined;
|
|
834
879
|
readonly type: "text";
|
|
880
|
+
readonly display?: "badge" | undefined;
|
|
881
|
+
readonly typeOptions?: {
|
|
882
|
+
readonly options?: readonly {
|
|
883
|
+
readonly value: string;
|
|
884
|
+
readonly label?: string | undefined;
|
|
885
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
886
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
887
|
+
}[] | undefined;
|
|
888
|
+
} | undefined;
|
|
835
889
|
} | {
|
|
836
890
|
readonly id: string;
|
|
837
891
|
readonly headerName: string;
|
|
@@ -973,7 +1027,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
973
1027
|
readonly variant?: "default" | "destructive" | undefined;
|
|
974
1028
|
readonly disabled?: boolean | undefined;
|
|
975
1029
|
}[] | undefined;
|
|
976
|
-
readonly display?: "icon" | "list" | undefined;
|
|
1030
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
977
1031
|
readonly visibleCount?: number | undefined;
|
|
978
1032
|
readonly actionsLabel?: string | undefined;
|
|
979
1033
|
readonly manageLabel?: string | undefined;
|
|
@@ -1016,6 +1070,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1016
1070
|
readonly emptyLabel?: string | undefined;
|
|
1017
1071
|
readonly nulls?: "first" | "last" | undefined;
|
|
1018
1072
|
readonly type: "text";
|
|
1073
|
+
readonly display?: "badge" | undefined;
|
|
1074
|
+
readonly typeOptions?: {
|
|
1075
|
+
readonly options?: readonly {
|
|
1076
|
+
readonly value: string;
|
|
1077
|
+
readonly label?: string | undefined;
|
|
1078
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
1079
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
1080
|
+
}[] | undefined;
|
|
1081
|
+
} | undefined;
|
|
1019
1082
|
} | {
|
|
1020
1083
|
readonly id: string;
|
|
1021
1084
|
readonly headerName: string;
|
|
@@ -1157,7 +1220,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1157
1220
|
readonly variant?: "default" | "destructive" | undefined;
|
|
1158
1221
|
readonly disabled?: boolean | undefined;
|
|
1159
1222
|
}[] | undefined;
|
|
1160
|
-
readonly display?: "icon" | "list" | undefined;
|
|
1223
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
1161
1224
|
readonly visibleCount?: number | undefined;
|
|
1162
1225
|
readonly actionsLabel?: string | undefined;
|
|
1163
1226
|
readonly manageLabel?: string | undefined;
|
|
@@ -1193,7 +1256,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1193
1256
|
readonly variant?: "default" | "destructive" | undefined;
|
|
1194
1257
|
readonly disabled?: boolean | undefined;
|
|
1195
1258
|
}[] | undefined;
|
|
1196
|
-
readonly display?: "icon" | "list" | undefined;
|
|
1259
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
1197
1260
|
readonly visibleCount?: number | undefined;
|
|
1198
1261
|
readonly actionsLabel?: string | undefined;
|
|
1199
1262
|
readonly manageLabel?: string | undefined;
|
|
@@ -1213,6 +1276,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1213
1276
|
readonly emptyLabel?: string | undefined;
|
|
1214
1277
|
readonly nulls?: "first" | "last" | undefined;
|
|
1215
1278
|
readonly type: "text";
|
|
1279
|
+
readonly display?: "badge" | undefined;
|
|
1280
|
+
readonly typeOptions?: {
|
|
1281
|
+
readonly options?: readonly {
|
|
1282
|
+
readonly value: string;
|
|
1283
|
+
readonly label?: string | undefined;
|
|
1284
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
1285
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
1286
|
+
}[] | undefined;
|
|
1287
|
+
} | undefined;
|
|
1216
1288
|
} | {
|
|
1217
1289
|
readonly id: string;
|
|
1218
1290
|
readonly headerName: string;
|
|
@@ -1354,7 +1426,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1354
1426
|
readonly variant?: "default" | "destructive" | undefined;
|
|
1355
1427
|
readonly disabled?: boolean | undefined;
|
|
1356
1428
|
}[] | undefined;
|
|
1357
|
-
readonly display?: "icon" | "list" | undefined;
|
|
1429
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
1358
1430
|
readonly visibleCount?: number | undefined;
|
|
1359
1431
|
readonly actionsLabel?: string | undefined;
|
|
1360
1432
|
readonly manageLabel?: string | undefined;
|
|
@@ -1639,6 +1711,18 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1639
1711
|
} | null;
|
|
1640
1712
|
readonly invalidFilter: boolean;
|
|
1641
1713
|
}, {
|
|
1714
|
+
readonly _tag: "PreferencesLoaded";
|
|
1715
|
+
readonly preferences: {
|
|
1716
|
+
readonly columnVisibility: {
|
|
1717
|
+
readonly [x: string]: boolean;
|
|
1718
|
+
};
|
|
1719
|
+
readonly columnSizing: {
|
|
1720
|
+
readonly [x: string]: number;
|
|
1721
|
+
};
|
|
1722
|
+
readonly grouping?: readonly string[] | undefined;
|
|
1723
|
+
readonly view: "gallery" | "table";
|
|
1724
|
+
} | null;
|
|
1725
|
+
} | {
|
|
1642
1726
|
readonly _tag: "BuiltInExportRequested";
|
|
1643
1727
|
readonly format: "csv" | "json";
|
|
1644
1728
|
readonly locale?: string | undefined;
|
|
@@ -1778,18 +1862,6 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1778
1862
|
} | {
|
|
1779
1863
|
readonly _tag: "PageSizeRequested";
|
|
1780
1864
|
readonly pageSize: number;
|
|
1781
|
-
} | {
|
|
1782
|
-
readonly _tag: "PreferencesLoaded";
|
|
1783
|
-
readonly preferences: {
|
|
1784
|
-
readonly columnVisibility: {
|
|
1785
|
-
readonly [x: string]: boolean;
|
|
1786
|
-
};
|
|
1787
|
-
readonly columnSizing: {
|
|
1788
|
-
readonly [x: string]: number;
|
|
1789
|
-
};
|
|
1790
|
-
readonly grouping?: readonly string[] | undefined;
|
|
1791
|
-
readonly view: "gallery" | "table";
|
|
1792
|
-
} | null;
|
|
1793
1865
|
} | {
|
|
1794
1866
|
readonly _tag: "ReferenceImageFailed";
|
|
1795
1867
|
readonly src: string;
|