@bridge-ui/vue 0.18.0 → 0.20.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.
Files changed (103) hide show
  1. package/ai/skills/bridge-ui-components/SKILL.md +35 -34
  2. package/ai/skills/bridge-ui-setup/SKILL.md +1 -1
  3. package/dist/Components/Autocomplete/composables/useAutocomplete.js +257 -265
  4. package/dist/Components/Calendar/composables/useCalendar.d.ts +1 -1
  5. package/dist/Components/Calendar/composables/useCalendar.js +192 -187
  6. package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +1 -1
  7. package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +1 -1
  8. package/dist/Components/CalendarRange/composables/useCalendarRange.js +243 -238
  9. package/dist/Components/ChartBar/ChartBar.vue_vue_type_script_setup_true_lang.js +5 -0
  10. package/dist/Components/ChartBar/chartBar.types.d.ts +11 -1
  11. package/dist/Components/ChartBar/composables/useChartBar.js +4 -4
  12. package/dist/Components/ChartBar/index.d.ts +1 -1
  13. package/dist/Components/ChartBarSeries/ChartBarSeries.vue_vue_type_script_setup_true_lang.js +4 -1
  14. package/dist/Components/ChartBarSeries/chartBarSeries.types.d.ts +24 -2
  15. package/dist/Components/ChartBarSeries/composables/useChartBarSeries.js +3 -0
  16. package/dist/Components/ChartBarSeries/index.d.ts +1 -0
  17. package/dist/Components/ChartFunnel/composables/useChartFunnel.js +10 -10
  18. package/dist/Components/ChartLine/ChartLine.vue_vue_type_script_setup_true_lang.js +1 -0
  19. package/dist/Components/ChartLine/chartLine.types.d.ts +7 -0
  20. package/dist/Components/ChartLine/composables/useChartLine.js +1 -1
  21. package/dist/Components/ChartLineSeries/ChartLineSeries.vue_vue_type_script_setup_true_lang.js +3 -0
  22. package/dist/Components/ChartLineSeries/chartLineSeries.types.d.ts +23 -2
  23. package/dist/Components/ChartLineSeries/composables/useChartLineSeries.js +3 -0
  24. package/dist/Components/ChartLineSeries/index.d.ts +1 -0
  25. package/dist/Components/ChartPie/ChartPie.vue_vue_type_script_setup_true_lang.js +3 -0
  26. package/dist/Components/ChartPie/chartPie.types.d.ts +20 -1
  27. package/dist/Components/ChartPie/composables/useChartPie.d.ts +1 -1
  28. package/dist/Components/ChartPie/composables/useChartPie.js +39 -29
  29. package/dist/Components/ChartScatter/composables/useChartScatter.js +63 -58
  30. package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue_vue_type_script_setup_true_lang.js +1 -0
  31. package/dist/Components/ChartScatterSeries/chartScatterSeries.types.d.ts +8 -1
  32. package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.js +2 -1
  33. package/dist/Components/ChartScatterSeries/index.d.ts +1 -0
  34. package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +11 -7
  35. package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +4 -0
  36. package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +1 -0
  37. package/dist/Components/ChartTooltip/composables/useChartTooltip.js +4 -0
  38. package/dist/Components/DataTable/DataTableColumnsMenu.vue.d.ts +1 -2
  39. package/dist/Components/DataTable/composables/useDataTable.d.ts +8 -66
  40. package/dist/Components/DataTable/composables/useDataTable.js +267 -349
  41. package/dist/Components/DataTable/composables/useDataTableColumnsMenu.d.ts +1 -2
  42. package/dist/Components/Heading/Heading.js +5 -0
  43. package/dist/Components/Heading/Heading.vue.d.ts +11 -0
  44. package/dist/Components/Heading/Heading.vue_vue_type_script_setup_true_lang.js +29 -0
  45. package/dist/Components/Heading/composables/useHeading.d.ts +10 -0
  46. package/dist/Components/Heading/composables/useHeading.js +56 -0
  47. package/dist/Components/Heading/heading.types.d.ts +56 -0
  48. package/dist/Components/Heading/index.d.ts +3 -0
  49. package/dist/Components/Heading/index.js +3 -0
  50. package/dist/Components/ListItem/composables/useListItem.js +29 -30
  51. package/dist/Components/Listbox/composables/useListboxNavigation.d.ts +0 -5
  52. package/dist/Components/Listbox/composables/useListboxNavigation.js +23 -50
  53. package/dist/Components/Listbox/index.d.ts +1 -1
  54. package/dist/Components/Listbox/index.js +5 -5
  55. package/dist/Components/ResizablePanel/composables/useResizablePanel.d.ts +1 -1
  56. package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +31 -31
  57. package/dist/Components/Select/composables/useSelect.js +201 -211
  58. package/dist/Components/Slider/composables/useSlider.js +93 -122
  59. package/dist/Components/Text/Text.js +5 -0
  60. package/dist/Components/Text/Text.vue.d.ts +11 -0
  61. package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +33 -0
  62. package/dist/Components/Text/composables/useText.d.ts +9 -0
  63. package/dist/Components/Text/composables/useText.js +56 -0
  64. package/dist/Components/Text/index.d.ts +3 -0
  65. package/dist/Components/Text/index.js +3 -0
  66. package/dist/Components/Text/text.types.d.ts +76 -0
  67. package/dist/Utils/Charts/chart.types.d.ts +17 -0
  68. package/dist/Utils/Charts/chartInjectionKey.d.ts +2 -2
  69. package/dist/Utils/Charts/index.d.ts +1 -1
  70. package/dist/Utils/Charts/useChartCartesian.d.ts +4 -2
  71. package/dist/Utils/Charts/useChartCartesian.js +90 -76
  72. package/dist/augments.d.ts +10 -0
  73. package/dist/index.d.ts +5 -1
  74. package/dist/index.js +175 -171
  75. package/docs/README.md +2 -0
  76. package/docs/components/BridgeUIProvider.md +1 -1
  77. package/docs/components/Card.md +15 -0
  78. package/docs/components/Chart.md +17 -10
  79. package/docs/components/ChartBar.md +70 -17
  80. package/docs/components/ChartLine.md +57 -16
  81. package/docs/components/ChartPie.md +33 -10
  82. package/docs/components/ChartScatter.md +25 -7
  83. package/docs/components/Heading.md +85 -0
  84. package/docs/components/Text.md +118 -0
  85. package/package.json +2 -2
  86. package/dist/Components/RichTextEditor/tiptapEditor.d.ts +0 -111
  87. package/dist/Components/RichTextEditor/tiptapEditor.js +0 -121
  88. package/dist/Utils/Charts/echarts/bar.d.ts +0 -6
  89. package/dist/Utils/Charts/echarts/bar.js +0 -22
  90. package/dist/Utils/Charts/echarts/cartesian.d.ts +0 -15
  91. package/dist/Utils/Charts/echarts/cartesian.js +0 -255
  92. package/dist/Utils/Charts/echarts/funnel.d.ts +0 -15
  93. package/dist/Utils/Charts/echarts/funnel.js +0 -79
  94. package/dist/Utils/Charts/echarts/line.d.ts +0 -5
  95. package/dist/Utils/Charts/echarts/line.js +0 -19
  96. package/dist/Utils/Charts/echarts/part.d.ts +0 -19
  97. package/dist/Utils/Charts/echarts/part.js +0 -45
  98. package/dist/Utils/Charts/echarts/pie.d.ts +0 -14
  99. package/dist/Utils/Charts/echarts/pie.js +0 -75
  100. package/dist/Utils/Charts/echarts/plot.d.ts +0 -44
  101. package/dist/Utils/Charts/echarts/plot.js +0 -52
  102. package/dist/Utils/Charts/echarts/scatter.d.ts +0 -14
  103. package/dist/Utils/Charts/echarts/scatter.js +0 -152
@@ -33,7 +33,6 @@ export declare function useCalendar(props: MaybeRefOrGetter<CalendarOwnProps>, l
33
33
  navIconBind: import('vue').ComputedRef<Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined>;
34
34
  granularity: import('vue').ComputedRef<import('@bridge-ui/core/Domain').CalendarGranularity>;
35
35
  handleChange: (next: DatePickerModel) => void;
36
- yearPageSize: number;
37
36
  nextButtonBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').ButtonHTMLAttributes | undefined, {
38
37
  onClick: () => void;
39
38
  type: "button";
@@ -869,5 +868,6 @@ export declare function useCalendar(props: MaybeRefOrGetter<CalendarOwnProps>, l
869
868
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
870
869
  }>>;
871
870
  yearPageStart: import('vue').ComputedRef<number>;
871
+ yearPageSize: number;
872
872
  };
873
873
  export {};
@@ -1,236 +1,241 @@
1
1
  import { useDateAdapter as e } from "../../../Adapters/Date/useDateAdapter.js";
2
2
  import { useResolveMessage as t } from "../../../Adapters/I18n/useI18nAdapter.js";
3
- import { mergePartBind as n, useBridgeUIComponent as ee, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
4
- import { computed as i, getCurrentInstance as a, ref as o, toValue as s, useAttrs as te } from "vue";
5
- import { get as ne, isArray as c, isFunction as l, isNil as u, omit as re } from "es-toolkit/compat";
6
- import { applyDateSelection as d, calendarPanelViewFromGranularity as f, isCalendarMonthPanelHidden as p, isCalendarYearPanelHidden as m, isDateRangeValue as h, normalizeDateToGranularity as g, resolveCalendarPanelView as _, resolveDatePickerMode as v } from "@bridge-ui/core/Domain";
7
- import { calendarRoundedProps as ie } from "@bridge-ui/core/Tokens";
8
- import { cn as y, mergeBridgeUILayeredClasses as ae, splitComponentProps as oe } from "@bridge-ui/core/Utils";
3
+ import { mergePartBind as n, useBridgeUIComponent as ee, useBridgeUIMergedRegistryClasses as te } from "../../../Utils/index.js";
4
+ import { computed as r, getCurrentInstance as i, ref as a, toValue as o, useAttrs as s } from "vue";
5
+ import { get as c, isFunction as l, isNil as u, omit as ne } from "es-toolkit/compat";
6
+ import { CALENDAR_YEAR_PAGE_SIZE as re, applyDateSelection as d, calendarPanelViewFromGranularity as f, getCalendarNavigationMessage as p, getCalendarYearPageStart as m, isCalendarMonthPanelHidden as h, isCalendarYearPanelHidden as g, resolveCalendarFocusDate as ie, resolveCalendarMonthSelection as ae, resolveCalendarNavigation as oe, resolveCalendarPanelView as _, resolveCalendarYearSelection as v, resolveDatePickerMode as y } from "@bridge-ui/core/Domain";
7
+ import { calendarRoundedProps as b } from "@bridge-ui/core/Tokens";
8
+ import { cn as x, mergeBridgeUILayeredClasses as se, splitComponentProps as ce } from "@bridge-ui/core/Utils";
9
9
  //#region src/Components/Calendar/composables/useCalendar.ts
10
- var b = /* @__PURE__ */ "fill.view.color.error.range.classes.maxDate.minDate.rounded.disabled.multiple.readOnly.timeZone.viewDate.hideYears.hideMonths.customProps.defaultView.granularity.previewDate.startOfWeek.defaultValue.disableDates.disableYears.hideWeekdays.disableMonths.hideOutsideDays".split(".");
11
- function x(e, t, n) {
12
- return u(e) ? t.now(n) : h(e) ? e[0] : c(e) ? e[0] ?? t.now(n) : e;
13
- }
14
- function S(c, h, S, C) {
15
- let se = te(), w = e(), T = t(), E = i(() => oe({
16
- bridgeKeys: b,
10
+ var le = /* @__PURE__ */ "fill.view.color.error.range.classes.maxDate.minDate.rounded.disabled.multiple.readOnly.timeZone.viewDate.hideYears.hideMonths.customProps.defaultView.granularity.previewDate.startOfWeek.defaultValue.disableDates.disableYears.hideWeekdays.disableMonths.hideOutsideDays".split(".");
11
+ function S(S, C, w, T) {
12
+ let E = s(), D = e(), O = t(), k = r(() => ce({
13
+ bridgeKeys: le,
17
14
  props: {
18
- ...se,
19
- ...s(c)
15
+ ...E,
16
+ ...o(S)
20
17
  }
21
- })), { merged: D, entry: O } = ee({
22
- libDefaults: h,
18
+ })), { merged: A, entry: ue } = ee({
19
+ libDefaults: C,
23
20
  componentName: "Calendar",
24
- props: () => E.value.componentProps
25
- }), k = i(() => D.value.customProps), ce = i(() => re(E.value.inheritedAttrs, [
21
+ props: () => k.value.componentProps
22
+ }), j = r(() => A.value.customProps), de = r(() => ne(k.value.inheritedAttrs, [
26
23
  "onChange",
27
24
  "onViewChange",
28
25
  "onViewDateChange",
29
26
  "onPreviewDateChange",
30
27
  "onUpdate:modelValue"
31
- ])), A = r({
32
- props: () => E.value.componentProps,
33
- entry: i(() => {})
34
- }), j = i(() => D.value.timeZone), M = i(() => v({
35
- range: D.value.range,
36
- multiple: D.value.multiple
37
- })), N = i(() => s(c)), P = i(() => {
38
- let e = a()?.vnode.props ?? {}, t = l(e.onViewChange) || l(e["onUpdate:view"]);
39
- return !u(N.value.view) && t;
40
- }), F = i(() => {
41
- let e = a()?.vnode.props ?? {}, t = l(e.onViewDateChange) || l(e["onUpdate:viewDate"]);
42
- return !u(N.value.viewDate) && t;
43
- }), I = o(_({
44
- hideYears: D.value.hideYears,
45
- hideMonths: D.value.hideMonths,
46
- granularity: N.value.granularity ?? "day",
47
- view: N.value.view ?? D.value.defaultView ?? f(N.value.granularity ?? "day")
48
- })), L = o(w.value.startOfMonth(u(N.value.viewDate) ? x(S.value, w.value, j.value) : N.value.viewDate, j.value)), R = o(null), z = i(() => D.value.granularity ?? "day"), B = i(() => {
49
- let e = P.value ? N.value.view ?? "date" : I.value;
28
+ ])), M = te({
29
+ props: () => k.value.componentProps,
30
+ entry: r(() => {})
31
+ }), N = r(() => A.value.timeZone), P = r(() => y({
32
+ range: A.value.range,
33
+ multiple: A.value.multiple
34
+ })), F = r(() => o(S)), I = r(() => {
35
+ let e = i()?.vnode.props ?? {}, t = l(e.onViewChange) || l(e["onUpdate:view"]);
36
+ return !u(F.value.view) && t;
37
+ }), L = r(() => {
38
+ let e = i()?.vnode.props ?? {}, t = l(e.onViewDateChange) || l(e["onUpdate:viewDate"]);
39
+ return !u(F.value.viewDate) && t;
40
+ }), R = a(_({
41
+ hideYears: A.value.hideYears,
42
+ hideMonths: A.value.hideMonths,
43
+ granularity: F.value.granularity ?? "day",
44
+ view: F.value.view ?? A.value.defaultView ?? f(F.value.granularity ?? "day")
45
+ })), z = a(D.value.startOfMonth(u(F.value.viewDate) ? ie(w.value, D.value, N.value) : F.value.viewDate, N.value)), B = a(null), V = r(() => A.value.granularity ?? "day"), H = r(() => {
46
+ let e = I.value ? F.value.view ?? "date" : R.value;
50
47
  return _({
51
48
  view: e,
52
- granularity: z.value,
53
- hideYears: D.value.hideYears,
54
- hideMonths: D.value.hideMonths
49
+ granularity: V.value,
50
+ hideYears: A.value.hideYears,
51
+ hideMonths: A.value.hideMonths
55
52
  });
56
- }), V = i(() => F.value ? N.value.viewDate : L.value), H = i(() => String(w.value.getYear(V.value, j.value))), U = i(() => w.value.getMonthNames()[w.value.getMonth(V.value, j.value)] ?? ""), W = i(() => w.value.getYear(V.value, j.value)), G = i(() => w.value.getMonth(V.value, j.value)), K = i(() => u(R.value) ? Math.max(1, W.value - 7) : R.value), q = i(() => {
57
- let e = ae(ie, O.value?.tokens?.rounded);
58
- return ne(e, D.value.rounded);
59
- }), J = (e) => {
60
- P.value || (I.value = e), C("viewChange", e);
61
- }, le = () => {
62
- R.value = Math.max(1, W.value - 7), J("year");
53
+ }), U = r(() => L.value ? F.value.viewDate : z.value), fe = r(() => String(D.value.getYear(U.value, N.value))), pe = r(() => D.value.getMonthNames()[D.value.getMonth(U.value, N.value)] ?? ""), W = r(() => D.value.getYear(U.value, N.value)), me = r(() => D.value.getMonth(U.value, N.value)), G = r(() => u(B.value) ? m(W.value) : B.value), K = r(() => {
54
+ let e = se(b, ue.value?.tokens?.rounded);
55
+ return c(e, A.value.rounded);
56
+ }), q = (e) => {
57
+ I.value || (R.value = e), T("viewChange", e);
58
+ }, he = () => {
59
+ B.value = m(W.value), q("year");
60
+ }, J = (e) => {
61
+ let t = D.value.startOfMonth(e, N.value);
62
+ L.value || (z.value = t), T("viewDateChange", t);
63
63
  }, Y = (e) => {
64
- let t = w.value.startOfMonth(e, j.value);
65
- F.value || (L.value = t), C("viewDateChange", t);
64
+ w.value = e, T("change", e);
66
65
  }, X = (e) => {
67
- S.value = e, C("change", e);
68
- }, ue = () => {
69
- if (B.value === "year") {
70
- R.value = Math.max(1, K.value - 15);
71
- return;
72
- }
73
- if (B.value === "month") {
74
- Y(w.value.addYears(V.value, -1, j.value));
75
- return;
76
- }
77
- Y(w.value.addMonths(V.value, -1, j.value));
78
- }, de = () => {
79
- if (B.value === "year") {
80
- R.value = K.value + 15;
81
- return;
82
- }
83
- if (B.value === "month") {
84
- Y(w.value.addYears(V.value, 1, j.value));
66
+ let t = oe({
67
+ direction: e,
68
+ view: H.value,
69
+ adapter: D.value,
70
+ viewDate: U.value,
71
+ timeZone: N.value,
72
+ yearPageStart: G.value
73
+ });
74
+ if (t.type === "yearPage") {
75
+ B.value = t.yearPageStart;
85
76
  return;
86
77
  }
87
- Y(w.value.addMonths(V.value, 1, j.value));
88
- }, fe = () => {
89
- let e = w.value.startOfMonth(w.value.now(j.value), j.value);
90
- R.value = null, Y(e), J(f(z.value));
91
- }, pe = (e) => {
92
- R.value = null;
93
- let t = w.value.setYear(V.value, e, j.value);
94
- if (Y(t), z.value === "year") {
95
- X(d({
96
- mode: M.value,
97
- value: S.value,
98
- granularity: "year",
99
- adapter: w.value,
100
- timeZone: j.value,
101
- next: g(t, "year", w.value, j.value)
78
+ J(t.viewDate);
79
+ }, ge = () => {
80
+ X(-1);
81
+ }, _e = () => {
82
+ X(1);
83
+ }, ve = () => {
84
+ let e = D.value.startOfMonth(D.value.now(N.value), N.value);
85
+ B.value = null, J(e), q(f(V.value));
86
+ }, ye = (e) => {
87
+ B.value = null;
88
+ let t = v({
89
+ year: e,
90
+ adapter: D.value,
91
+ viewDate: U.value,
92
+ timeZone: N.value,
93
+ granularity: V.value,
94
+ hideMonths: A.value.hideMonths
95
+ });
96
+ if (J(t.viewDate), t.type === "commit") {
97
+ Y(d({
98
+ mode: P.value,
99
+ value: w.value,
100
+ next: t.date,
101
+ adapter: D.value,
102
+ timeZone: N.value,
103
+ granularity: V.value
102
104
  }));
103
105
  return;
104
106
  }
105
- J(p({
106
- granularity: z.value,
107
- hideMonths: D.value.hideMonths
108
- }) ? f(z.value) : "month");
109
- }, me = (e) => {
110
- let t = w.value.setMonth(V.value, e, j.value);
111
- if (Y(t), z.value === "month") {
112
- X(d({
113
- mode: M.value,
114
- value: S.value,
115
- granularity: "month",
116
- adapter: w.value,
117
- timeZone: j.value,
118
- next: g(t, "month", w.value, j.value)
107
+ q(t.view);
108
+ }, be = (e) => {
109
+ let t = ae({
110
+ month: e,
111
+ adapter: D.value,
112
+ viewDate: U.value,
113
+ timeZone: N.value,
114
+ granularity: V.value
115
+ });
116
+ if (J(t.viewDate), t.type === "commit") {
117
+ Y(d({
118
+ mode: P.value,
119
+ value: w.value,
120
+ next: t.date,
121
+ adapter: D.value,
122
+ timeZone: N.value,
123
+ granularity: V.value
119
124
  }));
120
125
  return;
121
126
  }
122
- J("date");
123
- }, he = i(() => ({
124
- color: D.value.color,
125
- error: D.value.error,
126
- rounded: D.value.rounded,
127
- maxDate: D.value.maxDate,
128
- minDate: D.value.minDate,
129
- disabled: D.value.disabled,
130
- readOnly: D.value.readOnly,
131
- timeZone: D.value.timeZone
132
- })), ge = i(() => n(k.value?.root, ce.value, y({
127
+ q(t.view);
128
+ }, xe = r(() => ({
129
+ color: A.value.color,
130
+ error: A.value.error,
131
+ rounded: A.value.rounded,
132
+ maxDate: A.value.maxDate,
133
+ minDate: A.value.minDate,
134
+ disabled: A.value.disabled,
135
+ readOnly: A.value.readOnly,
136
+ timeZone: A.value.timeZone
137
+ })), Se = r(() => n(j.value?.root, de.value, x({
133
138
  "flex flex-col overflow-hidden": !0,
134
- "w-full min-w-72": D.value.fill,
135
- "w-72": !D.value.fill,
136
- [A.value.root ?? ""]: !0
137
- }))), _e = i(() => n(k.value?.header, {}, y({
139
+ "w-full min-w-72": A.value.fill,
140
+ "w-72": !A.value.fill,
141
+ [M.value.root ?? ""]: !0
142
+ }))), Ce = r(() => n(j.value?.header, {}, x({
138
143
  "flex items-center justify-between p-2.5": !0,
139
- [A.value.header ?? ""]: !0
140
- }))), ve = i(() => n(k.value?.body, {}, y({
144
+ [M.value.header ?? ""]: !0
145
+ }))), we = r(() => n(j.value?.body, {}, x({
141
146
  "flex flex-col p-2.5": !0,
142
- [A.value.body ?? ""]: !0
143
- }))), Z = i(() => n(k.value?.selector, {
147
+ [M.value.body ?? ""]: !0
148
+ }))), Z = r(() => n(j.value?.selector, {
144
149
  type: "button",
145
- disabled: D.value.disabled
146
- }, y({
150
+ disabled: A.value.disabled
151
+ }, x({
147
152
  "inline-flex cursor-pointer items-center gap-x-2 px-1.5 py-1 text-sm font-medium text-dark-600 hover:bg-dark-100 focus:outline-none disabled:cursor-not-allowed dark:text-dark-300 dark:hover:bg-dark-800": !0,
148
- [q.value ?? ""]: !0,
149
- [A.value.selector ?? ""]: !0
150
- }))), Q = i(() => n(k.value?.navButton, {
153
+ [K.value ?? ""]: !0,
154
+ [M.value.selector ?? ""]: !0
155
+ }))), Q = r(() => n(j.value?.navButton, {
151
156
  type: "button",
152
- disabled: D.value.disabled
153
- }, y({
157
+ disabled: A.value.disabled
158
+ }, x({
154
159
  "inline-flex size-8 shrink-0 cursor-pointer items-center justify-center text-dark-600 hover:bg-dark-100 disabled:cursor-not-allowed dark:text-dark-300 dark:hover:bg-dark-800": !0,
155
- [q.value ?? ""]: !0,
156
- [A.value.navButton ?? ""]: !0
157
- }))), ye = i(() => B.value === "year" ? T("Previous years") : B.value === "month" ? T("Previous year") : T("Previous month")), be = i(() => B.value === "year" ? T("Next years") : B.value === "month" ? T("Next year") : T("Next month")), xe = i(() => n(k.value?.previousButton, {
160
+ [K.value ?? ""]: !0,
161
+ [M.value.navButton ?? ""]: !0
162
+ }))), Te = r(() => O(p(H.value, -1))), Ee = r(() => O(p(H.value, 1))), De = r(() => n(j.value?.previousButton, {
158
163
  ...Q.value,
159
- onClick: ue,
164
+ onClick: ge,
160
165
  type: "button",
161
- disabled: D.value.disabled,
162
- "aria-label": ye.value
163
- }, y({ [A.value.navButton ?? ""]: !0 }))), $ = i(() => n(k.value?.nextButton, {
166
+ disabled: A.value.disabled,
167
+ "aria-label": Te.value
168
+ }, x({ [M.value.navButton ?? ""]: !0 }))), Oe = r(() => n(j.value?.nextButton, {
164
169
  ...Q.value,
165
- onClick: de,
170
+ onClick: _e,
166
171
  type: "button",
167
- disabled: D.value.disabled,
168
- "aria-label": be.value
169
- }, y({ [A.value.navButton ?? ""]: !0 }))), Se = i(() => n(k.value?.todayButton, {
170
- onClick: fe,
172
+ disabled: A.value.disabled,
173
+ "aria-label": Ee.value
174
+ }, x({ [M.value.navButton ?? ""]: !0 }))), $ = r(() => n(j.value?.todayButton, {
175
+ onClick: ve,
171
176
  type: "button",
172
- disabled: D.value.disabled,
173
- "aria-label": T("Today")
174
- }, y({
177
+ disabled: A.value.disabled,
178
+ "aria-label": O("Today")
179
+ }, x({
175
180
  "inline-flex size-8 shrink-0 cursor-pointer items-center justify-center hover:bg-dark-100 disabled:cursor-not-allowed dark:hover:bg-dark-800": !0,
176
- [q.value ?? ""]: !0,
177
- [A.value.navButton ?? ""]: !0
178
- }))), Ce = i(() => n(k.value?.selector, void 0, {
181
+ [K.value ?? ""]: !0,
182
+ [M.value.navButton ?? ""]: !0
183
+ }))), ke = r(() => n(j.value?.selector, void 0, {
179
184
  ...Z.value,
180
- onClick: le,
185
+ onClick: he,
181
186
  type: "button",
182
- "aria-label": T("Select year"),
183
- disabled: D.value.disabled || m({
184
- granularity: z.value,
185
- hideYears: D.value.hideYears
187
+ "aria-label": O("Select year"),
188
+ disabled: A.value.disabled || g({
189
+ granularity: V.value,
190
+ hideYears: A.value.hideYears
186
191
  })
187
- })), we = i(() => n(k.value?.selector, void 0, {
192
+ })), Ae = r(() => n(j.value?.selector, void 0, {
188
193
  ...Z.value,
189
194
  type: "button",
190
- onClick: () => J("month"),
191
- "aria-label": T("Select month"),
192
- disabled: D.value.disabled || p({
193
- granularity: z.value,
194
- hideMonths: D.value.hideMonths
195
+ onClick: () => q("month"),
196
+ "aria-label": O("Select month"),
197
+ disabled: A.value.disabled || h({
198
+ granularity: V.value,
199
+ hideMonths: A.value.hideMonths
195
200
  })
196
- })), Te = i(() => !m({
197
- granularity: z.value,
198
- hideYears: D.value.hideYears
199
- })), Ee = i(() => !p({
200
- granularity: z.value,
201
- hideMonths: D.value.hideMonths
201
+ })), je = r(() => !g({
202
+ granularity: V.value,
203
+ hideYears: A.value.hideYears
204
+ })), Me = r(() => !h({
205
+ granularity: V.value,
206
+ hideMonths: A.value.hideMonths
202
207
  }));
203
208
  return {
204
- view: B,
205
- mode: M,
206
- model: S,
207
- merged: D,
208
- shared: he,
209
- showNav: i(() => !0),
210
- timeZone: j,
211
- rootBind: ge,
212
- viewDate: V,
209
+ view: H,
210
+ mode: P,
211
+ model: w,
212
+ merged: A,
213
+ shared: xe,
214
+ showNav: r(() => !0),
215
+ timeZone: N,
216
+ rootBind: Se,
217
+ viewDate: U,
213
218
  viewYear: W,
214
- bodyBind: ve,
215
- viewMonth: G,
216
- yearLabel: H,
217
- monthLabel: U,
218
- headerBind: _e,
219
- setViewDate: Y,
220
- navIconBind: i(() => k.value?.navIcon),
221
- granularity: z,
222
- handleChange: X,
223
- yearPageSize: 15,
224
- nextButtonBind: $,
225
- todayButtonBind: Se,
226
- yearSelectorBind: Ce,
227
- handleYearSelect: pe,
228
- showYearSelector: Te,
229
- monthSelectorBind: we,
230
- handleMonthSelect: me,
231
- showMonthSelector: Ee,
232
- previousButtonBind: xe,
233
- yearPageStart: K
219
+ bodyBind: we,
220
+ viewMonth: me,
221
+ yearLabel: fe,
222
+ monthLabel: pe,
223
+ headerBind: Ce,
224
+ setViewDate: J,
225
+ navIconBind: r(() => j.value?.navIcon),
226
+ granularity: V,
227
+ handleChange: Y,
228
+ nextButtonBind: Oe,
229
+ todayButtonBind: $,
230
+ yearSelectorBind: ke,
231
+ handleYearSelect: ye,
232
+ showYearSelector: je,
233
+ monthSelectorBind: Ae,
234
+ handleMonthSelect: be,
235
+ showMonthSelector: Me,
236
+ previousButtonBind: De,
237
+ yearPageStart: G,
238
+ yearPageSize: re
234
239
  };
235
240
  }
236
241
  //#endregion
@@ -17,7 +17,7 @@ export declare function useCalendarMonth(props: MaybeRefOrGetter<CalendarMonthOw
17
17
  year: import('vue').ComputedRef<number>;
18
18
  merged: import('vue').ComputedRef<CalendarMonthMerged>;
19
19
  months: import('vue').ComputedRef<CalendarMonthCell[]>;
20
- rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<CalendarMonthOwnProps, "error" | "color" | "classes" | "customProps" | "disabled" | "rounded" | "multiple" | "range" | "timeZone" | "year" | "readOnly" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate" | "previewDate" | "selection">>>>;
20
+ rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<CalendarMonthOwnProps, "error" | "color" | "classes" | "customProps" | "disabled" | "rounded" | "multiple" | "range" | "timeZone" | "readOnly" | "disableDates" | "disableMonths" | "disableYears" | "maxDate" | "minDate" | "previewDate" | "year" | "selection">>>>;
21
21
  gridBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
22
22
  role: string;
23
23
  onMouseLeave: () => void;
@@ -40,7 +40,6 @@ export declare function useCalendarRange(props: MaybeRefOrGetter<CalendarRangeOw
40
40
  navIconBind: import('vue').ComputedRef<Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined>;
41
41
  granularity: import('vue').ComputedRef<import('@bridge-ui/core/Domain').CalendarGranularity>;
42
42
  handleChange: (next: DatePickerModel) => void;
43
- yearPageSize: number;
44
43
  endMonthLabel: import('vue').ComputedRef<string>;
45
44
  endHeaderBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
46
45
  monthYearBind: import('vue').ComputedRef<string>;
@@ -1887,5 +1886,6 @@ export declare function useCalendarRange(props: MaybeRefOrGetter<CalendarRangeOw
1887
1886
  handlePreviewDateChange: (next: Date | null) => void;
1888
1887
  handleStartViewDateChange: (next: Date) => void;
1889
1888
  yearPageStart: import('vue').ComputedRef<number>;
1889
+ yearPageSize: number;
1890
1890
  };
1891
1891
  export {};