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