@agrotools1/at-components 2.0.18 → 2.0.19
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/v2.0.19.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.19.d.ts.map +1 -0
- package/dist/combobox/ComboboxInput.vue.d.ts.map +1 -1
- package/dist/combobox/ComboboxInput.vue.js +33 -33
- package/package.json +1 -1
- package/dist/changelog/versions/components/v2.0.18.d.ts +0 -4
- package/dist/changelog/versions/components/v2.0.18.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2.0.19.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.19.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,WAcd,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxInput.vue.d.ts","sourceRoot":"","sources":["../../src/combobox/ComboboxInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComboboxInput.vue.d.ts","sourceRoot":"","sources":["../../src/combobox/ComboboxInput.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAuC,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AASzC,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAClC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;AAqCN,iBAAS,cAAc;WA8GT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;qBA7KG,OAAO;6EAqL7B,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,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as x, computed as
|
|
2
|
-
import { reactiveOmit as
|
|
3
|
-
import { injectComboboxRootContext as
|
|
4
|
-
import { cn as
|
|
1
|
+
import { defineComponent as x, computed as w, createElementBlock as s, openBlock as a, normalizeClass as p, unref as t, createBlock as C, createCommentVNode as l, createVNode as i, mergeProps as B, withCtx as k, renderSlot as V } from "vue";
|
|
2
|
+
import { reactiveOmit as I } from "@vueuse/core";
|
|
3
|
+
import { injectComboboxRootContext as $, useForwardPropsEmits as z, ComboboxInput as P } from "reka-ui";
|
|
4
|
+
import { cn as m } from "../lib/utils.js";
|
|
5
5
|
import A from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/search.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
6
|
+
import D from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
|
|
7
|
+
import E from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js";
|
|
8
|
+
const G = /* @__PURE__ */ x({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "ComboboxInput",
|
|
11
11
|
props: {
|
|
@@ -20,67 +20,67 @@ const _ = /* @__PURE__ */ x({
|
|
|
20
20
|
withClearButton: { type: Boolean, default: !0 }
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
|
-
setup(c, { emit:
|
|
24
|
-
const
|
|
23
|
+
setup(c, { emit: f }) {
|
|
24
|
+
const n = c, b = f, o = $(), h = I(n, "class", "withIcon"), g = z(h, b), v = w(() => {
|
|
25
25
|
const e = o.modelValue.value;
|
|
26
26
|
return Array.isArray(e) ? e.length > 0 : e != null && e !== "";
|
|
27
27
|
});
|
|
28
|
-
function
|
|
28
|
+
function y(e) {
|
|
29
29
|
e.stopPropagation(), e.preventDefault();
|
|
30
30
|
const r = o.multiple.value ? [] : void 0;
|
|
31
31
|
o.modelValue.value = r;
|
|
32
32
|
}
|
|
33
33
|
return (e, r) => {
|
|
34
|
-
var u;
|
|
35
|
-
return
|
|
34
|
+
var u, d;
|
|
35
|
+
return a(), s("div", {
|
|
36
36
|
"data-slot": "command-input-wrapper",
|
|
37
|
-
class:
|
|
38
|
-
t(
|
|
37
|
+
class: p(
|
|
38
|
+
t(m)(
|
|
39
39
|
"selection:bg-primary selection:text-primary-foreground !border-input flex h-10 w-full items-center gap-3 rounded-xl border bg-transparent p-2.5 shadow-xs transition-[color,box-shadow]",
|
|
40
|
-
"hover:ring-ring/24 hover:ring-[2px]
|
|
40
|
+
(u = t(o).disabled) != null && u.value || n.disabled || e.$attrs.disabled !== void 0 && e.$attrs.disabled !== !1 ? "border-neutral-200 bg-gray-100" : "hover:ring-ring/24 hover:ring-[2px]",
|
|
41
41
|
"focus-within:ring-ring/24 focus-within:border-none focus-within:ring-[2px]",
|
|
42
42
|
"aria-invalid:ring-destructive/24 aria-invalid:border-destructive"
|
|
43
43
|
)
|
|
44
44
|
)
|
|
45
45
|
}, [
|
|
46
|
-
e.withIcon ? (
|
|
46
|
+
e.withIcon ? (a(), C(t(A), {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "size-4 shrink-0 opacity-50"
|
|
49
|
-
})) :
|
|
50
|
-
|
|
49
|
+
})) : l("", !0),
|
|
50
|
+
i(t(P), B({
|
|
51
51
|
"data-slot": "command-input",
|
|
52
|
-
class: t(
|
|
53
|
-
"placeholder:text-muted-foreground flex h-full w-full bg-transparent text-sm text-gray-800 outline-hidden disabled:
|
|
54
|
-
|
|
52
|
+
class: t(m)(
|
|
53
|
+
"placeholder:text-muted-foreground flex h-full w-full bg-transparent text-sm text-gray-800 outline-hidden disabled:opacity-50 md:text-sm",
|
|
54
|
+
n.class
|
|
55
55
|
)
|
|
56
|
-
}, { ...e.$attrs, ...t(
|
|
57
|
-
default:
|
|
58
|
-
|
|
56
|
+
}, { ...e.$attrs, ...t(g) }), {
|
|
57
|
+
default: k(() => [
|
|
58
|
+
V(e.$slots, "default")
|
|
59
59
|
]),
|
|
60
60
|
_: 3
|
|
61
61
|
}, 16, ["class"]),
|
|
62
|
-
e.withClearButton &&
|
|
62
|
+
e.withClearButton && v.value ? (a(), s("button", {
|
|
63
63
|
key: 1,
|
|
64
64
|
type: "button",
|
|
65
65
|
class: "text-muted-foreground hover:text-foreground cursor-pointer transition-colors",
|
|
66
|
-
onClick:
|
|
66
|
+
onClick: y
|
|
67
67
|
}, [
|
|
68
|
-
|
|
69
|
-
])) :
|
|
70
|
-
(
|
|
68
|
+
i(t(D), { class: "size-4" })
|
|
69
|
+
])) : l("", !0),
|
|
70
|
+
(d = t(o).disabled) != null && d.value ? l("", !0) : (a(), s("button", {
|
|
71
71
|
key: 2,
|
|
72
72
|
type: "button",
|
|
73
|
-
class:
|
|
73
|
+
class: p(["text-muted-foreground hover:text-foreground cursor-pointer transition-transform", {
|
|
74
74
|
"rotate-180": t(o).open.value
|
|
75
75
|
}]),
|
|
76
|
-
onClick: r[0] || (r[0] = (
|
|
76
|
+
onClick: r[0] || (r[0] = (F) => t(o).onOpenChange(!t(o).open.value))
|
|
77
77
|
}, [
|
|
78
|
-
|
|
78
|
+
i(t(E), { class: "size-4" })
|
|
79
79
|
], 2))
|
|
80
80
|
], 2);
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
G as default
|
|
86
86
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v2.0.18.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.18.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,WAcd,CAAA;AAED,eAAe,OAAO,CAAA"}
|