@tak-ps/cloudtak 12.127.1 → 12.127.3

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.
@@ -0,0 +1,62 @@
1
+ export interface PathNode<T = any> {
2
+ id: string;
3
+ name: string;
4
+ fullPath: string;
5
+ count: number;
6
+ opened: boolean;
7
+ loading: boolean;
8
+ children: PathNode<T>[];
9
+ items: Set<T>;
10
+ }
11
+ export default class PathManager {
12
+ /**
13
+ * Normalize a path: ensure leading slash, remove trailing slash, collapse duplicate slashes
14
+ */
15
+ static normalize(path: string): string;
16
+ /**
17
+ * Get the display name (last segment) of a path
18
+ */
19
+ static displayName(path: string): string;
20
+ /**
21
+ * Get the parent path of a given path
22
+ */
23
+ static parentPath(path: string): string;
24
+ /**
25
+ * Build a nested tree from a flat array of paths.
26
+ * Intermediate nodes are created automatically for nested paths.
27
+ */
28
+ static buildTree<T = unknown>(flatPaths: Array<{
29
+ path: string;
30
+ count: number;
31
+ }>): PathNode<T>[];
32
+ /**
33
+ * Find a node by its full path
34
+ */
35
+ static findNode<T = unknown>(nodes: PathNode<T>[], path: string): PathNode<T> | undefined;
36
+ /**
37
+ * Find a node by its id
38
+ */
39
+ static findNodeById<T = unknown>(nodes: PathNode<T>[], id: string): PathNode<T> | undefined;
40
+ /**
41
+ * Add a path to the tree, creating intermediate nodes as needed.
42
+ * Returns the leaf node.
43
+ */
44
+ static addPath<T = unknown>(nodes: PathNode<T>[], path: string): PathNode<T>;
45
+ /**
46
+ * Remove a path from the tree. Returns the removed node.
47
+ */
48
+ static removePath<T = unknown>(nodes: PathNode<T>[], path: string): PathNode<T> | undefined;
49
+ /**
50
+ * Rename a path and all its descendants.
51
+ * Returns a map of old path -> new path for all affected nodes.
52
+ */
53
+ static renamePath<T = unknown>(nodes: PathNode<T>[], oldPath: string, newPath: string): Map<string, string>;
54
+ /**
55
+ * Get all paths in the tree as a flat array
56
+ */
57
+ static flatPaths<T = unknown>(nodes: PathNode<T>[]): string[];
58
+ /**
59
+ * Check if a path exists in the tree
60
+ */
61
+ static hasPath<T = unknown>(nodes: PathNode<T>[], path: string): boolean;
62
+ }
@@ -1,2 +1,3 @@
1
1
  export declare function getCurrentEntryBuildId(): string;
2
- export declare function initServiceWorker(version: string, entry: string): void;
2
+ export declare function getPageServiceWorkerBuildId(): string | null;
3
+ export declare function initServiceWorker(version: string): void;
@@ -0,0 +1,262 @@
1
+ import type { ProfileFile } from '../../../types.ts';
2
+ type __VLS_Props = {
3
+ asset: ProfileFile;
4
+ currentUsername: string;
5
+ overlayUrls: Set<string>;
6
+ rename?: {
7
+ id: string;
8
+ loading: boolean;
9
+ name: string;
10
+ };
11
+ };
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ delete: (asset: {
14
+ id: string;
15
+ created: string;
16
+ updated: string;
17
+ username: string;
18
+ path: string;
19
+ name: string;
20
+ iconset: null | string;
21
+ size: number;
22
+ channels: number[];
23
+ artifacts: {
24
+ ext: string;
25
+ size: number;
26
+ }[];
27
+ }) => any;
28
+ download: (asset: {
29
+ id: string;
30
+ created: string;
31
+ updated: string;
32
+ username: string;
33
+ path: string;
34
+ name: string;
35
+ iconset: null | string;
36
+ size: number;
37
+ channels: number[];
38
+ artifacts: {
39
+ ext: string;
40
+ size: number;
41
+ }[];
42
+ }) => any;
43
+ move: (asset: {
44
+ id: string;
45
+ created: string;
46
+ updated: string;
47
+ username: string;
48
+ path: string;
49
+ name: string;
50
+ iconset: null | string;
51
+ size: number;
52
+ channels: number[];
53
+ artifacts: {
54
+ ext: string;
55
+ size: number;
56
+ }[];
57
+ }) => any;
58
+ rename: (asset: {
59
+ id: string;
60
+ created: string;
61
+ updated: string;
62
+ username: string;
63
+ path: string;
64
+ name: string;
65
+ iconset: null | string;
66
+ size: number;
67
+ channels: number[];
68
+ artifacts: {
69
+ ext: string;
70
+ size: number;
71
+ }[];
72
+ }) => any;
73
+ "create-overlay": (asset: {
74
+ id: string;
75
+ created: string;
76
+ updated: string;
77
+ username: string;
78
+ path: string;
79
+ name: string;
80
+ iconset: null | string;
81
+ size: number;
82
+ channels: number[];
83
+ artifacts: {
84
+ ext: string;
85
+ size: number;
86
+ }[];
87
+ }) => any;
88
+ "share-mission": (asset: {
89
+ id: string;
90
+ created: string;
91
+ updated: string;
92
+ username: string;
93
+ path: string;
94
+ name: string;
95
+ iconset: null | string;
96
+ size: number;
97
+ channels: number[];
98
+ artifacts: {
99
+ ext: string;
100
+ size: number;
101
+ }[];
102
+ }) => any;
103
+ "share-package": (asset: {
104
+ id: string;
105
+ created: string;
106
+ updated: string;
107
+ username: string;
108
+ path: string;
109
+ name: string;
110
+ iconset: null | string;
111
+ size: number;
112
+ channels: number[];
113
+ artifacts: {
114
+ ext: string;
115
+ size: number;
116
+ }[];
117
+ }) => any;
118
+ "share-channel": (asset: {
119
+ id: string;
120
+ created: string;
121
+ updated: string;
122
+ username: string;
123
+ path: string;
124
+ name: string;
125
+ iconset: null | string;
126
+ size: number;
127
+ channels: number[];
128
+ artifacts: {
129
+ ext: string;
130
+ size: number;
131
+ }[];
132
+ }) => any;
133
+ "rename-change": (name: string) => any;
134
+ "rename-submit": () => any;
135
+ "rename-cancel": () => any;
136
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
137
+ onDelete?: ((asset: {
138
+ id: string;
139
+ created: string;
140
+ updated: string;
141
+ username: string;
142
+ path: string;
143
+ name: string;
144
+ iconset: null | string;
145
+ size: number;
146
+ channels: number[];
147
+ artifacts: {
148
+ ext: string;
149
+ size: number;
150
+ }[];
151
+ }) => any) | undefined;
152
+ onDownload?: ((asset: {
153
+ id: string;
154
+ created: string;
155
+ updated: string;
156
+ username: string;
157
+ path: string;
158
+ name: string;
159
+ iconset: null | string;
160
+ size: number;
161
+ channels: number[];
162
+ artifacts: {
163
+ ext: string;
164
+ size: number;
165
+ }[];
166
+ }) => any) | undefined;
167
+ onMove?: ((asset: {
168
+ id: string;
169
+ created: string;
170
+ updated: string;
171
+ username: string;
172
+ path: string;
173
+ name: string;
174
+ iconset: null | string;
175
+ size: number;
176
+ channels: number[];
177
+ artifacts: {
178
+ ext: string;
179
+ size: number;
180
+ }[];
181
+ }) => any) | undefined;
182
+ onRename?: ((asset: {
183
+ id: string;
184
+ created: string;
185
+ updated: string;
186
+ username: string;
187
+ path: string;
188
+ name: string;
189
+ iconset: null | string;
190
+ size: number;
191
+ channels: number[];
192
+ artifacts: {
193
+ ext: string;
194
+ size: number;
195
+ }[];
196
+ }) => any) | undefined;
197
+ "onCreate-overlay"?: ((asset: {
198
+ id: string;
199
+ created: string;
200
+ updated: string;
201
+ username: string;
202
+ path: string;
203
+ name: string;
204
+ iconset: null | string;
205
+ size: number;
206
+ channels: number[];
207
+ artifacts: {
208
+ ext: string;
209
+ size: number;
210
+ }[];
211
+ }) => any) | undefined;
212
+ "onShare-mission"?: ((asset: {
213
+ id: string;
214
+ created: string;
215
+ updated: string;
216
+ username: string;
217
+ path: string;
218
+ name: string;
219
+ iconset: null | string;
220
+ size: number;
221
+ channels: number[];
222
+ artifacts: {
223
+ ext: string;
224
+ size: number;
225
+ }[];
226
+ }) => any) | undefined;
227
+ "onShare-package"?: ((asset: {
228
+ id: string;
229
+ created: string;
230
+ updated: string;
231
+ username: string;
232
+ path: string;
233
+ name: string;
234
+ iconset: null | string;
235
+ size: number;
236
+ channels: number[];
237
+ artifacts: {
238
+ ext: string;
239
+ size: number;
240
+ }[];
241
+ }) => any) | undefined;
242
+ "onShare-channel"?: ((asset: {
243
+ id: string;
244
+ created: string;
245
+ updated: string;
246
+ username: string;
247
+ path: string;
248
+ name: string;
249
+ iconset: null | string;
250
+ size: number;
251
+ channels: number[];
252
+ artifacts: {
253
+ ext: string;
254
+ size: number;
255
+ }[];
256
+ }) => any) | undefined;
257
+ "onRename-change"?: ((name: string) => any) | undefined;
258
+ "onRename-submit"?: (() => any) | undefined;
259
+ "onRename-cancel"?: (() => any) | undefined;
260
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
261
+ declare const _default: typeof __VLS_export;
262
+ export default _default;
@@ -1,10 +1,12 @@
1
1
  type __VLS_Props = {
2
2
  keywords?: string[];
3
3
  placeholder?: string;
4
+ tone?: 'muted' | 'accent';
4
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
7
  placeholder: string;
7
8
  keywords: string[];
9
+ tone: "muted" | "accent";
8
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const _default: typeof __VLS_export;
10
12
  export default _default;
@@ -72,8 +72,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
72
72
  };
73
73
  }>> & Readonly<{}>, {
74
74
  loading: boolean;
75
- zindex: number;
76
75
  border: boolean;
76
+ zindex: number;
77
77
  back: boolean;
78
78
  none: boolean;
79
79
  standalone: boolean;
@@ -0,0 +1,18 @@
1
+ import type { PathNode } from '../../../base/path-manager.ts';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import("vue").DefineComponent<{
5
+ nodes: PathNode[];
6
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ navigate: (node: PathNode<any>) => any;
8
+ delete: (node: PathNode<any>) => any;
9
+ rename: (node: PathNode<any>) => any;
10
+ "folder-drop": (node: PathNode<any>) => any;
11
+ }, string, import("vue").PublicProps, Readonly<{
12
+ nodes: PathNode[];
13
+ }> & Readonly<{
14
+ onNavigate?: ((node: PathNode<any>) => any) | undefined;
15
+ onDelete?: ((node: PathNode<any>) => any) | undefined;
16
+ onRename?: ((node: PathNode<any>) => any) | undefined;
17
+ "onFolder-drop"?: ((node: PathNode<any>) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,29 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ editable?: boolean;
4
+ editing?: boolean;
5
+ editAriaLabel?: string;
6
+ };
7
+ declare var __VLS_14: {}, __VLS_16: {};
8
+ type __VLS_Slots = {} & {
9
+ editor?: (props: typeof __VLS_14) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_16) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ edit: () => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onEdit?: (() => any) | undefined;
17
+ }>, {
18
+ editing: boolean;
19
+ editable: boolean;
20
+ editAriaLabel: string;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ modelValue: Array<number>;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ submit: (channels: number[]) => any;
6
+ close: () => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onSubmit?: ((channels: number[]) => any) | undefined;
9
+ onClose?: (() => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -7,6 +7,7 @@ interface Props {
7
7
  cancel?: boolean;
8
8
  label?: string;
9
9
  mimetype?: string;
10
+ sizeWarning?: boolean;
10
11
  }
11
12
  /**
12
13
  * Resets the component state and file input.
@@ -41,6 +42,7 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {
41
42
  cancel: boolean;
42
43
  autoupload: boolean;
43
44
  mimetype: string;
45
+ sizeWarning: boolean;
44
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
47
  declare const _default: typeof __VLS_export;
46
48
  export default _default;
@@ -14,6 +14,7 @@ export default class AtlasDatabase {
14
14
  atlas: Atlas;
15
15
  cots: Map<string, COT>;
16
16
  mission?: string;
17
+ static normalizePath(path: string): string;
17
18
  pendingCreate: Map<string, COT>;
18
19
  pendingUpdate: Map<string, COT>;
19
20
  pendingHidden: Set<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/cloudtak",
3
3
  "type": "module",
4
- "version": "12.127.1",
4
+ "version": "12.127.3",
5
5
  "types": "dist/types/plugin.d.ts",
6
6
  "files": [
7
7
  "dist/types"
@@ -78,7 +78,7 @@
78
78
  "terra-draw-maplibre-gl-adapter": "^1.1.1",
79
79
  "terra-draw-route-snap-mode": "^0.4.1",
80
80
  "terra-route": "^0.0.14",
81
- "uuid": "^13.0.0",
81
+ "uuid": "^14.0.0",
82
82
  "vue": "^3.2.31",
83
83
  "vue-component-type-helpers": "^3.0.7",
84
84
  "vue-mention": "^2.0.0-alpha.3",
@@ -112,4 +112,4 @@
112
112
  "> 1%",
113
113
  "last 2 versions"
114
114
  ]
115
- }
115
+ }