@soft-stech/bootsman-ui-shadcn 1.4.36 → 1.4.37

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.
@@ -0,0 +1,37 @@
1
+ import { defineComponent as t, openBlock as s, createElementBlock as d, normalizeClass as r, unref as n, createElementVNode as o, renderSlot as c } from "vue";
2
+ import { g as f } from "./utils-C11OfLQK.js";
3
+ const b = /* @__PURE__ */ t({
4
+ __name: "BuiTableHead",
5
+ props: {
6
+ class: {},
7
+ freezeHeader: { type: Boolean }
8
+ },
9
+ setup(l) {
10
+ const e = l;
11
+ return (a, p) => (s(), d("th", {
12
+ class: r(
13
+ n(f)(
14
+ "relative h-10 text-left align-middle text-foreground [&:has([role=checkbox])]:pr-0 ",
15
+ e.class,
16
+ e.freezeHeader ? "bg-background p-0" : "bg-foreground/[0.04] p-0"
17
+ )
18
+ )
19
+ }, [
20
+ o("div", {
21
+ class: r(["flex h-full items-center !border-b !border-border/[0.16]", {
22
+ "bg-foreground/[0.04]": e.freezeHeader,
23
+ "header-cell_wrapper": !e.freezeHeader
24
+ }])
25
+ }, [
26
+ o("div", {
27
+ class: r(["flex h-full w-full items-center whitespace-nowrap border-r border-border/[0.16] px-2 text-sm font-semibold", { "header-cell_wrapper": e.freezeHeader }])
28
+ }, [
29
+ c(a.$slots, "default")
30
+ ], 2)
31
+ ], 2)
32
+ ], 2));
33
+ }
34
+ });
35
+ export {
36
+ b as _
37
+ };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as o, ref as s, openBlock as a, createElementBlock as i, normalizeClass as c, unref as n, renderSlot as h } from "vue";
2
+ import { g as p } from "./utils-C11OfLQK.js";
3
+ const m = /* @__PURE__ */ o({
4
+ __name: "BuiTableHeader",
5
+ props: {
6
+ class: {},
7
+ freezeHeader: { type: Boolean }
8
+ },
9
+ setup(t, { expose: d }) {
10
+ const e = s(null);
11
+ d({ headRef: e });
12
+ const r = t;
13
+ return (l, _) => (a(), i("thead", {
14
+ ref_key: "headRef",
15
+ ref: e,
16
+ class: c(
17
+ n(p)(
18
+ "[&_tr]:border-border/[0.16]",
19
+ r.class,
20
+ r.freezeHeader ? "sticky top-0 z-[1] [&_th:first-child>div>div]:pl-3 [&_th:last-child>div>div]:border-r-0 [&_th:last-child>div>div]:pr-14 [&_tr:last-child]:border-b-0" : "[&_th:first-child>div]:pl-3 [&_th:last-child>div]:border-0 [&_th:last-child>div]:pr-14 [&_tr]:border-b"
21
+ )
22
+ )
23
+ }, [
24
+ h(l.$slots, "default")
25
+ ], 2));
26
+ }
27
+ });
28
+ export {
29
+ m as _
30
+ };
@@ -1,26 +1,26 @@
1
- import { ColumnDef, ColumnOrderState, ColumnSizingState, PaginationState, Row, RowSelectionState, SortingState, VisibilityState } from '@tanstack/vue-table';
1
+ import { ColumnDef, ColumnOrderState, PaginationState, Row, RowSelectionState, SortingState, VisibilityState } from '@tanstack/vue-table';
2
2
  declare const _default: <TData, TValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:sorting"?: ((sorting: SortingState) => any) | undefined;
5
5
  readonly "onUpdate:pagination"?: ((pagination: PaginationState) => any) | undefined;
6
6
  readonly "onUpdate:selection"?: ((selection: RowSelectionState) => any) | undefined;
7
7
  readonly "onUpdate:columnVisibility"?: ((columnVisibility: VisibilityState) => any) | undefined;
8
- readonly "onUpdate:columnSizing"?: ((columnSizing: ColumnSizingState) => any) | undefined;
9
8
  readonly "onUpdate:columnOrder"?: ((columnOrder: ColumnOrderState) => any) | undefined;
9
+ readonly "onUpdate:columnSizing"?: ((columnSizing: Record<string, number>) => any) | undefined;
10
10
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
11
11
  "onUpdate:sorting"?: ((sorting: SortingState) => any) | undefined;
12
12
  "onUpdate:pagination"?: ((pagination: PaginationState) => any) | undefined;
13
13
  "onUpdate:selection"?: ((selection: RowSelectionState) => any) | undefined;
14
14
  "onUpdate:columnVisibility"?: ((columnVisibility: VisibilityState) => any) | undefined;
15
- "onUpdate:columnSizing"?: ((columnSizing: ColumnSizingState) => any) | undefined;
16
15
  "onUpdate:columnOrder"?: ((columnOrder: ColumnOrderState) => any) | undefined;
17
- }>, never>, "onUpdate:sorting" | "onUpdate:pagination" | "onUpdate:selection" | "onUpdate:columnVisibility" | "onUpdate:columnSizing" | "onUpdate:columnOrder"> & ({
16
+ "onUpdate:columnSizing"?: ((columnSizing: Record<string, number>) => any) | undefined;
17
+ }>, never>, "onUpdate:sorting" | "onUpdate:pagination" | "onUpdate:selection" | "onUpdate:columnVisibility" | "onUpdate:columnOrder" | "onUpdate:columnSizing"> & ({
18
18
  sorting?: SortingState;
19
19
  pagination?: PaginationState;
20
20
  selection?: RowSelectionState;
21
21
  columnVisibility?: VisibilityState;
22
- columnSizing?: ColumnSizingState;
23
22
  columnOrder?: ColumnOrderState;
23
+ columnSizing?: Record<string, number>;
24
24
  } & {
25
25
  columns: ColumnDef<TData, TValue>[];
26
26
  data: TData[];
@@ -35,6 +35,7 @@ declare const _default: <TData, TValue>(__VLS_props: NonNullable<Awaited<typeof
35
35
  renderSubComponent?: (row: Row<TData>) => (() => any) | undefined;
36
36
  freezeHeader?: boolean;
37
37
  enableColumnListControl?: boolean;
38
+ enableColumnResizing?: boolean;
38
39
  columnSearchPlaceholder?: string;
39
40
  columnSearchNotFound?: string;
40
41
  columnResetVisibility?: string;
@@ -73,8 +74,8 @@ declare const _default: <TData, TValue>(__VLS_props: NonNullable<Awaited<typeof
73
74
  'update:pagination': [pagination: PaginationState];
74
75
  'update:selection': [selection: RowSelectionState];
75
76
  'update:columnVisibility': [columnVisibility: VisibilityState];
76
- 'update:columnSizing': [columnSizing: ColumnSizingState];
77
77
  'update:columnOrder': [columnOrder: ColumnOrderState];
78
+ 'update:columnSizing': [columnSizing: Record<string, number>];
78
79
  };
79
80
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
80
81
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../../BuiTableHead.vue_vue_type_script_setup_true_lang-Bz1T89Vm.js";
1
+ import { _ as f } from "../../../BuiTableHead.vue_vue_type_script_setup_true_lang-JNDLoSoG.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../../BuiTableHeader.vue_vue_type_script_setup_true_lang-H9TKoH8p.js";
1
+ import { _ as f } from "../../../BuiTableHeader.vue_vue_type_script_setup_true_lang-18MBtNeo.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,14 +2,18 @@ declare function __VLS_template(): {
2
2
  slots: {
3
3
  default?(_: {}): any;
4
4
  };
5
- refs: {};
5
+ refs: {
6
+ headRef: HTMLTableSectionElement;
7
+ };
6
8
  attrs: Partial<{}>;
7
9
  };
8
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
11
  declare const __VLS_component: import('vue').DefineComponent<{
10
12
  class?: string;
11
13
  freezeHeader?: boolean;
12
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
14
+ }, {
15
+ headRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
13
17
  class?: string;
14
18
  freezeHeader?: boolean;
15
19
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;