@agrotools1/at-components 2.0.35 → 2.0.36
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/dist/changelog/versions/components/index.d.ts.map +1 -1
- package/dist/changelog/versions/components/v2.0.35.d.ts.map +1 -1
- package/dist/changelog/versions/components/v2.0.36.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.36.d.ts.map +1 -0
- package/dist/combobox/ComboboxList.vue.d.ts +6 -2
- package/dist/combobox/ComboboxList.vue.d.ts.map +1 -1
- package/dist/combobox/ComboboxList.vue.js +29 -26
- package/dist/data-table/DataTable.vue.d.ts +0 -8
- package/dist/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/data-table/DataTable.vue.js +28 -31
- package/dist/document-input/DocumentAutoComplete.vue.d.ts.map +1 -1
- package/dist/document-input/DocumentAutoComplete.vue.js +1 -2
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts +6 -2
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuContent.vue.js +28 -25
- package/dist/index.css +1 -1
- package/dist/popover/PopoverContent.vue.d.ts +4 -0
- package/dist/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/popover/PopoverContent.vue.js +27 -24
- package/dist/select/SelectContent.vue.d.ts +4 -0
- package/dist/select/SelectContent.vue.d.ts.map +1 -1
- package/dist/select/SelectContent.vue.js +43 -40
- package/dist/sheet/SheetContent.vue.d.ts.map +1 -1
- package/dist/sheet/SheetContent.vue.js +19 -25
- package/dist/sheet/SheetFooter.vue.js +3 -3
- package/dist/sheet/sheetContent.variants.d.ts +6 -0
- package/dist/sheet/sheetContent.variants.d.ts.map +1 -0
- package/dist/sheet/sheetContent.variants.js +20 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/index.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,EAAE,WAAW,EAqB3C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.0.35.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.35.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"v2.0.35.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.35.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,WAWd,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2.0.36.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.36.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,WA6Cd,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -2,6 +2,8 @@ import { ComboboxContentProps } from 'reka-ui';
|
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
3
|
type __VLS_Props = ComboboxContentProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
|
+
disablePortal?: boolean;
|
|
6
|
+
positionStrategy?: 'fixed' | 'absolute';
|
|
5
7
|
};
|
|
6
8
|
declare function __VLS_template(): {
|
|
7
9
|
attrs: Partial<{}>;
|
|
@@ -9,7 +11,7 @@ declare function __VLS_template(): {
|
|
|
9
11
|
default?(_: {}): any;
|
|
10
12
|
};
|
|
11
13
|
refs: {};
|
|
12
|
-
rootEl:
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
13
15
|
};
|
|
14
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
17
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -26,7 +28,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
26
28
|
align: "end" | "start" | "center";
|
|
27
29
|
position: "inline" | "popper";
|
|
28
30
|
sideOffset: number;
|
|
29
|
-
|
|
31
|
+
positionStrategy: "absolute" | "fixed";
|
|
32
|
+
disablePortal: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
35
|
export default _default;
|
|
32
36
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxList.vue.d.ts","sourceRoot":"","sources":["../../src/combobox/ComboboxList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComboboxList.vue.d.ts","sourceRoot":"","sources":["../../src/combobox/ComboboxList.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAwB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,KAAK,WAAW,GAAG,oBAAoB,GAAG;IACpC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;CACxC,CAAC;AA2BN,iBAAS,cAAc;WA8DT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;mBA/GC,OAAO;wFAwH3B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const O = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as p, createElementBlock as c, openBlock as m, createVNode as t, unref as e, withCtx as a, mergeProps as f, renderSlot as u } from "vue";
|
|
2
|
+
import { cn as b } from "../lib/utils.js";
|
|
3
|
+
import { reactiveOmit as g } from "@vueuse/core";
|
|
4
|
+
import { useForwardPropsEmits as y, ComboboxPortal as h, ComboboxContent as B } from "reka-ui";
|
|
5
|
+
const v = { class: "relative" }, O = /* @__PURE__ */ p({
|
|
6
6
|
__name: "ComboboxList",
|
|
7
7
|
props: {
|
|
8
8
|
forceMount: { type: Boolean },
|
|
@@ -20,7 +20,7 @@ const O = /* @__PURE__ */ l({
|
|
|
20
20
|
arrowPadding: {},
|
|
21
21
|
sticky: {},
|
|
22
22
|
hideWhenDetached: { type: Boolean },
|
|
23
|
-
positionStrategy: {},
|
|
23
|
+
positionStrategy: { default: "absolute" },
|
|
24
24
|
updatePositionStrategy: {},
|
|
25
25
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
26
26
|
prioritizePosition: { type: Boolean },
|
|
@@ -28,28 +28,31 @@ const O = /* @__PURE__ */ l({
|
|
|
28
28
|
asChild: { type: Boolean },
|
|
29
29
|
as: {},
|
|
30
30
|
disableOutsidePointerEvents: { type: Boolean },
|
|
31
|
-
class: {}
|
|
31
|
+
class: {},
|
|
32
|
+
disablePortal: { type: Boolean, default: !0 }
|
|
32
33
|
},
|
|
33
34
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
return (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
35
|
+
setup(i, { emit: s }) {
|
|
36
|
+
const o = i, r = s, n = g(o, "class"), d = y(n, r);
|
|
37
|
+
return (l, w) => (m(), c("div", v, [
|
|
38
|
+
t(e(h), { disabled: !0 }, {
|
|
39
|
+
default: a(() => [
|
|
40
|
+
t(e(B), f({ "data-slot": "combobox-list" }, { ...e(d), strategy: "absolute" }, {
|
|
41
|
+
class: e(b)(
|
|
42
|
+
"!border-input max-h-[50vh] overflow-y-auto overscroll-contain !border",
|
|
43
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-[var(--reka-combobox-trigger-width)] min-w-[var(--reka-combobox-trigger-width)] origin-(--reka-combobox-content-transform-origin) rounded-md shadow-xs outline-none relative",
|
|
44
|
+
o.class
|
|
45
|
+
)
|
|
46
|
+
}), {
|
|
47
|
+
default: a(() => [
|
|
48
|
+
u(l.$slots, "default")
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
}, 16, ["class"])
|
|
52
|
+
]),
|
|
53
|
+
_: 3
|
|
54
|
+
})
|
|
55
|
+
]));
|
|
53
56
|
}
|
|
54
57
|
});
|
|
55
58
|
export {
|
|
@@ -47,14 +47,6 @@ declare const _default: <TData extends RowData>(__VLS_props: NonNullable<Awaited
|
|
|
47
47
|
* Row selection state conf
|
|
48
48
|
*/
|
|
49
49
|
rowSelection?: RowSelectionState;
|
|
50
|
-
/**
|
|
51
|
-
* Additional classes for table headers
|
|
52
|
-
*/
|
|
53
|
-
headerClass?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Additional classes for table cells
|
|
56
|
-
*/
|
|
57
|
-
cellClass?: string;
|
|
58
50
|
} & any> & import('vue').PublicProps;
|
|
59
51
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
60
52
|
table: import('@tanstack/vue-table').Table<TData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../src/data-table/DataTable.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../src/data-table/DataTable.vue"],"names":[],"mappings":"AAAA,OAqNO,KAAK,EACV,SAAS,EACT,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,YAAY,EACb,MAAM,qBAAqB,CAAA;yBAuBX,KAAK,SAAS,OAAO,EACrC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA4XO,mBAAmB,CAAC;;;;;QA1X1B;;WAEG;cACG,KAAK,EAAE;QAEb;;WAEG;iBACM,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE;QAEhC;;WAEG;oBACS,OAAO;QAEnB;;WAEG;2BACgB,OAAO;QAE1B;;WAEG;wBACa,OAAO;QAEvB;;;WAGG;mBACQ,MAAM;QAEjB;;;WAGG;oBACS,MAAM;QAElB;;WAEG;qBACU,eAAe;QAE5B;;WAEG;kBACO,YAAY;QAEtB;;WAEG;uBACY,iBAAiB;WAwU4D,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvYzE,wBAuY4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useVueTable as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { defineComponent as B, computed as w, useSlots as v, createBlock as l, openBlock as n, unref as e, withCtx as a, createVNode as f, createElementBlock as u, Fragment as s, renderList as m, normalizeClass as z, normalizeStyle as V, createCommentVNode as x, renderSlot as L } from "vue";
|
|
2
|
+
import { useVueTable as D, FlexRender as _ } from "../node_modules/.pnpm/@tanstack_vue-table@8.21.3_vue@3.5.19_typescript@5.8.3_/node_modules/@tanstack/vue-table/build/lib/index.js";
|
|
3
|
+
import { cn as T } from "../lib/utils.js";
|
|
4
4
|
import F from "../skeleton/Skeleton.vue.js";
|
|
5
5
|
import H from "../table/Table.vue.js";
|
|
6
6
|
import N from "../table/TableBody.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import $ from "../table/TableCell.vue.js";
|
|
8
8
|
import M from "../table/TableEmpty.vue.js";
|
|
9
9
|
import E from "../table/TableHead.vue.js";
|
|
10
10
|
import I from "../table/TableHeader.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import { valueUpdater as
|
|
11
|
+
import y from "../table/TableRow.vue.js";
|
|
12
|
+
import { valueUpdater as C } from "../table/utils.js";
|
|
13
13
|
import { getPaginationRowModel as U, getSortedRowModel as j, getCoreRowModel as q } from "../node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js";
|
|
14
|
-
const le = /* @__PURE__ */
|
|
14
|
+
const le = /* @__PURE__ */ B({
|
|
15
15
|
__name: "DataTable",
|
|
16
16
|
props: {
|
|
17
17
|
data: {},
|
|
@@ -23,22 +23,20 @@ const le = /* @__PURE__ */ v({
|
|
|
23
23
|
pageCount: {},
|
|
24
24
|
pagination: { default: () => ({ pageIndex: 0, pageSize: 10 }) },
|
|
25
25
|
sorting: { default: () => [] },
|
|
26
|
-
rowSelection: { default: () => ({}) }
|
|
27
|
-
headerClass: {},
|
|
28
|
-
cellClass: {}
|
|
26
|
+
rowSelection: { default: () => ({}) }
|
|
29
27
|
},
|
|
30
28
|
emits: ["update:pagination", "update:sorting", "update:row-selection"],
|
|
31
29
|
setup(r, { expose: P, emit: b }) {
|
|
32
|
-
const p = b, S =
|
|
30
|
+
const p = b, S = w({
|
|
33
31
|
get: () => r.pagination,
|
|
34
32
|
set: (t) => p("update:pagination", t)
|
|
35
|
-
}), k =
|
|
33
|
+
}), k = w({
|
|
36
34
|
get: () => r.sorting,
|
|
37
35
|
set: (t) => p("update:sorting", t)
|
|
38
|
-
}), R =
|
|
36
|
+
}), R = w({
|
|
39
37
|
get: () => r.rowSelection ?? {},
|
|
40
38
|
set: (t) => p("update:row-selection", t)
|
|
41
|
-
}), g =
|
|
39
|
+
}), g = D({
|
|
42
40
|
// Use computed properties or getters for reactivity with props
|
|
43
41
|
get data() {
|
|
44
42
|
return r.data;
|
|
@@ -54,9 +52,9 @@ const le = /* @__PURE__ */ v({
|
|
|
54
52
|
manualPagination: r.manualPagination,
|
|
55
53
|
manualSorting: r.manualSorting,
|
|
56
54
|
enableRowSelection: !0,
|
|
57
|
-
onRowSelectionChange: (t) =>
|
|
58
|
-
onPaginationChange: (t) =>
|
|
59
|
-
onSortingChange: (t) =>
|
|
55
|
+
onRowSelectionChange: (t) => C(t, R),
|
|
56
|
+
onPaginationChange: (t) => C(t, S),
|
|
57
|
+
onSortingChange: (t) => C(t, k),
|
|
60
58
|
get rowCount() {
|
|
61
59
|
return r.rowCount;
|
|
62
60
|
},
|
|
@@ -74,14 +72,14 @@ const le = /* @__PURE__ */ v({
|
|
|
74
72
|
return R.value;
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
|
-
}),
|
|
75
|
+
}), h = v();
|
|
78
76
|
return P({
|
|
79
77
|
table: g
|
|
80
78
|
}), (t, A) => (n(), l(e(H), null, {
|
|
81
79
|
default: a(() => [
|
|
82
80
|
f(e(I), null, {
|
|
83
81
|
default: a(() => [
|
|
84
|
-
(n(!0), u(s, null, m(e(g).getHeaderGroups(), (c) => (n(), l(e(
|
|
82
|
+
(n(!0), u(s, null, m(e(g).getHeaderGroups(), (c) => (n(), l(e(y), {
|
|
85
83
|
key: c.id,
|
|
86
84
|
type: "head"
|
|
87
85
|
}, {
|
|
@@ -90,14 +88,14 @@ const le = /* @__PURE__ */ v({
|
|
|
90
88
|
key: o.id,
|
|
91
89
|
"col-span": o.colSpan,
|
|
92
90
|
style: V({ width: o.getSize() !== 150 ? `${o.getSize()}px` : void 0 }),
|
|
93
|
-
class:
|
|
91
|
+
class: z(e(T)(o.column.getCanSort() && "cursor-pointer select-none")),
|
|
94
92
|
onClick: (i) => {
|
|
95
93
|
var d;
|
|
96
94
|
return (d = o.column.getToggleSortingHandler()) == null ? void 0 : d(i);
|
|
97
95
|
}
|
|
98
96
|
}, {
|
|
99
97
|
default: a(() => [
|
|
100
|
-
o.isPlaceholder ?
|
|
98
|
+
o.isPlaceholder ? x("", !0) : (n(), l(e(_), {
|
|
101
99
|
key: 0,
|
|
102
100
|
render: o.column.columnDef.header,
|
|
103
101
|
props: o.getContext()
|
|
@@ -115,9 +113,9 @@ const le = /* @__PURE__ */ v({
|
|
|
115
113
|
default: a(() => {
|
|
116
114
|
var c;
|
|
117
115
|
return [
|
|
118
|
-
t.isLoading ? (n(!0), u(s, { key: 0 }, m(t.columns.length, (o, i) => (n(), l(e(
|
|
116
|
+
t.isLoading ? (n(!0), u(s, { key: 0 }, m(t.columns.length, (o, i) => (n(), l(e(y), { key: i }, {
|
|
119
117
|
default: a(() => [
|
|
120
|
-
(n(!0), u(s, null, m(e(g).getVisibleLeafColumns(), (d) => (n(), l(e(
|
|
118
|
+
(n(!0), u(s, null, m(e(g).getVisibleLeafColumns(), (d) => (n(), l(e($), {
|
|
121
119
|
key: d.id
|
|
122
120
|
}, {
|
|
123
121
|
default: a(() => [
|
|
@@ -127,32 +125,31 @@ const le = /* @__PURE__ */ v({
|
|
|
127
125
|
}, 1024))), 128))
|
|
128
126
|
]),
|
|
129
127
|
_: 2
|
|
130
|
-
}, 1024))), 128)) : (c = e(g).getRowModel().rows) != null && c.length ? (n(!0), u(s, { key: 2 }, m(e(g).getRowModel().rows, (o) => (n(), l(e(
|
|
128
|
+
}, 1024))), 128)) : (c = e(g).getRowModel().rows) != null && c.length ? (n(!0), u(s, { key: 2 }, m(e(g).getRowModel().rows, (o) => (n(), l(e(y), {
|
|
131
129
|
key: o.id,
|
|
132
130
|
type: "body"
|
|
133
131
|
}, {
|
|
134
132
|
default: a(() => [
|
|
135
|
-
(n(!0), u(s, null, m(o.getVisibleCells(), (i) => (n(), l(e(
|
|
136
|
-
key: i.id
|
|
137
|
-
class: _(t.cellClass)
|
|
133
|
+
(n(!0), u(s, null, m(o.getVisibleCells(), (i) => (n(), l(e($), {
|
|
134
|
+
key: i.id
|
|
138
135
|
}, {
|
|
139
136
|
default: a(() => [
|
|
140
|
-
f(e(
|
|
137
|
+
f(e(_), {
|
|
141
138
|
render: i.column.columnDef.cell,
|
|
142
139
|
props: i.getContext()
|
|
143
140
|
}, null, 8, ["render", "props"])
|
|
144
141
|
]),
|
|
145
142
|
_: 2
|
|
146
|
-
},
|
|
143
|
+
}, 1024))), 128))
|
|
147
144
|
]),
|
|
148
145
|
_: 2
|
|
149
146
|
}, 1024))), 128)) : (n(), u(s, { key: 1 }, [
|
|
150
|
-
e(
|
|
147
|
+
e(h).empty ? (n(), l(e(M), {
|
|
151
148
|
key: 0,
|
|
152
149
|
colspan: t.columns.length
|
|
153
150
|
}, {
|
|
154
151
|
default: a(() => [
|
|
155
|
-
|
|
152
|
+
L(t.$slots, "empty")
|
|
156
153
|
]),
|
|
157
154
|
_: 3
|
|
158
155
|
}, 8, ["colspan"])) : (n(), l(e(M), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentAutoComplete.vue.d.ts","sourceRoot":"","sources":["../../src/document-input/DocumentAutoComplete.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentAutoComplete.vue.d.ts","sourceRoot":"","sources":["../../src/document-input/DocumentAutoComplete.vue"],"names":[],"mappings":"AAqpBA,UAAU,KAAK;IACb,8BAA8B;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,+CAA+C;IAC/C,UAAU,CAAC,EAAE,GAAG,CAAA;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAA;IACjE,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,wCAAwC;IACxC,UAAU,CAAC,EAAE,GAAG,CAAA;IAChB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kDAAkD;IAClD,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,GAAG,EAAE,CAAA;IACf,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AA4ZD,iBAAS,cAAc;WAiWT,OAAO,IAA6B;;uBAhBtB,GAAG;sBACJ,GAAG;yBACA,GAAG;uBACL,GAAG;yBACD,GAAG;;;YACJ,GAAG;;;;;;EAgB/B;AA4CD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;cAh2BR,OAAO;iBAeJ,OAAO;aARX,OAAO;WAFT,OAAO,GAAG,MAAM;cAuBb,OAAO;gBAnBL,OAAO;kBAjBL,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ;4BAsCxC,OAAO;YAVvB,OAAO;mBA4BA,OAAO;cALZ,MAAM;;;kBA+zBjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -74,8 +74,7 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
74
74
|
"loading",
|
|
75
75
|
"notFoundText",
|
|
76
76
|
"loadingText",
|
|
77
|
-
"optionId"
|
|
78
|
-
"modelValue"
|
|
77
|
+
"optionId"
|
|
79
78
|
), W = ke(Q, o), s = v(""), V = v(!1), I = v(!1), E = v(!1), $ = v(null), M = v(e.modelValue);
|
|
80
79
|
function Y(t, l) {
|
|
81
80
|
if (!l) return t;
|
|
@@ -2,6 +2,8 @@ import { DropdownMenuContentProps } from 'reka-ui';
|
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
3
|
type __VLS_Props = DropdownMenuContentProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
|
+
disablePortal?: boolean;
|
|
6
|
+
positionStrategy?: 'fixed' | 'absolute';
|
|
5
7
|
};
|
|
6
8
|
declare function __VLS_template(): {
|
|
7
9
|
attrs: Partial<{}>;
|
|
@@ -9,7 +11,7 @@ declare function __VLS_template(): {
|
|
|
9
11
|
default?(_: {}): any;
|
|
10
12
|
};
|
|
11
13
|
refs: {};
|
|
12
|
-
rootEl:
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
13
15
|
};
|
|
14
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
17
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -26,7 +28,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
26
28
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
27
29
|
}>, {
|
|
28
30
|
sideOffset: number;
|
|
29
|
-
|
|
31
|
+
positionStrategy: "absolute" | "fixed";
|
|
32
|
+
disablePortal: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
35
|
export default _default;
|
|
32
36
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../src/dropdown-menu/DropdownMenuContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../src/dropdown-menu/DropdownMenuContent.vue"],"names":[],"mappings":"AAgDA,OAAO,KAAK,EAA4B,wBAAwB,EAAE,MAAM,SAAS,CAAA;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAKzC,KAAK,WAAW,GAAG,wBAAwB,GAAG;IACxC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;CACxC,CAAC;AAyBN,iBAAS,cAAc;WA4DT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;mBA3GC,OAAO;wFAoH3B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { reactiveOmit as
|
|
3
|
-
import { useForwardPropsEmits as
|
|
1
|
+
import { defineComponent as p, createElementBlock as u, openBlock as c, createVNode as a, unref as e, withCtx as n, mergeProps as m, renderSlot as f } from "vue";
|
|
2
|
+
import { reactiveOmit as y } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as g, DropdownMenuPortal as w, DropdownMenuContent as h } from "reka-ui";
|
|
4
4
|
import { cn as B } from "../lib/utils.js";
|
|
5
|
-
const
|
|
5
|
+
const b = { class: "relative" }, D = /* @__PURE__ */ p({
|
|
6
6
|
__name: "DropdownMenuContent",
|
|
7
7
|
props: {
|
|
8
8
|
forceMount: { type: Boolean },
|
|
@@ -19,36 +19,39 @@ const C = /* @__PURE__ */ l({
|
|
|
19
19
|
arrowPadding: {},
|
|
20
20
|
sticky: {},
|
|
21
21
|
hideWhenDetached: { type: Boolean },
|
|
22
|
-
positionStrategy: {},
|
|
22
|
+
positionStrategy: { default: "absolute" },
|
|
23
23
|
updatePositionStrategy: {},
|
|
24
24
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
25
25
|
prioritizePosition: { type: Boolean },
|
|
26
26
|
reference: {},
|
|
27
27
|
asChild: { type: Boolean },
|
|
28
28
|
as: {},
|
|
29
|
-
class: {}
|
|
29
|
+
class: {},
|
|
30
|
+
disablePortal: { type: Boolean, default: !0 }
|
|
30
31
|
},
|
|
31
32
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
setup(i, { emit: s }) {
|
|
34
|
+
const o = i, d = s, r = y(o, "class"), l = g(r, d);
|
|
35
|
+
return (t, v) => (c(), u("div", b, [
|
|
36
|
+
a(e(w), { disabled: !0 }, {
|
|
37
|
+
default: n(() => [
|
|
38
|
+
a(e(h), m({ "data-slot": "dropdown-menu-content" }, { ...e(l), ...t.$attrs, strategy: "absolute" }, {
|
|
39
|
+
class: e(B)(
|
|
40
|
+
"border-input bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md relative",
|
|
41
|
+
o.class
|
|
42
|
+
)
|
|
43
|
+
}), {
|
|
44
|
+
default: n(() => [
|
|
45
|
+
f(t.$slots, "default")
|
|
46
|
+
]),
|
|
47
|
+
_: 3
|
|
48
|
+
}, 16, ["class"])
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
})
|
|
52
|
+
]));
|
|
50
53
|
}
|
|
51
54
|
});
|
|
52
55
|
export {
|
|
53
|
-
|
|
56
|
+
D as default
|
|
54
57
|
};
|