@humanonlyweb/ui 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +45 -2
- package/dist/components/accordion/Accordion.js +60 -0
- package/dist/components/accordion/Accordion.vue.d.ts +28 -0
- package/dist/components/accordion/AccordionItem.js +102 -0
- package/dist/components/accordion/AccordionItem.vue.d.ts +33 -0
- package/dist/components/avatar/Avatar.js +52 -0
- package/dist/components/avatar/Avatar.vue.d.ts +26 -0
- package/dist/components/avatar/AvatarGroup.js +48 -0
- package/dist/components/avatar/AvatarGroup.vue.d.ts +16 -0
- package/dist/components/button/Button.js +95 -0
- package/dist/components/button/Button.vue.d.ts +74 -0
- package/dist/components/button/IconButton.js +47 -0
- package/dist/components/button/IconButton.vue.d.ts +115 -0
- package/dist/components/checkbox/Checkbox.js +93 -0
- package/dist/components/checkbox/Checkbox.vue.d.ts +43 -0
- package/dist/components/combobox/Combobox.js +294 -0
- package/dist/components/combobox/Combobox.vue.d.ts +80 -0
- package/dist/components/context-menu/ContextMenu.js +170 -0
- package/dist/components/context-menu/ContextMenu.vue.d.ts +38 -0
- package/dist/components/dialog/ConfirmDialog.js +103 -0
- package/dist/components/dialog/ConfirmDialog.vue.d.ts +46 -0
- package/dist/components/dialog/Dialog.js +160 -0
- package/dist/components/dialog/Dialog.vue.d.ts +54 -0
- package/dist/components/field/FieldMessage.js +31 -0
- package/dist/components/input/Input.js +111 -0
- package/dist/components/input/Input.vue.d.ts +50 -0
- package/dist/components/kbd/Kbd.js +48 -0
- package/dist/components/kbd/Kbd.vue.d.ts +24 -0
- package/dist/components/menu/Menu.js +124 -0
- package/dist/components/menu/Menu.vue.d.ts +41 -0
- package/dist/components/otp-input/OtpInput.js +179 -0
- package/dist/components/otp-input/OtpInput.vue.d.ts +48 -0
- package/dist/components/popover/Popover.js +83 -0
- package/dist/components/popover/Popover.vue.d.ts +37 -0
- package/dist/components/radio-group/RadioGroup.js +125 -0
- package/dist/components/radio-group/RadioGroup.vue.d.ts +45 -0
- package/dist/components/segmented/Segmented.js +110 -0
- package/dist/components/segmented/Segmented.vue.d.ts +41 -0
- package/dist/components/select/Select.js +231 -0
- package/dist/components/select/Select.vue.d.ts +59 -0
- package/dist/components/slider/Slider.js +196 -0
- package/dist/components/slider/Slider.vue.d.ts +49 -0
- package/dist/components/spin-button/SpinButton.js +231 -0
- package/dist/components/spin-button/SpinButton.vue.d.ts +48 -0
- package/dist/components/split-button/SplitButton.js +69 -0
- package/dist/components/split-button/SplitButton.vue.d.ts +38 -0
- package/dist/components/switch/Switch.js +95 -0
- package/dist/components/switch/Switch.vue.d.ts +42 -0
- package/dist/components/table/Table.js +173 -0
- package/dist/components/table/Table.vue.d.ts +45 -0
- package/dist/components/tabs/Tabs.js +99 -0
- package/dist/components/tabs/Tabs.vue.d.ts +39 -0
- package/dist/components/textarea/Textarea.js +118 -0
- package/dist/components/textarea/Textarea.vue.d.ts +34 -0
- package/dist/components/toast/ToastItem.js +91 -0
- package/dist/components/toast/ToastItem.vue.d.ts +29 -0
- package/dist/components/toast/ToastViewport.js +56 -0
- package/dist/components/toast/ToastViewport.vue.d.ts +25 -0
- package/dist/components/toolbar/Toolbar.js +91 -0
- package/dist/components/toolbar/Toolbar.vue.d.ts +21 -0
- package/dist/components/tooltip/Tooltip.js +85 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +25 -0
- package/dist/composables/internal/env.js +5 -0
- package/dist/composables/internal/is-equal.js +14 -0
- package/dist/composables/internal/on-click-outside.js +18 -0
- package/dist/composables/internal/standard-schema.d.ts +38 -0
- package/dist/composables/internal/use-document-visibility.js +16 -0
- package/dist/composables/internal/use-event-listener.js +24 -0
- package/dist/composables/internal/use-interval-fn.js +21 -0
- package/dist/composables/internal/use-resize-observer.js +21 -0
- package/dist/composables/internal/use-timeout-fn.js +25 -0
- package/dist/composables/use-accordion.d.ts +9 -0
- package/dist/composables/use-accordion.js +10 -0
- package/dist/composables/use-combobox.d.ts +44 -0
- package/dist/composables/use-combobox.js +185 -0
- package/dist/composables/use-field.d.ts +17 -0
- package/dist/composables/use-field.js +27 -0
- package/dist/composables/use-form.d.ts +44 -0
- package/dist/composables/use-form.js +146 -0
- package/dist/composables/use-menu.d.ts +26 -0
- package/dist/composables/use-menu.js +117 -0
- package/dist/composables/use-platform.d.ts +17 -0
- package/dist/composables/use-platform.js +126 -0
- package/dist/composables/use-popover.d.ts +35 -0
- package/dist/composables/use-popover.js +49 -0
- package/dist/composables/use-roving-selection.d.ts +22 -0
- package/dist/composables/use-roving-selection.js +65 -0
- package/dist/composables/use-select.d.ts +31 -0
- package/dist/composables/use-select.js +169 -0
- package/dist/composables/use-slide-indicator.d.ts +24 -0
- package/dist/composables/use-slide-indicator.js +52 -0
- package/dist/composables/use-toast.d.ts +23 -0
- package/dist/composables/use-toast.js +51 -0
- package/dist/config.d.ts +40 -0
- package/dist/config.js +35 -0
- package/dist/docs/README.md +44 -0
- package/dist/docs/changelog.md +14 -0
- package/dist/docs/components/accordion.md +100 -0
- package/dist/docs/components/avatar-group.md +58 -0
- package/dist/docs/components/avatar.md +40 -0
- package/dist/docs/components/button.md +109 -0
- package/dist/docs/components/checkbox.md +123 -0
- package/dist/docs/components/combobox.md +207 -0
- package/dist/docs/components/confirm-dialog.md +107 -0
- package/dist/docs/components/context-menu.md +98 -0
- package/dist/docs/components/dialog.md +127 -0
- package/dist/docs/components/icon-button.md +47 -0
- package/dist/docs/components/input.md +89 -0
- package/dist/docs/components/kbd.md +41 -0
- package/dist/docs/components/menu.md +112 -0
- package/dist/docs/components/otp-input.md +92 -0
- package/dist/docs/components/popover.md +72 -0
- package/dist/docs/components/radio-group.md +114 -0
- package/dist/docs/components/segmented.md +96 -0
- package/dist/docs/components/select.md +129 -0
- package/dist/docs/components/slider.md +105 -0
- package/dist/docs/components/spin-button.md +73 -0
- package/dist/docs/components/split-button.md +64 -0
- package/dist/docs/components/switch.md +71 -0
- package/dist/docs/components/table.md +241 -0
- package/dist/docs/components/tabs.md +106 -0
- package/dist/docs/components/textarea.md +46 -0
- package/dist/docs/components/toast.md +135 -0
- package/dist/docs/components/toolbar.md +71 -0
- package/dist/docs/components/tooltip.md +57 -0
- package/dist/docs/forms.md +182 -0
- package/dist/docs/index.md +11 -0
- package/dist/docs/installation.md +73 -0
- package/dist/docs/localisation.md +40 -0
- package/dist/docs/ssr.md +24 -0
- package/dist/docs/styling.md +66 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +44 -0
- package/dist/nuxt/module.d.ts +15 -0
- package/dist/nuxt/module.js +72 -0
- package/dist/nuxt/runtime/plugin.d.ts +4 -0
- package/dist/nuxt/runtime/plugin.js +24 -0
- package/dist/package.js +4 -0
- package/dist/styles/core.css +284 -0
- package/dist/translations.d.ts +71 -0
- package/dist/translations.js +55 -0
- package/dist/types.d.ts +61 -0
- package/package.json +93 -4
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { firstFocusable, useAnchor, usePopoverState } from "../../composables/use-popover.js";
|
|
2
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, nextTick, normalizeStyle, openBlock, ref, renderSlot, unref, useId, useModel, useTemplateRef, watch } from "vue";
|
|
3
|
+
//#region src/components/popover/Popover.vue
|
|
4
|
+
const _hoisted_1 = [
|
|
5
|
+
"id",
|
|
6
|
+
"data-popover-align",
|
|
7
|
+
"aria-label"
|
|
8
|
+
];
|
|
9
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
10
|
+
__name: "Popover",
|
|
11
|
+
props: /*@__PURE__*/ mergeModels({
|
|
12
|
+
label: {},
|
|
13
|
+
align: { default: "start" }
|
|
14
|
+
}, {
|
|
15
|
+
"open": {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: false
|
|
18
|
+
},
|
|
19
|
+
"openModifiers": {}
|
|
20
|
+
}),
|
|
21
|
+
emits: ["update:open"],
|
|
22
|
+
setup(__props) {
|
|
23
|
+
/** Whether the panel is open. */
|
|
24
|
+
const open = useModel(__props, "open");
|
|
25
|
+
const triggerId = useId();
|
|
26
|
+
const panelId = useId();
|
|
27
|
+
const anchorRef = useTemplateRef("anchor");
|
|
28
|
+
const panelRef = useTemplateRef("panel");
|
|
29
|
+
const { anchorStyle, panelStyle } = useAnchor();
|
|
30
|
+
const hasOpened = ref(open.value);
|
|
31
|
+
watch(open, (isOpen) => {
|
|
32
|
+
if (isOpen) hasOpened.value = true;
|
|
33
|
+
});
|
|
34
|
+
usePopoverState({
|
|
35
|
+
panel: panelRef,
|
|
36
|
+
open,
|
|
37
|
+
onShow: () => void nextTick(() => (firstFocusable(panelRef.value) ?? panelRef.value)?.focus())
|
|
38
|
+
});
|
|
39
|
+
const triggerAttrs = computed(() => ({
|
|
40
|
+
id: triggerId,
|
|
41
|
+
popovertarget: panelId,
|
|
42
|
+
"aria-haspopup": "dialog",
|
|
43
|
+
"aria-expanded": open.value,
|
|
44
|
+
"aria-controls": panelId
|
|
45
|
+
}));
|
|
46
|
+
function triggerElement() {
|
|
47
|
+
return anchorRef.value?.querySelector(`#${CSS.escape(triggerId)}`);
|
|
48
|
+
}
|
|
49
|
+
function close(refocus = true) {
|
|
50
|
+
if (!open.value) return;
|
|
51
|
+
open.value = false;
|
|
52
|
+
if (refocus) triggerElement()?.focus();
|
|
53
|
+
}
|
|
54
|
+
function onFocusOut(event) {
|
|
55
|
+
const next = event.relatedTarget;
|
|
56
|
+
if (!(next instanceof Node) || panelRef.value?.contains(next) || anchorRef.value?.contains(next)) return;
|
|
57
|
+
close(false);
|
|
58
|
+
}
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("span", {
|
|
61
|
+
ref: "anchor",
|
|
62
|
+
"data-part": "popover-anchor",
|
|
63
|
+
style: normalizeStyle(unref(anchorStyle))
|
|
64
|
+
}, [renderSlot(_ctx.$slots, "trigger", {
|
|
65
|
+
isOpen: open.value,
|
|
66
|
+
attrs: triggerAttrs.value
|
|
67
|
+
})], 4), createElementVNode("div", {
|
|
68
|
+
id: unref(panelId),
|
|
69
|
+
ref: "panel",
|
|
70
|
+
popover: "auto",
|
|
71
|
+
role: "dialog",
|
|
72
|
+
tabindex: "-1",
|
|
73
|
+
"data-part": "popover",
|
|
74
|
+
"data-popover-align": __props.align,
|
|
75
|
+
"aria-label": __props.label,
|
|
76
|
+
style: normalizeStyle(unref(panelStyle)),
|
|
77
|
+
onFocusout: onFocusOut
|
|
78
|
+
}, [hasOpened.value ? renderSlot(_ctx.$slots, "default", { close }, void 0, void 0, 0) : createCommentVNode("v-if", true)], 44, _hoisted_1)], 64);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//#endregion
|
|
83
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/components/popover/Popover.vue.d.ts
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Accessible name for the panel (role="dialog"). */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Which trigger edge the panel lines up with. Flips automatically near the viewport edge. */
|
|
6
|
+
align?: "start" | "end";
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
/** The trigger. Bind `attrs` to a `<button>`. */
|
|
10
|
+
trigger(props: {
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
attrs: Record<string, unknown>;
|
|
13
|
+
}): unknown;
|
|
14
|
+
/** Panel content. Mounted on first open. */
|
|
15
|
+
default?(props: {
|
|
16
|
+
close: () => void;
|
|
17
|
+
}): unknown;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_ModelProps = {
|
|
20
|
+
/** Whether the panel is open. */
|
|
21
|
+
"open"?: boolean;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:open": (value: boolean) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { _default as default };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { useField } from "../../composables/use-field.js";
|
|
2
|
+
import _sfc_main$1 from "../field/FieldMessage.js";
|
|
3
|
+
import { useRovingSelection } from "../../composables/use-roving-selection.js";
|
|
4
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef } from "vue";
|
|
5
|
+
//#region src/components/radio-group/RadioGroup.vue
|
|
6
|
+
const _hoisted_1 = ["data-field-error", "data-field-name"];
|
|
7
|
+
const _hoisted_2 = ["id"];
|
|
8
|
+
const _hoisted_3 = [
|
|
9
|
+
"data-orientation",
|
|
10
|
+
"aria-orientation",
|
|
11
|
+
"aria-labelledby",
|
|
12
|
+
"aria-describedby",
|
|
13
|
+
"aria-invalid",
|
|
14
|
+
"aria-disabled"
|
|
15
|
+
];
|
|
16
|
+
const _hoisted_4 = [
|
|
17
|
+
"aria-checked",
|
|
18
|
+
"tabindex",
|
|
19
|
+
"disabled",
|
|
20
|
+
"data-radio-checked",
|
|
21
|
+
"onClick"
|
|
22
|
+
];
|
|
23
|
+
const _hoisted_5 = { "data-part": "radio-label" };
|
|
24
|
+
const _hoisted_6 = ["name", "value"];
|
|
25
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
26
|
+
__name: "RadioGroup",
|
|
27
|
+
props: /*@__PURE__*/ mergeModels({
|
|
28
|
+
options: { default: () => [] },
|
|
29
|
+
label: {},
|
|
30
|
+
hint: {},
|
|
31
|
+
error: { type: [String, Boolean] },
|
|
32
|
+
disabled: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
orientation: { default: "vertical" },
|
|
37
|
+
name: {},
|
|
38
|
+
id: {}
|
|
39
|
+
}, {
|
|
40
|
+
"modelValue": {},
|
|
41
|
+
"modelModifiers": {}
|
|
42
|
+
}),
|
|
43
|
+
emits: ["update:modelValue"],
|
|
44
|
+
setup(__props) {
|
|
45
|
+
/** The selected value. */
|
|
46
|
+
const model = useModel(__props, "modelValue");
|
|
47
|
+
const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
|
|
48
|
+
id: () => __props.id,
|
|
49
|
+
hint: () => __props.hint,
|
|
50
|
+
error: () => __props.error
|
|
51
|
+
});
|
|
52
|
+
const labelId = computed(() => `${id.value}-label`);
|
|
53
|
+
const radioRefs = useTemplateRef("radios");
|
|
54
|
+
const { isTabStop, select, onKeydown } = useRovingSelection({
|
|
55
|
+
items: () => __props.options,
|
|
56
|
+
elements: () => radioRefs.value,
|
|
57
|
+
disabled: () => __props.disabled,
|
|
58
|
+
model
|
|
59
|
+
});
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
return openBlock(), createElementBlock("div", {
|
|
62
|
+
"data-part": "field",
|
|
63
|
+
"data-field-error": unref(isError) || void 0,
|
|
64
|
+
"data-field-name": __props.name
|
|
65
|
+
}, [
|
|
66
|
+
__props.label ? (openBlock(), createElementBlock("span", {
|
|
67
|
+
key: 0,
|
|
68
|
+
id: labelId.value,
|
|
69
|
+
"data-part": "field-label"
|
|
70
|
+
}, toDisplayString(__props.label), 9, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
71
|
+
createElementVNode("div", {
|
|
72
|
+
role: "radiogroup",
|
|
73
|
+
"data-part": "radio-group",
|
|
74
|
+
"data-orientation": __props.orientation,
|
|
75
|
+
"aria-orientation": __props.orientation,
|
|
76
|
+
"aria-labelledby": __props.label ? labelId.value : void 0,
|
|
77
|
+
"aria-describedby": unref(describedBy),
|
|
78
|
+
"aria-invalid": unref(isError) || void 0,
|
|
79
|
+
"aria-disabled": __props.disabled || void 0,
|
|
80
|
+
onKeydown: _cache[0] || (_cache[0] = (...args) => unref(onKeydown) && unref(onKeydown)(...args))
|
|
81
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (opt, i) => {
|
|
82
|
+
return openBlock(), createElementBlock("button", {
|
|
83
|
+
ref_for: true,
|
|
84
|
+
ref: "radios",
|
|
85
|
+
key: opt.value,
|
|
86
|
+
type: "button",
|
|
87
|
+
role: "radio",
|
|
88
|
+
"data-part": "radio",
|
|
89
|
+
"aria-checked": opt.value === model.value,
|
|
90
|
+
tabindex: unref(isTabStop)(opt, i) ? 0 : -1,
|
|
91
|
+
disabled: __props.disabled || opt.disabled,
|
|
92
|
+
"data-radio-checked": opt.value === model.value || void 0,
|
|
93
|
+
onClick: ($event) => unref(select)(opt)
|
|
94
|
+
}, [renderSlot(_ctx.$slots, "option", {
|
|
95
|
+
option: opt,
|
|
96
|
+
checked: opt.value === model.value
|
|
97
|
+
}, () => [_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
98
|
+
"data-part": "radio-control",
|
|
99
|
+
"aria-hidden": "true"
|
|
100
|
+
}, null, -1)), createElementVNode("span", _hoisted_5, toDisplayString(opt.label), 1)])], 8, _hoisted_4);
|
|
101
|
+
}), 128))], 40, _hoisted_3),
|
|
102
|
+
createCommentVNode(" The radios are buttons, which don't submit values; a hidden input does. "),
|
|
103
|
+
__props.name && model.value != null ? (openBlock(), createElementBlock("input", {
|
|
104
|
+
key: 1,
|
|
105
|
+
type: "hidden",
|
|
106
|
+
name: __props.name,
|
|
107
|
+
value: model.value
|
|
108
|
+
}, null, 8, _hoisted_6)) : createCommentVNode("v-if", true),
|
|
109
|
+
createVNode(_sfc_main$1, {
|
|
110
|
+
"error-id": unref(errorId),
|
|
111
|
+
"hint-id": unref(hintId),
|
|
112
|
+
"error-message": unref(errorMessage),
|
|
113
|
+
hint: __props.hint
|
|
114
|
+
}, null, 8, [
|
|
115
|
+
"error-id",
|
|
116
|
+
"hint-id",
|
|
117
|
+
"error-message",
|
|
118
|
+
"hint"
|
|
119
|
+
])
|
|
120
|
+
], 8, _hoisted_1);
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
//#endregion
|
|
125
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { SelectOption } from "../../types.js";
|
|
2
|
+
//#region src/components/radio-group/RadioGroup.vue.d.ts
|
|
3
|
+
declare const __VLS_export: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
|
+
/** Radios to render, in order. */
|
|
6
|
+
options?: SelectOption<T>[];
|
|
7
|
+
/** Visible group label, which names the radiogroup. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Help text under the control, announced as its description. */
|
|
10
|
+
hint?: string;
|
|
11
|
+
/** `true` marks the control invalid; a string also shows it as the message, replacing the hint. */
|
|
12
|
+
error?: string | boolean;
|
|
13
|
+
/** Disables the control. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Layout hook, exposed as `data-orientation` and `aria-orientation`. */
|
|
16
|
+
orientation?: "vertical" | "horizontal";
|
|
17
|
+
/** Form field name: submits the value with a native form, via hidden inputs. */
|
|
18
|
+
name?: string;
|
|
19
|
+
/** Id for the control; generated with `useId()` when omitted. */
|
|
20
|
+
id?: string;
|
|
21
|
+
} & {
|
|
22
|
+
/** The selected value. */
|
|
23
|
+
modelValue?: T;
|
|
24
|
+
}) & {
|
|
25
|
+
"onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
|
|
26
|
+
}> & (typeof globalThis extends {
|
|
27
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
28
|
+
} ? P : {});
|
|
29
|
+
expose: (exposed: {}) => void;
|
|
30
|
+
attrs: any;
|
|
31
|
+
slots: {
|
|
32
|
+
/** Radio content, replacing the control and label. */
|
|
33
|
+
option?(props: {
|
|
34
|
+
option: SelectOption<T>;
|
|
35
|
+
checked: boolean;
|
|
36
|
+
}): unknown;
|
|
37
|
+
};
|
|
38
|
+
emit: (event: "update:modelValue", value: T | undefined) => void;
|
|
39
|
+
}>) => import("vue").VNode & {
|
|
40
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
41
|
+
};
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { _default as default };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { useRovingSelection } from "../../composables/use-roving-selection.js";
|
|
2
|
+
import { useSlideIndicator } from "../../composables/use-slide-indicator.js";
|
|
3
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeModels, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef, vShow, withDirectives } from "vue";
|
|
4
|
+
//#region src/components/segmented/Segmented.vue
|
|
5
|
+
const _hoisted_1 = [
|
|
6
|
+
"data-field-name",
|
|
7
|
+
"data-segmented-size",
|
|
8
|
+
"data-segmented-icon-only",
|
|
9
|
+
"data-segmented-sliding",
|
|
10
|
+
"data-segmented-animate",
|
|
11
|
+
"aria-label",
|
|
12
|
+
"aria-disabled"
|
|
13
|
+
];
|
|
14
|
+
const _hoisted_2 = [
|
|
15
|
+
"aria-checked",
|
|
16
|
+
"aria-label",
|
|
17
|
+
"tabindex",
|
|
18
|
+
"disabled",
|
|
19
|
+
"data-segment-checked",
|
|
20
|
+
"onClick"
|
|
21
|
+
];
|
|
22
|
+
const _hoisted_3 = ["name", "value"];
|
|
23
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
24
|
+
__name: "Segmented",
|
|
25
|
+
props: /*@__PURE__*/ mergeModels({
|
|
26
|
+
options: { default: () => [] },
|
|
27
|
+
label: {},
|
|
28
|
+
size: { default: "medium" },
|
|
29
|
+
iconOnly: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
name: {}
|
|
38
|
+
}, {
|
|
39
|
+
"modelValue": {},
|
|
40
|
+
"modelModifiers": {}
|
|
41
|
+
}),
|
|
42
|
+
emits: ["update:modelValue"],
|
|
43
|
+
setup(__props) {
|
|
44
|
+
/** The selected value. */
|
|
45
|
+
const model = useModel(__props, "modelValue");
|
|
46
|
+
const rootRef = useTemplateRef("root");
|
|
47
|
+
const segmentRefs = useTemplateRef("segments");
|
|
48
|
+
const { isTabStop, select, onKeydown } = useRovingSelection({
|
|
49
|
+
items: () => __props.options,
|
|
50
|
+
elements: () => segmentRefs.value,
|
|
51
|
+
disabled: () => __props.disabled,
|
|
52
|
+
model
|
|
53
|
+
});
|
|
54
|
+
const { style, isMeasured, canAnimate } = useSlideIndicator({
|
|
55
|
+
container: rootRef,
|
|
56
|
+
items: () => segmentRefs.value,
|
|
57
|
+
activeIndex: () => __props.options.findIndex((option) => option.value === model.value)
|
|
58
|
+
});
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createElementBlock("div", {
|
|
61
|
+
ref: "root",
|
|
62
|
+
role: "radiogroup",
|
|
63
|
+
"data-field-name": __props.name,
|
|
64
|
+
"data-part": "segmented",
|
|
65
|
+
"data-segmented-size": __props.size,
|
|
66
|
+
"data-segmented-icon-only": __props.iconOnly || void 0,
|
|
67
|
+
"data-segmented-sliding": unref(isMeasured) || void 0,
|
|
68
|
+
"data-segmented-animate": unref(canAnimate) || void 0,
|
|
69
|
+
"aria-label": __props.label,
|
|
70
|
+
"aria-disabled": __props.disabled || void 0,
|
|
71
|
+
onKeydown: _cache[0] || (_cache[0] = (...args) => unref(onKeydown) && unref(onKeydown)(...args))
|
|
72
|
+
}, [
|
|
73
|
+
createCommentVNode(" Until measured (e.g. before hydration) style the checked segment itself,\n via [data-segment-checked], so the selection is never invisible. "),
|
|
74
|
+
withDirectives(createElementVNode("span", {
|
|
75
|
+
"data-part": "segmented-indicator",
|
|
76
|
+
style: normalizeStyle(unref(style)),
|
|
77
|
+
"aria-hidden": "true"
|
|
78
|
+
}, null, 4), [[vShow, unref(isMeasured)]]),
|
|
79
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, i) => {
|
|
80
|
+
return openBlock(), createElementBlock("button", {
|
|
81
|
+
ref_for: true,
|
|
82
|
+
ref: "segments",
|
|
83
|
+
key: option.value,
|
|
84
|
+
type: "button",
|
|
85
|
+
role: "radio",
|
|
86
|
+
"data-part": "segment",
|
|
87
|
+
"aria-checked": option.value === model.value,
|
|
88
|
+
"aria-label": __props.iconOnly ? option.label : void 0,
|
|
89
|
+
tabindex: unref(isTabStop)(option, i) ? 0 : -1,
|
|
90
|
+
disabled: __props.disabled || option.disabled,
|
|
91
|
+
"data-segment-checked": option.value === model.value || void 0,
|
|
92
|
+
onClick: ($event) => unref(select)(option)
|
|
93
|
+
}, [renderSlot(_ctx.$slots, "option", {
|
|
94
|
+
option,
|
|
95
|
+
checked: option.value === model.value
|
|
96
|
+
}, () => [createTextVNode(toDisplayString(__props.iconOnly ? "" : option.label), 1)])], 8, _hoisted_2);
|
|
97
|
+
}), 128)),
|
|
98
|
+
createCommentVNode(" The segments are buttons, which don't submit values; a hidden input does. "),
|
|
99
|
+
__props.name && model.value != null ? (openBlock(), createElementBlock("input", {
|
|
100
|
+
key: 0,
|
|
101
|
+
type: "hidden",
|
|
102
|
+
name: __props.name,
|
|
103
|
+
value: model.value
|
|
104
|
+
}, null, 8, _hoisted_3)) : createCommentVNode("v-if", true)
|
|
105
|
+
], 40, _hoisted_1);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
//#endregion
|
|
110
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SelectOption } from "../../types.js";
|
|
2
|
+
//#region src/components/segmented/Segmented.vue.d.ts
|
|
3
|
+
declare const __VLS_export: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
|
+
/** Segments to render, in order. */
|
|
6
|
+
options?: SelectOption<T>[];
|
|
7
|
+
/** Accessible name for the group. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Size hook, exposed as `data-segmented-size`. */
|
|
10
|
+
size?: "small" | "medium";
|
|
11
|
+
/** Segments render only the `option` slot (e.g. an icon); labels become their accessible names. */
|
|
12
|
+
iconOnly?: boolean;
|
|
13
|
+
/** Disables every segment. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Form field name: submits the value with a native form, via hidden inputs. */
|
|
16
|
+
name?: string;
|
|
17
|
+
} & {
|
|
18
|
+
/** The selected value. */
|
|
19
|
+
modelValue?: T;
|
|
20
|
+
}) & {
|
|
21
|
+
"onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
|
|
22
|
+
}> & (typeof globalThis extends {
|
|
23
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
24
|
+
} ? P : {});
|
|
25
|
+
expose: (exposed: {}) => void;
|
|
26
|
+
attrs: any;
|
|
27
|
+
slots: {
|
|
28
|
+
/** Segment content, e.g. an icon. */
|
|
29
|
+
option?(props: {
|
|
30
|
+
option: SelectOption<T>;
|
|
31
|
+
checked: boolean;
|
|
32
|
+
}): unknown;
|
|
33
|
+
};
|
|
34
|
+
emit: (event: "update:modelValue", value: T | undefined) => void;
|
|
35
|
+
}>) => import("vue").VNode & {
|
|
36
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
37
|
+
};
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { _default as default };
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { useTranslations } from "../../config.js";
|
|
2
|
+
import { useField } from "../../composables/use-field.js";
|
|
3
|
+
import _sfc_main$1 from "../field/FieldMessage.js";
|
|
4
|
+
import { useAnchor } from "../../composables/use-popover.js";
|
|
5
|
+
import { useSelect } from "../../composables/use-select.js";
|
|
6
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef, withModifiers } from "vue";
|
|
7
|
+
//#region src/components/select/Select.vue
|
|
8
|
+
const _hoisted_1 = ["data-field-error", "data-field-name"];
|
|
9
|
+
const _hoisted_2 = ["id", "for"];
|
|
10
|
+
const _hoisted_3 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
"data-part": "field-optional"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_4 = [
|
|
15
|
+
"id",
|
|
16
|
+
"aria-expanded",
|
|
17
|
+
"aria-controls",
|
|
18
|
+
"aria-activedescendant",
|
|
19
|
+
"aria-labelledby",
|
|
20
|
+
"aria-invalid",
|
|
21
|
+
"aria-describedby",
|
|
22
|
+
"disabled",
|
|
23
|
+
"data-select-open",
|
|
24
|
+
"data-select-error"
|
|
25
|
+
];
|
|
26
|
+
const _hoisted_5 = ["data-select-placeholder"];
|
|
27
|
+
const _hoisted_6 = {
|
|
28
|
+
"data-part": "select-chevron",
|
|
29
|
+
"aria-hidden": "true"
|
|
30
|
+
};
|
|
31
|
+
const _hoisted_7 = [
|
|
32
|
+
"id",
|
|
33
|
+
"aria-multiselectable",
|
|
34
|
+
"aria-labelledby"
|
|
35
|
+
];
|
|
36
|
+
const _hoisted_8 = [
|
|
37
|
+
"id",
|
|
38
|
+
"aria-selected",
|
|
39
|
+
"aria-disabled",
|
|
40
|
+
"data-select-active",
|
|
41
|
+
"onClick",
|
|
42
|
+
"onPointermove"
|
|
43
|
+
];
|
|
44
|
+
const _hoisted_9 = {
|
|
45
|
+
"data-part": "select-option-check",
|
|
46
|
+
"aria-hidden": "true"
|
|
47
|
+
};
|
|
48
|
+
const _hoisted_10 = { "data-part": "select-option-label" };
|
|
49
|
+
const _hoisted_11 = ["name", "value"];
|
|
50
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
51
|
+
inheritAttrs: false,
|
|
52
|
+
__name: "Select",
|
|
53
|
+
props: /*@__PURE__*/ mergeModels({
|
|
54
|
+
options: { default: () => [] },
|
|
55
|
+
error: { type: [String, Boolean] },
|
|
56
|
+
placeholder: { default: "Select an option" },
|
|
57
|
+
multiple: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false
|
|
60
|
+
},
|
|
61
|
+
optional: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false
|
|
64
|
+
},
|
|
65
|
+
disabled: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: false
|
|
68
|
+
},
|
|
69
|
+
label: {},
|
|
70
|
+
hint: {},
|
|
71
|
+
name: {},
|
|
72
|
+
id: {}
|
|
73
|
+
}, {
|
|
74
|
+
"modelValue": {},
|
|
75
|
+
"modelModifiers": {}
|
|
76
|
+
}),
|
|
77
|
+
emits: ["update:modelValue"],
|
|
78
|
+
setup(__props) {
|
|
79
|
+
/** The selected value, or values with `multiple`. */
|
|
80
|
+
const model = useModel(__props, "modelValue");
|
|
81
|
+
const submittedValues = computed(() => {
|
|
82
|
+
const value = model.value;
|
|
83
|
+
if (value == null) return [];
|
|
84
|
+
return Array.isArray(value) ? value : [value];
|
|
85
|
+
});
|
|
86
|
+
const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
|
|
87
|
+
error: () => __props.error,
|
|
88
|
+
id: () => __props.id,
|
|
89
|
+
hint: () => __props.hint
|
|
90
|
+
});
|
|
91
|
+
const labelId = computed(() => `${id.value}-label`);
|
|
92
|
+
const listboxId = computed(() => `${id.value}-listbox`);
|
|
93
|
+
const { anchorStyle, panelStyle } = useAnchor();
|
|
94
|
+
const triggerRef = useTemplateRef("trigger");
|
|
95
|
+
const listboxRef = useTemplateRef("listbox");
|
|
96
|
+
const labelRef = useTemplateRef("label");
|
|
97
|
+
const { isOpen, activeId, optionId, activeIndex, isSelected, selectedOptions, selectAt, setActive, onTriggerKeydown, onTriggerPointerdown } = useSelect({
|
|
98
|
+
options: () => __props.options,
|
|
99
|
+
multiple: () => __props.multiple,
|
|
100
|
+
disabled: () => __props.disabled,
|
|
101
|
+
baseId: () => id.value,
|
|
102
|
+
model,
|
|
103
|
+
trigger: triggerRef,
|
|
104
|
+
listbox: listboxRef,
|
|
105
|
+
label: labelRef
|
|
106
|
+
});
|
|
107
|
+
const translations = useTranslations();
|
|
108
|
+
const displayLabel = computed(() => {
|
|
109
|
+
const [first, ...rest] = selectedOptions.value;
|
|
110
|
+
if (!first) return __props.placeholder;
|
|
111
|
+
return rest.length ? `${first.label} ${translations.value.moreSelected(rest.length)}` : first.label;
|
|
112
|
+
});
|
|
113
|
+
return (_ctx, _cache) => {
|
|
114
|
+
return openBlock(), createElementBlock("div", {
|
|
115
|
+
"data-part": "field",
|
|
116
|
+
"data-field-error": unref(isError) || void 0,
|
|
117
|
+
"data-field-name": __props.name
|
|
118
|
+
}, [
|
|
119
|
+
__props.label ? (openBlock(), createElementBlock("label", {
|
|
120
|
+
key: 0,
|
|
121
|
+
id: labelId.value,
|
|
122
|
+
ref: "label",
|
|
123
|
+
for: unref(id),
|
|
124
|
+
"data-part": "field-label",
|
|
125
|
+
onPointerdown: _cache[0] || (_cache[0] = (...args) => unref(onTriggerPointerdown) && unref(onTriggerPointerdown)(...args))
|
|
126
|
+
}, [createTextVNode(toDisplayString(__props.label), 1), __props.optional ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(` ${unref(translations).optional}`), 1)) : createCommentVNode("v-if", true)], 40, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
127
|
+
createElementVNode("div", {
|
|
128
|
+
"data-part": "select-control",
|
|
129
|
+
style: normalizeStyle(unref(anchorStyle))
|
|
130
|
+
}, [createElementVNode("button", mergeProps({
|
|
131
|
+
id: unref(id),
|
|
132
|
+
ref: "trigger",
|
|
133
|
+
type: "button",
|
|
134
|
+
role: "combobox",
|
|
135
|
+
"data-part": "select-trigger",
|
|
136
|
+
"aria-haspopup": "listbox",
|
|
137
|
+
"aria-expanded": unref(isOpen),
|
|
138
|
+
"aria-controls": listboxId.value,
|
|
139
|
+
"aria-activedescendant": unref(activeId),
|
|
140
|
+
"aria-labelledby": __props.label ? `${labelId.value} ${unref(id)}` : void 0,
|
|
141
|
+
"aria-invalid": unref(isError) || void 0,
|
|
142
|
+
"aria-describedby": unref(describedBy),
|
|
143
|
+
disabled: __props.disabled,
|
|
144
|
+
"data-select-open": unref(isOpen) || void 0,
|
|
145
|
+
"data-select-error": unref(isError) || void 0
|
|
146
|
+
}, _ctx.$attrs, {
|
|
147
|
+
onKeydown: _cache[1] || (_cache[1] = (...args) => unref(onTriggerKeydown) && unref(onTriggerKeydown)(...args)),
|
|
148
|
+
onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(onTriggerPointerdown) && unref(onTriggerPointerdown)(...args))
|
|
149
|
+
}), [createElementVNode("span", {
|
|
150
|
+
"data-part": "select-value",
|
|
151
|
+
"data-select-placeholder": !unref(selectedOptions).length || void 0
|
|
152
|
+
}, [renderSlot(_ctx.$slots, "value", {
|
|
153
|
+
selected: unref(selectedOptions),
|
|
154
|
+
placeholder: __props.placeholder
|
|
155
|
+
}, () => [createTextVNode(toDisplayString(displayLabel.value), 1)])], 8, _hoisted_5), createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "chevron", {}, () => [_cache[4] || (_cache[4] = createElementVNode("svg", {
|
|
156
|
+
viewBox: "0 0 16 16",
|
|
157
|
+
width: "14",
|
|
158
|
+
height: "14",
|
|
159
|
+
focusable: "false"
|
|
160
|
+
}, [createElementVNode("path", {
|
|
161
|
+
d: "M4 6l4 4 4-4",
|
|
162
|
+
fill: "none",
|
|
163
|
+
stroke: "currentColor",
|
|
164
|
+
"stroke-width": "1.5",
|
|
165
|
+
"stroke-linecap": "round",
|
|
166
|
+
"stroke-linejoin": "round"
|
|
167
|
+
})], -1))])])], 16, _hoisted_4), createElementVNode("ul", {
|
|
168
|
+
id: listboxId.value,
|
|
169
|
+
ref: "listbox",
|
|
170
|
+
role: "listbox",
|
|
171
|
+
popover: "manual",
|
|
172
|
+
"data-part": "select-listbox",
|
|
173
|
+
style: normalizeStyle(unref(panelStyle)),
|
|
174
|
+
"aria-multiselectable": __props.multiple || void 0,
|
|
175
|
+
"aria-labelledby": __props.label ? labelId.value : void 0
|
|
176
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (opt, i) => {
|
|
177
|
+
return openBlock(), createElementBlock("li", {
|
|
178
|
+
id: unref(optionId)(i),
|
|
179
|
+
key: opt.value,
|
|
180
|
+
role: "option",
|
|
181
|
+
"data-part": "select-option",
|
|
182
|
+
"aria-selected": unref(isSelected)(opt.value),
|
|
183
|
+
"aria-disabled": opt.disabled || void 0,
|
|
184
|
+
"data-select-active": i === unref(activeIndex) || void 0,
|
|
185
|
+
onClick: ($event) => unref(selectAt)(i),
|
|
186
|
+
onPointerdown: _cache[3] || (_cache[3] = withModifiers(() => {}, ["prevent"])),
|
|
187
|
+
onPointermove: ($event) => !opt.disabled && unref(setActive)(i)
|
|
188
|
+
}, [renderSlot(_ctx.$slots, "option", {
|
|
189
|
+
option: opt,
|
|
190
|
+
selected: unref(isSelected)(opt.value),
|
|
191
|
+
active: i === unref(activeIndex)
|
|
192
|
+
}, () => [createElementVNode("span", _hoisted_9, [unref(isSelected)(opt.value) ? renderSlot(_ctx.$slots, "check", {}, () => [_cache[5] || (_cache[5] = createElementVNode("svg", {
|
|
193
|
+
viewBox: "0 0 16 16",
|
|
194
|
+
width: "14",
|
|
195
|
+
height: "14",
|
|
196
|
+
focusable: "false"
|
|
197
|
+
}, [createElementVNode("path", {
|
|
198
|
+
d: "M3.5 8.5l3 3 6-7",
|
|
199
|
+
fill: "none",
|
|
200
|
+
stroke: "currentColor",
|
|
201
|
+
"stroke-width": "1.5",
|
|
202
|
+
"stroke-linecap": "round",
|
|
203
|
+
"stroke-linejoin": "round"
|
|
204
|
+
})], -1))], void 0, 0) : createCommentVNode("v-if", true)]), createElementVNode("span", _hoisted_10, toDisplayString(opt.label), 1)])], 40, _hoisted_8);
|
|
205
|
+
}), 128))], 12, _hoisted_7)], 4),
|
|
206
|
+
createCommentVNode(" Buttons don't submit values, so the form gets hidden inputs instead. "),
|
|
207
|
+
__props.name ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(submittedValues.value, (value) => {
|
|
208
|
+
return openBlock(), createElementBlock("input", {
|
|
209
|
+
key: value,
|
|
210
|
+
type: "hidden",
|
|
211
|
+
name: __props.name,
|
|
212
|
+
value
|
|
213
|
+
}, null, 8, _hoisted_11);
|
|
214
|
+
}), 128)) : createCommentVNode("v-if", true),
|
|
215
|
+
createVNode(_sfc_main$1, {
|
|
216
|
+
"error-id": unref(errorId),
|
|
217
|
+
"hint-id": unref(hintId),
|
|
218
|
+
"error-message": unref(errorMessage),
|
|
219
|
+
hint: __props.hint
|
|
220
|
+
}, null, 8, [
|
|
221
|
+
"error-id",
|
|
222
|
+
"hint-id",
|
|
223
|
+
"error-message",
|
|
224
|
+
"hint"
|
|
225
|
+
])
|
|
226
|
+
], 8, _hoisted_1);
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
//#endregion
|
|
231
|
+
export { _sfc_main as default };
|