@bridge-ui/vue 0.1.1 → 0.3.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/ai/skills/bridge-ui-components/SKILL.md +4 -1
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +1 -1
- package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +135 -109
- package/dist/Components/CalendarRange/calendarRange.types.d.ts +17 -5
- package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +4 -2
- package/dist/Components/CalendarRange/composables/useCalendarRange.js +85 -86
- package/dist/Components/ColorField/composables/useColorField.d.ts +2 -1
- package/dist/Components/DataTable/DataTable.js +5 -0
- package/dist/Components/DataTable/DataTable.vue.d.ts +43 -0
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +382 -0
- package/dist/Components/DataTable/DataTableCellContent.js +5 -0
- package/dist/Components/DataTable/DataTableCellContent.vue.d.ts +23 -0
- package/dist/Components/DataTable/DataTableCellContent.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/Components/DataTable/DataTableColumnsMenu.js +5 -0
- package/dist/Components/DataTable/DataTableColumnsMenu.vue.d.ts +11 -0
- package/dist/Components/DataTable/DataTableColumnsMenu.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/Components/DataTable/DataTableFilterMenu.js +5 -0
- package/dist/Components/DataTable/DataTableFilterMenu.vue.d.ts +17 -0
- package/dist/Components/DataTable/DataTableFilterMenu.vue_vue_type_script_setup_true_lang.js +132 -0
- package/dist/Components/DataTable/DataTableFilterOptions.js +5 -0
- package/dist/Components/DataTable/DataTableFilterOptions.vue.d.ts +14 -0
- package/dist/Components/DataTable/DataTableFilterOptions.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/Components/DataTable/DataTableSearch.js +5 -0
- package/dist/Components/DataTable/DataTableSearch.vue.d.ts +12 -0
- package/dist/Components/DataTable/DataTableSearch.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/DataTable/DataTableSelection.js +5 -0
- package/dist/Components/DataTable/DataTableSelection.vue.d.ts +20 -0
- package/dist/Components/DataTable/DataTableSelection.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/Components/DataTable/DataTableSortButton.js +5 -0
- package/dist/Components/DataTable/DataTableSortButton.vue.d.ts +17 -0
- package/dist/Components/DataTable/DataTableSortButton.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/Components/DataTable/DataTableToolbarButton.js +5 -0
- package/dist/Components/DataTable/DataTableToolbarButton.vue.d.ts +13 -0
- package/dist/Components/DataTable/DataTableToolbarButton.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/Components/DataTable/composables/useDataTable.d.ts +557 -0
- package/dist/Components/DataTable/composables/useDataTable.js +479 -0
- package/dist/Components/DataTable/dataTable.types.d.ts +480 -0
- package/dist/Components/DataTable/index.d.ts +3 -0
- package/dist/Components/DataTable/index.js +3 -0
- package/dist/Components/DateField/composables/useDateField.d.ts +2 -1
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +2 -1
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +2 -1
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +2 -1
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +1 -6
- package/dist/Components/Drawer/composables/useDrawer.js +1 -1
- package/dist/Components/FieldOverlay/FieldOverlay.vue_vue_type_script_setup_true_lang.js +35 -35
- package/dist/Components/FieldOverlay/composables/useFieldOverlay.d.ts +1 -0
- package/dist/Components/FieldOverlay/composables/useFieldOverlay.js +21 -19
- package/dist/Components/FieldOverlay/fieldOverlay.types.d.ts +11 -3
- package/dist/Components/FormField/composables/useFormField.d.ts +1 -1
- package/dist/Components/Listbox/composables/useListbox.js +1 -1
- package/dist/Components/Menu/Menu.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Menu/composables/useMenu.d.ts +1 -1
- package/dist/Components/Menu/composables/useMenu.js +7 -3
- package/dist/Components/Menu/menu.types.d.ts +6 -0
- package/dist/Components/Modal/composables/useModal.js +1 -1
- package/dist/Components/NumberField/composables/useNumberField.d.ts +1 -1
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +1 -1
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/Radio/composables/useRadio.js +57 -54
- package/dist/Components/Select/composables/useSelect.d.ts +1 -1
- package/dist/Components/Slider/composables/useSlider.d.ts +2 -2
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +1 -1
- package/dist/Components/Table/Table.js +5 -0
- package/dist/Components/Table/Table.vue.d.ts +16 -0
- package/dist/Components/Table/Table.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/Components/Table/TableBody.js +5 -0
- package/dist/Components/Table/TableBody.vue.d.ts +11 -0
- package/dist/Components/Table/TableBody.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/Table/TableCaption.js +5 -0
- package/dist/Components/Table/TableCaption.vue.d.ts +11 -0
- package/dist/Components/Table/TableCaption.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/Table/TableCell.js +5 -0
- package/dist/Components/Table/TableCell.vue.d.ts +11 -0
- package/dist/Components/Table/TableCell.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/Components/Table/TableFooter.js +5 -0
- package/dist/Components/Table/TableFooter.vue.d.ts +11 -0
- package/dist/Components/Table/TableFooter.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/Table/TableHead.js +5 -0
- package/dist/Components/Table/TableHead.vue.d.ts +11 -0
- package/dist/Components/Table/TableHead.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/Components/Table/TableHeader.js +5 -0
- package/dist/Components/Table/TableHeader.vue.d.ts +11 -0
- package/dist/Components/Table/TableHeader.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/Table/TableRow.js +5 -0
- package/dist/Components/Table/TableRow.vue.d.ts +11 -0
- package/dist/Components/Table/TableRow.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/Table/composables/useTable.d.ts +16 -0
- package/dist/Components/Table/composables/useTable.js +88 -0
- package/dist/Components/Table/composables/useTableCell.d.ts +12 -0
- package/dist/Components/Table/composables/useTableCell.js +40 -0
- package/dist/Components/Table/composables/useTablePart.d.ts +12 -0
- package/dist/Components/Table/composables/useTablePart.js +32 -0
- package/dist/Components/Table/composables/useTableRow.d.ts +6 -0
- package/dist/Components/Table/composables/useTableRow.js +29 -0
- package/dist/Components/Table/index.d.ts +14 -0
- package/dist/Components/Table/index.js +14 -0
- package/dist/Components/Table/table.types.d.ts +416 -0
- package/dist/Components/Table/tableInjectionKey.d.ts +114 -0
- package/dist/Components/Table/tableInjectionKey.js +4 -0
- package/dist/Components/TextField/composables/useTextField.d.ts +1 -1
- package/dist/Components/Textarea/composables/useTextarea.d.ts +1 -1
- package/dist/Components/TimeField/composables/useTimeField.d.ts +2 -1
- package/dist/Components/TimePanel/composables/useTimePanel.d.ts +4 -0
- package/dist/Components/TimePanel/composables/useTimePanel.js +13 -12
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +2 -1
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js +103 -89
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.d.ts +4 -2
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.js +55 -54
- package/dist/Components/TimeRangePicker/timeRangePicker.types.d.ts +1 -7
- package/dist/index.js +32 -32
- package/dist/theme.css +2 -0
- package/docs/README.md +6 -0
- package/docs/ScrollUtilities.md +89 -0
- package/docs/components/Autocomplete.md +2 -0
- package/docs/components/CalendarDate.md +1 -1
- package/docs/components/CalendarRange.md +4 -3
- package/docs/components/DataTable.md +345 -0
- package/docs/components/DateField.md +2 -2
- package/docs/components/DatePicker.md +3 -3
- package/docs/components/DateRangePicker.md +4 -3
- package/docs/components/Drawer.md +21 -21
- package/docs/components/FieldOverlay.md +19 -8
- package/docs/components/Modal.md +19 -19
- package/docs/components/Pagination.md +2 -2
- package/docs/components/Select.md +2 -0
- package/docs/components/Table.md +122 -0
- package/docs/components/TimePanel.md +2 -0
- package/docs/components/TimeRangePicker.md +0 -1
- package/docs/examples/i18n-dictionary.ts +4 -0
- package/docs/examples/icon-fontawesome.ts +8 -0
- package/docs/examples/icon-heroicons.ts +8 -0
- package/docs/examples/icon-lucide.ts +8 -0
- package/docs/examples/icon-phosphor.ts +8 -0
- package/docs/examples/icon-tabler.ts +8 -0
- package/package.json +9 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: bridge-ui-components
|
|
3
3
|
description: >-
|
|
4
4
|
Use Bridge UI Vue components — Button, Avatar, Card, Alert, Accordion, Badge, Icon,
|
|
5
|
-
Link, List, Tabs, Spinner, Skeleton, Progress, Stepper, TextField, Select,
|
|
5
|
+
Link, List, Table, DataTable, Tabs, Spinner, Skeleton, Progress, Stepper, Pagination, TextField, Select,
|
|
6
6
|
Autocomplete, DateField, DatePicker, DateRangeField, DateRangePicker,
|
|
7
7
|
TimeField, TimePicker, DateTimeField, DateTimePicker, ColorField, ColorPicker,
|
|
8
8
|
classes, customProps, slots. Use when building UI with Bridge components.
|
|
@@ -27,6 +27,8 @@ In templates, use kebab-case attrs (`start-icon`, `custom-props`, `error-message
|
|
|
27
27
|
| Stepper | `.ai/docs/components/Stepper.md` |
|
|
28
28
|
| Icon | `.ai/docs/components/Icon.md` |
|
|
29
29
|
| Lists | `.ai/docs/components/List.md` |
|
|
30
|
+
| Table | `.ai/docs/components/Table.md` |
|
|
31
|
+
| DataTable | `.ai/docs/components/DataTable.md` |
|
|
30
32
|
| Tabs | `.ai/docs/components/Tabs.md` |
|
|
31
33
|
| Text input | `.ai/docs/components/TextField.md` |
|
|
32
34
|
| Select / autocomplete | `.ai/docs/components/Select.md`, `Autocomplete.md` |
|
|
@@ -38,6 +40,7 @@ In templates, use kebab-case attrs (`start-icon`, `custom-props`, `error-message
|
|
|
38
40
|
| Date-time range | `.ai/docs/components/DateTimeRangeField.md`, `DateTimeRangePicker.md` |
|
|
39
41
|
| Color | `.ai/docs/components/ColorField.md`, `ColorPicker.md` |
|
|
40
42
|
| Spinner / skeleton / progress | `.ai/docs/components/Spinner.md`, `Skeleton.md`, `Progress.md` |
|
|
43
|
+
| Scroll fade / scrollbar | `.ai/docs/ScrollUtilities.md` |
|
|
41
44
|
| Index | `.ai/docs/README.md` |
|
|
42
45
|
|
|
43
46
|
## Hard rules
|
|
@@ -179,7 +179,7 @@ export declare function useAutocomplete(props: AutocompleteOwnProps, model: Ref<
|
|
|
179
179
|
dir?: string | undefined | undefined;
|
|
180
180
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
181
181
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
182
|
-
enterKeyHint?: "
|
|
182
|
+
enterKeyHint?: "search" | "done" | "enter" | "go" | "next" | "previous" | "send" | undefined;
|
|
183
183
|
hidden?: "" | "until-found" | "hidden" | (boolean | "true" | "false") | undefined;
|
|
184
184
|
inert?: (boolean | "true" | "false") | undefined;
|
|
185
185
|
placeholder?: string | undefined | undefined;
|
|
@@ -3,11 +3,15 @@ import t from "../CalendarDate/CalendarDate.js";
|
|
|
3
3
|
import ee from "../CalendarMonth/CalendarMonth.js";
|
|
4
4
|
import te from "../CalendarYear/CalendarYear.js";
|
|
5
5
|
import { useCalendarRange as n } from "./composables/useCalendarRange.js";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import r from "../Divider/Divider.js";
|
|
7
|
+
import { Fragment as ne, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, toValue as _, unref as v, withCtx as y } from "vue";
|
|
8
|
+
import { isString as re } from "es-toolkit/compat";
|
|
9
|
+
import { cn as b } from "@bridge-ui/core/Utils";
|
|
9
10
|
//#region src/Components/CalendarRange/CalendarRange.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
11
|
+
var ie = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "grid w-full grid-cols-[1fr_auto_1fr] items-center"
|
|
14
|
+
}, ae = { class: "flex justify-start" }, oe = { class: "flex justify-end" }, x = { class: "flex shrink-0 items-center" }, S = { class: "ml-auto" }, C = { class: "ml-auto" }, w = { class: "flex shrink-0 items-center" }, se = { class: "flex min-w-max flex-1 items-stretch" }, T = /*@__PURE__*/ l({
|
|
11
15
|
inheritAttrs: !1,
|
|
12
16
|
__name: "CalendarRange",
|
|
13
17
|
props: {
|
|
@@ -41,139 +45,161 @@ var y = { class: "flex shrink-0 items-center justify-start" }, b = { class: "fle
|
|
|
41
45
|
"previewDateChange",
|
|
42
46
|
"viewDateChange"
|
|
43
47
|
],
|
|
44
|
-
setup(
|
|
45
|
-
let { view:
|
|
48
|
+
setup(l, { emit: T }) {
|
|
49
|
+
let { view: E, value: D, shared: O, merged: k, endBind: ce, rootBind: le, bodyBind: ue, viewDate: de, viewYear: fe, startBind: pe, yearLabel: A, monthLabel: j, headerBind: M, monthsBind: N, panelsBind: P, isVertical: F, endViewDate: I, previewDate: L, navIconBind: R, handleChange: z, yearPageSize: B, endMonthLabel: V, yearPageStart: me, endHeaderBind: H, monthYearBind: U, nextButtonBind: W, monthPanelYear: he, todayButtonBind: G, monthPanelValue: ge, startHeaderBind: _e, yearSelectorBind: K, handleYearSelect: ve, showYearSelector: q, monthSelectorBind: J, handleMonthSelect: ye, showMonthSelector: Y, previousButtonBind: X, endMonthSelectorBind: Z, handleEndViewDateChange: be, handlePreviewDateChange: Q, handleStartViewDateChange: xe } = n(l, {
|
|
46
50
|
rounded: "md",
|
|
47
51
|
startOfWeek: 0,
|
|
48
52
|
color: "primary",
|
|
49
53
|
orientation: "horizontal"
|
|
50
|
-
},
|
|
54
|
+
}, T);
|
|
51
55
|
function $(e) {
|
|
52
|
-
let t =
|
|
53
|
-
return
|
|
56
|
+
let t = _(R)?.class;
|
|
57
|
+
return b({
|
|
54
58
|
"size-3 transition-all duration-200 ease-in-out": !0,
|
|
55
|
-
[
|
|
59
|
+
[re(t) ? t : ""]: !0,
|
|
56
60
|
"rotate-180": e
|
|
57
61
|
});
|
|
58
62
|
}
|
|
59
|
-
return (n,
|
|
60
|
-
|
|
63
|
+
return (n, l) => (m(), a("div", p(u(v(le))), [o("div", p(u(v(M))), [v(E) === "year" || v(F) && v(E) === "date" ? (m(), a("div", ie, [
|
|
64
|
+
o("div", ae, [v(q) ? (m(), a("button", p(d({ key: 0 }, v(K))), [o("span", null, g(v(A)), 1), c(v(e), d({
|
|
61
65
|
size: "2xs",
|
|
62
66
|
icon: "chevronDown"
|
|
63
|
-
},
|
|
64
|
-
|
|
67
|
+
}, v(R), { class: $(v(E) === "year") }), null, 16, ["class"])], 16)) : i("", !0)]),
|
|
68
|
+
o("div", p(u(v(N))), [v(Y) && v(E) === "date" ? (m(), a("button", p(d({ key: 0 }, v(J))), [o("span", null, g(v(j)), 1), c(v(e), d({
|
|
65
69
|
size: "2xs",
|
|
66
70
|
icon: "chevronDown"
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}, g(H), { class: $(g(T) === "month" && g(U) === "end") }), null, 16, ["class"])], 16)) : r("", !0)], 16),
|
|
71
|
-
a("div", b, [a("div", x, [
|
|
72
|
-
a("button", f(l(g(ge))), [s(g(e), u({
|
|
71
|
+
}, v(R), { class: $(!1) }), null, 16, ["class"])], 16)) : i("", !0)], 16),
|
|
72
|
+
o("div", oe, [o("div", x, [
|
|
73
|
+
o("button", p(u(v(X))), [c(v(e), d({
|
|
73
74
|
size: "sm",
|
|
74
75
|
icon: "chevronLeft"
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
}, v(R)), null, 16)], 16),
|
|
77
|
+
o("button", p(u(v(G))), [...l[0] ||= [o("span", { class: "size-2 rounded-full bg-slate-600 dark:bg-slate-300" }, null, -1)]], 16),
|
|
78
|
+
o("button", p(u(v(W))), [c(v(e), d({
|
|
78
79
|
size: "sm",
|
|
79
80
|
icon: "chevronRight"
|
|
80
|
-
},
|
|
81
|
+
}, v(R)), null, 16)], 16)
|
|
81
82
|
])])
|
|
82
|
-
]
|
|
83
|
-
range: "",
|
|
84
|
-
value: g(E),
|
|
85
|
-
"view-date": g(j),
|
|
86
|
-
onChange: g(W),
|
|
87
|
-
"preview-date": g(V),
|
|
88
|
-
"start-of-week": g(O).startOfWeek,
|
|
89
|
-
"disable-dates": g(O).disableDates,
|
|
90
|
-
"disable-years": g(O).disableYears,
|
|
91
|
-
"hide-weekdays": g(O).hideWeekdays,
|
|
92
|
-
"disable-months": g(O).disableMonths,
|
|
93
|
-
"hide-outside-days": g(O).hideOutsideDays,
|
|
94
|
-
onViewDateChange: g(Q),
|
|
95
|
-
onPreviewDateChange: g(Z)
|
|
96
|
-
}), {
|
|
97
|
-
day: _((e) => [m(n.$slots, "day", f(l(e)), () => [o(h(e.label), 1)])]),
|
|
98
|
-
_: 3
|
|
99
|
-
}, 16, [
|
|
100
|
-
"value",
|
|
101
|
-
"view-date",
|
|
102
|
-
"onChange",
|
|
103
|
-
"preview-date",
|
|
104
|
-
"start-of-week",
|
|
105
|
-
"disable-dates",
|
|
106
|
-
"disable-years",
|
|
107
|
-
"hide-weekdays",
|
|
108
|
-
"disable-months",
|
|
109
|
-
"hide-outside-days",
|
|
110
|
-
"onViewDateChange",
|
|
111
|
-
"onPreviewDateChange"
|
|
112
|
-
])], 16), m(n.$slots, "startAside")]), a("div", C, [a("div", f(l(g(ae))), [g(z) && g(Y) ? (p(), i("div", f(u({ key: 0 }, g(q))), [a("button", f(l(g(X))), [a("span", null, h(g(G)), 1), s(g(e), u({
|
|
83
|
+
])) : (m(), a(ne, { key: 1 }, [o("div", p(u(v(_e))), [v(q) ? (m(), a("button", p(d({ key: 0 }, v(K))), [o("span", null, g(v(A)), 1), c(v(e), d({
|
|
113
84
|
size: "2xs",
|
|
114
85
|
icon: "chevronDown"
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
86
|
+
}, v(R), { class: $(!1) }), null, 16, ["class"])], 16)) : i("", !0), o("div", S, [v(Y) ? (m(), a("button", p(d({ key: 0 }, v(J))), [o("span", null, g(v(j)), 1), c(v(e), d({
|
|
87
|
+
size: "2xs",
|
|
88
|
+
icon: "chevronDown"
|
|
89
|
+
}, v(R), { class: $(v(E) === "month") }), null, 16, ["class"])], 16)) : i("", !0)])], 16), o("div", p(u(v(H))), [v(Y) ? (m(), a("button", p(d({ key: 0 }, v(Z))), [o("span", null, g(v(V)), 1), c(v(e), d({
|
|
90
|
+
size: "2xs",
|
|
91
|
+
icon: "chevronDown"
|
|
92
|
+
}, v(R), { class: $(v(E) === "month") }), null, 16, ["class"])], 16)) : i("", !0), o("div", C, [o("div", w, [
|
|
93
|
+
o("button", p(u(v(X))), [c(v(e), d({
|
|
94
|
+
size: "sm",
|
|
95
|
+
icon: "chevronLeft"
|
|
96
|
+
}, v(R)), null, 16)], 16),
|
|
97
|
+
o("button", p(u(v(G))), [...l[1] ||= [o("span", { class: "size-2 rounded-full bg-slate-600 dark:bg-slate-300" }, null, -1)]], 16),
|
|
98
|
+
o("button", p(u(v(W))), [c(v(e), d({
|
|
99
|
+
size: "sm",
|
|
100
|
+
icon: "chevronRight"
|
|
101
|
+
}, v(R)), null, 16)], 16)
|
|
102
|
+
])])], 16)], 64))], 16), o("div", p(u(v(ue))), [o("div", p(u(v(P))), [
|
|
103
|
+
o("div", { class: f([v(F) ? "pb-2.5" : void 0, "flex min-w-max flex-1 items-stretch"]) }, [o("div", p(u(v(pe))), [c(t, d(v(O), {
|
|
104
|
+
range: "",
|
|
105
|
+
value: v(D),
|
|
106
|
+
"view-date": v(de),
|
|
107
|
+
onChange: v(z),
|
|
108
|
+
"preview-date": v(L),
|
|
109
|
+
"start-of-week": v(k).startOfWeek,
|
|
110
|
+
"disable-dates": v(k).disableDates,
|
|
111
|
+
"disable-years": v(k).disableYears,
|
|
112
|
+
"hide-weekdays": v(k).hideWeekdays,
|
|
113
|
+
"disable-months": v(k).disableMonths,
|
|
114
|
+
"hide-outside-days": v(k).hideOutsideDays,
|
|
115
|
+
onViewDateChange: v(xe),
|
|
116
|
+
onPreviewDateChange: v(Q)
|
|
117
|
+
}), {
|
|
118
|
+
day: y((e) => [h(n.$slots, "day", p(u(e)), () => [s(g(e.label), 1)])]),
|
|
119
|
+
_: 3
|
|
120
|
+
}, 16, [
|
|
121
|
+
"value",
|
|
122
|
+
"view-date",
|
|
123
|
+
"onChange",
|
|
124
|
+
"preview-date",
|
|
125
|
+
"start-of-week",
|
|
126
|
+
"disable-dates",
|
|
127
|
+
"disable-years",
|
|
128
|
+
"hide-weekdays",
|
|
129
|
+
"disable-months",
|
|
130
|
+
"hide-outside-days",
|
|
131
|
+
"onViewDateChange",
|
|
132
|
+
"onPreviewDateChange"
|
|
133
|
+
])], 16), h(n.$slots, "startAside")], 2),
|
|
134
|
+
c(v(r), {
|
|
135
|
+
class: f(v(F) ? "mx-2.5" : void 0),
|
|
136
|
+
orientation: v(F) ? "horizontal" : "vertical"
|
|
137
|
+
}, null, 8, ["class", "orientation"]),
|
|
138
|
+
o("div", { class: f(["flex min-w-max flex-1 flex-col", v(F) ? "pt-2.5" : void 0]) }, [v(F) && v(E) === "date" && v(Y) ? (m(), a("div", p(d({ key: 0 }, v(H))), [o("button", p(u(v(Z))), [o("span", null, g(v(V)), 1), c(v(e), d({
|
|
139
|
+
size: "2xs",
|
|
140
|
+
icon: "chevronDown"
|
|
141
|
+
}, v(R), { class: $(!1) }), null, 16, ["class"])], 16)], 16)) : i("", !0), o("div", se, [o("div", p(u(v(ce))), [c(t, d(v(O), {
|
|
142
|
+
range: "",
|
|
143
|
+
value: v(D),
|
|
144
|
+
"view-date": v(I),
|
|
145
|
+
onChange: v(z),
|
|
146
|
+
"preview-date": v(L),
|
|
147
|
+
"start-of-week": v(k).startOfWeek,
|
|
148
|
+
"disable-dates": v(k).disableDates,
|
|
149
|
+
"disable-years": v(k).disableYears,
|
|
150
|
+
"hide-weekdays": v(k).hideWeekdays,
|
|
151
|
+
"disable-months": v(k).disableMonths,
|
|
152
|
+
"hide-outside-days": v(k).hideOutsideDays,
|
|
153
|
+
onViewDateChange: v(be),
|
|
154
|
+
onPreviewDateChange: v(Q)
|
|
155
|
+
}), {
|
|
156
|
+
day: y((e) => [h(n.$slots, "day", p(u(e)), () => [s(g(e.label), 1)])]),
|
|
157
|
+
_: 3
|
|
158
|
+
}, 16, [
|
|
159
|
+
"value",
|
|
160
|
+
"view-date",
|
|
161
|
+
"onChange",
|
|
162
|
+
"preview-date",
|
|
163
|
+
"start-of-week",
|
|
164
|
+
"disable-dates",
|
|
165
|
+
"disable-years",
|
|
166
|
+
"hide-weekdays",
|
|
167
|
+
"disable-months",
|
|
168
|
+
"hide-outside-days",
|
|
169
|
+
"onViewDateChange",
|
|
170
|
+
"onPreviewDateChange"
|
|
171
|
+
])], 16), h(n.$slots, "endAside")])], 2)
|
|
172
|
+
], 16), v(E) === "month" ? (m(), a("div", {
|
|
173
|
+
key: 0,
|
|
174
|
+
class: f(v(U))
|
|
175
|
+
}, [c(ee, d(v(O), {
|
|
176
|
+
year: v(he),
|
|
177
|
+
value: v(ge),
|
|
178
|
+
onChange: v(ye),
|
|
179
|
+
"disable-months": v(k).disableMonths,
|
|
154
180
|
classes: {
|
|
155
|
-
root: "h-full",
|
|
181
|
+
root: "h-full min-h-0 flex-1",
|
|
156
182
|
grid: "h-full auto-rows-fr",
|
|
157
|
-
month: "min-h-
|
|
183
|
+
month: "min-h-0"
|
|
158
184
|
}
|
|
159
185
|
}), null, 16, [
|
|
160
186
|
"year",
|
|
161
187
|
"value",
|
|
162
188
|
"onChange",
|
|
163
189
|
"disable-months"
|
|
164
|
-
])
|
|
165
|
-
key:
|
|
166
|
-
class:
|
|
167
|
-
}, [
|
|
168
|
-
value:
|
|
169
|
-
"page-size":
|
|
170
|
-
"start-year":
|
|
171
|
-
onChange:
|
|
172
|
-
"disable-years":
|
|
190
|
+
])], 2)) : v(E) === "year" ? (m(), a("div", {
|
|
191
|
+
key: 1,
|
|
192
|
+
class: f(v(U))
|
|
193
|
+
}, [c(te, d(v(O), {
|
|
194
|
+
value: v(fe),
|
|
195
|
+
"page-size": v(B),
|
|
196
|
+
"start-year": v(me),
|
|
197
|
+
onChange: v(ve),
|
|
198
|
+
"disable-years": v(k).disableYears,
|
|
173
199
|
classes: {
|
|
174
|
-
root: "h-full",
|
|
200
|
+
root: "h-full min-h-0 flex-1",
|
|
175
201
|
grid: "h-full auto-rows-fr",
|
|
176
|
-
year: "min-h-
|
|
202
|
+
year: "min-h-0"
|
|
177
203
|
}
|
|
178
204
|
}), null, 16, [
|
|
179
205
|
"value",
|
|
@@ -181,8 +207,8 @@ var y = { class: "flex shrink-0 items-center justify-start" }, b = { class: "fle
|
|
|
181
207
|
"start-year",
|
|
182
208
|
"onChange",
|
|
183
209
|
"disable-years"
|
|
184
|
-
])], 2)) :
|
|
210
|
+
])], 2)) : i("", !0)], 16)], 16));
|
|
185
211
|
}
|
|
186
212
|
});
|
|
187
213
|
//#endregion
|
|
188
|
-
export {
|
|
214
|
+
export { T as default };
|
|
@@ -21,11 +21,11 @@ export interface CalendarRangeClasses {
|
|
|
21
21
|
*/
|
|
22
22
|
end?: string;
|
|
23
23
|
/**
|
|
24
|
-
* Classes for the end-month header
|
|
24
|
+
* Classes for the end-month header.
|
|
25
25
|
*/
|
|
26
26
|
endHeader?: string;
|
|
27
27
|
/**
|
|
28
|
-
* Classes for the shared header.
|
|
28
|
+
* Classes for the shared header (year, months, and nav).
|
|
29
29
|
*/
|
|
30
30
|
header?: string;
|
|
31
31
|
/**
|
|
@@ -52,6 +52,10 @@ export interface CalendarRangeClasses {
|
|
|
52
52
|
* Classes for the start (left / top) date panel wrapper.
|
|
53
53
|
*/
|
|
54
54
|
start?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Classes for the start-month header (horizontal).
|
|
57
|
+
*/
|
|
58
|
+
startHeader?: string;
|
|
55
59
|
}
|
|
56
60
|
export interface CalendarRangeCustomProps {
|
|
57
61
|
/**
|
|
@@ -67,7 +71,7 @@ export interface CalendarRangeCustomProps {
|
|
|
67
71
|
*/
|
|
68
72
|
end?: HTMLAttributes;
|
|
69
73
|
/**
|
|
70
|
-
* Props forwarded to the end-month header
|
|
74
|
+
* Props forwarded to the end-month header.
|
|
71
75
|
*
|
|
72
76
|
* @default undefined
|
|
73
77
|
*/
|
|
@@ -132,6 +136,12 @@ export interface CalendarRangeCustomProps {
|
|
|
132
136
|
* @default undefined
|
|
133
137
|
*/
|
|
134
138
|
start?: HTMLAttributes;
|
|
139
|
+
/**
|
|
140
|
+
* Props forwarded to the start-month header (horizontal date view).
|
|
141
|
+
*
|
|
142
|
+
* @default undefined
|
|
143
|
+
*/
|
|
144
|
+
startHeader?: HTMLAttributes;
|
|
135
145
|
/**
|
|
136
146
|
* Props forwarded to the today control.
|
|
137
147
|
*
|
|
@@ -254,8 +264,10 @@ export interface CalendarRangeOwnProps {
|
|
|
254
264
|
/**
|
|
255
265
|
* Dual calendar arrangement.
|
|
256
266
|
*
|
|
257
|
-
* - `horizontal`:
|
|
258
|
-
*
|
|
267
|
+
* - `horizontal`: year on the left, nav on the right; month selectors sit inward
|
|
268
|
+
* from the header midpoint; divider between the date grids
|
|
269
|
+
* - `vertical`: year on the left, nav on the right; start month centered in the
|
|
270
|
+
* header, end month centered over the bottom panel
|
|
259
271
|
*
|
|
260
272
|
* @default "horizontal"
|
|
261
273
|
*/
|
|
@@ -34,13 +34,14 @@ export declare function useCalendarRange(props: MaybeRefOrGetter<CalendarRangeOw
|
|
|
34
34
|
monthLabel: import('vue').ComputedRef<string>;
|
|
35
35
|
headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
36
36
|
monthsBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
37
|
-
panelsBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
|
|
37
|
+
panelsBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
|
|
38
|
+
"aria-hidden": boolean;
|
|
39
|
+
}>>;
|
|
38
40
|
isVertical: import('vue').ComputedRef<boolean>;
|
|
39
41
|
endViewDate: import('vue').ComputedRef<Date>;
|
|
40
42
|
previewDate: import('vue').ComputedRef<Date | null>;
|
|
41
43
|
setViewDate: (next: Date) => void;
|
|
42
44
|
navIconBind: import('vue').ComputedRef<Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined>;
|
|
43
|
-
monthTarget: import('vue').Ref<"end" | "start", "end" | "start">;
|
|
44
45
|
handleChange: (next: DatePickerModel) => void;
|
|
45
46
|
yearPageSize: number;
|
|
46
47
|
endMonthLabel: import('vue').ComputedRef<string>;
|
|
@@ -253,6 +254,7 @@ export declare function useCalendarRange(props: MaybeRefOrGetter<CalendarRangeOw
|
|
|
253
254
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
254
255
|
}>>;
|
|
255
256
|
monthPanelYear: import('vue').ComputedRef<number>;
|
|
257
|
+
startHeaderBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
256
258
|
todayButtonBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').ButtonHTMLAttributes | undefined, {
|
|
257
259
|
onClick: () => void;
|
|
258
260
|
type: "button";
|