vlite3 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/components/BackButton.vue.js +10 -11
  2. package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
  3. package/components/Chip/Chip.vue.d.ts +2 -2
  4. package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
  5. package/components/DataTable/DataTable.vue.d.ts +2 -2
  6. package/components/Empty/Empty.vue.d.ts +2 -0
  7. package/components/Empty/Empty.vue.js +50 -33
  8. package/components/Empty/index.d.ts +1 -0
  9. package/components/Empty/variants/Variant1.vue.d.ts +22 -0
  10. package/components/Empty/variants/Variant1.vue.js +4 -0
  11. package/components/Empty/variants/Variant1.vue2.js +30 -0
  12. package/components/Empty/variants/Variant10.vue.d.ts +22 -0
  13. package/components/Empty/variants/Variant10.vue.js +4 -0
  14. package/components/Empty/variants/Variant10.vue2.js +37 -0
  15. package/components/Empty/variants/Variant11.vue.d.ts +22 -0
  16. package/components/Empty/variants/Variant11.vue.js +4 -0
  17. package/components/Empty/variants/Variant11.vue2.js +29 -0
  18. package/components/Empty/variants/Variant2.vue.d.ts +22 -0
  19. package/components/Empty/variants/Variant2.vue.js +4 -0
  20. package/components/Empty/variants/Variant2.vue2.js +33 -0
  21. package/components/Empty/variants/Variant3.vue.d.ts +22 -0
  22. package/components/Empty/variants/Variant3.vue.js +4 -0
  23. package/components/Empty/variants/Variant3.vue2.js +25 -0
  24. package/components/Empty/variants/Variant4.vue.d.ts +22 -0
  25. package/components/Empty/variants/Variant4.vue.js +4 -0
  26. package/components/Empty/variants/Variant4.vue2.js +33 -0
  27. package/components/Empty/variants/Variant5.vue.d.ts +22 -0
  28. package/components/Empty/variants/Variant5.vue.js +4 -0
  29. package/components/Empty/variants/Variant5.vue2.js +33 -0
  30. package/components/Empty/variants/Variant6.vue.d.ts +22 -0
  31. package/components/Empty/variants/Variant6.vue.js +4 -0
  32. package/components/Empty/variants/Variant6.vue2.js +33 -0
  33. package/components/Empty/variants/Variant7.vue.d.ts +22 -0
  34. package/components/Empty/variants/Variant7.vue.js +4 -0
  35. package/components/Empty/variants/Variant7.vue2.js +35 -0
  36. package/components/Empty/variants/Variant8.vue.d.ts +22 -0
  37. package/components/Empty/variants/Variant8.vue.js +4 -0
  38. package/components/Empty/variants/Variant8.vue2.js +33 -0
  39. package/components/Empty/variants/Variant9.vue.d.ts +22 -0
  40. package/components/Empty/variants/Variant9.vue.js +4 -0
  41. package/components/Empty/variants/Variant9.vue2.js +33 -0
  42. package/components/Form/Form.vue.d.ts +17 -0
  43. package/components/Form/Form.vue.js +1 -1
  44. package/components/Form/Form.vue2.js +239 -183
  45. package/components/Form/types.d.ts +13 -1
  46. package/components/Modal.vue.js +2 -2
  47. package/components/Modal.vue2.js +45 -43
  48. package/components/Navbar/Navbar.vue.d.ts +2 -2
  49. package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  50. package/components/Screen/Screen.vue.js +249 -241
  51. package/components/SidebarMenu/SidebarMenuItem.vue.js +5 -7
  52. package/components/Workbook/Workbook.vue.d.ts +2 -2
  53. package/core/config.d.ts +6 -0
  54. package/core/config.js +14 -8
  55. package/core/index.js +12 -7
  56. package/index.d.ts +1 -0
  57. package/index.js +120 -117
  58. package/package.json +1 -1
  59. package/style.css +1 -1
  60. package/types/config.type.d.ts +9 -0
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant6.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as i, openBlock as o, createElementBlock as n, createVNode as c, createElementVNode as s, toDisplayString as r, renderSlot as l, createCommentVNode as m } from "vue";
2
+ import a from "../../Icon.vue.js";
3
+ const d = { class: "flex w-full flex-col items-center justify-center p-10 md:p-16 text-center" }, u = { class: "text-lg font-medium text-foreground" }, f = ["innerHTML"], p = {
4
+ key: 0,
5
+ class: "mt-8"
6
+ }, g = /* @__PURE__ */ i({
7
+ __name: "Variant6",
8
+ props: {
9
+ title: {},
10
+ description: {},
11
+ icon: {}
12
+ },
13
+ setup(t) {
14
+ return (e, x) => (o(), n("div", d, [
15
+ c(a, {
16
+ icon: t.icon,
17
+ class: "mb-5 h-12 w-12 text-foreground",
18
+ "stroke-width": "1.2"
19
+ }, null, 8, ["icon"]),
20
+ s("h3", u, r(t.title), 1),
21
+ s("p", {
22
+ class: "mt-2 text-sm text-muted max-w-sm mx-auto",
23
+ innerHTML: t.description
24
+ }, null, 8, f),
25
+ e.$slots.action ? (o(), n("div", p, [
26
+ l(e.$slots, "action")
27
+ ])) : m("", !0)
28
+ ]));
29
+ }
30
+ });
31
+ export {
32
+ g as default
33
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant7.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as n, openBlock as l, createElementBlock as s, createElementVNode as e, createVNode as i, toDisplayString as d, renderSlot as a } from "vue";
2
+ import m from "../../Icon.vue.js";
3
+ const c = { class: "relative flex w-full max-w-2xl flex-col items-center justify-center py-10 pl-4 md:pl-16" }, f = { class: "flex flex-col items-start relative" }, x = { class: "mb-6 flex h-12 w-12 items-center justify-center rounded-xl bg-card border shadow-xs transition-transform duration-500 hover:scale-110" }, u = { class: "mb-3 font-serif text-3xl font-medium tracking-tight text-foreground md:text-4xl" }, b = ["innerHTML"], h = /* @__PURE__ */ n({
4
+ __name: "Variant7",
5
+ props: {
6
+ title: {},
7
+ description: {},
8
+ icon: {}
9
+ },
10
+ setup(r) {
11
+ return (o, t) => (l(), s("div", c, [
12
+ e("div", f, [
13
+ e("div", x, [
14
+ i(m, {
15
+ icon: r.icon,
16
+ class: "h-5 w-5 text-foreground"
17
+ }, null, 8, ["icon"])
18
+ ]),
19
+ e("h3", u, d(r.title), 1),
20
+ e("p", {
21
+ class: "mb-10 max-w-md text-base leading-relaxed text-muted",
22
+ innerHTML: r.description
23
+ }, null, 8, b),
24
+ a(o.$slots, "action"),
25
+ t[0] || (t[0] = e("div", { class: "max-md:hidden absolute bottom-0 left-0 -ml-16 top-0 mt-4 w-px bg-linear-to-b from-border via-border/50 to-transparent md:left-6" }, null, -1)),
26
+ t[1] || (t[1] = e("div", { class: "max-md:hidden absolute left-0 -ml-16 top-0 flex h-6 w-6 mt-4 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border-[3px] border-background bg-card ring-1 ring-border md:left-6" }, [
27
+ e("div", { class: "h-1.5 w-1.5 rounded-full bg-foreground" })
28
+ ], -1))
29
+ ])
30
+ ]));
31
+ }
32
+ });
33
+ export {
34
+ h as default
35
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant8.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as r, openBlock as o, createElementBlock as n, createVNode as c, createElementVNode as s, toDisplayString as i, renderSlot as l, createCommentVNode as a } from "vue";
2
+ import d from "../../Icon.vue.js";
3
+ const m = { class: "flex w-full flex-col items-center justify-center p-8 rounded-xl bg-background border shadow-xs max-w-md mx-auto text-center" }, u = { class: "mb-1.5 text-sm font-medium text-foreground" }, x = ["innerHTML"], f = {
4
+ key: 0,
5
+ class: "mt-6"
6
+ }, w = /* @__PURE__ */ r({
7
+ __name: "Variant8",
8
+ props: {
9
+ title: {},
10
+ description: {},
11
+ icon: {}
12
+ },
13
+ setup(e) {
14
+ return (t, _) => (o(), n("div", m, [
15
+ c(d, {
16
+ icon: e.icon,
17
+ class: "h-6 w-6 text-foreground mb-4",
18
+ "stroke-width": "1.5"
19
+ }, null, 8, ["icon"]),
20
+ s("h3", u, i(e.title), 1),
21
+ s("p", {
22
+ class: "text-sm text-muted max-w-xs",
23
+ innerHTML: e.description
24
+ }, null, 8, x),
25
+ t.$slots.action ? (o(), n("div", f, [
26
+ l(t.$slots, "action")
27
+ ])) : a("", !0)
28
+ ]));
29
+ }
30
+ });
31
+ export {
32
+ w as default
33
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant9.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as i, openBlock as n, createElementBlock as s, createElementVNode as e, createVNode as l, toDisplayString as c, renderSlot as r } from "vue";
2
+ import d from "../../Icon.vue.js";
3
+ const a = { class: "grid w-full max-w-4xl grid-cols-1 items-center gap-10 border-l-[3px] border-border py-4 pl-8 md:grid-cols-2 md:gap-16 md:pl-16" }, m = { class: "space-y-6" }, x = { class: "flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50" }, p = { class: "text-4xl md:text-5xl font-black uppercase italic leading-[0.9] tracking-tighter text-foreground" }, f = { class: "flex flex-col items-start" }, g = ["innerHTML"], b = /* @__PURE__ */ i({
4
+ __name: "Variant9",
5
+ props: {
6
+ title: {},
7
+ description: {},
8
+ icon: {}
9
+ },
10
+ setup(t) {
11
+ return (o, _) => (n(), s("div", a, [
12
+ e("div", m, [
13
+ e("div", x, [
14
+ l(d, {
15
+ icon: t.icon,
16
+ class: "h-5 w-5 text-foreground"
17
+ }, null, 8, ["icon"])
18
+ ]),
19
+ e("h3", p, c(t.title), 1)
20
+ ]),
21
+ e("div", f, [
22
+ e("p", {
23
+ class: "mb-8 text-base md:text-lg font-light leading-relaxed text-muted",
24
+ innerHTML: t.description
25
+ }, null, 8, g),
26
+ r(o.$slots, "action")
27
+ ])
28
+ ]));
29
+ }
30
+ });
31
+ export {
32
+ b as default
33
+ };
@@ -27,10 +27,21 @@ interface Props {
27
27
  showRequiredAsterisk?: boolean;
28
28
  /** Pin footer to bottom of viewport/container */
29
29
  stickyFooter?: boolean;
30
+ isPage?: boolean;
31
+ pageTitle?: string;
32
+ pageTitleI18n?: string;
33
+ pageTitleClass?: string;
34
+ pageHeaderClass?: string;
35
+ backButtonProps?: ButtonProps;
30
36
  }
31
37
  declare function __VLS_template(): {
32
38
  attrs: Partial<{}>;
33
39
  slots: {
40
+ 'header-actions'?(_: {
41
+ values: Record<string, any>;
42
+ isSubmitting: boolean;
43
+ handleSubmit: () => Promise<void>;
44
+ }): any;
34
45
  default?(_: {
35
46
  values: Record<string, any>;
36
47
  errors: Record<string, string>;
@@ -50,11 +61,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
50
61
  onCancel: () => any;
51
62
  onAddonAction: (action: string) => any;
52
63
  onStepChange: (step: number) => any;
64
+ onBack: () => any;
53
65
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
54
66
  onOnSubmit?: (payload: IFormSubmitPayload, close: () => void) => any;
55
67
  onOnCancel?: () => any;
56
68
  onOnAddonAction?: (action: string) => any;
57
69
  onOnStepChange?: (step: number) => any;
70
+ onOnBack?: () => any;
58
71
  }>, {
59
72
  values: Record<string, any>;
60
73
  footer: boolean;
@@ -74,6 +87,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
74
87
  timelineTextPosition: TimelineTextPosition;
75
88
  emitFields: string[];
76
89
  stickyFooter: boolean;
90
+ isPage: boolean;
91
+ pageTitleClass: string;
92
+ pageHeaderClass: string;
93
+ backButtonProps: ButtonProps;
77
94
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
78
95
  sentinelRef: HTMLDivElement;
79
96
  footerRef: HTMLDivElement;
@@ -1,7 +1,7 @@
1
1
  import o from "./Form.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d34e8931"]]);
4
+ const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ec728317"]]);
5
5
  export {
6
6
  _ as default
7
7
  };