@eslamdevui/ui 3.3.1 → 3.3.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/ui/button.ts +42 -42
- package/.nuxt/ui/command-palette.ts +2 -1
- package/.nuxt/ui/file-upload.ts +295 -0
- package/.nuxt/ui/index.ts +2 -0
- package/.nuxt/ui/kbd.ts +167 -3
- package/.nuxt/ui/scroll-to-section.ts +3 -0
- package/.nuxt/ui/table.ts +14 -0
- package/.nuxt/ui/tabs.ts +4 -2
- package/.nuxt/ui/toast.ts +8 -15
- package/.nuxt/ui/tooltip.ts +1 -1
- package/cli/templates.mjs +4 -3
- package/dist/module.d.mts +15 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/Alert.vue.d.ts +2 -2
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/Banner.vue.d.ts +1 -5
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
- package/dist/runtime/components/BlogPosts.vue.d.ts +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/Button.vue +6 -6
- package/dist/runtime/components/Button.vue.d.ts +1 -5
- package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue.d.ts +1 -1
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +18 -14
- package/dist/runtime/components/Carousel.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +1 -1
- package/dist/runtime/components/ChatMessage.vue.d.ts +4 -8
- package/dist/runtime/components/ChatMessages.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +1 -1
- package/dist/runtime/components/Checkbox.vue.d.ts +1 -1
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/ColorPicker.vue +1 -2
- package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
- package/dist/runtime/components/CommandPalette.vue +4 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +9 -4
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +1 -1
- package/dist/runtime/components/Drawer.vue +4 -4
- package/dist/runtime/components/Drawer.vue.d.ts +6 -1
- package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +8 -5
- package/dist/runtime/components/Error.vue.d.ts +1 -1
- package/dist/runtime/components/FileUpload.vue +242 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +167 -0
- package/dist/runtime/components/Footer.vue.d.ts +1 -1
- package/dist/runtime/components/FooterColumns.vue.d.ts +1 -1
- package/dist/runtime/components/Form.vue.d.ts +5 -4
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +4 -4
- package/dist/runtime/components/Header.vue.d.ts +1 -1
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue +10 -7
- package/dist/runtime/components/Input.vue.d.ts +9 -9
- package/dist/runtime/components/InputMenu.vue +17 -10
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -14
- package/dist/runtime/components/InputNumber.vue.d.ts +4 -4
- package/dist/runtime/components/InputTags.vue +2 -0
- package/dist/runtime/components/InputTags.vue.d.ts +5 -3
- package/dist/runtime/components/Kbd.vue +2 -1
- package/dist/runtime/components/Kbd.vue.d.ts +5 -1
- package/dist/runtime/components/Link.vue +6 -5
- package/dist/runtime/components/Link.vue.d.ts +1 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Main.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/NavigationMenu.vue +3 -2
- package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Page.vue.d.ts +1 -1
- package/dist/runtime/components/PageAccordion.vue.d.ts +1 -1
- package/dist/runtime/components/PageAnchors.vue.d.ts +1 -1
- package/dist/runtime/components/PageAside.vue.d.ts +1 -1
- package/dist/runtime/components/PageBody.vue.d.ts +1 -1
- package/dist/runtime/components/PageCTA.vue.d.ts +1 -1
- package/dist/runtime/components/PageCard.vue.d.ts +1 -1
- package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
- package/dist/runtime/components/PageFeature.vue.d.ts +1 -1
- package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
- package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
- package/dist/runtime/components/PageHero.vue.d.ts +1 -1
- package/dist/runtime/components/PageLinks.vue.d.ts +1 -1
- package/dist/runtime/components/PageList.vue.d.ts +1 -1
- package/dist/runtime/components/PageLogos.vue.d.ts +1 -1
- package/dist/runtime/components/PageMarquee.vue.d.ts +1 -1
- package/dist/runtime/components/PageSection.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/PinInput.vue.d.ts +1 -1
- package/dist/runtime/components/Popover.vue +2 -1
- package/dist/runtime/components/Popover.vue.d.ts +8 -2
- package/dist/runtime/components/PricingPlan.vue.d.ts +1 -1
- package/dist/runtime/components/PricingPlans.vue.d.ts +1 -1
- package/dist/runtime/components/PricingTable.vue +14 -2
- package/dist/runtime/components/PricingTable.vue.d.ts +1 -1
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +5 -4
- package/dist/runtime/components/ScrollToSection.vue +62 -0
- package/dist/runtime/components/ScrollToSection.vue.d.ts +36 -0
- package/dist/runtime/components/Select.vue.d.ts +1 -1
- package/dist/runtime/components/SelectMenu.vue +9 -6
- package/dist/runtime/components/SelectMenu.vue.d.ts +4 -4
- package/dist/runtime/components/Separator.vue.d.ts +1 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/Slideover.vue.d.ts +2 -2
- package/dist/runtime/components/Slider.vue.d.ts +5 -5
- package/dist/runtime/components/Stepper.vue.d.ts +1 -1
- package/dist/runtime/components/Switch.vue.d.ts +1 -1
- package/dist/runtime/components/Table.vue +83 -8
- package/dist/runtime/components/Table.vue.d.ts +20 -4
- package/dist/runtime/components/Tabs.vue +36 -16
- package/dist/runtime/components/Tabs.vue.d.ts +8 -3
- package/dist/runtime/components/Textarea.vue +10 -7
- package/dist/runtime/components/Textarea.vue.d.ts +10 -9
- package/dist/runtime/components/Timeline.vue.d.ts +1 -1
- package/dist/runtime/components/Toast.vue +12 -4
- package/dist/runtime/components/Toast.vue.d.ts +14 -13
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue +2 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +8 -2
- package/dist/runtime/components/Tree.vue +3 -2
- package/dist/runtime/components/Tree.vue.d.ts +1 -1
- package/dist/runtime/components/User.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSearch.vue +1 -2
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentToc.vue.d.ts +1 -1
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Card.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Img.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
- package/dist/runtime/components/prose/P.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Pre.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Script.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +3 -3
- package/dist/runtime/composables/defineShortcuts.js +5 -3
- package/dist/runtime/composables/useFileUpload.d.ts +19 -0
- package/dist/runtime/composables/useFileUpload.js +63 -0
- package/dist/runtime/composables/useFormField.d.ts +1 -4
- package/dist/runtime/composables/useFormField.js +5 -2
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +28 -1
- package/dist/runtime/composables/useOverlay.js +4 -4
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/inertia/stubs.d.ts +1 -0
- package/dist/runtime/inertia/stubs.js +4 -2
- package/dist/runtime/locale/ar.js +2 -1
- package/dist/runtime/locale/az.js +1 -0
- package/dist/runtime/locale/bg.js +1 -0
- package/dist/runtime/locale/bn.js +1 -0
- package/dist/runtime/locale/ca.js +1 -0
- package/dist/runtime/locale/ckb.js +2 -1
- package/dist/runtime/locale/cs.js +1 -0
- package/dist/runtime/locale/da.js +1 -0
- package/dist/runtime/locale/de.js +1 -0
- package/dist/runtime/locale/el.js +1 -0
- package/dist/runtime/locale/en.js +1 -0
- package/dist/runtime/locale/es.js +1 -0
- package/dist/runtime/locale/et.js +1 -0
- package/dist/runtime/locale/fa_ir.js +1 -0
- package/dist/runtime/locale/fi.js +1 -0
- package/dist/runtime/locale/fr.js +1 -0
- package/dist/runtime/locale/he.js +1 -0
- package/dist/runtime/locale/hi.js +2 -1
- package/dist/runtime/locale/hu.js +1 -0
- package/dist/runtime/locale/hy.js +1 -0
- package/dist/runtime/locale/id.js +1 -0
- package/dist/runtime/locale/it.js +1 -0
- package/dist/runtime/locale/ja.js +1 -0
- package/dist/runtime/locale/kk.js +1 -0
- package/dist/runtime/locale/km.js +2 -1
- package/dist/runtime/locale/ko.js +1 -0
- package/dist/runtime/locale/ky.js +1 -0
- package/dist/runtime/locale/lb.js +1 -0
- package/dist/runtime/locale/lt.js +1 -0
- package/dist/runtime/locale/mn.js +1 -0
- package/dist/runtime/locale/ms.js +1 -0
- package/dist/runtime/locale/nb_no.js +1 -0
- package/dist/runtime/locale/nl.js +1 -0
- package/dist/runtime/locale/pl.js +1 -0
- package/dist/runtime/locale/pt.js +1 -0
- package/dist/runtime/locale/pt_br.js +1 -0
- package/dist/runtime/locale/ro.js +1 -0
- package/dist/runtime/locale/ru.js +1 -0
- package/dist/runtime/locale/sk.js +1 -0
- package/dist/runtime/locale/sl.js +1 -0
- package/dist/runtime/locale/sv.js +1 -0
- package/dist/runtime/locale/th.js +1 -0
- package/dist/runtime/locale/tj.js +1 -0
- package/dist/runtime/locale/tr.js +1 -0
- package/dist/runtime/locale/ug_cn.js +1 -0
- package/dist/runtime/locale/uk.js +1 -0
- package/dist/runtime/locale/ur.js +1 -0
- package/dist/runtime/locale/uz.js +1 -0
- package/dist/runtime/locale/vi.js +1 -0
- package/dist/runtime/locale/zh_cn.js +1 -0
- package/dist/runtime/locale/zh_tw.js +1 -0
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/locale.d.ts +1 -0
- package/dist/runtime/utils/content.d.ts +18 -6
- package/dist/runtime/utils/content.js +51 -25
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +9 -0
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +1 -0
- package/dist/runtime/vue/stubs.js +3 -1
- package/dist/shared/{ui.i6pGHFq6.mjs → ui.CgUuvRXi.mjs} +282 -29
- package/dist/unplugin.d.mts +2 -1
- package/dist/unplugin.mjs +6 -3
- package/dist/vite.mjs +1 -1
- package/package.json +57 -41
- package/dist/runtime/composables/useQuerySection.d.ts +0 -14
- package/dist/runtime/composables/useQuerySection.js +0 -44
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ref, computed, unref, onMounted, watch, reactive } from "vue";
|
|
2
|
+
import { useFileDialog, useDropZone } from "@vueuse/core";
|
|
3
|
+
function parseAcceptToDataTypes(accept) {
|
|
4
|
+
if (!accept || accept === "*") {
|
|
5
|
+
return void 0;
|
|
6
|
+
}
|
|
7
|
+
const types = accept.split(",").map((type) => type.trim()).filter((type) => {
|
|
8
|
+
return !type.startsWith(".");
|
|
9
|
+
});
|
|
10
|
+
return types.length > 0 ? types : void 0;
|
|
11
|
+
}
|
|
12
|
+
export function useFileUpload(options) {
|
|
13
|
+
const {
|
|
14
|
+
accept = "*",
|
|
15
|
+
reset = false,
|
|
16
|
+
multiple = false,
|
|
17
|
+
dropzone = true,
|
|
18
|
+
onUpdate
|
|
19
|
+
} = options;
|
|
20
|
+
const inputRef = ref();
|
|
21
|
+
const dropzoneRef = ref();
|
|
22
|
+
const dataTypes = computed(() => parseAcceptToDataTypes(unref(accept)));
|
|
23
|
+
const onDrop = (files) => {
|
|
24
|
+
if (!files || files.length === 0) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (files instanceof FileList) {
|
|
28
|
+
files = Array.from(files);
|
|
29
|
+
}
|
|
30
|
+
if (files.length > 1 && !multiple) {
|
|
31
|
+
files = [files[0]];
|
|
32
|
+
}
|
|
33
|
+
onUpdate(files);
|
|
34
|
+
};
|
|
35
|
+
const isDragging = ref(false);
|
|
36
|
+
const fileDialog = reactive({
|
|
37
|
+
open: () => {
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
function open() {
|
|
41
|
+
fileDialog.open();
|
|
42
|
+
}
|
|
43
|
+
onMounted(() => {
|
|
44
|
+
const { isOverDropZone } = dropzone ? useDropZone(dropzoneRef, { dataTypes: dataTypes.value, onDrop }) : { isOverDropZone: ref(false) };
|
|
45
|
+
watch(isOverDropZone, (value) => {
|
|
46
|
+
isDragging.value = value;
|
|
47
|
+
});
|
|
48
|
+
const { onChange, open: open2 } = useFileDialog({
|
|
49
|
+
accept: unref(accept),
|
|
50
|
+
multiple,
|
|
51
|
+
input: unref(inputRef),
|
|
52
|
+
reset
|
|
53
|
+
});
|
|
54
|
+
fileDialog.open = open2;
|
|
55
|
+
onChange((fileList) => onDrop(fileList));
|
|
56
|
+
});
|
|
57
|
+
return {
|
|
58
|
+
isDragging,
|
|
59
|
+
open,
|
|
60
|
+
inputRef,
|
|
61
|
+
dropzoneRef
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -34,9 +34,6 @@ export declare function useFormField<T>(props?: Props<T>, opts?: {
|
|
|
34
34
|
emitFormInput: import("@vueuse/shared").UseDebounceFnReturn<() => void>;
|
|
35
35
|
emitFormChange: () => void;
|
|
36
36
|
emitFormFocus: () => void;
|
|
37
|
-
ariaAttrs: ComputedRef<
|
|
38
|
-
'aria-describedby': string;
|
|
39
|
-
'aria-invalid': boolean;
|
|
40
|
-
} | undefined>;
|
|
37
|
+
ariaAttrs: ComputedRef<Record<string, any> | undefined>;
|
|
41
38
|
};
|
|
42
39
|
export {};
|
|
@@ -57,10 +57,13 @@ export function useFormField(props, opts) {
|
|
|
57
57
|
ariaAttrs: computed(() => {
|
|
58
58
|
if (!formField?.value) return;
|
|
59
59
|
const descriptiveAttrs = ["error", "hint", "description", "help"].filter((type) => formField?.value?.[type]).map((type) => `${formField?.value.ariaId}-${type}`) || [];
|
|
60
|
-
|
|
61
|
-
"aria-describedby": descriptiveAttrs.join(" "),
|
|
60
|
+
const attrs = {
|
|
62
61
|
"aria-invalid": !!formField?.value.error
|
|
63
62
|
};
|
|
63
|
+
if (descriptiveAttrs.length > 0) {
|
|
64
|
+
attrs["aria-describedby"] = descriptiveAttrs.join(" ");
|
|
65
|
+
}
|
|
66
|
+
return attrs;
|
|
64
67
|
})
|
|
65
68
|
};
|
|
66
69
|
}
|
|
@@ -30,7 +30,7 @@ export declare const kbdKeysMap: {
|
|
|
30
30
|
export type KbdKey = keyof typeof kbdKeysMap;
|
|
31
31
|
export type KbdKeySpecific = keyof KbdKeysSpecificMap;
|
|
32
32
|
export declare const useKbd: () => {
|
|
33
|
-
macOS: import("vue").ComputedRef<false | "" | RegExpMatchArray | null
|
|
33
|
+
macOS: import("vue").ComputedRef<false | "" | RegExpMatchArray | null>;
|
|
34
34
|
getKbdKey: (value?: KbdKey | string) => string | undefined;
|
|
35
35
|
};
|
|
36
36
|
export {};
|
|
@@ -4,7 +4,7 @@ import { buildLocaleContext } from "../utils/locale.js";
|
|
|
4
4
|
import en from "../locale/en.js";
|
|
5
5
|
export const localeContextInjectionKey = Symbol.for("eslamdevui-ui.locale-context");
|
|
6
6
|
const _useLocale = (localeOverrides) => {
|
|
7
|
-
const locale = localeOverrides || toRef(inject(localeContextInjectionKey));
|
|
7
|
+
const locale = localeOverrides || toRef(inject(localeContextInjectionKey, en));
|
|
8
8
|
return buildLocaleContext(computed(() => locale.value || en));
|
|
9
9
|
};
|
|
10
|
-
export const useLocale =
|
|
10
|
+
export const useLocale = import.meta.client ? createSharedComposable(_useLocale) : _useLocale;
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
2
|
import type { ComponentProps, ComponentEmit } from 'vue-component-type-helpers';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* This is a workaround for a design limitation in TypeScript.
|
|
5
|
+
*
|
|
6
|
+
* Conditional types only match the last function overload, not a union of all possible
|
|
7
|
+
* parameter types. This workaround forces TypeScript to properly extract the 'close'
|
|
8
|
+
* event argument type from component emits with multiple event signatures.
|
|
9
|
+
*
|
|
10
|
+
* @see https://github.com/microsoft/TypeScript/issues/32164
|
|
11
|
+
*/
|
|
12
|
+
type CloseEventArgType<T> = T extends {
|
|
13
|
+
(event: 'close', arg_0: infer Arg, ...args: any[]): void;
|
|
14
|
+
(...args: any[]): void;
|
|
15
|
+
(...args: any[]): void;
|
|
16
|
+
(...args: any[]): void;
|
|
17
|
+
(...args: any[]): void;
|
|
18
|
+
(...args: any[]): void;
|
|
19
|
+
(...args: any[]): void;
|
|
20
|
+
(...args: any[]): void;
|
|
21
|
+
(...args: any[]): void;
|
|
22
|
+
(...args: any[]): void;
|
|
23
|
+
(...args: any[]): void;
|
|
24
|
+
(...args: any[]): void;
|
|
25
|
+
(...args: any[]): void;
|
|
26
|
+
(...args: any[]): void;
|
|
27
|
+
(...args: any[]): void;
|
|
28
|
+
(...args: any[]): void;
|
|
29
|
+
(...args: any[]): void;
|
|
30
|
+
} ? Arg : never;
|
|
4
31
|
export type OverlayOptions<OverlayAttrs = Record<string, any>> = {
|
|
5
32
|
defaultOpen?: boolean;
|
|
6
33
|
props?: OverlayAttrs;
|
|
@@ -11,7 +11,7 @@ function _useOverlay() {
|
|
|
11
11
|
isMounted: !!defaultOpen,
|
|
12
12
|
destroyOnClose: !!destroyOnClose,
|
|
13
13
|
originalProps: props || {},
|
|
14
|
-
props: { ...props
|
|
14
|
+
props: { ...props }
|
|
15
15
|
});
|
|
16
16
|
overlays.push(options);
|
|
17
17
|
return {
|
|
@@ -24,9 +24,9 @@ function _useOverlay() {
|
|
|
24
24
|
const open = (id, props) => {
|
|
25
25
|
const overlay = getOverlay(id);
|
|
26
26
|
if (props) {
|
|
27
|
-
|
|
27
|
+
overlay.props = { ...overlay.originalProps, ...props };
|
|
28
28
|
} else {
|
|
29
|
-
|
|
29
|
+
overlay.props = { ...overlay.originalProps };
|
|
30
30
|
}
|
|
31
31
|
overlay.isOpen = true;
|
|
32
32
|
overlay.isMounted = true;
|
|
@@ -58,7 +58,7 @@ function _useOverlay() {
|
|
|
58
58
|
};
|
|
59
59
|
const patch = (id, props) => {
|
|
60
60
|
const overlay = getOverlay(id);
|
|
61
|
-
overlay.props = { ...props };
|
|
61
|
+
overlay.props = { ...overlay.props, ...props };
|
|
62
62
|
};
|
|
63
63
|
const getOverlay = (id) => {
|
|
64
64
|
const overlay = overlays.find((overlay2) => overlay2.id === id);
|
|
@@ -48,7 +48,7 @@ export interface LinkSlots {
|
|
|
48
48
|
active: boolean;
|
|
49
49
|
}): any;
|
|
50
50
|
}
|
|
51
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
51
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
52
52
|
type: "reset" | "submit" | "button";
|
|
53
53
|
as: any;
|
|
54
54
|
activeClass: string;
|
|
@@ -9,7 +9,7 @@ export interface LinkBaseProps {
|
|
|
9
9
|
active?: boolean;
|
|
10
10
|
isExternal?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps,
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
13
13
|
type: string;
|
|
14
14
|
as: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, onScopeDispose } from "vue";
|
|
2
2
|
import { createHooks } from "hookable";
|
|
3
|
-
import appConfig from "#build/app.config";
|
|
4
|
-
import { useColorMode as useColorModeVueUse } from "@vueuse/core";
|
|
5
3
|
import { usePage } from "@inertiajs/vue3";
|
|
4
|
+
import { useColorMode as useColorModeVueUse } from "@vueuse/core";
|
|
5
|
+
import appConfig from "#build/app.config";
|
|
6
6
|
export { useHead } from "@unhead/vue";
|
|
7
7
|
export { useAppConfig } from "../vue/composables/useAppConfig.js";
|
|
8
8
|
export { defineShortcuts } from "../composables/defineShortcuts.js";
|
|
@@ -16,6 +16,8 @@ export const useRoute = () => {
|
|
|
16
16
|
};
|
|
17
17
|
export const useRouter = () => {
|
|
18
18
|
};
|
|
19
|
+
export const clearError = () => {
|
|
20
|
+
};
|
|
19
21
|
export const useColorMode = () => {
|
|
20
22
|
if (!appConfig.colorMode) {
|
|
21
23
|
return {
|
|
@@ -38,7 +38,8 @@ export default defineLocale({
|
|
|
38
38
|
carousel: {
|
|
39
39
|
prev: "\u0627\u0644\u0633\u0627\u0628\u0642",
|
|
40
40
|
next: "\u0627\u0644\u062A\u0627\u0644\u064A",
|
|
41
|
-
|
|
41
|
+
dots: "\u0627\u062E\u062A\u0631 \u0627\u0644\u0634\u0631\u064A\u062D\u0629 \u0627\u0644\u0645\u0631\u0627\u062F \u0639\u0631\u0636\u0647\u0627",
|
|
42
|
+
goto: "\u0627\u0644\u0630\u0647\u0627\u0628 \u0625\u0644\u0649 \u0634\u0631\u064A\u062D\u0629 {slide}"
|
|
42
43
|
},
|
|
43
44
|
modal: {
|
|
44
45
|
close: "\u0625\u063A\u0644\u0627\u0642"
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u041D\u0430\u0437\u0430\u0434",
|
|
39
39
|
next: "\u041D\u0430\u043F\u0440\u0435\u0434",
|
|
40
|
+
dots: "\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u043B\u0430\u0439\u0434 \u0437\u0430 \u043F\u043E\u043A\u0430\u0437\u0432\u0430\u043D\u0435",
|
|
40
41
|
goto: "\u041E\u0442\u0438\u0434\u0435\u0442\u0435 \u043D\u0430 \u0441\u043B\u0430\u0439\u0434 {slide}"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u09AA\u09C2\u09B0\u09CD\u09AC\u09AC\u09B0\u09CD\u09A4\u09C0",
|
|
39
39
|
next: "\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",
|
|
40
|
+
dots: "\u09AA\u09CD\u09B0\u09A6\u09B0\u09CD\u09B6\u09A8\u09C7\u09B0 \u099C\u09A8\u09CD\u09AF \u09B8\u09CD\u09B2\u09BE\u0987\u09A1 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",
|
|
40
41
|
goto: "\u09B8\u09CD\u09B2\u09BE\u0987\u09A1 {slide} \u098F \u09AF\u09BE\u09A8"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -36,8 +36,9 @@ export default defineLocale({
|
|
|
36
36
|
close: "\u062F\u0627\u062E\u0633\u062A\u0646"
|
|
37
37
|
},
|
|
38
38
|
carousel: {
|
|
39
|
-
prev: "\u067E\u06CE\u0634\u0648\u0648",
|
|
39
|
+
prev: "\u067E\u06CE\u0634\u0648\u0648\u06CC",
|
|
40
40
|
next: "\u062F\u0627\u0647\u0627\u062A\u0648\u0648",
|
|
41
|
+
dots: "\u0633\u0644\u0627\u06CC\u062F\u06CE\u06A9 \u0647\u06D5\u06B5\u0628\u0698\u06CE\u0631\u06D5 \u0628\u06C6 \u067E\u06CC\u0634\u0627\u0646\u062F\u0627\u0646",
|
|
41
42
|
goto: "\u0628\u0695\u06C6 \u0628\u06C6 \u0633\u0644\u0627\u06CC\u062F\u06CC {slide}"
|
|
42
43
|
},
|
|
43
44
|
modal: {
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",
|
|
39
39
|
next: "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",
|
|
40
|
+
dots: "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B4\u03B9\u03B1\u03C6\u03AC\u03BD\u03B5\u03B9\u03B1 \u03B3\u03B9\u03B1 \u03B5\u03BC\u03C6\u03AC\u03BD\u03B9\u03C3\u03B7",
|
|
40
41
|
goto: "\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03B4\u03B9\u03B1\u03C6\u03AC\u03BD\u03B5\u03B9\u03B1 {slide}"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -38,6 +38,7 @@ export default defineLocale({
|
|
|
38
38
|
carousel: {
|
|
39
39
|
prev: "\u0642\u0628\u0644\u06CC",
|
|
40
40
|
next: "\u0628\u0639\u062F\u06CC",
|
|
41
|
+
dots: "\u0627\u0633\u0644\u0627\u06CC\u062F \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u0628\u0631\u0627\u06CC \u0646\u0645\u0627\u06CC\u0634 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",
|
|
41
42
|
goto: "\u0631\u0641\u062A\u0646 \u0628\u0647 \u0627\u0633\u0644\u0627\u06CC\u062F {slide}"
|
|
42
43
|
},
|
|
43
44
|
modal: {
|
|
@@ -36,6 +36,7 @@ export default defineLocale({
|
|
|
36
36
|
carousel: {
|
|
37
37
|
prev: "\u05D4\u05E7\u05D5\u05D3\u05DD",
|
|
38
38
|
next: "\u05D4\u05D1\u05D0",
|
|
39
|
+
dots: "\u05D1\u05D7\u05E8 \u05E9\u05E7\u05D5\u05E4\u05D9\u05EA \u05DC\u05D4\u05E6\u05D2\u05D4",
|
|
39
40
|
goto: "\u05DE\u05E2\u05D1\u05E8 \u05DC {slide}"
|
|
40
41
|
},
|
|
41
42
|
modal: {
|
|
@@ -37,7 +37,8 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u092A\u093F\u091B\u0932\u093E",
|
|
39
39
|
next: "\u0905\u0917\u0932\u093E",
|
|
40
|
-
|
|
40
|
+
dots: "\u092A\u094D\u0930\u0926\u0930\u094D\u0936\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0938\u094D\u0932\u093E\u0907\u0921 \u091A\u0941\u0928\u0947\u0902",
|
|
41
|
+
goto: "\u0938\u094D\u0932\u093E\u0907\u0921 {slide} \u092A\u0930 \u091C\u093E\u090F\u0902"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
43
44
|
close: "\u092C\u0902\u0926 \u0915\u0930\u0947\u0902"
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u0540\u0565\u057F",
|
|
39
39
|
next: "\u0531\u057C\u0561\u057B",
|
|
40
|
+
dots: "\u0538\u0576\u057F\u0580\u0565\u0584 \u0581\u0578\u0582\u0581\u0561\u0564\u0580\u0565\u056C\u0578\u0582 \u057D\u056C\u0561\u0575\u0564\u0568",
|
|
40
41
|
goto: "\u0531\u0576\u0581\u0576\u0565\u056C {slide}-\u056B\u0576"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u0410\u043B\u0434\u044B\u04A3\u0493\u044B",
|
|
39
39
|
next: "\u041A\u0435\u043B\u0435\u0441\u0456",
|
|
40
|
+
dots: "\u041A\u04E9\u0440\u0441\u0435\u0442\u0443 \u04AF\u0448\u0456\u043D \u0441\u043B\u0430\u0439\u0434\u0442\u044B \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437",
|
|
40
41
|
goto: "{slide} \u0441\u043B\u0430\u0439\u0434\u049B\u0430 \u04E9\u0442\u0443"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -37,7 +37,8 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u1798\u17BB\u1793",
|
|
39
39
|
next: "\u1794\u1793\u17D2\u1791\u17B6\u1794\u17CB",
|
|
40
|
-
|
|
40
|
+
dots: "\u1787\u17D2\u179A\u17BE\u179F\u179A\u17BE\u179F\u200B\u179F\u17D2\u179B\u17B6\u1799\u200B\u178A\u17BE\u1798\u17D2\u1794\u17B8\u200B\u1794\u1784\u17D2\u17A0\u17B6\u1789",
|
|
41
|
+
goto: "\u17A1\u17BE\u1784\u1791\u17C5\u179F\u17D2\u179B\u17B6\u1799 {slide}"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
43
44
|
close: "\u1794\u17B7\u1791"
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u0410\u043B\u0434\u044B\u04A3\u043A\u044B",
|
|
39
39
|
next: "\u041A\u0438\u0439\u0438\u043D\u043A\u0438",
|
|
40
|
+
dots: "\u041A\u04E9\u0440\u0441\u04E9\u0442\u04AF\u04AF \u04AF\u0447\u04AF\u043D \u0441\u043B\u0430\u0439\u0434\u0434\u044B \u0442\u0430\u043D\u0434\u0430\u04A3\u044B\u0437",
|
|
40
41
|
goto: "{slide} \u0441\u043B\u0430\u0439\u0434\u0433\u0430 \u04E9\u0442\u04AF\u04AF"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u04E8\u043C\u043D\u04E9\u0445",
|
|
39
39
|
next: "\u0414\u0430\u0440\u0430\u0430\u0445",
|
|
40
|
+
dots: "\u0425\u0430\u0440\u0443\u0443\u043B\u0430\u0445 \u0441\u043B\u0430\u0439\u0434\u044B\u0433 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443",
|
|
40
41
|
goto: "{slide}-\u0440 \u0445\u0443\u0443\u0434\u0441\u0430\u043D\u0434 \u0448\u0438\u043B\u0436\u0438\u0445"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u041D\u0430\u0437\u0430\u0434",
|
|
39
39
|
next: "\u0414\u0430\u043B\u0435\u0435",
|
|
40
|
+
dots: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043B\u0430\u0439\u0434 \u0434\u043B\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F",
|
|
40
41
|
goto: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A {slide}"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A",
|
|
39
39
|
next: "\u0E16\u0E31\u0E14\u0E44\u0E1B",
|
|
40
|
+
dots: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E44\u0E25\u0E14\u0E4C\u0E17\u0E35\u0E48\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07",
|
|
40
41
|
goto: "\u0E44\u0E1B\u0E17\u0E35\u0E48 {slide}"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|
|
@@ -37,6 +37,7 @@ export default defineLocale({
|
|
|
37
37
|
carousel: {
|
|
38
38
|
prev: "\u049A\u0430\u0431\u043B\u04E3",
|
|
39
39
|
next: "\u0411\u0430\u044A\u0434\u04E3",
|
|
40
|
+
dots: "\u0421\u043B\u0430\u0439\u0434\u0440\u043E \u0431\u0430\u0440\u043E\u0438 \u043D\u0430\u043C\u043E\u0438\u0448 \u0438\u043D\u0442\u0438\u0445\u043E\u0431 \u043A\u0443\u043D\u0435\u0434",
|
|
40
41
|
goto: "\u0411\u0430 \u0441\u043B\u0430\u0439\u0434\u0438 {slide} \u0433\u0443\u0437\u0430\u0440\u0435\u0434"
|
|
41
42
|
},
|
|
42
43
|
modal: {
|