abckit 0.0.22 → 0.0.24
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/dist/module.d.mts +8 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +110 -11
- package/dist/runtime/components/app/AppImage.d.vue.ts +6 -1
- package/dist/runtime/components/app/AppImage.vue.d.ts +6 -1
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/auto-form/AutoForm.d.vue.ts +9 -7
- package/dist/runtime/components/ui/auto-form/AutoForm.vue.d.ts +9 -7
- package/dist/runtime/components/ui/auto-form/AutoFormField.d.vue.ts +5 -3
- package/dist/runtime/components/ui/auto-form/AutoFormField.vue.d.ts +5 -3
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.d.vue.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue.d.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.d.vue.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.d.vue.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.d.vue.ts +33 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue.d.ts +33 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.d.vue.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.d.vue.ts +33 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue.d.ts +33 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.d.vue.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.d.vue.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.vue.d.ts +34 -0
- package/dist/runtime/components/ui/auto-form/dependencies.d.ts +25 -1
- package/dist/runtime/components/ui/auto-form/utils.d.ts +1 -1
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.d.vue.ts +3 -1
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +3 -1
- package/dist/runtime/components/ui/button/Button.d.vue.ts +3 -1
- package/dist/runtime/components/ui/button/Button.vue.d.ts +3 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.d.vue.ts +3 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +3 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupText.d.vue.ts +3 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupText.vue.d.ts +3 -1
- package/dist/runtime/components/ui/calendar/Calendar.d.vue.ts +4 -1
- package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +4 -1
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.d.vue.ts +3 -1
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue.d.ts +3 -1
- package/dist/runtime/components/ui/carousel/Carousel.d.vue.ts +37 -0
- package/dist/runtime/components/ui/carousel/Carousel.vue.d.ts +37 -0
- package/dist/runtime/components/ui/carousel/CarouselNext.d.vue.ts +4 -1
- package/dist/runtime/components/ui/carousel/CarouselNext.vue.d.ts +4 -1
- package/dist/runtime/components/ui/carousel/CarouselPrevious.d.vue.ts +4 -1
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue.d.ts +4 -1
- package/dist/runtime/components/ui/chart/ChartContainer.d.vue.ts +2 -2
- package/dist/runtime/components/ui/chart/ChartContainer.vue.d.ts +2 -2
- package/dist/runtime/components/ui/chart/ChartLegendContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/chart/ChartLegendContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/chart/ChartTooltipContent.d.vue.ts +5 -1
- package/dist/runtime/components/ui/chart/ChartTooltipContent.vue.d.ts +5 -1
- package/dist/runtime/components/ui/combobox/ComboboxInput.d.vue.ts +2 -2
- package/dist/runtime/components/ui/combobox/ComboboxInput.vue.d.ts +2 -2
- package/dist/runtime/components/ui/combobox/ComboboxList.d.vue.ts +5 -1
- package/dist/runtime/components/ui/combobox/ComboboxList.vue.d.ts +5 -1
- package/dist/runtime/components/ui/command/Command.d.vue.ts +3 -1
- package/dist/runtime/components/ui/command/Command.vue.d.ts +3 -1
- package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +6 -3
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +6 -3
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.d.vue.ts +3 -1
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue.d.ts +3 -1
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/country-select/CountrySelect.d.vue.ts +6 -1
- package/dist/runtime/components/ui/country-select/CountrySelect.vue.d.ts +6 -1
- package/dist/runtime/components/ui/currency-select/CurrencySelect.d.vue.ts +6 -1
- package/dist/runtime/components/ui/currency-select/CurrencySelect.vue.d.ts +6 -1
- package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +4 -4
- package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +3 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +3 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/field/FieldSeparator.d.vue.ts +2 -2
- package/dist/runtime/components/ui/field/FieldSeparator.vue.d.ts +2 -2
- package/dist/runtime/components/ui/file/FileEmptyState.d.vue.ts +4 -1
- package/dist/runtime/components/ui/file/FileEmptyState.vue.d.ts +4 -1
- package/dist/runtime/components/ui/file/FileGrid.d.vue.ts +3 -1
- package/dist/runtime/components/ui/file/FileGrid.vue.d.ts +3 -1
- package/dist/runtime/components/ui/file/FileTable.d.vue.ts +5 -1
- package/dist/runtime/components/ui/file/FileTable.vue.d.ts +5 -1
- package/dist/runtime/components/ui/file/FolderTree.d.vue.ts +3 -1
- package/dist/runtime/components/ui/file/FolderTree.vue.d.ts +3 -1
- package/dist/runtime/components/ui/hover-card/HoverCardContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/hover-card/HoverCardContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/input-group/InputGroupAddon.d.vue.ts +3 -1
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue.d.ts +3 -1
- package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +4 -1
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +4 -1
- package/dist/runtime/components/ui/item/Item.d.vue.ts +3 -1
- package/dist/runtime/components/ui/item/Item.vue.d.ts +3 -1
- package/dist/runtime/components/ui/language-select/LanguageSelect.d.vue.ts +7 -1
- package/dist/runtime/components/ui/language-select/LanguageSelect.vue.d.ts +7 -1
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/menubar/MenubarContent.d.vue.ts +5 -1
- package/dist/runtime/components/ui/menubar/MenubarContent.vue.d.ts +5 -1
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +2 -2
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.d.vue.ts +3 -1
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationFirst.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationItem.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationItem.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationLast.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationLast.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationNext.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationNext.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationPrevious.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pin-input/PinInput.d.vue.ts +5 -3
- package/dist/runtime/components/ui/pin-input/PinInput.vue.d.ts +5 -3
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +4 -1
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +4 -1
- package/dist/runtime/components/ui/progress/Progress.d.vue.ts +3 -1
- package/dist/runtime/components/ui/progress/Progress.vue.d.ts +3 -1
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.d.vue.ts +3 -1
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +3 -1
- package/dist/runtime/components/ui/scroll-area/ScrollBar.d.vue.ts +3 -1
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue.d.ts +3 -1
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +5 -3
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +5 -3
- package/dist/runtime/components/ui/select/SelectItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/select/SelectTrigger.d.vue.ts +3 -1
- package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +3 -1
- package/dist/runtime/components/ui/separator/Separator.d.vue.ts +4 -1
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +4 -1
- package/dist/runtime/components/ui/sheet/InnerSheetContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/sheet/InnerSheetContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/sidebar/Sidebar.d.vue.ts +8 -4
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +8 -4
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.d.vue.ts +3 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue.d.ts +3 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +8 -4
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +8 -4
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +5 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +5 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.d.vue.ts +4 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +4 -1
- package/dist/runtime/components/ui/sidebar/SidebarProvider.d.vue.ts +4 -1
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue.d.ts +4 -1
- package/dist/runtime/components/ui/storage/StorageActionBar.d.vue.ts +9 -1
- package/dist/runtime/components/ui/storage/StorageActionBar.vue.d.ts +9 -1
- package/dist/runtime/components/ui/storage/StorageDialogs.d.vue.ts +6 -3
- package/dist/runtime/components/ui/storage/StorageDialogs.vue.d.ts +6 -3
- package/dist/runtime/components/ui/storage/StorageEmptyState.d.vue.ts +4 -1
- package/dist/runtime/components/ui/storage/StorageEmptyState.vue.d.ts +4 -1
- package/dist/runtime/components/ui/storage/StorageGrid.d.vue.ts +6 -3
- package/dist/runtime/components/ui/storage/StorageGrid.vue.d.ts +6 -3
- package/dist/runtime/components/ui/storage/StorageSelectionBar.d.vue.ts +3 -1
- package/dist/runtime/components/ui/storage/StorageSelectionBar.vue.d.ts +3 -1
- package/dist/runtime/components/ui/storage/StorageTable.d.vue.ts +7 -3
- package/dist/runtime/components/ui/storage/StorageTable.vue.d.ts +7 -3
- package/dist/runtime/components/ui/storage/StorageUploadZone.d.vue.ts +6 -1
- package/dist/runtime/components/ui/storage/StorageUploadZone.vue.d.ts +6 -1
- package/dist/runtime/components/ui/table/TableEmpty.d.vue.ts +5 -3
- package/dist/runtime/components/ui/table/TableEmpty.vue.d.ts +5 -3
- package/dist/runtime/components/ui/timezone-select/TimezoneSelect.d.vue.ts +5 -1
- package/dist/runtime/components/ui/timezone-select/TimezoneSelect.vue.d.ts +5 -1
- package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +5 -1
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +5 -1
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +3 -1
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +3 -1
- package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/tooltip/TooltipProvider.d.vue.ts +3 -1
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue.d.ts +3 -1
- package/dist/runtime/composables/useAuth.d.ts +89 -89
- package/dist/runtime/middleware/auth.d.ts +1 -1
- package/dist/runtime/server/plugins/s3-storage.d.ts +1 -1
- package/package.json +34 -15
package/dist/module.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { BreadcrumbItemProps } from '../dist/runtime/composables/useBreadcrumbItems.js';
|
|
3
3
|
|
|
4
4
|
interface BreadcrumbsConfig {
|
|
@@ -56,8 +56,12 @@ interface ModuleOptions {
|
|
|
56
56
|
* Better Auth client configuration
|
|
57
57
|
*/
|
|
58
58
|
auth?: AuthClientOptions;
|
|
59
|
+
/**
|
|
60
|
+
Set to true when installed via npm package, dont used project.
|
|
61
|
+
*/
|
|
62
|
+
npm?: boolean;
|
|
59
63
|
}
|
|
60
|
-
declare module 'nuxt/schema' {
|
|
64
|
+
declare module '@nuxt/schema' {
|
|
61
65
|
interface AppConfig extends BreadcrumbsConfig, SetupConfig {
|
|
62
66
|
}
|
|
63
67
|
interface RuntimeConfig {
|
|
@@ -93,6 +97,7 @@ declare module 'nuxt/schema' {
|
|
|
93
97
|
}
|
|
94
98
|
interface PublicRuntimeConfig {
|
|
95
99
|
siteUrl: string;
|
|
100
|
+
isMobile: boolean;
|
|
96
101
|
debug: boolean;
|
|
97
102
|
imgproxy: {
|
|
98
103
|
storageUrl: string;
|
|
@@ -108,7 +113,7 @@ declare module 'nuxt/schema' {
|
|
|
108
113
|
};
|
|
109
114
|
}
|
|
110
115
|
}
|
|
111
|
-
declare const _default:
|
|
116
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
112
117
|
|
|
113
118
|
export { _default as default };
|
|
114
119
|
export type { AuthClientOptions, BreadcrumbsConfig, ModuleOptions, SetupConfig };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
2
|
import { defineNuxtModule, createResolver, addTypeTemplate, addServerScanDir, addRouteMiddleware } from '@nuxt/kit';
|
|
3
3
|
import { defu } from 'defu';
|
|
4
|
+
import { networkInterfaces } from 'node:os';
|
|
5
|
+
|
|
6
|
+
const isMobileBuild = process.env.MOBILE_BUILD === "true" || process.env.NUXT_PUBLIC_MOBILE_DEV === "true";
|
|
7
|
+
const isMobileDev = process.env.MOBILE_DEV === "true" || process.env.NUXT_PUBLIC_MOBILE_DEV === "true";
|
|
8
|
+
function getLocalIP() {
|
|
9
|
+
const nets = networkInterfaces();
|
|
10
|
+
for (const name of Object.keys(nets)) {
|
|
11
|
+
for (const net of nets[name] || []) {
|
|
12
|
+
if (net.family === "IPv4" && !net.internal) {
|
|
13
|
+
return net.address;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return "localhost";
|
|
18
|
+
}
|
|
19
|
+
const localIP = isMobileDev ? getLocalIP() : null;
|
|
20
|
+
const mobileBaseURL = isMobileDev ? `http://${localIP}:3000` : "https://e.sayfa.app";
|
|
4
21
|
|
|
5
22
|
const module$1 = defineNuxtModule({
|
|
6
23
|
meta: {
|
|
@@ -11,9 +28,9 @@ const module$1 = defineNuxtModule({
|
|
|
11
28
|
defaults: {
|
|
12
29
|
sentry: false,
|
|
13
30
|
auth: {
|
|
14
|
-
baseURL: void 0,
|
|
31
|
+
baseURL: isMobileBuild ? mobileBaseURL : void 0,
|
|
15
32
|
basePath: "/api/auth",
|
|
16
|
-
capacitor:
|
|
33
|
+
capacitor: isMobileBuild
|
|
17
34
|
}
|
|
18
35
|
},
|
|
19
36
|
moduleDependencies: (nuxt) => ({
|
|
@@ -26,18 +43,24 @@ const module$1 = defineNuxtModule({
|
|
|
26
43
|
"@pinia/nuxt": {},
|
|
27
44
|
"@vee-validate/nuxt": {},
|
|
28
45
|
"nitro-graphql/nuxt": {},
|
|
46
|
+
"pinia-plugin-persistedstate/nuxt": {},
|
|
47
|
+
"@nuxtjs/ionic": {},
|
|
48
|
+
"@nuxt/scripts": {},
|
|
29
49
|
"@sentry/nuxt/module": {
|
|
30
50
|
optional: nuxt.options.dev
|
|
31
51
|
}
|
|
32
52
|
}),
|
|
33
53
|
async setup(options, nuxt) {
|
|
34
54
|
const { resolve } = createResolver(import.meta.url);
|
|
55
|
+
nuxt.options.devtools = defu(nuxt.options.devtools, {
|
|
56
|
+
enabled: false
|
|
57
|
+
});
|
|
35
58
|
nuxt.options.runtimeConfig.public.abckit = {
|
|
36
59
|
sentry: nuxt.options.runtimeConfig.public.abckit?.sentry ?? options.sentry ?? false,
|
|
37
60
|
auth: {
|
|
38
|
-
baseURL: nuxt.options.runtimeConfig.public.abckit?.auth?.baseURL ?? options.auth?.baseURL,
|
|
61
|
+
baseURL: isMobileBuild ? mobileBaseURL : nuxt.options.runtimeConfig.public.abckit?.auth?.baseURL ?? options.auth?.baseURL,
|
|
39
62
|
basePath: nuxt.options.runtimeConfig.public.abckit?.auth?.basePath ?? options.auth?.basePath,
|
|
40
|
-
capacitor:
|
|
63
|
+
capacitor: isMobileBuild
|
|
41
64
|
}
|
|
42
65
|
};
|
|
43
66
|
nuxt.options.runtimeConfig.dragonfly = defu(nuxt.options.runtimeConfig.dragonfly, {
|
|
@@ -70,13 +93,42 @@ const module$1 = defineNuxtModule({
|
|
|
70
93
|
disk: false
|
|
71
94
|
});
|
|
72
95
|
nuxt.options.runtimeConfig.public = defu(nuxt.options.runtimeConfig.public, {
|
|
73
|
-
siteUrl: "http://localhost:3000",
|
|
96
|
+
siteUrl: isMobileBuild ? mobileBaseURL : "http://localhost:3000",
|
|
97
|
+
isMobile: isMobileBuild,
|
|
74
98
|
debug: nuxt.options.dev,
|
|
75
99
|
imgproxy: {
|
|
76
100
|
storageUrl: "",
|
|
77
101
|
cdnDomains: []
|
|
78
102
|
}
|
|
79
103
|
});
|
|
104
|
+
const siteUrl = nuxt.options.runtimeConfig.public.siteUrl;
|
|
105
|
+
const appName = nuxt.options.app.head?.title || "abckit";
|
|
106
|
+
nuxt.options.app.head = defu(nuxt.options.app.head, {
|
|
107
|
+
meta: [
|
|
108
|
+
{ charset: "utf-8" },
|
|
109
|
+
{ name: "viewport", content: "viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" },
|
|
110
|
+
{ name: "author", content: appName },
|
|
111
|
+
{ name: "robots", content: "index, follow" },
|
|
112
|
+
// Open Graph
|
|
113
|
+
{ property: "og:type", content: "website" },
|
|
114
|
+
{ property: "og:site_name", content: appName },
|
|
115
|
+
{ property: "og:image", content: `${siteUrl}/og-image.png` },
|
|
116
|
+
{ property: "og:url", content: siteUrl },
|
|
117
|
+
// Twitter
|
|
118
|
+
{ name: "twitter:card", content: "summary_large_image" },
|
|
119
|
+
{ name: "twitter:image", content: `${siteUrl}/og-image.png` },
|
|
120
|
+
// Apple
|
|
121
|
+
{ name: "apple-mobile-web-app-title", content: appName }
|
|
122
|
+
],
|
|
123
|
+
link: [
|
|
124
|
+
{ rel: "icon", type: "image/png", href: "/favicon-96x96.png", sizes: "96x96" },
|
|
125
|
+
{ rel: "icon", type: "image/svg+xml", href: "/favicon.svg" },
|
|
126
|
+
{ rel: "shortcut icon", href: "/favicon.ico" },
|
|
127
|
+
{ rel: "apple-touch-icon", sizes: "180x180", href: "/apple-touch-icon.png" },
|
|
128
|
+
// Manifest only for web, not needed in native apps
|
|
129
|
+
...isMobileBuild ? [] : [{ rel: "manifest", href: "/site.webmanifest" }]
|
|
130
|
+
]
|
|
131
|
+
});
|
|
80
132
|
addTypeTemplate({
|
|
81
133
|
filename: "types/nuxt-shared-h3.d.ts",
|
|
82
134
|
getContents: () => `
|
|
@@ -183,6 +235,19 @@ export {}
|
|
|
183
235
|
},
|
|
184
236
|
scaffold: false
|
|
185
237
|
});
|
|
238
|
+
nuxt.options.ionic = defu(nuxt.options.ionic, {
|
|
239
|
+
integrations: {
|
|
240
|
+
icons: false
|
|
241
|
+
},
|
|
242
|
+
css: {
|
|
243
|
+
basic: false,
|
|
244
|
+
// Tailwind ile çakışan normalize/typography kapalı
|
|
245
|
+
core: true,
|
|
246
|
+
// IonPage, IonHeader stilleri açık
|
|
247
|
+
utilities: false
|
|
248
|
+
// ion-padding vs. kapalı
|
|
249
|
+
}
|
|
250
|
+
});
|
|
186
251
|
nuxt.options.nitro.publicAssets = nuxt.options.nitro.publicAssets || [];
|
|
187
252
|
nuxt.options.nitro.publicAssets.push({
|
|
188
253
|
dir: resolve("./runtime/public"),
|
|
@@ -211,6 +276,9 @@ export {}
|
|
|
211
276
|
nuxt.options.alias["abckit/utils"] = resolve("./runtime/utils");
|
|
212
277
|
nuxt.options.alias["abckit/types/client"] = resolve("./runtime/types/nitro-graphql-client");
|
|
213
278
|
nuxt.options.alias["abckit/shared"] = resolve("./runtime/shared");
|
|
279
|
+
nuxt.options.vite.define = defu(nuxt.options.vite.define, {
|
|
280
|
+
"import.meta.env.VITE_MOBILE_BUILD": JSON.stringify(isMobileBuild ? "true" : "false")
|
|
281
|
+
});
|
|
214
282
|
nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
|
|
215
283
|
nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude || [];
|
|
216
284
|
const excludeSet = new Set(nuxt.options.vite.optimizeDeps.exclude);
|
|
@@ -228,26 +296,57 @@ export {}
|
|
|
228
296
|
excludeSet.add("tailwind-merge");
|
|
229
297
|
excludeSet.add("@sindresorhus/slugify");
|
|
230
298
|
excludeSet.add("better-auth");
|
|
299
|
+
excludeSet.add("leaflet");
|
|
300
|
+
excludeSet.add("@capgo/capacitor-social-login");
|
|
301
|
+
excludeSet.add("ionicons/icons");
|
|
302
|
+
excludeSet.add("@ionic/vue");
|
|
303
|
+
excludeSet.add("@capacitor/core");
|
|
304
|
+
excludeSet.add("@capacitor/status-bar");
|
|
305
|
+
excludeSet.add("@capacitor/splash-screen");
|
|
306
|
+
excludeSet.add("@capacitor/preferences");
|
|
307
|
+
excludeSet.add("@capacitor/geolocation");
|
|
308
|
+
excludeSet.add("@capacitor/network");
|
|
309
|
+
excludeSet.add("@capacitor/push-notifications");
|
|
310
|
+
excludeSet.add("@capacitor/device");
|
|
311
|
+
excludeSet.add("capacitor-native-settings");
|
|
312
|
+
excludeSet.add("@capacitor/haptics");
|
|
313
|
+
excludeSet.add("@unovis/vue");
|
|
231
314
|
nuxt.options.vite.optimizeDeps.exclude = Array.from(excludeSet);
|
|
232
315
|
nuxt.options.typescript = defu(nuxt.options.typescript, {
|
|
233
316
|
tsConfig: {
|
|
234
317
|
compilerOptions: {
|
|
235
|
-
allowArbitraryExtensions: true
|
|
318
|
+
allowArbitraryExtensions: true,
|
|
319
|
+
types: ["@pinia/colada-plugin-auto-refetch"]
|
|
236
320
|
}
|
|
237
321
|
}
|
|
238
322
|
});
|
|
239
|
-
nuxt.options.colorMode = {
|
|
323
|
+
nuxt.options.colorMode = defu(nuxt.options.colorMode, {
|
|
240
324
|
classSuffix: "",
|
|
241
325
|
fallback: "light",
|
|
242
|
-
storageKey: "
|
|
243
|
-
preference: "light"
|
|
244
|
-
|
|
245
|
-
};
|
|
326
|
+
storageKey: "color-mode",
|
|
327
|
+
preference: "light"
|
|
328
|
+
});
|
|
246
329
|
addServerScanDir(resolve("./runtime/server"));
|
|
247
330
|
addRouteMiddleware({
|
|
248
331
|
name: "auth",
|
|
249
332
|
path: resolve("./runtime/middleware/auth")
|
|
250
333
|
});
|
|
334
|
+
nuxt.options.routeRules = nuxt.options.routeRules || {};
|
|
335
|
+
nuxt.options.routeRules["/**"] = defu(nuxt.options.routeRules["/**"] || {}, {
|
|
336
|
+
ssr: false
|
|
337
|
+
});
|
|
338
|
+
nuxt.options.routeRules["/"] = defu(nuxt.options.routeRules["/"] || {}, {
|
|
339
|
+
ssr: true
|
|
340
|
+
});
|
|
341
|
+
if (nuxt.options.abckit.npm) {
|
|
342
|
+
nuxt.options.typescript.tsConfig.compilerOptions ??= {};
|
|
343
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths ??= {};
|
|
344
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/components"] = ["./node_modules/abckit/runtime/components/ui"];
|
|
345
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/composables"] = ["./node_modules/abckit/runtime/composables"];
|
|
346
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/utils"] = ["./node_modules/abckit/runtime/utils"];
|
|
347
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/shadcn"] = ["./node_modules/abckit/runtime/components/ui"];
|
|
348
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/lib"] = ["./node_modules/abckit/runtime/utils"];
|
|
349
|
+
}
|
|
251
350
|
}
|
|
252
351
|
});
|
|
253
352
|
|
|
@@ -6,6 +6,11 @@ interface Props {
|
|
|
6
6
|
fallback?: string;
|
|
7
7
|
size?: ImageSize;
|
|
8
8
|
}
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
size: ImageSize;
|
|
11
|
+
class: string;
|
|
12
|
+
alt: string;
|
|
13
|
+
fallback: string;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
15
|
declare const _default: typeof __VLS_export;
|
|
11
16
|
export default _default;
|
|
@@ -6,6 +6,11 @@ interface Props {
|
|
|
6
6
|
fallback?: string;
|
|
7
7
|
size?: ImageSize;
|
|
8
8
|
}
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
size: ImageSize;
|
|
11
|
+
class: string;
|
|
12
|
+
alt: string;
|
|
13
|
+
fallback: string;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
15
|
declare const _default: typeof __VLS_export;
|
|
11
16
|
export default _default;
|
|
@@ -3,9 +3,9 @@ import type { HTMLAttributes } from "vue";
|
|
|
3
3
|
type __VLS_Props = AlertDialogContentProps & {
|
|
4
4
|
class?: HTMLAttributes["class"];
|
|
5
5
|
};
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_19: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
@@ -3,9 +3,9 @@ import type { HTMLAttributes } from "vue";
|
|
|
3
3
|
type __VLS_Props = AlertDialogContentProps & {
|
|
4
4
|
class?: HTMLAttributes["class"];
|
|
5
5
|
};
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_19: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
@@ -2,7 +2,7 @@ import type { FormContext, GenericObject } from 'vee-validate';
|
|
|
2
2
|
import type { z } from 'zod';
|
|
3
3
|
import type { Config, ConfigItem, Dependency, Shape } from './interface.js';
|
|
4
4
|
import { type ZodObjectOrWrapped } from './utils.js';
|
|
5
|
-
declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
5
|
+
declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<{
|
|
7
7
|
schema: T;
|
|
8
8
|
form?: FormContext<GenericObject>;
|
|
@@ -10,19 +10,19 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
|
|
|
10
10
|
dependencies?: Dependency<z.infer<T>>[];
|
|
11
11
|
initialValues?: Partial<z.infer<T>>;
|
|
12
12
|
} & {
|
|
13
|
-
onSubmit?: ((event: z.
|
|
13
|
+
onSubmit?: ((event: z.TypeOf<T>) => any) | undefined;
|
|
14
14
|
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
16
16
|
} ? P : {});
|
|
17
17
|
expose: (exposed: {}) => void;
|
|
18
18
|
attrs: any;
|
|
19
|
-
slots: { [K in NonNullable<keyof z.
|
|
19
|
+
slots: { [K in NonNullable<keyof z.TypeOf<T>>]?: ((props: {
|
|
20
20
|
shape: { [key in keyof T]: Shape; }[keyof T];
|
|
21
21
|
fieldName: string;
|
|
22
22
|
config: ConfigItem;
|
|
23
23
|
}) => any) | undefined; } & {
|
|
24
24
|
customAutoForm?: (props: {
|
|
25
|
-
fields: { [key in keyof z.
|
|
25
|
+
fields: { [key in keyof z.TypeOf<T>]: {
|
|
26
26
|
shape: Shape;
|
|
27
27
|
fieldName: string;
|
|
28
28
|
config: ConfigItem;
|
|
@@ -33,12 +33,14 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
|
|
|
33
33
|
shapes: { [key in keyof T]: Shape; };
|
|
34
34
|
}) => any;
|
|
35
35
|
};
|
|
36
|
-
emit: (evt: "submit", event: z.
|
|
36
|
+
emit: (evt: "submit", event: z.TypeOf<T>) => void;
|
|
37
37
|
}>) => import("vue").VNode & {
|
|
38
38
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
39
|
};
|
|
40
40
|
declare const _default: typeof __VLS_export;
|
|
41
41
|
export default _default;
|
|
42
|
-
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} : {
|
|
43
45
|
[K in keyof T as K]: T[K];
|
|
44
|
-
} & {};
|
|
46
|
+
}) & {};
|
|
@@ -2,7 +2,7 @@ import type { FormContext, GenericObject } from 'vee-validate';
|
|
|
2
2
|
import type { z } from 'zod';
|
|
3
3
|
import type { Config, ConfigItem, Dependency, Shape } from './interface.js';
|
|
4
4
|
import { type ZodObjectOrWrapped } from './utils.js';
|
|
5
|
-
declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
5
|
+
declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<{
|
|
7
7
|
schema: T;
|
|
8
8
|
form?: FormContext<GenericObject>;
|
|
@@ -10,19 +10,19 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
|
|
|
10
10
|
dependencies?: Dependency<z.infer<T>>[];
|
|
11
11
|
initialValues?: Partial<z.infer<T>>;
|
|
12
12
|
} & {
|
|
13
|
-
onSubmit?: ((event: z.
|
|
13
|
+
onSubmit?: ((event: z.TypeOf<T>) => any) | undefined;
|
|
14
14
|
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
16
16
|
} ? P : {});
|
|
17
17
|
expose: (exposed: {}) => void;
|
|
18
18
|
attrs: any;
|
|
19
|
-
slots: { [K in NonNullable<keyof z.
|
|
19
|
+
slots: { [K in NonNullable<keyof z.TypeOf<T>>]?: ((props: {
|
|
20
20
|
shape: { [key in keyof T]: Shape; }[keyof T];
|
|
21
21
|
fieldName: string;
|
|
22
22
|
config: ConfigItem;
|
|
23
23
|
}) => any) | undefined; } & {
|
|
24
24
|
customAutoForm?: (props: {
|
|
25
|
-
fields: { [key in keyof z.
|
|
25
|
+
fields: { [key in keyof z.TypeOf<T>]: {
|
|
26
26
|
shape: Shape;
|
|
27
27
|
fieldName: string;
|
|
28
28
|
config: ConfigItem;
|
|
@@ -33,12 +33,14 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
|
|
|
33
33
|
shapes: { [key in keyof T]: Shape; };
|
|
34
34
|
}) => any;
|
|
35
35
|
};
|
|
36
|
-
emit: (evt: "submit", event: z.
|
|
36
|
+
emit: (evt: "submit", event: z.TypeOf<T>) => void;
|
|
37
37
|
}>) => import("vue").VNode & {
|
|
38
38
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
39
|
};
|
|
40
40
|
declare const _default: typeof __VLS_export;
|
|
41
41
|
export default _default;
|
|
42
|
-
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} : {
|
|
43
45
|
[K in keyof T as K]: T[K];
|
|
44
|
-
} & {};
|
|
46
|
+
}) & {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ZodAny } from 'zod';
|
|
2
2
|
import type { Config, ConfigItem, Shape } from './interface.js';
|
|
3
|
-
declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
3
|
+
declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<{
|
|
5
5
|
fieldName: string;
|
|
6
6
|
shape: Shape;
|
|
@@ -26,6 +26,8 @@ declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<
|
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
29
|
-
type __VLS_PrettifyLocal<T> = {
|
|
29
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} : {
|
|
30
32
|
[K in keyof T as K]: T[K];
|
|
31
|
-
} & {};
|
|
33
|
+
}) & {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ZodAny } from 'zod';
|
|
2
2
|
import type { Config, ConfigItem, Shape } from './interface.js';
|
|
3
|
-
declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
3
|
+
declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<{
|
|
5
5
|
fieldName: string;
|
|
6
6
|
shape: Shape;
|
|
@@ -26,6 +26,8 @@ declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<
|
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
29
|
-
type __VLS_PrettifyLocal<T> = {
|
|
29
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} : {
|
|
30
32
|
[K in keyof T as K]: T[K];
|
|
31
|
-
} & {};
|
|
33
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Config } from './interface.js';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
declare const __VLS_export: <T extends z.ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<{
|
|
5
|
+
fieldName: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
config?: Config<T>;
|
|
8
|
+
schema?: z.ZodArray<T>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: import("vue").DefineProps<import("@vue/shared").LooseRequired<{
|
|
17
|
+
fieldName: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
config?: Config<T>;
|
|
20
|
+
schema?: z.ZodArray<T>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}>, "required" | "disabled" | ([Config<T> | undefined] extends [boolean | undefined] ? "config" : never)>) => any;
|
|
23
|
+
};
|
|
24
|
+
emit: {};
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Config } from './interface.js';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
declare const __VLS_export: <T extends z.ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<{
|
|
5
|
+
fieldName: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
config?: Config<T>;
|
|
8
|
+
schema?: z.ZodArray<T>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: import("vue").DefineProps<import("@vue/shared").LooseRequired<{
|
|
17
|
+
fieldName: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
config?: Config<T>;
|
|
20
|
+
schema?: z.ZodArray<T>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}>, "required" | "disabled" | ([Config<T> | undefined] extends [boolean | undefined] ? "config" : never)>) => any;
|
|
23
|
+
};
|
|
24
|
+
emit: {};
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare var __VLS_20: {
|
|
3
|
+
field: import("vee-validate").FieldBindingObject<any>;
|
|
4
|
+
componentField: import("vee-validate").ComponentFieldBindingObject<any>;
|
|
5
|
+
value: any;
|
|
6
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
7
|
+
errors: string[];
|
|
8
|
+
errorMessage: string | undefined;
|
|
9
|
+
handleInput: import("vee-validate").FieldContext["handleChange"];
|
|
10
|
+
validate: import("vee-validate").FieldValidator<unknown>;
|
|
11
|
+
resetField: (state?: Partial<import("vee-validate").FieldState<unknown>> | undefined) => void;
|
|
12
|
+
handleReset: () => void;
|
|
13
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
14
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
15
|
+
setTouched: (isTouched: boolean) => void;
|
|
16
|
+
setErrors: (message: string | string[]) => void;
|
|
17
|
+
setValue: (value: unknown, shouldValidate?: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_20) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare var __VLS_20: {
|
|
3
|
+
field: import("vee-validate").FieldBindingObject<any>;
|
|
4
|
+
componentField: import("vee-validate").ComponentFieldBindingObject<any>;
|
|
5
|
+
value: any;
|
|
6
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
7
|
+
errors: string[];
|
|
8
|
+
errorMessage: string | undefined;
|
|
9
|
+
handleInput: import("vee-validate").FieldContext["handleChange"];
|
|
10
|
+
validate: import("vee-validate").FieldValidator<unknown>;
|
|
11
|
+
resetField: (state?: Partial<import("vee-validate").FieldState<unknown>> | undefined) => void;
|
|
12
|
+
handleReset: () => void;
|
|
13
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
14
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
15
|
+
setTouched: (isTouched: boolean) => void;
|
|
16
|
+
setErrors: (message: string | string[]) => void;
|
|
17
|
+
setValue: (value: unknown, shouldValidate?: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_20) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare var __VLS_26: {
|
|
3
|
+
field: import("vee-validate").FieldBindingObject<any>;
|
|
4
|
+
componentField: import("vee-validate").ComponentFieldBindingObject<any>;
|
|
5
|
+
value: any;
|
|
6
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
7
|
+
errors: string[];
|
|
8
|
+
errorMessage: string | undefined;
|
|
9
|
+
handleInput: import("vee-validate").FieldContext["handleChange"];
|
|
10
|
+
validate: import("vee-validate").FieldValidator<unknown>;
|
|
11
|
+
resetField: (state?: Partial<import("vee-validate").FieldState<unknown>> | undefined) => void;
|
|
12
|
+
handleReset: () => void;
|
|
13
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
14
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
15
|
+
setTouched: (isTouched: boolean) => void;
|
|
16
|
+
setErrors: (message: string | string[]) => void;
|
|
17
|
+
setValue: (value: unknown, shouldValidate?: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_26) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare var __VLS_26: {
|
|
3
|
+
field: import("vee-validate").FieldBindingObject<any>;
|
|
4
|
+
componentField: import("vee-validate").ComponentFieldBindingObject<any>;
|
|
5
|
+
value: any;
|
|
6
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
7
|
+
errors: string[];
|
|
8
|
+
errorMessage: string | undefined;
|
|
9
|
+
handleInput: import("vee-validate").FieldContext["handleChange"];
|
|
10
|
+
validate: import("vee-validate").FieldValidator<unknown>;
|
|
11
|
+
resetField: (state?: Partial<import("vee-validate").FieldState<unknown>> | undefined) => void;
|
|
12
|
+
handleReset: () => void;
|
|
13
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
14
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
15
|
+
setTouched: (isTouched: boolean) => void;
|
|
16
|
+
setErrors: (message: string | string[]) => void;
|
|
17
|
+
setValue: (value: unknown, shouldValidate?: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_26) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|