@kosdev-code/kos-ui-sdk 0.1.0-next.948 → 0.1.0-next.958
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/.kos.json +2 -1
- package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts +2 -0
- package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts.map +1 -0
- package/core/core/decorators/kos-container-aware.d.ts +150 -88
- package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-reload-aware.d.ts +10 -8
- package/core/core/decorators/kos-reload-aware.d.ts.map +1 -1
- package/core/core/decorators/kosModel.d.ts.map +1 -1
- package/core/core/kosCore.d.ts +4 -1
- package/core/core/kosCore.d.ts.map +1 -1
- package/core/core/kosModel.d.ts +16 -8
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/lifecycle/constants.d.ts +6 -2
- package/core/core/lifecycle/constants.d.ts.map +1 -1
- package/core/core/lifecycle/kosCoreLifecycle.d.ts +11 -1
- package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -1
- package/core/core/lifecycle/kosModelLifecycle.d.ts +6 -0
- package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -1
- package/core/core/lifecycle/model-machine.d.ts +6 -0
- package/core/core/lifecycle/model-machine.d.ts.map +1 -1
- package/core/core/model/kos-fsm-manager.d.ts +6 -0
- package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
- package/core/core/reconnect/reconnect-fixture.d.ts +17 -0
- package/core/core/reconnect/reconnect-fixture.d.ts.map +1 -0
- package/core/core/transport/transport.d.ts +1 -1
- package/core/core/transport/transport.d.ts.map +1 -1
- package/core/core/transport/webSocketTransport.d.ts +10 -0
- package/core/core/transport/webSocketTransport.d.ts.map +1 -1
- package/index.cjs +134 -90
- package/index.cjs.map +1 -1
- package/index.js +163 -119
- package/index.js.map +1 -1
- package/models/models/config-bean/config-bean-model.d.ts +9 -0
- package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
- package/models/models/gpio-chip/gpio-chip-builders.d.ts +14 -0
- package/models/models/gpio-chip/gpio-chip-builders.d.ts.map +1 -0
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts +2 -1
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -1
- package/models/models/trouble-container/trouble-builders.d.ts +11 -0
- package/models/models/trouble-container/trouble-builders.d.ts.map +1 -0
- package/models/models/trouble-container/trouble-container-model.d.ts +2 -1
- package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
- package/package.json +3 -3
- package/{software-info-registration-CuuEsH8v.js → software-info-registration-C8kf-pBB.js} +467 -163
- package/software-info-registration-C8kf-pBB.js.map +1 -0
- package/{software-info-registration-CY_E6Rw7.cjs → software-info-registration-Y1iADHWT.cjs} +438 -134
- package/software-info-registration-Y1iADHWT.cjs.map +1 -0
- package/testing.cjs +1 -1
- package/testing.js +1 -1
- package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts +9 -0
- package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts.map +1 -0
- package/ui/components/connection-dev-button/index.d.ts +36 -0
- package/ui/components/connection-dev-button/index.d.ts.map +1 -0
- package/ui/components/connection-dev-button/use-connection-dev-state.d.ts +29 -0
- package/ui/components/connection-dev-button/use-connection-dev-state.d.ts.map +1 -0
- package/ui/components/index.d.ts +1 -0
- package/ui/components/index.d.ts.map +1 -1
- package/software-info-registration-CY_E6Rw7.cjs.map +0 -1
- package/software-info-registration-CuuEsH8v.js.map +0 -1
package/.kos.json
CHANGED
|
@@ -233,7 +233,8 @@
|
|
|
233
233
|
"type": "trouble-container-model",
|
|
234
234
|
"singleton": true,
|
|
235
235
|
"factory": "TroubleContainer",
|
|
236
|
-
"purpose": "Manages the set of active device troubles."
|
|
236
|
+
"purpose": "Manages the set of active device troubles.",
|
|
237
|
+
"container": true
|
|
237
238
|
},
|
|
238
239
|
"config-bean": {
|
|
239
240
|
"name": "config-bean",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kos-container-aware-reconcile.test-d.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kos-container-aware-reconcile.test-d.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +1,71 @@
|
|
|
1
1
|
import { IKosModelContainer } from '../kos-container-model';
|
|
2
2
|
import { IKosDataModel } from '../kosModel';
|
|
3
3
|
type MaybePromise<T> = T | Promise<T>;
|
|
4
|
+
/**
|
|
5
|
+
* How the injected `reconcile(list)` turns a full list of DTOs into the container's
|
|
6
|
+
* contents. Pass named functions from the model's builders module.
|
|
7
|
+
*
|
|
8
|
+
* @template T The type of models contained in the container
|
|
9
|
+
* @template D The incoming DTO type
|
|
10
|
+
* @template M The DTO type after `idMapper` (defaults to D)
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import { createFolderModel, updateFolderModel } from "./folder-builders";
|
|
15
|
+
*
|
|
16
|
+
* @kosContainerAware<FolderModel>({
|
|
17
|
+
* reconcile: { create: createFolderModel, update: updateFolderModel },
|
|
18
|
+
* })
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @kosService core.container-aware
|
|
22
|
+
* @kosApiLevel 25
|
|
23
|
+
*/
|
|
24
|
+
export interface KosContainerReconcileOptions<T extends IKosDataModel = IKosDataModel, D extends {
|
|
25
|
+
id: string;
|
|
26
|
+
} = any, M extends {
|
|
27
|
+
id: string;
|
|
28
|
+
} = D> {
|
|
29
|
+
/**
|
|
30
|
+
* Builds a model for a DTO whose id is not in the container.
|
|
31
|
+
*/
|
|
32
|
+
create: (dto: M) => T;
|
|
33
|
+
/**
|
|
34
|
+
* Updates the existing model for a DTO whose id is already in the container, in
|
|
35
|
+
* place, so the model keeps its identity. Without it an existing id is passed to
|
|
36
|
+
* `create` and the new model replaces the old one.
|
|
37
|
+
*/
|
|
38
|
+
update?: (dto: M, model: T) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Maps each DTO before reconciling, typically to build a compound model id.
|
|
41
|
+
* `create`, `update` and `afterCreate` receive the mapped DTO.
|
|
42
|
+
*/
|
|
43
|
+
idMapper?: (dto: D) => M;
|
|
44
|
+
/**
|
|
45
|
+
* Keeps only the DTOs it returns true for. Applied before the delta, so the ids
|
|
46
|
+
* it drops are removed from the container.
|
|
47
|
+
*/
|
|
48
|
+
filter?: (dto: D) => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Runs after `create` and before the new model is added to the container.
|
|
51
|
+
*/
|
|
52
|
+
afterCreate?: (model: T, dto: M) => void;
|
|
53
|
+
}
|
|
4
54
|
/**
|
|
5
55
|
* Configuration options for the @kosContainerAware decorator.
|
|
6
56
|
*
|
|
7
57
|
* @template T The type of models contained in the container (must extend IKosDataModel)
|
|
58
|
+
* @template D The DTO type `reconcile` receives
|
|
59
|
+
* @template M The DTO type after `reconcile.idMapper` (defaults to D)
|
|
8
60
|
*
|
|
9
61
|
* @kosService core.container-aware
|
|
10
62
|
* @kosApiLevel 13
|
|
11
63
|
*/
|
|
12
|
-
export interface KosContainerAwareOptions<T extends IKosDataModel = IKosDataModel
|
|
64
|
+
export interface KosContainerAwareOptions<T extends IKosDataModel = IKosDataModel, D extends {
|
|
65
|
+
id: string;
|
|
66
|
+
} = any, M extends {
|
|
67
|
+
id: string;
|
|
68
|
+
} = D> {
|
|
13
69
|
/**
|
|
14
70
|
* Name of the model property that holds the container.
|
|
15
71
|
*
|
|
@@ -99,99 +155,34 @@ export interface KosContainerAwareOptions<T extends IKosDataModel = IKosDataMode
|
|
|
99
155
|
* @deprecated Use containerProperty instead for new code
|
|
100
156
|
*/
|
|
101
157
|
legacy?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Injects `reconcile(list)`, which makes the container match a full list of DTOs:
|
|
160
|
+
* ids missing from the list are removed, existing ids are updated in place and new
|
|
161
|
+
* ids are created and added, in one batch. Call it from `load()` and from topic
|
|
162
|
+
* handlers that receive the full list.
|
|
163
|
+
*
|
|
164
|
+
* @kosApiLevel 25
|
|
165
|
+
*/
|
|
166
|
+
reconcile?: KosContainerReconcileOptions<T, D, M>;
|
|
102
167
|
}
|
|
103
168
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* Declare an interface with the same name as the class that extends this type so the
|
|
107
|
-
* injected members are typed (TypeScript interface merging). When the decorator uses a
|
|
108
|
-
* custom `containerProperty`, extend {@link KosContainerAwareWithProp} instead.
|
|
109
|
-
*
|
|
110
|
-
* The `models` and `data` getters are reactive, so a `kosComponent` reading them
|
|
111
|
-
* re-renders when the container contents change.
|
|
112
|
-
*
|
|
113
|
-
* @template T The type of models contained in the container (must extend IKosDataModel)
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```typescript
|
|
117
|
-
* interface DeviceContainerModelImpl extends KosContainerAware<DeviceModel> {}
|
|
169
|
+
* The `reconcile` member @kosContainerAware injects when the decorator declares the
|
|
170
|
+
* `reconcile` option.
|
|
118
171
|
*
|
|
119
|
-
* @
|
|
120
|
-
* @kosContainerAware<DeviceModel>({
|
|
121
|
-
* containerOptions: { indexMap: { byType: "deviceType" } },
|
|
122
|
-
* })
|
|
123
|
-
* class DeviceContainerModelImpl implements IKosDataModel {
|
|
124
|
-
* get deviceCount(): number {
|
|
125
|
-
* return this.data.length;
|
|
126
|
-
* }
|
|
127
|
-
*
|
|
128
|
-
* devicesOfType(type: string): DeviceModel[] {
|
|
129
|
-
* return this.container.getIndexByKey("byType", type);
|
|
130
|
-
* }
|
|
131
|
-
* }
|
|
132
|
-
* ```
|
|
133
|
-
*
|
|
134
|
-
* @see {@link kosContainerAware} - The decorator function
|
|
135
|
-
* @see {@link KosContainerAwareOptions} - Configuration options
|
|
172
|
+
* @template D The DTO type the list holds
|
|
136
173
|
*
|
|
137
174
|
* @kosService core.container-aware
|
|
138
|
-
* @kosApiLevel
|
|
175
|
+
* @kosApiLevel 25
|
|
139
176
|
*/
|
|
140
|
-
export interface
|
|
141
|
-
/**
|
|
142
|
-
* Container that manages the collection of models.
|
|
143
|
-
*/
|
|
144
|
-
container: IKosModelContainer<T>;
|
|
145
|
-
/**
|
|
146
|
-
* Retrieves a model from the container by its ID.
|
|
147
|
-
* @param id - The unique identifier of the model to retrieve
|
|
148
|
-
* @returns The model instance if found, undefined otherwise
|
|
149
|
-
*/
|
|
150
|
-
getModel(id: string): T | undefined;
|
|
151
|
-
/**
|
|
152
|
-
* Adds a model to the container.
|
|
153
|
-
* @param model - The model instance to add
|
|
154
|
-
*/
|
|
155
|
-
addModel(model: T): void;
|
|
156
|
-
/**
|
|
157
|
-
* Removes a model from the container by its ID without destroying it.
|
|
158
|
-
* @param id - The unique identifier of the model to remove
|
|
159
|
-
*/
|
|
160
|
-
removeModel(id: string): void;
|
|
161
|
-
/**
|
|
162
|
-
* Adds multiple models to the container at once.
|
|
163
|
-
* @param models - Array of model instances to add
|
|
164
|
-
* @kosApiLevel 19
|
|
165
|
-
*/
|
|
166
|
-
addAll(models: T[]): void;
|
|
167
|
-
/**
|
|
168
|
-
* Removes multiple models from the container by their IDs without destroying them.
|
|
169
|
-
* @param ids - Array of unique identifiers of the models to remove
|
|
170
|
-
* @kosApiLevel 19
|
|
171
|
-
*/
|
|
172
|
-
removeAll(ids: string[]): void;
|
|
173
|
-
/**
|
|
174
|
-
* Removes a model from the container and destroys it.
|
|
175
|
-
* @param id - The unique identifier of the model to remove and destroy
|
|
176
|
-
* @kosApiLevel 19
|
|
177
|
-
*/
|
|
178
|
-
removeAndDestroy(id: string): Promise<void>;
|
|
179
|
-
/**
|
|
180
|
-
* Removes multiple models from the container and destroys them.
|
|
181
|
-
* @param ids - Array of unique identifiers of the models to remove and destroy
|
|
182
|
-
* @kosApiLevel 19
|
|
183
|
-
*/
|
|
184
|
-
removeAndDestroyAll(ids: string[]): Promise<void>;
|
|
185
|
-
/**
|
|
186
|
-
* The container instance, compatible with IKosModelHolder.
|
|
187
|
-
*/
|
|
188
|
-
readonly models: IKosModelContainer<T>;
|
|
177
|
+
export interface KosContainerReconcile<D> {
|
|
189
178
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
179
|
+
* Makes the container match `list`: removes models whose id is missing, updates
|
|
180
|
+
* existing models in place and adds new ones.
|
|
181
|
+
* @param list - The full list of DTOs
|
|
192
182
|
*/
|
|
193
|
-
|
|
183
|
+
reconcile(list: D[]): void;
|
|
194
184
|
}
|
|
185
|
+
type KosContainerReconcileFor<D> = [D] extends [never] ? unknown : KosContainerReconcile<D>;
|
|
195
186
|
/**
|
|
196
187
|
* Container-aware members shared by KosContainerAware and KosContainerAwareWithProp.
|
|
197
188
|
*
|
|
@@ -251,12 +242,78 @@ export interface KosContainerAwareBase<T extends IKosDataModel = IKosDataModel>
|
|
|
251
242
|
*/
|
|
252
243
|
data: T[];
|
|
253
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Members that @kosContainerAware injects into a model.
|
|
247
|
+
*
|
|
248
|
+
* Declare an interface with the same name as the class that extends this type so the
|
|
249
|
+
* injected members are typed (TypeScript interface merging). When the decorator uses a
|
|
250
|
+
* custom `containerProperty`, extend {@link KosContainerAwareWithProp} instead.
|
|
251
|
+
*
|
|
252
|
+
* The `models` and `data` getters are reactive, so a `kosComponent` reading them
|
|
253
|
+
* re-renders when the container contents change.
|
|
254
|
+
*
|
|
255
|
+
* Pass the DTO type as `D` when the decorator declares the `reconcile` option, so
|
|
256
|
+
* `this.reconcile(list)` is typed.
|
|
257
|
+
*
|
|
258
|
+
* @template T The type of models contained in the container (must extend IKosDataModel)
|
|
259
|
+
* @template D The DTO type `reconcile` receives; omit it when `reconcile` is not declared
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```typescript
|
|
263
|
+
* interface DeviceContainerModelImpl extends KosContainerAware<DeviceModel> {}
|
|
264
|
+
*
|
|
265
|
+
* @kosModel("device-container-model")
|
|
266
|
+
* @kosContainerAware<DeviceModel>({
|
|
267
|
+
* containerOptions: { indexMap: { byType: "deviceType" } },
|
|
268
|
+
* })
|
|
269
|
+
* class DeviceContainerModelImpl implements IKosDataModel {
|
|
270
|
+
* get deviceCount(): number {
|
|
271
|
+
* return this.data.length;
|
|
272
|
+
* }
|
|
273
|
+
*
|
|
274
|
+
* devicesOfType(type: string): DeviceModel[] {
|
|
275
|
+
* return this.container.getIndexByKey("byType", type);
|
|
276
|
+
* }
|
|
277
|
+
* }
|
|
278
|
+
* ```
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* ```typescript
|
|
282
|
+
* import { createFolderModel, updateFolderModel, type FolderDto } from "./folder-builders";
|
|
283
|
+
*
|
|
284
|
+
* interface FolderContainerModelImpl extends KosContainerAware<FolderModel, FolderDto> {}
|
|
285
|
+
*
|
|
286
|
+
* @kosModel("folder-container-model")
|
|
287
|
+
* @kosContainerAware<FolderModel>({
|
|
288
|
+
* reconcile: { create: createFolderModel, update: updateFolderModel },
|
|
289
|
+
* })
|
|
290
|
+
* class FolderContainerModelImpl implements IKosDataModel {
|
|
291
|
+
* async load(): Promise<void> {
|
|
292
|
+
* const [error, folders] = await this.fetchFolders();
|
|
293
|
+
* if (!error) this.reconcile(folders);
|
|
294
|
+
* }
|
|
295
|
+
* }
|
|
296
|
+
* ```
|
|
297
|
+
*
|
|
298
|
+
* @see {@link kosContainerAware} - The decorator function
|
|
299
|
+
* @see {@link KosContainerAwareOptions} - Configuration options
|
|
300
|
+
*
|
|
301
|
+
* @kosService core.container-aware
|
|
302
|
+
* @kosApiLevel 13
|
|
303
|
+
*/
|
|
304
|
+
export type KosContainerAware<T extends IKosDataModel = IKosDataModel, D = never> = KosContainerAwareBase<T> & {
|
|
305
|
+
/**
|
|
306
|
+
* Container that manages the collection of models.
|
|
307
|
+
*/
|
|
308
|
+
container: IKosModelContainer<T>;
|
|
309
|
+
} & KosContainerReconcileFor<D>;
|
|
254
310
|
/**
|
|
255
311
|
* Members that @kosContainerAware injects into a model whose decorator sets a custom
|
|
256
312
|
* `containerProperty`. `P` must match that property name.
|
|
257
313
|
*
|
|
258
314
|
* @template T The type of models contained in the container
|
|
259
315
|
* @template P The custom property name for the container (string literal type)
|
|
316
|
+
* @template D The DTO type `reconcile` receives; omit it when `reconcile` is not declared
|
|
260
317
|
*
|
|
261
318
|
* @example
|
|
262
319
|
* ```typescript
|
|
@@ -273,9 +330,9 @@ export interface KosContainerAwareBase<T extends IKosDataModel = IKosDataModel>
|
|
|
273
330
|
*
|
|
274
331
|
* @kosService core.container-aware
|
|
275
332
|
*/
|
|
276
|
-
export type KosContainerAwareWithProp<T extends IKosDataModel = IKosDataModel, P extends string = "container"> = KosContainerAwareBase<T> & {
|
|
333
|
+
export type KosContainerAwareWithProp<T extends IKosDataModel = IKosDataModel, P extends string = "container", D = never> = KosContainerAwareBase<T> & {
|
|
277
334
|
[K in P]: IKosModelContainer<T>;
|
|
278
|
-
}
|
|
335
|
+
} & KosContainerReconcileFor<D>;
|
|
279
336
|
/**
|
|
280
337
|
* Class decorator that gives a KOS model a container of child models.
|
|
281
338
|
*
|
|
@@ -286,6 +343,7 @@ export type KosContainerAwareWithProp<T extends IKosDataModel = IKosDataModel, P
|
|
|
286
343
|
* `removeAll`, `removeAndDestroy`, `removeAndDestroyAll`) unless `includeMethods`
|
|
287
344
|
* is false
|
|
288
345
|
* - the reactive `models` and `data` getters unless `includeGetters` is false
|
|
346
|
+
* - `reconcile(list)` when the `reconcile` option is declared
|
|
289
347
|
*
|
|
290
348
|
* The container is registered as a child model, so it follows the owner's lifecycle
|
|
291
349
|
* and is cleaned up when the owner is destroyed.
|
|
@@ -322,6 +380,10 @@ export type KosContainerAwareWithProp<T extends IKosDataModel = IKosDataModel, P
|
|
|
322
380
|
* @kosService core.container-aware
|
|
323
381
|
* @kosApiLevel 13
|
|
324
382
|
*/
|
|
325
|
-
export declare function kosContainerAware<T extends IKosDataModel = IKosDataModel
|
|
383
|
+
export declare function kosContainerAware<T extends IKosDataModel = IKosDataModel, D extends {
|
|
384
|
+
id: string;
|
|
385
|
+
} = any, M extends {
|
|
386
|
+
id: string;
|
|
387
|
+
} = D>(options?: KosContainerAwareOptions<T, D, M>): ClassDecorator;
|
|
326
388
|
export {};
|
|
327
389
|
//# sourceMappingURL=kos-container-aware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-container-aware.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kos-container-aware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"kos-container-aware.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kos-container-aware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,4BAA4B,CAC3C,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,GAAG,EAC9B,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,CAAC;IAE5B;;OAEG;IACH,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;IAEtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAEpC;;;OAGG;IACH,QAAQ,CAAC,EA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kBAAkB,CAAC,CAAC,CAAC,CAAC;IAEvC;;;OAGG;IACH,IAAI,EAAE,CAAC,EAAE,CAAC;CACX;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAM,MAAM,iBAAiB,CAC3B,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,GAAG,KAAK,IACP,qBAAqB,CAAC,CAAC,CAAC,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAClC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,yBAAyB,CACnC,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS,MAAM,GAAG,WAAW,EAC9B,CAAC,GAAG,KAAK,IACP,qBAAqB,CAAC,CAAC,CAAC,GAAG;KAC5B,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC;CAChC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,iBAAiB,CAC/B,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,GAAG,EAC9B,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,CAAC,EAC5B,OAAO,CAAC,EAAE,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAwB7D"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Symbol marker indicating a model manages its own reload lifecycle.
|
|
3
|
-
*
|
|
3
|
+
* KOS Core's reload skips models that carry it.
|
|
4
4
|
*/
|
|
5
5
|
export declare const SelfManagedReload: unique symbol;
|
|
6
6
|
/**
|
|
7
7
|
* Class decorator that marks a model as managing its own reload.
|
|
8
8
|
*
|
|
9
|
-
* When KOS Core reloads (
|
|
10
|
-
* reload()
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* as skeleton flashes and lost selection.
|
|
9
|
+
* When KOS Core reloads (after a reconnect, a login or a project reload), each model with a
|
|
10
|
+
* reload() method re-enters its lifecycle: a narrow teardown of its subscriptions, effects,
|
|
11
|
+
* HTTP routes and online handling, then reload(), then those are attached again and its
|
|
12
|
+
* children re-enter, then ready() once every child is READY. unload() is never called.
|
|
14
13
|
*
|
|
15
|
-
* A model decorated with @kosReloadAware is skipped by
|
|
14
|
+
* A model decorated with @kosReloadAware is skipped by KOS Core's reload. It refreshes itself,
|
|
16
15
|
* typically from a model effect or topic handler, and updates its children in place
|
|
17
|
-
* (for example with resolveContainerDeltas).
|
|
16
|
+
* (for example with resolveContainerDeltas). Its topic subscriptions are disposed when the
|
|
17
|
+
* connection drops and attached again when it goes online. As the child of a parent that is
|
|
18
|
+
* reloading, it is detached, attached again and readied with that parent, but its reload()
|
|
19
|
+
* is not called.
|
|
18
20
|
*
|
|
19
21
|
* @example
|
|
20
22
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-reload-aware.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kos-reload-aware.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"kos-reload-aware.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kos-reload-aware.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,cAAc,IAAI,cAAc,CAI/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kosModel.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kosModel.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"kosModel.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/decorators/kosModel.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA2oB5C,UAAU,cAAc;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACtC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,cAAc,CA0DjD"}
|
package/core/core/kosCore.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ export interface IKosModelManagerContainer {
|
|
|
40
40
|
}
|
|
41
41
|
export type IKosCoreManager = IKosCoreLifecycle & IKosModelManagerContainer & IKosWebSocketTransportContainer & {
|
|
42
42
|
reloading: boolean;
|
|
43
|
+
/** Set by the core machine for the whole reconnect sequence. */
|
|
44
|
+
reconnecting: boolean;
|
|
43
45
|
};
|
|
44
46
|
export declare enum AuthState {
|
|
45
47
|
LOGGED_IN = "logged_in",
|
|
@@ -56,6 +58,7 @@ export declare class KosCore implements IKosCoreManager {
|
|
|
56
58
|
authState: AuthState;
|
|
57
59
|
isOnline: boolean;
|
|
58
60
|
private _reloading;
|
|
61
|
+
reconnecting: boolean;
|
|
59
62
|
private _unloading;
|
|
60
63
|
private lifecycleStarted;
|
|
61
64
|
connectionAlias?: string;
|
|
@@ -72,7 +75,7 @@ export declare class KosCore implements IKosCoreManager {
|
|
|
72
75
|
get reloading(): boolean;
|
|
73
76
|
get unloading(): boolean;
|
|
74
77
|
reload(): Promise<void>;
|
|
75
|
-
private
|
|
78
|
+
private reloadOne;
|
|
76
79
|
online(): Promise<void>;
|
|
77
80
|
offline(): Promise<void>;
|
|
78
81
|
unload(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kosCore.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/core/kosCore.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oBAAoB,EAGrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKpD,OAAO,yBAAyB,CAAC;AAIjC,OAAO,EAEL,YAAY,EACZ,OAAO,EACR,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,EAAE,eAAe,CAAC;KAC1B;CACF;
|
|
1
|
+
{"version":3,"file":"kosCore.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/core/kosCore.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oBAAoB,EAGrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKpD,OAAO,yBAAyB,CAAC;AAIjC,OAAO,EAEL,YAAY,EACZ,OAAO,EACR,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,EAAE,eAAe,CAAC;KAC1B;CACF;AAmHD,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,cAAc,IAAI,IAAI,CAAC;IAEvB;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AC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAEzB,OAAO,CAAC,UAAU,CAAU;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,UAAU,CAAU;IAC5B,OAAO,CAAC,gBAAgB,CAAS;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,OAAO;IAmFP;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAqB5B,cAAc;IAQd,IAAI,YAAY,YAEf;IACD,IAAI,SAAS,YAEZ;IAED,IAAI,SAAS,YAEZ;IACK,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;YAwDf,SAAS;IAQjB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAWvB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAKxB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBvB,SAAS;IAGT,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA+C5B,IAAI,OAAO,YAEV;IACD,IAAI,SAAS,CAAC,SAAS,EAAE,oBAAoB,EAE5C;IACD,IAAI,SAAS,IAHY,oBAAoB,CAK5C;IAED,IAAI,eAAe,YAElB;IAED,IAAI,YAAY,YAEf;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAYrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;WASb,MAAM,CAClB,QAAQ,EAAE,YAAY,EACtB,KAAK,CAAC,EAAE,OAAO,EACf,eAAe,CAAC,EAAE,MAAM;IAiF1B;;;;;;;OAOG;WACW,WAAW,CAAC,IAAI,CAAC,EAAE;QAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,GAAG,eAAe;CAapB"}
|
package/core/core/kosModel.d.ts
CHANGED
|
@@ -117,10 +117,17 @@ export interface IKosModel<DataDef extends IKosDataModel = IKosDataModel> extend
|
|
|
117
117
|
whenLoaded(): Promise<void>;
|
|
118
118
|
registerSubscribers(): Promise<void>;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Disposes the model's own subscriptions, effects, routes and online handling,
|
|
121
|
+
* then runs the data model's `reload()`. Children stay READY.
|
|
121
122
|
* @internal
|
|
122
123
|
*/
|
|
123
|
-
|
|
124
|
+
reloadData?(): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Re-attaches what `reloadData()` disposed, then re-enters the children so
|
|
127
|
+
* they are READY before the model's `ready()`.
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
reattach?(): Promise<void>;
|
|
124
131
|
getChildren(): IKosModel[];
|
|
125
132
|
modelData: DataDef;
|
|
126
133
|
modelManager: KosModelManager;
|
|
@@ -191,12 +198,13 @@ export declare class KosModel<DataDef extends IKosDataModel = IKosDataModel> imp
|
|
|
191
198
|
unload(): Promise<void>;
|
|
192
199
|
init(): Promise<void>;
|
|
193
200
|
registerSubscribers(lifecycle?: DependencyLifecycle): Promise<void>;
|
|
194
|
-
/**
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
201
|
+
/** Narrow, framework-owned teardown for a reload; never the author's unload(). */
|
|
202
|
+
private suspendForReload;
|
|
203
|
+
/** @internal */
|
|
204
|
+
reloadData(): Promise<void>;
|
|
205
|
+
/** @internal */
|
|
206
|
+
reattach(): Promise<void>;
|
|
207
|
+
private reenterChildren;
|
|
200
208
|
/**
|
|
201
209
|
* Initialize the state machine for a specific lifecycle phase.
|
|
202
210
|
* Called from lifecycle hooks (init, load, ready, activate).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kosModel.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/core/kosModel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAa5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"kosModel.d.ts","s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,SAAS,CAAC;IAGtC,WAAW,IAAI,SAAS,EAAE;IAI1B,iBAAiB,CAAC,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC;IAIjD,oBAAoB;CAGrB"}
|
|
@@ -18,7 +18,10 @@ export declare enum KosModelState {
|
|
|
18
18
|
INACTIVE = "inactive",
|
|
19
19
|
ACTIVE = "active",
|
|
20
20
|
ACTIVATING = "activating",
|
|
21
|
-
DEACTIVATING = "deactivating"
|
|
21
|
+
DEACTIVATING = "deactivating",
|
|
22
|
+
RELOADING = "reloading",
|
|
23
|
+
REATTACHING = "reattaching",
|
|
24
|
+
RELOAD_READYING = "reload_readying"
|
|
22
25
|
}
|
|
23
26
|
export declare enum KosModelEvents {
|
|
24
27
|
CREATE = "create",
|
|
@@ -32,6 +35,7 @@ export declare enum KosModelEvents {
|
|
|
32
35
|
FAILED = "failed",
|
|
33
36
|
GO_ACTIVE = "go_active",
|
|
34
37
|
GO_INACTIVE = "go_inactive",
|
|
35
|
-
TIMEOUT = "timeout"
|
|
38
|
+
TIMEOUT = "timeout",
|
|
39
|
+
RELOAD = "reload"
|
|
36
40
|
}
|
|
37
41
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/lifecycle/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,YAAY,iBAAiB;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/lifecycle/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;CACpC;AAED,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,UAAU,SAAS;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB"}
|
|
@@ -13,6 +13,9 @@ export declare enum KosCoreState {
|
|
|
13
13
|
UNLOADING = "unloading",
|
|
14
14
|
UNLOADED = "unloaded",
|
|
15
15
|
RELOADING = "reloading",
|
|
16
|
+
RECONNECTING = "reconnecting",
|
|
17
|
+
RECONNECT_INTERRUPTED = "reconnect_interrupted",
|
|
18
|
+
RECONNECT_PENDING = "reconnect_pending",
|
|
16
19
|
FAILED = "failed"
|
|
17
20
|
}
|
|
18
21
|
export declare enum KosCoreEvents {
|
|
@@ -22,7 +25,8 @@ export declare enum KosCoreEvents {
|
|
|
22
25
|
GO_ONLINE = "go_online",
|
|
23
26
|
GO_OFFLINE = "go_offline",
|
|
24
27
|
UNLOAD = "unload",
|
|
25
|
-
RELOAD = "reload"
|
|
28
|
+
RELOAD = "reload",
|
|
29
|
+
RECONNECT = "reconnect"
|
|
26
30
|
}
|
|
27
31
|
export interface KosOn {
|
|
28
32
|
[k: string]: string;
|
|
@@ -60,6 +64,9 @@ export declare const coreFsm: (core: IKosCoreManager) => {
|
|
|
60
64
|
loading: import('robot3').MachineState;
|
|
61
65
|
loaded: import('robot3').MachineState;
|
|
62
66
|
readying: import('robot3').MachineState;
|
|
67
|
+
reconnecting: import('robot3').MachineState;
|
|
68
|
+
reconnect_interrupted: import('robot3').MachineState;
|
|
69
|
+
reconnect_pending: import('robot3').MachineState;
|
|
63
70
|
reloading: import('robot3').MachineState;
|
|
64
71
|
failed: import('robot3').MachineState;
|
|
65
72
|
ready: import('robot3').MachineState;
|
|
@@ -72,6 +79,9 @@ export declare const coreFsm: (core: IKosCoreManager) => {
|
|
|
72
79
|
loading: unknown;
|
|
73
80
|
loaded: unknown;
|
|
74
81
|
readying: unknown;
|
|
82
|
+
reconnecting: unknown;
|
|
83
|
+
reconnect_interrupted: unknown;
|
|
84
|
+
reconnect_pending: unknown;
|
|
75
85
|
reloading: unknown;
|
|
76
86
|
failed: unknown;
|
|
77
87
|
ready: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kosCoreLifecycle.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/lifecycle/kosCoreLifecycle.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,UAAU,SAAS;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"kosCoreLifecycle.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/lifecycle/kosCoreLifecycle.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,qBAAqB,0BAA0B;IAC/C,iBAAiB,sBAAsB;IACvC,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,UAAU,SAAS;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,SAAS,CAAC,OAAO;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AACD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,KAAK,CAAC;CACX;AACD,MAAM,WAAW,0BAA0B,CAAC,OAAO;IACjD,CAAC,CAAC,EAAE,MAAM,GAAG;QACX,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;QAC7C,EAAE,CAAC,EAAE,KAAK,CAAC;QACX,MAAM,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,YAAY,CAAC,OAAO,GAAG,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;CAClB;AAoBD,eAAO,MAAM,OAAO,GAAI,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuJ5C,CAAC"}
|
|
@@ -37,6 +37,9 @@ export declare const fsm: (model: IKosModel) => {
|
|
|
37
37
|
resetting: import('robot3').MachineState;
|
|
38
38
|
readying: import('robot3').MachineState;
|
|
39
39
|
ready: import('robot3').MachineState;
|
|
40
|
+
reloading: import('robot3').MachineState;
|
|
41
|
+
reattaching: import('robot3').MachineState;
|
|
42
|
+
reload_readying: import('robot3').MachineState;
|
|
40
43
|
unloaded: import('robot3').MachineState;
|
|
41
44
|
failed: import('robot3').MachineState;
|
|
42
45
|
}, {}, import('robot3').AllStateKeys<{
|
|
@@ -49,6 +52,9 @@ export declare const fsm: (model: IKosModel) => {
|
|
|
49
52
|
resetting: unknown;
|
|
50
53
|
readying: unknown;
|
|
51
54
|
ready: unknown;
|
|
55
|
+
reloading: unknown;
|
|
56
|
+
reattaching: unknown;
|
|
57
|
+
reload_readying: unknown;
|
|
52
58
|
unloaded: unknown;
|
|
53
59
|
failed: unknown;
|
|
54
60
|
}>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kosModelLifecycle.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/lifecycle/kosModelLifecycle.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,MAAM,WAAW,KAAK;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,SAAS,CAAC,OAAO;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AACD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,KAAK,CAAC;CACX;AACD,MAAM,WAAW,0BAA0B,CAAC,OAAO;IACjD,CAAC,CAAC,EAAE,MAAM,GAAG;QACX,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;QAC7C,EAAE,CAAC,EAAE,KAAK,CAAC;QACX,MAAM,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,YAAY,CAAC,OAAO,GAAG,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,GAAG,GAAI,OAAO,SAAS
|
|
1
|
+
{"version":3,"file":"kosModelLifecycle.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/lifecycle/kosModelLifecycle.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,MAAM,WAAW,KAAK;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,SAAS,CAAC,OAAO;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AACD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,KAAK,CAAC;CACX;AACD,MAAM,WAAW,0BAA0B,CAAC,OAAO;IACjD,CAAC,CAAC,EAAE,MAAM,GAAG;QACX,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;QAC7C,EAAE,CAAC,EAAE,KAAK,CAAC;QACX,MAAM,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,YAAY,CAAC,OAAO,GAAG,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,GAAG,GAAI,OAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAC"}
|
|
@@ -9,6 +9,9 @@ export declare const machine: (model: IKosModel) => import('robot3').Machine<{
|
|
|
9
9
|
resetting: import('robot3').MachineState;
|
|
10
10
|
readying: import('robot3').MachineState;
|
|
11
11
|
ready: import('robot3').MachineState;
|
|
12
|
+
reloading: import('robot3').MachineState;
|
|
13
|
+
reattaching: import('robot3').MachineState;
|
|
14
|
+
reload_readying: import('robot3').MachineState;
|
|
12
15
|
unloaded: import('robot3').MachineState;
|
|
13
16
|
failed: import('robot3').MachineState;
|
|
14
17
|
}, {}, import('robot3').AllStateKeys<{
|
|
@@ -21,6 +24,9 @@ export declare const machine: (model: IKosModel) => import('robot3').Machine<{
|
|
|
21
24
|
resetting: unknown;
|
|
22
25
|
readying: unknown;
|
|
23
26
|
ready: unknown;
|
|
27
|
+
reloading: unknown;
|
|
28
|
+
reattaching: unknown;
|
|
29
|
+
reload_readying: unknown;
|
|
24
30
|
unloaded: unknown;
|
|
25
31
|
failed: unknown;
|
|
26
32
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-machine.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/lifecycle/model-machine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-machine.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/lifecycle/model-machine.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0MvC,CAAC"}
|