@indielayer/ui 0.0.0-dev-20240127005325 → 0.0.0-dev-20240202140555
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/docs/App.vue +25 -0
- package/docs/assets/css/hljs.css +302 -0
- package/docs/assets/css/tailwind.css +46 -0
- package/docs/assets/images/error.svg +1 -0
- package/docs/assets/images/logo.png +0 -0
- package/docs/assets/images/logo_mini.svg +10 -0
- package/docs/assets/images/logo_white.png +0 -0
- package/docs/assets/images/logo_word.svg +12 -0
- package/docs/assets/images/logo_word_dark.svg +12 -0
- package/docs/assets/images/photo1.jpeg +0 -0
- package/docs/assets/images/photo2.jpeg +0 -0
- package/docs/components/Cookies.vue +42 -0
- package/docs/components/common/CodePreview.vue +80 -0
- package/docs/components/common/CodeSnippet.vue +49 -0
- package/docs/components/common/CopyButton.vue +50 -0
- package/docs/components/common/DocumentPage.vue +289 -0
- package/docs/components/common/Indielayer-theme.json +702 -0
- package/docs/components/common/MultiSnippet.vue +26 -0
- package/docs/components/menu/DocsMenu.vue +143 -0
- package/docs/components/toolbar/PreToolbar.vue +18 -0
- package/docs/components/toolbar/Toolbar.vue +63 -0
- package/docs/components/toolbar/ToolbarColorToggle.vue +49 -0
- package/docs/icons.ts +61 -0
- package/docs/layouts/default.vue +29 -0
- package/docs/layouts/simple.vue +3 -0
- package/docs/main.ts +33 -0
- package/docs/pages/colors.vue +125 -0
- package/docs/pages/component/accordion/index.vue +29 -0
- package/docs/pages/component/accordion/usage.vue +30 -0
- package/docs/pages/component/alert/index.vue +29 -0
- package/docs/pages/component/alert/usage.vue +18 -0
- package/docs/pages/component/avatar/index.vue +43 -0
- package/docs/pages/component/avatar/size.vue +9 -0
- package/docs/pages/component/avatar/usage.vue +9 -0
- package/docs/pages/component/avatar/variants.vue +8 -0
- package/docs/pages/component/badge/index.vue +29 -0
- package/docs/pages/component/badge/usage.vue +50 -0
- package/docs/pages/component/breadcrumbs/index.vue +29 -0
- package/docs/pages/component/breadcrumbs/usage.vue +19 -0
- package/docs/pages/component/button/button-group.vue +18 -0
- package/docs/pages/component/button/icons.vue +9 -0
- package/docs/pages/component/button/index.vue +64 -0
- package/docs/pages/component/button/size.vue +9 -0
- package/docs/pages/component/button/states.vue +6 -0
- package/docs/pages/component/button/usage.vue +12 -0
- package/docs/pages/component/button/variants.vue +7 -0
- package/docs/pages/component/card/index.vue +29 -0
- package/docs/pages/component/card/usage.vue +6 -0
- package/docs/pages/component/carousel/index.vue +29 -0
- package/docs/pages/component/carousel/usage.vue +10 -0
- package/docs/pages/component/checkbox/index.vue +50 -0
- package/docs/pages/component/checkbox/size.vue +9 -0
- package/docs/pages/component/checkbox/states.vue +9 -0
- package/docs/pages/component/checkbox/usage.vue +15 -0
- package/docs/pages/component/checkbox/variants.vue +8 -0
- package/docs/pages/component/container/index.vue +29 -0
- package/docs/pages/component/container/usage.vue +3 -0
- package/docs/pages/component/divider/index.vue +43 -0
- package/docs/pages/component/divider/label.vue +12 -0
- package/docs/pages/component/divider/usage.vue +7 -0
- package/docs/pages/component/divider/vertical.vue +7 -0
- package/docs/pages/component/drawer/index.vue +29 -0
- package/docs/pages/component/drawer/usage.vue +56 -0
- package/docs/pages/component/form/index.vue +29 -0
- package/docs/pages/component/form/usage.vue +96 -0
- package/docs/pages/component/formGroup/index.vue +29 -0
- package/docs/pages/component/formGroup/usage.vue +46 -0
- package/docs/pages/component/icon/index.vue +36 -0
- package/docs/pages/component/icon/usage.vue +6 -0
- package/docs/pages/component/icon/variants.vue +14 -0
- package/docs/pages/component/image/index.vue +29 -0
- package/docs/pages/component/image/usage.vue +8 -0
- package/docs/pages/component/input/index.vue +50 -0
- package/docs/pages/component/input/size.vue +13 -0
- package/docs/pages/component/input/states.vue +12 -0
- package/docs/pages/component/input/usage.vue +15 -0
- package/docs/pages/component/input/variants.vue +18 -0
- package/docs/pages/component/link/index.vue +29 -0
- package/docs/pages/component/link/usage.vue +12 -0
- package/docs/pages/component/loader/index.vue +29 -0
- package/docs/pages/component/loader/usage.vue +7 -0
- package/docs/pages/component/menu/index.vue +29 -0
- package/docs/pages/component/menu/usage.vue +69 -0
- package/docs/pages/component/modal/composed.vue +70 -0
- package/docs/pages/component/modal/index.vue +36 -0
- package/docs/pages/component/modal/usage.vue +61 -0
- package/docs/pages/component/notifications/index.vue +29 -0
- package/docs/pages/component/notifications/usage.vue +56 -0
- package/docs/pages/component/pagination/index.vue +29 -0
- package/docs/pages/component/pagination/usage.vue +17 -0
- package/docs/pages/component/popover/index.vue +29 -0
- package/docs/pages/component/popover/usage.vue +21 -0
- package/docs/pages/component/progress/index.vue +36 -0
- package/docs/pages/component/progress/usage.vue +7 -0
- package/docs/pages/component/progress/variants.vue +18 -0
- package/docs/pages/component/radio/index.vue +50 -0
- package/docs/pages/component/radio/size.vue +15 -0
- package/docs/pages/component/radio/states.vue +13 -0
- package/docs/pages/component/radio/usage.vue +14 -0
- package/docs/pages/component/radio/variants.vue +39 -0
- package/docs/pages/component/scroll/horizontal.vue +14 -0
- package/docs/pages/component/scroll/index.vue +36 -0
- package/docs/pages/component/scroll/usage.vue +5 -0
- package/docs/pages/component/select/index.vue +43 -0
- package/docs/pages/component/select/states.vue +22 -0
- package/docs/pages/component/select/usage.vue +45 -0
- package/docs/pages/component/select/variants.vue +23 -0
- package/docs/pages/component/skeleton/index.vue +29 -0
- package/docs/pages/component/skeleton/usage.vue +10 -0
- package/docs/pages/component/slider/index.vue +29 -0
- package/docs/pages/component/slider/usage.vue +15 -0
- package/docs/pages/component/spacer/index.vue +29 -0
- package/docs/pages/component/spacer/usage.vue +8 -0
- package/docs/pages/component/spinner/index.vue +36 -0
- package/docs/pages/component/spinner/usage.vue +3 -0
- package/docs/pages/component/spinner/variants.vue +9 -0
- package/docs/pages/component/stepper/index.vue +29 -0
- package/docs/pages/component/stepper/usage.vue +21 -0
- package/docs/pages/component/table/index.vue +36 -0
- package/docs/pages/component/table/states.vue +28 -0
- package/docs/pages/component/table/usage.vue +107 -0
- package/docs/pages/component/tabs/index.vue +29 -0
- package/docs/pages/component/tabs/usage.vue +137 -0
- package/docs/pages/component/tag/index.vue +29 -0
- package/docs/pages/component/tag/usage.vue +27 -0
- package/docs/pages/component/textarea/index.vue +43 -0
- package/docs/pages/component/textarea/states.vue +13 -0
- package/docs/pages/component/textarea/usage.vue +22 -0
- package/docs/pages/component/textarea/variants.vue +15 -0
- package/docs/pages/component/toggle/index.vue +43 -0
- package/docs/pages/component/toggle/states.vue +13 -0
- package/docs/pages/component/toggle/usage.vue +14 -0
- package/docs/pages/component/toggle/variants.vue +15 -0
- package/docs/pages/component/tooltip/index.vue +29 -0
- package/docs/pages/component/tooltip/usage.vue +16 -0
- package/docs/pages/error.vue +6 -0
- package/docs/pages/icons.vue +105 -0
- package/docs/pages/index.vue +157 -0
- package/docs/pages/play.vue +19 -0
- package/docs/pages/typography.vue +95 -0
- package/docs/router/index.ts +77 -0
- package/lib/components/accordion/Accordion.vue.d.ts +3 -0
- package/lib/components/accordion/Accordion.vue.js +7 -7
- package/lib/components/accordion/AccordionItem.vue.d.ts +1 -0
- package/lib/components/accordion/AccordionItem.vue.js +49 -47
- package/lib/components/accordion/index.d.ts +1 -1
- package/lib/components/accordion/theme/Accordion.carbon.theme.js +3 -6
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +9 -9
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +3 -14
- package/lib/components/carousel/CarouselSlide.vue.d.ts +19 -8
- package/lib/components/carousel/CarouselSlide.vue.js +2 -2
- package/lib/components/carousel/CarouselSlide.vue2.js +25 -18
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +4 -4
- package/lib/components/container/Container.vue.d.ts +13 -0
- package/lib/components/container/Container.vue.js +15 -11
- package/lib/components/container/theme/Container.base.theme.js +7 -4
- package/lib/components/form/theme/Form.base.theme.js +1 -1
- package/lib/components/menu/Menu.vue.js +10 -10
- package/lib/components/menu/theme/MenuItem.base.theme.js +1 -1
- package/lib/components/modal/Modal.vue.d.ts +1 -1
- package/lib/components/radio/theme/Radio.base.theme.js +6 -6
- package/lib/components/select/Select.vue.js +47 -50
- package/lib/components/select/theme/Select.base.theme.js +10 -10
- package/lib/components/select/theme/Select.carbon.theme.js +4 -4
- package/lib/components/slider/theme/Slider.carbon.theme.js +4 -4
- package/lib/components/tab/Tab.vue.js +54 -53
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +3 -3
- package/lib/components/table/Table.vue.js +47 -47
- package/lib/composables/keys.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/index.umd.js +3 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -2
- package/src/components/accordion/Accordion.vue +5 -1
- package/src/components/accordion/AccordionItem.vue +5 -2
- package/src/components/accordion/index.ts +1 -1
- package/src/components/accordion/theme/Accordion.carbon.theme.ts +3 -5
- package/src/components/accordion/theme/AccordionItem.base.theme.ts +10 -7
- package/src/components/accordion/theme/AccordionItem.carbon.theme.ts +2 -30
- package/src/components/carousel/CarouselSlide.vue +9 -4
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +1 -1
- package/src/components/container/Container.vue +4 -0
- package/src/components/container/theme/Container.base.theme.ts +7 -1
- package/src/components/form/theme/Form.base.theme.ts +1 -1
- package/src/components/label/theme/Label.carbon.theme.ts +0 -2
- package/src/components/menu/Menu.vue +1 -1
- package/src/components/menu/theme/MenuItem.base.theme.ts +1 -1
- package/src/components/radio/theme/Radio.base.theme.ts +1 -1
- package/src/components/select/Select.vue +0 -3
- package/src/components/select/theme/Select.base.theme.ts +1 -1
- package/src/components/select/theme/Select.carbon.theme.ts +1 -1
- package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
- package/src/components/tab/Tab.vue +1 -1
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +1 -1
- package/src/components/table/Table.vue +1 -1
- package/src/composables/keys.ts +2 -2
- package/src/version.ts +1 -1
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { type ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
import { type ThemeComponent } from '../../composables/useTheme';
|
|
3
|
-
declare const carouselSlideProps: {
|
|
3
|
+
declare const carouselSlideProps: {
|
|
4
|
+
tag: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
export type CarouselSlideProps = ExtractPublicPropTypes<typeof carouselSlideProps>;
|
|
5
10
|
type InternalClasses = 'wrapper';
|
|
6
11
|
export interface CarouselSlideTheme extends ThemeComponent<CarouselSlideProps, InternalClasses> {
|
|
7
12
|
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
14
|
+
tag: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
tag: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
}>>, {
|
|
24
|
+
tag: string;
|
|
25
|
+
}, {}>, {
|
|
15
26
|
default?(_: {}): any;
|
|
16
27
|
}>;
|
|
17
28
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import o from "./CarouselSlide.vue3.js";
|
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const e = {
|
|
5
5
|
$style: o
|
|
6
|
-
},
|
|
6
|
+
}, d = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-402870d3"]]);
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
d as default
|
|
9
9
|
};
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as c,
|
|
2
|
-
import { useTheme as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { defineComponent as n, openBlock as c, createBlock as p, resolveDynamicComponent as i, normalizeStyle as u, unref as s, normalizeClass as m, withCtx as d, renderSlot as f } from "vue";
|
|
2
|
+
import { useTheme as y } from "../../composables/useTheme.js";
|
|
3
|
+
const C = {
|
|
4
|
+
tag: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "div"
|
|
7
|
+
}
|
|
8
|
+
}, S = {
|
|
9
|
+
name: "XCarouselSlide"
|
|
10
|
+
}, k = /* @__PURE__ */ n({
|
|
11
|
+
...S,
|
|
12
|
+
props: C,
|
|
9
13
|
setup(l) {
|
|
10
|
-
const
|
|
11
|
-
return (
|
|
12
|
-
style:
|
|
14
|
+
const t = l, { styles: o, classes: a, className: r } = y("CarouselSlide", {}, t);
|
|
15
|
+
return (e, _) => (c(), p(i(e.tag), {
|
|
16
|
+
style: u(s(o)),
|
|
13
17
|
class: m([
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
s(r),
|
|
19
|
+
e.$style["carousel-slide"],
|
|
20
|
+
s(a).wrapper
|
|
17
21
|
])
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
}, {
|
|
23
|
+
default: d(() => [
|
|
24
|
+
f(e.$slots, "default")
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 8, ["style", "class"]));
|
|
21
28
|
}
|
|
22
29
|
});
|
|
23
30
|
export {
|
|
24
|
-
|
|
31
|
+
k as default
|
|
25
32
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: ({ data: r }) => {
|
|
4
4
|
const e = ["inline-block relative cursor-pointer align-middle"];
|
|
5
|
-
return r.isInsideForm && e.push("mb-3"), e;
|
|
5
|
+
return r.isInsideForm && !r.isInsideFormGroup && e.push("mb-3"), e;
|
|
6
6
|
},
|
|
7
7
|
box: ({ props: r }) => {
|
|
8
8
|
const e = ["rounded flex justify-center items-center shrink-0 border-2 border-[color:var(--x-checkbox-border)] bg-[color:var(--x-checkbox-bg)] dark:border-[color:var(--x-checkbox-dark-border)] dark:bg-[color:var(--x-checkbox-dark-bg)]"];
|
|
@@ -53,7 +53,7 @@ const n = {
|
|
|
53
53
|
}
|
|
54
54
|
})), r.glow && a.push(l.get("glow", e.getColorOpacity(t[500], 0.5)))), a);
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, n = o;
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
n as default
|
|
59
59
|
};
|
|
@@ -5,6 +5,10 @@ declare const containerProps: {
|
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
+
fluid: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
8
12
|
};
|
|
9
13
|
export type ContainerProps = ExtractPublicPropTypes<typeof containerProps>;
|
|
10
14
|
type InternalClasses = 'wrapper';
|
|
@@ -15,13 +19,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
19
|
type: StringConstructor;
|
|
16
20
|
default: string;
|
|
17
21
|
};
|
|
22
|
+
fluid: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
27
|
tag: {
|
|
20
28
|
type: StringConstructor;
|
|
21
29
|
default: string;
|
|
22
30
|
};
|
|
31
|
+
fluid: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
23
35
|
}>>, {
|
|
24
36
|
tag: string;
|
|
37
|
+
fluid: boolean;
|
|
25
38
|
}, {}>, {
|
|
26
39
|
default?(_: {}): any;
|
|
27
40
|
}>;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, openBlock as c, createBlock as p, resolveDynamicComponent as i, normalizeStyle as f, unref as e, normalizeClass as m, withCtx as u, renderSlot as d } from "vue";
|
|
2
|
+
import { useTheme as y } from "../../composables/useTheme.js";
|
|
3
|
+
const _ = {
|
|
4
4
|
tag: {
|
|
5
5
|
type: String,
|
|
6
6
|
default: "div"
|
|
7
|
+
},
|
|
8
|
+
fluid: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
7
11
|
}
|
|
8
|
-
}, C = { name: "XContainer" },
|
|
12
|
+
}, C = { name: "XContainer" }, S = /* @__PURE__ */ r({
|
|
9
13
|
...C,
|
|
10
|
-
props:
|
|
14
|
+
props: _,
|
|
11
15
|
setup(s) {
|
|
12
|
-
const o = s, { styles:
|
|
16
|
+
const o = s, { styles: a, classes: n, className: l } = y("Container", {}, o);
|
|
13
17
|
return (t, g) => (c(), p(i(t.tag), {
|
|
14
|
-
style:
|
|
15
|
-
class:
|
|
16
|
-
e(
|
|
17
|
-
e(
|
|
18
|
+
style: f(e(a)),
|
|
19
|
+
class: m([
|
|
20
|
+
e(l),
|
|
21
|
+
e(n).wrapper
|
|
18
22
|
])
|
|
19
23
|
}, {
|
|
20
24
|
default: u(() => [
|
|
@@ -25,5 +29,5 @@ const y = {
|
|
|
25
29
|
}
|
|
26
30
|
});
|
|
27
31
|
export {
|
|
28
|
-
|
|
32
|
+
S as default
|
|
29
33
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = {
|
|
2
2
|
classes: {
|
|
3
|
-
wrapper:
|
|
3
|
+
wrapper: ({ props: s }) => {
|
|
4
|
+
const e = ["px-4 md:px-8"];
|
|
5
|
+
return s.fluid || e.push("max-w-screen-2xl mx-auto"), e;
|
|
6
|
+
}
|
|
4
7
|
}
|
|
5
|
-
},
|
|
8
|
+
}, t = a;
|
|
6
9
|
export {
|
|
7
|
-
|
|
10
|
+
t as default
|
|
8
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, resolveComponent as B, openBlock as d, createElementBlock as n, normalizeStyle as g, unref as p, normalizeClass as
|
|
1
|
+
import { defineComponent as C, resolveComponent as B, openBlock as d, createElementBlock as n, normalizeStyle as g, unref as p, normalizeClass as i, Fragment as a, renderList as E, createBlock as u, withCtx as c, createVNode as r, createCommentVNode as w } from "vue";
|
|
2
2
|
import { useCommon as m } from "../../composables/useCommon.js";
|
|
3
3
|
import { useColors as M } from "../../composables/useColors.js";
|
|
4
4
|
import { useTheme as N } from "../../composables/useTheme.js";
|
|
@@ -40,7 +40,7 @@ const V = {
|
|
|
40
40
|
return e.items ? (d(), n("div", {
|
|
41
41
|
key: 0,
|
|
42
42
|
style: g(p(k)),
|
|
43
|
-
class:
|
|
43
|
+
class: i([
|
|
44
44
|
"space-y-1",
|
|
45
45
|
p($),
|
|
46
46
|
p(v).wrapper
|
|
@@ -58,19 +58,19 @@ const V = {
|
|
|
58
58
|
onExpand: o[1] || (o[1] = (s) => e.$emit("expand"))
|
|
59
59
|
}, {
|
|
60
60
|
default: c(({}) => [
|
|
61
|
-
|
|
61
|
+
r(f, {
|
|
62
62
|
item: l,
|
|
63
63
|
rounded: e.rounded,
|
|
64
64
|
color: l.color || e.color,
|
|
65
65
|
filled: l.filled || e.filled,
|
|
66
66
|
size: l.size || e.size,
|
|
67
67
|
disabled: e.disabled || l.disabled,
|
|
68
|
-
class: "
|
|
68
|
+
class: "font-medium"
|
|
69
69
|
}, null, 8, ["item", "rounded", "color", "filled", "size", "disabled"])
|
|
70
70
|
]),
|
|
71
71
|
content: c(({ expand: s }) => [
|
|
72
|
-
|
|
73
|
-
class:
|
|
72
|
+
r(b, {
|
|
73
|
+
class: i(["border-l ml-4 border-gray-100 dark:border-gray-700", { "pl-1": e.filled }]),
|
|
74
74
|
items: l.items,
|
|
75
75
|
color: l.color || e.color,
|
|
76
76
|
size: l.size || e.size,
|
|
@@ -86,7 +86,7 @@ const V = {
|
|
|
86
86
|
]),
|
|
87
87
|
_: 2
|
|
88
88
|
}, 1032, ["icon", "expanded", "disabled", "show-icon"])) : (d(), n(a, { key: 1 }, [
|
|
89
|
-
|
|
89
|
+
r(f, {
|
|
90
90
|
item: l,
|
|
91
91
|
rounded: e.rounded,
|
|
92
92
|
color: l.color || e.color,
|
|
@@ -97,8 +97,8 @@ const V = {
|
|
|
97
97
|
inactive: "",
|
|
98
98
|
onClick: o[2] || (o[2] = (s) => e.$emit("item-click"))
|
|
99
99
|
}, null, 8, ["item", "rounded", "color", "filled", "size", "disabled"]),
|
|
100
|
-
|
|
101
|
-
class:
|
|
100
|
+
r(b, {
|
|
101
|
+
class: i(["x-menu-inner space-y-1 ml-4 border-l border-gray-100 dark:border-gray-700", { "pl-1": e.filled }]),
|
|
102
102
|
items: l.items,
|
|
103
103
|
color: l.color || e.color,
|
|
104
104
|
size: l.size || e.size,
|
|
@@ -120,7 +120,7 @@ const V = {
|
|
|
120
120
|
filled: l.filled || e.filled,
|
|
121
121
|
size: l.size || e.size,
|
|
122
122
|
disabled: e.disabled || l.disabled,
|
|
123
|
-
class:
|
|
123
|
+
class: i({ "my-2": l.divider }),
|
|
124
124
|
onClick: o[4] || (o[4] = (s) => e.$emit("item-click")),
|
|
125
125
|
onActive: o[5] || (o[5] = (s) => e.$emit("expand"))
|
|
126
126
|
}, null, 8, ["item", "rounded", "color", "filled", "size", "disabled", "class"]))
|
|
@@ -123,11 +123,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
123
123
|
size: "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
124
124
|
loading: boolean;
|
|
125
125
|
modelValue: boolean;
|
|
126
|
+
fluid: boolean;
|
|
126
127
|
backdrop: boolean;
|
|
127
128
|
showClose: boolean;
|
|
128
129
|
hasActions: boolean;
|
|
129
130
|
hasHeader: boolean;
|
|
130
|
-
fluid: boolean;
|
|
131
131
|
isForm: boolean;
|
|
132
132
|
formDisabled: boolean;
|
|
133
133
|
formAutoValidate: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: ({ data: e }) => {
|
|
4
4
|
const t = ["inline-block relative cursor-pointer focus:outline-none group"];
|
|
5
|
-
return e.isInsideForm && t.push("mb-3"), t;
|
|
5
|
+
return e.isInsideForm && !e.isInsideFormGroup && t.push("mb-3"), t;
|
|
6
6
|
},
|
|
7
7
|
circle: ({ props: e }) => {
|
|
8
8
|
let t = "rounded-full flex justify-center items-center shrink-0 border-2 outline-offset-2 outline-slate-300 dark:outline-slate-500 group-focus:outline-1 group-focus:outline";
|
|
@@ -21,7 +21,7 @@ const n = {
|
|
|
21
21
|
return e.size === "xs" ? t += " text-xs" : e.size === "sm" ? t += " text-sm" : e.size === "lg" ? t += " text-lg" : e.size === "xl" && (t += " text-xl"), t;
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
styles: ({ props: e, colors: t, css: r, data:
|
|
24
|
+
styles: ({ props: e, colors: t, css: r, data: n }) => {
|
|
25
25
|
const l = t.getPalette("gray"), s = t.getPalette(e.color), i = [];
|
|
26
26
|
return e.loading ? r.variables({
|
|
27
27
|
bg: "transparent",
|
|
@@ -30,7 +30,7 @@ const n = {
|
|
|
30
30
|
bg: "transparent",
|
|
31
31
|
border: "transparent"
|
|
32
32
|
}
|
|
33
|
-
}) : (e.disabled ?
|
|
33
|
+
}) : (e.disabled ? n.selected ? i.push(r.variables({
|
|
34
34
|
bg: "transparent",
|
|
35
35
|
border: l[200],
|
|
36
36
|
circle: l[200],
|
|
@@ -46,7 +46,7 @@ const n = {
|
|
|
46
46
|
bg: l[700],
|
|
47
47
|
border: l[700]
|
|
48
48
|
}
|
|
49
|
-
})) : (
|
|
49
|
+
})) : (n.selected ? i.push(r.variables({
|
|
50
50
|
bg: "transparent",
|
|
51
51
|
border: s[500],
|
|
52
52
|
circle: s[500],
|
|
@@ -64,7 +64,7 @@ const n = {
|
|
|
64
64
|
}
|
|
65
65
|
})), e.glow && i.push(r.get("glow", t.getColorOpacity(s[500], 0.5)))), i);
|
|
66
66
|
}
|
|
67
|
-
}, u =
|
|
67
|
+
}, u = a;
|
|
68
68
|
export {
|
|
69
69
|
u as default
|
|
70
70
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as ve, ref as A, computed as I, watch as O, nextTick as U, unref as s, openBlock as a, createBlock as c, mergeProps as X, toHandlers as H, withCtx as
|
|
2
|
-
import { useEventListener as
|
|
1
|
+
import { defineComponent as ve, ref as A, computed as I, watch as O, nextTick as U, unref as s, openBlock as a, createBlock as c, mergeProps as X, toHandlers as H, withCtx as b, createElementVNode as E, createElementBlock as o, normalizeClass as _, Fragment as p, renderList as z, createTextVNode as C, toDisplayString as m, createVNode as K, withDirectives as pe, vModelSelect as ce, renderSlot as me, createCommentVNode as ye } from "vue";
|
|
2
|
+
import { useEventListener as he } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
3
|
import { useCommon as G } from "../../composables/useCommon.js";
|
|
4
4
|
import { useInputtable as D } from "../../composables/useInputtable.js";
|
|
5
5
|
import { useInteractive as J } from "../../composables/useInteractive.js";
|
|
6
|
-
import { useTheme as
|
|
6
|
+
import { useTheme as be } from "../../composables/useTheme.js";
|
|
7
7
|
import { checkIcon as ke, selectIcon as ge } from "../../common/icons.js";
|
|
8
8
|
import we from "../label/Label.vue.js";
|
|
9
9
|
import W from "../tag/Tag.vue.js";
|
|
10
10
|
import Ae from "../icon/Icon.vue.js";
|
|
11
11
|
import Ie from "../menu/MenuItem.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import _e from "../spinner/Spinner.vue.js";
|
|
13
|
+
import Re from "../popover/Popover.vue.js";
|
|
14
14
|
import "../popover/Popover.vue2.js";
|
|
15
|
-
import
|
|
15
|
+
import Ve from "../popover/PopoverContainer.vue.js";
|
|
16
16
|
import $e from "../inputFooter/InputFooter.vue.js";
|
|
17
17
|
const Ee = { class: "relative" }, ze = {
|
|
18
18
|
key: 0,
|
|
@@ -29,7 +29,7 @@ const Ee = { class: "relative" }, ze = {
|
|
|
29
29
|
}, De = { key: 1 }, Le = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "px-2 text-center text-gray-400"
|
|
32
|
-
}, Be = ["id", "name", "disabled", "multiple", "readonly"], Te = ["value", "disabled"],
|
|
32
|
+
}, Be = ["id", "name", "disabled", "multiple", "readonly"], Te = ["value", "disabled"], xe = {
|
|
33
33
|
...G.props(),
|
|
34
34
|
...J.props(),
|
|
35
35
|
...D.props(),
|
|
@@ -38,22 +38,22 @@ const Ee = { class: "relative" }, ze = {
|
|
|
38
38
|
multiple: Boolean,
|
|
39
39
|
flat: Boolean,
|
|
40
40
|
native: Boolean
|
|
41
|
-
},
|
|
41
|
+
}, Fe = {
|
|
42
42
|
name: "XSelect",
|
|
43
43
|
validators: {
|
|
44
44
|
...G.validators()
|
|
45
45
|
}
|
|
46
46
|
}, il = /* @__PURE__ */ ve({
|
|
47
|
-
...
|
|
48
|
-
props:
|
|
47
|
+
...Fe,
|
|
48
|
+
props: xe,
|
|
49
49
|
emits: D.emits(),
|
|
50
50
|
setup(Q, { expose: Y, emit: Z }) {
|
|
51
|
-
const r = Q,
|
|
51
|
+
const r = Q, R = Z, k = A(null), S = A(null), V = A(null), f = A(null), u = A(), t = I({
|
|
52
52
|
get() {
|
|
53
53
|
return r.multiple ? r.modelValue ? Array.isArray(r.modelValue) ? r.modelValue : [r.modelValue] : [] : r.modelValue;
|
|
54
54
|
},
|
|
55
55
|
set(e) {
|
|
56
|
-
|
|
56
|
+
R("update:modelValue", e);
|
|
57
57
|
}
|
|
58
58
|
}), d = I(() => !r.options || r.options.length === 0 ? [] : r.options.map((e) => {
|
|
59
59
|
let i = !1;
|
|
@@ -90,10 +90,10 @@ const Ee = { class: "relative" }, ze = {
|
|
|
90
90
|
}
|
|
91
91
|
function B(e) {
|
|
92
92
|
var i;
|
|
93
|
-
|
|
93
|
+
V.value && ((i = V.value[e]) == null || i.$el.scrollIntoView({ block: "nearest", inline: "nearest" }));
|
|
94
94
|
}
|
|
95
95
|
O(u, (e) => {
|
|
96
|
-
typeof e < "u" &&
|
|
96
|
+
typeof e < "u" && V.value && B(e);
|
|
97
97
|
});
|
|
98
98
|
function N(e, i = "down") {
|
|
99
99
|
if (!L.value || L.value.length === 0) {
|
|
@@ -119,7 +119,7 @@ const Ee = { class: "relative" }, ze = {
|
|
|
119
119
|
if (r.multiple)
|
|
120
120
|
if (Array.isArray(t.value)) {
|
|
121
121
|
const n = t.value.indexOf(e);
|
|
122
|
-
n !== -1 ? t.value.splice(n, 1) : (t.value.push(e),
|
|
122
|
+
n !== -1 ? t.value.splice(n, 1) : (t.value.push(e), R("update:modelValue", t.value));
|
|
123
123
|
} else
|
|
124
124
|
t.value = [e];
|
|
125
125
|
else
|
|
@@ -130,21 +130,21 @@ const Ee = { class: "relative" }, ze = {
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function x(e) {
|
|
134
134
|
return !!(typeof e > "u" || e === null || e === "" || Array.isArray(e) && e.length === 0 || !Array.isArray(e) && typeof e == "object" && Object.keys(e).length === 0);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function F(e, i) {
|
|
137
137
|
e.stopPropagation();
|
|
138
138
|
const l = t.value.indexOf(i);
|
|
139
|
-
l !== -1 && (t.value.splice(l, 1),
|
|
139
|
+
l !== -1 && (t.value.splice(l, 1), R("update:modelValue", t.value));
|
|
140
140
|
}
|
|
141
141
|
function $(e) {
|
|
142
142
|
var l;
|
|
143
143
|
const i = (l = r.options) == null ? void 0 : l.find((n) => n.value === e);
|
|
144
144
|
return i ? i.label : "";
|
|
145
145
|
}
|
|
146
|
-
const { focus:
|
|
147
|
-
errorInternal:
|
|
146
|
+
const { focus: P, blur: le } = J(k), {
|
|
147
|
+
errorInternal: q,
|
|
148
148
|
hideFooterInternal: ie,
|
|
149
149
|
inputListeners: j,
|
|
150
150
|
reset: te,
|
|
@@ -152,7 +152,7 @@ const Ee = { class: "relative" }, ze = {
|
|
|
152
152
|
setError: ae,
|
|
153
153
|
isFocused: re,
|
|
154
154
|
isInsideForm: oe
|
|
155
|
-
} = D(r, { focus:
|
|
155
|
+
} = D(r, { focus: P, emit: R, withListeners: !0 }), se = I(() => {
|
|
156
156
|
const { focus: e, blur: i } = s(j);
|
|
157
157
|
return {
|
|
158
158
|
focus: e,
|
|
@@ -161,7 +161,7 @@ const Ee = { class: "relative" }, ze = {
|
|
|
161
161
|
});
|
|
162
162
|
let g = null;
|
|
163
163
|
O([re, y], ([e, i]) => {
|
|
164
|
-
e || i ? g || (g =
|
|
164
|
+
e || i ? g || (g = he(document, "keydown", ue)) : g && (g(), g = null);
|
|
165
165
|
}, {
|
|
166
166
|
immediate: !0
|
|
167
167
|
});
|
|
@@ -192,14 +192,14 @@ const Ee = { class: "relative" }, ze = {
|
|
|
192
192
|
(M = S.value) == null || M.$el.focus();
|
|
193
193
|
}));
|
|
194
194
|
}
|
|
195
|
-
const { styles: de, classes:
|
|
196
|
-
return Y({ focus:
|
|
195
|
+
const { styles: de, classes: h, className: fe } = be("Select", {}, r, { errorInternal: q });
|
|
196
|
+
return Y({ focus: P, blur: le, reset: te, validate: ne, setError: ae }), (e, i) => (a(), c(we, X({
|
|
197
197
|
ref_key: "labelRef",
|
|
198
198
|
ref: S,
|
|
199
199
|
tabindex: "0",
|
|
200
200
|
class: ["group", [
|
|
201
201
|
s(fe),
|
|
202
|
-
s(
|
|
202
|
+
s(h).wrapper
|
|
203
203
|
]],
|
|
204
204
|
style: s(de),
|
|
205
205
|
disabled: e.disabled,
|
|
@@ -207,11 +207,11 @@ const Ee = { class: "relative" }, ze = {
|
|
|
207
207
|
"is-inside-form": s(oe),
|
|
208
208
|
label: e.label
|
|
209
209
|
}, H(se.value)), {
|
|
210
|
-
default:
|
|
210
|
+
default: b(() => [
|
|
211
211
|
E("div", Ee, [
|
|
212
212
|
e.native && !e.multiple ? (a(), o("div", {
|
|
213
213
|
key: 0,
|
|
214
|
-
class:
|
|
214
|
+
class: _(s(h).box),
|
|
215
215
|
onClick: i[0] || (i[0] = (l) => {
|
|
216
216
|
var n;
|
|
217
217
|
return (n = k.value) == null ? void 0 : n.click();
|
|
@@ -224,38 +224,35 @@ const Ee = { class: "relative" }, ze = {
|
|
|
224
224
|
outlined: "",
|
|
225
225
|
removable: "",
|
|
226
226
|
onRemove: (n) => {
|
|
227
|
-
|
|
227
|
+
F(n, l);
|
|
228
228
|
}
|
|
229
229
|
}, {
|
|
230
|
-
default:
|
|
230
|
+
default: b(() => [
|
|
231
231
|
C(m($(l)), 1)
|
|
232
232
|
]),
|
|
233
233
|
_: 2
|
|
234
234
|
}, 1032, ["onRemove"]))), 128))
|
|
235
|
-
])) : !e.multiple && !
|
|
235
|
+
])) : !e.multiple && !x(t.value) ? (a(), o(p, { key: 1 }, [
|
|
236
236
|
C(m($(t.value)), 1)
|
|
237
237
|
], 64)) : (a(), o(p, { key: 2 }, [
|
|
238
238
|
e.placeholder ? (a(), o("div", Ce, m(e.placeholder), 1)) : (a(), o("div", Se, " "))
|
|
239
239
|
], 64))
|
|
240
|
-
], 2)) : (a(), c(
|
|
240
|
+
], 2)) : (a(), c(Re, {
|
|
241
241
|
key: 1,
|
|
242
242
|
ref_key: "popoverRef",
|
|
243
243
|
ref: f,
|
|
244
|
-
|
|
245
|
-
disabled: e.disabled || e.loading || e.readonly,
|
|
246
|
-
"dismiss-on-click": !e.multiple,
|
|
247
|
-
align: "left"
|
|
244
|
+
disabled: e.disabled || e.loading || e.readonly
|
|
248
245
|
}, {
|
|
249
|
-
content:
|
|
250
|
-
K(
|
|
251
|
-
class:
|
|
246
|
+
content: b(() => [
|
|
247
|
+
K(Ve, {
|
|
248
|
+
class: _(s(h).content)
|
|
252
249
|
}, {
|
|
253
|
-
default:
|
|
250
|
+
default: b(() => [
|
|
254
251
|
d.value.length > 0 ? (a(!0), o(p, { key: 0 }, z(d.value, (l, n) => (a(), c(Ie, {
|
|
255
252
|
key: n,
|
|
256
253
|
ref_for: !0,
|
|
257
254
|
ref_key: "itemsRef",
|
|
258
|
-
ref:
|
|
255
|
+
ref: V,
|
|
259
256
|
item: l,
|
|
260
257
|
size: e.size,
|
|
261
258
|
disabled: l.disabled,
|
|
@@ -271,9 +268,9 @@ const Ee = { class: "relative" }, ze = {
|
|
|
271
268
|
_: 1
|
|
272
269
|
}, 8, ["class"])
|
|
273
270
|
]),
|
|
274
|
-
default:
|
|
271
|
+
default: b(() => [
|
|
275
272
|
E("div", {
|
|
276
|
-
class:
|
|
273
|
+
class: _([s(h).box])
|
|
277
274
|
}, [
|
|
278
275
|
e.multiple && Array.isArray(t.value) && t.value.length > 0 ? (a(), o("div", Ne, [
|
|
279
276
|
(a(!0), o(p, null, z(t.value, (l) => (a(), c(W, {
|
|
@@ -282,15 +279,15 @@ const Ee = { class: "relative" }, ze = {
|
|
|
282
279
|
outlined: "",
|
|
283
280
|
removable: "",
|
|
284
281
|
onRemove: (n) => {
|
|
285
|
-
|
|
282
|
+
F(n, l);
|
|
286
283
|
}
|
|
287
284
|
}, {
|
|
288
|
-
default:
|
|
285
|
+
default: b(() => [
|
|
289
286
|
C(m($(l)), 1)
|
|
290
287
|
]),
|
|
291
288
|
_: 2
|
|
292
289
|
}, 1032, ["onRemove"]))), 128))
|
|
293
|
-
])) : !e.multiple && !
|
|
290
|
+
])) : !e.multiple && !x(t.value) ? (a(), o(p, { key: 1 }, [
|
|
294
291
|
C(m($(t.value)), 1)
|
|
295
292
|
], 64)) : (a(), o(p, { key: 2 }, [
|
|
296
293
|
e.placeholder ? (a(), o("div", Oe, m(e.placeholder), 1)) : (a(), o("div", De, " "))
|
|
@@ -298,7 +295,7 @@ const Ee = { class: "relative" }, ze = {
|
|
|
298
295
|
], 2)
|
|
299
296
|
]),
|
|
300
297
|
_: 1
|
|
301
|
-
}, 8, ["disabled"
|
|
298
|
+
}, 8, ["disabled"])),
|
|
302
299
|
pe(E("select", X({
|
|
303
300
|
id: e.id,
|
|
304
301
|
ref_key: "elRef",
|
|
@@ -320,22 +317,22 @@ const Ee = { class: "relative" }, ze = {
|
|
|
320
317
|
[ce, t.value]
|
|
321
318
|
]),
|
|
322
319
|
E("div", {
|
|
323
|
-
class:
|
|
320
|
+
class: _(s(h).iconWrapper)
|
|
324
321
|
}, [
|
|
325
|
-
e.loading ? (a(), c(
|
|
322
|
+
e.loading ? (a(), c(_e, {
|
|
326
323
|
key: 0,
|
|
327
324
|
size: e.size
|
|
328
325
|
}, null, 8, ["size"])) : me(e.$slots, "icon", { key: 1 }, () => [
|
|
329
326
|
K(Ae, {
|
|
330
327
|
icon: s(ge),
|
|
331
|
-
class:
|
|
328
|
+
class: _([s(h).icon])
|
|
332
329
|
}, null, 8, ["icon", "class"])
|
|
333
330
|
])
|
|
334
331
|
], 2)
|
|
335
332
|
]),
|
|
336
333
|
s(ie) ? ye("", !0) : (a(), c($e, {
|
|
337
334
|
key: 0,
|
|
338
|
-
error: s(
|
|
335
|
+
error: s(q),
|
|
339
336
|
helper: e.helper
|
|
340
337
|
}, null, 8, ["error", "helper"]))
|
|
341
338
|
]),
|