@tak-ps/cloudtak 13.18.1 → 13.19.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.
@@ -1,5 +1,6 @@
1
1
  import type { ProfileOverlay, ProfileOverlay_Create } from '../types.ts';
2
2
  import type { LayerSpecification } from 'maplibre-gl';
3
+ import { type DBOverlay } from '../database.ts';
3
4
  /**
4
5
  * @class
5
6
  */
@@ -98,4 +99,5 @@ export default class Overlay {
98
99
  encoding?: 'mapbox' | 'terrarium' | null;
99
100
  }): Promise<void>;
100
101
  save(): Promise<void>;
102
+ toDBOverlay(): DBOverlay;
101
103
  }
@@ -28,20 +28,15 @@ export type Overlay_CreateLoadedOptions = NonNullable<Parameters<typeof Overlay.
28
28
  export default class OverlayManager extends BaseInterface {
29
29
  static readonly listCacheKey = "overlay";
30
30
  static readonly loaded: Overlay[];
31
- static listLoaded(): Overlay[];
32
31
  static clearLoaded(): void;
33
32
  static loadedFrom(id: string | number): Overlay | undefined;
34
33
  static loadedByName(name: string): Overlay | undefined;
35
34
  static loadedByMode(mode: string, modeId: string): Overlay | undefined;
36
- static loadedBeforeId(): string | undefined;
37
- static addLoaded(overlay: Overlay): void;
38
- static prependLoaded(overlay: Overlay): void;
35
+ private static loadedBeforeId;
39
36
  static appendLoaded(...overlays: Overlay[]): void;
40
37
  static createLoaded(body: Parameters<typeof Overlay.create>[0], opts?: Overlay_CreateLoadedOptions): Promise<Overlay>;
41
38
  static reorderLoaded(orderedIds: number[], movedId: string | number): Promise<void>;
42
39
  static deleteLoaded(idOrOverlay: string | number | Overlay): Promise<void>;
43
- static loadedBasemapIds(mode?: string): Set<string>;
44
- static loadedProfileUrls(): Set<string>;
45
40
  static queryableOverlayNames(): string[];
46
41
  static clickableLayerMap(): Map<string, {
47
42
  type: string;
@@ -1,12 +1,15 @@
1
1
  type __VLS_Props = {
2
2
  keywords?: string[];
3
3
  placeholder?: string;
4
- tone?: 'muted' | 'accent';
4
+ relevant?: string[];
5
5
  };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:keywords": (value: string[]) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ "onUpdate:keywords"?: ((value: string[]) => any) | undefined;
10
+ }>, {
7
11
  keywords: string[];
8
12
  placeholder: string;
9
- tone: "muted" | "accent";
10
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
14
  declare const _default: typeof __VLS_export;
12
15
  export default _default;
@@ -90,10 +90,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
90
90
  name: string;
91
91
  scroll: boolean;
92
92
  loading: boolean;
93
+ none: boolean;
93
94
  border: boolean;
94
95
  zindex: number;
95
96
  back: boolean;
96
- none: boolean;
97
97
  standalone: boolean;
98
98
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
99
99
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,7 +1,6 @@
1
1
  import type { ETLConnection } from '../../../types.ts';
2
2
  type __VLS_Props = {
3
3
  connection: ETLConnection;
4
- muted?: boolean;
5
4
  };
6
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
6
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import type { ConnectionType } from '@capacitor/network';
2
+ export declare class NetworkStatus {
3
+ private online;
4
+ private connectionType;
5
+ private listener;
6
+ get isOnline(): boolean;
7
+ get type(): ConnectionType;
8
+ init(): Promise<void>;
9
+ destroy(): Promise<void>;
10
+ }
@@ -5,6 +5,7 @@ import { BrowserNotificationPermission } from './device/notification.ts';
5
5
  import { OrientationPermission } from './device/orientation.ts';
6
6
  import { StoragePermission } from './device/storage.ts';
7
7
  import { WakeLockPermission } from './device/wake-lock.ts';
8
+ import { NetworkStatus } from './device/network.ts';
8
9
  import type { BrowserPermissionState, BrowserPermissionType } from './device/types.ts';
9
10
  export type { BrowserPermissionState, BrowserPermissionType } from './device/types.ts';
10
11
  export { CameraPermission } from './device/camera.ts';
@@ -14,16 +15,18 @@ export { BrowserNotificationPermission } from './device/notification.ts';
14
15
  export { OrientationPermission } from './device/orientation.ts';
15
16
  export { StoragePermission } from './device/storage.ts';
16
17
  export { WakeLockPermission } from './device/wake-lock.ts';
18
+ export { NetworkStatus } from './device/network.ts';
17
19
  export declare const useDeviceStore: import("pinia").StoreDefinition<"device", Pick<{
18
20
  permissions: {
19
21
  notification: BrowserPermissionState;
20
22
  orientation: BrowserPermissionState;
21
23
  location: BrowserPermissionState;
22
- storage: BrowserPermissionState;
23
24
  camera: BrowserPermissionState;
25
+ storage: BrowserPermissionState;
24
26
  wakeLock: BrowserPermissionState;
25
27
  fileSystem: BrowserPermissionState;
26
28
  };
29
+ network: import("vue").Raw<NetworkStatus>;
27
30
  geolocation: import("vue").Raw<GeolocationPermission>;
28
31
  notification: import("vue").Raw<BrowserNotificationPermission>;
29
32
  orientation: import("vue").Raw<OrientationPermission>;
@@ -36,7 +39,7 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
36
39
  initializePermissionSubscriptions: (onLocationGranted?: () => void) => Promise<void>;
37
40
  hasOrientationSupport: () => boolean;
38
41
  hasOrientationPermissionRequest: () => boolean;
39
- getOrientationEventName: () => "deviceorientation" | "deviceorientationabsolute";
42
+ getOrientationEventName: () => "deviceorientationabsolute" | "deviceorientation";
40
43
  getOrientationHeading: (event: DeviceOrientationEvent) => number | null;
41
44
  addOrientationListener: (listener: (event: DeviceOrientationEvent) => void) => void;
42
45
  removeOrientationListener: (listener: (event: DeviceOrientationEvent) => void) => void;
@@ -55,16 +58,17 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
55
58
  requestWakeLockPermission: () => Promise<void>;
56
59
  requestFileSystemPermission: () => Promise<void>;
57
60
  releaseWakeLockSentinel: () => Promise<void>;
58
- }, "notification" | "orientation" | "storage" | "permissions" | "camera" | "geolocation" | "wakeLock" | "fileSystem">, Pick<{
61
+ }, "notification" | "orientation" | "permissions" | "camera" | "geolocation" | "storage" | "wakeLock" | "fileSystem" | "network">, Pick<{
59
62
  permissions: {
60
63
  notification: BrowserPermissionState;
61
64
  orientation: BrowserPermissionState;
62
65
  location: BrowserPermissionState;
63
- storage: BrowserPermissionState;
64
66
  camera: BrowserPermissionState;
67
+ storage: BrowserPermissionState;
65
68
  wakeLock: BrowserPermissionState;
66
69
  fileSystem: BrowserPermissionState;
67
70
  };
71
+ network: import("vue").Raw<NetworkStatus>;
68
72
  geolocation: import("vue").Raw<GeolocationPermission>;
69
73
  notification: import("vue").Raw<BrowserNotificationPermission>;
70
74
  orientation: import("vue").Raw<OrientationPermission>;
@@ -77,7 +81,7 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
77
81
  initializePermissionSubscriptions: (onLocationGranted?: () => void) => Promise<void>;
78
82
  hasOrientationSupport: () => boolean;
79
83
  hasOrientationPermissionRequest: () => boolean;
80
- getOrientationEventName: () => "deviceorientation" | "deviceorientationabsolute";
84
+ getOrientationEventName: () => "deviceorientationabsolute" | "deviceorientation";
81
85
  getOrientationHeading: (event: DeviceOrientationEvent) => number | null;
82
86
  addOrientationListener: (listener: (event: DeviceOrientationEvent) => void) => void;
83
87
  removeOrientationListener: (listener: (event: DeviceOrientationEvent) => void) => void;
@@ -101,11 +105,12 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
101
105
  notification: BrowserPermissionState;
102
106
  orientation: BrowserPermissionState;
103
107
  location: BrowserPermissionState;
104
- storage: BrowserPermissionState;
105
108
  camera: BrowserPermissionState;
109
+ storage: BrowserPermissionState;
106
110
  wakeLock: BrowserPermissionState;
107
111
  fileSystem: BrowserPermissionState;
108
112
  };
113
+ network: import("vue").Raw<NetworkStatus>;
109
114
  geolocation: import("vue").Raw<GeolocationPermission>;
110
115
  notification: import("vue").Raw<BrowserNotificationPermission>;
111
116
  orientation: import("vue").Raw<OrientationPermission>;
@@ -118,7 +123,7 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
118
123
  initializePermissionSubscriptions: (onLocationGranted?: () => void) => Promise<void>;
119
124
  hasOrientationSupport: () => boolean;
120
125
  hasOrientationPermissionRequest: () => boolean;
121
- getOrientationEventName: () => "deviceorientation" | "deviceorientationabsolute";
126
+ getOrientationEventName: () => "deviceorientationabsolute" | "deviceorientation";
122
127
  getOrientationHeading: (event: DeviceOrientationEvent) => number | null;
123
128
  addOrientationListener: (listener: (event: DeviceOrientationEvent) => void) => void;
124
129
  removeOrientationListener: (listener: (event: DeviceOrientationEvent) => void) => void;
@@ -25,8 +25,6 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
25
25
  _icons?: IconManager;
26
26
  _menu?: unknown;
27
27
  _bottomBar?: unknown;
28
- _boundOnOnline?: () => void;
29
- _boundOnOffline?: () => void;
30
28
  _boundOnDeviceOrientation?: (event: DeviceOrientationEvent) => void;
31
29
  _boundOnVisibilityChange?: () => Promise<void>;
32
30
  _removeBackgroundStateListener?: () => void;
@@ -65,7 +63,6 @@ export declare const useMapStore: import("pinia").StoreDefinition<"cloudtak", {
65
63
  hasNoChannels: boolean;
66
64
  isLoaded: boolean;
67
65
  isOpen: boolean;
68
- isOnline: boolean;
69
66
  userOrientationMode: boolean;
70
67
  pitch: number;
71
68
  bearing: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/cloudtak",
3
3
  "type": "module",
4
- "version": "13.18.1",
4
+ "version": "13.19.1",
5
5
  "types": "dist/types/plugin.d.ts",
6
6
  "files": [
7
7
  "dist/types"
@@ -39,6 +39,7 @@
39
39
  "@capacitor/geolocation": "^8.1.0",
40
40
  "@capacitor/haptics": "^8.0.2",
41
41
  "@capacitor/keyboard": "^8.0.3",
42
+ "@capacitor/network": "^8.0.1",
42
43
  "@capacitor/preferences": "^8.0.1",
43
44
  "@capacitor/status-bar": "^8.0.2",
44
45
  "@capgo/background-geolocation": "^8.0.39",
@@ -1,13 +0,0 @@
1
- type __VLS_Props = {
2
- id: string;
3
- timeout?: number;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
- close: () => any;
7
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- onClose?: (() => any) | undefined;
9
- }>, {
10
- timeout: number;
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
@@ -1,51 +0,0 @@
1
- type ValidateFn = (value: string) => string | false;
2
- type ValidateProp = string | ValidateFn | RegExp;
3
- interface Props {
4
- disabled?: boolean;
5
- modelValue?: string[];
6
- validate?: ValidateProp;
7
- addTagOnKeys?: number[];
8
- placeholder?: string;
9
- limit?: number;
10
- tagLength?: number;
11
- allowDuplicates?: boolean;
12
- addTagOnBlur?: boolean;
13
- }
14
- declare var __VLS_7: {
15
- name: string;
16
- index: number;
17
- };
18
- type __VLS_Slots = {} & {
19
- item?: (props: typeof __VLS_7) => any;
20
- };
21
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
- "update:modelValue": (value: string[]) => any;
23
- "on-limit": () => any;
24
- "on-error": (error: Error) => any;
25
- "on-focus": (event: FocusEvent) => any;
26
- "on-blur": (event: KeyboardEvent | FocusEvent) => any;
27
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
28
- "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
29
- "onOn-limit"?: (() => any) | undefined;
30
- "onOn-error"?: ((error: Error) => any) | undefined;
31
- "onOn-focus"?: ((event: FocusEvent) => any) | undefined;
32
- "onOn-blur"?: ((event: KeyboardEvent | FocusEvent) => any) | undefined;
33
- }>, {
34
- disabled: boolean;
35
- modelValue: string[];
36
- placeholder: string;
37
- limit: number;
38
- validate: ValidateProp;
39
- addTagOnKeys: number[];
40
- tagLength: number;
41
- allowDuplicates: boolean;
42
- addTagOnBlur: boolean;
43
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, 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
- };