@oneflowui/ui 0.8.1 → 0.8.3

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.
Files changed (107) hide show
  1. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  2. package/dist/components/Dashboard/charts/BarChart.vue2.js +9 -9
  3. package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
  4. package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
  5. package/dist/components/Dashboard/charts/PieChart.vue2.js +3 -3
  6. package/dist/components/Dashboard/charts/TableChart.vue.js +2 -2
  7. package/dist/components/Dashboard/index.vue.js +2 -2
  8. package/dist/components/base/InfoCard.vue.js +1 -1
  9. package/dist/components/base/InfoCard.vue2.js +40 -40
  10. package/dist/components/base/StatisticCard.vue.js +3 -3
  11. package/dist/components/base/StatusSummary.vue.js +1 -1
  12. package/dist/components/base/StatusSummary.vue2.js +5 -5
  13. package/dist/components/database/DatabaseDetailPresenter.vue.d.ts +41 -0
  14. package/dist/components/database/DatabaseDetailPresenter.vue.js +76 -0
  15. package/dist/components/database/DatabaseDetailPresenter.vue2.js +4 -0
  16. package/dist/components/database/DatabaseDetailWorkspace.vue.d.ts +37 -0
  17. package/dist/components/database/DatabaseDetailWorkspace.vue.js +7 -0
  18. package/dist/components/database/DatabaseDetailWorkspace.vue2.js +103 -0
  19. package/dist/components/database/DatabaseView.vue.d.ts +13 -76
  20. package/dist/components/database/DatabaseView.vue.js +2 -2
  21. package/dist/components/database/DatabaseView.vue2.js +322 -921
  22. package/dist/components/database/DatabaseViewContent.vue.d.ts +74 -0
  23. package/dist/components/database/DatabaseViewContent.vue.js +79 -0
  24. package/dist/components/database/DatabaseViewContent.vue2.js +4 -0
  25. package/dist/components/database/DatabaseViewDetailHost.vue.d.ts +43 -0
  26. package/dist/components/database/DatabaseViewDetailHost.vue.js +59 -0
  27. package/dist/components/database/DatabaseViewDetailHost.vue2.js +4 -0
  28. package/dist/components/database/DatabaseViewShell.vue.d.ts +35 -0
  29. package/dist/components/database/DatabaseViewShell.vue.js +7 -0
  30. package/dist/components/database/DatabaseViewShell.vue2.js +71 -0
  31. package/dist/components/database/DatabaseViewToolbar.vue.d.ts +77 -0
  32. package/dist/components/database/DatabaseViewToolbar.vue.js +62 -0
  33. package/dist/components/database/DatabaseViewToolbar.vue2.js +4 -0
  34. package/dist/components/database/databaseViewUtils.d.ts +91 -0
  35. package/dist/components/database/databaseViewUtils.js +266 -0
  36. package/dist/components/database/index.d.ts +1 -1
  37. package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -2
  38. package/dist/components/layout/AppLayout.vue.js +1 -1
  39. package/dist/components/layout/Navbar.vue.js +1 -1
  40. package/dist/components/layout/Sidebar.vue.js +2 -2
  41. package/dist/components/layout/StatusBar.vue.js +2 -2
  42. package/dist/components/overlay/Dialog.vue.d.ts +1 -1
  43. package/dist/components/table/ColumnHeaderMenu.vue.js +3 -3
  44. package/dist/components/table/DataTable.vue.d.ts +6 -17
  45. package/dist/components/table/DataTable.vue.js +2 -2
  46. package/dist/components/table/DataTable.vue2.js +781 -872
  47. package/dist/components/table/DataTableDesktopFixedRegion.vue.d.ts +56 -0
  48. package/dist/components/table/DataTableDesktopFixedRegion.vue.js +7 -0
  49. package/dist/components/table/DataTableDesktopFixedRegion.vue2.js +67 -0
  50. package/dist/components/table/DataTableDesktopFrame.vue.d.ts +127 -0
  51. package/dist/components/table/DataTableDesktopFrame.vue.js +7 -0
  52. package/dist/components/table/DataTableDesktopFrame.vue2.js +196 -0
  53. package/dist/components/table/DataTableDesktopScrollRegion.vue.d.ts +55 -0
  54. package/dist/components/table/DataTableDesktopScrollRegion.vue.js +7 -0
  55. package/dist/components/table/DataTableDesktopScrollRegion.vue2.js +66 -0
  56. package/dist/components/table/DataTableDesktopStandardRegion.vue.d.ts +54 -0
  57. package/dist/components/table/DataTableDesktopStandardRegion.vue.js +7 -0
  58. package/dist/components/table/DataTableDesktopStandardRegion.vue2.js +65 -0
  59. package/dist/components/table/DataTableDraftToolbar.vue.d.ts +11 -0
  60. package/dist/components/table/DataTableDraftToolbar.vue.js +7 -0
  61. package/dist/components/table/DataTableDraftToolbar.vue2.js +25 -0
  62. package/dist/components/table/DataTableMobilePanel.vue.d.ts +79 -0
  63. package/dist/components/table/DataTableMobilePanel.vue.js +60 -0
  64. package/dist/components/table/DataTableMobilePanel.vue2.js +4 -0
  65. package/dist/components/table/DataTableSelectionBar.vue.d.ts +11 -0
  66. package/dist/components/table/DataTableSelectionBar.vue.js +7 -0
  67. package/dist/components/table/DataTableSelectionBar.vue2.js +33 -0
  68. package/dist/components/table/DetailSheet.vue.js +1 -1
  69. package/dist/components/table/DetailSheet.vue2.js +160 -187
  70. package/dist/components/table/FieldTypePicker.vue.js +3 -3
  71. package/dist/components/table/MobileListView.vue.js +1 -1
  72. package/dist/components/table/TableColumnManager.vue.js +3 -3
  73. package/dist/components/table/TableDataRow.vue.js +4 -4
  74. package/dist/components/table/TableFilterPanel.vue.js +1 -1
  75. package/dist/components/table/TableGroupRow.vue.js +2 -2
  76. package/dist/components/table/TableHeaderRow.vue.js +3 -3
  77. package/dist/components/table/TableToolbar.vue.js +2 -2
  78. package/dist/components/table/TableToolbar.vue2.js +126 -138
  79. package/dist/components/table/dataTableUtils.d.ts +26 -0
  80. package/dist/components/table/dataTableUtils.js +60 -0
  81. package/dist/composables/databaseDetailWorkspaceUtils.d.ts +59 -0
  82. package/dist/composables/databaseDetailWorkspaceUtils.js +160 -0
  83. package/dist/composables/index.d.ts +5 -0
  84. package/dist/composables/useDataTableDetailSheet.d.ts +47 -0
  85. package/dist/composables/useDataTableDetailSheet.js +58 -0
  86. package/dist/composables/useDataTableLayout.d.ts +16 -0
  87. package/dist/composables/useDataTableLayout.js +38 -0
  88. package/dist/composables/useDataTableSelection.d.ts +41 -0
  89. package/dist/composables/useDataTableSelection.js +73 -0
  90. package/dist/composables/useDatabaseDetailWorkspace.d.ts +67 -0
  91. package/dist/composables/useDatabaseDetailWorkspace.js +150 -0
  92. package/dist/composables/useDatabaseView.d.ts +3 -137
  93. package/dist/composables/useDatabaseWorkspace.d.ts +31 -0
  94. package/dist/composables/useDatabaseWorkspace.js +89 -0
  95. package/dist/composables/useTableToolbarPanels.d.ts +19 -0
  96. package/dist/composables/useTableToolbarPanels.js +53 -0
  97. package/dist/contracts/database.d.ts +252 -0
  98. package/dist/index.d.ts +6 -0
  99. package/dist/index.js +261 -248
  100. package/dist/plugin.d.ts +2 -0
  101. package/dist/plugin.js +10 -261
  102. package/dist/registry/plugin-components.d.ts +291 -0
  103. package/dist/registry/plugin-components.js +114 -0
  104. package/dist/style.css +1 -1
  105. package/dist/types/data-table.d.ts +27 -0
  106. package/dist/types/data-table.js +29 -0
  107. package/package.json +1 -1
@@ -0,0 +1,56 @@
1
+ import { CSSProperties, HTMLAttributes } from 'vue';
2
+ import { TableColumn } from '../../types';
3
+ declare const _default: <T extends {
4
+ id: string;
5
+ } & Record<string, unknown>>(__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<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
+ readonly onScroll?: ((event: Event) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll"> & {
9
+ fixedWidth?: number;
10
+ showFixedShadow?: boolean;
11
+ regionClass?: HTMLAttributes["class"];
12
+ regionStyle?: CSSProperties;
13
+ columns?: TableColumn[];
14
+ allColumns?: TableColumn[];
15
+ selectable?: boolean;
16
+ showRowActions?: boolean;
17
+ useVirtual?: boolean;
18
+ totalHeight?: number;
19
+ offsetY?: number;
20
+ resolveRowId?: (item: T) => string;
21
+ setRegionRef?: (element: HTMLElement | null) => void;
22
+ } & Partial<{}>> & import('vue').PublicProps;
23
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
24
+ attrs: any;
25
+ slots: {
26
+ header?(_: {
27
+ branch: "fixed";
28
+ columns: TableColumn[];
29
+ allColumns: TableColumn[];
30
+ selectable: boolean;
31
+ showRowActions: boolean;
32
+ useVirtual: boolean;
33
+ totalHeight: number;
34
+ offsetY: number;
35
+ resolveRowId: ((item: T) => string) | undefined;
36
+ }): any;
37
+ body?(_: {
38
+ branch: "fixed";
39
+ columns: TableColumn[];
40
+ allColumns: TableColumn[];
41
+ selectable: boolean;
42
+ showRowActions: boolean;
43
+ useVirtual: boolean;
44
+ totalHeight: number;
45
+ offsetY: number;
46
+ resolveRowId: ((item: T) => string) | undefined;
47
+ }): any;
48
+ };
49
+ emit: (evt: "scroll", event: Event) => void;
50
+ }>) => import('vue').VNode & {
51
+ __ctx?: Awaited<typeof __VLS_setup>;
52
+ };
53
+ export default _default;
54
+ type __VLS_PrettifyLocal<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./DataTableDesktopFixedRegion.vue2.js";
2
+ /* empty css */
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-c95a17a9"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,67 @@
1
+ import { defineComponent as m, openBlock as h, createElementBlock as g, normalizeStyle as R, normalizeClass as w, renderSlot as a, normalizeProps as i, guardReactiveProps as s, createElementVNode as y } from "vue";
2
+ const b = { class: "of-data-table-fixed-body" }, x = /* @__PURE__ */ m({
3
+ name: "DataTableDesktopFixedRegion",
4
+ __name: "DataTableDesktopFixedRegion",
5
+ props: {
6
+ fixedWidth: { default: 0 },
7
+ showFixedShadow: { type: Boolean, default: !1 },
8
+ regionClass: { type: [Boolean, null, String, Object, Array], default: void 0 },
9
+ regionStyle: { default: void 0 },
10
+ columns: { default: () => [] },
11
+ allColumns: { default: () => [] },
12
+ selectable: { type: Boolean, default: !0 },
13
+ showRowActions: { type: Boolean, default: !0 },
14
+ useVirtual: { type: Boolean, default: !1 },
15
+ totalHeight: { default: 0 },
16
+ offsetY: { default: 0 },
17
+ resolveRowId: { type: Function, default: void 0 },
18
+ setRegionRef: { type: Function, default: void 0 }
19
+ },
20
+ emits: ["scroll"],
21
+ setup(l, { emit: d }) {
22
+ const t = l, f = d;
23
+ function r(e) {
24
+ if (e instanceof HTMLElement)
25
+ return e;
26
+ if (e && "$el" in e) {
27
+ const o = e.$el;
28
+ return o instanceof HTMLElement ? o : null;
29
+ }
30
+ return null;
31
+ }
32
+ function u(e) {
33
+ var o;
34
+ (o = t.setRegionRef) == null || o.call(t, r(e));
35
+ }
36
+ function c(e) {
37
+ f("scroll", e);
38
+ }
39
+ function n() {
40
+ return {
41
+ branch: "fixed",
42
+ columns: t.columns,
43
+ allColumns: t.allColumns,
44
+ selectable: t.selectable,
45
+ showRowActions: t.showRowActions,
46
+ useVirtual: t.useVirtual,
47
+ totalHeight: t.totalHeight,
48
+ offsetY: t.offsetY,
49
+ resolveRowId: t.resolveRowId
50
+ };
51
+ }
52
+ return (e, o) => (h(), g("div", {
53
+ ref: u,
54
+ class: w(["of-data-table-fixed-region of-data-table-desktop-frame__fixed-region", [{ "of-fixed-shadow": l.showFixedShadow }, l.regionClass]]),
55
+ style: R([l.regionStyle, { width: `${l.fixedWidth}px` }]),
56
+ onScroll: c
57
+ }, [
58
+ a(e.$slots, "header", i(s(n())), void 0, !0),
59
+ y("div", b, [
60
+ a(e.$slots, "body", i(s(n())), void 0, !0)
61
+ ])
62
+ ], 38));
63
+ }
64
+ });
65
+ export {
66
+ x as default
67
+ };
@@ -0,0 +1,127 @@
1
+ import { CSSProperties } from 'vue';
2
+ import { ResolvedBulkActionItem } from '../../types/data-table';
3
+ import { TableColumn } from '../../types';
4
+ declare const _default: <T extends {
5
+ id: string;
6
+ } & Record<string, unknown>>(__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<{
7
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
+ readonly onScroll?: ((event: Event) => any) | undefined;
9
+ readonly "onSelection-action"?: ((action: ResolvedBulkActionItem) => any) | undefined;
10
+ readonly "onFixed-scroll"?: ((event: Event) => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll" | "onSelection-action" | "onFixed-scroll"> & {
12
+ hasFixedColumns?: boolean;
13
+ showSelectionBar?: boolean;
14
+ selectionCount?: number;
15
+ selectionItems?: ResolvedBulkActionItem[];
16
+ fixedWidth?: number;
17
+ showFixedShadow?: boolean;
18
+ columns?: TableColumn[];
19
+ fixedColumns?: TableColumn[];
20
+ scrollableColumns?: TableColumn[];
21
+ selectable?: boolean;
22
+ showRowActions?: boolean;
23
+ useVirtual?: boolean;
24
+ totalHeight?: number;
25
+ offsetY?: number;
26
+ shellStyle?: CSSProperties | (() => CSSProperties | undefined) | undefined;
27
+ bodyStyle?: CSSProperties | (() => CSSProperties | undefined) | undefined;
28
+ fixedRegionStyle?: CSSProperties | (() => CSSProperties | undefined) | undefined;
29
+ scrollRegionStyle?: CSSProperties | (() => CSSProperties | undefined) | undefined;
30
+ selectionBarStyle?: CSSProperties | (() => CSSProperties | undefined) | undefined;
31
+ resolveRowId?: (item: T) => string;
32
+ resolveBranchClass?: (branch: "standard" | "fixed") => string | string[] | Record<string, boolean>;
33
+ resolveBodyClass?: (branch: "standard" | "fixed") => string | string[] | Record<string, boolean>;
34
+ resolveFixedRegionClass?: () => string | string[] | Record<string, boolean>;
35
+ resolveScrollRegionClass?: () => string | string[] | Record<string, boolean>;
36
+ resolveSelectionBarClass?: () => string | string[] | Record<string, boolean>;
37
+ resolveBodyStyle?: () => CSSProperties | undefined;
38
+ resolveFixedRegionStyle?: () => CSSProperties | undefined;
39
+ resolveScrollRegionStyle?: () => CSSProperties | undefined;
40
+ resolveSelectionBarStyle?: () => CSSProperties | undefined;
41
+ onSelectionAction?: (action: ResolvedBulkActionItem) => void;
42
+ onFixedScroll?: (event: Event) => void;
43
+ onScroll?: (event: Event) => void;
44
+ setFixedRegionRef?: (element: HTMLElement | null) => void;
45
+ setScrollRegionRef?: (element: HTMLElement | null) => void;
46
+ setStandardScrollRef?: (element: HTMLElement | null) => void;
47
+ } & Partial<{}>> & import('vue').PublicProps;
48
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
49
+ attrs: any;
50
+ slots: {
51
+ 'fixed-header'?(_: {
52
+ branch: "standard" | "fixed";
53
+ columns: TableColumn[];
54
+ allColumns: TableColumn[];
55
+ selectable: boolean;
56
+ showRowActions: boolean;
57
+ useVirtual: boolean;
58
+ totalHeight: number;
59
+ offsetY: number;
60
+ resolveRowId: ((item: T) => string) | undefined;
61
+ }): any;
62
+ 'fixed-body'?(_: {
63
+ branch: "standard" | "fixed";
64
+ columns: TableColumn[];
65
+ allColumns: TableColumn[];
66
+ selectable: boolean;
67
+ showRowActions: boolean;
68
+ useVirtual: boolean;
69
+ totalHeight: number;
70
+ offsetY: number;
71
+ resolveRowId: ((item: T) => string) | undefined;
72
+ }): any;
73
+ 'scroll-header'?(_: {
74
+ branch: "standard" | "fixed";
75
+ columns: TableColumn[];
76
+ allColumns: TableColumn[];
77
+ selectable: boolean;
78
+ showRowActions: boolean;
79
+ useVirtual: boolean;
80
+ totalHeight: number;
81
+ offsetY: number;
82
+ resolveRowId: ((item: T) => string) | undefined;
83
+ }): any;
84
+ 'scroll-body'?(_: {
85
+ branch: "standard" | "fixed";
86
+ columns: TableColumn[];
87
+ allColumns: TableColumn[];
88
+ selectable: boolean;
89
+ showRowActions: boolean;
90
+ useVirtual: boolean;
91
+ totalHeight: number;
92
+ offsetY: number;
93
+ resolveRowId: ((item: T) => string) | undefined;
94
+ }): any;
95
+ 'standard-header'?(_: {
96
+ branch: "standard" | "fixed";
97
+ columns: TableColumn[];
98
+ allColumns: TableColumn[];
99
+ selectable: boolean;
100
+ showRowActions: boolean;
101
+ useVirtual: boolean;
102
+ totalHeight: number;
103
+ offsetY: number;
104
+ resolveRowId: ((item: T) => string) | undefined;
105
+ }): any;
106
+ 'standard-body'?(_: {
107
+ branch: "standard" | "fixed";
108
+ columns: TableColumn[];
109
+ allColumns: TableColumn[];
110
+ selectable: boolean;
111
+ showRowActions: boolean;
112
+ useVirtual: boolean;
113
+ totalHeight: number;
114
+ offsetY: number;
115
+ resolveRowId: ((item: T) => string) | undefined;
116
+ }): any;
117
+ footer?(_: {}): any;
118
+ overlay?(_: {}): any;
119
+ };
120
+ emit: ((evt: "scroll", event: Event) => void) & ((evt: "selection-action", action: ResolvedBulkActionItem) => void) & ((evt: "fixed-scroll", event: Event) => void);
121
+ }>) => import('vue').VNode & {
122
+ __ctx?: Awaited<typeof __VLS_setup>;
123
+ };
124
+ export default _default;
125
+ type __VLS_PrettifyLocal<T> = {
126
+ [K in keyof T]: T[K];
127
+ } & {};
@@ -0,0 +1,7 @@
1
+ import a from "./DataTableDesktopFrame.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-637bbf7a"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,196 @@
1
+ import { defineComponent as H, computed as r, openBlock as u, createElementBlock as m, mergeProps as T, createBlock as w, normalizeStyle as g, normalizeClass as R, createCommentVNode as Y, createVNode as b, withCtx as i, renderSlot as n, normalizeProps as a, guardReactiveProps as d } from "vue";
2
+ import j from "./DataTableDesktopFixedRegion.vue.js";
3
+ import O from "./DataTableDesktopScrollRegion.vue.js";
4
+ import P from "./DataTableDesktopStandardRegion.vue.js";
5
+ import z from "./DataTableSelectionBar.vue.js";
6
+ const J = /* @__PURE__ */ H({
7
+ name: "DataTableDesktopFrame",
8
+ inheritAttrs: !1,
9
+ __name: "DataTableDesktopFrame",
10
+ props: {
11
+ hasFixedColumns: { type: Boolean, default: !1 },
12
+ showSelectionBar: { type: Boolean, default: !0 },
13
+ selectionCount: { default: 0 },
14
+ selectionItems: { default: () => [] },
15
+ fixedWidth: { default: 0 },
16
+ showFixedShadow: { type: Boolean, default: !1 },
17
+ columns: { default: () => [] },
18
+ fixedColumns: { default: () => [] },
19
+ scrollableColumns: { default: () => [] },
20
+ selectable: { type: Boolean, default: !0 },
21
+ showRowActions: { type: Boolean, default: !0 },
22
+ useVirtual: { type: Boolean, default: !1 },
23
+ totalHeight: { default: 0 },
24
+ offsetY: { default: 0 },
25
+ shellStyle: { type: [Object, Function], default: void 0 },
26
+ bodyStyle: { type: [Object, Function], default: void 0 },
27
+ fixedRegionStyle: { type: [Object, Function], default: void 0 },
28
+ scrollRegionStyle: { type: [Object, Function], default: void 0 },
29
+ selectionBarStyle: { type: [Object, Function], default: void 0 },
30
+ resolveRowId: { type: Function, default: void 0 },
31
+ resolveBranchClass: { type: Function, default: void 0 },
32
+ resolveBodyClass: { type: Function, default: void 0 },
33
+ resolveFixedRegionClass: { type: Function, default: void 0 },
34
+ resolveScrollRegionClass: { type: Function, default: void 0 },
35
+ resolveSelectionBarClass: { type: Function, default: void 0 },
36
+ resolveBodyStyle: { type: Function, default: void 0 },
37
+ resolveFixedRegionStyle: { type: Function, default: void 0 },
38
+ resolveScrollRegionStyle: { type: Function, default: void 0 },
39
+ resolveSelectionBarStyle: { type: Function, default: void 0 },
40
+ onSelectionAction: { type: Function, default: void 0 },
41
+ onFixedScroll: { type: Function, default: void 0 },
42
+ onScroll: { type: Function, default: void 0 },
43
+ setFixedRegionRef: { type: Function, default: void 0 },
44
+ setScrollRegionRef: { type: Function, default: void 0 },
45
+ setStandardScrollRef: { type: Function, default: void 0 }
46
+ },
47
+ emits: ["selection-action", "scroll", "fixed-scroll"],
48
+ setup(t, { emit: F }) {
49
+ const e = t, f = F;
50
+ function c(l) {
51
+ return typeof l == "function" ? l() ?? {} : l ?? {};
52
+ }
53
+ const x = r(() => c(e.shellStyle)), v = r(() => c(e.resolveBodyStyle ?? e.bodyStyle)), C = r(
54
+ () => c(e.resolveFixedRegionStyle ?? e.fixedRegionStyle)
55
+ ), B = r(
56
+ () => c(e.resolveScrollRegionStyle ?? e.scrollRegionStyle)
57
+ ), k = r(
58
+ () => c(e.resolveSelectionBarStyle ?? e.selectionBarStyle)
59
+ );
60
+ function y(l) {
61
+ var o;
62
+ return (o = e.resolveBranchClass) == null ? void 0 : o.call(e, l);
63
+ }
64
+ function h(l) {
65
+ var o;
66
+ return (o = e.resolveBodyClass) == null ? void 0 : o.call(e, l);
67
+ }
68
+ function V() {
69
+ var l;
70
+ return (l = e.resolveFixedRegionClass) == null ? void 0 : l.call(e);
71
+ }
72
+ function A() {
73
+ var l;
74
+ return (l = e.resolveScrollRegionClass) == null ? void 0 : l.call(e);
75
+ }
76
+ function D() {
77
+ var l;
78
+ return (l = e.resolveSelectionBarClass) == null ? void 0 : l.call(e);
79
+ }
80
+ function $(l) {
81
+ var o;
82
+ f("selection-action", l), (o = e.onSelectionAction) == null || o.call(e, l);
83
+ }
84
+ function I(l) {
85
+ var o;
86
+ f("fixed-scroll", l), (o = e.onFixedScroll) == null || o.call(e, l);
87
+ }
88
+ function S(l) {
89
+ var o;
90
+ f("scroll", l), (o = e.onScroll) == null || o.call(e, l);
91
+ }
92
+ function s(l) {
93
+ return {
94
+ branch: l,
95
+ columns: l === "fixed" ? e.fixedColumns : e.scrollableColumns,
96
+ allColumns: e.columns,
97
+ selectable: e.selectable,
98
+ showRowActions: e.showRowActions,
99
+ useVirtual: e.useVirtual,
100
+ totalHeight: e.totalHeight,
101
+ offsetY: e.offsetY,
102
+ resolveRowId: e.resolveRowId
103
+ };
104
+ }
105
+ return (l, o) => (u(), m("section", T({ class: "of-data-table-desktop-frame" }, l.$attrs, { style: x.value }), [
106
+ t.showSelectionBar && t.selectionCount > 0 ? (u(), w(z, {
107
+ key: 0,
108
+ class: R(["of-data-table-desktop-frame__selection-bar", D()]),
109
+ style: g(k.value),
110
+ "selection-count": t.selectionCount,
111
+ items: t.selectionItems,
112
+ onAction: $
113
+ }, null, 8, ["class", "style", "selection-count", "items"])) : Y("", !0),
114
+ t.hasFixedColumns ? (u(), m("div", {
115
+ key: 1,
116
+ class: R(["of-data-table-body of-data-table-desktop-frame__body", [y("fixed"), h("fixed")]]),
117
+ style: g([v.value])
118
+ }, [
119
+ b(j, {
120
+ "fixed-width": t.fixedWidth,
121
+ "show-fixed-shadow": t.showFixedShadow,
122
+ "region-class": V(),
123
+ "region-style": C.value,
124
+ columns: t.fixedColumns,
125
+ "all-columns": t.columns,
126
+ selectable: t.selectable,
127
+ "show-row-actions": t.showRowActions,
128
+ "use-virtual": t.useVirtual,
129
+ "total-height": t.totalHeight,
130
+ "offset-y": t.offsetY,
131
+ "resolve-row-id": t.resolveRowId,
132
+ "set-region-ref": t.setFixedRegionRef,
133
+ onScroll: I
134
+ }, {
135
+ header: i(() => [
136
+ n(l.$slots, "fixed-header", a(d(s("fixed"))), void 0, !0)
137
+ ]),
138
+ body: i(() => [
139
+ n(l.$slots, "fixed-body", a(d(s("fixed"))), void 0, !0)
140
+ ]),
141
+ _: 3
142
+ }, 8, ["fixed-width", "show-fixed-shadow", "region-class", "region-style", "columns", "all-columns", "selectable", "show-row-actions", "use-virtual", "total-height", "offset-y", "resolve-row-id", "set-region-ref"]),
143
+ b(O, {
144
+ "fixed-width": t.fixedWidth,
145
+ "region-class": [y("fixed"), A()],
146
+ "region-style": B.value,
147
+ columns: t.scrollableColumns,
148
+ "all-columns": t.columns,
149
+ selectable: t.selectable,
150
+ "show-row-actions": t.showRowActions,
151
+ "use-virtual": t.useVirtual,
152
+ "total-height": t.totalHeight,
153
+ "offset-y": t.offsetY,
154
+ "resolve-row-id": t.resolveRowId,
155
+ "set-region-ref": t.setScrollRegionRef,
156
+ onScroll: S
157
+ }, {
158
+ header: i(() => [
159
+ n(l.$slots, "scroll-header", a(d(s("fixed"))), void 0, !0)
160
+ ]),
161
+ body: i(() => [
162
+ n(l.$slots, "scroll-body", a(d(s("fixed"))), void 0, !0)
163
+ ]),
164
+ _: 3
165
+ }, 8, ["fixed-width", "region-class", "region-style", "columns", "all-columns", "selectable", "show-row-actions", "use-virtual", "total-height", "offset-y", "resolve-row-id", "set-region-ref"])
166
+ ], 6)) : (u(), w(P, {
167
+ key: 2,
168
+ "container-class": [y("standard"), h("standard")],
169
+ "container-style": v.value,
170
+ columns: t.scrollableColumns,
171
+ "all-columns": t.columns,
172
+ selectable: t.selectable,
173
+ "show-row-actions": t.showRowActions,
174
+ "use-virtual": t.useVirtual,
175
+ "total-height": t.totalHeight,
176
+ "offset-y": t.offsetY,
177
+ "resolve-row-id": t.resolveRowId,
178
+ "set-container-ref": t.setStandardScrollRef,
179
+ onScroll: S
180
+ }, {
181
+ header: i(() => [
182
+ n(l.$slots, "standard-header", a(d(s("standard"))), void 0, !0)
183
+ ]),
184
+ body: i(() => [
185
+ n(l.$slots, "standard-body", a(d(s("standard"))), void 0, !0)
186
+ ]),
187
+ _: 3
188
+ }, 8, ["container-class", "container-style", "columns", "all-columns", "selectable", "show-row-actions", "use-virtual", "total-height", "offset-y", "resolve-row-id", "set-container-ref"])),
189
+ n(l.$slots, "footer", {}, void 0, !0),
190
+ n(l.$slots, "overlay", {}, void 0, !0)
191
+ ], 16));
192
+ }
193
+ });
194
+ export {
195
+ J as default
196
+ };
@@ -0,0 +1,55 @@
1
+ import { CSSProperties, HTMLAttributes } from 'vue';
2
+ import { TableColumn } from '../../types';
3
+ declare const _default: <T extends {
4
+ id: string;
5
+ } & Record<string, unknown>>(__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<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
+ readonly onScroll?: ((event: Event) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll"> & {
9
+ fixedWidth?: number;
10
+ regionClass?: HTMLAttributes["class"];
11
+ regionStyle?: CSSProperties;
12
+ columns?: TableColumn[];
13
+ allColumns?: TableColumn[];
14
+ selectable?: boolean;
15
+ showRowActions?: boolean;
16
+ useVirtual?: boolean;
17
+ totalHeight?: number;
18
+ offsetY?: number;
19
+ resolveRowId?: (item: T) => string;
20
+ setRegionRef?: (element: HTMLElement | null) => void;
21
+ } & Partial<{}>> & import('vue').PublicProps;
22
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
23
+ attrs: any;
24
+ slots: {
25
+ header?(_: {
26
+ branch: "fixed";
27
+ columns: TableColumn[];
28
+ allColumns: TableColumn[];
29
+ selectable: boolean;
30
+ showRowActions: boolean;
31
+ useVirtual: boolean;
32
+ totalHeight: number;
33
+ offsetY: number;
34
+ resolveRowId: ((item: T) => string) | undefined;
35
+ }): any;
36
+ body?(_: {
37
+ branch: "fixed";
38
+ columns: TableColumn[];
39
+ allColumns: TableColumn[];
40
+ selectable: boolean;
41
+ showRowActions: boolean;
42
+ useVirtual: boolean;
43
+ totalHeight: number;
44
+ offsetY: number;
45
+ resolveRowId: ((item: T) => string) | undefined;
46
+ }): any;
47
+ };
48
+ emit: (evt: "scroll", event: Event) => void;
49
+ }>) => import('vue').VNode & {
50
+ __ctx?: Awaited<typeof __VLS_setup>;
51
+ };
52
+ export default _default;
53
+ type __VLS_PrettifyLocal<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./DataTableDesktopScrollRegion.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5288db15"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,66 @@
1
+ import { defineComponent as m, openBlock as g, createElementBlock as R, normalizeStyle as y, normalizeClass as b, renderSlot as a, normalizeProps as s, guardReactiveProps as i, createElementVNode as h } from "vue";
2
+ const v = { class: "of-data-table-scroll-body" }, w = /* @__PURE__ */ m({
3
+ name: "DataTableDesktopScrollRegion",
4
+ __name: "DataTableDesktopScrollRegion",
5
+ props: {
6
+ fixedWidth: { default: 0 },
7
+ regionClass: { type: [Boolean, null, String, Object, Array], default: void 0 },
8
+ regionStyle: { default: void 0 },
9
+ columns: { default: () => [] },
10
+ allColumns: { default: () => [] },
11
+ selectable: { type: Boolean, default: !0 },
12
+ showRowActions: { type: Boolean, default: !0 },
13
+ useVirtual: { type: Boolean, default: !1 },
14
+ totalHeight: { default: 0 },
15
+ offsetY: { default: 0 },
16
+ resolveRowId: { type: Function, default: void 0 },
17
+ setRegionRef: { type: Function, default: void 0 }
18
+ },
19
+ emits: ["scroll"],
20
+ setup(o, { emit: r }) {
21
+ const t = o, d = r;
22
+ function f(e) {
23
+ if (e instanceof HTMLElement)
24
+ return e;
25
+ if (e && "$el" in e) {
26
+ const l = e.$el;
27
+ return l instanceof HTMLElement ? l : null;
28
+ }
29
+ return null;
30
+ }
31
+ function u(e) {
32
+ var l;
33
+ (l = t.setRegionRef) == null || l.call(t, f(e));
34
+ }
35
+ function c(e) {
36
+ d("scroll", e);
37
+ }
38
+ function n() {
39
+ return {
40
+ branch: "fixed",
41
+ columns: t.columns,
42
+ allColumns: t.allColumns,
43
+ selectable: t.selectable,
44
+ showRowActions: t.showRowActions,
45
+ useVirtual: t.useVirtual,
46
+ totalHeight: t.totalHeight,
47
+ offsetY: t.offsetY,
48
+ resolveRowId: t.resolveRowId
49
+ };
50
+ }
51
+ return (e, l) => (g(), R("div", {
52
+ ref: u,
53
+ class: b(["of-data-table-scroll-region of-data-table-desktop-frame__scroll-region", o.regionClass]),
54
+ style: y([o.regionStyle, { marginLeft: `${o.fixedWidth}px` }]),
55
+ onScroll: c
56
+ }, [
57
+ a(e.$slots, "header", s(i(n())), void 0, !0),
58
+ h("div", v, [
59
+ a(e.$slots, "body", s(i(n())), void 0, !0)
60
+ ])
61
+ ], 38));
62
+ }
63
+ });
64
+ export {
65
+ w as default
66
+ };
@@ -0,0 +1,54 @@
1
+ import { CSSProperties, HTMLAttributes } from 'vue';
2
+ import { TableColumn } from '../../types';
3
+ declare const _default: <T extends {
4
+ id: string;
5
+ } & Record<string, unknown>>(__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<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
+ readonly onScroll?: ((event: Event) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onScroll"> & {
9
+ containerClass?: HTMLAttributes["class"];
10
+ containerStyle?: CSSProperties;
11
+ columns?: TableColumn[];
12
+ allColumns?: TableColumn[];
13
+ selectable?: boolean;
14
+ showRowActions?: boolean;
15
+ useVirtual?: boolean;
16
+ totalHeight?: number;
17
+ offsetY?: number;
18
+ resolveRowId?: (item: T) => string;
19
+ setContainerRef?: (element: HTMLElement | null) => void;
20
+ } & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
+ attrs: any;
23
+ slots: {
24
+ header?(_: {
25
+ branch: "standard";
26
+ columns: TableColumn[];
27
+ allColumns: TableColumn[];
28
+ selectable: boolean;
29
+ showRowActions: boolean;
30
+ useVirtual: boolean;
31
+ totalHeight: number;
32
+ offsetY: number;
33
+ resolveRowId: ((item: T) => string) | undefined;
34
+ }): any;
35
+ body?(_: {
36
+ branch: "standard";
37
+ columns: TableColumn[];
38
+ allColumns: TableColumn[];
39
+ selectable: boolean;
40
+ showRowActions: boolean;
41
+ useVirtual: boolean;
42
+ totalHeight: number;
43
+ offsetY: number;
44
+ resolveRowId: ((item: T) => string) | undefined;
45
+ }): any;
46
+ };
47
+ emit: (evt: "scroll", event: Event) => void;
48
+ }>) => import('vue').VNode & {
49
+ __ctx?: Awaited<typeof __VLS_setup>;
50
+ };
51
+ export default _default;
52
+ type __VLS_PrettifyLocal<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
@@ -0,0 +1,7 @@
1
+ import a from "./DataTableDesktopStandardRegion.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(a, [["__scopeId", "data-v-c85a74a9"]]);
5
+ export {
6
+ p as default
7
+ };