bd-geo-location 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue.d.mts ADDED
@@ -0,0 +1,62 @@
1
+ import * as vue from 'vue';
2
+ import { Ref } from 'vue';
3
+ import { C as CityCorporation, a as District, D as Division, U as Upazila, b as Union, P as Pourosova } from './index-SvmbRelJ.mjs';
4
+ export { B as BangladeshGeoData, F as FilterOptions, G as GeoLevel, c as GeoLocation, V as Village } from './index-SvmbRelJ.mjs';
5
+
6
+ /**
7
+ * Vue Composable: Get all divisions
8
+ */
9
+ declare function useDivisions(): {
10
+ divisions: vue.ComputedRef<Division[]>;
11
+ };
12
+ /**
13
+ * Vue Composable: Get districts by division ID
14
+ */
15
+ declare function useDistricts(divisionId?: Ref<string | null> | string | null): {
16
+ districts: vue.ComputedRef<District[]>;
17
+ };
18
+ /**
19
+ * Vue Composable: Get upazilas by district and division IDs
20
+ */
21
+ declare function useUpazilas(districtId?: Ref<string | null> | string | null, divisionId?: Ref<string | null> | string | null): {
22
+ upazilas: vue.ComputedRef<Upazila[]>;
23
+ };
24
+ /**
25
+ * Vue Composable: Get unions by upazila, district, and division IDs
26
+ */
27
+ declare function useUnions(upazilaId?: Ref<string | null> | string | null, districtId?: Ref<string | null> | string | null, divisionId?: Ref<string | null> | string | null): {
28
+ unions: vue.ComputedRef<Union[]>;
29
+ };
30
+ /**
31
+ * Vue Composable: Get pourosovas by upazila, district, and division IDs
32
+ */
33
+ declare function usePourosovas(upazilaId?: Ref<string | null> | string | null, districtId?: Ref<string | null> | string | null, divisionId?: Ref<string | null> | string | null): {
34
+ pourosovas: vue.ComputedRef<Pourosova[]>;
35
+ };
36
+ /**
37
+ * Vue Composable: Get city corporations by district and division IDs
38
+ */
39
+ declare function useCityCorporations(districtId?: Ref<string | null> | string | null, divisionId?: Ref<string | null> | string | null): {
40
+ cityCorporations: vue.ComputedRef<CityCorporation[]>;
41
+ };
42
+ /**
43
+ * Vue Composable: Search locations by name
44
+ */
45
+ declare function useSearch(searchTerm?: Ref<string> | string): {
46
+ results: vue.ComputedRef<{
47
+ divisions: Division[];
48
+ districts: District[];
49
+ upazilas: Upazila[];
50
+ unions: Union[];
51
+ pourosovas: Pourosova[];
52
+ cityCorporations: CityCorporation[];
53
+ }>;
54
+ };
55
+ /**
56
+ * Vue Composable: Get location by ID and type
57
+ */
58
+ declare function useLocationById(id: Ref<string | null> | string | null, type: Ref<'division' | 'district' | 'upazila' | 'union' | 'pourosova' | 'cityCorporation'> | 'division' | 'district' | 'upazila' | 'union' | 'pourosova' | 'cityCorporation'): {
59
+ location: vue.ComputedRef<Division | District | Upazila | Union | CityCorporation | null>;
60
+ };
61
+
62
+ export { CityCorporation, District, Division, Pourosova, Union, Upazila, useCityCorporations, useDistricts, useDivisions, useLocationById, usePourosovas, useSearch, useUnions, useUpazilas };
package/dist/vue.d.ts ADDED
@@ -0,0 +1,62 @@
1
+ import * as vue from 'vue';
2
+ import { Ref } from 'vue';
3
+ import { C as CityCorporation, a as District, D as Division, U as Upazila, b as Union, P as Pourosova } from './index-SvmbRelJ.js';
4
+ export { B as BangladeshGeoData, F as FilterOptions, G as GeoLevel, c as GeoLocation, V as Village } from './index-SvmbRelJ.js';
5
+
6
+ /**
7
+ * Vue Composable: Get all divisions
8
+ */
9
+ declare function useDivisions(): {
10
+ divisions: vue.ComputedRef<Division[]>;
11
+ };
12
+ /**
13
+ * Vue Composable: Get districts by division ID
14
+ */
15
+ declare function useDistricts(divisionId?: Ref<string | null> | string | null): {
16
+ districts: vue.ComputedRef<District[]>;
17
+ };
18
+ /**
19
+ * Vue Composable: Get upazilas by district and division IDs
20
+ */
21
+ declare function useUpazilas(districtId?: Ref<string | null> | string | null, divisionId?: Ref<string | null> | string | null): {
22
+ upazilas: vue.ComputedRef<Upazila[]>;
23
+ };
24
+ /**
25
+ * Vue Composable: Get unions by upazila, district, and division IDs
26
+ */
27
+ declare function useUnions(upazilaId?: Ref<string | null> | string | null, districtId?: Ref<string | null> | string | null, divisionId?: Ref<string | null> | string | null): {
28
+ unions: vue.ComputedRef<Union[]>;
29
+ };
30
+ /**
31
+ * Vue Composable: Get pourosovas by upazila, district, and division IDs
32
+ */
33
+ declare function usePourosovas(upazilaId?: Ref<string | null> | string | null, districtId?: Ref<string | null> | string | null, divisionId?: Ref<string | null> | string | null): {
34
+ pourosovas: vue.ComputedRef<Pourosova[]>;
35
+ };
36
+ /**
37
+ * Vue Composable: Get city corporations by district and division IDs
38
+ */
39
+ declare function useCityCorporations(districtId?: Ref<string | null> | string | null, divisionId?: Ref<string | null> | string | null): {
40
+ cityCorporations: vue.ComputedRef<CityCorporation[]>;
41
+ };
42
+ /**
43
+ * Vue Composable: Search locations by name
44
+ */
45
+ declare function useSearch(searchTerm?: Ref<string> | string): {
46
+ results: vue.ComputedRef<{
47
+ divisions: Division[];
48
+ districts: District[];
49
+ upazilas: Upazila[];
50
+ unions: Union[];
51
+ pourosovas: Pourosova[];
52
+ cityCorporations: CityCorporation[];
53
+ }>;
54
+ };
55
+ /**
56
+ * Vue Composable: Get location by ID and type
57
+ */
58
+ declare function useLocationById(id: Ref<string | null> | string | null, type: Ref<'division' | 'district' | 'upazila' | 'union' | 'pourosova' | 'cityCorporation'> | 'division' | 'district' | 'upazila' | 'union' | 'pourosova' | 'cityCorporation'): {
59
+ location: vue.ComputedRef<Division | District | Upazila | Union | CityCorporation | null>;
60
+ };
61
+
62
+ export { CityCorporation, District, Division, Pourosova, Union, Upazila, useCityCorporations, useDistricts, useDivisions, useLocationById, usePourosovas, useSearch, useUnions, useUpazilas };