@tak-ps/cloudtak 12.138.1 → 13.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/types/src/base/overlay.d.ts +6 -1
- package/dist/types/src/components/CloudTAK/Menu/Basemaps/EditModal.vue.d.ts +2 -1
- package/dist/types/src/components/CloudTAK/Menu/Basemaps/TypeSelectorBase.vue.d.ts +2 -2
- package/dist/types/src/components/CloudTAK/Menu/Basemaps/types.d.ts +3 -1
- package/dist/types/src/components/CloudTAK/Property/PropertyProfile.vue.d.ts +42 -0
- package/dist/types/src/stores/map.d.ts +4 -7
- package/dist/types/src/types.d.ts +21 -4
- package/package.json +12 -11
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyAttachments.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyBattery.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyBearing.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyCreator.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyDistance.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyElevation.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyEmail.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyGeofence.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyLinks.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyMetadata.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyMilSym.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyPhone.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertySensor.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertySpeed.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyStyle.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyTimes.vue.d.ts +0 -0
- /package/dist/types/src/components/CloudTAK/{util → Property}/PropertyType.vue.d.ts +0 -0
|
@@ -28,6 +28,7 @@ export default class Overlay {
|
|
|
28
28
|
visible: boolean;
|
|
29
29
|
mode: string;
|
|
30
30
|
mode_id: string | null;
|
|
31
|
+
encoding: 'mapbox' | 'terrarium' | null;
|
|
31
32
|
actions: ProfileOverlay["actions"];
|
|
32
33
|
url?: string;
|
|
33
34
|
styles: Array<LayerSpecification>;
|
|
@@ -53,7 +54,9 @@ export default class Overlay {
|
|
|
53
54
|
}>;
|
|
54
55
|
}): Promise<Overlay>;
|
|
55
56
|
static load(id: number): Promise<Overlay>;
|
|
56
|
-
constructor(overlay: ProfileOverlay
|
|
57
|
+
constructor(overlay: ProfileOverlay & {
|
|
58
|
+
encoding?: 'mapbox' | 'terrarium' | null;
|
|
59
|
+
}, opts?: {
|
|
57
60
|
internal?: boolean;
|
|
58
61
|
});
|
|
59
62
|
healthy(): boolean;
|
|
@@ -79,6 +82,7 @@ export default class Overlay {
|
|
|
79
82
|
visible?: boolean;
|
|
80
83
|
mode?: string;
|
|
81
84
|
mode_id?: string;
|
|
85
|
+
encoding?: 'mapbox' | 'terrarium' | null;
|
|
82
86
|
url?: string;
|
|
83
87
|
token?: string;
|
|
84
88
|
styles?: Array<LayerSpecification>;
|
|
@@ -90,6 +94,7 @@ export default class Overlay {
|
|
|
90
94
|
pos?: number;
|
|
91
95
|
visible?: boolean;
|
|
92
96
|
opacity?: number;
|
|
97
|
+
encoding?: 'mapbox' | 'terrarium' | null;
|
|
93
98
|
}): Promise<void>;
|
|
94
99
|
save(): Promise<void>;
|
|
95
100
|
}
|
|
@@ -16,7 +16,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
16
16
|
protocol: "zxy" | "mapserver" | "imageserver" | "featureserver" | "hosted";
|
|
17
17
|
minzoom: number;
|
|
18
18
|
maxzoom: number;
|
|
19
|
-
format: "png" | "jpeg" | "mvt";
|
|
19
|
+
format: "png" | "webp" | "jpeg" | "mvt";
|
|
20
20
|
type: "raster" | "raster-dem" | "vector";
|
|
21
21
|
username: null | string;
|
|
22
22
|
sharing_enabled: boolean;
|
|
@@ -28,6 +28,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
28
28
|
frequency: null | number;
|
|
29
29
|
scheme: "xyz";
|
|
30
30
|
overlay: boolean;
|
|
31
|
+
encoding?: "mapbox" | "terrarium";
|
|
31
32
|
styles?: unknown[];
|
|
32
33
|
iconset?: null | string;
|
|
33
34
|
title?: string;
|
|
@@ -12,9 +12,9 @@ type __VLS_ModelProps = {
|
|
|
12
12
|
'editing': EditingBasemap;
|
|
13
13
|
};
|
|
14
14
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
-
declare var
|
|
15
|
+
declare var __VLS_101: {};
|
|
16
16
|
type __VLS_Slots = {} & {
|
|
17
|
-
advanced?: (props: typeof
|
|
17
|
+
advanced?: (props: typeof __VLS_101) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
20
|
"change-type": () => any;
|
|
@@ -19,7 +19,7 @@ export interface EditingBasemap {
|
|
|
19
19
|
tilesize: number;
|
|
20
20
|
attribution: string;
|
|
21
21
|
sharing_enabled: boolean;
|
|
22
|
-
format: 'png' | 'jpeg' | 'mvt';
|
|
22
|
+
format: 'png' | 'jpeg' | 'mvt' | 'webp';
|
|
23
23
|
bounds: number[];
|
|
24
24
|
center: number[];
|
|
25
25
|
collection: string;
|
|
@@ -31,6 +31,7 @@ export interface EditingBasemap {
|
|
|
31
31
|
snapping_layer: string;
|
|
32
32
|
styles: unknown[];
|
|
33
33
|
tilejson: string;
|
|
34
|
+
encoding: 'mapbox' | 'terrarium' | null;
|
|
34
35
|
}
|
|
35
36
|
export interface VectorLayerFieldMap {
|
|
36
37
|
[key: string]: unknown;
|
|
@@ -41,6 +42,7 @@ export interface VectorLayerDescriptor {
|
|
|
41
42
|
}
|
|
42
43
|
export type BasemapImport = paths['/api/basemap']['put']['responses']['200']['content']['application/json'] & {
|
|
43
44
|
vector_layers?: VectorLayerDescriptor[];
|
|
45
|
+
tilesize?: number;
|
|
44
46
|
};
|
|
45
47
|
export type BasemapSourceType = 'zxy' | 'imageserver' | 'mapserver' | 'featureserver' | 'tilejson' | 'upload' | 'hosted';
|
|
46
48
|
export declare const BasemapTypeConfig: Record<BasemapSourceType, {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { LineString } from 'geojson';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
geometry: {
|
|
5
|
+
type: PropType<LineString>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
terrainBasemapId: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
distanceUnit: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
elevationUnit: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
geometry: {
|
|
22
|
+
type: PropType<LineString>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
terrainBasemapId: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
distanceUnit: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
elevationUnit: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{}>, {
|
|
38
|
+
distanceUnit: string;
|
|
39
|
+
elevationUnit: string;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
@@ -8,9 +8,9 @@ import type { DatabaseType } from '../base/database.ts';
|
|
|
8
8
|
import { LocationState } from '../base/events.ts';
|
|
9
9
|
import Overlay from '../base/overlay.ts';
|
|
10
10
|
import Subscription from '../base/subscription.ts';
|
|
11
|
-
import mapgl from 'maplibre-gl';
|
|
11
|
+
import * as mapgl from 'maplibre-gl';
|
|
12
12
|
import type Atlas from '../workers/atlas.ts';
|
|
13
|
-
import type {
|
|
13
|
+
import type { Feature } from '../types.ts';
|
|
14
14
|
import type { LngLat, Point, MapGeoJSONFeature } from 'maplibre-gl';
|
|
15
15
|
import type { CallbackID } from '@capacitor/geolocation';
|
|
16
16
|
export type TAKNotification = {
|
|
@@ -58,12 +58,10 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
|
|
|
58
58
|
_rawWorker: Worker;
|
|
59
59
|
worker: Comlink.Remote<Atlas>;
|
|
60
60
|
mission: Subscription | undefined;
|
|
61
|
-
|
|
61
|
+
terrainEnabled: boolean;
|
|
62
62
|
container?: HTMLElement;
|
|
63
|
-
hasTerrain: boolean;
|
|
64
63
|
hasSnapping: boolean;
|
|
65
64
|
hasNoChannels: boolean;
|
|
66
|
-
isTerrainEnabled: boolean;
|
|
67
65
|
isLoaded: boolean;
|
|
68
66
|
isOpen: boolean;
|
|
69
67
|
isOnline: boolean;
|
|
@@ -102,10 +100,9 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
|
|
|
102
100
|
getOverlayById(id: number): Overlay | null;
|
|
103
101
|
getOverlayByName(name: string): Overlay | null;
|
|
104
102
|
getOverlayByMode(mode: string, mode_id: string): Overlay | null;
|
|
105
|
-
listTerrain: () => Promise<APIList<Basemap>>;
|
|
106
103
|
addTerrain: () => Promise<void>;
|
|
107
104
|
removeTerrain: () => void;
|
|
108
|
-
returnHome: () => void
|
|
105
|
+
returnHome: () => Promise<void>;
|
|
109
106
|
/**
|
|
110
107
|
* Trigger a rerender of the underlying GeoJSON Features
|
|
111
108
|
*/
|
|
@@ -66,7 +66,27 @@ export type Attachment = paths["/api/attachment"]["get"]["responses"]["200"]["co
|
|
|
66
66
|
export type TileJSON = paths["/api/basemap/{:basemapid}/tiles"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
67
67
|
export type Basemap = paths["/api/basemap/{:basemapid}"]["patch"]["responses"]["200"]["content"]["application/json"];
|
|
68
68
|
export type BasemapList = paths["/api/basemap"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
69
|
-
export type
|
|
69
|
+
export type PaletteFeature = {
|
|
70
|
+
uuid: string;
|
|
71
|
+
created: string;
|
|
72
|
+
updated: string;
|
|
73
|
+
name: string;
|
|
74
|
+
palette: string;
|
|
75
|
+
type: string;
|
|
76
|
+
style: Record<string, unknown>;
|
|
77
|
+
};
|
|
78
|
+
export type Palette = {
|
|
79
|
+
uuid: string;
|
|
80
|
+
created: string;
|
|
81
|
+
updated: string;
|
|
82
|
+
name: string;
|
|
83
|
+
template: string;
|
|
84
|
+
features: Array<PaletteFeature>;
|
|
85
|
+
};
|
|
86
|
+
export type PaletteList = {
|
|
87
|
+
total: number;
|
|
88
|
+
items: Array<Palette>;
|
|
89
|
+
};
|
|
70
90
|
export type Chat = {
|
|
71
91
|
chatroom: string;
|
|
72
92
|
messageId: string;
|
|
@@ -89,8 +109,6 @@ export type APIProfileChat = {
|
|
|
89
109
|
message_id: string;
|
|
90
110
|
message: string;
|
|
91
111
|
};
|
|
92
|
-
export type PaletteList = paths["/api/palette"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
93
|
-
export type PaletteFeature = paths["/api/palette/{:palette}/feature/{:feature}"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
94
112
|
export type MissionTemplate = paths["/api/template/mission/{:mission}"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
95
113
|
export type MissionTemplateList = paths["/api/template/mission"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
96
114
|
export type MissionTemplateLog = paths["/api/template/mission/{:mission}/log/{:log}"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
@@ -181,6 +199,5 @@ export type AdminLayerUpdateList = {
|
|
|
181
199
|
};
|
|
182
200
|
export type Config = paths["/api/config"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
183
201
|
export type ConfigLogin = paths["/api/config/login"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
184
|
-
export type ConfigMap = paths["/api/config/map"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
185
202
|
export type PasskeyList = paths['/api/login/passkey']['get']['responses']['200']['content']['application/json'];
|
|
186
203
|
export type Passkey = PasskeyList['items'][0];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tak-ps/cloudtak",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "13.0.0",
|
|
5
5
|
"types": "dist/types/plugin.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/types"
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"url": "git+https://github.com/dfpc-coe/CloudTAK.git"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@capacitor/app": "8.1.0",
|
|
32
|
+
"@capacitor/app": "^8.1.0",
|
|
33
33
|
"@capacitor/browser": "^8.0.1",
|
|
34
34
|
"@capacitor/clipboard": "^8.0.1",
|
|
35
|
-
"@capacitor/core": "8.3.1",
|
|
35
|
+
"@capacitor/core": "^8.3.1",
|
|
36
36
|
"@capacitor/geolocation": "^8.1.0",
|
|
37
|
-
"@capacitor/haptics": "8.0.2",
|
|
38
|
-
"@capacitor/ios": "8.3.1",
|
|
39
|
-
"@capacitor/keyboard": "8.0.3",
|
|
40
|
-
"@capacitor/status-bar": "8.0.2",
|
|
37
|
+
"@capacitor/haptics": "^8.0.2",
|
|
38
|
+
"@capacitor/ios": "^8.3.1",
|
|
39
|
+
"@capacitor/keyboard": "^8.0.3",
|
|
40
|
+
"@capacitor/status-bar": "^8.0.2",
|
|
41
41
|
"@mapbox/tile-cover": "^3.0.2",
|
|
42
42
|
"@simplewebauthn/browser": "^13.3.0",
|
|
43
43
|
"@tabler/core": "^1.4.0",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@ver0/deep-equal": "^2.0.1",
|
|
64
64
|
"@vueuse/core": "^14.0.0",
|
|
65
65
|
"autosize": "^6.0.1",
|
|
66
|
+
"chart.js": "^4.5.1",
|
|
66
67
|
"comlink": "^4.4.2",
|
|
67
68
|
"cronstrue": "^3.0.0",
|
|
68
69
|
"dexie": "^4.2.1",
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"sortablejs": "^1.15.2",
|
|
84
85
|
"swagger-ui-dist": "^5.30.2",
|
|
85
86
|
"terra-draw": "^1.22.0",
|
|
86
|
-
"terra-draw-maplibre-gl-adapter": "^1.
|
|
87
|
+
"terra-draw-maplibre-gl-adapter": "^1.4.1",
|
|
87
88
|
"terra-draw-route-snap-mode": "^0.4.1",
|
|
88
89
|
"terra-route": "^0.0.17",
|
|
89
90
|
"uuid": "^14.0.0",
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
"yaml": "^2.8.2"
|
|
95
96
|
},
|
|
96
97
|
"devDependencies": {
|
|
97
|
-
"@capacitor/cli": "8.3.1",
|
|
98
|
+
"@capacitor/cli": "^8.3.1",
|
|
98
99
|
"@eslint/js": "^10.0.0",
|
|
99
100
|
"@testing-library/vue": "^8.1.0",
|
|
100
101
|
"@types/mapbox__tile-cover": "^3.0.4",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"typedoc": "^0.28.1",
|
|
114
115
|
"typescript": "^6.0.0",
|
|
115
116
|
"typescript-eslint": "^8.20.0",
|
|
116
|
-
"vite": "8.0.0",
|
|
117
|
+
"vite": "^8.0.0",
|
|
117
118
|
"vitest": "^4.1.0",
|
|
118
119
|
"vue-tsc": "^3.0.0-alpha.10"
|
|
119
120
|
},
|
|
@@ -121,4 +122,4 @@
|
|
|
121
122
|
"> 1%",
|
|
122
123
|
"last 2 versions"
|
|
123
124
|
]
|
|
124
|
-
}
|
|
125
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|