@nsshunt/stsvueutils 1.2.25 → 1.2.26

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.
@@ -2468,12 +2468,22 @@ var __privateMethod = (obj, member, method) => {
2468
2468
  _SetMessagePort = new WeakMap();
2469
2469
  _AddAsyncRunner = new WeakMap();
2470
2470
  _StopRunners = new WeakMap();
2471
+ var _estate = /* @__PURE__ */ ((_estate2) => {
2472
+ _estate2["IDLE"] = "idle";
2473
+ _estate2["STARTING"] = "starting";
2474
+ _estate2["STARTED"] = "started";
2475
+ _estate2["STOPPING"] = "stopping";
2476
+ _estate2["DELAYED_START"] = "delayed_start";
2477
+ return _estate2;
2478
+ })(_estate || {});
2471
2479
  const ModelStore = pinia.defineStore("__sts__ModelStore", {
2472
2480
  // State
2473
2481
  // https://pinia.vuejs.org/core-concepts/state.html
2474
2482
  state: () => {
2475
2483
  return {
2476
- _models: {}
2484
+ _models: {},
2485
+ _state: {},
2486
+ _observabilitySubscriberManager: {}
2477
2487
  };
2478
2488
  },
2479
2489
  // Getters
@@ -2536,6 +2546,22 @@ var __privateMethod = (obj, member, method) => {
2536
2546
  }
2537
2547
  },
2538
2548
  */
2549
+ GetSate(modelId) {
2550
+ if (!this._state[modelId]) {
2551
+ this._state[modelId] = "idle";
2552
+ }
2553
+ return this._state[modelId];
2554
+ },
2555
+ UpdateSate(modelId, newSate) {
2556
+ this._state[modelId] = newSate;
2557
+ },
2558
+ UpdateObservabilitySubscriberManager(modelId, observabilitySubscriberManager) {
2559
+ if (observabilitySubscriberManager === null) {
2560
+ delete this._observabilitySubscriberManager[modelId];
2561
+ } else {
2562
+ this._observabilitySubscriberManager[modelId] = observabilitySubscriberManager;
2563
+ }
2564
+ },
2539
2565
  SetupNewModelId(modelId) {
2540
2566
  this._models[modelId] = {
2541
2567
  serviceModel: {},
@@ -10684,6 +10710,7 @@ var __privateMethod = (obj, member, method) => {
10684
10710
  exports2.UXRadialChart = _sfc_main$3;
10685
10711
  exports2.UXTestForm = _sfc_main$7;
10686
10712
  exports2.WorkerInstance = WorkerInstance;
10713
+ exports2._estate = _estate;
10687
10714
  exports2.eIWMessageCommands = eIWMessageCommands;
10688
10715
  exports2.useSTSEmitterPlugin = useSTSEmitterPlugin;
10689
10716
  exports2.useSTSStoragePlugin = useSTSStoragePlugin;