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
|
@@ -22,16 +22,16 @@ interface Props {
|
|
|
22
22
|
gap?: number;
|
|
23
23
|
}
|
|
24
24
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
|
-
"update:modelValue": (value: string | number | (string | number)[]) => any;
|
|
26
25
|
change: (value: string | number | (string | number)[]) => any;
|
|
26
|
+
"update:modelValue": (value: string | number | (string | number)[]) => any;
|
|
27
27
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
28
|
-
"onUpdate:modelValue"?: (value: string | number | (string | number)[]) => any;
|
|
29
28
|
onChange?: (value: string | number | (string | number)[]) => any;
|
|
29
|
+
"onUpdate:modelValue"?: (value: string | number | (string | number)[]) => any;
|
|
30
30
|
}>, {
|
|
31
31
|
disabled: boolean;
|
|
32
|
-
modelValue: string | number | (string | number)[] | null;
|
|
33
32
|
multiple: boolean;
|
|
34
|
-
|
|
33
|
+
modelValue: string | number | (string | number)[] | null;
|
|
35
34
|
grid: number;
|
|
35
|
+
gap: number;
|
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
37
|
export default _default;
|
|
@@ -9,14 +9,14 @@ interface Props {
|
|
|
9
9
|
showInput?: boolean;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
-
"update:modelValue": (value: string) => any;
|
|
13
12
|
change: (value: string) => any;
|
|
13
|
+
"update:modelValue": (value: string) => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: (value: string) => any;
|
|
16
15
|
onChange?: (value: string) => any;
|
|
16
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
17
17
|
}>, {
|
|
18
|
-
disabled: boolean;
|
|
19
18
|
size: "sm" | "md" | "lg";
|
|
19
|
+
disabled: boolean;
|
|
20
20
|
modelValue: string;
|
|
21
21
|
position: TooltTipPlacement;
|
|
22
22
|
showInput: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ColorPicker } from './ColorPicker.vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SidebarMenuItemSchema } from './SidebarMenu/types';
|
|
2
|
+
import { CommandPaletteItem } from './NavbarCommandPalette.vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
close: () => void;
|
|
5
|
+
items: CommandPaletteItem[];
|
|
6
|
+
menuItems: SidebarMenuItemSchema[];
|
|
7
|
+
placeholder: string;
|
|
8
|
+
placeholderI18n?: string;
|
|
9
|
+
maxResultsPerGroup: number;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
inputRef: HTMLInputElement;
|
|
13
|
+
listRef: HTMLDivElement;
|
|
14
|
+
}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { defineComponent as X, computed as c, ref as _, watch as Y, onMounted as Z, nextTick as T, openBlock as i, createElementBlock as f, createElementVNode as l, createVNode as w, withDirectives as ee, vModelText as te, createTextVNode as I, toDisplayString as u, createCommentVNode as b, Fragment as M, renderList as j, normalizeClass as z, createBlock as oe } from "vue";
|
|
2
|
+
import { useRouter as ne } from "vue-router";
|
|
3
|
+
import h from "./Icon.vue.js";
|
|
4
|
+
import { $t as C } from "../utils/i18n.js";
|
|
5
|
+
const re = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, se = { class: "flex items-center gap-3 px-4 py-3.5 border-b border-border/60 shrink-0" }, le = ["placeholder", "aria-activedescendant"], ae = ["aria-label"], ce = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
8
|
+
"aria-live": "polite"
|
|
9
|
+
}, ue = { class: "text-sm font-medium text-muted-foreground" }, ie = { class: "text-foreground font-semibold" }, de = { class: "text-xs text-muted-foreground/60 mt-1" }, fe = ["aria-label"], pe = ["aria-label"], me = ["id", "aria-selected", "aria-disabled", "data-active", "onClick", "onMouseenter"], xe = { class: "flex-1 min-w-0" }, ve = { class: "block font-medium truncate text-inherit leading-tight" }, be = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "block text-xs text-muted-foreground/70 truncate mt-0.5"
|
|
12
|
+
}, he = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "shrink-0 hidden sm:inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-mono border border-border/60 bg-background/80 text-muted-foreground ml-1"
|
|
15
|
+
}, ge = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "my-1.5 mx-3 h-px bg-border/40",
|
|
18
|
+
"aria-hidden": "true"
|
|
19
|
+
}, ke = {
|
|
20
|
+
class: "px-4 py-2.5 border-t border-border/40 flex items-center gap-4 shrink-0 bg-muted/30",
|
|
21
|
+
"aria-hidden": "true"
|
|
22
|
+
}, ye = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, _e = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, we = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, Ie = { class: "ml-auto text-[11px] text-muted-foreground/50" }, Pe = /* @__PURE__ */ X({
|
|
23
|
+
__name: "CommandPaletteContent",
|
|
24
|
+
props: {
|
|
25
|
+
close: { type: Function },
|
|
26
|
+
items: {},
|
|
27
|
+
menuItems: {},
|
|
28
|
+
placeholder: {},
|
|
29
|
+
placeholderI18n: {},
|
|
30
|
+
maxResultsPerGroup: {}
|
|
31
|
+
},
|
|
32
|
+
setup(R) {
|
|
33
|
+
const d = R, p = (t, o) => {
|
|
34
|
+
const n = C(t);
|
|
35
|
+
return n !== t ? n : o;
|
|
36
|
+
}, B = c(() => {
|
|
37
|
+
if (d.placeholderI18n) {
|
|
38
|
+
const t = C(d.placeholderI18n);
|
|
39
|
+
if (t !== d.placeholderI18n) return t;
|
|
40
|
+
}
|
|
41
|
+
return d.placeholder;
|
|
42
|
+
}), F = c(() => p("vlite.commandPalette.noResults", "No results for")), L = c(
|
|
43
|
+
() => p("vlite.commandPalette.noResultsDesc", "Try a different term or browse with arrow keys")
|
|
44
|
+
), S = c(() => p("vlite.commandPalette.navigate", "Navigate")), K = c(() => p("vlite.commandPalette.open", "Open")), O = c(() => p("vlite.commandPalette.close", "Close")), N = c(() => p("vlite.commandPalette.result", "result")), P = c(() => p("vlite.commandPalette.results", "results"));
|
|
45
|
+
function D(t) {
|
|
46
|
+
if (t.labelI18n) {
|
|
47
|
+
const o = C(t.labelI18n);
|
|
48
|
+
if (o !== t.labelI18n) return o;
|
|
49
|
+
}
|
|
50
|
+
return t.label;
|
|
51
|
+
}
|
|
52
|
+
function $(t) {
|
|
53
|
+
if (t.descriptionI18n) {
|
|
54
|
+
const o = C(t.descriptionI18n);
|
|
55
|
+
if (o !== t.descriptionI18n) return o;
|
|
56
|
+
}
|
|
57
|
+
return t.description ?? "";
|
|
58
|
+
}
|
|
59
|
+
const v = _(""), a = _(0), E = _(null), V = _(null), U = ne();
|
|
60
|
+
function q(t, o, n = 0) {
|
|
61
|
+
const r = [];
|
|
62
|
+
for (const e of t) {
|
|
63
|
+
const s = n === 0 ? e.label : o ?? "Navigation";
|
|
64
|
+
(e.to || e.href || e.action) && r.push({
|
|
65
|
+
id: e.id ?? (typeof e.to == "string" ? e.to : "") ?? e.label,
|
|
66
|
+
label: e.label,
|
|
67
|
+
labelI18n: e.labelI18n,
|
|
68
|
+
icon: e.icon,
|
|
69
|
+
group: s,
|
|
70
|
+
to: typeof e.to == "string" ? e.to : e.to?.path,
|
|
71
|
+
href: e.href,
|
|
72
|
+
action: e.action ? () => e.action(e) : void 0,
|
|
73
|
+
disabled: e.disabled
|
|
74
|
+
}), e.children?.length && r.push(...q(e.children, s, n + 1));
|
|
75
|
+
}
|
|
76
|
+
return r;
|
|
77
|
+
}
|
|
78
|
+
const W = c(() => {
|
|
79
|
+
const t = q(d.menuItems), o = /* @__PURE__ */ new Set(), n = [];
|
|
80
|
+
for (const r of [...d.items, ...t])
|
|
81
|
+
o.has(r.id) || (o.add(r.id), n.push(r));
|
|
82
|
+
return n;
|
|
83
|
+
});
|
|
84
|
+
function g(t) {
|
|
85
|
+
return t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
86
|
+
}
|
|
87
|
+
function H(t, o) {
|
|
88
|
+
const n = g(D(t)), r = g($(t)), e = (t.keywords ?? []).map(g).join(" "), s = g(o);
|
|
89
|
+
return n === s ? 100 : n.startsWith(s) ? 80 : n.includes(s) ? 60 : r.includes(s) || e.includes(s) ? 40 : 0;
|
|
90
|
+
}
|
|
91
|
+
const k = c(() => {
|
|
92
|
+
const t = v.value.trim();
|
|
93
|
+
let o = W.value.filter((e) => !e.disabled);
|
|
94
|
+
t && (o = o.map((e) => ({ item: e, s: H(e, t) })).filter(({ s: e }) => e > 0).sort((e, s) => s.s - e.s).map(({ item: e }) => e));
|
|
95
|
+
const n = /* @__PURE__ */ new Map();
|
|
96
|
+
for (const e of o) {
|
|
97
|
+
const s = e.group ?? "Actions";
|
|
98
|
+
n.has(s) || n.set(s, []), n.get(s).push(e);
|
|
99
|
+
}
|
|
100
|
+
const r = [];
|
|
101
|
+
for (const [e, s] of n)
|
|
102
|
+
r.push({
|
|
103
|
+
key: e,
|
|
104
|
+
label: e,
|
|
105
|
+
items: s.slice(0, d.maxResultsPerGroup)
|
|
106
|
+
});
|
|
107
|
+
return r;
|
|
108
|
+
}), y = c(() => k.value.flatMap((t) => t.items)), m = c(() => y.value.length), J = (t) => {
|
|
109
|
+
if (t.key === "Escape") {
|
|
110
|
+
d.close();
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (t.key === "ArrowDown") {
|
|
114
|
+
t.preventDefault(), a.value = Math.min(a.value + 1, m.value - 1), A();
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
if (t.key === "ArrowUp") {
|
|
118
|
+
t.preventDefault(), a.value = Math.max(a.value - 1, 0), A();
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (t.key === "Enter") {
|
|
122
|
+
t.preventDefault();
|
|
123
|
+
const o = y.value[a.value];
|
|
124
|
+
o && G(o);
|
|
125
|
+
}
|
|
126
|
+
}, A = () => {
|
|
127
|
+
T(() => {
|
|
128
|
+
V.value?.querySelector('[data-active="true"]')?.scrollIntoView({ block: "nearest" });
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
Y(v, () => {
|
|
132
|
+
a.value = 0;
|
|
133
|
+
});
|
|
134
|
+
const G = (t) => {
|
|
135
|
+
if (!t.disabled) {
|
|
136
|
+
if (d.close(), t.action) {
|
|
137
|
+
t.action();
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (t.to) {
|
|
141
|
+
U.push(t.to).catch(() => {
|
|
142
|
+
});
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
t.href && window.open(t.href, "_blank", "noopener,noreferrer");
|
|
146
|
+
}
|
|
147
|
+
}, x = (t, o) => {
|
|
148
|
+
let n = 0;
|
|
149
|
+
for (let r = 0; r < t; r++)
|
|
150
|
+
n += k.value[r].items.length;
|
|
151
|
+
return n + o;
|
|
152
|
+
};
|
|
153
|
+
return Z(() => {
|
|
154
|
+
T(() => {
|
|
155
|
+
E.value?.focus();
|
|
156
|
+
});
|
|
157
|
+
}), (t, o) => (i(), f("div", re, [
|
|
158
|
+
l("div", se, [
|
|
159
|
+
w(h, {
|
|
160
|
+
icon: "lucide:search",
|
|
161
|
+
class: "w-4 h-4 text-muted-foreground shrink-0"
|
|
162
|
+
}),
|
|
163
|
+
ee(l("input", {
|
|
164
|
+
ref_key: "inputRef",
|
|
165
|
+
ref: E,
|
|
166
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => v.value = n),
|
|
167
|
+
type: "text",
|
|
168
|
+
autocomplete: "off",
|
|
169
|
+
autocorrect: "off",
|
|
170
|
+
spellcheck: "false",
|
|
171
|
+
placeholder: B.value,
|
|
172
|
+
class: "flex-1 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/60 outline-none min-w-0",
|
|
173
|
+
"aria-autocomplete": "list",
|
|
174
|
+
"aria-activedescendant": y.value[a.value] ? `cp-item-${y.value[a.value].id}` : void 0,
|
|
175
|
+
"aria-controls": "cp-listbox",
|
|
176
|
+
onKeydown: J
|
|
177
|
+
}, null, 40, le), [
|
|
178
|
+
[te, v.value]
|
|
179
|
+
]),
|
|
180
|
+
l("button", {
|
|
181
|
+
type: "button",
|
|
182
|
+
class: "shrink-0 p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",
|
|
183
|
+
"aria-label": "Close",
|
|
184
|
+
tabindex: "-1",
|
|
185
|
+
onClick: o[1] || (o[1] = //@ts-ignore
|
|
186
|
+
(...n) => R.close && R.close(...n))
|
|
187
|
+
}, [
|
|
188
|
+
w(h, {
|
|
189
|
+
icon: "lucide:x",
|
|
190
|
+
class: "w-3.5 h-3.5"
|
|
191
|
+
})
|
|
192
|
+
])
|
|
193
|
+
]),
|
|
194
|
+
l("div", {
|
|
195
|
+
id: "cp-listbox",
|
|
196
|
+
ref_key: "listRef",
|
|
197
|
+
ref: V,
|
|
198
|
+
role: "listbox",
|
|
199
|
+
class: "flex-1 overflow-y-auto py-2 scrollbar-thin",
|
|
200
|
+
"aria-label": `${m.value} ${m.value === 1 ? N.value : P.value}`
|
|
201
|
+
}, [
|
|
202
|
+
m.value === 0 ? (i(), f("div", ce, [
|
|
203
|
+
w(h, {
|
|
204
|
+
icon: "lucide:search-x",
|
|
205
|
+
class: "w-9 h-9 text-muted-foreground/40 mb-3"
|
|
206
|
+
}),
|
|
207
|
+
l("p", ue, [
|
|
208
|
+
I(u(F.value) + " ", 1),
|
|
209
|
+
l("span", ie, '"' + u(v.value) + '"', 1)
|
|
210
|
+
]),
|
|
211
|
+
l("p", de, u(L.value), 1)
|
|
212
|
+
])) : b("", !0),
|
|
213
|
+
(i(!0), f(M, null, j(k.value, (n, r) => (i(), f(M, {
|
|
214
|
+
key: n.key
|
|
215
|
+
}, [
|
|
216
|
+
l("div", {
|
|
217
|
+
class: "px-4 py-1.5 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground/60 select-none",
|
|
218
|
+
"aria-label": `Group: ${n.label}`
|
|
219
|
+
}, u(n.label), 9, fe),
|
|
220
|
+
l("div", {
|
|
221
|
+
role: "group",
|
|
222
|
+
"aria-label": n.label,
|
|
223
|
+
class: "px-2"
|
|
224
|
+
}, [
|
|
225
|
+
(i(!0), f(M, null, j(n.items, (e, s) => (i(), f("button", {
|
|
226
|
+
key: e.id,
|
|
227
|
+
id: `cp-item-${e.id}`,
|
|
228
|
+
type: "button",
|
|
229
|
+
role: "option",
|
|
230
|
+
"aria-selected": x(r, s) === a.value,
|
|
231
|
+
"aria-disabled": e.disabled || void 0,
|
|
232
|
+
"data-active": x(r, s) === a.value,
|
|
233
|
+
class: z(["command-palette-item w-full flex items-center gap-3 px-3! py-2.5 mx-1 rounded-lg text-sm transition-colors duration-100 text-left cursor-pointer select-none focus-visible:outline-none", [
|
|
234
|
+
x(r, s) === a.value ? "bg-primary/10 text-foreground" : "text-muted-foreground hover:bg-muted/70 hover:text-foreground",
|
|
235
|
+
e.disabled ? "opacity-40 cursor-not-allowed" : ""
|
|
236
|
+
]]),
|
|
237
|
+
style: { width: "calc(100% - 8px)" },
|
|
238
|
+
onClick: (Q) => G(e),
|
|
239
|
+
onMouseenter: (Q) => a.value = x(r, s)
|
|
240
|
+
}, [
|
|
241
|
+
l("span", {
|
|
242
|
+
class: z([
|
|
243
|
+
"shrink-0 flex items-center justify-center w-7 h-7 rounded-md",
|
|
244
|
+
x(r, s) === a.value ? "bg-primary/20 text-primary" : "bg-muted/80 text-muted-foreground"
|
|
245
|
+
])
|
|
246
|
+
}, [
|
|
247
|
+
w(h, {
|
|
248
|
+
icon: e.icon ?? "lucide:arrow-right",
|
|
249
|
+
class: "w-3.5 h-3.5"
|
|
250
|
+
}, null, 8, ["icon"])
|
|
251
|
+
], 2),
|
|
252
|
+
l("span", xe, [
|
|
253
|
+
l("span", ve, u(D(e)), 1),
|
|
254
|
+
e.description || e.descriptionI18n ? (i(), f("span", be, u($(e)), 1)) : b("", !0)
|
|
255
|
+
]),
|
|
256
|
+
e.href ? (i(), oe(h, {
|
|
257
|
+
key: 0,
|
|
258
|
+
icon: "lucide:external-link",
|
|
259
|
+
class: "shrink-0 w-3 h-3 text-muted-foreground/50"
|
|
260
|
+
})) : b("", !0),
|
|
261
|
+
x(r, s) === a.value ? (i(), f("kbd", he, " ↵ ")) : b("", !0)
|
|
262
|
+
], 42, me))), 128))
|
|
263
|
+
], 8, pe),
|
|
264
|
+
r < k.value.length - 1 ? (i(), f("div", ge)) : b("", !0)
|
|
265
|
+
], 64))), 128))
|
|
266
|
+
], 8, ae),
|
|
267
|
+
l("div", ke, [
|
|
268
|
+
l("span", ye, [
|
|
269
|
+
o[2] || (o[2] = l("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "↑↓", -1)),
|
|
270
|
+
I(" " + u(S.value), 1)
|
|
271
|
+
]),
|
|
272
|
+
l("span", _e, [
|
|
273
|
+
o[3] || (o[3] = l("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "↵", -1)),
|
|
274
|
+
I(" " + u(K.value), 1)
|
|
275
|
+
]),
|
|
276
|
+
l("span", we, [
|
|
277
|
+
o[4] || (o[4] = l("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "Esc", -1)),
|
|
278
|
+
I(" " + u(O.value), 1)
|
|
279
|
+
]),
|
|
280
|
+
l("span", Ie, u(m.value) + " " + u(m.value === 1 ? N.value : P.value), 1)
|
|
281
|
+
])
|
|
282
|
+
]));
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
export {
|
|
286
|
+
Pe as default
|
|
287
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as I, computed as l, openBlock as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as I, computed as l, openBlock as h, createBlock as w, withCtx as s, createElementVNode as r, toDisplayString as f, createVNode as m, renderSlot as x } from "vue";
|
|
2
|
+
import y from "./Modal.vue.js";
|
|
3
3
|
import p from "./Button.vue.js";
|
|
4
4
|
import { $t as n } from "../utils/i18n.js";
|
|
5
|
-
const b = { class: "
|
|
5
|
+
const b = { class: "pb-2 px-[2px]" }, k = { class: "mb-1.5 font-semibold text-lg" }, $ = { class: "text-sm text-muted-foreground" }, B = { class: "flex w-full items-center justify-end space-x-2 px-[2px]" }, S = /* @__PURE__ */ I({
|
|
6
6
|
__name: "ConfirmationModal",
|
|
7
7
|
props: {
|
|
8
8
|
show: { type: Boolean, default: !1 },
|
|
@@ -21,7 +21,9 @@ const b = { class: "py-2 px-[2px]" }, $ = { class: "mb-1.5 font-semibold text-lg
|
|
|
21
21
|
setup(o, { emit: u }) {
|
|
22
22
|
const t = o, d = u, a = () => {
|
|
23
23
|
d("cancel");
|
|
24
|
-
}, v = l(() => t.titleI18n ? n(t.titleI18n) : t.title), T = l(
|
|
24
|
+
}, v = l(() => t.titleI18n ? n(t.titleI18n) : t.title), T = l(
|
|
25
|
+
() => t.descriptionI18n ? n(t.descriptionI18n) : t.description
|
|
26
|
+
), g = l(() => {
|
|
25
27
|
if (t.confirmTextI18n) return n(t.confirmTextI18n);
|
|
26
28
|
if (t.confirmText) return t.confirmText;
|
|
27
29
|
const e = n("vlite.confirmation.confirm");
|
|
@@ -32,7 +34,7 @@ const b = { class: "py-2 px-[2px]" }, $ = { class: "mb-1.5 font-semibold text-lg
|
|
|
32
34
|
const e = n("vlite.confirmation.cancel");
|
|
33
35
|
return e !== "vlite.confirmation.cancel" ? e : "Cancel";
|
|
34
36
|
});
|
|
35
|
-
return (e, i) => (
|
|
37
|
+
return (e, i) => (h(), w(y, {
|
|
36
38
|
show: o.show,
|
|
37
39
|
footerClass: "border-t-0! pt-0! pb-3.5!",
|
|
38
40
|
"max-width": "max-w-[400px]",
|
|
@@ -45,7 +47,7 @@ const b = { class: "py-2 px-[2px]" }, $ = { class: "mb-1.5 font-semibold text-lg
|
|
|
45
47
|
])
|
|
46
48
|
]),
|
|
47
49
|
footer: s(({ close: c }) => [
|
|
48
|
-
r("div",
|
|
50
|
+
r("div", B, [
|
|
49
51
|
m(p, {
|
|
50
52
|
variant: "secondary",
|
|
51
53
|
text: C.value,
|
|
@@ -60,14 +62,14 @@ const b = { class: "py-2 px-[2px]" }, $ = { class: "mb-1.5 font-semibold text-lg
|
|
|
60
62
|
variant: o.variant,
|
|
61
63
|
text: g.value,
|
|
62
64
|
loading: o.loading,
|
|
63
|
-
onClick: i[0] || (i[0] = (
|
|
65
|
+
onClick: i[0] || (i[0] = (_) => d("confirm"))
|
|
64
66
|
}, null, 8, ["variant", "text", "loading"])
|
|
65
67
|
])
|
|
66
68
|
]),
|
|
67
69
|
default: s(() => [
|
|
68
70
|
r("div", b, [
|
|
69
|
-
r("h3",
|
|
70
|
-
r("p",
|
|
71
|
+
r("h3", k, f(v.value), 1),
|
|
72
|
+
r("p", $, f(T.value), 1)
|
|
71
73
|
])
|
|
72
74
|
]),
|
|
73
75
|
_: 3
|
|
@@ -75,5 +77,5 @@ const b = { class: "py-2 px-[2px]" }, $ = { class: "mb-1.5 font-semibold text-lg
|
|
|
75
77
|
}
|
|
76
78
|
});
|
|
77
79
|
export {
|
|
78
|
-
|
|
80
|
+
S as default
|
|
79
81
|
};
|
|
@@ -33,10 +33,10 @@ declare const __VLS_component: import('vue').DefineComponent<DataListProps, {},
|
|
|
33
33
|
data: any[];
|
|
34
34
|
loading: boolean;
|
|
35
35
|
className: string;
|
|
36
|
-
emptyIcon: string;
|
|
37
|
-
showPagination: boolean;
|
|
38
36
|
paginationProps: import('./types').DataListMetaInfo;
|
|
37
|
+
emptyIcon: string;
|
|
39
38
|
itemProps: Record<string, any>;
|
|
39
|
+
showPagination: boolean;
|
|
40
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
41
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
42
|
export default _default;
|
|
@@ -33,19 +33,19 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
33
33
|
}>, {
|
|
34
34
|
search: string;
|
|
35
35
|
variant: "default" | "raised";
|
|
36
|
+
striped: boolean;
|
|
37
|
+
compact: boolean;
|
|
36
38
|
loading: boolean;
|
|
37
39
|
rows: any[];
|
|
38
40
|
selectable: boolean;
|
|
39
41
|
showSearch: boolean;
|
|
40
|
-
compact: boolean;
|
|
41
42
|
headers: import('./types').TableHeader[];
|
|
42
|
-
|
|
43
|
-
hoverable: boolean;
|
|
44
|
-
striped: boolean;
|
|
45
|
-
selectedRows: any[];
|
|
43
|
+
paginationProps: import('./types').DataTablePaginationProps;
|
|
46
44
|
emptyIcon: string;
|
|
45
|
+
selectedRows: any[];
|
|
47
46
|
showPagination: boolean;
|
|
48
|
-
|
|
47
|
+
keyField: string;
|
|
48
|
+
hoverable: boolean;
|
|
49
49
|
bordered: boolean;
|
|
50
50
|
sortable: boolean;
|
|
51
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -35,12 +35,12 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
35
35
|
index: number;
|
|
36
36
|
}) => any;
|
|
37
37
|
}>, {
|
|
38
|
-
|
|
39
|
-
selectable: boolean;
|
|
38
|
+
striped: boolean;
|
|
40
39
|
compact: boolean;
|
|
40
|
+
selectable: boolean;
|
|
41
|
+
isSelected: boolean;
|
|
41
42
|
keyField: string;
|
|
42
43
|
hoverable: boolean;
|
|
43
|
-
striped: boolean;
|
|
44
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
45
45
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
46
|
export default _default;
|
|
@@ -35,11 +35,11 @@ declare function __VLS_template(): {
|
|
|
35
35
|
};
|
|
36
36
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
37
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
-
"update:modelValue": (...args: any[]) => void;
|
|
39
38
|
change: (...args: any[]) => void;
|
|
39
|
+
"update:modelValue": (...args: any[]) => void;
|
|
40
40
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
41
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
42
41
|
onChange?: (...args: any[]) => any;
|
|
42
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
43
43
|
}>, {
|
|
44
44
|
teleport: boolean;
|
|
45
45
|
minuteInterval: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as P, computed as n, openBlock as f, createBlock as v, unref as o, withCtx as r, createElementVNode as
|
|
1
|
+
import { defineComponent as P, computed as n, openBlock as f, createBlock as v, unref as o, withCtx as r, createElementVNode as V, createVNode as m, renderSlot as k, mergeProps as h } from "vue";
|
|
2
2
|
import b from "./Button.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import w from "./Dropdown/Dropdown.vue.js";
|
|
4
4
|
import "@iconify/vue";
|
|
5
5
|
import { $t as y } from "../utils/i18n.js";
|
|
6
|
-
import
|
|
6
|
+
import I, { TimePicker as z } from "v-datepicker-lite";
|
|
7
7
|
import "v-datepicker-lite/style.css";
|
|
8
8
|
const S = { class: "overflow-hidden min-w-[300px]" }, H = /* @__PURE__ */ P({
|
|
9
9
|
__name: "DatePicker",
|
|
@@ -57,7 +57,7 @@ const S = { class: "overflow-hidden min-w-[300px]" }, H = /* @__PURE__ */ P({
|
|
|
57
57
|
}), c = (t) => {
|
|
58
58
|
a.value = t;
|
|
59
59
|
};
|
|
60
|
-
return (t, d) => e.mode !== "time" ? (f(), v(o(
|
|
60
|
+
return (t, d) => e.mode !== "time" ? (f(), v(o(w), {
|
|
61
61
|
key: 0,
|
|
62
62
|
position: "bottom-start",
|
|
63
63
|
class: "w-full",
|
|
@@ -66,7 +66,7 @@ const S = { class: "overflow-hidden min-w-[300px]" }, H = /* @__PURE__ */ P({
|
|
|
66
66
|
disabled: e.disabled || e.readonly
|
|
67
67
|
}, {
|
|
68
68
|
trigger: r(() => [
|
|
69
|
-
|
|
69
|
+
k(t.$slots, "default", {
|
|
70
70
|
value: a.value,
|
|
71
71
|
displayValue: i.value
|
|
72
72
|
}, () => [
|
|
@@ -80,8 +80,8 @@ const S = { class: "overflow-hidden min-w-[300px]" }, H = /* @__PURE__ */ P({
|
|
|
80
80
|
])
|
|
81
81
|
]),
|
|
82
82
|
default: r(() => [
|
|
83
|
-
|
|
84
|
-
m(o(
|
|
83
|
+
V("div", S, [
|
|
84
|
+
m(o(I), {
|
|
85
85
|
value: a.value,
|
|
86
86
|
mode: e.mode,
|
|
87
87
|
"min-date": e.minDate,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ButtonSize, ButtonVariant } from '../types';
|
|
2
|
+
export interface DateRange {
|
|
3
|
+
start: any;
|
|
4
|
+
end: any;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
modelValue?: DateRange | null;
|
|
8
|
+
placeholderStart?: string;
|
|
9
|
+
placeholderEnd?: string;
|
|
10
|
+
minDate?: string;
|
|
11
|
+
maxDate?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
size?: ButtonSize;
|
|
15
|
+
variant?: ButtonVariant;
|
|
16
|
+
showQuickRanges?: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
change: (...args: any[]) => void;
|
|
20
|
+
"update:modelValue": (...args: any[]) => void;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onChange?: (...args: any[]) => any;
|
|
23
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
24
|
+
}>, {
|
|
25
|
+
placeholderStart: string;
|
|
26
|
+
placeholderEnd: string;
|
|
27
|
+
showQuickRanges: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
29
|
+
export default _default;
|