@frigear-nu/ui 0.0.0-stage → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +5 -2
  2. package/dist/module.d.mts +5 -0
  3. package/dist/module.json +12 -0
  4. package/dist/module.mjs +52 -0
  5. package/dist/runtime/components/Admin/AdminPageHeader.d.vue.ts +21 -0
  6. package/dist/runtime/components/Admin/AdminPageHeader.vue +45 -0
  7. package/dist/runtime/components/Admin/AdminPageHeader.vue.d.ts +21 -0
  8. package/dist/runtime/components/App/AppPageHeader.d.vue.ts +23 -0
  9. package/dist/runtime/components/App/AppPageHeader.vue +58 -0
  10. package/dist/runtime/components/App/AppPageHeader.vue.d.ts +23 -0
  11. package/dist/runtime/components/ConfirmDialog.d.vue.ts +15 -0
  12. package/dist/runtime/components/ConfirmDialog.vue +32 -0
  13. package/dist/runtime/components/ConfirmDialog.vue.d.ts +15 -0
  14. package/dist/runtime/components/global/CurrencyInput.d.vue.ts +10 -0
  15. package/dist/runtime/components/global/CurrencyInput.vue +39 -0
  16. package/dist/runtime/components/global/CurrencyInput.vue.d.ts +10 -0
  17. package/dist/runtime/components/global/DateInput.d.vue.ts +17 -0
  18. package/dist/runtime/components/global/DateInput.vue +62 -0
  19. package/dist/runtime/components/global/DateInput.vue.d.ts +17 -0
  20. package/dist/runtime/components/global/IconInput.d.vue.ts +19 -0
  21. package/dist/runtime/components/global/IconInput.vue +194 -0
  22. package/dist/runtime/components/global/IconInput.vue.d.ts +19 -0
  23. package/dist/runtime/components/global/IntervalInput.d.vue.ts +10 -0
  24. package/dist/runtime/components/global/IntervalInput.vue +51 -0
  25. package/dist/runtime/components/global/IntervalInput.vue.d.ts +10 -0
  26. package/dist/runtime/components/global/MonacoCodeEditor.d.vue.ts +20 -0
  27. package/dist/runtime/components/global/MonacoCodeEditor.vue +79 -0
  28. package/dist/runtime/components/global/MonacoCodeEditor.vue.d.ts +20 -0
  29. package/dist/runtime/components/global/MoneyInput.d.vue.ts +25 -0
  30. package/dist/runtime/components/global/MoneyInput.vue +65 -0
  31. package/dist/runtime/components/global/MoneyInput.vue.d.ts +25 -0
  32. package/dist/runtime/components/global/SwitchToggle.d.vue.ts +10 -0
  33. package/dist/runtime/components/global/SwitchToggle.vue +9 -0
  34. package/dist/runtime/components/global/SwitchToggle.vue.d.ts +10 -0
  35. package/dist/runtime/components/global/TagInput.d.vue.ts +20 -0
  36. package/dist/runtime/components/global/TagInput.vue +15 -0
  37. package/dist/runtime/components/global/TagInput.vue.d.ts +20 -0
  38. package/dist/runtime/components/global/UrlInput.d.vue.ts +12 -0
  39. package/dist/runtime/components/global/UrlInput.vue +28 -0
  40. package/dist/runtime/components/global/UrlInput.vue.d.ts +12 -0
  41. package/dist/runtime/composables/index.d.ts +1 -0
  42. package/dist/runtime/composables/index.js +1 -0
  43. package/dist/runtime/composables/useConfirmDialog.d.ts +6 -0
  44. package/dist/runtime/composables/useConfirmDialog.js +11 -0
  45. package/dist/runtime/i18n/lang/da.json +25 -0
  46. package/dist/runtime/i18n/lang/en.json +25 -0
  47. package/dist/runtime/utils/table.d.ts +11 -0
  48. package/dist/runtime/utils/table.js +23 -0
  49. package/dist/types.d.mts +7 -0
  50. package/package.json +72 -3
package/README.md CHANGED
@@ -1,3 +1,6 @@
1
- # Temporary Holding Version
1
+ # @frigear-nu/ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Shared UI components for Frigear Nuxt applications.
4
+
5
+
6
+ [Playground](./playground)
@@ -0,0 +1,5 @@
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+
3
+ declare const _default: _nuxt_schema.NuxtModule<_nuxt_schema.ModuleOptions, _nuxt_schema.ModuleOptions, false>;
4
+
5
+ export { _default as default };
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@frigear-nu/ui",
3
+ "configKey": "frigearUi",
4
+ "version": "0.0.1",
5
+ "compatibility": {
6
+ "nuxt": ">=4.0.0"
7
+ },
8
+ "builder": {
9
+ "@nuxt/module-builder": "1.0.3",
10
+ "unbuild": "unknown"
11
+ }
12
+ }
@@ -0,0 +1,52 @@
1
+ import { createResolver, defineNuxtModule, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
+
3
+ const defaultI18nConfig = (resolver) => {
4
+ const langDir = resolver.resolve("./runtime/i18n/lang");
5
+ return {
6
+ langDir,
7
+ locales: [
8
+ { code: "en", name: "English", files: [resolver.resolve("./runtime/i18n/lang/en.json")] },
9
+ { code: "da", name: "Dansk", files: [resolver.resolve("./runtime/i18n/lang/da.json")] }
10
+ ]
11
+ };
12
+ };
13
+
14
+ const resolver = createResolver(import.meta.url);
15
+ const module$1 = defineNuxtModule({
16
+ meta: {
17
+ name: "@frigear-nu/ui",
18
+ configKey: "frigearUi",
19
+ version: "0.0.1",
20
+ compatibility: {
21
+ nuxt: ">=4.0.0"
22
+ }
23
+ },
24
+ moduleDependencies: {
25
+ "@nuxt/ui": {},
26
+ "nuxt-monaco-editor": {},
27
+ "@nuxtjs/i18n": {
28
+ optional: true
29
+ }
30
+ },
31
+ setup(_options, _nuxt) {
32
+ addComponentsDir({
33
+ path: resolver.resolve("./runtime/components/global"),
34
+ global: true,
35
+ prefix: ""
36
+ });
37
+ addComponentsDir({
38
+ path: resolver.resolve("./runtime/components"),
39
+ prefix: "",
40
+ ignore: ["global/**"]
41
+ });
42
+ addImportsDir(resolver.resolve("./runtime/composables"));
43
+ addImportsDir(resolver.resolve("./runtime/utils"));
44
+ },
45
+ hooks: {
46
+ "i18n:registerModule": (register) => {
47
+ register(defaultI18nConfig(resolver));
48
+ }
49
+ }
50
+ });
51
+
52
+ export { module$1 as default };
@@ -0,0 +1,21 @@
1
+ import type { ButtonProps, PageHeaderProps } from '@nuxt/ui';
2
+ type Props = PageHeaderProps & {
3
+ returnButton?: ButtonProps | false;
4
+ };
5
+ declare var __VLS_9: {}, __VLS_18: string, __VLS_19: {};
6
+ type __VLS_Slots = {} & {
7
+ [K in NonNullable<typeof __VLS_18>]?: (props: typeof __VLS_19) => any;
8
+ } & {
9
+ headline?: (props: typeof __VLS_9) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
+ returnButton: ButtonProps | false;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,45 @@
1
+ <script setup>
2
+ import { objectOmit } from "@vueuse/core";
3
+ defineProps({
4
+ as: { type: null, required: false },
5
+ headline: { type: String, required: false },
6
+ title: { type: String, required: false },
7
+ description: { type: String, required: false },
8
+ links: { type: Array, required: false },
9
+ class: { type: null, required: false },
10
+ ui: { type: Object, required: false },
11
+ returnButton: { type: [Object, Boolean], required: false, default: () => ({
12
+ label: "Admin",
13
+ to: "/admin",
14
+ icon: "i-lucide-arrow-left",
15
+ variant: "link"
16
+ }) }
17
+ });
18
+ const forwardedSlots = ["links", "description"];
19
+ </script>
20
+
21
+ <template>
22
+ <UPageHeader
23
+ v-bind="objectOmit($props, ['returnButton'])"
24
+ :ui="{ headline: 'flex-1 p-0' }"
25
+ >
26
+ <!-- Manually handled slot -->
27
+ <template #headline>
28
+ <slot name="headline">
29
+ <UButton
30
+ v-if="returnButton !== false && returnButton !== void 0"
31
+ class="p-0"
32
+ v-bind="{ variant: 'link', ...returnButton }"
33
+ />
34
+ </slot>
35
+ </template>
36
+
37
+ <template
38
+ v-for="slotName in forwardedSlots"
39
+ :key="slotName"
40
+ #[slotName]
41
+ >
42
+ <slot :name="slotName" />
43
+ </template>
44
+ </UPageHeader>
45
+ </template>
@@ -0,0 +1,21 @@
1
+ import type { ButtonProps, PageHeaderProps } from '@nuxt/ui';
2
+ type Props = PageHeaderProps & {
3
+ returnButton?: ButtonProps | false;
4
+ };
5
+ declare var __VLS_9: {}, __VLS_18: string, __VLS_19: {};
6
+ type __VLS_Slots = {} & {
7
+ [K in NonNullable<typeof __VLS_18>]?: (props: typeof __VLS_19) => any;
8
+ } & {
9
+ headline?: (props: typeof __VLS_9) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
+ returnButton: ButtonProps | false;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,23 @@
1
+ import type { ButtonProps, PageHeaderProps, BreadcrumbItem } from '@nuxt/ui';
2
+ type Props = PageHeaderProps & {
3
+ returnButton?: ButtonProps | false;
4
+ crumbs?: BreadcrumbItem[];
5
+ };
6
+ declare var __VLS_9: {}, __VLS_28: string, __VLS_29: {};
7
+ type __VLS_Slots = {} & {
8
+ [K in NonNullable<typeof __VLS_28>]?: (props: typeof __VLS_29) => any;
9
+ } & {
10
+ headline?: (props: typeof __VLS_9) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ returnButton: ButtonProps | false;
14
+ crumbs: BreadcrumbItem[];
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,58 @@
1
+ <script setup>
2
+ import { objectOmit } from "@vueuse/core";
3
+ import defu from "defu";
4
+ defineProps({
5
+ as: { type: null, required: false },
6
+ headline: { type: String, required: false },
7
+ title: { type: String, required: false },
8
+ description: { type: String, required: false },
9
+ links: { type: Array, required: false },
10
+ class: { type: null, required: false },
11
+ ui: { type: Object, required: false },
12
+ returnButton: { type: [Object, Boolean], required: false, default: () => ({
13
+ label: "Dashboard",
14
+ to: "/app",
15
+ icon: "i-lucide-arrow-left",
16
+ variant: "link"
17
+ }) },
18
+ crumbs: { type: Array, required: false, default: () => [] }
19
+ });
20
+ const forwardedSlots = ["links", "description"];
21
+ </script>
22
+
23
+ <template>
24
+ <UPageHeader
25
+ v-bind="objectOmit($props, ['returnButton'])"
26
+ :ui="{ headline: 'flex-1 p-0' }"
27
+ >
28
+ <!-- Manually handled slot -->
29
+ <template #headline>
30
+ <slot name="headline">
31
+ <div class="flex items-center gap-2">
32
+ <UButton
33
+ v-if="returnButton !== false && returnButton !== void 0"
34
+ class="p-0"
35
+ v-bind="defu(returnButton, { variant: 'link' })"
36
+ />
37
+ <UIcon
38
+ v-if="crumbs && crumbs.length > 0"
39
+ name="i-lucide-chevron-right"
40
+ />
41
+ <UBreadcrumb
42
+ v-if="crumbs && crumbs.length > 0"
43
+ :items="crumbs"
44
+ label-key="label"
45
+ />
46
+ </div>
47
+ </slot>
48
+ </template>
49
+
50
+ <template
51
+ v-for="slotName in forwardedSlots"
52
+ :key="slotName"
53
+ #[slotName]
54
+ >
55
+ <slot :name="slotName" />
56
+ </template>
57
+ </UPageHeader>
58
+ </template>
@@ -0,0 +1,23 @@
1
+ import type { ButtonProps, PageHeaderProps, BreadcrumbItem } from '@nuxt/ui';
2
+ type Props = PageHeaderProps & {
3
+ returnButton?: ButtonProps | false;
4
+ crumbs?: BreadcrumbItem[];
5
+ };
6
+ declare var __VLS_9: {}, __VLS_28: string, __VLS_29: {};
7
+ type __VLS_Slots = {} & {
8
+ [K in NonNullable<typeof __VLS_28>]?: (props: typeof __VLS_29) => any;
9
+ } & {
10
+ headline?: (props: typeof __VLS_9) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ returnButton: ButtonProps | false;
14
+ crumbs: BreadcrumbItem[];
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,15 @@
1
+ interface ConfirmDialogProps {
2
+ title?: string;
3
+ description?: string;
4
+ dismissible?: boolean;
5
+ confirmText?: string;
6
+ }
7
+ declare const __VLS_export: import("vue").DefineComponent<ConfirmDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ close: (value: boolean) => any;
9
+ }, string, import("vue").PublicProps, Readonly<ConfirmDialogProps> & Readonly<{
10
+ onClose?: ((value: boolean) => any) | undefined;
11
+ }>, {
12
+ dismissible: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,32 @@
1
+ <script setup>
2
+ defineProps({
3
+ title: { type: String, required: false },
4
+ description: { type: String, required: false },
5
+ dismissible: { type: Boolean, required: false, default: false },
6
+ confirmText: { type: String, required: false }
7
+ });
8
+ const emits = defineEmits(["close"]);
9
+ </script>
10
+
11
+ <template>
12
+ <UModal
13
+ :title="title"
14
+ :description="description"
15
+ :dismissible="dismissible"
16
+ :ui="{ footer: 'justify-end' }"
17
+ >
18
+ <template #footer>
19
+ <UButton
20
+ label="Cancel"
21
+ color="neutral"
22
+ variant="outline"
23
+ @click="emits('close', false)"
24
+ />
25
+ <UButton
26
+ :label="confirmText || 'Confirm'"
27
+ color="neutral"
28
+ @click="emits('close', true)"
29
+ />
30
+ </template>
31
+ </UModal>
32
+ </template>
@@ -0,0 +1,15 @@
1
+ interface ConfirmDialogProps {
2
+ title?: string;
3
+ description?: string;
4
+ dismissible?: boolean;
5
+ confirmText?: string;
6
+ }
7
+ declare const __VLS_export: import("vue").DefineComponent<ConfirmDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ close: (value: boolean) => any;
9
+ }, string, import("vue").PublicProps, Readonly<ConfirmDialogProps> & Readonly<{
10
+ onClose?: ((value: boolean) => any) | undefined;
11
+ }>, {
12
+ dismissible: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_ModelProps = {
2
+ modelValue?: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: string) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,39 @@
1
+ <script setup>
2
+ import { useCurrencies } from "~/store/queries/system";
3
+ const currencyCode = defineModel({ type: String, ...{ default: "EUR" } });
4
+ const { data: currencies, status } = useCurrencies();
5
+ const currency = computed(() => currencies.value?.find((c) => c.code === currencyCode.value));
6
+ function onOpen() {
7
+ }
8
+ </script>
9
+
10
+ <template>
11
+ <USelectMenu
12
+ v-model="currencyCode"
13
+ :items="currencies"
14
+ value-key="code"
15
+ :search-input="{
16
+ placeholder: 'Search currency...',
17
+ icon: 'i-lucide-search',
18
+ loading: status === 'pending'
19
+ }"
20
+ :filter-fields="['name', 'code', 'symbol']"
21
+ :content="{ align: 'start' }"
22
+ :ui="{
23
+ base: 'pe-8',
24
+ content: 'w-48',
25
+ placeholder: 'hidden',
26
+ trailingIcon: 'size-4'
27
+ }"
28
+ trailing-icon="i-lucide-chevrons-up-down"
29
+ @update:open="onOpen"
30
+ >
31
+ <span class="size-5 w-8 flex items-center text-md">
32
+ {{ currency?.code || "\u{1F4B0}" }}
33
+ </span>
34
+
35
+ <template #item-label="{ item }">
36
+ {{ item.code }} ({{ item.symbol }})
37
+ </template>
38
+ </USelectMenu>
39
+ </template>
@@ -0,0 +1,10 @@
1
+ type __VLS_ModelProps = {
2
+ modelValue?: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: string) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type ModelValue = Date | string | number | undefined;
2
+ type __VLS_Props = {
3
+ type?: 'date' | 'string';
4
+ };
5
+ type __VLS_ModelProps = {
6
+ modelValue?: ModelValue;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:modelValue": (value: ModelValue) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: ModelValue) => any) | undefined;
13
+ }>, {
14
+ type: "date" | "string";
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,62 @@
1
+ <script setup>
2
+ import { CalendarDate } from "@internationalized/date";
3
+ const props = defineProps({
4
+ type: { type: String, required: false, default: "date" }
5
+ });
6
+ const modelValue = defineModel({ type: null });
7
+ function toDate(v) {
8
+ if (v === void 0 || v === null || v === "") return void 0;
9
+ const d = v instanceof Date ? v : new Date(v);
10
+ return Number.isNaN(d.getTime()) ? void 0 : d;
11
+ }
12
+ function fromDate(d) {
13
+ if (d === void 0) return props.type === "string" ? "" : void 0;
14
+ return props.type === "string" ? d.toISOString() : d;
15
+ }
16
+ const dateValue = computed({
17
+ get() {
18
+ return toDate(modelValue.value);
19
+ },
20
+ set(value) {
21
+ modelValue.value = fromDate(value);
22
+ }
23
+ });
24
+ function toCalendarDate(d) {
25
+ return new CalendarDate(d.getFullYear(), d.getMonth() + 1, d.getDate());
26
+ }
27
+ function fromCalendarDate(cd) {
28
+ return cd.toDate("UTC");
29
+ }
30
+ const calendarValue = computed({
31
+ get() {
32
+ const d = dateValue.value;
33
+ return d ? toCalendarDate(d) : void 0;
34
+ },
35
+ set(value) {
36
+ dateValue.value = value ? fromCalendarDate(value) : void 0;
37
+ }
38
+ });
39
+ </script>
40
+
41
+ <template>
42
+ <UInputDate v-model="calendarValue">
43
+ <template #trailing>
44
+ <UPopover>
45
+ <UButton
46
+ color="neutral"
47
+ variant="link"
48
+ size="sm"
49
+ icon="i-lucide-calendar"
50
+ aria-label="Select a date"
51
+ class="px-0"
52
+ />
53
+ <template #content>
54
+ <UCalendar
55
+ v-model="calendarValue"
56
+ class="p-2"
57
+ />
58
+ </template>
59
+ </UPopover>
60
+ </template>
61
+ </UInputDate>
62
+ </template>
@@ -0,0 +1,17 @@
1
+ type ModelValue = Date | string | number | undefined;
2
+ type __VLS_Props = {
3
+ type?: 'date' | 'string';
4
+ };
5
+ type __VLS_ModelProps = {
6
+ modelValue?: ModelValue;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:modelValue": (value: ModelValue) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: ModelValue) => any) | undefined;
13
+ }>, {
14
+ type: "date" | "string";
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,19 @@
1
+ type FormItem = {
2
+ options?: string[];
3
+ };
4
+ type __VLS_Props = {
5
+ formItem?: FormItem;
6
+ };
7
+ type __VLS_ModelProps = {
8
+ modelValue?: string;
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: string) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
+ }>, {
16
+ formItem: FormItem;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;