@tak-ps/cloudtak 13.55.0 → 13.55.1

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.
@@ -38,6 +38,24 @@ export default class SubscriptionLayer {
38
38
  * Update an existing mission layer, then refresh the local store.
39
39
  */
40
40
  update(layerid: string, layer: MissionLayer_Update): Promise<MissionLayer>;
41
+ /**
42
+ * File existing mission features under a mission layer, moving them from
43
+ * any layer they are currently filed under.
44
+ *
45
+ * The move is applied to the local store first so the UI updates
46
+ * immediately - TAK Server layer listings can lag behind mutations, so the
47
+ * local store is authoritative until the next full refresh. On API failure
48
+ * the local store is re-synced from the server.
49
+ */
50
+ attachFeatures(layeruid: string, uids: string[]): Promise<void>;
51
+ /**
52
+ * Move a mission feature out of a mission layer and back to the mission
53
+ * root - the feature remains part of the mission.
54
+ *
55
+ * The move is applied to the local store first so the UI updates
56
+ * immediately. On API failure the local store is re-synced from the server.
57
+ */
58
+ detachFeature(layeruid: string, uid: string): Promise<void>;
41
59
  /**
42
60
  * Delete a mission layer, then refresh the local store.
43
61
  */
@@ -1,10 +1,24 @@
1
+ type __VLS_Props = {
2
+ /** Explicit segment labels - when provided navigation is emitted as a depth instead of writing to the collection model */
3
+ segments?: string[];
4
+ /** Allow segments (and Home) to act as drag & drop targets, emitting segment-drop with the depth */
5
+ droppable?: boolean;
6
+ };
1
7
  type __VLS_ModelProps = {
2
- 'collection': string;
8
+ 'collection'?: string;
3
9
  };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "update:collection": (value: string) => any;
6
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
- "onUpdate:collection"?: ((value: string) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
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
+ navigate: (depth: number) => any;
13
+ "segment-drop": (depth: number) => any;
14
+ "update:collection": (value: string | undefined) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ onNavigate?: ((depth: number) => any) | undefined;
17
+ "onSegment-drop"?: ((depth: number) => any) | undefined;
18
+ "onUpdate:collection"?: ((value: string | undefined) => any) | undefined;
19
+ }>, {
20
+ segments: string[];
21
+ droppable: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
23
  declare const _default: typeof __VLS_export;
10
24
  export default _default;
@@ -36,6 +36,12 @@ export declare class RoutingControl implements IControl {
36
36
  getDefaultPosition(): ControlPosition;
37
37
  get active(): boolean;
38
38
  setRoute(route: Feature<LineString> | null): void;
39
+ /**
40
+ * Rehydrate a previously persisted route from the KV store. Returns true
41
+ * if a route was restored - the caller is responsible for re-feeding
42
+ * location updates via setLocation().
43
+ */
44
+ restore(): Promise<boolean>;
39
45
  setLocation(location: {
40
46
  lng: number;
41
47
  lat: number;
@@ -1,3 +1,9 @@
1
+ export interface BatteryInfo {
2
+ /** Battery level as a percentage (0-100), or null when unknown. */
3
+ level: number | null;
4
+ /** Whether the device is charging, or null when unknown. */
5
+ charging: boolean | null;
6
+ }
1
7
  /**
2
8
  * Cross-platform charging-state source for the "Charging" wake lock mode.
3
9
  * Native uses `@capacitor/device` (imported lazily, polled); web uses the
@@ -7,7 +13,9 @@ export declare class BatteryStatus {
7
13
  private pollTimer;
8
14
  private webBattery;
9
15
  private webListener;
16
+ private webManagerPromise;
10
17
  isCharging(): Promise<boolean>;
18
+ info(): Promise<BatteryInfo>;
11
19
  watch(onChange: (charging: boolean) => void): Promise<void>;
12
20
  unwatch(): Promise<void>;
13
21
  private webBatteryManager;
@@ -7,6 +7,7 @@ import { OrientationPermission } from './device/orientation.ts';
7
7
  import { StoragePermission } from './device/storage.ts';
8
8
  import { WakeLockPermission } from './device/wake-lock.ts';
9
9
  import { NetworkStatus } from './device/network.ts';
10
+ import { BatteryStatus } from './device/battery.ts';
10
11
  import type { BrowserPermissionState, BrowserPermissionType } from './device/types.ts';
11
12
  export type { BrowserPermissionState, BrowserPermissionType } from './device/types.ts';
12
13
  export { CameraPermission } from './device/camera.ts';
@@ -18,6 +19,8 @@ export { OrientationPermission } from './device/orientation.ts';
18
19
  export { StoragePermission } from './device/storage.ts';
19
20
  export { WakeLockPermission } from './device/wake-lock.ts';
20
21
  export { NetworkStatus } from './device/network.ts';
22
+ export { BatteryStatus } from './device/battery.ts';
23
+ export type { BatteryInfo } from './device/battery.ts';
21
24
  export declare const useDeviceStore: import("pinia").SetupStoreDefinition<"device", {
22
25
  permissions: {
23
26
  notification: BrowserPermissionState;
@@ -29,6 +32,7 @@ export declare const useDeviceStore: import("pinia").SetupStoreDefinition<"devic
29
32
  fileSystem: BrowserPermissionState;
30
33
  };
31
34
  network: import("vue").Raw<NetworkStatus>;
35
+ battery: import("vue").Raw<BatteryStatus>;
32
36
  geolocation: import("vue").Raw<GeolocationPermission>;
33
37
  notification: import("vue").Raw<BrowserNotificationPermission>;
34
38
  orientation: import("vue").Raw<OrientationPermission>;
@@ -105,6 +105,7 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
105
105
  routingControl: () => RoutingControl | undefined;
106
106
  syncRoutingControl: () => void;
107
107
  startNavigation: (cotId: string) => Promise<void>;
108
+ restoreNavigation: () => Promise<void>;
108
109
  stopNavigation: () => void;
109
110
  reverseNavigation: () => void;
110
111
  openSelfFeature: () => Promise<void>;
@@ -7,6 +7,9 @@ export type ProfileLocationState = {
7
7
  accuracy: number | undefined;
8
8
  altitude: number | null | undefined;
9
9
  coordinates: number[];
10
+ /** Battery level as a percentage (0-100) - null/undefined when unknown */
11
+ battery?: number | null;
12
+ charging?: boolean | null;
10
13
  };
11
14
  export default class AtlasProfile {
12
15
  atlas: Atlas;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/cloudtak",
3
3
  "type": "module",
4
- "version": "13.55.0",
4
+ "version": "13.55.1",
5
5
  "types": "dist/types/plugin.d.ts",
6
6
  "files": [
7
7
  "dist/types"