@merkaly/nuxt 0.1.18 → 0.1.19

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/dist/module.json +1 -1
  2. package/dist/runtime/components/dropdown/DropdownIcon.d.vue.ts +51 -0
  3. package/dist/runtime/components/dropdown/DropdownIcon.vue +17 -0
  4. package/dist/runtime/components/dropdown/DropdownIcon.vue.d.ts +51 -0
  5. package/dist/runtime/components/format/FormatAddress.d.vue.ts +69 -0
  6. package/dist/runtime/components/format/FormatAddress.vue +24 -0
  7. package/dist/runtime/components/format/FormatAddress.vue.d.ts +69 -0
  8. package/dist/runtime/components/format/FormatDate.d.vue.ts +25 -0
  9. package/dist/runtime/components/format/FormatDate.vue +24 -0
  10. package/dist/runtime/components/format/FormatDate.vue.d.ts +25 -0
  11. package/dist/runtime/components/format/FormatIcon.d.vue.ts +1 -1
  12. package/dist/runtime/components/format/FormatIcon.vue +1 -1
  13. package/dist/runtime/components/format/FormatIcon.vue.d.ts +1 -1
  14. package/dist/runtime/components/format/FormatMoney.d.vue.ts +1 -1
  15. package/dist/runtime/components/format/FormatMoney.vue +1 -1
  16. package/dist/runtime/components/format/FormatMoney.vue.d.ts +1 -1
  17. package/dist/runtime/components/format/FormatText.d.vue.ts +50 -0
  18. package/dist/runtime/components/format/FormatText.vue +48 -0
  19. package/dist/runtime/components/format/FormatText.vue.d.ts +50 -0
  20. package/dist/runtime/components/input/InputAddress.d.vue.ts +93 -0
  21. package/dist/runtime/components/input/InputAddress.vue +70 -0
  22. package/dist/runtime/components/input/InputAddress.vue.d.ts +93 -0
  23. package/dist/runtime/components/input/InputDateRange.d.vue.ts +41 -0
  24. package/dist/runtime/components/input/InputDateRange.vue +102 -0
  25. package/dist/runtime/components/input/InputDateRange.vue.d.ts +41 -0
  26. package/dist/runtime/components/input/InputDropzone.d.vue.ts +64 -0
  27. package/dist/runtime/components/input/InputDropzone.vue +80 -0
  28. package/dist/runtime/components/input/InputDropzone.vue.d.ts +64 -0
  29. package/dist/runtime/components/input/InputMoney.d.vue.ts +31 -32
  30. package/dist/runtime/components/input/InputMoney.vue +17 -14
  31. package/dist/runtime/components/input/InputMoney.vue.d.ts +31 -32
  32. package/dist/runtime/components/input/InputPassword.d.vue.ts +3 -0
  33. package/dist/runtime/components/input/InputPassword.vue +7 -0
  34. package/dist/runtime/components/input/InputPassword.vue.d.ts +3 -0
  35. package/dist/runtime/components/input/InputSearch.d.vue.ts +3 -0
  36. package/dist/runtime/components/input/InputSearch.vue +11 -0
  37. package/dist/runtime/components/input/InputSearch.vue.d.ts +3 -0
  38. package/dist/runtime/components/input/InputSelect.d.vue.ts +98 -0
  39. package/dist/runtime/components/input/InputSelect.vue +133 -0
  40. package/dist/runtime/components/input/InputSelect.vue.d.ts +98 -0
  41. package/dist/runtime/components/table/TableDatagrid.d.vue.ts +59 -0
  42. package/dist/runtime/components/table/TableDatagrid.vue +253 -0
  43. package/dist/runtime/components/table/TableDatagrid.vue.d.ts +59 -0
  44. package/dist/runtime/composables/useApi.js +2 -1
  45. package/dist/runtime/composables/useAuth.js +2 -1
  46. package/dist/runtime/composables/useDatagrid.d.ts +32 -0
  47. package/dist/runtime/composables/useDatagrid.js +26 -0
  48. package/dist/runtime/composables/useNavigation.d.ts +18 -0
  49. package/dist/runtime/composables/useNavigation.js +46 -0
  50. package/package.json +8 -5
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.1.18",
7
+ "version": "0.1.19",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -0,0 +1,51 @@
1
+ import type { BaseButtonVariant, BaseSize } from 'bootstrap-vue-next';
2
+ declare var __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_8) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ size: {
8
+ type: PropType<keyof BaseSize>;
9
+ default: () => string;
10
+ };
11
+ text: {
12
+ type: StringConstructor;
13
+ default: () => string;
14
+ };
15
+ variant: {
16
+ type: PropType<keyof BaseButtonVariant>;
17
+ };
18
+ solid: {
19
+ type: BooleanConstructor;
20
+ default: () => boolean;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ size: {
24
+ type: PropType<keyof BaseSize>;
25
+ default: () => string;
26
+ };
27
+ text: {
28
+ type: StringConstructor;
29
+ default: () => string;
30
+ };
31
+ variant: {
32
+ type: PropType<keyof BaseButtonVariant>;
33
+ };
34
+ solid: {
35
+ type: BooleanConstructor;
36
+ default: () => boolean;
37
+ };
38
+ }>> & Readonly<{}>, {
39
+ text: string;
40
+ size: any;
41
+ variant: any;
42
+ solid: boolean;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,17 @@
1
+ <script setup>
2
+ import { computed, useSlots } from "vue";
3
+ const props = defineProps({
4
+ size: { type: String, default: () => "sm" },
5
+ text: { type: String, default: () => "Actions" },
6
+ variant: { type: String },
7
+ solid: { type: Boolean, default: () => false }
8
+ });
9
+ const slots = useSlots();
10
+ const noDefault = computed(() => !slots.default);
11
+ </script>
12
+
13
+ <template>
14
+ <BDropdown :disabled="noDefault" :size="props.size" :text="props.text" :variant="props.variant" auto-close="outside">
15
+ <slot />
16
+ </BDropdown>
17
+ </template>
@@ -0,0 +1,51 @@
1
+ import type { BaseButtonVariant, BaseSize } from 'bootstrap-vue-next';
2
+ declare var __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_8) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ size: {
8
+ type: PropType<keyof BaseSize>;
9
+ default: () => string;
10
+ };
11
+ text: {
12
+ type: StringConstructor;
13
+ default: () => string;
14
+ };
15
+ variant: {
16
+ type: PropType<keyof BaseButtonVariant>;
17
+ };
18
+ solid: {
19
+ type: BooleanConstructor;
20
+ default: () => boolean;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ size: {
24
+ type: PropType<keyof BaseSize>;
25
+ default: () => string;
26
+ };
27
+ text: {
28
+ type: StringConstructor;
29
+ default: () => string;
30
+ };
31
+ variant: {
32
+ type: PropType<keyof BaseButtonVariant>;
33
+ };
34
+ solid: {
35
+ type: BooleanConstructor;
36
+ default: () => boolean;
37
+ };
38
+ }>> & Readonly<{}>, {
39
+ text: string;
40
+ size: any;
41
+ variant: any;
42
+ solid: boolean;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,69 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ city: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ code: {
7
+ type: StringConstructor;
8
+ default: () => string;
9
+ };
10
+ country: {
11
+ type: StringConstructor;
12
+ default: () => string;
13
+ };
14
+ line1: {
15
+ type: StringConstructor;
16
+ default: () => string;
17
+ };
18
+ line2: {
19
+ type: StringConstructor;
20
+ default: () => string;
21
+ };
22
+ locality: {
23
+ type: StringConstructor;
24
+ default: () => string;
25
+ };
26
+ state: {
27
+ type: StringConstructor;
28
+ default: () => string;
29
+ };
30
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ city: {
32
+ type: StringConstructor;
33
+ default: () => string;
34
+ };
35
+ code: {
36
+ type: StringConstructor;
37
+ default: () => string;
38
+ };
39
+ country: {
40
+ type: StringConstructor;
41
+ default: () => string;
42
+ };
43
+ line1: {
44
+ type: StringConstructor;
45
+ default: () => string;
46
+ };
47
+ line2: {
48
+ type: StringConstructor;
49
+ default: () => string;
50
+ };
51
+ locality: {
52
+ type: StringConstructor;
53
+ default: () => string;
54
+ };
55
+ state: {
56
+ type: StringConstructor;
57
+ default: () => string;
58
+ };
59
+ }>> & Readonly<{}>, {
60
+ code: string;
61
+ city: string;
62
+ country: string;
63
+ line1: string;
64
+ line2: string;
65
+ locality: string;
66
+ state: string;
67
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
68
+ declare const _default: typeof __VLS_export;
69
+ export default _default;
@@ -0,0 +1,24 @@
1
+ <script setup>
2
+ import PostalAddress from "i18n-postal-address";
3
+ const props = defineProps({
4
+ city: { type: String, default: () => String() },
5
+ code: { type: String, default: () => String() },
6
+ country: { type: String, default: () => String() },
7
+ line1: { type: String, default: () => String() },
8
+ line2: { type: String, default: () => String() },
9
+ locality: { type: String, default: () => String() },
10
+ state: { type: String, default: () => String() }
11
+ });
12
+ const address = new PostalAddress();
13
+ address.setAddress1(props.line1).setAddress2(props.line2).setState(props.state).setRepublic(props.locality).setCity(props.city).setCountry(props.country).setPostalCode(props.code);
14
+ </script>
15
+
16
+ <template>
17
+ <address v-text="address.toString()" />
18
+ </template>
19
+
20
+ <style scoped>
21
+ address {
22
+ margin: 0;
23
+ }
24
+ </style>
@@ -0,0 +1,69 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ city: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ code: {
7
+ type: StringConstructor;
8
+ default: () => string;
9
+ };
10
+ country: {
11
+ type: StringConstructor;
12
+ default: () => string;
13
+ };
14
+ line1: {
15
+ type: StringConstructor;
16
+ default: () => string;
17
+ };
18
+ line2: {
19
+ type: StringConstructor;
20
+ default: () => string;
21
+ };
22
+ locality: {
23
+ type: StringConstructor;
24
+ default: () => string;
25
+ };
26
+ state: {
27
+ type: StringConstructor;
28
+ default: () => string;
29
+ };
30
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ city: {
32
+ type: StringConstructor;
33
+ default: () => string;
34
+ };
35
+ code: {
36
+ type: StringConstructor;
37
+ default: () => string;
38
+ };
39
+ country: {
40
+ type: StringConstructor;
41
+ default: () => string;
42
+ };
43
+ line1: {
44
+ type: StringConstructor;
45
+ default: () => string;
46
+ };
47
+ line2: {
48
+ type: StringConstructor;
49
+ default: () => string;
50
+ };
51
+ locality: {
52
+ type: StringConstructor;
53
+ default: () => string;
54
+ };
55
+ state: {
56
+ type: StringConstructor;
57
+ default: () => string;
58
+ };
59
+ }>> & Readonly<{}>, {
60
+ code: string;
61
+ city: string;
62
+ country: string;
63
+ line1: string;
64
+ line2: string;
65
+ locality: string;
66
+ state: string;
67
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
68
+ declare const _default: typeof __VLS_export;
69
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import type { PropType } from 'vue';
2
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ date: {
4
+ type: (StringConstructor | DateConstructor)[];
5
+ default: () => Date;
6
+ };
7
+ format: {
8
+ type: PropType<"short" | "relative">;
9
+ default: () => null;
10
+ };
11
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ date: {
13
+ type: (StringConstructor | DateConstructor)[];
14
+ default: () => Date;
15
+ };
16
+ format: {
17
+ type: PropType<"short" | "relative">;
18
+ default: () => null;
19
+ };
20
+ }>> & Readonly<{}>, {
21
+ date: string | Date;
22
+ format: "short" | "relative";
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,24 @@
1
+ <script setup>
2
+ import { computed } from "vue";
3
+ const props = defineProps({
4
+ date: { type: [String, Date], default: () => /* @__PURE__ */ new Date() },
5
+ format: { type: String, default: () => null }
6
+ });
7
+ const bindAttrs = computed(() => {
8
+ const attrs = {
9
+ day: "numeric",
10
+ month: "short",
11
+ relative: props.format === "relative" || void 0,
12
+ year: "numeric"
13
+ };
14
+ if (props.format !== "short") {
15
+ attrs["hour"] = "numeric";
16
+ attrs["minute"] = "numeric";
17
+ }
18
+ return attrs;
19
+ });
20
+ </script>
21
+
22
+ <template>
23
+ <NuxtTime :datetime="props.date" class="small" v-bind="bindAttrs" />
24
+ </template>
@@ -0,0 +1,25 @@
1
+ import type { PropType } from 'vue';
2
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ date: {
4
+ type: (StringConstructor | DateConstructor)[];
5
+ default: () => Date;
6
+ };
7
+ format: {
8
+ type: PropType<"short" | "relative">;
9
+ default: () => null;
10
+ };
11
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ date: {
13
+ type: (StringConstructor | DateConstructor)[];
14
+ default: () => Date;
15
+ };
16
+ format: {
17
+ type: PropType<"short" | "relative">;
18
+ default: () => null;
19
+ };
20
+ }>> & Readonly<{}>, {
21
+ date: string | Date;
22
+ format: "short" | "relative";
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { ColorVariant } from 'bootstrap-vue-next';
2
- import type { PropType } from '#imports';
2
+ import type { PropType } from 'vue';
3
3
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  mode: {
5
5
  type: StringConstructor;
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { computed } from "#imports";
2
+ import { computed } from "vue";
3
3
  const props = defineProps({
4
4
  mode: { type: String, default: "duotone" },
5
5
  name: { type: String, required: true },
@@ -1,5 +1,5 @@
1
1
  import type { ColorVariant } from 'bootstrap-vue-next';
2
- import type { PropType } from '#imports';
2
+ import type { PropType } from 'vue';
3
3
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  mode: {
5
5
  type: StringConstructor;
@@ -1,4 +1,4 @@
1
- import type { PropType } from '#imports';
1
+ import type { PropType } from 'vue';
2
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  base: {
4
4
  type: NumberConstructor;
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { computed } from "#imports";
2
+ import { computed } from "vue";
3
3
  const props = defineProps({
4
4
  base: { type: Number, default: 100 },
5
5
  currency: { type: String, default: () => "USD" },
@@ -1,4 +1,4 @@
1
- import type { PropType } from '#imports';
1
+ import type { PropType } from 'vue';
2
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  base: {
4
4
  type: NumberConstructor;
@@ -0,0 +1,50 @@
1
+ declare var __VLS_9: string, __VLS_10: {};
2
+ type __VLS_Slots = {} & {
3
+ [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ fallback: {
7
+ type: StringConstructor;
8
+ required: false;
9
+ };
10
+ tag: {
11
+ type: StringConstructor;
12
+ default: () => string;
13
+ };
14
+ template: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ values: {
19
+ type: PropType<Record<string, unknown>>;
20
+ required: false;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ fallback: {
24
+ type: StringConstructor;
25
+ required: false;
26
+ };
27
+ tag: {
28
+ type: StringConstructor;
29
+ default: () => string;
30
+ };
31
+ template: {
32
+ type: StringConstructor;
33
+ required: true;
34
+ };
35
+ values: {
36
+ type: PropType<Record<string, unknown>>;
37
+ required: false;
38
+ };
39
+ }>> & Readonly<{}>, {
40
+ values: any;
41
+ tag: string;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
+ declare const _default: typeof __VLS_export;
45
+ export default _default;
46
+ type __VLS_WithSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,48 @@
1
+ <script setup>
2
+ import { computed, useSlots } from "vue";
3
+ const props = defineProps({
4
+ fallback: { type: String, required: false },
5
+ tag: { type: String, default: () => "span" },
6
+ template: { type: String, required: true },
7
+ values: { type: Object, required: false }
8
+ });
9
+ const slots = useSlots();
10
+ const contentParts = computed(() => {
11
+ const regex = /:([a-zA-Z0-9_]+):/g;
12
+ const parts = [];
13
+ let lastIndex = 0;
14
+ let match;
15
+ while ((match = regex.exec(props.template)) !== null) {
16
+ const [fullMatch, key] = match;
17
+ const index = match.index;
18
+ if (index > lastIndex) {
19
+ parts.push(props.template.slice(lastIndex, index));
20
+ }
21
+ if (slots[key]) {
22
+ parts.push({ slotName: key });
23
+ } else {
24
+ const value = props.values?.[key];
25
+ parts.push(value != null ? String(value) : props.fallback ?? fullMatch);
26
+ }
27
+ lastIndex = index + fullMatch.length;
28
+ }
29
+ if (lastIndex < props.template.length) {
30
+ parts.push(props.template.slice(lastIndex));
31
+ }
32
+ return parts;
33
+ });
34
+ </script>
35
+
36
+ <template>
37
+ <component :is="props.tag">
38
+ <template v-for="(part, i) in contentParts" :key="i">
39
+ <template v-if="typeof part === 'string'">
40
+ <span v-text="part" />
41
+ </template>
42
+
43
+ <template v-else>
44
+ <slot :name="part.slotName" />
45
+ </template>
46
+ </template>
47
+ </component>
48
+ </template>
@@ -0,0 +1,50 @@
1
+ declare var __VLS_9: string, __VLS_10: {};
2
+ type __VLS_Slots = {} & {
3
+ [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ fallback: {
7
+ type: StringConstructor;
8
+ required: false;
9
+ };
10
+ tag: {
11
+ type: StringConstructor;
12
+ default: () => string;
13
+ };
14
+ template: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ values: {
19
+ type: PropType<Record<string, unknown>>;
20
+ required: false;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ fallback: {
24
+ type: StringConstructor;
25
+ required: false;
26
+ };
27
+ tag: {
28
+ type: StringConstructor;
29
+ default: () => string;
30
+ };
31
+ template: {
32
+ type: StringConstructor;
33
+ required: true;
34
+ };
35
+ values: {
36
+ type: PropType<Record<string, unknown>>;
37
+ required: false;
38
+ };
39
+ }>> & Readonly<{}>, {
40
+ values: any;
41
+ tag: string;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
+ declare const _default: typeof __VLS_export;
45
+ export default _default;
46
+ type __VLS_WithSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,93 @@
1
+ import type { PropType } from 'vue';
2
+ export type PlaceTypes = 'address' | 'geocode' | 'establishment' | '(regions)' | '(cities)';
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ mode: {
5
+ type: PropType<PlaceTypes>;
6
+ default: string;
7
+ };
8
+ countries: {
9
+ type: {
10
+ (arrayLength: number): string[];
11
+ (...items: string[]): string[];
12
+ new (arrayLength: number): string[];
13
+ new (...items: string[]): string[];
14
+ isArray(arg: any): arg is any[];
15
+ readonly prototype: any[];
16
+ from<T>(arrayLike: ArrayLike<T>): T[];
17
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
18
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
19
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
20
+ of<T>(...items: T[]): T[];
21
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
22
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
23
+ readonly [Symbol.species]: ArrayConstructor;
24
+ };
25
+ default: never[];
26
+ };
27
+ modelValue: {
28
+ type: PropType<string>;
29
+ };
30
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ "update:modelValue": (value: string) => any;
32
+ } & {
33
+ error: (place: any) => any;
34
+ search: (args: {
35
+ city: string;
36
+ code: string;
37
+ country: string;
38
+ latitude: number;
39
+ line1: string;
40
+ locality: string;
41
+ longitude: number;
42
+ number: string;
43
+ state: string;
44
+ street: string;
45
+ }) => any;
46
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
+ mode: {
48
+ type: PropType<PlaceTypes>;
49
+ default: string;
50
+ };
51
+ countries: {
52
+ type: {
53
+ (arrayLength: number): string[];
54
+ (...items: string[]): string[];
55
+ new (arrayLength: number): string[];
56
+ new (...items: string[]): string[];
57
+ isArray(arg: any): arg is any[];
58
+ readonly prototype: any[];
59
+ from<T>(arrayLike: ArrayLike<T>): T[];
60
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
61
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
62
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
63
+ of<T>(...items: T[]): T[];
64
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
65
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
66
+ readonly [Symbol.species]: ArrayConstructor;
67
+ };
68
+ default: never[];
69
+ };
70
+ modelValue: {
71
+ type: PropType<string>;
72
+ };
73
+ }>> & Readonly<{
74
+ onError?: ((place: any) => any) | undefined;
75
+ onSearch?: ((args: {
76
+ city: string;
77
+ code: string;
78
+ country: string;
79
+ latitude: number;
80
+ line1: string;
81
+ locality: string;
82
+ longitude: number;
83
+ number: string;
84
+ state: string;
85
+ street: string;
86
+ }) => any) | undefined;
87
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
88
+ }>, {
89
+ mode: PlaceTypes;
90
+ countries: string[];
91
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
+ declare const _default: typeof __VLS_export;
93
+ export default _default;