@bridge-ui/vue 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Adapters/I18n/useI18nAdapter.d.ts +1 -1
- package/dist/Adapters/I18n/useI18nAdapter.js +4 -1
- package/dist/Components/Accordion/Accordion.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Accordion/accordion.types.d.ts +2 -2
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +1 -1
- package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +33 -28
- package/dist/Components/BaseField/BaseFieldCorner.js +5 -0
- package/dist/Components/BaseField/BaseFieldCorner.vue.d.ts +17 -0
- package/dist/Components/BaseField/BaseFieldCorner.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/BaseField/baseField.types.d.ts +4 -2
- package/dist/Components/BaseField/composables/useBaseField.d.ts +1 -1
- package/dist/Components/BaseField/composables/useBaseField.js +11 -8
- package/dist/Components/ColorField/composables/useColorField.d.ts +1 -1
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +154 -131
- package/dist/Components/DataTable/DataTablePagination.js +5 -0
- package/dist/Components/DataTable/DataTablePagination.vue.d.ts +24 -0
- package/dist/Components/DataTable/DataTablePagination.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/Components/DataTable/composables/useDataTable.d.ts +8 -3
- package/dist/Components/DataTable/composables/useDataTable.js +299 -280
- package/dist/Components/DataTable/composables/useDataTablePagination.d.ts +69 -0
- package/dist/Components/DataTable/composables/useDataTablePagination.js +130 -0
- package/dist/Components/DataTable/dataTable.types.d.ts +27 -12
- package/dist/Components/DataTable/dataTablePagination.types.d.ts +169 -0
- package/dist/Components/DataTable/index.d.ts +2 -1
- package/dist/Components/DateField/composables/useDateField.d.ts +1 -1
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +1 -1
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +1 -1
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +1 -1
- package/dist/Components/FormField/FilledFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/FormFieldCorner.js +5 -0
- package/dist/Components/FormField/FormFieldCorner.vue.d.ts +17 -0
- package/dist/Components/FormField/FormFieldCorner.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/FormField/NotchedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/Components/FormField/OutlinedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/StackedFormField.vue.d.ts +6 -6
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +34 -29
- package/dist/Components/FormField/UnderlinedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/composables/useFormField.d.ts +1 -1
- package/dist/Components/FormField/composables/useFormField.js +15 -9
- package/dist/Components/FormField/formField.types.d.ts +4 -2
- package/dist/Components/NumberField/composables/useNumberField.d.ts +1 -1
- package/dist/Components/OtpField/composables/useOtpField.d.ts +1 -1
- package/dist/Components/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Pagination/composables/usePagination.d.ts +4 -2
- package/dist/Components/Pagination/composables/usePagination.js +125 -127
- package/dist/Components/Pagination/pagination.types.d.ts +5 -5
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +1 -1
- package/dist/Components/Select/composables/useSelect.d.ts +1 -1
- package/dist/Components/Slider/composables/useSlider.d.ts +1 -1
- package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Tabs/composables/useTabs.js +16 -10
- package/dist/Components/Tabs/tabs.types.d.ts +3 -3
- package/dist/Components/TextField/composables/useTextField.d.ts +1 -1
- package/dist/Components/Textarea/composables/useTextarea.d.ts +1 -1
- package/dist/Components/TimeField/composables/useTimeField.d.ts +1 -1
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/docs/components/Accordion.md +1 -1
- package/docs/components/DataTable.md +5 -11
- package/docs/components/I18n.md +65 -24
- package/docs/components/Pagination.md +5 -3
- package/docs/components/Table.md +2 -2
- package/docs/components/Tabs.md +24 -6
- package/docs/examples/i18n-dictionary.ts +28 -10
- package/docs/examples/i18n-vue-i18n.ts +7 -6
- package/docs/examples/icon-fontawesome.ts +4 -0
- package/docs/examples/icon-heroicons.ts +5 -1
- package/docs/examples/icon-lucide.ts +4 -0
- package/docs/examples/icon-phosphor.ts +4 -0
- package/docs/examples/icon-tabler.ts +4 -0
- package/package.json +2 -2
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
import { hasNamedSlot as e, hasSlotOrProp as t, isPropPresent as n } from "../../Utils/slotOrProp.js";
|
|
2
2
|
import r from "../Icon/Icon.js";
|
|
3
|
-
import i from "./
|
|
4
|
-
import
|
|
3
|
+
import i from "./FormFieldCorner.js";
|
|
4
|
+
import a from "./FormFieldLabel.js";
|
|
5
|
+
import { Fragment as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as x, withCtx as S } from "vue";
|
|
5
6
|
//#region src/Components/FormField/FilledFormField.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var C = [
|
|
7
8
|
"data-invalid",
|
|
8
9
|
"aria-disabled",
|
|
9
10
|
"aria-readonly"
|
|
10
|
-
],
|
|
11
|
+
], w = ["id"], T = ["id", "aria-hidden"], E = /*@__PURE__*/ p({
|
|
11
12
|
__name: "FilledFormField",
|
|
12
13
|
props: { api: {} },
|
|
13
|
-
setup(
|
|
14
|
-
let
|
|
15
|
-
return (
|
|
16
|
-
"data-invalid":
|
|
17
|
-
"aria-disabled":
|
|
18
|
-
"aria-readonly":
|
|
14
|
+
setup(p) {
|
|
15
|
+
let E = x();
|
|
16
|
+
return (x, D) => (_(), c("div", h(p.api.rootBind.value, {
|
|
17
|
+
"data-invalid": p.api.invalidated.value || void 0,
|
|
18
|
+
"aria-disabled": p.api.isDisabled.value || void 0,
|
|
19
|
+
"aria-readonly": p.api.isReadonly.value || void 0
|
|
19
20
|
}), [
|
|
20
|
-
|
|
21
|
+
b(t)(b(E), "label", p.api.merged.value.label) || b(t)(b(E), "corner", p.api.merged.value.corner) ? (_(), c("div", g(h({ key: 0 }, p.api.headerBind.value)), [f(a, { api: p.api }, u({ _: 2 }, [b(e)(b(E), "label") ? {
|
|
21
22
|
name: "label",
|
|
22
|
-
fn:
|
|
23
|
+
fn: S(() => [v(x.$slots, "label")]),
|
|
23
24
|
key: "0"
|
|
24
|
-
} : void 0]), 1032, ["api"]),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
} : void 0]), 1032, ["api"]), f(i, { api: p.api }, u({ _: 2 }, [b(e)(b(E), "corner") ? {
|
|
26
|
+
name: "corner",
|
|
27
|
+
fn: S(() => [v(x.$slots, "corner")]),
|
|
28
|
+
key: "0"
|
|
29
|
+
} : void 0]), 1032, ["api"])], 16)) : s("", !0),
|
|
30
|
+
l("div", g(m(p.api.containerBind.value)), [
|
|
31
|
+
b(e)(b(E), "start") ? (_(), c("div", g(h({ key: 0 }, p.api.startSlotBind.value)), [v(x.$slots, "start")], 16)) : b(n)(p.api.merged.value.start) ? (_(), c("div", g(h({ key: 1 }, p.api.startBind.value)), y(p.api.merged.value.start), 17)) : p.api.merged.value.startIcon ? (_(), c("div", g(h({ key: 2 }, p.api.startBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.startIconBind.value, { icon: p.api.merged.value.startIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0),
|
|
32
|
+
v(x.$slots, "default"),
|
|
33
|
+
b(e)(b(E), "end") ? (_(), c("div", g(h({ key: 3 }, p.api.endSlotBind.value)), [v(x.$slots, "end")], 16)) : b(n)(p.api.merged.value.end) ? (_(), c("div", g(h({ key: 4 }, p.api.endBind.value)), y(p.api.merged.value.end), 17)) : p.api.invalidated.value && p.api.merged.value.showErrorIcon !== !1 ? (_(), c("div", g(h({ key: 5 }, p.api.endBind.value)), [f(b(r), h({
|
|
34
|
+
icon: p.api.errorIcon.value,
|
|
35
|
+
size: p.api.merged.value.size
|
|
36
|
+
}, p.api.endIconBind.value), null, 16, ["icon", "size"])], 16)) : p.api.merged.value.endIcon ? (_(), c("div", g(h({ key: 6 }, p.api.endBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.endIconBind.value, { icon: p.api.merged.value.endIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0)
|
|
32
37
|
], 16),
|
|
33
|
-
!
|
|
34
|
-
|
|
35
|
-
id: `${
|
|
36
|
-
"aria-hidden": !
|
|
37
|
-
}), [
|
|
38
|
-
], 16,
|
|
38
|
+
!p.api.invalidated.value && b(t)(b(E), "description", p.api.merged.value.description) ? (_(), c("p", h({ key: 1 }, p.api.descriptionBind.value, { id: `${p.api.controlId.value}-description` }), [b(e)(b(E), "description") ? v(x.$slots, "description", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.description) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.description), 1)], 64)) : s("", !0)], 16, w)) : s("", !0),
|
|
39
|
+
p.api.merged.value.hideErrorMessage ? s("", !0) : (_(), c("p", h({ key: 2 }, p.api.errorBind.value, {
|
|
40
|
+
id: `${p.api.controlId.value}-error`,
|
|
41
|
+
"aria-hidden": !p.api.showErrorMessageContent.value || void 0
|
|
42
|
+
}), [p.api.showErrorMessageContent.value ? (_(), c(o, { key: 0 }, [b(e)(b(E), "errorMessage") ? v(x.$slots, "errorMessage", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.errorMessage) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.errorMessage), 1)], 64)) : s("", !0)], 64)) : s("", !0)], 16, T))
|
|
43
|
+
], 16, C));
|
|
39
44
|
}
|
|
40
45
|
});
|
|
41
46
|
//#endregion
|
|
42
|
-
export {
|
|
47
|
+
export { E as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseFormFieldReturn } from './composables/useFormField';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
api: UseFormFieldReturn;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
corner?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { hasNamedSlot as e, hasSlotOrProp as t } from "../../Utils/slotOrProp.js";
|
|
2
|
+
import n from "../Label/Label.js";
|
|
3
|
+
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createTextVNode as s, defineComponent as c, mergeProps as l, normalizeProps as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useSlots as h, withCtx as g } from "vue";
|
|
4
|
+
//#region src/Components/FormField/FormFieldCorner.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _ = /*@__PURE__*/ c({
|
|
6
|
+
__name: "FormFieldCorner",
|
|
7
|
+
props: { api: {} },
|
|
8
|
+
setup(c) {
|
|
9
|
+
let _ = h();
|
|
10
|
+
return (h, v) => m(t)(m(_), "corner", c.api.merged.value.corner) ? (d(), i(m(n), u(l({ key: 0 }, c.api.fieldCornerProps.value)), {
|
|
11
|
+
default: g(() => [m(e)(m(_), "corner") ? f(h.$slots, "corner", {}, void 0, void 0, 0) : (d(), o(r, { key: 1 }, [s(p(c.api.merged.value.corner), 1)], 64))]),
|
|
12
|
+
_: 3
|
|
13
|
+
}, 16)) : a("", !0);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { _ as default };
|
|
@@ -2,21 +2,21 @@ import { UseFormFieldReturn } from './composables/useFormField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseFormFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare var __VLS_8: {},
|
|
5
|
+
declare var __VLS_8: {}, __VLS_17: {}, __VLS_19: {}, __VLS_26: {}, __VLS_28: {}, __VLS_40: {}, __VLS_42: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
label?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
corner?: (props: typeof
|
|
9
|
+
corner?: (props: typeof __VLS_17) => any;
|
|
10
10
|
} & {
|
|
11
|
-
start?: (props: typeof
|
|
11
|
+
start?: (props: typeof __VLS_19) => any;
|
|
12
12
|
} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_26) => any;
|
|
14
14
|
} & {
|
|
15
|
-
end?: (props: typeof
|
|
15
|
+
end?: (props: typeof __VLS_28) => any;
|
|
16
16
|
} & {
|
|
17
|
-
description?: (props: typeof
|
|
17
|
+
description?: (props: typeof __VLS_40) => any;
|
|
18
18
|
} & {
|
|
19
|
-
errorMessage?: (props: typeof
|
|
19
|
+
errorMessage?: (props: typeof __VLS_42) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,41 +1,46 @@
|
|
|
1
1
|
import { hasNamedSlot as e, hasSlotOrProp as t, isPropPresent as n } from "../../Utils/slotOrProp.js";
|
|
2
2
|
import r from "../Icon/Icon.js";
|
|
3
|
-
import i from "./
|
|
4
|
-
import
|
|
3
|
+
import i from "./FormFieldCorner.js";
|
|
4
|
+
import a from "./FormFieldLabel.js";
|
|
5
|
+
import { Fragment as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as x, withCtx as S } from "vue";
|
|
5
6
|
//#region src/Components/FormField/NotchedFormField.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var C = [
|
|
7
8
|
"data-invalid",
|
|
8
9
|
"aria-disabled",
|
|
9
10
|
"aria-readonly"
|
|
10
|
-
],
|
|
11
|
+
], w = { class: "flex min-h-0 w-full flex-1 items-stretch gap-x-2" }, T = ["id"], E = ["id", "aria-hidden"], D = /*@__PURE__*/ p({
|
|
11
12
|
__name: "NotchedFormField",
|
|
12
13
|
props: { api: {} },
|
|
13
|
-
setup(
|
|
14
|
-
let
|
|
15
|
-
return (
|
|
16
|
-
"data-invalid":
|
|
17
|
-
"aria-disabled":
|
|
18
|
-
"aria-readonly":
|
|
14
|
+
setup(p) {
|
|
15
|
+
let D = x();
|
|
16
|
+
return (x, O) => (_(), c("div", h(p.api.rootBind.value, {
|
|
17
|
+
"data-invalid": p.api.invalidated.value || void 0,
|
|
18
|
+
"aria-disabled": p.api.isDisabled.value || void 0,
|
|
19
|
+
"aria-readonly": p.api.isReadonly.value || void 0
|
|
19
20
|
}), [
|
|
20
|
-
|
|
21
|
+
l("div", g(m(p.api.containerBind.value)), [p.api.hasInsetLabelRow.value ? (_(), c("div", g(h({ key: 0 }, p.api.insetLabelRowBind.value)), [f(a, { api: p.api }, u({ _: 2 }, [b(e)(b(D), "label") ? {
|
|
21
22
|
name: "label",
|
|
22
|
-
fn:
|
|
23
|
+
fn: S(() => [v(x.$slots, "label")]),
|
|
23
24
|
key: "0"
|
|
24
|
-
} : void 0]), 1032, ["api"]),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
} : void 0]), 1032, ["api"]), f(i, { api: p.api }, u({ _: 2 }, [b(e)(b(D), "corner") ? {
|
|
26
|
+
name: "corner",
|
|
27
|
+
fn: S(() => [v(x.$slots, "corner")]),
|
|
28
|
+
key: "0"
|
|
29
|
+
} : void 0]), 1032, ["api"])], 16)) : s("", !0), l("div", w, [
|
|
30
|
+
b(e)(b(D), "start") ? (_(), c("div", g(h({ key: 0 }, p.api.startSlotBind.value)), [v(x.$slots, "start")], 16)) : b(n)(p.api.merged.value.start) ? (_(), c("div", g(h({ key: 1 }, p.api.startBind.value)), y(p.api.merged.value.start), 17)) : p.api.merged.value.startIcon ? (_(), c("div", g(h({ key: 2 }, p.api.startBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.startIconBind.value, { icon: p.api.merged.value.startIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0),
|
|
31
|
+
v(x.$slots, "default"),
|
|
32
|
+
b(e)(b(D), "end") ? (_(), c("div", g(h({ key: 3 }, p.api.endSlotBind.value)), [v(x.$slots, "end")], 16)) : b(n)(p.api.merged.value.end) ? (_(), c("div", g(h({ key: 4 }, p.api.endBind.value)), y(p.api.merged.value.end), 17)) : p.api.invalidated.value && p.api.merged.value.showErrorIcon !== !1 ? (_(), c("div", g(h({ key: 5 }, p.api.endBind.value)), [f(b(r), h({
|
|
33
|
+
icon: p.api.errorIcon.value,
|
|
34
|
+
size: p.api.merged.value.size
|
|
35
|
+
}, p.api.endIconBind.value), null, 16, ["icon", "size"])], 16)) : p.api.merged.value.endIcon ? (_(), c("div", g(h({ key: 6 }, p.api.endBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.endIconBind.value, { icon: p.api.merged.value.endIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0)
|
|
31
36
|
])], 16),
|
|
32
|
-
!
|
|
33
|
-
|
|
34
|
-
id: `${
|
|
35
|
-
"aria-hidden": !
|
|
36
|
-
}), [
|
|
37
|
-
], 16,
|
|
37
|
+
!p.api.invalidated.value && b(t)(b(D), "description", p.api.merged.value.description) ? (_(), c("p", h({ key: 0 }, p.api.descriptionBind.value, { id: `${p.api.controlId.value}-description` }), [b(e)(b(D), "description") ? v(x.$slots, "description", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.description) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.description), 1)], 64)) : s("", !0)], 16, T)) : s("", !0),
|
|
38
|
+
p.api.merged.value.hideErrorMessage ? s("", !0) : (_(), c("p", h({ key: 1 }, p.api.errorBind.value, {
|
|
39
|
+
id: `${p.api.controlId.value}-error`,
|
|
40
|
+
"aria-hidden": !p.api.showErrorMessageContent.value || void 0
|
|
41
|
+
}), [p.api.showErrorMessageContent.value ? (_(), c(o, { key: 0 }, [b(e)(b(D), "errorMessage") ? v(x.$slots, "errorMessage", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.errorMessage) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.errorMessage), 1)], 64)) : s("", !0)], 64)) : s("", !0)], 16, E))
|
|
42
|
+
], 16, C));
|
|
38
43
|
}
|
|
39
44
|
});
|
|
40
45
|
//#endregion
|
|
41
|
-
export {
|
|
46
|
+
export { D as default };
|
|
@@ -2,21 +2,21 @@ import { UseFormFieldReturn } from './composables/useFormField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseFormFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare var __VLS_8: {},
|
|
5
|
+
declare var __VLS_8: {}, __VLS_17: {}, __VLS_19: {}, __VLS_26: {}, __VLS_28: {}, __VLS_40: {}, __VLS_42: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
label?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
corner?: (props: typeof
|
|
9
|
+
corner?: (props: typeof __VLS_17) => any;
|
|
10
10
|
} & {
|
|
11
|
-
start?: (props: typeof
|
|
11
|
+
start?: (props: typeof __VLS_19) => any;
|
|
12
12
|
} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_26) => any;
|
|
14
14
|
} & {
|
|
15
|
-
end?: (props: typeof
|
|
15
|
+
end?: (props: typeof __VLS_28) => any;
|
|
16
16
|
} & {
|
|
17
|
-
description?: (props: typeof
|
|
17
|
+
description?: (props: typeof __VLS_40) => any;
|
|
18
18
|
} & {
|
|
19
|
-
errorMessage?: (props: typeof
|
|
19
|
+
errorMessage?: (props: typeof __VLS_42) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
import { hasNamedSlot as e, hasSlotOrProp as t, isPropPresent as n } from "../../Utils/slotOrProp.js";
|
|
2
2
|
import r from "../Icon/Icon.js";
|
|
3
|
-
import i from "./
|
|
4
|
-
import
|
|
3
|
+
import i from "./FormFieldCorner.js";
|
|
4
|
+
import a from "./FormFieldLabel.js";
|
|
5
|
+
import { Fragment as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as x, withCtx as S } from "vue";
|
|
5
6
|
//#region src/Components/FormField/OutlinedFormField.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var C = [
|
|
7
8
|
"data-invalid",
|
|
8
9
|
"aria-disabled",
|
|
9
10
|
"aria-readonly"
|
|
10
|
-
],
|
|
11
|
+
], w = ["id"], T = ["id", "aria-hidden"], E = /*@__PURE__*/ p({
|
|
11
12
|
__name: "OutlinedFormField",
|
|
12
13
|
props: { api: {} },
|
|
13
|
-
setup(
|
|
14
|
-
let
|
|
15
|
-
return (
|
|
16
|
-
"data-invalid":
|
|
17
|
-
"aria-disabled":
|
|
18
|
-
"aria-readonly":
|
|
14
|
+
setup(p) {
|
|
15
|
+
let E = x();
|
|
16
|
+
return (x, D) => (_(), c("div", h(p.api.rootBind.value, {
|
|
17
|
+
"data-invalid": p.api.invalidated.value || void 0,
|
|
18
|
+
"aria-disabled": p.api.isDisabled.value || void 0,
|
|
19
|
+
"aria-readonly": p.api.isReadonly.value || void 0
|
|
19
20
|
}), [
|
|
20
|
-
|
|
21
|
+
b(t)(b(E), "label", p.api.merged.value.label) || b(t)(b(E), "corner", p.api.merged.value.corner) ? (_(), c("div", g(h({ key: 0 }, p.api.headerBind.value)), [f(a, { api: p.api }, u({ _: 2 }, [b(e)(b(E), "label") ? {
|
|
21
22
|
name: "label",
|
|
22
|
-
fn:
|
|
23
|
+
fn: S(() => [v(x.$slots, "label")]),
|
|
23
24
|
key: "0"
|
|
24
|
-
} : void 0]), 1032, ["api"]),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
} : void 0]), 1032, ["api"]), f(i, { api: p.api }, u({ _: 2 }, [b(e)(b(E), "corner") ? {
|
|
26
|
+
name: "corner",
|
|
27
|
+
fn: S(() => [v(x.$slots, "corner")]),
|
|
28
|
+
key: "0"
|
|
29
|
+
} : void 0]), 1032, ["api"])], 16)) : s("", !0),
|
|
30
|
+
l("div", g(m(p.api.containerBind.value)), [
|
|
31
|
+
b(e)(b(E), "start") ? (_(), c("div", g(h({ key: 0 }, p.api.startSlotBind.value)), [v(x.$slots, "start")], 16)) : b(n)(p.api.merged.value.start) ? (_(), c("div", g(h({ key: 1 }, p.api.startBind.value)), y(p.api.merged.value.start), 17)) : p.api.merged.value.startIcon ? (_(), c("div", g(h({ key: 2 }, p.api.startBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.startIconBind.value, { icon: p.api.merged.value.startIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0),
|
|
32
|
+
v(x.$slots, "default"),
|
|
33
|
+
b(e)(b(E), "end") ? (_(), c("div", g(h({ key: 3 }, p.api.endSlotBind.value)), [v(x.$slots, "end")], 16)) : b(n)(p.api.merged.value.end) ? (_(), c("div", g(h({ key: 4 }, p.api.endBind.value)), y(p.api.merged.value.end), 17)) : p.api.invalidated.value && p.api.merged.value.showErrorIcon !== !1 ? (_(), c("div", g(h({ key: 5 }, p.api.endBind.value)), [f(b(r), h({
|
|
34
|
+
icon: p.api.errorIcon.value,
|
|
35
|
+
size: p.api.merged.value.size
|
|
36
|
+
}, p.api.endIconBind.value), null, 16, ["icon", "size"])], 16)) : p.api.merged.value.endIcon ? (_(), c("div", g(h({ key: 6 }, p.api.endBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.endIconBind.value, { icon: p.api.merged.value.endIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0)
|
|
32
37
|
], 16),
|
|
33
|
-
!
|
|
34
|
-
|
|
35
|
-
id: `${
|
|
36
|
-
"aria-hidden": !
|
|
37
|
-
}), [
|
|
38
|
-
], 16,
|
|
38
|
+
!p.api.invalidated.value && b(t)(b(E), "description", p.api.merged.value.description) ? (_(), c("p", h({ key: 1 }, p.api.descriptionBind.value, { id: `${p.api.controlId.value}-description` }), [b(e)(b(E), "description") ? v(x.$slots, "description", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.description) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.description), 1)], 64)) : s("", !0)], 16, w)) : s("", !0),
|
|
39
|
+
p.api.merged.value.hideErrorMessage ? s("", !0) : (_(), c("p", h({ key: 2 }, p.api.errorBind.value, {
|
|
40
|
+
id: `${p.api.controlId.value}-error`,
|
|
41
|
+
"aria-hidden": !p.api.showErrorMessageContent.value || void 0
|
|
42
|
+
}), [p.api.showErrorMessageContent.value ? (_(), c(o, { key: 0 }, [b(e)(b(E), "errorMessage") ? v(x.$slots, "errorMessage", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.errorMessage) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.errorMessage), 1)], 64)) : s("", !0)], 64)) : s("", !0)], 16, T))
|
|
43
|
+
], 16, C));
|
|
39
44
|
}
|
|
40
45
|
});
|
|
41
46
|
//#endregion
|
|
42
|
-
export {
|
|
47
|
+
export { E as default };
|
|
@@ -2,21 +2,21 @@ import { UseFormFieldReturn } from './composables/useFormField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseFormFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare var __VLS_1: {}, __VLS_10: {},
|
|
5
|
+
declare var __VLS_1: {}, __VLS_10: {}, __VLS_19: {}, __VLS_26: {}, __VLS_38: {}, __VLS_40: {}, __VLS_42: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
start?: (props: typeof __VLS_1) => any;
|
|
8
8
|
} & {
|
|
9
9
|
label?: (props: typeof __VLS_10) => any;
|
|
10
10
|
} & {
|
|
11
|
-
corner?: (props: typeof
|
|
11
|
+
corner?: (props: typeof __VLS_19) => any;
|
|
12
12
|
} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_26) => any;
|
|
14
14
|
} & {
|
|
15
|
-
end?: (props: typeof
|
|
15
|
+
end?: (props: typeof __VLS_38) => any;
|
|
16
16
|
} & {
|
|
17
|
-
description?: (props: typeof
|
|
17
|
+
description?: (props: typeof __VLS_40) => any;
|
|
18
18
|
} & {
|
|
19
|
-
errorMessage?: (props: typeof
|
|
19
|
+
errorMessage?: (props: typeof __VLS_42) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,45 +1,50 @@
|
|
|
1
1
|
import { hasNamedSlot as e, hasSlotOrProp as t, isPropPresent as n } from "../../Utils/slotOrProp.js";
|
|
2
2
|
import r from "../Icon/Icon.js";
|
|
3
|
-
import i from "./
|
|
4
|
-
import
|
|
3
|
+
import i from "./FormFieldCorner.js";
|
|
4
|
+
import a from "./FormFieldLabel.js";
|
|
5
|
+
import { Fragment as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as x, withCtx as S } from "vue";
|
|
5
6
|
//#region src/Components/FormField/StackedFormField.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var C = [
|
|
7
8
|
"data-invalid",
|
|
8
9
|
"aria-disabled",
|
|
9
10
|
"aria-readonly"
|
|
10
|
-
],
|
|
11
|
+
], w = ["id"], T = ["id", "aria-hidden"], E = /*@__PURE__*/ p({
|
|
11
12
|
__name: "StackedFormField",
|
|
12
13
|
props: { api: {} },
|
|
13
|
-
setup(
|
|
14
|
-
let
|
|
15
|
-
return (
|
|
16
|
-
"data-invalid":
|
|
17
|
-
"aria-disabled":
|
|
18
|
-
"aria-readonly":
|
|
14
|
+
setup(p) {
|
|
15
|
+
let E = x();
|
|
16
|
+
return (x, D) => (_(), c("div", h(p.api.rootBind.value, {
|
|
17
|
+
"data-invalid": p.api.invalidated.value || void 0,
|
|
18
|
+
"aria-disabled": p.api.isDisabled.value || void 0,
|
|
19
|
+
"aria-readonly": p.api.isReadonly.value || void 0
|
|
19
20
|
}), [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
l("div", g(m(p.api.containerBind.value)), [
|
|
22
|
+
b(e)(b(E), "start") ? (_(), c("div", g(h({ key: 0 }, p.api.startSlotBind.value)), [v(x.$slots, "start")], 16)) : s("", !0),
|
|
23
|
+
l("div", g(m(p.api.stackedBodyBind.value)), [p.api.hasInsetLabelRow.value ? (_(), c("div", g(h({ key: 0 }, p.api.insetLabelRowBind.value)), [f(a, { api: p.api }, u({ _: 2 }, [b(e)(b(E), "label") ? {
|
|
23
24
|
name: "label",
|
|
24
|
-
fn:
|
|
25
|
+
fn: S(() => [v(x.$slots, "label")]),
|
|
25
26
|
key: "0"
|
|
26
|
-
} : void 0]), 1032, ["api"]),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
} : void 0]), 1032, ["api"]), f(i, { api: p.api }, u({ _: 2 }, [b(e)(b(E), "corner") ? {
|
|
28
|
+
name: "corner",
|
|
29
|
+
fn: S(() => [v(x.$slots, "corner")]),
|
|
30
|
+
key: "0"
|
|
31
|
+
} : void 0]), 1032, ["api"])], 16)) : s("", !0), l("div", g(m(p.api.stackedInputRowBind.value)), [
|
|
32
|
+
b(n)(p.api.merged.value.start) ? (_(), c("div", g(h({ key: 0 }, p.api.startBind.value)), y(p.api.merged.value.start), 17)) : p.api.merged.value.startIcon ? (_(), c("div", g(h({ key: 1 }, p.api.startBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.startIconBind.value, { icon: p.api.merged.value.startIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0),
|
|
33
|
+
v(x.$slots, "default"),
|
|
34
|
+
b(n)(p.api.merged.value.end) ? (_(), c("div", g(h({ key: 2 }, p.api.endBind.value)), y(p.api.merged.value.end), 17)) : p.api.invalidated.value && p.api.merged.value.showErrorIcon !== !1 ? (_(), c("div", g(h({ key: 3 }, p.api.endBind.value)), [f(b(r), h({
|
|
35
|
+
icon: p.api.errorIcon.value,
|
|
36
|
+
size: p.api.merged.value.size
|
|
37
|
+
}, p.api.endIconBind.value), null, 16, ["icon", "size"])], 16)) : p.api.merged.value.endIcon ? (_(), c("div", g(h({ key: 4 }, p.api.endBind.value)), [f(b(r), h({ size: p.api.merged.value.size }, p.api.endIconBind.value, { icon: p.api.merged.value.endIcon }), null, 16, ["size", "icon"])], 16)) : s("", !0)
|
|
33
38
|
], 16)], 16),
|
|
34
|
-
|
|
39
|
+
b(e)(b(E), "end") ? (_(), c("div", g(h({ key: 1 }, p.api.endSlotBind.value)), [v(x.$slots, "end")], 16)) : s("", !0)
|
|
35
40
|
], 16),
|
|
36
|
-
!
|
|
37
|
-
|
|
38
|
-
id: `${
|
|
39
|
-
"aria-hidden": !
|
|
40
|
-
}), [
|
|
41
|
-
], 16,
|
|
41
|
+
!p.api.invalidated.value && b(t)(b(E), "description", p.api.merged.value.description) ? (_(), c("p", h({ key: 0 }, p.api.descriptionBind.value, { id: `${p.api.controlId.value}-description` }), [b(e)(b(E), "description") ? v(x.$slots, "description", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.description) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.description), 1)], 64)) : s("", !0)], 16, w)) : s("", !0),
|
|
42
|
+
p.api.merged.value.hideErrorMessage ? s("", !0) : (_(), c("p", h({ key: 1 }, p.api.errorBind.value, {
|
|
43
|
+
id: `${p.api.controlId.value}-error`,
|
|
44
|
+
"aria-hidden": !p.api.showErrorMessageContent.value || void 0
|
|
45
|
+
}), [p.api.showErrorMessageContent.value ? (_(), c(o, { key: 0 }, [b(e)(b(E), "errorMessage") ? v(x.$slots, "errorMessage", {}, void 0, void 0, 0) : b(n)(p.api.merged.value.errorMessage) ? (_(), c(o, { key: 1 }, [d(y(p.api.merged.value.errorMessage), 1)], 64)) : s("", !0)], 64)) : s("", !0)], 16, T))
|
|
46
|
+
], 16, C));
|
|
42
47
|
}
|
|
43
48
|
});
|
|
44
49
|
//#endregion
|
|
45
|
-
export {
|
|
50
|
+
export { E as default };
|
|
@@ -2,21 +2,21 @@ import { UseFormFieldReturn } from './composables/useFormField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseFormFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare var __VLS_8: {},
|
|
5
|
+
declare var __VLS_8: {}, __VLS_17: {}, __VLS_19: {}, __VLS_26: {}, __VLS_28: {}, __VLS_40: {}, __VLS_42: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
label?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
corner?: (props: typeof
|
|
9
|
+
corner?: (props: typeof __VLS_17) => any;
|
|
10
10
|
} & {
|
|
11
|
-
start?: (props: typeof
|
|
11
|
+
start?: (props: typeof __VLS_19) => any;
|
|
12
12
|
} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_26) => any;
|
|
14
14
|
} & {
|
|
15
|
-
end?: (props: typeof
|
|
15
|
+
end?: (props: typeof __VLS_28) => any;
|
|
16
16
|
} & {
|
|
17
|
-
description?: (props: typeof
|
|
17
|
+
description?: (props: typeof __VLS_40) => any;
|
|
18
18
|
} & {
|
|
19
|
-
errorMessage?: (props: typeof
|
|
19
|
+
errorMessage?: (props: typeof __VLS_42) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|