@bridge-ui/vue 0.13.0 → 0.14.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-forms/SKILL.md +3 -3
- package/dist/Adapters/Examples/icon-fontawesome.js +22 -21
- package/dist/Adapters/Examples/icon-heroicons.js +13 -12
- package/dist/Adapters/Examples/icon-lucide.js +11 -10
- package/dist/Adapters/Examples/icon-phosphor.js +19 -18
- package/dist/Adapters/Examples/icon-tabler.js +10 -9
- package/dist/Adapters/Examples/rich-text-tiptap.js +34 -41
- package/dist/Components/BaseField/composables/useBaseField.d.ts +2 -2
- package/dist/Components/Calendar/Calendar.vue.d.ts +14 -6
- package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +78 -74
- package/dist/Components/Calendar/calendar.types.d.ts +12 -7
- package/dist/Components/Calendar/composables/useCalendar.d.ts +5 -9
- package/dist/Components/Calendar/composables/useCalendar.js +144 -143
- package/dist/Components/CalendarDate/CalendarDate.vue.d.ts +14 -6
- package/dist/Components/CalendarDate/CalendarDate.vue_vue_type_script_setup_true_lang.js +20 -16
- package/dist/Components/CalendarDate/calendarDate.types.d.ts +13 -8
- package/dist/Components/CalendarDate/composables/useCalendarDate.d.ts +4 -8
- package/dist/Components/CalendarDate/composables/useCalendarDate.js +105 -105
- package/dist/Components/CalendarMonth/CalendarMonth.vue.d.ts +9 -2
- package/dist/Components/CalendarMonth/CalendarMonth.vue_vue_type_script_setup_true_lang.js +19 -12
- package/dist/Components/CalendarMonth/calendarMonth.types.d.ts +14 -8
- package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +4 -7
- package/dist/Components/CalendarMonth/composables/useCalendarMonth.js +92 -89
- package/dist/Components/CalendarRange/CalendarRange.vue.d.ts +14 -6
- package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +109 -105
- package/dist/Components/CalendarRange/calendarRange.types.d.ts +12 -7
- package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +5 -9
- package/dist/Components/CalendarRange/composables/useCalendarRange.js +181 -154
- package/dist/Components/CalendarYear/CalendarYear.vue.d.ts +9 -2
- package/dist/Components/CalendarYear/CalendarYear.vue_vue_type_script_setup_true_lang.js +20 -13
- package/dist/Components/CalendarYear/calendarYear.types.d.ts +12 -6
- package/dist/Components/CalendarYear/composables/useCalendarYear.d.ts +4 -7
- package/dist/Components/CalendarYear/composables/useCalendarYear.js +91 -88
- package/dist/Components/Carousel/composables/useCarousel.js +117 -117
- package/dist/Components/ColorField/ColorField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/ColorPicker/ColorPicker.vue.d.ts +9 -2
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/Components/ColorPicker/colorPicker.types.d.ts +12 -7
- package/dist/Components/ColorPicker/composables/useColorPicker.d.ts +3 -3
- package/dist/Components/ColorPicker/composables/useColorPicker.js +150 -150
- package/dist/Components/DateField/DateField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/DatePicker/DatePicker.vue.d.ts +12 -4
- package/dist/Components/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +55 -51
- package/dist/Components/DatePicker/composables/useDatePicker.d.ts +3 -3
- package/dist/Components/DatePicker/composables/useDatePicker.js +52 -25
- package/dist/Components/DatePicker/datePicker.types.d.ts +12 -7
- package/dist/Components/DateRangeField/DateRangeField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/DateRangePicker/DateRangePicker.vue.d.ts +12 -4
- package/dist/Components/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +54 -50
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.d.ts +3 -3
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.js +26 -26
- package/dist/Components/DateRangePicker/dateRangePicker.types.d.ts +12 -7
- package/dist/Components/DateTimeField/DateTimeField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/DateTimePicker/DateTimePicker.vue.d.ts +9 -2
- package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +82 -78
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.d.ts +3 -3
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.js +64 -63
- package/dist/Components/DateTimePicker/dateTimePicker.types.d.ts +12 -7
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue.d.ts +12 -4
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +110 -106
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.d.ts +3 -3
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.js +71 -70
- package/dist/Components/DateTimeRangePicker/dateTimeRangePicker.types.d.ts +12 -7
- package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/FileUpload/fileUpload.types.d.ts +1 -1
- package/dist/Components/Rating/Rating.js +5 -0
- package/dist/Components/Rating/Rating.vue.d.ts +20 -0
- package/dist/Components/Rating/Rating.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/Components/Rating/composables/useRating.d.ts +112 -0
- package/dist/Components/Rating/composables/useRating.js +190 -0
- package/dist/Components/Rating/index.d.ts +4 -0
- package/dist/Components/Rating/index.js +3 -0
- package/dist/Components/Rating/rating.types.d.ts +107 -0
- package/dist/Components/Sidebar/composables/useSidebar.js +1 -1
- package/dist/Components/Slider/composables/useSlider.d.ts +1 -1
- package/dist/Components/TimeField/TimeField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/TimePanel/TimePanel.vue.d.ts +10 -2
- package/dist/Components/TimePanel/TimePanel.vue_vue_type_script_setup_true_lang.js +37 -34
- package/dist/Components/TimePanel/composables/useTimePanel.d.ts +5 -5
- package/dist/Components/TimePanel/composables/useTimePanel.js +108 -109
- package/dist/Components/TimePanel/timePanel.types.d.ts +10 -4
- package/dist/Components/TimePicker/TimePicker.vue.d.ts +10 -2
- package/dist/Components/TimePicker/TimePicker.vue_vue_type_script_setup_true_lang.js +46 -42
- package/dist/Components/TimePicker/composables/useTimePicker.d.ts +3 -3
- package/dist/Components/TimePicker/composables/useTimePicker.js +36 -36
- package/dist/Components/TimePicker/timePicker.types.d.ts +12 -7
- package/dist/Components/TimeRangeField/TimeRangeField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue.d.ts +12 -4
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js +72 -68
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.d.ts +4 -4
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.js +87 -87
- package/dist/Components/TimeRangePicker/timeRangePicker.types.d.ts +12 -7
- package/dist/index.d.ts +2 -0
- package/dist/index.js +69 -67
- package/docs/README.md +1 -0
- package/docs/components/BaseField.md +3 -3
- package/docs/components/Calendar.md +0 -1
- package/docs/components/CalendarDate.md +0 -1
- package/docs/components/CalendarMonth.md +0 -1
- package/docs/components/CalendarRange.md +0 -1
- package/docs/components/CalendarYear.md +0 -1
- package/docs/components/ColorPicker.md +13 -14
- package/docs/components/DatePicker.md +0 -1
- package/docs/components/DateRangePicker.md +0 -1
- package/docs/components/DateTimePicker.md +0 -1
- package/docs/components/DateTimeRangePicker.md +0 -1
- package/docs/components/Rating.md +86 -0
- package/docs/components/RichTextEditor.md +3 -3
- package/docs/components/TimePanel.md +0 -1
- package/docs/components/TimePicker.md +0 -1
- package/docs/components/TimeRangePicker.md +0 -1
- package/package.json +2 -12
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { presentSlotNames as e } from "../../Utils/slotOrProp.js";
|
|
2
|
+
import t from "../Icon/Icon.js";
|
|
3
|
+
import { BASE_FIELD_CHROME_SLOT_NAMES as n } from "../BaseField/baseField.types.js";
|
|
4
|
+
import r from "../BaseField/BaseField.js";
|
|
5
|
+
import { useRating as i } from "./composables/useRating.js";
|
|
6
|
+
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeModels as p, mergeProps as m, normalizeProps as h, normalizeStyle as g, openBlock as _, renderList as v, renderSlot as y, unref as b, useModel as x, withCtx as S } from "vue";
|
|
7
|
+
//#region src/Components/Rating/Rating.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var C = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "relative inline-flex"
|
|
11
|
+
}, w = /*@__PURE__*/ d({
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
__name: "Rating",
|
|
14
|
+
props: /*@__PURE__*/ p({
|
|
15
|
+
classes: {},
|
|
16
|
+
color: {},
|
|
17
|
+
customProps: {},
|
|
18
|
+
defaultValue: {},
|
|
19
|
+
icon: {},
|
|
20
|
+
max: {},
|
|
21
|
+
name: {},
|
|
22
|
+
size: {},
|
|
23
|
+
slots: {},
|
|
24
|
+
step: {},
|
|
25
|
+
controlId: {},
|
|
26
|
+
corner: {},
|
|
27
|
+
description: {},
|
|
28
|
+
disabled: { type: Boolean },
|
|
29
|
+
error: { type: Boolean },
|
|
30
|
+
errorMessage: {},
|
|
31
|
+
hideErrorMessage: { type: Boolean },
|
|
32
|
+
label: {},
|
|
33
|
+
readonly: { type: Boolean },
|
|
34
|
+
required: { type: Boolean },
|
|
35
|
+
showDescriptionOnError: { type: Boolean }
|
|
36
|
+
}, {
|
|
37
|
+
modelValue: {},
|
|
38
|
+
modelModifiers: {}
|
|
39
|
+
}),
|
|
40
|
+
emits: ["update:modelValue"],
|
|
41
|
+
setup(d) {
|
|
42
|
+
let p = d, w = x(d, "modelValue"), { icon: T, items: E, inputBind: D, groupBind: O, baseField: k, setItemRef: A } = i(p, w);
|
|
43
|
+
return (i, d) => (_(), o(r, { field: b(k) }, l({
|
|
44
|
+
default: S(() => [c("div", h(f(b(O))), [(_(!0), s(a, null, v(b(E), (e) => (_(), s("button", m({ key: e.value }, { ref_for: !0 }, e.itemBind, {
|
|
45
|
+
ref_for: !0,
|
|
46
|
+
ref: (t) => b(A)(e.value, t)
|
|
47
|
+
}), [e.fill > 0 && e.fill < 1 ? (_(), s("span", C, [u(b(t), m({ ref_for: !0 }, e.emptyIconBind, { icon: b(T) }), null, 16, ["icon"]), c("span", {
|
|
48
|
+
style: g({ width: `${e.fill * 100}%` }),
|
|
49
|
+
class: "absolute inset-y-0 inset-s-0 overflow-hidden"
|
|
50
|
+
}, [u(b(t), m({ ref_for: !0 }, e.filledIconBind, { icon: b(T) }), null, 16, ["icon"])], 4)])) : (_(), o(b(t), m({
|
|
51
|
+
key: 1,
|
|
52
|
+
ref_for: !0
|
|
53
|
+
}, e.iconBind, { icon: b(T) }), null, 16, ["icon"]))], 16))), 128)), c("input", h(f(b(D))), null, 16)], 16)]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, [v(b(e)(b(n), i.$slots), (e) => ({
|
|
56
|
+
name: e,
|
|
57
|
+
fn: S((t) => [y(i.$slots, e, h(f(t || {})))])
|
|
58
|
+
}))]), 1032, ["field"]));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { w as default };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import { RatingValue } from '@bridge-ui/core/Domain';
|
|
3
|
+
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core/Utils';
|
|
4
|
+
import { RatingOwnProps } from '../rating.types';
|
|
5
|
+
import { mergePartBind } from '../../../Utils';
|
|
6
|
+
export declare const ratingBridgeKeys: readonly ["max", "icon", "name", "step", "color", "defaultValue", "size", "error", "label", "corner", "classes", "disabled", "readonly", "required", "controlId", "customProps", "description", "errorMessage", "hideErrorMessage", "showDescriptionOnError"];
|
|
7
|
+
type RatingLibDefaults = LibDefaultsShape<RatingOwnProps, "max" | "icon" | "size" | "step" | "color">;
|
|
8
|
+
type RatingMerged = MergeLibDefaults<RatingOwnProps, RatingLibDefaults>;
|
|
9
|
+
/**
|
|
10
|
+
* One rating item with the binds for its button and icon.
|
|
11
|
+
*/
|
|
12
|
+
export type RatingItemState = {
|
|
13
|
+
emptyIconBind: ReturnType<typeof mergePartBind>;
|
|
14
|
+
fill: number;
|
|
15
|
+
filledIconBind: ReturnType<typeof mergePartBind>;
|
|
16
|
+
iconBind: ReturnType<typeof mergePartBind>;
|
|
17
|
+
itemBind: ReturnType<typeof mergePartBind>;
|
|
18
|
+
value: number;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Composes rating state, field chrome via {@link useBaseField}, and item handlers.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useRating(props: MaybeRefOrGetter<RatingOwnProps>, model: Ref<null | number | undefined>, libDefaults?: RatingLibDefaults): {
|
|
24
|
+
icon: import('vue').ComputedRef<NonNullable<import('../../..').IconSource | undefined>>;
|
|
25
|
+
items: import('vue').ComputedRef<{
|
|
26
|
+
fill: number;
|
|
27
|
+
iconBind: import('@bridge-ui/core/Utils').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {
|
|
28
|
+
readonly "aria-hidden": true;
|
|
29
|
+
}>;
|
|
30
|
+
itemBind: import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').ButtonHTMLAttributes | undefined, {
|
|
31
|
+
role: string;
|
|
32
|
+
type: "button";
|
|
33
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
34
|
+
id: string;
|
|
35
|
+
disabled: true | undefined;
|
|
36
|
+
tabIndex: 0 | -1;
|
|
37
|
+
"aria-checked": boolean;
|
|
38
|
+
onClick: (event: MouseEvent) => void;
|
|
39
|
+
onMousemove: (event: MouseEvent) => void;
|
|
40
|
+
onMouseenter: (event: MouseEvent) => void;
|
|
41
|
+
"aria-label": string;
|
|
42
|
+
}>;
|
|
43
|
+
value: number;
|
|
44
|
+
emptyIconBind: import('@bridge-ui/core/Utils').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {
|
|
45
|
+
readonly "aria-hidden": true;
|
|
46
|
+
}>;
|
|
47
|
+
filledIconBind: import('@bridge-ui/core/Utils').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {
|
|
48
|
+
readonly "aria-hidden": true;
|
|
49
|
+
}>;
|
|
50
|
+
}[]>;
|
|
51
|
+
value: import('vue').ComputedRef<RatingValue>;
|
|
52
|
+
merged: import('vue').ComputedRef<RatingMerged>;
|
|
53
|
+
inputBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').InputHTMLAttributes | undefined, {
|
|
54
|
+
tabIndex: number;
|
|
55
|
+
type: string;
|
|
56
|
+
"aria-hidden": boolean;
|
|
57
|
+
name: string | undefined;
|
|
58
|
+
value: string | number;
|
|
59
|
+
disabled: true | undefined;
|
|
60
|
+
}>>;
|
|
61
|
+
groupBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {
|
|
62
|
+
role: string;
|
|
63
|
+
"aria-label": string | undefined;
|
|
64
|
+
"aria-describedby": string | undefined;
|
|
65
|
+
"aria-disabled": true | undefined;
|
|
66
|
+
"aria-readonly": true | undefined;
|
|
67
|
+
"aria-invalid": true | undefined;
|
|
68
|
+
onMouseleave: () => void;
|
|
69
|
+
"aria-required": true | undefined;
|
|
70
|
+
}>>;
|
|
71
|
+
baseField: {
|
|
72
|
+
slots: Readonly<{
|
|
73
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
merged: import('vue').ComputedRef<Omit<Omit<import('../../BaseField').BaseFieldOwnProps, "field">, "error" | "size" | "hideErrorMessage"> & {
|
|
76
|
+
error: NonNullable<boolean | undefined>;
|
|
77
|
+
size: NonNullable<keyof import('@bridge-ui/core/Tokens').BaseFieldSize | undefined>;
|
|
78
|
+
hideErrorMessage: NonNullable<boolean | undefined>;
|
|
79
|
+
}>;
|
|
80
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
|
|
81
|
+
slots?: import('../../BaseField').BaseFieldSlots | undefined;
|
|
82
|
+
class: string;
|
|
83
|
+
}>>;
|
|
84
|
+
errorBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
85
|
+
groupBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
|
|
86
|
+
role: string;
|
|
87
|
+
id: string;
|
|
88
|
+
"aria-describedby": string | undefined;
|
|
89
|
+
"aria-disabled": true | undefined;
|
|
90
|
+
"aria-invalid": true | undefined;
|
|
91
|
+
}>>;
|
|
92
|
+
controlId: import('vue').ComputedRef<string>;
|
|
93
|
+
headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
94
|
+
isDisabled: import('vue').ComputedRef<boolean>;
|
|
95
|
+
isReadonly: import('vue').ComputedRef<boolean>;
|
|
96
|
+
sizeClasses: import('vue').ComputedRef<import('@bridge-ui/core/Tokens').BaseFieldSizeItem | undefined>;
|
|
97
|
+
endSlotBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
98
|
+
invalidated: import('vue').ComputedRef<boolean>;
|
|
99
|
+
startSlotBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
100
|
+
mergedClasses: import('vue').ComputedRef<Partial<import('../../BaseField').BaseFieldClasses>>;
|
|
101
|
+
ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
|
|
102
|
+
fieldLabelProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
103
|
+
descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
104
|
+
fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
105
|
+
showErrorMessageRow: import('vue').ComputedRef<boolean>;
|
|
106
|
+
showDescriptionContent: import('vue').ComputedRef<boolean>;
|
|
107
|
+
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
108
|
+
};
|
|
109
|
+
setItemRef: (item: number, node: unknown) => void;
|
|
110
|
+
};
|
|
111
|
+
export type UseRatingReturn = ReturnType<typeof useRating>;
|
|
112
|
+
export {};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { useBridgeUI as e } from "../../../Provider/useBridgeUI.js";
|
|
2
|
+
import { useResolveMessage as t } from "../../../Adapters/I18n/useI18nAdapter.js";
|
|
3
|
+
import { mergePartBind as n, useBridgeUIComponent as r, useBridgeUIMergedRegistryClasses as i } from "../../../Utils/index.js";
|
|
4
|
+
import { baseFieldBridgeKeys as a, useBaseField as o } from "../../BaseField/composables/useBaseField.js";
|
|
5
|
+
import { computed as s, ref as c, toValue as l, useAttrs as u } from "vue";
|
|
6
|
+
import { get as d, isString as f, isUndefined as p, omit as ee, pick as te } from "es-toolkit/compat";
|
|
7
|
+
import { clampRatingValue as m, getRatingCurrentItem as h, getRatingItemFill as g, getRatingItems as _, getRatingTabIndex as v, getRatingValueFromKey as y, getRatingValueFromPointer as b, normalizeRatingMax as x, normalizeRatingStep as ne, resolveRatingSelection as re } from "@bridge-ui/core/Domain";
|
|
8
|
+
import { ratingColorProps as ie, ratingSizeProps as ae } from "@bridge-ui/core/Tokens";
|
|
9
|
+
import { cn as S, getColorToken as oe, mergeBridgeUILayeredClasses as C, splitComponentProps as se } from "@bridge-ui/core/Utils";
|
|
10
|
+
//#region src/Components/Rating/composables/useRating.ts
|
|
11
|
+
var w = [
|
|
12
|
+
"max",
|
|
13
|
+
"icon",
|
|
14
|
+
"name",
|
|
15
|
+
"step",
|
|
16
|
+
"color",
|
|
17
|
+
"defaultValue",
|
|
18
|
+
...a
|
|
19
|
+
];
|
|
20
|
+
function T(e) {
|
|
21
|
+
if (!e) return;
|
|
22
|
+
let { icon: t, item: n, input: r, ...i } = e;
|
|
23
|
+
return i;
|
|
24
|
+
}
|
|
25
|
+
function E(E, D, O = {
|
|
26
|
+
max: 5,
|
|
27
|
+
step: 1,
|
|
28
|
+
size: "md",
|
|
29
|
+
icon: "star",
|
|
30
|
+
color: "primary"
|
|
31
|
+
}) {
|
|
32
|
+
let ce = u(), le = e(), ue = t(), k = c(null), A = c([]), j = s(() => se({
|
|
33
|
+
bridgeKeys: w,
|
|
34
|
+
props: {
|
|
35
|
+
...ce,
|
|
36
|
+
...l(E)
|
|
37
|
+
}
|
|
38
|
+
})), { merged: M, entry: N } = r({
|
|
39
|
+
libDefaults: O,
|
|
40
|
+
componentName: "Rating",
|
|
41
|
+
props: () => j.value.componentProps
|
|
42
|
+
}), P = i({
|
|
43
|
+
entry: N,
|
|
44
|
+
props: () => j.value.componentProps
|
|
45
|
+
}), F = s(() => M.value.customProps), I = s(() => T(M.value.customProps)), L = s(() => ({
|
|
46
|
+
...te(j.value.componentProps, a),
|
|
47
|
+
customProps: I.value,
|
|
48
|
+
id: j.value.inheritedAttrs.id,
|
|
49
|
+
class: j.value.inheritedAttrs.class,
|
|
50
|
+
...ee(j.value.inheritedAttrs, ["class", "id"])
|
|
51
|
+
})), R = o(() => L.value, {
|
|
52
|
+
size: "md",
|
|
53
|
+
hideErrorMessage: !1
|
|
54
|
+
}, {
|
|
55
|
+
componentName: "Rating",
|
|
56
|
+
labelHtmlFor: (e) => `${e}-0`
|
|
57
|
+
}), { controlId: z, isDisabled: B, isReadonly: V, invalidated: H, ariaDescribedBy: de } = R, U = s(() => x(M.value.max)), W = s(() => ne(M.value.step)), G = s(() => !p(D.value)), K = c(m(l(E).defaultValue ?? null, x(l(E).max ?? O.max))), q = s(() => {
|
|
58
|
+
let e = G.value ? D.value : K.value;
|
|
59
|
+
return m(e, U.value);
|
|
60
|
+
}), J = s(() => le?.global.value.direction === "rtl"), fe = s(() => B.value || V.value || k.value == null ? q.value : k.value);
|
|
61
|
+
function Y(e) {
|
|
62
|
+
let t = m(e, U.value);
|
|
63
|
+
G.value || (K.value = t), D.value = t;
|
|
64
|
+
}
|
|
65
|
+
function X(e, t) {
|
|
66
|
+
let n = t?.currentTarget;
|
|
67
|
+
if (!t || !(n instanceof HTMLElement)) return e;
|
|
68
|
+
let r = n.getBoundingClientRect();
|
|
69
|
+
if (!(r.width > 0)) return e;
|
|
70
|
+
let i = (t.clientX - r.left) / r.width;
|
|
71
|
+
return b({
|
|
72
|
+
item: e,
|
|
73
|
+
step: W.value,
|
|
74
|
+
ratio: J.value ? 1 - i : i
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function pe(e) {
|
|
78
|
+
if (B.value || V.value) return;
|
|
79
|
+
let t = re(q.value, e);
|
|
80
|
+
t ?? (k.value = null), Y(t);
|
|
81
|
+
}
|
|
82
|
+
function Z(e) {
|
|
83
|
+
B.value || V.value || (k.value = e);
|
|
84
|
+
}
|
|
85
|
+
function Q(e) {
|
|
86
|
+
let t = h(e) ?? 1;
|
|
87
|
+
A.value[t - 1]?.focus();
|
|
88
|
+
}
|
|
89
|
+
function me(e) {
|
|
90
|
+
if (B.value) return;
|
|
91
|
+
let t = y({
|
|
92
|
+
max: U.value,
|
|
93
|
+
key: e.key,
|
|
94
|
+
step: W.value,
|
|
95
|
+
value: q.value,
|
|
96
|
+
direction: J.value ? "rtl" : "ltr"
|
|
97
|
+
});
|
|
98
|
+
if (t !== void 0) {
|
|
99
|
+
if (e.preventDefault(), V.value) {
|
|
100
|
+
Q(t);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
t !== q.value && (t ?? (k.value = null), Y(t)), Q(t);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
let he = s(() => {
|
|
107
|
+
let e = C(ae, N.value?.tokens?.size);
|
|
108
|
+
return d(e, M.value.size ?? "md");
|
|
109
|
+
}), $ = s(() => {
|
|
110
|
+
let e = C(ie, N.value?.tokens?.color);
|
|
111
|
+
return oe({
|
|
112
|
+
tokens: e,
|
|
113
|
+
color: M.value.color,
|
|
114
|
+
invalid: H.value
|
|
115
|
+
});
|
|
116
|
+
}), ge = s(() => {
|
|
117
|
+
let e = R.merged.value.label, t = f(e) && e.length > 0 ? e : void 0;
|
|
118
|
+
return n({}, {
|
|
119
|
+
role: "radiogroup",
|
|
120
|
+
"aria-label": t,
|
|
121
|
+
"aria-describedby": de.value,
|
|
122
|
+
"aria-disabled": B.value || void 0,
|
|
123
|
+
"aria-readonly": V.value || void 0,
|
|
124
|
+
"aria-invalid": H.value || void 0,
|
|
125
|
+
onMouseleave: () => {
|
|
126
|
+
k.value = null;
|
|
127
|
+
},
|
|
128
|
+
"aria-required": R.merged.value.required || void 0
|
|
129
|
+
}, S({ "inline-flex items-center gap-0.5": !0 }));
|
|
130
|
+
}), _e = s(() => n(F.value?.input, {
|
|
131
|
+
tabIndex: -1,
|
|
132
|
+
type: "hidden",
|
|
133
|
+
"aria-hidden": !0,
|
|
134
|
+
name: M.value.name,
|
|
135
|
+
value: q.value ?? "",
|
|
136
|
+
disabled: B.value || void 0
|
|
137
|
+
}, S({ [P.value.input ?? ""]: !0 }))), ve = s(() => _(U.value).map((e) => {
|
|
138
|
+
let t = g(e, fe.value), r = n(F.value?.item, {
|
|
139
|
+
role: "radio",
|
|
140
|
+
type: "button",
|
|
141
|
+
onKeydown: me,
|
|
142
|
+
id: `${z.value}-${e - 1}`,
|
|
143
|
+
disabled: B.value || void 0,
|
|
144
|
+
tabIndex: v(e, q.value),
|
|
145
|
+
"aria-checked": h(q.value) === e,
|
|
146
|
+
onClick: (t) => {
|
|
147
|
+
pe(X(e, t));
|
|
148
|
+
},
|
|
149
|
+
onMousemove: (t) => {
|
|
150
|
+
Z(X(e, t));
|
|
151
|
+
},
|
|
152
|
+
onMouseenter: (t) => {
|
|
153
|
+
Z(X(e, t));
|
|
154
|
+
},
|
|
155
|
+
"aria-label": ue("{{count}} star | {{count}} stars", e, { count: e })
|
|
156
|
+
}, S({
|
|
157
|
+
"inline-flex items-center justify-center p-0.5 outline-none transition focus-visible:ring-2 focus-visible:ring-offset-1": !0,
|
|
158
|
+
"cursor-pointer": !B.value && !V.value,
|
|
159
|
+
[$.value?.focus ?? ""]: !0,
|
|
160
|
+
[P.value.item ?? ""]: !0
|
|
161
|
+
})), i = { "aria-hidden": !0 }, a = (e) => S({
|
|
162
|
+
"fill-current transition-colors": !0,
|
|
163
|
+
[he.value ?? ""]: !0,
|
|
164
|
+
[e ? $.value?.filled ?? "" : $.value?.empty ?? ""]: !0,
|
|
165
|
+
[P.value.icon ?? ""]: !0
|
|
166
|
+
});
|
|
167
|
+
return {
|
|
168
|
+
fill: t,
|
|
169
|
+
iconBind: n(F.value?.icon, i, a(t === 1)),
|
|
170
|
+
itemBind: r,
|
|
171
|
+
value: e,
|
|
172
|
+
emptyIconBind: n(F.value?.icon, i, a(!1)),
|
|
173
|
+
filledIconBind: n(F.value?.icon, i, S(a(!0), "max-w-none"))
|
|
174
|
+
};
|
|
175
|
+
}));
|
|
176
|
+
return {
|
|
177
|
+
icon: s(() => M.value.icon),
|
|
178
|
+
items: ve,
|
|
179
|
+
value: q,
|
|
180
|
+
merged: M,
|
|
181
|
+
inputBind: _e,
|
|
182
|
+
groupBind: ge,
|
|
183
|
+
baseField: R,
|
|
184
|
+
setItemRef: (e, t) => {
|
|
185
|
+
A.value[e - 1] = t instanceof HTMLButtonElement ? t : null;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
export { w as ratingBridgeKeys, E as useRating };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { useRating } from './composables/useRating';
|
|
2
|
+
export type { RatingItemState } from './composables/useRating';
|
|
3
|
+
export type { RatingClasses, RatingColorOverrides, RatingCustomProps, RatingEmits, RatingOwnProps, RatingProps, RatingSizeOverrides, RatingSlots, } from './rating.types';
|
|
4
|
+
export { default as Rating } from './Rating.vue';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
|
+
import { RatingColor, RatingSize } from '@bridge-ui/core/Tokens';
|
|
3
|
+
import { MergeHtmlProps, MergeProps } from '@bridge-ui/core/Utils';
|
|
4
|
+
import { IconSource } from '../../Adapters/Icon';
|
|
5
|
+
import { BaseFieldClasses, BaseFieldCustomProps, BaseFieldOwnProps, BaseFieldSlots } from '../BaseField/baseField.types';
|
|
6
|
+
import { IconProps } from '../Icon';
|
|
7
|
+
export interface RatingSizeOverrides {}
|
|
8
|
+
export interface RatingColorOverrides {}
|
|
9
|
+
export interface RatingClasses extends BaseFieldClasses {
|
|
10
|
+
/**
|
|
11
|
+
* Classes merged onto each icon.
|
|
12
|
+
*/
|
|
13
|
+
icon?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Classes merged onto the hidden input.
|
|
16
|
+
*/
|
|
17
|
+
input?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Classes merged onto each rating item.
|
|
20
|
+
*/
|
|
21
|
+
item?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface RatingCustomProps extends BaseFieldCustomProps {
|
|
24
|
+
/**
|
|
25
|
+
* Props forwarded to each `Icon`. The icon source stays on `icon`.
|
|
26
|
+
*/
|
|
27
|
+
icon?: Partial<Omit<IconProps, "icon">>;
|
|
28
|
+
/**
|
|
29
|
+
* Props forwarded to the hidden input.
|
|
30
|
+
*/
|
|
31
|
+
input?: InputHTMLAttributes;
|
|
32
|
+
/**
|
|
33
|
+
* Props forwarded to each rating item.
|
|
34
|
+
*/
|
|
35
|
+
item?: ButtonHTMLAttributes;
|
|
36
|
+
}
|
|
37
|
+
export interface RatingEmits {
|
|
38
|
+
/**
|
|
39
|
+
* Emitted when `v-model` should update. `null` clears the rating.
|
|
40
|
+
*/
|
|
41
|
+
"update:modelValue": [value: null | number];
|
|
42
|
+
}
|
|
43
|
+
export interface RatingOwnProps extends Omit<BaseFieldOwnProps, "field" | "slots" | "classes" | "children" | "customProps"> {
|
|
44
|
+
/**
|
|
45
|
+
* Classes for the field chrome and the rating parts.
|
|
46
|
+
*
|
|
47
|
+
* @default undefined
|
|
48
|
+
*/
|
|
49
|
+
classes?: RatingClasses;
|
|
50
|
+
/**
|
|
51
|
+
* The color applied to selected icons.
|
|
52
|
+
*
|
|
53
|
+
* @default "primary"
|
|
54
|
+
*/
|
|
55
|
+
color?: MergeProps<RatingColor, RatingColorOverrides>;
|
|
56
|
+
/**
|
|
57
|
+
* Extra props for internal parts.
|
|
58
|
+
*
|
|
59
|
+
* @default undefined
|
|
60
|
+
*/
|
|
61
|
+
customProps?: RatingCustomProps;
|
|
62
|
+
/**
|
|
63
|
+
* Initial value for uncontrolled usage. Fractions are kept.
|
|
64
|
+
*
|
|
65
|
+
* @default undefined
|
|
66
|
+
*/
|
|
67
|
+
defaultValue?: null | number;
|
|
68
|
+
/**
|
|
69
|
+
* Icon used for every item. Semantic name `star` is the default.
|
|
70
|
+
*
|
|
71
|
+
* @default "star"
|
|
72
|
+
*/
|
|
73
|
+
icon?: IconSource;
|
|
74
|
+
/**
|
|
75
|
+
* Number of items. The value runs from above 0 through `max`.
|
|
76
|
+
*
|
|
77
|
+
* @default 5
|
|
78
|
+
*/
|
|
79
|
+
max?: number;
|
|
80
|
+
/**
|
|
81
|
+
* The `name` of the hidden input submitted with the form.
|
|
82
|
+
*
|
|
83
|
+
* @default undefined
|
|
84
|
+
*/
|
|
85
|
+
name?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Size of the icons and of the field label (`2xs` … `2xl`).
|
|
88
|
+
*
|
|
89
|
+
* @default "md"
|
|
90
|
+
*/
|
|
91
|
+
size?: MergeProps<RatingSize, RatingSizeOverrides>;
|
|
92
|
+
/**
|
|
93
|
+
* Chrome slots.
|
|
94
|
+
*
|
|
95
|
+
* @default undefined
|
|
96
|
+
*/
|
|
97
|
+
slots?: RatingSlots;
|
|
98
|
+
/**
|
|
99
|
+
* Increment for pointer and keyboard selection.
|
|
100
|
+
* `1` selects a whole item. `0.5` selects each half.
|
|
101
|
+
*
|
|
102
|
+
* @default 1
|
|
103
|
+
*/
|
|
104
|
+
step?: number;
|
|
105
|
+
}
|
|
106
|
+
export interface RatingSlots extends BaseFieldSlots {}
|
|
107
|
+
export type RatingProps = MergeHtmlProps<RatingOwnProps, Omit<HTMLAttributes, "color" | "defaultValue">>;
|
|
@@ -2,7 +2,7 @@ import { SIDEBAR_INJECTION_KEY as e } from "../sidebarInjectionKey.js";
|
|
|
2
2
|
import { inject as t } from "vue";
|
|
3
3
|
//#region src/Components/Sidebar/composables/useSidebar.ts
|
|
4
4
|
function n() {
|
|
5
|
-
let n = t(e);
|
|
5
|
+
let n = t(e, null);
|
|
6
6
|
if (!n) throw Error("useSidebar must be used within a SidebarProvider");
|
|
7
7
|
return n;
|
|
8
8
|
}
|
|
@@ -14,7 +14,7 @@ export type UseSliderOptions = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Composes slider state, field chrome via BaseField, and pointer/keyboard handlers.
|
|
16
16
|
*/
|
|
17
|
-
export declare function useSlider(props: MaybeRefOrGetter<SliderOwnProps>, libDefaults: SliderLibDefaults,
|
|
17
|
+
export declare function useSlider(props: MaybeRefOrGetter<SliderOwnProps>, libDefaults: SliderLibDefaults, model: Ref<number | SliderRangeValue>, options?: UseSliderOptions): {
|
|
18
18
|
bounds: import('vue').ComputedRef<import('@bridge-ui/core/Domain').SliderBounds>;
|
|
19
19
|
merged: import('vue').ComputedRef<SliderMerged>;
|
|
20
20
|
barBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", Omit<import('vue').HTMLAttributes, "style">, {
|
|
@@ -97,9 +97,9 @@ var A = { class: "flex min-w-0 flex-1 items-center gap-1" }, j = ["aria-label"],
|
|
|
97
97
|
}, {
|
|
98
98
|
default: D(() => [m(T(c), {
|
|
99
99
|
fill: T(z),
|
|
100
|
-
value: T(K),
|
|
101
100
|
class: y(T(J)),
|
|
102
101
|
ampm: T(V).ampm,
|
|
102
|
+
"model-value": T(K),
|
|
103
103
|
"show-footer": T(q),
|
|
104
104
|
"read-only": F.readonly,
|
|
105
105
|
"max-time": T(V).maxTime,
|
|
@@ -121,9 +121,9 @@ var A = { class: "flex min-w-0 flex-1 items-center gap-1" }, j = ["aria-label"],
|
|
|
121
121
|
key: "0"
|
|
122
122
|
} : void 0]), 1032, [
|
|
123
123
|
"fill",
|
|
124
|
-
"value",
|
|
125
124
|
"class",
|
|
126
125
|
"ampm",
|
|
126
|
+
"model-value",
|
|
127
127
|
"show-footer",
|
|
128
128
|
"read-only",
|
|
129
129
|
"max-time",
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { TimeValue } from '@bridge-ui/core/Domain';
|
|
1
2
|
import { TimePanelOwnProps } from './timePanel.types';
|
|
2
|
-
|
|
3
|
+
type __VLS_Props = TimePanelOwnProps;
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: null | TimeValue;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
9
|
change: (value: Date | null) => any;
|
|
4
|
-
|
|
10
|
+
"update:modelValue": (...args: unknown[]) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
5
12
|
onChange?: ((value: Date | null) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
6
14
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
15
|
declare const _default: typeof __VLS_export;
|
|
8
16
|
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useOptionalModel as e } from "../../Utils/useOptionalModel.js";
|
|
2
|
+
import { useTimePanel as t } from "./composables/useTimePanel.js";
|
|
3
|
+
import { Fragment as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, guardReactiveProps as s, mergeModels as c, mergeProps as l, nextTick as u, normalizeProps as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, useModel as y, watch as b } from "vue";
|
|
4
|
+
import { observeTimePanelSelectedScroll as x } from "@bridge-ui/core/Domain";
|
|
4
5
|
//#region src/Components/TimePanel/TimePanel.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var S = /*@__PURE__*/ o({
|
|
6
7
|
inheritAttrs: !1,
|
|
7
8
|
__name: "TimePanel",
|
|
8
|
-
props: {
|
|
9
|
+
props: /*@__PURE__*/ c({
|
|
9
10
|
ampm: { type: Boolean },
|
|
10
11
|
classes: {},
|
|
11
12
|
color: {},
|
|
@@ -20,44 +21,46 @@ var y = /*@__PURE__*/ a({
|
|
|
20
21
|
readOnly: { type: Boolean },
|
|
21
22
|
rounded: {},
|
|
22
23
|
showSeconds: { type: Boolean },
|
|
23
|
-
timeZone: {}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
timeZone: {}
|
|
25
|
+
}, {
|
|
26
|
+
modelValue: {},
|
|
27
|
+
modelModifiers: {}
|
|
28
|
+
}),
|
|
29
|
+
emits: /*@__PURE__*/ c(["change", "update:modelValue"], ["update:modelValue"]),
|
|
30
|
+
setup(o, { emit: c }) {
|
|
31
|
+
let S = c, C = y(o, "modelValue"), w = h(null), T = o, E = h(null), D = e(C, E), { rootBind: O, hourItems: k, columnBind: A, getHourBind: j, minuteItems: M, secondItems: N, showSeconds: P, showMeridiem: F, getMinuteBind: I, getSecondBind: L, meridiemItems: R, getMeridiemBind: z } = t(T, {
|
|
29
32
|
ampm: !1,
|
|
30
33
|
interval: 1,
|
|
31
34
|
rounded: "md",
|
|
32
35
|
color: "primary",
|
|
33
36
|
showSeconds: !1
|
|
34
|
-
},
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
let e =
|
|
38
|
-
e && (
|
|
37
|
+
}, D, S), B = null;
|
|
38
|
+
function V() {
|
|
39
|
+
B?.(), B = null;
|
|
40
|
+
let e = w.value;
|
|
41
|
+
e && (B = x(e));
|
|
39
42
|
}
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
}),
|
|
43
|
-
|
|
44
|
-
}),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
return p(() => {
|
|
44
|
+
u(V);
|
|
45
|
+
}), f(() => {
|
|
46
|
+
B?.(), B = null;
|
|
47
|
+
}), b(() => [
|
|
48
|
+
k.value,
|
|
49
|
+
M.value,
|
|
50
|
+
N.value,
|
|
51
|
+
R.value
|
|
49
52
|
], () => {
|
|
50
|
-
|
|
51
|
-
}), (e,
|
|
53
|
+
u(V);
|
|
54
|
+
}), (e, t) => (m(), i("div", l({
|
|
52
55
|
ref_key: "rootRef",
|
|
53
|
-
ref:
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
ref: w
|
|
57
|
+
}, v(O)), [
|
|
58
|
+
a("div", d(s(v(A))), [(m(!0), i(n, null, g(v(k), (e) => (m(), i("button", l({ key: `hour-${e.value}` }, { ref_for: !0 }, v(j)(e)), _(e.label), 17))), 128))], 16),
|
|
59
|
+
a("div", d(s(v(A))), [(m(!0), i(n, null, g(v(M), (e) => (m(), i("button", l({ key: `minute-${e.value}` }, { ref_for: !0 }, v(I)(e)), _(e.label), 17))), 128))], 16),
|
|
60
|
+
v(P) ? (m(), i("div", d(l({ key: 0 }, v(A))), [(m(!0), i(n, null, g(v(N), (e) => (m(), i("button", l({ key: `second-${e.value}` }, { ref_for: !0 }, v(L)(e)), _(e.label), 17))), 128))], 16)) : r("", !0),
|
|
61
|
+
v(F) ? (m(), i("div", d(l({ key: 1 }, v(A))), [(m(!0), i(n, null, g(v(R), (e) => (m(), i("button", l({ key: `meridiem-${e.value}` }, { ref_for: !0 }, v(z)(e)), _(e.label), 17))), 128))], 16)) : r("", !0)
|
|
59
62
|
], 16));
|
|
60
63
|
}
|
|
61
64
|
});
|
|
62
65
|
//#endregion
|
|
63
|
-
export {
|
|
66
|
+
export { S as default };
|