vlite3 0.4.8 → 0.5.2
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/README.md +201 -100
- package/_virtual/Barcode.js +4 -0
- package/_virtual/CODE128.js +4 -0
- package/_virtual/CODE128A.js +4 -0
- package/_virtual/CODE128B.js +4 -0
- package/_virtual/CODE128C.js +4 -0
- package/_virtual/CODE128_AUTO.js +4 -0
- package/_virtual/CODE93.js +4 -0
- package/_virtual/CODE93FullASCII.js +4 -0
- package/_virtual/EAN.js +4 -0
- package/_virtual/EAN13.js +4 -0
- package/_virtual/EAN2.js +4 -0
- package/_virtual/EAN5.js +4 -0
- package/_virtual/EAN8.js +4 -0
- package/_virtual/ErrorHandler.js +4 -0
- package/_virtual/FileSaver.min.js +5 -0
- package/_virtual/FileSaver.min2.js +4 -0
- package/_virtual/ITF.js +4 -0
- package/_virtual/ITF14.js +4 -0
- package/_virtual/JsBarcode.js +7 -0
- package/_virtual/MSI.js +4 -0
- package/_virtual/MSI10.js +4 -0
- package/_virtual/MSI1010.js +4 -0
- package/_virtual/MSI11.js +4 -0
- package/_virtual/MSI1110.js +4 -0
- package/_virtual/UPC.js +4 -0
- package/_virtual/UPCE.js +4 -0
- package/_virtual/_commonjsHelpers.js +8 -0
- package/_virtual/alignment-pattern.js +4 -0
- package/_virtual/auto.js +4 -0
- package/_virtual/browser.js +7 -0
- package/_virtual/browser2.js +4 -0
- package/_virtual/canvas.js +4 -0
- package/_virtual/canvas2.js +4 -0
- package/_virtual/checksums.js +4 -0
- package/_virtual/constants.js +4 -0
- package/_virtual/constants2.js +4 -0
- package/_virtual/constants3.js +4 -0
- package/_virtual/constants4.js +4 -0
- package/_virtual/defaults.js +4 -0
- package/_virtual/dijkstra.js +4 -0
- package/_virtual/encoder.js +4 -0
- package/_virtual/error-correction-code.js +4 -0
- package/_virtual/error-correction-level.js +4 -0
- package/_virtual/exceptions.js +4 -0
- package/_virtual/finder-pattern.js +4 -0
- package/_virtual/fixOptions.js +4 -0
- package/_virtual/format-info.js +4 -0
- package/_virtual/galois-field.js +4 -0
- package/_virtual/getOptionsFromElement.js +4 -0
- package/_virtual/getRenderProperties.js +4 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index10.js +4 -0
- package/_virtual/index11.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/index4.js +4 -0
- package/_virtual/index5.js +4 -0
- package/_virtual/index6.js +4 -0
- package/_virtual/index7.js +4 -0
- package/_virtual/index8.js +4 -0
- package/_virtual/index9.js +4 -0
- package/_virtual/linearizeEncodings.js +4 -0
- package/_virtual/mask-pattern.js +4 -0
- package/_virtual/merge.js +4 -0
- package/_virtual/mode.js +4 -0
- package/_virtual/object.js +4 -0
- package/_virtual/optionsFromStrings.js +4 -0
- package/_virtual/papaparse.min.js +7 -0
- package/_virtual/papaparse.min2.js +4 -0
- package/_virtual/polynomial.js +4 -0
- package/_virtual/qrcode.js +4 -0
- package/_virtual/regex.js +4 -0
- package/_virtual/segments.js +4 -0
- package/_virtual/shared.js +4 -0
- package/_virtual/svg-tag.js +4 -0
- package/_virtual/svg.js +4 -0
- package/_virtual/utils.js +4 -0
- package/_virtual/utils2.js +4 -0
- package/_virtual/version-check.js +4 -0
- package/_virtual/version.js +4 -0
- package/components/Accordion/Accordion.vue.d.ts +7 -7
- package/components/Accordion/AccordionItem.vue.d.ts +4 -4
- package/components/Accordion/AccordionTrigger.vue.d.ts +2 -2
- package/components/Alert.vue.d.ts +1 -1
- package/components/Avatar.vue.d.ts +2 -2
- package/components/Avatar.vue.js +2 -2
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +5 -5
- package/components/Badge.vue.d.ts +1 -1
- package/components/Barcode/Barcode.vue.d.ts +22 -0
- package/components/Barcode/Barcode.vue.js +58 -0
- package/components/Barcode/Barcode.vue2.js +4 -0
- package/components/Barcode/index.d.ts +2 -0
- package/components/Barcode/types.d.ts +5 -0
- package/components/Barcode/types.js +15 -0
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +23 -0
- package/components/Breadcrumb/Breadcrumb.vue.js +7 -0
- package/components/Breadcrumb/Breadcrumb.vue2.js +84 -0
- package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +27 -0
- package/components/Breadcrumb/BreadcrumbItem.vue.js +7 -0
- package/components/Breadcrumb/BreadcrumbItem.vue2.js +50 -0
- package/components/Breadcrumb/index.d.ts +3 -0
- package/components/Breadcrumb/types.d.ts +19 -0
- package/components/Button.vue.d.ts +4 -4
- package/components/Button.vue.js +32 -29
- package/components/ButtonGroup.vue.d.ts +1 -1
- package/components/Carousel/Carousel.vue.d.ts +58 -58
- package/components/CheckBox.vue.d.ts +2 -2
- package/components/Chip/Chip.vue.d.ts +3 -3
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +4 -4
- package/components/ColorPicker/ColorPicker.vue.d.ts +3 -3
- package/components/ColorPicker/index.d.ts +1 -0
- package/components/CommandPaletteContent.vue.d.ts +15 -0
- package/components/CommandPaletteContent.vue.js +7 -0
- package/components/CommandPaletteContent.vue2.js +287 -0
- package/components/ConfirmationModal.vue.js +12 -10
- package/components/DataList/DataList.vue.d.ts +2 -2
- package/components/DataTable/DataTable.vue.d.ts +6 -6
- package/components/DataTable/DataTableRow.vue.d.ts +3 -3
- package/components/DatePicker.vue.d.ts +2 -2
- package/components/DatePicker.vue.js +7 -7
- package/components/DateRangePicker.vue.d.ts +29 -0
- package/components/DateRangePicker.vue.js +231 -0
- package/components/DateRangePicker.vue2.js +4 -0
- package/components/Dropdown/Dropdown.vue.d.ts +11 -6
- package/components/Dropdown/Dropdown.vue.js +147 -109
- package/components/Dropdown/DropdownBooleanItem.vue.js +9 -8
- package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
- package/components/Dropdown/DropdownGroupedLayout.vue.js +35 -34
- package/components/Dropdown/DropdownItem.vue.js +11 -10
- package/components/Dropdown/DropdownMenu.vue.d.ts +5 -3
- package/components/Dropdown/DropdownMenu.vue.js +114 -111
- package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
- package/components/Dropdown/DropdownTrigger.vue.js +9 -7
- package/components/ExportData/ExportData.vue.d.ts +16 -0
- package/components/ExportData/ExportData.vue.js +135 -0
- package/components/ExportData/ExportData.vue2.js +4 -0
- package/components/ExportData/index.d.ts +2 -0
- package/components/ExportData/types.d.ts +17 -0
- package/components/FilePicker/FilePicker.vue.d.ts +5 -5
- package/components/Form/CustomFields.vue.d.ts +6 -6
- package/components/Form/CustomFields.vue.js +1 -1
- package/components/Form/Form.vue.d.ts +4 -5
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +221 -178
- package/components/Form/FormField.vue.d.ts +4 -3
- package/components/Form/FormField.vue.js +70 -62
- package/components/Form/FormFields.vue.d.ts +3 -1
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +105 -59
- package/components/GoogleLogin.vue.d.ts +2 -2
- package/components/Icon.vue.d.ts +2 -0
- package/components/Icon.vue.js +12 -11
- package/components/ImportData/ImportData.vue.d.ts +31 -0
- package/components/ImportData/ImportData.vue.js +242 -0
- package/components/ImportData/ImportData.vue2.js +4 -0
- package/components/ImportData/ImportStep1.vue.d.ts +23 -0
- package/components/ImportData/ImportStep1.vue.js +162 -0
- package/components/ImportData/ImportStep1.vue2.js +4 -0
- package/components/ImportData/ImportStep2.vue.d.ts +20 -0
- package/components/ImportData/ImportStep2.vue.js +98 -0
- package/components/ImportData/ImportStep2.vue2.js +4 -0
- package/components/ImportData/ImportStep3.vue.d.ts +6 -0
- package/components/ImportData/ImportStep3.vue.js +98 -0
- package/components/ImportData/ImportStep3.vue2.js +4 -0
- package/components/ImportData/ImportStep4.vue.d.ts +6 -0
- package/components/ImportData/ImportStep4.vue.js +139 -0
- package/components/ImportData/ImportStep4.vue2.js +4 -0
- package/components/ImportData/index.d.ts +2 -0
- package/components/ImportData/types.d.ts +51 -0
- package/components/Input.vue.d.ts +9 -9
- package/components/Input.vue.js +137 -120
- package/components/List/List.vue.d.ts +18 -0
- package/components/List/List.vue.js +189 -0
- package/components/List/List.vue2.js +4 -0
- package/components/List/ListFieldRow.vue.d.ts +35 -0
- package/components/List/ListFieldRow.vue.js +119 -0
- package/components/List/ListFieldRow.vue2.js +4 -0
- package/components/List/index.d.ts +4 -0
- package/components/List/types.d.ts +1 -0
- package/components/List/utils.d.ts +9 -0
- package/components/List/utils.js +64 -0
- package/components/Masonry/Masonry.vue.d.ts +2 -2
- package/components/Modal.vue.js +5 -122
- package/components/Modal.vue2.js +133 -2
- package/components/MultiSelect/MultiSelect.vue.d.ts +12 -9
- package/components/MultiSelect/MultiSelect.vue.js +101 -64
- package/components/Navbar/Navbar.vue.d.ts +48 -9
- package/components/Navbar/Navbar.vue.js +418 -146
- package/components/Navbar/NavbarItem.vue.d.ts +2 -2
- package/components/Navbar/NavbarTabs.vue.d.ts +21 -0
- package/components/Navbar/NavbarTabs.vue.js +179 -0
- package/components/Navbar/NavbarTabs.vue3.js +5 -0
- package/components/Navbar/index.d.ts +3 -0
- package/components/NavbarCommandPalette.vue.d.ts +48 -0
- package/components/NumberInput.vue.d.ts +8 -8
- package/components/OTPInput/OTPInput.vue.d.ts +7 -7
- package/components/Pagination/Pagination.vue.d.ts +1 -1
- package/components/PermissionMatrix/PermissionEditor.vue.d.ts +36 -0
- package/components/PermissionMatrix/PermissionEditor.vue.js +323 -0
- package/components/PermissionMatrix/PermissionEditor.vue2.js +4 -0
- package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +15 -0
- package/components/PermissionMatrix/PermissionMatrix.vue.js +7 -0
- package/components/PermissionMatrix/PermissionMatrix.vue2.js +245 -0
- package/components/PermissionMatrix/index.d.ts +3 -0
- package/components/PermissionMatrix/types.d.ts +59 -0
- package/components/PricingPlan/PricingPlan.vue.d.ts +3 -3
- package/components/ProgressBar/ProgressBar.vue.d.ts +3 -3
- package/components/QRCode/QRCode.vue.d.ts +15 -0
- package/components/QRCode/QRCode.vue.js +38 -0
- package/components/QRCode/QRCode.vue2.js +4 -0
- package/components/QRCode/index.d.ts +1 -0
- package/components/Screen/Screen.vue.d.ts +232 -5
- package/components/Screen/Screen.vue.js +423 -271
- package/components/Screen/ScreenFilter.vue.d.ts +2 -2
- package/components/Screen/ScreenFilter.vue.js +9 -9
- package/components/Screen/types.d.ts +12 -0
- package/components/SidePanel.vue.d.ts +2 -2
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +15 -2
- package/components/SidebarMenu/SidebarMenu.vue.js +117 -47
- package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +2 -0
- package/components/SidebarMenu/SidebarMenuItem.vue.js +192 -175
- package/components/SidebarMenu/types.d.ts +32 -5
- package/components/Slider.vue.d.ts +2 -2
- package/components/Spinner/Spinner.vue.d.ts +2 -2
- package/components/Stats/Stats.vue.d.ts +14 -0
- package/components/Stats/Stats.vue.js +307 -0
- package/components/Stats/Stats.vue2.js +4 -0
- package/components/Stats/index.d.ts +2 -0
- package/components/Stats/types.d.ts +32 -0
- package/components/Switch.vue.d.ts +2 -1
- package/components/Switch.vue.js +4 -2
- package/components/Tabes/Tabes.vue.d.ts +3 -3
- package/components/Tabes/Tabes.vue.js +60 -57
- package/components/Tabes/types.d.ts +5 -0
- package/components/Textarea.vue.d.ts +3 -3
- package/components/{Timeline.vue.d.ts → Timeline/Timeline.vue.d.ts} +23 -2
- package/components/Timeline/Timeline.vue.js +92 -0
- package/components/Timeline/TimelineIndicator.vue.d.ts +9 -0
- package/components/Timeline/TimelineIndicator.vue.js +68 -0
- package/components/Timeline/TimelineIndicator.vue2.js +4 -0
- package/components/Timeline/TimelineItem.vue.d.ts +56 -0
- package/components/Timeline/TimelineItem.vue.js +173 -0
- package/components/Timeline/TimelineItem.vue2.js +4 -0
- package/components/Timeline/index.d.ts +3 -0
- package/components/Tooltip.vue.d.ts +2 -2
- package/components/Workbook/Sheet.vue.d.ts +2 -2
- package/components/Workbook/Workbook.vue.d.ts +3 -3
- package/components/index.d.ts +62 -0
- package/composables/useBreadcrumb.d.ts +17 -0
- package/composables/useBreadcrumb.js +27 -0
- package/core/config.d.ts +34 -0
- package/core/config.js +10 -7
- package/core/index.js +15 -8
- package/index.d.ts +55 -44
- package/index.js +243 -200
- package/package.json +12 -2
- package/router.d.ts +2 -0
- package/style.css +7 -5
- package/types/button.d.ts +1 -1
- package/types/config.type.d.ts +35 -0
- package/types/form.type.d.ts +3 -1
- package/types/index.d.ts +2 -1
- package/types/list.type.d.ts +57 -0
- package/types/navbar.type.d.ts +38 -1
- package/types/timeline.type.d.ts +14 -4
- package/components/Timeline.vue.js +0 -160
- /package/components/{Timeline.vue2.js → Timeline/Timeline.vue2.js} +0 -0
|
@@ -1,19 +1,38 @@
|
|
|
1
|
-
import { TimelineStep, TimelineDirection, TimelineTextPosition } from '
|
|
1
|
+
import { TimelineStep, TimelineDirection, TimelineTextPosition, TimelineLineStyle, TimelineIndicatorType } from '../../types';
|
|
2
2
|
interface Props {
|
|
3
3
|
steps: TimelineStep[];
|
|
4
4
|
activeStep?: number;
|
|
5
5
|
direction?: TimelineDirection;
|
|
6
6
|
textPosition?: TimelineTextPosition;
|
|
7
|
+
lineStyle?: TimelineLineStyle;
|
|
8
|
+
indicatorType?: TimelineIndicatorType;
|
|
7
9
|
clickable?: boolean;
|
|
8
10
|
class?: string;
|
|
9
11
|
}
|
|
10
12
|
declare function __VLS_template(): {
|
|
11
13
|
attrs: Partial<{}>;
|
|
12
14
|
slots: {
|
|
15
|
+
indicator?(_: any): any;
|
|
16
|
+
title?(_: {
|
|
17
|
+
step: TimelineStep;
|
|
18
|
+
index: number;
|
|
19
|
+
}): any;
|
|
20
|
+
subtitle?(_: {
|
|
21
|
+
step: TimelineStep;
|
|
22
|
+
index: number;
|
|
23
|
+
}): any;
|
|
24
|
+
status?(_: {
|
|
25
|
+
step: TimelineStep;
|
|
26
|
+
index: number;
|
|
27
|
+
}): any;
|
|
13
28
|
content?(_: {
|
|
14
29
|
step: TimelineStep;
|
|
15
30
|
index: number;
|
|
16
31
|
}): any;
|
|
32
|
+
body?(_: {
|
|
33
|
+
step: TimelineStep;
|
|
34
|
+
index: number;
|
|
35
|
+
}): any;
|
|
17
36
|
};
|
|
18
37
|
refs: {};
|
|
19
38
|
rootEl: HTMLElement;
|
|
@@ -25,10 +44,12 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
25
44
|
"onStep-click"?: (step: TimelineStep, index: number) => any;
|
|
26
45
|
}>, {
|
|
27
46
|
class: string;
|
|
28
|
-
direction: TimelineDirection;
|
|
29
47
|
clickable: boolean;
|
|
48
|
+
direction: TimelineDirection;
|
|
30
49
|
activeStep: number;
|
|
31
50
|
textPosition: TimelineTextPosition;
|
|
51
|
+
lineStyle: TimelineLineStyle;
|
|
52
|
+
indicatorType: TimelineIndicatorType;
|
|
32
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
33
54
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
55
|
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { defineComponent as w, computed as b, openBlock as r, createElementBlock as c, normalizeClass as v, createElementVNode as u, normalizeStyle as y, createCommentVNode as p, Fragment as x, renderList as P, createBlock as $, withCtx as o, renderSlot as s, mergeProps as a } from "vue";
|
|
2
|
+
import C from "./TimelineItem.vue.js";
|
|
3
|
+
const B = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "absolute top-4 left-4 right-4 h-0.5 bg-border",
|
|
6
|
+
"aria-hidden": "true"
|
|
7
|
+
}, z = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "absolute top-4 left-4 right-4 h-0.5 bg-border block sm:hidden",
|
|
10
|
+
"aria-hidden": "true"
|
|
11
|
+
}, E = /* @__PURE__ */ w({
|
|
12
|
+
__name: "Timeline",
|
|
13
|
+
props: {
|
|
14
|
+
steps: {},
|
|
15
|
+
activeStep: { default: 0 },
|
|
16
|
+
direction: { default: "horizontal" },
|
|
17
|
+
textPosition: { default: "bottom" },
|
|
18
|
+
lineStyle: { default: "solid" },
|
|
19
|
+
indicatorType: { default: "icon" },
|
|
20
|
+
clickable: { type: Boolean, default: !1 },
|
|
21
|
+
class: { default: "" }
|
|
22
|
+
},
|
|
23
|
+
emits: ["step-click"],
|
|
24
|
+
setup(e, { emit: g }) {
|
|
25
|
+
const l = e, k = g, n = b(() => l.direction === "vertical"), d = b(() => l.steps.length <= 1 ? 0 : Math.min(l.activeStep, l.steps.length - 1) / (l.steps.length - 1) * 100), S = (i, f) => {
|
|
26
|
+
k("step-click", i, f);
|
|
27
|
+
};
|
|
28
|
+
return (i, f) => (r(), c("nav", {
|
|
29
|
+
"aria-label": "Progress",
|
|
30
|
+
class: v(["w-full", l.class])
|
|
31
|
+
}, [
|
|
32
|
+
u("ol", {
|
|
33
|
+
role: "list",
|
|
34
|
+
class: v([
|
|
35
|
+
"relative flex",
|
|
36
|
+
n.value ? "flex-col space-y-0" : "",
|
|
37
|
+
!n.value && e.textPosition === "bottom" ? "flex-row w-full justify-between items-center" : "",
|
|
38
|
+
!n.value && e.textPosition === "right" ? "flex-row w-full" : ""
|
|
39
|
+
])
|
|
40
|
+
}, [
|
|
41
|
+
!n.value && e.textPosition === "bottom" ? (r(), c("div", B, [
|
|
42
|
+
u("div", {
|
|
43
|
+
class: "h-full bg-primary transition-all duration-300 ease-in-out",
|
|
44
|
+
style: y({ width: `${d.value}%` })
|
|
45
|
+
}, null, 4)
|
|
46
|
+
])) : p("", !0),
|
|
47
|
+
!n.value && e.textPosition === "right" ? (r(), c("div", z, [
|
|
48
|
+
u("div", {
|
|
49
|
+
class: "h-full bg-primary transition-all duration-300 ease-in-out",
|
|
50
|
+
style: y({ width: `${d.value}%` })
|
|
51
|
+
}, null, 4)
|
|
52
|
+
])) : p("", !0),
|
|
53
|
+
(r(!0), c(x, null, P(e.steps, (m, h) => (r(), $(C, {
|
|
54
|
+
key: m.id,
|
|
55
|
+
step: m,
|
|
56
|
+
index: h,
|
|
57
|
+
"is-last": h === e.steps.length - 1,
|
|
58
|
+
"active-step": e.activeStep,
|
|
59
|
+
direction: e.direction,
|
|
60
|
+
"text-position": e.textPosition,
|
|
61
|
+
"line-style": e.lineStyle,
|
|
62
|
+
"indicator-type": e.indicatorType,
|
|
63
|
+
clickable: e.clickable,
|
|
64
|
+
onStepClick: S
|
|
65
|
+
}, {
|
|
66
|
+
indicator: o((t) => [
|
|
67
|
+
s(i.$slots, "indicator", a({ ref_for: !0 }, t))
|
|
68
|
+
]),
|
|
69
|
+
title: o((t) => [
|
|
70
|
+
s(i.$slots, "title", a({ ref_for: !0 }, t))
|
|
71
|
+
]),
|
|
72
|
+
subtitle: o((t) => [
|
|
73
|
+
s(i.$slots, "subtitle", a({ ref_for: !0 }, t))
|
|
74
|
+
]),
|
|
75
|
+
status: o((t) => [
|
|
76
|
+
s(i.$slots, "status", a({ ref_for: !0 }, t))
|
|
77
|
+
]),
|
|
78
|
+
content: o((t) => [
|
|
79
|
+
s(i.$slots, "content", a({ ref_for: !0 }, t))
|
|
80
|
+
]),
|
|
81
|
+
body: o((t) => [
|
|
82
|
+
s(i.$slots, "body", a({ ref_for: !0 }, t))
|
|
83
|
+
]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, ["step", "index", "is-last", "active-step", "direction", "text-position", "line-style", "indicator-type", "clickable"]))), 128))
|
|
86
|
+
], 2)
|
|
87
|
+
], 2));
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
E as default
|
|
92
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TimelineProgressStatus, TimelineIndicatorType } from '../../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
status: TimelineProgressStatus;
|
|
4
|
+
type: TimelineIndicatorType;
|
|
5
|
+
index: number;
|
|
6
|
+
icon?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineComponent as i, openBlock as t, createElementBlock as r, normalizeClass as n, toDisplayString as a, Fragment as c, createVNode as l, createBlock as o } from "vue";
|
|
2
|
+
import s from "../Icon.vue.js";
|
|
3
|
+
const u = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "relative z-10 flex h-8 w-8 items-center justify-center rounded-full bg-primary hover:bg-primary-dark transition-colors"
|
|
6
|
+
}, d = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "relative z-10 flex h-8 w-8 items-center justify-center rounded-full border-2 border-primary bg-background"
|
|
9
|
+
}, m = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "h-2.5 w-2.5 rounded-full bg-primary"
|
|
12
|
+
}, f = {
|
|
13
|
+
key: 2,
|
|
14
|
+
class: "relative z-10 flex h-8 w-8 items-center justify-center rounded-full border-2 bg-background group-hover:border-muted-foreground transition-colors"
|
|
15
|
+
}, y = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "h-2.5 w-2.5 rounded-full bg-transparent group-hover:bg-muted"
|
|
18
|
+
}, x = /* @__PURE__ */ i({
|
|
19
|
+
__name: "TimelineIndicator",
|
|
20
|
+
props: {
|
|
21
|
+
status: {},
|
|
22
|
+
type: {},
|
|
23
|
+
index: {},
|
|
24
|
+
icon: {}
|
|
25
|
+
},
|
|
26
|
+
setup(e) {
|
|
27
|
+
return (g, h) => (t(), r("span", {
|
|
28
|
+
class: n(["flex items-center justify-center shrink-0 bg-background z-10", [e.type === "dot" ? "h-5 w-5" : "h-9 w-9"]]),
|
|
29
|
+
"aria-hidden": "true"
|
|
30
|
+
}, [
|
|
31
|
+
e.type === "number" ? (t(), r("span", {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: n([
|
|
34
|
+
"relative z-10 flex items-center justify-center rounded-full text-sm font-medium transition-colors h-8 w-8",
|
|
35
|
+
e.status === "completed" || e.status === "current" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground"
|
|
36
|
+
])
|
|
37
|
+
}, a(e.index + 1), 3)) : e.type === "dot" ? (t(), r("span", {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: n(["relative z-10 flex items-center justify-center rounded-full transition-colors h-3.5 w-3.5", [
|
|
40
|
+
e.status === "completed" || e.status === "current" ? "bg-primary" : "bg-border",
|
|
41
|
+
e.status === "current" ? "ring-4 ring-primary/20" : ""
|
|
42
|
+
]])
|
|
43
|
+
}, null, 2)) : (t(), r(c, { key: 2 }, [
|
|
44
|
+
e.status === "completed" ? (t(), r("span", u, [
|
|
45
|
+
l(s, {
|
|
46
|
+
icon: "lucide:check",
|
|
47
|
+
class: "h-5 w-5 text-primary-foreground"
|
|
48
|
+
})
|
|
49
|
+
])) : e.status === "current" ? (t(), r("span", d, [
|
|
50
|
+
e.icon ? (t(), o(s, {
|
|
51
|
+
key: 0,
|
|
52
|
+
icon: e.icon,
|
|
53
|
+
class: "h-4 w-4 text-primary"
|
|
54
|
+
}, null, 8, ["icon"])) : (t(), r("span", m))
|
|
55
|
+
])) : (t(), r("span", f, [
|
|
56
|
+
e.icon ? (t(), o(s, {
|
|
57
|
+
key: 0,
|
|
58
|
+
icon: e.icon,
|
|
59
|
+
class: "h-4 w-4 text-muted-foreground"
|
|
60
|
+
}, null, 8, ["icon"])) : (t(), r("span", y))
|
|
61
|
+
]))
|
|
62
|
+
], 64))
|
|
63
|
+
], 2));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
x as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { TimelineStep, TimelineDirection, TimelineTextPosition, TimelineLineStyle, TimelineIndicatorType } from '../../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
step: TimelineStep;
|
|
4
|
+
index: number;
|
|
5
|
+
isLast: boolean;
|
|
6
|
+
activeStep: number;
|
|
7
|
+
direction: TimelineDirection;
|
|
8
|
+
textPosition: TimelineTextPosition;
|
|
9
|
+
lineStyle: TimelineLineStyle;
|
|
10
|
+
indicatorType: TimelineIndicatorType;
|
|
11
|
+
clickable: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: {
|
|
16
|
+
content?(_: {
|
|
17
|
+
step: TimelineStep;
|
|
18
|
+
index: number;
|
|
19
|
+
}): any;
|
|
20
|
+
content?(_: {
|
|
21
|
+
step: TimelineStep;
|
|
22
|
+
index: number;
|
|
23
|
+
}): any;
|
|
24
|
+
title?(_: {
|
|
25
|
+
step: TimelineStep;
|
|
26
|
+
index: number;
|
|
27
|
+
}): any;
|
|
28
|
+
subtitle?(_: {
|
|
29
|
+
step: TimelineStep;
|
|
30
|
+
index: number;
|
|
31
|
+
}): any;
|
|
32
|
+
status?(_: {
|
|
33
|
+
step: TimelineStep;
|
|
34
|
+
index: number;
|
|
35
|
+
}): any;
|
|
36
|
+
body?(_: {
|
|
37
|
+
step: TimelineStep;
|
|
38
|
+
index: number;
|
|
39
|
+
}): any;
|
|
40
|
+
};
|
|
41
|
+
refs: {};
|
|
42
|
+
rootEl: any;
|
|
43
|
+
};
|
|
44
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
45
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
46
|
+
"step-click": (step: TimelineStep, index: number) => any;
|
|
47
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
48
|
+
"onStep-click"?: (step: TimelineStep, index: number) => any;
|
|
49
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { defineComponent as C, computed as g, openBlock as s, createElementBlock as l, normalizeClass as o, createElementVNode as i, createVNode as y, createCommentVNode as c, renderSlot as a, toDisplayString as d, createBlock as u, createTextVNode as P, resolveDynamicComponent as I, normalizeProps as $, mergeProps as T } from "vue";
|
|
2
|
+
import h from "../Icon.vue.js";
|
|
3
|
+
import k from "./TimelineIndicator.vue.js";
|
|
4
|
+
import { $t as m } from "../../utils/i18n.js";
|
|
5
|
+
const B = { class: "flex flex-col items-center shrink-0 mr-4 w-9" }, V = { class: "flex flex-col gap-1" }, N = { class: "flex justify-between items-start gap-4" }, D = { class: "text-sm font-semibold text-foreground leading-none" }, j = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "text-sm text-muted-foreground mt-1"
|
|
8
|
+
}, p = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "shrink-0"
|
|
11
|
+
}, z = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "h-1.5 w-1.5 rounded-full bg-muted-foreground"
|
|
14
|
+
}, E = { class: "mt-1" }, q = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "text-sm text-muted-foreground"
|
|
17
|
+
}, A = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "text-xs text-muted-foreground mt-1"
|
|
20
|
+
}, F = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "hidden sm:block flex-1 h-0.5 bg-border ml-2",
|
|
23
|
+
"aria-hidden": "true"
|
|
24
|
+
}, O = /* @__PURE__ */ C({
|
|
25
|
+
__name: "TimelineItem",
|
|
26
|
+
props: {
|
|
27
|
+
step: {},
|
|
28
|
+
index: {},
|
|
29
|
+
isLast: { type: Boolean },
|
|
30
|
+
activeStep: {},
|
|
31
|
+
direction: {},
|
|
32
|
+
textPosition: {},
|
|
33
|
+
lineStyle: {},
|
|
34
|
+
indicatorType: {},
|
|
35
|
+
clickable: { type: Boolean }
|
|
36
|
+
},
|
|
37
|
+
emits: ["step-click"],
|
|
38
|
+
setup(e, { emit: v }) {
|
|
39
|
+
const n = e, w = v, S = g(() => n.direction === "vertical"), r = g(() => n.step.progressStatus ? n.step.progressStatus : n.index < n.activeStep ? "completed" : n.index === n.activeStep ? "current" : "upcoming"), x = (t) => t.titleI18n ? m(t.titleI18n) : t.title, L = (t) => t.subtitleI18n ? m(t.subtitleI18n) : t.subtitle, f = (t) => t.descriptionI18n ? m(t.descriptionI18n) : t.description, b = () => {
|
|
40
|
+
n.clickable && w("step-click", n.step, n.index);
|
|
41
|
+
};
|
|
42
|
+
return (t, G) => S.value ? (s(), l("li", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: o(["relative flex w-full", e.clickable ? "cursor-pointer" : ""]),
|
|
45
|
+
onClick: b
|
|
46
|
+
}, [
|
|
47
|
+
i("div", B, [
|
|
48
|
+
y(k, {
|
|
49
|
+
status: r.value,
|
|
50
|
+
type: e.indicatorType,
|
|
51
|
+
index: e.index,
|
|
52
|
+
icon: e.step.icon
|
|
53
|
+
}, null, 8, ["status", "type", "index", "icon"]),
|
|
54
|
+
e.isLast ? c("", !0) : (s(), l("div", {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: o(["my-2 flex-1 transition-colors duration-300", [
|
|
57
|
+
e.lineStyle === "dashed" ? "w-0 border-l-[1.5px] border-dashed" : "w-0.5",
|
|
58
|
+
r.value === "completed" ? e.lineStyle === "dashed" ? "border-primary" : "bg-primary" : e.lineStyle === "dashed" ? "border-border" : "bg-border"
|
|
59
|
+
]])
|
|
60
|
+
}, null, 2))
|
|
61
|
+
]),
|
|
62
|
+
i("div", {
|
|
63
|
+
class: o(["flex-1 flex flex-col pt-0.5", e.isLast ? "pb-0" : "pb-10"])
|
|
64
|
+
}, [
|
|
65
|
+
a(t.$slots, "content", {
|
|
66
|
+
step: e.step,
|
|
67
|
+
index: e.index
|
|
68
|
+
}, () => [
|
|
69
|
+
i("div", V, [
|
|
70
|
+
i("div", N, [
|
|
71
|
+
i("div", null, [
|
|
72
|
+
a(t.$slots, "title", {
|
|
73
|
+
step: e.step,
|
|
74
|
+
index: e.index
|
|
75
|
+
}, () => [
|
|
76
|
+
i("h4", D, d(x(e.step)), 1)
|
|
77
|
+
]),
|
|
78
|
+
a(t.$slots, "subtitle", {
|
|
79
|
+
step: e.step,
|
|
80
|
+
index: e.index
|
|
81
|
+
}, () => [
|
|
82
|
+
e.step.subtitle || e.step.subtitleI18n ? (s(), l("p", j, d(L(e.step)), 1)) : c("", !0)
|
|
83
|
+
])
|
|
84
|
+
]),
|
|
85
|
+
e.step.status || t.$slots.status ? (s(), l("div", p, [
|
|
86
|
+
a(t.$slots, "status", {
|
|
87
|
+
step: e.step,
|
|
88
|
+
index: e.index
|
|
89
|
+
}, () => [
|
|
90
|
+
i("span", {
|
|
91
|
+
class: o(["inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium border", [
|
|
92
|
+
e.step.status?.toLowerCase().includes("approv") || e.step.status?.toLowerCase().includes("complet") ? "bg-success-light text-success-dark border-success/20" : "",
|
|
93
|
+
e.step.status?.toLowerCase().includes("pend") ? "bg-muted text-muted-foreground border-border" : "",
|
|
94
|
+
e.step.status?.toLowerCase().includes("progress") ? "bg-primary-light text-primary border-primary/20" : ""
|
|
95
|
+
]])
|
|
96
|
+
}, [
|
|
97
|
+
e.step.status?.toLowerCase().includes("pend") ? (s(), l("span", z)) : e.step.status?.toLowerCase().includes("approv") || e.step.status?.toLowerCase().includes("complet") ? (s(), u(h, {
|
|
98
|
+
key: 1,
|
|
99
|
+
icon: "lucide:check",
|
|
100
|
+
class: "h-3 w-3"
|
|
101
|
+
})) : e.step.status?.toLowerCase().includes("progress") ? (s(), u(h, {
|
|
102
|
+
key: 2,
|
|
103
|
+
icon: "lucide:loader-2",
|
|
104
|
+
class: "h-3 w-3 animate-spin"
|
|
105
|
+
})) : c("", !0),
|
|
106
|
+
P(" " + d(e.step.status), 1)
|
|
107
|
+
], 2)
|
|
108
|
+
])
|
|
109
|
+
])) : c("", !0)
|
|
110
|
+
]),
|
|
111
|
+
i("div", E, [
|
|
112
|
+
a(t.$slots, "body", {
|
|
113
|
+
step: e.step,
|
|
114
|
+
index: e.index
|
|
115
|
+
}, () => [
|
|
116
|
+
e.step.component ? (s(), u(I(e.step.component), $(T({ key: 0 }, e.step.componentProps)), null, 16)) : e.step.description || e.step.descriptionI18n ? (s(), l("p", q, d(f(e.step)), 1)) : c("", !0)
|
|
117
|
+
])
|
|
118
|
+
])
|
|
119
|
+
])
|
|
120
|
+
])
|
|
121
|
+
], 2)
|
|
122
|
+
], 2)) : (s(), l("li", {
|
|
123
|
+
key: 1,
|
|
124
|
+
onClick: b,
|
|
125
|
+
class: o([
|
|
126
|
+
"relative",
|
|
127
|
+
e.clickable ? "cursor-pointer" : "",
|
|
128
|
+
e.textPosition === "bottom" ? "flex-none w-8" : "flex-1 last:flex-none"
|
|
129
|
+
])
|
|
130
|
+
}, [
|
|
131
|
+
i("div", {
|
|
132
|
+
class: o([
|
|
133
|
+
"group relative flex",
|
|
134
|
+
e.textPosition === "bottom" ? "flex-col items-center justify-center" : "flex-col items-center sm:flex-row sm:items-center sm:gap-2 w-full"
|
|
135
|
+
])
|
|
136
|
+
}, [
|
|
137
|
+
y(k, {
|
|
138
|
+
status: r.value,
|
|
139
|
+
type: e.indicatorType,
|
|
140
|
+
index: e.index,
|
|
141
|
+
icon: e.step.icon
|
|
142
|
+
}, null, 8, ["status", "type", "index", "icon"]),
|
|
143
|
+
i("span", {
|
|
144
|
+
class: o([
|
|
145
|
+
"min-w-[max-content] flex-col hidden sm:flex",
|
|
146
|
+
e.textPosition === "bottom" ? "absolute top-10 text-center" : "",
|
|
147
|
+
e.textPosition === "bottom" && e.index === 0 ? "left-0 text-left items-start" : "",
|
|
148
|
+
e.textPosition === "bottom" && e.isLast ? "right-0 text-right items-end" : "",
|
|
149
|
+
e.textPosition === "bottom" && e.index > 0 && !e.isLast ? "left-1/2 -translate-x-1/2 items-center" : ""
|
|
150
|
+
])
|
|
151
|
+
}, [
|
|
152
|
+
a(t.$slots, "content", {
|
|
153
|
+
step: e.step,
|
|
154
|
+
index: e.index
|
|
155
|
+
}, () => [
|
|
156
|
+
i("span", {
|
|
157
|
+
class: o(["text-sm font-medium leading-tight", r.value === "upcoming" ? "text-muted-foreground" : "text-primary"])
|
|
158
|
+
}, d(x(e.step)), 3),
|
|
159
|
+
e.step.description || e.step.descriptionI18n ? (s(), l("span", A, d(f(e.step)), 1)) : c("", !0)
|
|
160
|
+
])
|
|
161
|
+
], 2),
|
|
162
|
+
e.textPosition === "right" && !e.isLast ? (s(), l("div", F, [
|
|
163
|
+
i("div", {
|
|
164
|
+
class: o(["h-full bg-primary transition-all duration-300", e.index < e.activeStep ? "w-full" : "w-0"])
|
|
165
|
+
}, null, 2)
|
|
166
|
+
])) : c("", !0)
|
|
167
|
+
], 2)
|
|
168
|
+
], 2));
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
export {
|
|
172
|
+
O as default
|
|
173
|
+
};
|
|
@@ -16,12 +16,12 @@ declare function __VLS_template(): {
|
|
|
16
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
17
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
18
|
disabled: boolean;
|
|
19
|
-
triggerClass: string;
|
|
20
|
-
contentClass: string;
|
|
21
19
|
className: string;
|
|
22
20
|
teleport: boolean;
|
|
21
|
+
triggerClass: string;
|
|
23
22
|
placement: import('v-tooltip-lite/types').TooltTipPlacement;
|
|
24
23
|
arrow: boolean;
|
|
24
|
+
contentClass: string;
|
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
27
|
export default _default;
|
|
@@ -33,11 +33,11 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
33
33
|
"onEdit-end"?: (id: string) => any;
|
|
34
34
|
onDuplicate?: (id: string) => any;
|
|
35
35
|
}>, {
|
|
36
|
-
|
|
36
|
+
confirmDelete: boolean;
|
|
37
37
|
isEditing: boolean;
|
|
38
38
|
canDelete: boolean;
|
|
39
|
-
confirmDelete: boolean;
|
|
40
39
|
allowIconChange: boolean;
|
|
40
|
+
itemClass: string;
|
|
41
41
|
activeItemClass: string;
|
|
42
42
|
inactiveItemClass: string;
|
|
43
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -13,31 +13,31 @@ declare function __VLS_template(): {
|
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
15
|
declare const __VLS_component: import('vue').DefineComponent<WorkbookProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
-
"update:modelValue": (id: string) => any;
|
|
17
16
|
change: (id: string) => any;
|
|
18
17
|
delete: (id: string) => any;
|
|
19
18
|
add: () => any;
|
|
19
|
+
"update:modelValue": (id: string) => any;
|
|
20
20
|
"edit-start": (id: string) => any;
|
|
21
21
|
"edit-end": (id: string) => any;
|
|
22
22
|
duplicate: (id: string) => any;
|
|
23
23
|
"update:sheets": (sheets: WorkbookSheet[]) => any;
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<WorkbookProps> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: (id: string) => any;
|
|
26
25
|
onChange?: (id: string) => any;
|
|
27
26
|
onDelete?: (id: string) => any;
|
|
28
27
|
onAdd?: () => any;
|
|
28
|
+
"onUpdate:modelValue"?: (id: string) => any;
|
|
29
29
|
"onEdit-start"?: (id: string) => any;
|
|
30
30
|
"onEdit-end"?: (id: string) => any;
|
|
31
31
|
onDuplicate?: (id: string) => any;
|
|
32
32
|
"onUpdate:sheets"?: (sheets: WorkbookSheet[]) => any;
|
|
33
33
|
}>, {
|
|
34
34
|
variant: "chrome" | "folder" | "simple" | "card";
|
|
35
|
-
itemClass: string;
|
|
36
35
|
modelValue: string;
|
|
37
36
|
editable: boolean;
|
|
38
37
|
draggable: boolean;
|
|
39
38
|
confirmDelete: boolean;
|
|
40
39
|
allowIconChange: boolean;
|
|
40
|
+
itemClass: string;
|
|
41
41
|
activeItemClass: string;
|
|
42
42
|
inactiveItemClass: string;
|
|
43
43
|
sheets: WorkbookSheet[];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export { Accordion } from './Accordion';
|
|
2
|
+
export { default as Alert } from './Alert.vue';
|
|
3
|
+
export { default as Avatar } from './Avatar.vue';
|
|
4
|
+
export { AvatarUploader } from './AvatarUploader';
|
|
5
|
+
export { default as Badge } from './Badge.vue';
|
|
6
|
+
export { Barcode } from './Barcode';
|
|
7
|
+
export { Breadcrumb, BreadcrumbItem } from './Breadcrumb';
|
|
8
|
+
export { default as Button } from './Button.vue';
|
|
9
|
+
export { default as ButtonGroup } from './ButtonGroup.vue';
|
|
10
|
+
export { Carousel } from './Carousel';
|
|
11
|
+
export { default as CheckBox } from './CheckBox.vue';
|
|
12
|
+
export { Chip } from './Chip';
|
|
13
|
+
export { ChoiceBox } from './ChoiceBox';
|
|
14
|
+
export { ColorPicker } from './ColorPicker';
|
|
15
|
+
export { default as ConfirmationModal } from './ConfirmationModal.vue';
|
|
16
|
+
export { default as CustomFields } from './Form/CustomFields.vue';
|
|
17
|
+
export { DataList } from './DataList';
|
|
18
|
+
export { List } from './List';
|
|
19
|
+
export { DataTable } from './DataTable';
|
|
20
|
+
export { default as DatePicker } from './DatePicker.vue';
|
|
21
|
+
export { default as DateRangePicker } from './DateRangePicker.vue';
|
|
22
|
+
export { Dropdown } from './Dropdown';
|
|
23
|
+
export { Empty } from './Empty';
|
|
24
|
+
export { FilePicker } from './FilePicker';
|
|
25
|
+
export { FileTree } from './FileTree';
|
|
26
|
+
export { Form } from './Form';
|
|
27
|
+
export { default as FormFields } from './Form/FormFields.vue';
|
|
28
|
+
export { default as GoogleLogin } from './GoogleLogin.vue';
|
|
29
|
+
export { Heatmap } from './Heatmap';
|
|
30
|
+
export { default as Icon } from './Icon.vue';
|
|
31
|
+
export { default as IconPicker } from './IconPicker.vue';
|
|
32
|
+
export { default as Input } from './Input.vue';
|
|
33
|
+
export { Kanban } from './Kanban';
|
|
34
|
+
export { default as Label } from './Label.vue';
|
|
35
|
+
export { default as Logo } from './Logo.vue';
|
|
36
|
+
export { Masonry } from './Masonry';
|
|
37
|
+
export { default as Modal } from './Modal.vue';
|
|
38
|
+
export { MultiSelect } from './MultiSelect';
|
|
39
|
+
export { Navbar, NavbarGroup, NavbarItem } from './Navbar';
|
|
40
|
+
export { default as NumberInput } from './NumberInput.vue';
|
|
41
|
+
export { OTPInput } from './OTPInput';
|
|
42
|
+
export { Pagination } from './Pagination';
|
|
43
|
+
export { PermissionMatrix, PermissionEditor } from './PermissionMatrix';
|
|
44
|
+
export { PricingPlan } from './PricingPlan';
|
|
45
|
+
export { ProgressBar } from './ProgressBar';
|
|
46
|
+
export { QRCode } from './QRCode';
|
|
47
|
+
export { Screen } from './Screen';
|
|
48
|
+
export { SidebarMenu } from './SidebarMenu';
|
|
49
|
+
export { default as SidePanel } from './SidePanel.vue';
|
|
50
|
+
export { default as Slider } from './Slider.vue';
|
|
51
|
+
export { Spinner } from './Spinner';
|
|
52
|
+
export { Stats } from './Stats';
|
|
53
|
+
export { default as Switch } from './Switch.vue';
|
|
54
|
+
export { Tabes } from './Tabes';
|
|
55
|
+
export { default as Textarea } from './Textarea.vue';
|
|
56
|
+
export { default as ThemeToggle } from './ThemeToggle.vue';
|
|
57
|
+
export { Timeline } from './Timeline';
|
|
58
|
+
export { default as ToastNotification } from './ToastNotification.vue';
|
|
59
|
+
export { default as Tooltip } from './Tooltip.vue';
|
|
60
|
+
export { Workbook } from './Workbook';
|
|
61
|
+
export { ExportData } from './ExportData';
|
|
62
|
+
export { ImportData } from './ImportData';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BreadcrumbItemSchema } from '../components/Breadcrumb/types';
|
|
2
|
+
export interface UseBreadcrumbOptions {
|
|
3
|
+
/** Icon for the home item (default: 'lucide:home') */
|
|
4
|
+
homeIcon?: string;
|
|
5
|
+
/** Label for the home item (default: 'Home') */
|
|
6
|
+
homeLabel?: string;
|
|
7
|
+
/** Path for the home item (default: '/') */
|
|
8
|
+
homePath?: string;
|
|
9
|
+
/** Override labels for specific route paths, e.g. { '/settings': 'Preferences' } */
|
|
10
|
+
labelMap?: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Composable that generates reactive breadcrumb items from the current route path.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useBreadcrumb(options?: UseBreadcrumbOptions): {
|
|
16
|
+
items: import('vue').ComputedRef<BreadcrumbItemSchema[]>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { computed as b } from "vue";
|
|
2
|
+
import { useRoute as f } from "vue-router";
|
|
3
|
+
function d(e) {
|
|
4
|
+
return e.replace(/[-_]/g, " ").replace(/\b\w/g, (t) => t.toUpperCase());
|
|
5
|
+
}
|
|
6
|
+
function L(e = {}) {
|
|
7
|
+
const t = f(), { homeIcon: n = "lucide:home", homeLabel: a = "Home", homePath: o = "/", labelMap: m = {} } = e;
|
|
8
|
+
return { items: b(() => {
|
|
9
|
+
const r = t.path;
|
|
10
|
+
if (r === o || r === `${o}/`)
|
|
11
|
+
return [{ label: a, icon: n }];
|
|
12
|
+
const s = r.split("/").filter(Boolean), l = [{ label: a, to: o, icon: n }];
|
|
13
|
+
let c = "";
|
|
14
|
+
return s.forEach((u, p) => {
|
|
15
|
+
c += `/${u}`;
|
|
16
|
+
const i = p === s.length - 1, h = m[c] || d(u);
|
|
17
|
+
l.push({
|
|
18
|
+
label: h,
|
|
19
|
+
to: i ? void 0 : c,
|
|
20
|
+
active: i
|
|
21
|
+
});
|
|
22
|
+
}), l;
|
|
23
|
+
}) };
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
L as useBreadcrumb
|
|
27
|
+
};
|