@glimstone/vue 4.9.1 → 5.0.0
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/Accordion-D37jhS5C.js +36 -0
- package/dist/Accordion.js +1 -1
- package/dist/AngleSlider.js +44 -31
- package/dist/AngleSlider.vue.d.ts +1 -1
- package/dist/Avatar.js +9 -8
- package/dist/Badge-C9DRRspu.js +79 -0
- package/dist/Badge.vue.d.ts +2 -5
- package/dist/Button-DVUuFYk0.js +224 -0
- package/dist/Button.vue.d.ts +1 -1
- package/dist/Card.vue.d.ts +2 -0
- package/dist/Carousel.js +27 -27
- package/dist/Chart.vue.d.ts +22 -0
- package/dist/ChartLegend.vue.d.ts +7 -0
- package/dist/Collapsible.js +13 -13
- package/dist/ColorPicker.vue.d.ts +3 -0
- package/dist/Combobox.js +39 -35
- package/dist/ConnectionRow.vue.d.ts +2 -0
- package/dist/ContextMenu.vue.d.ts +3 -0
- package/dist/DatePicker.js +64 -62
- package/dist/FieldErrorLine.vue.d.ts +7 -0
- package/dist/FileUpload.js +43 -37
- package/dist/FileUpload.vue.d.ts +2 -0
- package/dist/FloatingPanel.js +31 -31
- package/dist/HoverCard.js +50 -25
- package/dist/HoverCard.vue.d.ts +9 -1
- package/dist/{IconButton-D5YOChZI.js → IconButton-DGy1eP0I.js} +12 -12
- package/dist/IconTipButton-B8kcqxcE.js +59 -0
- package/dist/IconTipButton.vue.d.ts +4 -1
- package/dist/InfoComponentsCard.vue.d.ts +1 -1
- package/dist/ListRow.vue.d.ts +12 -1
- package/dist/ListTable.vue.d.ts +10 -0
- package/dist/Marquee.js +13 -13
- package/dist/Meter.vue.d.ts +5 -0
- package/dist/MultiSelect.js +113 -0
- package/dist/MultiSelect.vue.d.ts +28 -0
- package/dist/Pagination.js +71 -38
- package/dist/PinInput.js +32 -28
- package/dist/PinInput.vue.d.ts +2 -2
- package/dist/Rating.js +35 -29
- package/dist/ReadmeButton.vue.d.ts +1 -1
- package/dist/RevealEye.vue.d.ts +6 -0
- package/dist/ScrollArea.js +5 -5
- package/dist/SearchHit-Ch6ef2dk.js +19 -0
- package/dist/SearchHit.vue.d.ts +7 -0
- package/dist/Select-BiQGVqg_.js +469 -0
- package/dist/Select.js +1 -1
- package/dist/Selector.vue.d.ts +4 -3
- package/dist/SettingsNav.vue.d.ts +38 -0
- package/dist/SignInTile.vue.d.ts +1 -1
- package/dist/SignaturePad.js +23 -23
- package/dist/SkeletonRow.vue.d.ts +6 -0
- package/dist/Slider.js +21 -18
- package/dist/Sparkline.vue.d.ts +15 -0
- package/dist/Splitter.js +8 -8
- package/dist/StatusSummary.vue.d.ts +15 -0
- package/dist/Steps.js +33 -33
- package/dist/SubCard.vue.d.ts +2 -2
- package/dist/TagsInput.js +33 -33
- package/dist/TimeDial.vue.d.ts +18 -0
- package/dist/TimePicker.vue.d.ts +22 -0
- package/dist/TimeRangePicker.vue.d.ts +20 -0
- package/dist/TimeSegment.vue.d.ts +11 -0
- package/dist/{DropdownListbox.vue.d.ts → TimeShell.vue.d.ts} +8 -11
- package/dist/Timer.js +33 -30
- package/dist/TipWrap-BZAveG4U.js +62 -0
- package/dist/ToastCard.vue.d.ts +2 -0
- package/dist/ToastViewport.vue.d.ts +1 -8
- package/dist/Tour.js +51 -44
- package/dist/Window.vue.d.ts +3 -1
- package/dist/engines.d.ts +7 -1
- package/dist/entries/multiselect.d.ts +2 -0
- package/dist/{glyphs-CS3VBARx.js → glyphs-DncaPYo_.js} +2 -2
- package/dist/glyphs.d.ts +2 -0
- package/dist/index.d.ts +15 -7
- package/dist/index.js +4128 -3447
- package/dist/settingsNavItem.d.ts +16 -0
- package/dist/tipBubble.d.ts +12 -1
- package/dist/windowParts.d.ts +4 -1
- package/package.json +6 -2
- package/dist/AboutCard.vue.d.ts +0 -43
- package/dist/Accordion-JaQ-i8V1.js +0 -36
- package/dist/Badge-BhK0gMse.js +0 -81
- package/dist/Button-CZHmbNOm.js +0 -203
- package/dist/IconTipButton-BLtrZfgN.js +0 -56
- package/dist/Select-DBABOjwc.js +0 -458
- package/dist/TipWrap-5Nw7Yj0O.js +0 -51
- package/dist/deprecatedEvents.d.ts +0 -8
package/dist/Pagination.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { Fragment as r, computed as i, createElementBlock as a, createVNode as o, defineComponent as s, mergeModels as c, mergeProps as l, openBlock as u, renderList as d, toDisplayString as f, unref as p, useId as m, useModel as h } from "vue";
|
|
4
|
-
import { PAGINATION_TEXT as g, pageDir as _ } from "@glimstone/core";
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, mergeModels as o, mergeProps as s, onBeforeUnmount as c, onMounted as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m, useId as h, useModel as g } from "vue";
|
|
2
|
+
import * as _ from "@zag-js/pagination";
|
|
5
3
|
import { normalizeProps as v, useMachine as y } from "@zag-js/vue";
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { PAGINATION_TEXT as b, pageDir as x, watchPaginationFit as S } from "@glimstone/core";
|
|
5
|
+
import { t as C } from "./Button-DVUuFYk0.js";
|
|
6
|
+
import { f as w, t as T } from "./glyphs-DncaPYo_.js";
|
|
7
|
+
// src/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var E = { class: "glim-page-status glim-num" }, D = { "aria-hidden": "true" }, O = { class: "glim-sr-only" }, k = /* @__PURE__ */ a({
|
|
9
9
|
__name: "Pagination",
|
|
10
|
-
props: /*@__PURE__*/
|
|
10
|
+
props: /*@__PURE__*/ o({
|
|
11
11
|
count: {},
|
|
12
12
|
pageSize: { default: 10 },
|
|
13
13
|
siblingCount: { default: 1 },
|
|
@@ -17,50 +17,83 @@ var x = /* @__PURE__ */ s({
|
|
|
17
17
|
pageModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:page"],
|
|
20
|
-
setup(
|
|
21
|
-
let
|
|
22
|
-
...
|
|
23
|
-
...
|
|
24
|
-
})),
|
|
25
|
-
id:
|
|
26
|
-
dir:
|
|
27
|
-
count:
|
|
28
|
-
pageSize:
|
|
29
|
-
siblingCount:
|
|
30
|
-
page:
|
|
31
|
-
onPageChange: (e) =>
|
|
20
|
+
setup(a) {
|
|
21
|
+
let o = a, k = g(a, "page"), A = t(() => ({
|
|
22
|
+
...b,
|
|
23
|
+
...o.text
|
|
24
|
+
})), j = h(), M = y(_.machine, t(() => ({
|
|
25
|
+
id: j,
|
|
26
|
+
dir: x(),
|
|
27
|
+
count: o.count,
|
|
28
|
+
pageSize: o.pageSize,
|
|
29
|
+
siblingCount: o.siblingCount,
|
|
30
|
+
page: k.value ?? 1,
|
|
31
|
+
onPageChange: (e) => k.value = e.page,
|
|
32
32
|
translations: {
|
|
33
|
-
rootLabel:
|
|
34
|
-
itemLabel: (e) =>
|
|
33
|
+
rootLabel: A.value.label,
|
|
34
|
+
itemLabel: (e) => A.value.page(e.page, e.totalPages)
|
|
35
35
|
}
|
|
36
|
-
}))),
|
|
37
|
-
return (
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
}))), N = t(() => _.connect(M, v)), P = d(), F = () => {};
|
|
37
|
+
return l(() => F = S(P.value)), c(() => F()), (t, a) => (u(), n("nav", s({
|
|
38
|
+
ref_key: "nav",
|
|
39
|
+
ref: P,
|
|
40
|
+
"data-glim": "Pagination"
|
|
41
|
+
}, N.value.getRootProps(), { class: "glim-pagination" }), [
|
|
42
|
+
i(C, {
|
|
43
|
+
class: "glim-page-step",
|
|
44
|
+
label: A.value.previous,
|
|
40
45
|
"label-key": null,
|
|
41
|
-
glyph:
|
|
46
|
+
glyph: m(T),
|
|
42
47
|
variant: "icon",
|
|
43
|
-
disabled:
|
|
44
|
-
onClick:
|
|
48
|
+
disabled: N.value.previousPage === null,
|
|
49
|
+
onClick: a[0] ||= (e) => N.value.goToPrevPage()
|
|
45
50
|
}, null, 8, [
|
|
46
51
|
"label",
|
|
47
52
|
"glyph",
|
|
48
53
|
"disabled"
|
|
49
54
|
]),
|
|
50
|
-
(
|
|
55
|
+
i(C, {
|
|
56
|
+
class: "glim-page-step-short",
|
|
57
|
+
label: A.value.previous,
|
|
58
|
+
"label-key": null,
|
|
59
|
+
glyph: m(T),
|
|
60
|
+
compact: "",
|
|
61
|
+
disabled: N.value.previousPage === null,
|
|
62
|
+
onClick: a[1] ||= (e) => N.value.goToPrevPage()
|
|
63
|
+
}, null, 8, [
|
|
64
|
+
"label",
|
|
65
|
+
"glyph",
|
|
66
|
+
"disabled"
|
|
67
|
+
]),
|
|
68
|
+
(u(!0), n(e, null, f(N.value.pages, (t, r) => (u(), n(e, { key: t.type === "page" ? t.value : `gap-${r}` }, [t.type === "page" ? (u(), n("button", s({
|
|
51
69
|
key: 0,
|
|
52
70
|
ref_for: !0
|
|
53
|
-
},
|
|
71
|
+
}, N.value.getItemProps(t), { class: "glim-page glim-num" }), p(t.value), 17)) : (u(), n("span", s({
|
|
54
72
|
key: 1,
|
|
55
73
|
ref_for: !0
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
74
|
+
}, N.value.getEllipsisProps({ index: r }), { class: "glim-page-gap" }), "…", 16))], 64))), 128)),
|
|
75
|
+
r("span", E, [r("span", D, p(A.value.status(N.value.page, N.value.totalPages)), 1), r("span", O, p(A.value.page(N.value.page, N.value.totalPages)), 1)]),
|
|
76
|
+
i(C, {
|
|
77
|
+
class: "glim-page-step",
|
|
78
|
+
label: A.value.next,
|
|
59
79
|
"label-key": null,
|
|
60
|
-
glyph:
|
|
80
|
+
glyph: m(w),
|
|
61
81
|
variant: "icon",
|
|
62
|
-
disabled:
|
|
63
|
-
onClick:
|
|
82
|
+
disabled: N.value.nextPage === null,
|
|
83
|
+
onClick: a[2] ||= (e) => N.value.goToNextPage()
|
|
84
|
+
}, null, 8, [
|
|
85
|
+
"label",
|
|
86
|
+
"glyph",
|
|
87
|
+
"disabled"
|
|
88
|
+
]),
|
|
89
|
+
i(C, {
|
|
90
|
+
class: "glim-page-step-short",
|
|
91
|
+
label: A.value.next,
|
|
92
|
+
"label-key": null,
|
|
93
|
+
glyph: m(w),
|
|
94
|
+
compact: "",
|
|
95
|
+
disabled: N.value.nextPage === null,
|
|
96
|
+
onClick: a[3] ||= (e) => N.value.goToNextPage()
|
|
64
97
|
}, null, 8, [
|
|
65
98
|
"label",
|
|
66
99
|
"glyph",
|
|
@@ -69,4 +102,4 @@ var x = /* @__PURE__ */ s({
|
|
|
69
102
|
], 16));
|
|
70
103
|
}
|
|
71
104
|
});
|
|
72
|
-
export {
|
|
105
|
+
export { k as Pagination };
|
package/dist/PinInput.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
// src/PinInput.vue
|
|
7
|
-
var
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, guardReactiveProps as o, mergeModels as s, mergeProps as c, normalizeProps as l, openBlock as u, renderList as d, toDisplayString as f, unref as p, useId as m, useModel as h } from "vue";
|
|
2
|
+
import * as g from "@zag-js/pin-input";
|
|
3
|
+
import { normalizeProps as _, useMachine as v } from "@zag-js/vue";
|
|
4
|
+
import { PIN_INPUT_TEXT as y, pinCells as b, pinGroupStarts as x } from "@glimstone/core";
|
|
5
|
+
import { r as S } from "./fieldName-DBygJJfe.js";
|
|
6
|
+
// src/PinInput.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var C = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "glim-pin-sep",
|
|
10
|
+
"aria-hidden": "true"
|
|
11
|
+
}, w = /* @__PURE__ */ a({
|
|
8
12
|
__name: "PinInput",
|
|
9
13
|
props: /*@__PURE__*/ s({
|
|
10
14
|
label: {},
|
|
@@ -33,29 +37,29 @@ var x = /* @__PURE__ */ a({
|
|
|
33
37
|
}),
|
|
34
38
|
emits: /*@__PURE__*/ s(["complete"], ["update:modelValue"]),
|
|
35
39
|
setup(a, { emit: s }) {
|
|
36
|
-
let
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
})),
|
|
40
|
-
id:
|
|
40
|
+
let w = a, T = h(a, "modelValue"), E = s, D = S(() => w.label), O = t(() => ({
|
|
41
|
+
...y,
|
|
42
|
+
...w.text
|
|
43
|
+
})), k = m(), A = v(g.machine, t(() => ({
|
|
44
|
+
id: k,
|
|
41
45
|
dir: "ltr",
|
|
42
|
-
count:
|
|
43
|
-
value:
|
|
44
|
-
type:
|
|
45
|
-
mask:
|
|
46
|
-
otp:
|
|
47
|
-
invalid:
|
|
48
|
-
disabled:
|
|
46
|
+
count: w.length,
|
|
47
|
+
value: b(T.value, w.length),
|
|
48
|
+
type: w.type,
|
|
49
|
+
mask: w.mask,
|
|
50
|
+
otp: w.otp,
|
|
51
|
+
invalid: w.invalid,
|
|
52
|
+
disabled: w.disabled,
|
|
49
53
|
placeholder: "",
|
|
50
|
-
onValueChange: (e) =>
|
|
51
|
-
onValueComplete: (e) =>
|
|
52
|
-
translations: { inputLabel: (e, t) =>
|
|
53
|
-
}))),
|
|
54
|
-
return (
|
|
55
|
-
i("label", c(
|
|
56
|
-
i("div", c(
|
|
57
|
-
i("input", l(o(
|
|
54
|
+
onValueChange: (e) => T.value = e.valueAsString,
|
|
55
|
+
onValueComplete: (e) => E("complete", e.valueAsString),
|
|
56
|
+
translations: { inputLabel: (e, t) => O.value.cell(e + 1, t) }
|
|
57
|
+
}))), j = t(() => g.connect(A, _));
|
|
58
|
+
return (t, s) => (u(), r("div", c({ "data-glim": "PinInput" }, j.value.getRootProps(), { class: "glim-pin" }), [
|
|
59
|
+
i("label", c(j.value.getLabelProps(), { class: a.label === void 0 ? "glim-sr-only" : "glim-field-label" }), f(p(D)), 17),
|
|
60
|
+
i("div", c(j.value.getControlProps(), { class: "glim-pin-control" }), [(u(!0), r(e, null, d(j.value.items, (t) => (u(), r(e, { key: t }, [p(x)(t, a.length) ? (u(), r("span", C)) : n("", !0), i("input", c({ ref_for: !0 }, j.value.getInputProps({ index: t }), { class: "glim-input glim-pin-cell glim-num" }), null, 16)], 64))), 128))], 16),
|
|
61
|
+
i("input", l(o(j.value.getHiddenInputProps())), null, 16)
|
|
58
62
|
], 16));
|
|
59
63
|
}
|
|
60
64
|
});
|
|
61
|
-
export {
|
|
65
|
+
export { w as PinInput };
|
package/dist/PinInput.vue.d.ts
CHANGED
|
@@ -23,11 +23,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
23
23
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
24
|
onComplete?: ((value: string) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
+
invalid: boolean;
|
|
26
27
|
length: number;
|
|
28
|
+
type: "numeric" | "alphabetic" | "alphanumeric";
|
|
27
29
|
disabled: boolean;
|
|
28
30
|
mask: boolean;
|
|
29
|
-
invalid: boolean;
|
|
30
|
-
type: "numeric" | "alphanumeric" | "alphabetic";
|
|
31
31
|
otp: boolean;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
package/dist/Rating.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { RATING_TEXT as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, guardReactiveProps as o, mergeModels as s, mergeProps as c, normalizeProps as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m, useId as h, useModel as g } from "vue";
|
|
2
|
+
import * as _ from "@zag-js/rating-group";
|
|
3
|
+
import { normalizeProps as v, useMachine as y } from "@zag-js/vue";
|
|
4
|
+
import { RATING_TEXT as b, pageDir as x } from "@glimstone/core";
|
|
5
|
+
import { r as S } from "./fieldName-DBygJJfe.js";
|
|
6
|
+
import { y as C } from "./glyphs-DncaPYo_.js";
|
|
7
7
|
// src/Rating.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
8
|
+
var w = ["data-pop"], T = {
|
|
9
9
|
class: "glim-rating-fill",
|
|
10
10
|
"aria-hidden": "true"
|
|
11
|
-
},
|
|
11
|
+
}, E = /* @__PURE__ */ a({
|
|
12
12
|
__name: "Rating",
|
|
13
|
-
props: /*@__PURE__*/
|
|
13
|
+
props: /*@__PURE__*/ s({
|
|
14
14
|
label: {},
|
|
15
15
|
count: { default: 5 },
|
|
16
16
|
allowHalf: {
|
|
@@ -31,26 +31,32 @@ var C = {
|
|
|
31
31
|
modelModifiers: {}
|
|
32
32
|
}),
|
|
33
33
|
emits: ["update:modelValue"],
|
|
34
|
-
setup(
|
|
35
|
-
let
|
|
36
|
-
...
|
|
37
|
-
...
|
|
38
|
-
})),
|
|
39
|
-
id:
|
|
40
|
-
dir:
|
|
41
|
-
value:
|
|
42
|
-
count:
|
|
43
|
-
allowHalf:
|
|
44
|
-
readOnly:
|
|
45
|
-
disabled:
|
|
46
|
-
onValueChange: (e) =>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
setup(a) {
|
|
35
|
+
let s = a, E = g(a, "modelValue"), D = S(() => s.label), O = t(() => ({
|
|
36
|
+
...b,
|
|
37
|
+
...s.text
|
|
38
|
+
})), k = d(0), A = h(), j = y(_.machine, t(() => ({
|
|
39
|
+
id: A,
|
|
40
|
+
dir: x(),
|
|
41
|
+
value: E.value,
|
|
42
|
+
count: s.count,
|
|
43
|
+
allowHalf: s.allowHalf,
|
|
44
|
+
readOnly: s.readOnly,
|
|
45
|
+
disabled: s.disabled,
|
|
46
|
+
onValueChange: (e) => {
|
|
47
|
+
k.value++, E.value = e.value;
|
|
48
|
+
},
|
|
49
|
+
translations: { ratingValueText: (e) => O.value.star(e, s.count) }
|
|
50
|
+
}))), M = t(() => _.connect(j, v));
|
|
51
|
+
return (t, s) => (u(), n("div", c({ "data-glim": "Rating" }, M.value.getRootProps(), { class: "glim-rating" }), [
|
|
52
|
+
r("label", c(M.value.getLabelProps(), { class: a.label === void 0 ? "glim-sr-only" : "glim-field-label" }), p(m(D)), 17),
|
|
53
|
+
r("div", c(M.value.getControlProps(), { class: "glim-rating-control" }), [(u(!0), n(e, null, f(M.value.items, (e) => (u(), n("span", c({ key: e }, { ref_for: !0 }, M.value.getItemProps({ index: e }), {
|
|
54
|
+
"data-pop": k.value > 0 && e === Math.ceil(M.value.value) ? k.value % 2 ? "odd" : "even" : void 0,
|
|
55
|
+
style: { "--i": e - 1 },
|
|
56
|
+
class: "glim-rating-star"
|
|
57
|
+
}), [i(m(C)), r("span", T, [i(m(C))])], 16, w))), 128))], 16),
|
|
58
|
+
r("input", l(o(M.value.getHiddenInputProps())), null, 16)
|
|
53
59
|
], 16));
|
|
54
60
|
}
|
|
55
61
|
});
|
|
56
|
-
export {
|
|
62
|
+
export { E as Rating };
|
|
@@ -25,8 +25,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
26
|
onLinkClick?: ((e: MouseEvent) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
note: boolean;
|
|
29
28
|
current: boolean;
|
|
29
|
+
note: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
32
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
struck: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
package/dist/ScrollArea.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as e, createElementBlock as t, createElementVNode as n, defineComponent as r, mergeProps as i, openBlock as a, renderSlot as o, useId as s } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import * as c from "@zag-js/scroll-area";
|
|
3
3
|
import { normalizeProps as l, useMachine as u } from "@zag-js/vue";
|
|
4
|
-
import
|
|
4
|
+
import { pageDir as d } from "@glimstone/core";
|
|
5
5
|
// src/ScrollArea.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var f = ["aria-label"], p = /* @__PURE__ */ r({
|
|
7
7
|
__name: "ScrollArea",
|
|
@@ -10,10 +10,10 @@ var f = ["aria-label"], p = /* @__PURE__ */ r({
|
|
|
10
10
|
maxHeight: {}
|
|
11
11
|
},
|
|
12
12
|
setup(r) {
|
|
13
|
-
let p = s(), m = u(
|
|
13
|
+
let p = s(), m = u(c.machine, {
|
|
14
14
|
id: p,
|
|
15
|
-
dir:
|
|
16
|
-
}), h = e(() =>
|
|
15
|
+
dir: d()
|
|
16
|
+
}), h = e(() => c.connect(m, l)), g = e(() => h.value.getViewportProps());
|
|
17
17
|
return (e, s) => (a(), t("div", i({ "data-glim": "ScrollArea" }, h.value.getRootProps(), { class: "glim-scroll" }), [
|
|
18
18
|
n("div", i(g.value, {
|
|
19
19
|
role: "region",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, openBlock as o, toDisplayString as s } from "vue";
|
|
2
|
+
import { searchParts as c } from "@glimstone/core";
|
|
3
|
+
// src/SearchHit.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = { class: "glim-combobox-hit" }, u = /* @__PURE__ */ a({
|
|
5
|
+
__name: "SearchHit",
|
|
6
|
+
props: {
|
|
7
|
+
label: {},
|
|
8
|
+
query: {}
|
|
9
|
+
},
|
|
10
|
+
setup(a) {
|
|
11
|
+
let u = a, d = t(() => c(u.label, u.query));
|
|
12
|
+
return (t, c) => d.value ? (o(), n(e, { key: 0 }, [
|
|
13
|
+
i(s(d.value.before), 1),
|
|
14
|
+
r("span", l, s(d.value.hit), 1),
|
|
15
|
+
i(s(d.value.after), 1)
|
|
16
|
+
], 64)) : (o(), n(e, { key: 1 }, [i(s(a.label), 1)], 64));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export { u as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
query: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|